ffs: fix m4 prerequisite
[gnulib.git] / ChangeLog
1 2011-07-15  Eric Blake  <eblake@redhat.com>
2
3         ffs: fix m4 prerequisite
4         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5
6         ffs: avoid undefined behavior
7         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
8         * tests/test-ffs.c (naive, main): Avoid signed shifts.
9         Reported by Bruno Haible.
10
11 2011-07-12  Bruno Haible  <bruno@clisp.org>
12
13         pthread_sigmask: Rely on module 'threadlib'.
14         * modules/pthread_sigmask (Depends-on): Add threadlib.
15         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16         is defined.
17
18 2011-07-12  Bruno Haible  <bruno@clisp.org>
19
20         regex: Depend on module 'strcase'.
21         * modules/regex (Depends-on): Add strcase, for strcasecmp().
22
23 2011-07-12  Jim Meyering  <meyering@redhat.com>
24
25         warn-on-use: fix typo in file name
26         * modules/snippet/warn-on-use (Files): Correct file name:
27         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
28
29 2011-07-12  Bruno Haible  <bruno@clisp.org>
30
31         strings: Document module.
32         * doc/posix-headers/strings.texi: Mention module 'strings'.
33
34 2011-07-12  Bruno Haible  <bruno@clisp.org>
35
36         Rename module '_Noreturn' to 'snippet/_Noreturn'.
37         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
38         (Files, Makefile.am): Update.
39         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
40         * modules/stdlib (Depends-on): Update.
41
42 2011-07-12  Bruno Haible  <bruno@clisp.org>
43
44         * NEWS: Mention the changes.
45
46         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
47         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
48         (Files, Makefile.am): Update.
49         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
50         * modules/arpa_inet (Depends-on): Update.
51         * modules/ctype (Depends-on): Update.
52         * modules/dirent (Depends-on): Update.
53         * modules/fcntl-h (Depends-on): Update.
54         * modules/glob (Depends-on): Update.
55         * modules/iconv-h (Depends-on): Update.
56         * modules/inttypes-incomplete (Depends-on): Update.
57         * modules/langinfo (Depends-on): Update.
58         * modules/locale (Depends-on): Update.
59         * modules/math (Depends-on): Update.
60         * modules/netdb (Depends-on): Update.
61         * modules/poll-h (Depends-on): Update.
62         * modules/pty (Depends-on): Update.
63         * modules/search (Depends-on): Update.
64         * modules/signal (Depends-on): Update.
65         * modules/spawn (Depends-on): Update.
66         * modules/stdio (Depends-on): Update.
67         * modules/stdlib (Depends-on): Update.
68         * modules/string (Depends-on): Update.
69         * modules/strings (Depends-on): Update.
70         * modules/sys_file (Depends-on): Update.
71         * modules/sys_ioctl (Depends-on): Update.
72         * modules/sys_select (Depends-on): Update.
73         * modules/sys_socket (Depends-on): Update.
74         * modules/sys_stat (Depends-on): Update.
75         * modules/sys_time (Depends-on): Update.
76         * modules/sys_times (Depends-on): Update.
77         * modules/sys_utsname (Depends-on): Update.
78         * modules/sys_wait (Depends-on): Update.
79         * modules/termios (Depends-on): Update.
80         * modules/time (Depends-on): Update.
81         * modules/unistd (Depends-on): Update.
82         * modules/wchar (Depends-on): Update.
83         * modules/wctype-h (Depends-on): Update.
84         * MODULES.html.sh (Support for building libraries and executables):
85         Update.
86
87         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
88         * modules/snippet/unused-parameter: Renamed from
89         modules/unused-parameter.
90         (Files, Makefile.am): Update.
91         * build-aux/snippet/unused-parameter.h: Renamed from
92         build-aux/unused-parameter.h.
93         * modules/selinux-h (Depends-on): Update.
94         * modules/unistr/base (Depends-on): Update.
95         * MODULES.html.sh (Core language properties): Update.
96
97         Rename module 'link-warning' to 'snippet/link-warning'.
98         * modules/snippet/link-warning: Renamed from modules/link-warning.
99         (Files, Makefile.am): Update.
100         * build-aux/snippet/link-warning.h: Renamed from
101         build-aux/link-warning.h.
102         * MODULES.html.sh (Support for building libraries and executables):
103         Update.
104
105         Rename module 'c++defs' to 'snippet/c++defs'.
106         * modules/snippet/c++defs: Renamed from modules/c++defs.
107         (Files, Makefile.am): Update.
108         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
109         * modules/arpa_inet (Depends-on): Update.
110         * modules/ctype (Depends-on): Update.
111         * modules/dirent (Depends-on): Update.
112         * modules/fcntl-h (Depends-on): Update.
113         * modules/glob (Depends-on): Update.
114         * modules/iconv-h (Depends-on): Update.
115         * modules/langinfo (Depends-on): Update.
116         * modules/locale (Depends-on): Update.
117         * modules/math (Depends-on): Update.
118         * modules/netdb (Depends-on): Update.
119         * modules/poll-h (Depends-on): Update.
120         * modules/pty (Depends-on): Update.
121         * modules/search (Depends-on): Update.
122         * modules/signal (Depends-on): Update.
123         * modules/spawn (Depends-on): Update.
124         * modules/stdio (Depends-on): Update.
125         * modules/stdlib (Depends-on): Update.
126         * modules/string (Depends-on): Update.
127         * modules/strings (Depends-on): Update.
128         * modules/sys_ioctl (Depends-on): Update.
129         * modules/sys_select (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_wait (Depends-on): Update.
134         * modules/termios (Depends-on): Update.
135         * modules/time (Depends-on): Update.
136         * modules/unistd (Depends-on): Update.
137         * modules/wchar (Depends-on): Update.
138         * modules/wctype-h (Depends-on): Update.
139
140         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
141         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
142         (Files, Makefile.am): Update.
143         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
144         * modules/argv-iter (Depends-on): Update.
145         * modules/arpa_inet (Depends-on): Update.
146         * modules/dirent (Depends-on): Update.
147         * modules/fcntl-h (Depends-on): Update.
148         * modules/fnmatch (Depends-on): Update.
149         * modules/getopt-posix (Depends-on): Update.
150         * modules/glob (Depends-on): Update.
151         * modules/iconv-h (Depends-on): Update.
152         * modules/inttypes-incomplete (Depends-on): Update.
153         * modules/locale (Depends-on): Update.
154         * modules/math (Depends-on): Update.
155         * modules/netdb (Depends-on): Update.
156         * modules/search (Depends-on): Update.
157         * modules/signal (Depends-on): Update.
158         * modules/spawn (Depends-on): Update.
159         * modules/stdio (Depends-on): Update.
160         * modules/stdlib (Depends-on): Update.
161         * modules/string (Depends-on): Update.
162         * modules/strings (Depends-on): Update.
163         * modules/sys_socket (Depends-on): Update.
164         * modules/sys_stat (Depends-on): Update.
165         * modules/sys_time (Depends-on): Update.
166         * modules/sys_times (Depends-on): Update.
167         * modules/sys_utsname (Depends-on): Update.
168         * modules/time (Depends-on): Update.
169         * modules/unistd (Depends-on): Update.
170         * modules/wchar (Depends-on): Update.
171         * MODULES.html.sh (Support for building libraries and executables):
172         Update.
173
174 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
175
176         Improvements on _Noreturn and related modules.
177
178         modules/_Exit-tests: test _Noreturn too
179         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
180         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
181         (main): Use them.
182
183         stdnoreturn, stdnoreturn-tests: remove modules
184         They're not needed here and a bit premature for use elsewhere.  See
185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
186         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
187         * tests/test-stdnoreturn.c: Remove files.
188         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
189         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
190         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
191         and using noreturn.
192         * modules/openat, modules/sigpipe-die, modules/xalloc:
193         * modules/xmemdup0, modules/xstrtol:
194         Remove dependency on stdnoreturn.
195
196         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
197         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
198         Reparenthesize to avoid GCC warning.
199         Support Microsoft's syntax.
200         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
201
202         _Noreturn-tests: remove module
203         * modules/_Noreturn-tests: Remove.
204         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
205         * tests/test-_Noreturn.c: Remove.
206         * tests/test-stdnoreturn.c: Merge from the old
207         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
208
209 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
210
211         _Noreturn, stdnoreturn, and related modules.
212
213         * top/maint.mk: Adjust to new noreturn support.
214         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
215         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
216
217         xalloc: use stdnoreturn.h
218         * lib/xalloc.h: Include <stdnoreturn.h>.
219         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
220         * modules/xalloc (Depends-on): Add stdnoreturn.
221
222         xstrtol: use stdnoreturn.h
223         * lib/xstrtol.h: Include <stdnoreturn.h>.
224         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
225         * modules/xstrtol (Depends-on): Add stdnoreturn.
226
227         xmemdup0: use stdnoreturn.h
228         * lib/xmemdup0.h: Include <stdnoreturn.h>.
229         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
230         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
231
232         sigpipe-die: use stdnoreturn.h
233         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
234         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
235         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
236
237         openat: use stdnoreturn.h
238         * lib/openat.h: Include <stdnoreturn.h>.
239         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
240         * modules/openat (Depends-on): Add stdnoreturn.
241
242         * lib/openat-die.c (openat_save_fail): Modernize comment.
243
244         * lib/xalloc-die.c (xalloc_die): Modernize comment.
245
246         * lib/glthread/thread.h: Modernize comment.
247
248         obstack: use _Noreturn
249         * lib/obstack.c (__attribute__): Remove macro.
250         (print_and_abort): Use _Noreturn.
251
252         c-stack: use _Noreturn
253         * lib/c-stack.c (die, overflow_handler, segv_handler):
254         Use _Noreturn rather than __attribute__((noreturn)).
255
256         argmatch-tests, exclude_tests: use _Noreturn
257         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
258         Remove.
259         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
260
261         stdlib: use _Noreturn
262         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
263         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
264         * modules/stdlib (Depends-on): Add _Noreturn.
265         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
266
267         stdnoreturn-tests: new module
268         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
269
270         stdnoreturn: new module
271         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
272         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
273
274         _Noreturn-tests: new module
275         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
276
277         _Noreturn: new module
278         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
279         New section, mentioning it.
280         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
281
282         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
283
284 2011-07-11  Eric Blake  <eblake@redhat.com>
285
286         ffs: new module
287         * modules/ffs: New file.
288         * m4/ffs.m4: Likewise.
289         * lib/ffs.c: Likewise.
290         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
291         * modules/strings (Makefile.am): Substitute witness.
292         (Depends-on): Add c++defs.
293         * lib/strings.in.h (ffs): Declare.
294         * modules/ffs-tests: New test file.
295         * tests/test-ffs.c: Test new module.
296         * MODULES.html.sh (Integer arithmetic functions): Mention it.
297         * doc/posix-functions/ffs.texi (ffs): Likewise.
298
299         regex: avoid compiler warning
300         * lib/regex.c (includes): Include <strings.h>, for use of
301         strcasecmp in regcomp.c.
302         Reported by Joachim Schmitz.
303
304 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
305
306         stdint: respect system's intmax_t if INTMAX_MAX
307         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
308         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
309         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
310         long but int64_t is long long, and where we will clash with the
311         system intmax_t if we override it.  See
312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
313         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
314         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
315         similarly for UINTMAX_C.
316
317 2011-07-08  Bruno Haible  <bruno@clisp.org>
318
319         pthread_sigmask tests: Avoid a compiler warning.
320         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
321         non-zero.
322
323         sigprocmask tests: A better way to avoid a compiler warning.
324         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
325         (main): Complain if system() returns non-zero.
326         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
327
328 2011-07-08  Bruno Haible  <bruno@clisp.org>
329
330         pthread_sigmask: Work around IRIX bug.
331         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
332         bug.
333         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
334         there may be unblocked pending signals.
335         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
336
337 2011-07-08  Bruno Haible  <bruno@clisp.org>
338
339         pthread_sigmask: Work around Cygwin bug.
340         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
341         bug.
342         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
343         the system's pthread_sigmask function.
344         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
345
346 2011-07-08  Bruno Haible  <bruno@clisp.org>
347
348         pthread_sigmask: Work around bug in single-threaded implementation.
349         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
350         FreeBSD, HP-UX, Solaris bug.
351         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
352         * lib/pthread_sigmask.c: Include <stddef.h>.
353         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
354         the system's pthread_sigmask function.
355         * modules/pthread_sigmask (configure.ac): Invoke
356         gl_PREREQ_PTHREAD_SIGMASK.
357         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
358         HP-UX, Solaris.
359
360 2011-07-08  Eric Blake  <eblake@redhat.com>
361
362         test-sigprocmask: avoid compiler warning
363         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
364         * tests/test-sigprocmask.c (main): Use it to silence warning.
365         Reported by Jim Meyering.
366
367         test-snprintf: avoid compiler warning
368         * tests/test-snprintf.c (main): Avoid shadowed declaration.
369         * tests/test-vsnprintf.c (main): Likewise.
370         Reported by Jim Meyering.
371
372 2011-07-08  Bruno Haible  <bruno@clisp.org>
373
374         Tests for module 'pthread_sigmask'.
375         * modules/pthread_sigmask-tests: New file.
376         * tests/test-pthread_sigmask1.c: New file, based on
377         tests/test-sigprocmask.c.
378         * tests/test-pthread_sigmask2.c: New file.
379
380 2011-07-08  Jim Meyering  <meyering@redhat.com>
381
382         test-getopt.h: avoid warning about an unused variable
383         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
384
385 2011-07-07  Jim Meyering  <meyering@redhat.com>
386
387         maint: reduce list of files exempt from sc_prohibit_leading_TABs
388         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
389         now that it no longer contains leading TABs.
390         Remove unused "url=FIXME" statement.
391
392 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
393
394         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
395         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
396         When gl_THREADLIB is not in use, assume that the POSIX sematics
397         are desired.  This is better for Emacs, which uses POSIX semantics
398         on GNUish and/or POSIXish platforms, and does not use threads at
399         all otherwise.
400
401         pthread_sigmask: fix typo when testing for libraries
402         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
403         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
404
405 2011-07-08  Eric Blake  <eblake@redhat.com>
406
407         fts: introduce FTS_NOATIME
408         * lib/fts_.h (FTS_NOATIME): New bit flag.
409         (FTS_OPTIONMASK): Adjust.
410         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
411         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
412
413 2011-07-08  Bruno Haible  <bruno@clisp.org>
414
415         Tests for module 'thread'.
416         * modules/thread-tests: New file.
417         * tests/test-thread_self.c: New file.
418         * tests/test-thread_create.cc: New file.
419
420 2011-07-08  Bruno Haible  <bruno@clisp.org>
421
422         thread: Avoid gcc warnings when using gl_thread_self().
423         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
424         'void *'.
425         (gl_thread_self_pointer): Update.
426
427 2011-07-07  Bruno Haible  <bruno@clisp.org>
428
429         signal-c++-tests: Check declaration of pthread_sigmask.
430         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
431         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
432         $(LIB_PTHREAD_SIGMASK).
433
434 2011-07-07  Bruno Haible  <bruno@clisp.org>
435
436         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
437         * lib/signal.in.h (pthread_sigmask): Override if
438         REPLACE_PTHREAD_SIGMASK is 1.
439         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
440         REPLACE_PTHREAD_SIGMASK.
441         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
442         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
443         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
444         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
445         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
446
447 2011-07-07  Bruno Haible  <bruno@clisp.org>
448
449         pthread_sigmask: Ensure declaration in <signal.h>.
450         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
451         include <pthread.h>.
452         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
453         problem.
454
455 2011-07-07  Bruno Haible  <bruno@clisp.org>
456
457         pthread_sigmask: Document the module.
458         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
459
460 2011-07-07  Bruno Haible  <bruno@clisp.org>
461
462         pthread_sigmask: Follow gnulib conventions.
463         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
464         gl_PTHREAD_SIGMASK.
465         * modules/pthread_sigmask (configure.ac): Update.
466
467 2011-07-07  Bruno Haible  <bruno@clisp.org>
468
469         pthread_sigmask: Make declaration C++ safe.
470         * lib/signal.in.h: In two special conditions, just do an #include_next.
471         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
472         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
473         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
474         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
475         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
476         not REPLACE_PTHREAD_MASK.
477         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
478         not REPLACE_PTHREAD_MASK.
479         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
480
481 2011-07-07  Bruno Haible  <bruno@clisp.org>
482
483         pthread_sigmask: Fix return value.
484         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
485         * lib/pthread_sigmask.c: New file.
486         * modules/pthread_sigmask (Files): Add it.
487         (configure.ac): Invoke AC_LIBOBJ.
488
489 2011-07-07  Eric Blake  <eblake@redhat.com>
490
491         getopt: more portable argv creation
492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
493         const, use char arrays rather than strings.
494         Suggested by Paul Eggert.
495
496 2011-07-07  Bruno Haible  <bruno@clisp.org>
497
498         Tests for module 'sigprocmask'.
499         * modules/sigprocmask-tests: New file.
500         * tests/test-sigprocmask.c: New file.
501
502 2011-07-07  Bruno Haible  <bruno@clisp.org>
503
504         float tests: Tweak.
505         * tests/test-float.c (main): Tweak skip message.
506
507 2011-07-07  Eric Blake  <eblake@redhat.com>
508
509         getopt: avoid compiler warning during configure
510         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
511         assigning string literals to non-const pointer.
512
513         getopt-gnu: avoid crash in glibc getopt
514         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
515         * tests/test-getopt.h (test_getopt): Enhance test.
516         * tests/test-getopt_long.h (test_getopt_long): Likewise.
517         * doc/posix-functions/getopt.texi (getopt): Document it.
518         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
519         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
520         Likewise.
521
522 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
523
524         getopt: handle W; without long options in getopt [BZ #12922]
525         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
526         but no long options are defined, just return 'W'.
527
528 2011-07-07  Bruno Haible  <bruno@clisp.org>
529
530         Avoid literal tabs.
531         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
532         variable containing a tab instead of a literal tab.
533         Reported by Jim Meyering.
534
535 2011-07-07  Bruno Haible  <bruno@clisp.org>
536
537         Comments.
538         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
539
540 2011-07-06  Bruno Haible  <bruno@clisp.org>
541
542         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
543         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
544         <winsock2.h>.
545         (rpl_fd_isset, FD_ISSET): New definitions, copied from
546         lib/sys_socket.in.h.
547         (close, gethostname): Hide declarations from <winsock2.h>.
548         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
549         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
550         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
551         (select): Don't override if gnulib's <sys/select.h> was already
552         included.
553         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
554         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
555         setsockopt, shutdown, select): Tweak indentation.
556
557 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
558
559         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
560         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
561         in an application that does not use the sys_select module.
562
563 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
564
565         poll: do not return 0 on timeout=-1
566         * lib/poll.c: Loop with yield if no events occured
567
568 2011-07-06  Eric Blake  <eblake@redhat.com>
569
570         pthread_sigmask: always replace when not using pthread
571         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
572         replacement when using some threading other than pthread.  Fix
573         logic bug.
574
575 2011-07-06  Bruno Haible  <bruno@clisp.org>
576
577         Comments.
578         * m4/printf.m4: Update comments about mingw.
579
580 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
581
582         sys_select: define sigset_t more portably
583         * lib/sys_select.in.h: Always include <sys/types.h>, since
584         we now need sigset_t and mingw defines it there.
585         Include <signal.h> before split inclusion guard, to avoid
586         mishaps on Solaris, whose <signal.h> eventually includes us.
587         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
588         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
589         which come from ...
590         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
591         gl_CHECK_TYPE_SIGSET_T.
592         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
593         does the real work.
594         * modules/sys_select (Depends-on): Add 'signal'.
595
596         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
597         Suggested by Bruno Haible.
598
599         pselect: Use pthread_sigmask, not sigprocmask.
600         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
601         multithreaded apps better than sigprocmask does.
602         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
603         sigprocmask directly.
604
605 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
606
607         * lib/pselect.c (pselect): Use plain name, without "rpl_".
608         Don't #undef,  since we don't need any underlying pselect.
609         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
610         (Depends-on): Add select.
611         (Link): Add $(LIBSOCKET).
612         These changes suggested by Bruno Haible.
613
614         pselect: document better
615         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
616         * doc/posix-functions/pselect.texi (pselect): Document new module.
617
618         pthread_sigmask: new module
619         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
620         * doc/posix-functions/pthread_sigmask.texi: Document new module.
621         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
622         This is done only as a macro; I don't know how well that'll
623         work for C++.  Move <sys/types.h> include before the include_next,
624         to avoid mishap on Solaris.
625         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
626         * modules/signal (Makefile.am): Substitute the check's results.
627         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
628
629         test-pselect: new module
630         * modules/pselect-tests, tests/test-pselect.c: New files.
631         * tests/test-select.c, tests/test-sys_select-c++.cc:
632         If TEST_PSELECT is defined, test pselect instead of testing select.
633
634         * tests/test-sys_select.c (sigset_t): Test for it, too.
635         Suggested by Bruno Haible.
636
637 2011-07-05  Eric Blake  <eblake@redhat.com>
638
639         snprintf: guarantee %1$d, for libintl
640         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
641         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
642         * doc/posix-functions/snprintf.texi (snprintf): Update.
643         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
644         * tests/test-snprintf.c (main): Enhance test.
645         * tests/test-vsnprintf.c (main): Likewise.
646
647 2011-07-05  Jim Meyering  <meyering@redhat.com>
648
649         maint: exempt stdio-read.c and stdio-write.c from the cppi check
650         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
651         per Bruno's request, to accommodate this idiom (no space after "#")
652         even when the function is inside an #if block:
653         char *
654         gets (char *s)
655         #undef gets
656         {
657           ...
658         }
659
660 2011-07-04  Jim Meyering  <meyering@redhat.com>
661
662         maint: indent with spaces, not TABs, and add a rule to check this
663         * tests/test-userspec.c: Indent with spaces, not TABs.
664         * tests/test-argp.c: Likewise.
665         * tests/test-c-stack2.sh: Likewise.
666         * tests/test-parse-duration.sh: Likewise
667         * m4/strtod.m4: Likewise.
668         * m4/alloca.m4: Likewise.
669         * m4/pselect.m4: Likewise.
670         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
671
672 2011-07-03  Jim Meyering  <meyering@redhat.com>
673
674         maint.mk: correct omissions in prohibit_argmatch_without_use check
675         This rule would mistakenly report that argmatch.h is included without
676         use even when both the argmatch and invalid_arg macro were used.
677         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
678         of argmatch and invalid_arg.
679
680 2011-07-03  Bruno Haible  <bruno@clisp.org>
681
682         Comments about EINTR.
683         * lib/safe-read.h: Explain the purpose of this module.
684         * lib/safe-write.h: Likewise.
685         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
686         module.
687         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
688         module.
689         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
690
691 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
692
693         xnanosleep: Rewrite to use new dtotimespec module.
694         It has the conversion code that used to be in xnanosleep.
695         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
696         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
697         (TIME_T_MAX): Remove.
698         (xnanosleep): Rewrite in terms of dtotimespec.
699         * modules/xnanosleep (Depends-on): Add dtotimespec.
700         Remove intprops, stdbool.
701
702         timespec-add, timespec-sub: new modules
703         * lib/timespec.h (timespec_add, timespec_sub): New decls.
704         * lib/timespec-add.c, lib/timespec-sub.c:
705         * modules/timespec-add, modules/timespec-sub: New files.
706
707         dtotimespec: new module
708         * lib/timespec.h (dtotimespec): New decl.
709         * lib/dtotimespec.c, modules/dtotimespec: New files.
710
711         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
712
713         pselect: new module
714         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
715         (pselect): New decls.
716         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
717         since the standard pselect decl uses 'restrict'.
718         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
719         HAVE_PSELECT, REPLACE_PSELECT.
720         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
721         HAVE_PSELECT, REPLACE_PSELECT.
722         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
723
724         sys_select: don't depend on sys_socket
725         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
727         This fix works on GNU and GNU-like platforms, but has not been tested
728         on native Windows.
729         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
730         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
731         gl_HEADER_SYS_SOCKET.
732         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
733         gl_PREREQ_SYS_H_WINSOCK2.
734
735 2011-06-29  Eric Blake  <eblake@redhat.com>
736
737         pipe2: fix C89 compile problem
738         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
739         Reported by Bruno Haible.
740
741         pipe, pipe2: don't corrupt fd on error
742         * lib/pipe.c (pipe): Leave fd unchanged on error.
743         * lib/pipe2.c (pipe2): Likewise.
744         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
745         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
746
747 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
748
749         mmap-anon: do not use regular expressions inadvertently
750         * m4/mmap-anon.m4: Remove trailing period from strings sought
751         in the output.
752
753 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
754
755         nanosleep: fix integer overflow problem
756         * lib/nanosleep.c (my_usleep): Don't assume signed integer
757         arithmetic wraps around on overflow.
758
759         nanosleep: simplify carrying
760         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
761         first call to the underyling nanosleep, not for the last one.
762         This doesn't fix any bugs, but it simplifies the computation of
763         the remaining delay.  Found while auditing integer overflow issues.
764
765         dup2: remove test for existence of fcntl
766         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
767         "#if HAVE_FCNTL", in the configure-time test program.
768         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
769         and therefore speeds up "configure" a bit.  Found while
770         adding the dup2 module to Emacs.
771
772 2011-06-24  Eric Blake  <eblake@redhat.com>
773
774         maint.mk: enhance useless header checks
775         * top/maint.mk (_sc_header_without_use): Check both include
776         styles.
777         (sc_prohibit_assert_without_use)
778         (sc_prohibit_close_stream_without_use)
779         (sc_prohibit_getopt_without_use)
780         (sc_prohibit_quotearg_without_use)
781         (sc_prohibit_quote_without_use)
782         (sc_prohibit_long_options_without_use)
783         (sc_prohibit_inttostr_without_use)
784         (sc_prohibit_ignore_value_without_use)
785         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
786         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
787         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
788         (sc_prohibit_hash_pjw_without_use)
789         (sc_prohibit_safe_read_without_use)
790         (sc_prohibit_argmatch_without_use)
791         (sc_prohibit_canonicalize_without_use)
792         (sc_prohibit_root_dev_ino_without_use)
793         (sc_prohibit_openat_without_use)
794         (sc_prohibit_c_ctype_without_use)
795         (sc_prohibit_signal_without_use)
796         (sc_prohibit_stdio--_without_use)
797         (sc_prohibit_stdio-safer_without_use)
798         (sc_prohibit_strings_without_use)
799         (sc_prohibit_intprops_without_use)
800         (sc_prohibit_stddef_without_use)
801         (sc_prohibit_xfreopen_without_use): Update clients.
802
803 2011-06-24  Jim Meyering  <meyering@redhat.com>
804
805         syntax-check: keep one maint.mk rule in sync with its header
806         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
807         of the bug Eric has just fixed, with today's commit 25e4c2ec.
808         I prefer to avoid temporary files here, so use <(...), but that
809         is not supported by /bin/sh, so...
810         (SHELL): Define to /bin/bash.
811
812 2011-06-24  Eric Blake  <eblake@redhat.com>
813
814         maint.mk: update sc_prohibit_intprops_without_use
815         * top/maint.mk (_intprops_names): Match recent changes.
816
817 2011-06-24  Bruno Haible  <bruno@clisp.org>
818
819         strerror-override: No-op tweak.
820         * lib/strerror-override.h (strerror_override): Reorder conditions,
821         for consistency with lib/strerror-override.c.
822
823 2011-06-23  Eric Blake  <eblake@redhat.com>
824
825         maint.mk: test further PATH_MAX issues
826         * top/maint.mk (sc_prohibit_path_max_array): Rename...
827         (sc_prohibit_path_max_allocation): ...and also test alloca.
828         Suggested by Jim Meyering.
829
830 2011-06-22  Eric Blake  <eblake@redhat.com>
831
832         maint.mk: add syntax-check to avoid char[PATH_MAX]
833         * top/maint.mk (sc_prohibit_path_max_array): New rule.
834
835         stat: be robust to PATH_MAX definition
836         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
837         * modules/stat (Depends-on): Add verify.
838
839         link: work around IRIX bug
840         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
841         * lib/link.c (rpl_link): Work around it.
842         * tests/test-link.h (test_link): Enhance test.
843         * doc/posix-functions/link.texi (link): Document the bug.
844
845         getopt: silence clang warning
846         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
847         dereference.
848         Reported by Gustavo Martin Domato.
849
850 2011-06-22  Jim Meyering  <meyering@redhat.com>
851
852         bootstrap: do not insert a blank line into each .gitignore file
853         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
854
855 2011-06-21  Eric Blake  <eblake@redhat.com>
856
857         perror: test for output mismatch
858         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
859         perror on IRIX.
860
861         strerror_r: fix OpenBSD behavior on out-of-range
862         * lib/strerror_r.c (strerror_r): Always use maximal string.
863         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
864
865         strerror_r: fix OpenBSD behavior on 0
866         * lib/strerror-override.c (strerror_override): Also override 0
867         when needed.
868         * lib/strerror-override.h (strerror_override): Likewise.
869         * lib/strerror.c (strerror): Simplify, now that 0 override is done
870         earlier.
871         * lib/strerror_r.c (strerror_r): Likewise.
872         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
873         behavior...
874         (gl_FUNC_STRERROR_0): ...into new macro.
875         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
876         is overridden.
877         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
878         * modules/strerror-override (Files): Add strerror.m4.
879         (configure.ac): Also provide override for 0 when needed.
880         * doc/posix-functions/strerror.texi (strerror): Document this.
881         * doc/posix-functions/perror.texi (perror): Likewise.
882
883         perror: adjust array size
884         * modules/perror (Depends-on): Add strerror-override.
885         * lib/perror.c (perror): Use it to avoid magic number.
886
887         strerror-override: reduce size
888         * lib/strerror-override.c (strerror_override): Use fewer lines.
889
890 2011-06-20  Bruno Haible  <bruno@clisp.org>
891
892         pathmax: Ensure correct value for PATH_MAX on HP-UX.
893         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
894
895 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
896
897         alloca: port to compilers that can optimize like GCC 4.6.0
898         * lib/alloca.c (find_stack_direction): New signature, taken from
899         Autoconf git.  This works with GCC 4.6.0.  This code should never
900         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
901         be used with other compilers that optimize as well as GCC 4.6.0 does.
902         (alloca): Adjust to new signature.
903         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
904         New macro, which patches Autoconf in a similar way.
905
906         c-stack: stop worrying about stack direction
907         * lib/c-stack.c (find_stack_direction): Remove.
908         (segv_handler): Don't worry about stack direction growth, as it's
909         too much of a pain to configure this correctly, given how compilers
910         are optimizing-away our stack-growth detection code.  Instead, assume
911         that any access to just before or just after the stack is OK.
912         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
913         Don't require AC_FUNC_ALLOCA; no longer needed.
914
915 2011-06-20  Eric Blake  <eblake@redhat.com>
916
917         test-stat: don't allocate PATH_MAX bytes
918         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
919         PATH_MAX-sized buffer.
920         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
921         * modules/stat-tests (Depends-on): Likewise.
922         * tests/test-fstatat.c (includes): Drop pathmax.h.
923         * tests/test-stat.c (includes): Likewise.
924         Reported by Bruno Haible.
925
926 2011-06-20  Bruno Haible  <bruno@clisp.org>
927
928         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
929         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
930         * lib/float.c: New file.
931         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
932         REPLACE_FLOAT_LDBL.
933         * modules/float (Files): Add lib/float.c.
934         (configure.ac): Invoke AC_LIBOBJ.
935         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
936
937 2011-06-20  Bruno Haible  <bruno@clisp.org>
938
939         Tests for module 'float'.
940         * modules/float-tests: New file.
941         * tests/test-float.c: New file.
942
943 2011-06-19  Bruno Haible  <bruno@clisp.org>
944
945         isinf: Coding style.
946         * lib/isinf.c: Use GNU coding style.
947
948 2011-06-19  Bruno Haible  <bruno@clisp.org>
949
950         linkat test: Avoid test failure on AIX 7.1.
951         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
952         * tests/test-link.h (test_link): Likewise.
953
954 2011-06-19  Bruno Haible  <bruno@clisp.org>
955
956         pread test: Avoid test failure on OpenBSD 4.9.
957         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
958
959 2011-06-19  Bruno Haible  <bruno@clisp.org>
960
961         sprintf-posix: Fix test failure on AIX 7.1.
962         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
963         * doc/posix-functions/dprintf.texi: Mention limited precision problem
964         on AIX.
965         * doc/posix-functions/fprintf.texi: Likewise.
966         * doc/posix-functions/printf.texi: Likewise.
967         * doc/posix-functions/snprintf.texi: Likewise.
968         * doc/posix-functions/sprintf.texi: Likewise.
969         * doc/posix-functions/vdprintf.texi: Likewise.
970         * doc/posix-functions/vfprintf.texi: Likewise.
971         * doc/posix-functions/vprintf.texi: Likewise.
972         * doc/posix-functions/vsnprintf.texi: Likewise.
973         * doc/posix-functions/vsprintf.texi: Likewise.
974
975 2011-06-19  Bruno Haible  <bruno@clisp.org>
976
977         roundl-ieee: Fix test failure on AIX 7.1.
978         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
979         * doc/posix-functions/roundl.texi: Mention problem with negative
980         arguments.
981
982 2011-06-19  Bruno Haible  <bruno@clisp.org>
983
984         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
985         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
986         * doc/posix-functions/round.texi: Mention problem with negative
987         arguments.
988         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
989
990 2011-06-19  Bruno Haible  <bruno@clisp.org>
991
992         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
993         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
994         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
995         * doc/posix-functions/roundf.texi: Mention problem with negative
996         arguments.
997         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
998
999 2011-06-19  Bruno Haible  <bruno@clisp.org>
1000
1001         ceilf-ieee: Work around bug on MacOS X 10.5.
1002         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
1003
1004         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
1005         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
1006         IEEE compliant, avoid compiler optimizations.
1007         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
1008         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1009         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
1010         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1011         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1012         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1013         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1014         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1015         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1016         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1017
1018 2011-06-19  Bruno Haible  <bruno@clisp.org>
1019
1020         ceilf-ieee: Work around bug on AIX 7.1.
1021         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
1022         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
1023
1024 2011-06-19  Bruno Haible  <bruno@clisp.org>
1025
1026         ceil-ieee: Work around bug on AIX 7.1.
1027         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
1028         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
1029
1030 2011-06-18  Bruno Haible  <bruno@clisp.org>
1031
1032         fsync test: Avoid test failure on MacOS X and AIX.
1033         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
1034         EINVAL.
1035
1036 2011-06-18  Bruno Haible  <bruno@clisp.org>
1037
1038         openat, fdopendir tests: Fix link errors.
1039         * modules/openat-tests (Depends-on): Add progname.
1040         * modules/fdopendir-tests (Depends-on): Likewise.
1041         * tests/test-fchownat.c: Include progname.h.
1042         (main): Call set_program_name.
1043         * tests/test-fstatat.c: Include progname.h.
1044         (main): Call set_program_name.
1045         * tests/test-mkdirat.c: Include progname.h.
1046         (main): Call set_program_name.
1047         * tests/test-openat.c: Include progname.h.
1048         (main): Call set_program_name.
1049         * tests/test-unlinkat.c: Include progname.h.
1050         (main): Call set_program_name.
1051         * tests/test-fdopendir.c: Include progname.h.
1052         (main): Call set_program_name.
1053
1054 2011-06-18  Bruno Haible  <bruno@clisp.org>
1055
1056         Doc update.
1057         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
1058         HP-UX.
1059         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
1060
1061 2011-06-18  Bruno Haible  <bruno@clisp.org>
1062
1063         getcwd tests: Avoid compilation error on HP-UX 11.31.
1064         * modules/getcwd-tests (Depends-on): Add pathmax.
1065         * tests/test-getcwd.c: Include pathmax.h.
1066
1067 2011-06-18  Bruno Haible  <bruno@clisp.org>
1068
1069         isfinite, isinf: Fix link error on AIX 6 and 7.
1070         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
1071         needed, also test the macro with a 'float' argument.
1072         * m4/isinf.m4 (gl_ISINF): Likewise.
1073
1074 2011-06-18  Bruno Haible  <bruno@clisp.org>
1075
1076         getloadavg: Don't clobber LIBS. Regression from previous commit.
1077         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
1078         AC_CHECK_LIB from here...
1079         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
1080         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
1081         gl_func_getloadavg_done.
1082         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1083
1084 2011-06-18  Bruno Haible  <bruno@clisp.org>
1085
1086         clean-temp: Improve documentation.
1087         * lib/clean-temp.h: Explain better how to use this module.
1088         Reported by John Darrington <john@darrington.wattle.id.au>.
1089
1090 2011-06-17  Bruno Haible  <bruno@clisp.org>
1091
1092         pread, pwrite: Avoid cc warning on AIX.
1093         * lib/unistd.in.h (pread): Undefine before defining as a macro.
1094         (pwrite): Likewise.
1095
1096 2011-06-17  Bruno Haible  <bruno@clisp.org>
1097
1098         spawn-pipe tests: Fix link error.
1099         * tests/test-spawn-pipe-child.c: Undefine fprintf.
1100         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1101
1102 2011-06-17  Bruno Haible  <bruno@clisp.org>
1103
1104         Tests: Remove unnecessary dependency.
1105         * modules/canonicalize-tests (Depends-on): Remove progname.
1106         * modules/chown-tests (Depends-on): Likewise.
1107         * modules/dirname-tests (Depends-on): Likewise.
1108         * modules/fdopendir-tests (Depends-on): Likewise.
1109         * modules/fdutimensat-tests (Depends-on): Likewise.
1110         * modules/hash-tests (Depends-on): Likewise.
1111         * modules/lchown-tests (Depends-on): Likewise.
1112         * modules/linkat-tests (Depends-on): Likewise.
1113         * modules/renameat-tests (Depends-on): Likewise.
1114         * modules/spawn-pipe-tests (Depends-on): Likewise.
1115         * modules/utimensat-tests (Depends-on): Likewise.
1116
1117 2011-06-17  Bruno Haible  <bruno@clisp.org>
1118
1119         spawn-pipe tests: Fix link error.
1120         * tests/test-spawn-pipe-child.c: Undefine fflush.
1121
1122 2011-06-17  Bruno Haible  <bruno@clisp.org>
1123
1124         Fix tests link errors.
1125         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
1126         * modules/chown-tests (Makefile.am): Don't link test-chown with
1127         LIBINTL.
1128         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
1129         LIBINTL.
1130         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
1131         LIBINTL.
1132         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
1133         LIBINTL.
1134
1135 2011-06-16  Bruno Haible  <bruno@clisp.org>
1136
1137         crypto/gc-sha1: Fix recent regression.
1138         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
1139         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
1140
1141         crypto/gc-md5: Fix recent regression.
1142         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
1143
1144         crypto/gc-md4: Fix recent regression.
1145         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
1146         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
1147
1148         crypto/gc-arctwo: Fix recent regression.
1149         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
1150         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
1151
1152         crypto/gc-rijndael: Fix recent regression.
1153         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
1154         (configure.ac): Invoke AC_LIBOBJ here.
1155         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
1156         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1157
1158         crypto/gc-hmac-sha1: Fix recent regression.
1159         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
1160         (configure.ac): Invoke AC_LIBOBJ here.
1161         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
1162         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1163
1164         crypto/gc-hmac-md5: Fix recent regression.
1165         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
1166         (configure.ac): Invoke AC_LIBOBJ here.
1167         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
1168         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1169
1170         crypto/gc-des: Fix recent regression.
1171         * modules/crypto/gc-des (Files): Remove m4/des.m4.
1172         (configure.ac): Invoke AC_LIBOBJ here.
1173         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
1174         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1175
1176         crypto/gc-arcfour: Fix recent regression.
1177         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
1178         (configure.ac): Invoke AC_LIBOBJ here.
1179         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
1180         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1181
1182 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
1183
1184         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
1185         After the 2011-05-21 change, this macro requires
1186         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
1187         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
1188
1189 2011-06-16  Bruno Haible  <bruno@clisp.org>
1190
1191         fprintftime: Move AC_LIBOBJ invocations to module description.
1192         * m4/fprintftime.m4: Remove file.
1193         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
1194         (configure.ac): Remove gl_FPRINTFTIME call.
1195         (Makefile.am): Augment lib_SOURCES.
1196         Reported by Jim Meyering.
1197
1198 2011-06-16  Bruno Haible  <bruno@clisp.org>
1199
1200         tmpfile-safer: Finish 2011-05-23 commit.
1201         * m4/stdio-safer.m4: Really remove file.
1202         Reported by Jim Meyering.
1203
1204 2011-06-16  Bruno Haible  <bruno@clisp.org>
1205
1206         syntax-check: Fix typo.
1207         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
1208         printf-posix.m4.
1209         Reported by Jim Meyering.
1210
1211 2011-06-13  Jim Meyering  <meyering@redhat.com>
1212
1213         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
1214         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
1215
1216 2011-05-23  Bruno Haible  <bruno@clisp.org>
1217
1218         yesno: Move AC_LIBOBJ invocations to module description.
1219         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
1220         * modules/yesno (Makefile.am): Augment lib_SOURCES.
1221
1222 2011-05-23  Bruno Haible  <bruno@clisp.org>
1223
1224         xstrtol: Move AC_LIBOBJ invocations to module description.
1225         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
1226         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
1227
1228 2011-05-23  Bruno Haible  <bruno@clisp.org>
1229
1230         xstrtold: Move AC_LIBOBJ invocations to module description.
1231         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
1232         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
1233
1234 2011-05-23  Bruno Haible  <bruno@clisp.org>
1235
1236         xstrtod: Move AC_LIBOBJ invocations to module description.
1237         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
1238         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
1239
1240 2011-05-23  Bruno Haible  <bruno@clisp.org>
1241
1242         xnanosleep: Move AC_LIBOBJ invocations to module description.
1243         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
1244         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
1245
1246 2011-05-23  Bruno Haible  <bruno@clisp.org>
1247
1248         xgetcwd: Move AC_LIBOBJ invocations to module description.
1249         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
1250         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
1251
1252 2011-05-23  Bruno Haible  <bruno@clisp.org>
1253
1254         xalloc: Move AC_LIBOBJ invocations to module description.
1255         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1256         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1257
1258 2011-05-23  Bruno Haible  <bruno@clisp.org>
1259
1260         write-any-file: Move AC_LIBOBJ invocations to module description.
1261         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1262         invocation.
1263         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1264
1265 2011-05-23  Bruno Haible  <bruno@clisp.org>
1266
1267         utimens: Move AC_LIBOBJ invocations to module description.
1268         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1269         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1270
1271 2011-05-23  Bruno Haible  <bruno@clisp.org>
1272
1273         utimecmp: Move AC_LIBOBJ invocations to module description.
1274         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1275         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1276
1277 2011-05-23  Bruno Haible  <bruno@clisp.org>
1278
1279         userspec: Move AC_LIBOBJ invocations to module description.
1280         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1281         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1282
1283 2011-05-23  Bruno Haible  <bruno@clisp.org>
1284
1285         unlinkdir: Move AC_LIBOBJ invocations to module description.
1286         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1287         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1288
1289 2011-05-23  Bruno Haible  <bruno@clisp.org>
1290
1291         unistd-safer: Move AC_LIBOBJ invocations to module description.
1292         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1293         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1294
1295 2011-05-23  Bruno Haible  <bruno@clisp.org>
1296
1297         tempname: Move AC_LIBOBJ invocations to module description.
1298         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1299         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1300
1301 2011-05-23  Bruno Haible  <bruno@clisp.org>
1302
1303         strftime: Move AC_LIBOBJ invocations to module description.
1304         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1305         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1306
1307 2011-05-23  Bruno Haible  <bruno@clisp.org>
1308
1309         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1310         * m4/stdlib-safer.m4: Remove file.
1311         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1312         (configure.ac): Remove gl_STDLIB_SAFER call.
1313         (Makefile.am): Augment lib_SOURCES.
1314
1315 2011-05-23  Bruno Haible  <bruno@clisp.org>
1316
1317         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1318         * m4/stdio-safer.m4: Remove file.
1319         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1320         (configure.ac): Remove gl_TMPFILE_SAFER call.
1321         (Makefile.am): Augment lib_SOURCES.
1322
1323 2011-05-23  Bruno Haible  <bruno@clisp.org>
1324
1325         popen-safer: Move AC_LIBOBJ invocations to module description.
1326         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1327         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1328         (configure.ac): Remove gl_POPEN_SAFER call.
1329         (Makefile.am): Augment lib_SOURCES.
1330
1331 2011-05-23  Bruno Haible  <bruno@clisp.org>
1332
1333         freopen-safer: Move AC_LIBOBJ invocations to module description.
1334         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1335         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1336         (configure.ac): Remove gl_FREOPEN_SAFER call.
1337         (Makefile.am): Augment lib_SOURCES.
1338
1339 2011-05-23  Bruno Haible  <bruno@clisp.org>
1340
1341         fopen-safer: Move AC_LIBOBJ invocations to module description.
1342         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1343         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1344         (configure.ac): Remove gl_FOPEN_SAFER call.
1345         (Makefile.am): Augment lib_SOURCES.
1346
1347 2011-05-23  Bruno Haible  <bruno@clisp.org>
1348
1349         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1350         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1351         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1352
1353 2011-05-23  Bruno Haible  <bruno@clisp.org>
1354
1355         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1356         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1357         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1358
1359 2011-05-23  Bruno Haible  <bruno@clisp.org>
1360
1361         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1362         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1363         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1364
1365 2011-05-23  Bruno Haible  <bruno@clisp.org>
1366
1367         settime: Move AC_LIBOBJ invocations to module description.
1368         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1369         * modules/settime (Makefile.am): Augment lib_SOURCES.
1370
1371 2011-05-23  Bruno Haible  <bruno@clisp.org>
1372
1373         savedir: Move AC_LIBOBJ invocations to module description.
1374         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1375         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1376
1377 2011-05-23  Bruno Haible  <bruno@clisp.org>
1378
1379         save-cwd: Move AC_LIBOBJ invocations to module description.
1380         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1381         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1382
1383 2011-05-23  Bruno Haible  <bruno@clisp.org>
1384
1385         same: Move AC_LIBOBJ invocations to module description.
1386         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1387         * modules/same (Makefile.am): Augment lib_SOURCES.
1388
1389 2011-05-23  Bruno Haible  <bruno@clisp.org>
1390
1391         safe-write: Move AC_LIBOBJ invocations to module description.
1392         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1393         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1394         instead of gl_SAFE_WRITE.
1395         (Makefile.am): Augment lib_SOURCES.
1396
1397 2011-05-23  Bruno Haible  <bruno@clisp.org>
1398
1399         safe-read: Move AC_LIBOBJ invocations to module description.
1400         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1401         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1402         of gl_SAFE_READ.
1403         (Makefile.am): Augment lib_SOURCES.
1404
1405 2011-05-23  Bruno Haible  <bruno@clisp.org>
1406
1407         safe-alloc: Move AC_LIBOBJ invocations to module description.
1408         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1409         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1410
1411 2011-05-23  Bruno Haible  <bruno@clisp.org>
1412
1413         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1414         * m4/rijndael.m4: Remove file.
1415         * modules/crypto/rijndael (Files): Remove it.
1416         (configure.ac): Remove gl_RIJNDAEL call.
1417         (Makefile.am): Augment lib_SOURCES.
1418
1419 2011-05-23  Bruno Haible  <bruno@clisp.org>
1420
1421         readtokens: Move AC_LIBOBJ invocations to module description.
1422         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1423         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1424
1425 2011-05-23  Bruno Haible  <bruno@clisp.org>
1426
1427         read-file: Move AC_LIBOBJ invocations to module description.
1428         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1429         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1430         of gl_FUNC_READ_FILE.
1431         (Makefile.am): Augment lib_SOURCES.
1432
1433 2011-05-23  Bruno Haible  <bruno@clisp.org>
1434
1435         quotearg: Move AC_LIBOBJ invocations to module description.
1436         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1437         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1438
1439 2011-05-23  Bruno Haible  <bruno@clisp.org>
1440
1441         quote: Move AC_LIBOBJ invocations to module description.
1442         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1443         * modules/quote (Makefile.am): Augment lib_SOURCES.
1444
1445 2011-05-23  Bruno Haible  <bruno@clisp.org>
1446
1447         posixver: Move AC_LIBOBJ invocations to module description.
1448         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1449         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1450
1451 2011-05-23  Bruno Haible  <bruno@clisp.org>
1452
1453         posixtm: Move AC_LIBOBJ invocations to module description.
1454         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1455         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1456
1457 2011-05-23  Bruno Haible  <bruno@clisp.org>
1458
1459         physmem: Move AC_LIBOBJ invocations to module description.
1460         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1461         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1462
1463 2011-05-23  Bruno Haible  <bruno@clisp.org>
1464
1465         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1466         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1467         invocation.
1468         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1469
1470 2011-05-23  Bruno Haible  <bruno@clisp.org>
1471
1472         mpsort: Move AC_LIBOBJ invocations to module description.
1473         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
1474         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
1475
1476 2011-05-23  Bruno Haible  <bruno@clisp.org>
1477
1478         modechange: Move AC_LIBOBJ invocations to module description.
1479         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
1480         * modules/modechange (Makefile.am): Augment lib_SOURCES.
1481
1482 2011-05-23  Bruno Haible  <bruno@clisp.org>
1483
1484         mkdir-p: Move AC_LIBOBJ invocations to module description.
1485         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
1486         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
1487
1488 2011-05-23  Bruno Haible  <bruno@clisp.org>
1489
1490         mkancesdirs: Move AC_LIBOBJ invocations to module description.
1491         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
1492         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
1493
1494 2011-05-23  Bruno Haible  <bruno@clisp.org>
1495
1496         mgetgroups: Move AC_LIBOBJ invocations to module description.
1497         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
1498         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
1499
1500 2011-05-23  Bruno Haible  <bruno@clisp.org>
1501
1502         memxor: Move AC_LIBOBJ invocations to module description.
1503         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
1504         * modules/memxor (Makefile.am): Augment lib_SOURCES.
1505
1506 2011-05-23  Bruno Haible  <bruno@clisp.org>
1507
1508         memcoll: Move AC_LIBOBJ invocations to module description.
1509         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
1510         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
1511
1512 2011-05-23  Bruno Haible  <bruno@clisp.org>
1513
1514         memcasecmp: Move AC_LIBOBJ invocations to module description.
1515         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
1516         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
1517
1518 2011-05-23  Bruno Haible  <bruno@clisp.org>
1519
1520         crypto/md5: Move AC_LIBOBJ invocations to module description.
1521         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
1522         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
1523
1524 2011-05-23  Bruno Haible  <bruno@clisp.org>
1525
1526         crypto/md4: Move AC_LIBOBJ invocations to module description.
1527         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
1528         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
1529
1530 2011-05-23  Bruno Haible  <bruno@clisp.org>
1531
1532         crypto/md2: Move AC_LIBOBJ invocations to module description.
1533         * m4/md2.m4: Remove file.
1534         * modules/crypto/md2 (Files): Remove it.
1535         (configure.ac): Remove gl_MD2 call.
1536         (Makefile.am): Augment lib_SOURCES.
1537
1538 2011-05-23  Bruno Haible  <bruno@clisp.org>
1539
1540         long-options: Move AC_LIBOBJ invocations to module description.
1541         * m4/long-options.m4: Remove file.
1542         * modules/long-options (Files): Remove it.
1543         (configure.ac): Remove gl_LONG_OPTIONS call.
1544         (Makefile.am): Augment lib_SOURCES.
1545
1546 2011-05-23  Bruno Haible  <bruno@clisp.org>
1547
1548         i-ring: Move AC_LIBOBJ invocations to module description.
1549         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
1550         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
1551
1552 2011-05-23  Bruno Haible  <bruno@clisp.org>
1553
1554         idcache: Move AC_LIBOBJ invocations to module description.
1555         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
1556         * modules/idcache (Makefile.am): Augment lib_SOURCES.
1557
1558 2011-05-23  Bruno Haible  <bruno@clisp.org>
1559
1560         human: Move AC_LIBOBJ invocations to module description.
1561         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1562         * modules/human (Makefile.am): Augment lib_SOURCES.
1563
1564 2011-05-23  Bruno Haible  <bruno@clisp.org>
1565
1566         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1567         * m4/hmac-sha1.m4: Remove file.
1568         * modules/crypto/hmac-sha1 (Files): Remove it.
1569         (configure.ac): Remove gl_HMAC_SHA1 call.
1570         (Makefile.am): Augment lib_SOURCES.
1571
1572 2011-05-23  Bruno Haible  <bruno@clisp.org>
1573
1574         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1575         * m4/hmac-md5.m4: Remove file.
1576         * modules/crypto/hmac-md5 (Files): Remove it.
1577         (configure.ac): Remove gl_HMAC_MD5 call.
1578         (Makefile.am): Augment lib_SOURCES.
1579
1580 2011-05-23  Bruno Haible  <bruno@clisp.org>
1581
1582         hash: Move AC_LIBOBJ invocations to module description.
1583         * m4/hash.m4: Remove file.
1584         * modules/hash (Files): Remove it.
1585         (configure.ac): Remove gl_HASH call.
1586         (Makefile.am): Augment lib_SOURCES.
1587
1588 2011-05-23  Bruno Haible  <bruno@clisp.org>
1589
1590         hard-locale: Move AC_LIBOBJ invocations to module description.
1591         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1592         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1593
1594 2011-05-23  Bruno Haible  <bruno@clisp.org>
1595
1596         getugroups: Move AC_LIBOBJ invocations to module description.
1597         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1598         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1599
1600 2011-05-23  Bruno Haible  <bruno@clisp.org>
1601
1602         gettime: Move AC_LIBOBJ invocations to module description.
1603         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1604         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1605
1606 2011-05-23  Bruno Haible  <bruno@clisp.org>
1607
1608         getndelim2: Move AC_LIBOBJ invocations to module description.
1609         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1610         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1611
1612 2011-05-23  Bruno Haible  <bruno@clisp.org>
1613
1614         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1615         * m4/gc-pbkdf2-sha1.m4: Remove file.
1616         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1617         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1618         (Makefile.am): Augment lib_SOURCES.
1619
1620 2011-05-23  Bruno Haible  <bruno@clisp.org>
1621
1622         fts: Move AC_LIBOBJ invocations to module description.
1623         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1624         * modules/fts (configure.ac): ... to here.
1625
1626 2011-05-23  Bruno Haible  <bruno@clisp.org>
1627
1628         file-type: Move AC_LIBOBJ invocations to module description.
1629         * m4/file-type.m4: Remove file.
1630         * modules/file-type (Files): Remove it.
1631         (configure.ac): Remove gl_FILE_TYPE call.
1632         (Makefile.am): Augment lib_SOURCES.
1633
1634 2011-05-23  Bruno Haible  <bruno@clisp.org>
1635
1636         filenamecat*: Respect rules for use of AC_LIBOBJ.
1637         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
1638         Remove AC_LIBOBJ invocation.
1639         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
1640         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
1641
1642 2011-05-23  Bruno Haible  <bruno@clisp.org>
1643
1644         filemode: Move AC_LIBOBJ invocations to module description.
1645         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
1646         * modules/filemode (Makefile.am): Augment lib_SOURCES.
1647
1648 2011-05-23  Bruno Haible  <bruno@clisp.org>
1649
1650         openat-safer: Move AC_LIBOBJ invocations to module description.
1651         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
1652         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
1653
1654 2011-05-23  Bruno Haible  <bruno@clisp.org>
1655
1656         fcntl-safer: Move AC_LIBOBJ invocations to module description.
1657         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
1658         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
1659
1660 2011-05-23  Bruno Haible  <bruno@clisp.org>
1661
1662         exclude: Move AC_LIBOBJ invocations to module description.
1663         * m4/exclude.m4: Remove file.
1664         * modules/exclude (Files): Remove it.
1665         (configure.ac): Remove gl_EXCLUDE call.
1666         (Makefile.am): Augment lib_SOURCES.
1667
1668 2011-05-23  Bruno Haible  <bruno@clisp.org>
1669
1670         dirname*: Respect rules for use of AC_LIBOBJ.
1671         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
1672         invocations.
1673         * modules/dirname (Makefile.am): Augment lib_SOURCES.
1674         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
1675
1676 2011-05-23  Bruno Haible  <bruno@clisp.org>
1677
1678         dirent-safer: Move AC_LIBOBJ invocations to module description.
1679         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
1680         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
1681
1682 2011-05-23  Bruno Haible  <bruno@clisp.org>
1683
1684         crypto/des: Move AC_LIBOBJ invocations to module description.
1685         * m4/des.m4: Remove file.
1686         * modules/crypto/des (Files): Remove it.
1687         (configure.ac): Remove gl_DES call.
1688         (Makefile.am): Augment lib_SOURCES.
1689
1690 2011-05-23  Bruno Haible  <bruno@clisp.org>
1691
1692         cycle-check: Move AC_LIBOBJ invocations to module description.
1693         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
1694         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
1695
1696 2011-05-23  Bruno Haible  <bruno@clisp.org>
1697
1698         c-strtold: Move AC_LIBOBJ invocations to module description.
1699         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
1700         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
1701
1702 2011-05-23  Bruno Haible  <bruno@clisp.org>
1703
1704         c-strtod: Move AC_LIBOBJ invocations to module description.
1705         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
1706         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
1707
1708 2011-05-23  Bruno Haible  <bruno@clisp.org>
1709
1710         crc: Move AC_LIBOBJ invocations to module description.
1711         * m4/crc.m4: Remove file.
1712         * modules/crc (Files): Remove it.
1713         (configure.ac): Remove gl_CRC call.
1714         (Makefile.am): Augment lib_SOURCES.
1715
1716 2011-05-23  Bruno Haible  <bruno@clisp.org>
1717
1718         close-stream: Move AC_LIBOBJ invocations to module description.
1719         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
1720         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
1721
1722 2011-05-23  Bruno Haible  <bruno@clisp.org>
1723
1724         closeout: Move AC_LIBOBJ invocations to module description.
1725         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
1726         * modules/closeout (Makefile.am): Augment lib_SOURCES.
1727
1728 2011-05-23  Bruno Haible  <bruno@clisp.org>
1729
1730         closein: Move AC_LIBOBJ invocations to module description.
1731         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
1732         * modules/closein (Makefile.am): Augment lib_SOURCES.
1733
1734 2011-05-23  Bruno Haible  <bruno@clisp.org>
1735
1736         cloexec: Move AC_LIBOBJ invocations to module description.
1737         * m4/cloexec.m4: Remove file.
1738         * modules/cloexec (Files): Remove it.
1739         (configure.ac): Remove gl_CLOEXEC call.
1740         (Makefile.am): Augment lib_SOURCES.
1741
1742 2011-05-23  Bruno Haible  <bruno@clisp.org>
1743
1744         check-version: Move AC_LIBOBJ invocations to module description.
1745         * m4/check-version.m4: Remove file.
1746         * modules/check-version (Files): Remove it.
1747         (configure.ac): Remove gl_CHECK_VERSION call.
1748         (Makefile.am): Augment lib_SOURCES.
1749
1750 2011-05-23  Bruno Haible  <bruno@clisp.org>
1751
1752         chdir-safer: Move AC_LIBOBJ invocations to module description.
1753         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
1754         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
1755
1756 2011-05-23  Bruno Haible  <bruno@clisp.org>
1757
1758         canonicalize: Move AC_LIBOBJ invocations to module description.
1759         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
1760         AC_LIBOBJ invocation.
1761         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
1762
1763 2011-05-23  Bruno Haible  <bruno@clisp.org>
1764
1765         canon-host: Move AC_LIBOBJ invocations to module description.
1766         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
1767         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
1768         instead of gl_CANON_HOST.
1769         (Makefile.am): Augment lib_SOURCES.
1770
1771 2011-05-23  Bruno Haible  <bruno@clisp.org>
1772
1773         backupfile: Move AC_LIBOBJ invocations to module description.
1774         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
1775         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
1776
1777 2011-05-23  Bruno Haible  <bruno@clisp.org>
1778
1779         argmatch: Move AC_LIBOBJ invocations to module description.
1780         * m4/argmatch.m4: Remove file.
1781         * modules/argmatch (Files): Remove it.
1782         (configure.ac): Remove gl_ARGMATCH call.
1783         (Makefile.am): Augment lib_SOURCES.
1784
1785 2011-05-23  Bruno Haible  <bruno@clisp.org>
1786
1787         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
1788         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
1789         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
1790
1791 2011-05-23  Bruno Haible  <bruno@clisp.org>
1792
1793         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
1794         * m4/arcfour.m4: Remove file.
1795         * modules/crypto/arcfour (Files): Remove it.
1796         (configure.ac): Remove gl_ARCFOUR call.
1797         (Makefile.am): Augment lib_SOURCES.
1798
1799 2011-05-22  Bruno Haible  <bruno@clisp.org>
1800
1801         write: Move AC_LIBOBJ invocations to module description.
1802         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
1803         * modules/write (configure.ac): ... to here.
1804
1805 2011-05-22  Bruno Haible  <bruno@clisp.org>
1806
1807         wmemset: Move AC_LIBOBJ invocations to module description.
1808         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
1809         here...
1810         * modules/wmemset (configure.ac): ... to here.
1811
1812 2011-05-22  Bruno Haible  <bruno@clisp.org>
1813
1814         wmemmove: Move AC_LIBOBJ invocations to module description.
1815         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
1816         here...
1817         * modules/wmemmove (configure.ac): ... to here.
1818
1819 2011-05-22  Bruno Haible  <bruno@clisp.org>
1820
1821         wmemcpy: Move AC_LIBOBJ invocations to module description.
1822         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
1823         here...
1824         * modules/wmemcpy (configure.ac): ... to here.
1825
1826 2011-05-22  Bruno Haible  <bruno@clisp.org>
1827
1828         wmemcmp: Move AC_LIBOBJ invocations to module description.
1829         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
1830         here...
1831         * modules/wmemcmp (configure.ac): ... to here.
1832
1833 2011-05-22  Bruno Haible  <bruno@clisp.org>
1834
1835         wmemchr: Move AC_LIBOBJ invocations to module description.
1836         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
1837         here...
1838         * modules/wmemchr (configure.ac): ... to here.
1839
1840 2011-05-22  Bruno Haible  <bruno@clisp.org>
1841
1842         wcswidth: Move AC_LIBOBJ invocations to module description.
1843         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
1844         here...
1845         * modules/wcswidth (configure.ac): ... to here.
1846
1847 2011-05-22  Bruno Haible  <bruno@clisp.org>
1848
1849         wcwidth: Respect rules for use of AC_LIBOBJ.
1850         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
1851         invocation from here...
1852         * modules/wcwidth (configure.ac): ... to here.
1853         (Depends-on): Update conditions.
1854
1855 2011-05-22  Bruno Haible  <bruno@clisp.org>
1856
1857         wctype: Move AC_LIBOBJ invocations to module description.
1858         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
1859         invocation from here...
1860         * modules/wctype (configure.ac): ... to here.
1861         (Depends-on): Update conditions.
1862
1863 2011-05-22  Bruno Haible  <bruno@clisp.org>
1864
1865         wctrans: Move AC_LIBOBJ invocations to module description.
1866         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
1867         invocation from here...
1868         * modules/wctrans (configure.ac): ... to here.
1869
1870 2011-05-22  Bruno Haible  <bruno@clisp.org>
1871
1872         wctomb: Move AC_LIBOBJ invocations to module description.
1873         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
1874         invocations from here...
1875         * modules/wctomb (configure.ac): ... to here.
1876
1877 2011-05-22  Bruno Haible  <bruno@clisp.org>
1878
1879         wctob: Move AC_LIBOBJ invocations to module description.
1880         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
1881         gl_PREREQ_WCTOB invocations from here...
1882         * modules/wctob (configure.ac): ... to here.
1883         (Depends-on): Update conditions.
1884
1885 2011-05-22  Bruno Haible  <bruno@clisp.org>
1886
1887         wcsxfrm: Move AC_LIBOBJ invocations to module description.
1888         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
1889         here...
1890         * modules/wcsxfrm (configure.ac): ... to here.
1891
1892 2011-05-22  Bruno Haible  <bruno@clisp.org>
1893
1894         wcstok: Move AC_LIBOBJ invocations to module description.
1895         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
1896         * modules/wcstok (configure.ac): ... to here.
1897
1898 2011-05-22  Bruno Haible  <bruno@clisp.org>
1899
1900         wcsstr: Move AC_LIBOBJ invocations to module description.
1901         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
1902         * modules/wcsstr (configure.ac): ... to here.
1903
1904 2011-05-22  Bruno Haible  <bruno@clisp.org>
1905
1906         wcsspn: Move AC_LIBOBJ invocations to module description.
1907         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
1908         * modules/wcsspn (configure.ac): ... to here.
1909
1910 2011-05-22  Bruno Haible  <bruno@clisp.org>
1911
1912         wcsrtombs: Move AC_LIBOBJ invocations to module description.
1913         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
1914         gl_PREREQ_WCSRTOMBS invocations from here...
1915         * modules/wcsrtombs (configure.ac): ... to here.
1916
1917 2011-05-22  Bruno Haible  <bruno@clisp.org>
1918
1919         wcsrchr: Move AC_LIBOBJ invocations to module description.
1920         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
1921         here...
1922         * modules/wcsrchr (configure.ac): ... to here.
1923
1924 2011-05-22  Bruno Haible  <bruno@clisp.org>
1925
1926         wcspbrk: Move AC_LIBOBJ invocations to module description.
1927         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
1928         here...
1929         * modules/wcspbrk (configure.ac): ... to here.
1930
1931 2011-05-22  Bruno Haible  <bruno@clisp.org>
1932
1933         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
1934         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
1935         gl_PREREQ_WCSNRTOMBS invocations from here...
1936         * modules/wcsnrtombs (configure.ac): ... to here.
1937
1938 2011-05-22  Bruno Haible  <bruno@clisp.org>
1939
1940         wcsnlen: Move AC_LIBOBJ invocations to module description.
1941         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
1942         here...
1943         * modules/wcsnlen (configure.ac): ... to here.
1944
1945 2011-05-22  Bruno Haible  <bruno@clisp.org>
1946
1947         wcsncpy: Move AC_LIBOBJ invocations to module description.
1948         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
1949         here...
1950         * modules/wcsncpy (configure.ac): ... to here.
1951
1952 2011-05-22  Bruno Haible  <bruno@clisp.org>
1953
1954         wcsncmp: Move AC_LIBOBJ invocations to module description.
1955         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
1956         here...
1957         * modules/wcsncmp (configure.ac): ... to here.
1958
1959 2011-05-22  Bruno Haible  <bruno@clisp.org>
1960
1961         wcsncat: Move AC_LIBOBJ invocations to module description.
1962         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
1963         here...
1964         * modules/wcsncat (configure.ac): ... to here.
1965
1966 2011-05-22  Bruno Haible  <bruno@clisp.org>
1967
1968         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
1969         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
1970         from here...
1971         * modules/wcsncasecmp (configure.ac): ... to here.
1972
1973 2011-05-22  Bruno Haible  <bruno@clisp.org>
1974
1975         wcslen: Move AC_LIBOBJ invocations to module description.
1976         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
1977         * modules/wcslen (configure.ac): ... to here.
1978
1979 2011-05-22  Bruno Haible  <bruno@clisp.org>
1980
1981         wcsdup: Move AC_LIBOBJ invocations to module description.
1982         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
1983         * modules/wcsdup (configure.ac): ... to here.
1984
1985 2011-05-22  Bruno Haible  <bruno@clisp.org>
1986
1987         wcscspn: Move AC_LIBOBJ invocations to module description.
1988         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
1989         here...
1990         * modules/wcscspn (configure.ac): ... to here.
1991
1992 2011-05-22  Bruno Haible  <bruno@clisp.org>
1993
1994         wcscpy: Move AC_LIBOBJ invocations to module description.
1995         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
1996         * modules/wcscpy (configure.ac): ... to here.
1997
1998 2011-05-22  Bruno Haible  <bruno@clisp.org>
1999
2000         wcscoll: Move AC_LIBOBJ invocations to module description.
2001         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
2002         here...
2003         * modules/wcscoll (configure.ac): ... to here.
2004
2005 2011-05-22  Bruno Haible  <bruno@clisp.org>
2006
2007         wcscmp: Move AC_LIBOBJ invocations to module description.
2008         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
2009         * modules/wcscmp (configure.ac): ... to here.
2010
2011 2011-05-22  Bruno Haible  <bruno@clisp.org>
2012
2013         wcschr: Move AC_LIBOBJ invocations to module description.
2014         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
2015         * modules/wcschr (configure.ac): ... to here.
2016
2017 2011-05-22  Bruno Haible  <bruno@clisp.org>
2018
2019         wcscat: Move AC_LIBOBJ invocations to module description.
2020         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
2021         * modules/wcscat (configure.ac): ... to here.
2022
2023 2011-05-22  Bruno Haible  <bruno@clisp.org>
2024
2025         wcscasecmp: Move AC_LIBOBJ invocations to module description.
2026         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
2027         here...
2028         * modules/wcscasecmp (configure.ac): ... to here.
2029
2030 2011-05-22  Bruno Haible  <bruno@clisp.org>
2031
2032         wcrtomb: Move AC_LIBOBJ invocations to module description.
2033         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
2034         invocations from here...
2035         * modules/wcrtomb (configure.ac): ... to here.
2036
2037 2011-05-22  Bruno Haible  <bruno@clisp.org>
2038
2039         wcpncpy: Move AC_LIBOBJ invocations to module description.
2040         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
2041         here...
2042         * modules/wcpncpy (configure.ac): ... to here.
2043
2044 2011-05-22  Bruno Haible  <bruno@clisp.org>
2045
2046         wcpcpy: Move AC_LIBOBJ invocations to module description.
2047         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
2048         * modules/wcpcpy (configure.ac): ... to here.
2049
2050 2011-05-22  Bruno Haible  <bruno@clisp.org>
2051
2052         waitpid: Move AC_LIBOBJ invocations to module description.
2053         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
2054         invocation from here...
2055         * modules/waitpid (configure.ac): ... to here.
2056
2057 2011-05-22  Bruno Haible  <bruno@clisp.org>
2058
2059         utimensat: Move AC_LIBOBJ invocations to module description.
2060         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
2061         here...
2062         * modules/utimensat (configure.ac): ... to here.
2063
2064 2011-05-22  Bruno Haible  <bruno@clisp.org>
2065
2066         usleep: Move AC_LIBOBJ invocations to module description.
2067         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
2068         here...
2069         * modules/usleep (configure.ac): ... to here.
2070
2071 2011-05-22  Bruno Haible  <bruno@clisp.org>
2072
2073         unlockpt: Move AC_LIBOBJ invocations to module description.
2074         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
2075         gl_PREREQ_UNLOCKPT invocations from here...
2076         * modules/unlockpt (configure.ac): ... to here.
2077
2078 2011-05-22  Bruno Haible  <bruno@clisp.org>
2079
2080         unlink: Respect rules for use of AC_LIBOBJ.
2081         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
2082         * modules/unlink (configure.ac): ... to here.
2083
2084 2011-05-22  Bruno Haible  <bruno@clisp.org>
2085
2086         uname: Move AC_LIBOBJ invocations to module description.
2087         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
2088         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
2089         here...
2090         * modules/uname (configure.ac): ... to here.
2091
2092 2011-05-22  Bruno Haible  <bruno@clisp.org>
2093
2094         ttyname_r: Move AC_LIBOBJ invocations to module description.
2095         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
2096         gl_PREREQ_TTYNAME_R invocations from here...
2097         * modules/ttyname_r (configure.ac): ... to here.
2098
2099 2011-05-22  Bruno Haible  <bruno@clisp.org>
2100
2101         tsearch: Move AC_LIBOBJ invocations to module description.
2102         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
2103         invocations from here...
2104         * modules/tsearch (configure.ac): ... to here.
2105
2106 2011-05-22  Bruno Haible  <bruno@clisp.org>
2107
2108         towctrans: Move AC_LIBOBJ invocations to module description.
2109         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
2110         AC_LIBOBJ invocation from here...
2111         * modules/towctrans (configure.ac): ... to here.
2112
2113 2011-05-22  Bruno Haible  <bruno@clisp.org>
2114
2115         tmpfile: Move AC_LIBOBJ invocations to module description.
2116         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
2117         invocations from here...
2118         * modules/tmpfile (configure.ac): ... to here.
2119
2120 2011-05-22  Bruno Haible  <bruno@clisp.org>
2121
2122         times: Move AC_LIBOBJ invocations to module description.
2123         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
2124         * modules/times (configure.ac): ... to here.
2125
2126 2011-05-22  Bruno Haible  <bruno@clisp.org>
2127
2128         time_r: Move AC_LIBOBJ invocations to module description.
2129         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
2130         invocations from here...
2131         * modules/time_r (configure.ac): ... to here.
2132
2133 2011-05-22  Bruno Haible  <bruno@clisp.org>
2134
2135         timegm: Move AC_LIBOBJ invocations to module description.
2136         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
2137         invocations from here...
2138         * modules/timegm (configure.ac): ... to here.
2139
2140 2011-05-22  Bruno Haible  <bruno@clisp.org>
2141
2142         tcgetsid: Move AC_LIBOBJ invocations to module description.
2143         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
2144         and gl_PREREQ_TCGETSID invocations from here...
2145         * modules/tcgetsid (configure.ac): ... to here.
2146         (Depends-on): Update conditions.
2147
2148 2011-05-22  Bruno Haible  <bruno@clisp.org>
2149
2150         symlinkat: Move AC_LIBOBJ invocations to module description.
2151         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
2152         here...
2153         * modules/symlinkat (configure.ac): ... to here.
2154
2155 2011-05-22  Bruno Haible  <bruno@clisp.org>
2156
2157         symlink: Move AC_LIBOBJ invocations to module description.
2158         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
2159         here...
2160         * modules/symlink (configure.ac): ... to here.
2161
2162 2011-05-22  Bruno Haible  <bruno@clisp.org>
2163
2164         strverscmp: Move AC_LIBOBJ invocations to module description.
2165         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
2166         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
2167         from here...
2168         * modules/strverscmp (configure.ac): ... to here.
2169
2170 2011-05-22  Bruno Haible  <bruno@clisp.org>
2171
2172         strtok_r: Move AC_LIBOBJ invocations to module description.
2173         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
2174         and gl_PREREQ_STRTOK_R invocations from here...
2175         * modules/strtok_r (configure.ac): ... to here.
2176         (Depends-on): Update conditions.
2177
2178 2011-05-22  Bruno Haible  <bruno@clisp.org>
2179
2180         strtoumax: Move AC_LIBOBJ invocations to module description.
2181         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
2182         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
2183         from here...
2184         * modules/strtoumax (configure.ac): ... to here.
2185
2186 2011-05-22  Bruno Haible  <bruno@clisp.org>
2187
2188         strtoimax: Move AC_LIBOBJ invocations to module description.
2189         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
2190         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
2191         from here...
2192         * modules/strtoimax (configure.ac): ... to here.
2193
2194 2011-05-22  Bruno Haible  <bruno@clisp.org>
2195
2196         strtoull: Move AC_LIBOBJ invocations to module description.
2197         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
2198         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
2199         from here...
2200         * modules/strtoull (configure.ac): ... to here.
2201
2202 2011-05-22  Bruno Haible  <bruno@clisp.org>
2203
2204         strtoll: Move AC_LIBOBJ invocations to module description.
2205         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
2206         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
2207         here...
2208         * modules/strtoll (configure.ac): ... to here.
2209
2210 2011-05-22  Bruno Haible  <bruno@clisp.org>
2211
2212         strtoul: Move AC_LIBOBJ invocations to module description.
2213         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
2214         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2215         * modules/strtoul (configure.ac): ... to here.
2216
2217 2011-05-22  Bruno Haible  <bruno@clisp.org>
2218
2219         strtol: Move AC_LIBOBJ invocations to module description.
2220         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
2221         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2222         * modules/strtol (configure.ac): ... to here.
2223
2224 2011-05-22  Bruno Haible  <bruno@clisp.org>
2225
2226         strtod: Move AC_LIBOBJ invocations to module description.
2227         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
2228         invocations from here...
2229         * modules/strtod (configure.ac): ... to here.
2230
2231 2011-05-22  Bruno Haible  <bruno@clisp.org>
2232
2233         strstr*: Move AC_LIBOBJ invocations to module description.
2234         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
2235         invocations from here...
2236         * modules/strstr-simple (configure.ac): ... to here.
2237         * modules/strstr (configure.ac): ... and here.
2238
2239 2011-05-22  Bruno Haible  <bruno@clisp.org>
2240
2241         strsignal: Move AC_LIBOBJ invocations to module description.
2242         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
2243         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
2244         * modules/strsignal (configure.ac): ... to here.
2245         (Depends-on): Update conditions.
2246
2247 2011-05-22  Bruno Haible  <bruno@clisp.org>
2248
2249         strsep: Move AC_LIBOBJ invocations to module description.
2250         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
2251         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
2252         here...
2253         * modules/strsep (configure.ac): ... to here.
2254
2255 2011-05-22  Bruno Haible  <bruno@clisp.org>
2256
2257         strptime: Move AC_LIBOBJ invocations to module description.
2258         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2259         gl_PREREQ_STRPTIME invocations from here...
2260         * modules/strptime (configure.ac): ... to here.
2261
2262 2011-05-22  Bruno Haible  <bruno@clisp.org>
2263
2264         strpbrk: Move AC_LIBOBJ invocations to module description.
2265         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2266         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2267         here...
2268         * modules/strpbrk (configure.ac): ... to here.
2269
2270 2011-05-22  Bruno Haible  <bruno@clisp.org>
2271
2272         strnlen: Move AC_LIBOBJ invocations to module description.
2273         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2274         invocations from here...
2275         * modules/strnlen (configure.ac): ... to here.
2276
2277 2011-05-22  Bruno Haible  <bruno@clisp.org>
2278
2279         strndup: Move AC_LIBOBJ invocations to module description.
2280         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2281         invocations from here...
2282         * modules/strndup (configure.ac): ... to here.
2283         (Depends-on): Update conditions.
2284
2285 2011-05-22  Bruno Haible  <bruno@clisp.org>
2286
2287         strncat: Move AC_LIBOBJ invocations to module description.
2288         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2289         invocations from here...
2290         * modules/strncat (configure.ac): ... to here.
2291
2292 2011-05-22  Bruno Haible  <bruno@clisp.org>
2293
2294         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2295         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2296         invocations from here...
2297         * modules/strdup (configure.ac): ... to here.
2298         * modules/strdup-posix (configure.ac): ... and here.
2299
2300 2011-05-22  Bruno Haible  <bruno@clisp.org>
2301
2302         strcspn: Move AC_LIBOBJ invocations to module description.
2303         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2304         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2305         here...
2306         * modules/strcspn (configure.ac): ... to here.
2307
2308 2011-05-22  Bruno Haible  <bruno@clisp.org>
2309
2310         strchrnul: Move AC_LIBOBJ invocations to module description.
2311         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2312         gl_PREREQ_STRCHRNUL invocations from here...
2313         * modules/strchrnul (configure.ac): ... to here.
2314
2315 2011-05-22  Bruno Haible  <bruno@clisp.org>
2316
2317         strcasestr*: Move AC_LIBOBJ invocations to module description.
2318         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2319         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2320         * modules/strcasestr-simple (configure.ac): ... to here.
2321         * modules/strcasestr (configure.ac): ... and here.
2322
2323 2011-05-22  Bruno Haible  <bruno@clisp.org>
2324
2325         strcase: Move AC_LIBOBJ invocations to module description.
2326         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2327         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2328         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2329         gl_PREREQ_STRNCASECMP invocations from here...
2330         * modules/strcase (configure.ac): ... to here.
2331
2332 2011-05-22  Bruno Haible  <bruno@clisp.org>
2333
2334         stpncpy: Move AC_LIBOBJ invocations to module description.
2335         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2336         here...
2337         * modules/stpncpy (configure.ac): ... to here.
2338
2339 2011-05-22  Bruno Haible  <bruno@clisp.org>
2340
2341         stpcpy: Move AC_LIBOBJ invocations to module description.
2342         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2343         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2344         here...
2345         * modules/stpcpy (configure.ac): ... to here.
2346
2347 2011-05-21  Bruno Haible  <bruno@clisp.org>
2348
2349         stat: Move AC_LIBOBJ invocations to module description.
2350         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2351         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2352         here...
2353         * modules/stat (configure.ac): ... to here.
2354
2355 2011-05-21  Bruno Haible  <bruno@clisp.org>
2356
2357         sleep: Move AC_LIBOBJ invocations to module description.
2358         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2359         * modules/sleep (configure.ac): ... to here.
2360
2361 2011-05-21  Bruno Haible  <bruno@clisp.org>
2362
2363         signbit: Move AC_LIBOBJ invocations to module description.
2364         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2365         * modules/signbit (configure.ac): ... to here.
2366
2367 2011-05-21  Bruno Haible  <bruno@clisp.org>
2368
2369         sigprocmask: Move AC_LIBOBJ invocations to module description.
2370         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2371         gl_PREREQ_SIGPROMASK invocations from here...
2372         * modules/sigprocmask (configure.ac): ... to here.
2373
2374 2011-05-21  Bruno Haible  <bruno@clisp.org>
2375
2376         sigaction: Move AC_LIBOBJ invocations to module description.
2377         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2378         gl_PREREQ_SIGACTION invocations from here...
2379         * modules/sigaction (configure.ac): ... to here.
2380
2381 2011-05-21  Bruno Haible  <bruno@clisp.org>
2382
2383         sig2str: Move AC_LIBOBJ invocations to module description.
2384         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2385         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2386         here...
2387         * modules/sig2str (configure.ac): ... to here.
2388
2389 2011-05-21  Bruno Haible  <bruno@clisp.org>
2390
2391         setlocale: Move AC_LIBOBJ invocations to module description.
2392         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2393         gl_PREREQ_SETLOCALE invocations from here...
2394         * modules/setlocale (configure.ac): ... to here.
2395
2396 2011-05-21  Bruno Haible  <bruno@clisp.org>
2397
2398         unsetenv: Move AC_LIBOBJ invocations to module description.
2399         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2400         and gl_PREREQ_UNSETENV invocations from here...
2401         * modules/unsetenv (configure.ac): ... to here.
2402         (Depends-on): Update.
2403
2404 2011-05-21  Bruno Haible  <bruno@clisp.org>
2405
2406         setenv: Move AC_LIBOBJ invocations to module description.
2407         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2408         here...
2409         * modules/setenv (configure.ac): ... to here.
2410
2411 2011-05-21  Bruno Haible  <bruno@clisp.org>
2412
2413         selinux-h: Move AC_LIBOBJ invocations to module description.
2414         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2415         AC_LIBOBJ invocation from here...
2416         * modules/selinux-h (configure.ac): ... to here.
2417
2418 2011-05-21  Bruno Haible  <bruno@clisp.org>
2419
2420         select: Respect rules for use of AC_LIBOBJ.
2421         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2422         here...
2423         * modules/select (configure.ac): ... to here.
2424
2425 2011-05-21  Bruno Haible  <bruno@clisp.org>
2426
2427         scandir: Move AC_LIBOBJ invocations to module description.
2428         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2429         invocations from here...
2430         * modules/scandir (configure.ac): ... to here.
2431
2432 2011-05-21  Bruno Haible  <bruno@clisp.org>
2433
2434         rpmatch: Move AC_LIBOBJ invocations to module description.
2435         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2436         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2437         here...
2438         * modules/rpmatch (configure.ac): ... to here.
2439
2440 2011-05-21  Bruno Haible  <bruno@clisp.org>
2441
2442         rmdir: Respect rules for use of AC_LIBOBJ.
2443         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2444         * modules/rmdir (configure.ac): ... to here.
2445
2446 2011-05-21  Bruno Haible  <bruno@clisp.org>
2447
2448         renameat: Move AC_LIBOBJ invocations to module description.
2449         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2450         here...
2451         * modules/renameat (configure.ac): ... to here.
2452
2453 2011-05-21  Bruno Haible  <bruno@clisp.org>
2454
2455         rename: Respect rules for use of AC_LIBOBJ.
2456         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2457         here...
2458         * modules/rename (configure.ac): ... to here.
2459
2460 2011-05-21  Bruno Haible  <bruno@clisp.org>
2461
2462         remove: Move AC_LIBOBJ invocations to module description.
2463         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2464         here...
2465         * modules/remove (configure.ac): ... to here.
2466
2467 2011-05-21  Bruno Haible  <bruno@clisp.org>
2468
2469         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2470         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
2471         macro.
2472         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
2473         * modules/relocatable-lib (configure.ac): ... to here.
2474         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2475         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
2476
2477 2011-05-21  Bruno Haible  <bruno@clisp.org>
2478
2479         relocatable-prog: Move AC_LIBOBJ invocations to module description.
2480         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
2481         here...
2482         * modules/relocatable-prog (configure.ac): ... to here.
2483
2484 2011-05-21  Bruno Haible  <bruno@clisp.org>
2485
2486         regex: Move AC_LIBOBJ invocations to module description.
2487         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
2488         invocations from here...
2489         * modules/regex (configure.ac): ... to here.
2490
2491 2011-05-21  Bruno Haible  <bruno@clisp.org>
2492
2493         realloc-*: Move AC_LIBOBJ invocations to module description.
2494         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
2495         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
2496         AC_LIBOBJ invocations from here...
2497         * modules/realloc-gnu (configure.ac): ... to here.
2498         * modules/realloc-posix (configure.ac): ... and here.
2499
2500 2011-05-21  Bruno Haible  <bruno@clisp.org>
2501
2502         readutmp: Move AC_LIBOBJ invocations to module description.
2503         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
2504         * modules/readutmp (configure.ac): ... to here.
2505
2506 2011-05-21  Bruno Haible  <bruno@clisp.org>
2507
2508         readlinkat: Move AC_LIBOBJ invocations to module description.
2509         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
2510         here...
2511         * modules/readlinkat (configure.ac): ... to here.
2512
2513 2011-05-21  Bruno Haible  <bruno@clisp.org>
2514
2515         readlink: Move AC_LIBOBJ invocations to module description.
2516         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
2517         gl_PREREQ_READLINK invocations from here...
2518         * modules/readlink (configure.ac): ... to here.
2519
2520 2011-05-21  Bruno Haible  <bruno@clisp.org>
2521
2522         readline: Move AC_LIBOBJ invocations to module description.
2523         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
2524         gl_PREREQ_READLINE invocations from here...
2525         * modules/readline (configure.ac): ... to here.
2526
2527 2011-05-21  Bruno Haible  <bruno@clisp.org>
2528
2529         read: Move AC_LIBOBJ invocations to module description.
2530         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
2531         * modules/read (configure.ac): ... to here.
2532
2533 2011-05-21  Bruno Haible  <bruno@clisp.org>
2534
2535         rawmemchr: Move AC_LIBOBJ invocations to module description.
2536         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
2537         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
2538         from here...
2539         * modules/rawmemchr (configure.ac): ... to here.
2540
2541 2011-05-21  Bruno Haible  <bruno@clisp.org>
2542
2543         random_r: Move AC_LIBOBJ invocations to module description.
2544         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
2545         gl_PREREQ_RANDOM_R invocations from here...
2546         * modules/random_r (configure.ac): ... to here.
2547
2548 2011-05-21  Bruno Haible  <bruno@clisp.org>
2549
2550         pwrite: Move AC_LIBOBJ invocations to module description.
2551         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
2552         * modules/pwrite (configure.ac): ... to here.
2553
2554 2011-05-21  Bruno Haible  <bruno@clisp.org>
2555
2556         putenv: Move AC_LIBOBJ invocations to module description.
2557         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
2558         * modules/putenv (configure.ac): ... to here.
2559
2560 2011-05-21  Bruno Haible  <bruno@clisp.org>
2561
2562         login_tty: Move AC_LIBOBJ invocations to module description.
2563         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2564         * modules/login_tty (configure.ac): ... to here.
2565
2566 2011-05-21  Bruno Haible  <bruno@clisp.org>
2567
2568         openpty: Move AC_LIBOBJ invocations to module description.
2569         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2570         * modules/openpty (configure.ac): ... to here.
2571
2572 2011-05-21  Bruno Haible  <bruno@clisp.org>
2573
2574         forkpty: Move AC_LIBOBJ invocations to module description.
2575         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2576         * modules/forkpty (configure.ac): ... to here.
2577
2578 2011-05-21  Bruno Haible  <bruno@clisp.org>
2579
2580         ptsname: Move AC_LIBOBJ invocations to module description.
2581         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2582         invocations from here...
2583         * modules/ptsname (configure.ac): ... to here.
2584
2585 2011-05-21  Bruno Haible  <bruno@clisp.org>
2586
2587         pread: Move AC_LIBOBJ invocations to module description.
2588         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2589         * modules/pread (configure.ac): ... to here.
2590
2591 2011-05-21  Bruno Haible  <bruno@clisp.org>
2592
2593         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2594         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2595         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2596         * modules/posix_spawn (configure.ac): ... to here.
2597         * modules/posix_spawnp (configure.ac): ... and here.
2598
2599 2011-05-21  Bruno Haible  <bruno@clisp.org>
2600
2601         popen: Move AC_LIBOBJ invocations to module description.
2602         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2603         invocations from here...
2604         * modules/popen (configure.ac): ... to here.
2605
2606 2011-05-21  Bruno Haible  <bruno@clisp.org>
2607
2608         poll: Move AC_LIBOBJ invocations to module description.
2609         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2610         invocations from here...
2611         * modules/poll (configure.ac): ... to here.
2612
2613 2011-05-21  Bruno Haible  <bruno@clisp.org>
2614
2615         pipe-posix: Move AC_LIBOBJ invocations to module description.
2616         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2617         * modules/pipe-posix (configure.ac): ... to here.
2618
2619 2011-05-21  Bruno Haible  <bruno@clisp.org>
2620
2621         openat: Respect rules for use of AC_LIBOBJ.
2622         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2623         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2624         * modules/openat (configure.ac): ... to here.
2625
2626 2011-05-21  Bruno Haible  <bruno@clisp.org>
2627
2628         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2629         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2630         invocation from here...
2631         * modules/obstack-printf (configure.ac): ... to here.
2632         * modules/obstack-printf-posix (configure.ac): ... and here.
2633
2634 2011-05-21  Bruno Haible  <bruno@clisp.org>
2635
2636         nl_langinfo: Move AC_LIBOBJ invocations to module description.
2637         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
2638         from here...
2639         * modules/nl_langinfo (configure.ac): ... to here.
2640
2641 2011-05-21  Bruno Haible  <bruno@clisp.org>
2642
2643         nanosleep: Move AC_LIBOBJ invocations to module description.
2644         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
2645         gl_PREREQ_NANOSLEEP invocations from here...
2646         * modules/nanosleep (configure.ac): ... to here.
2647
2648 2011-05-21  Bruno Haible  <bruno@clisp.org>
2649
2650         mountlist: Move AC_LIBOBJ invocations to module description.
2651         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
2652         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
2653         * modules/mountlist (configure.ac): ... to here.
2654
2655 2011-05-21  Bruno Haible  <bruno@clisp.org>
2656
2657         mktime: Respect rules for use of AC_LIBOBJ.
2658         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
2659         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
2660         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
2661         (gl_FUNC_MKTIME_INTERNAL): ... and here...
2662         * modules/mktime (configure.ac): ... to here.
2663         * modules/mktime-internal (configure.ac): ... and here.
2664         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
2665
2666 2011-05-21  Bruno Haible  <bruno@clisp.org>
2667
2668         mkstemps: Move AC_LIBOBJ invocations to module description.
2669         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
2670         here...
2671         * modules/mkstemps (configure.ac): ... to here.
2672
2673 2011-05-21  Bruno Haible  <bruno@clisp.org>
2674
2675         mkstemp: Move AC_LIBOBJ invocations to module description.
2676         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
2677         gl_PREREQ_MKSTEMP invocations from here...
2678         * modules/mkstemp (configure.ac): ... to here.
2679
2680 2011-05-21  Bruno Haible  <bruno@clisp.org>
2681
2682         mkostemps: Move AC_LIBOBJ invocations to module description.
2683         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
2684         here...
2685         * modules/mkostemps (configure.ac): ... to here.
2686
2687 2011-05-21  Bruno Haible  <bruno@clisp.org>
2688
2689         mkostemp: Move AC_LIBOBJ invocations to module description.
2690         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
2691         gl_PREREQ_MKOSTEMP invocations from here...
2692         * modules/mkostemp (configure.ac): ... to here.
2693
2694 2011-05-21  Bruno Haible  <bruno@clisp.org>
2695
2696         mknod: Move AC_LIBOBJ invocations to module description.
2697         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
2698         * modules/mknod (configure.ac): ... to here.
2699
2700 2011-05-21  Bruno Haible  <bruno@clisp.org>
2701
2702         mkfifoat: Move AC_LIBOBJ invocations to module description.
2703         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
2704         here...
2705         * modules/mkfifoat (configure.ac): ... to here.
2706
2707 2011-05-21  Bruno Haible  <bruno@clisp.org>
2708
2709         mkfifo: Respect rules for use of AC_LIBOBJ.
2710         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
2711         here...
2712         * modules/mkfifo (configure.ac): ... to here.
2713
2714 2011-05-21  Bruno Haible  <bruno@clisp.org>
2715
2716         mkdtemp: Move AC_LIBOBJ invocations to module description.
2717         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
2718         invocations from here...
2719         * modules/mkdtemp (configure.ac): ... to here.
2720
2721 2011-05-21  Bruno Haible  <bruno@clisp.org>
2722
2723         mkdir: Move AC_LIBOBJ invocations to module description.
2724         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
2725         * modules/mkdir (configure.ac): ... to here.
2726
2727 2011-05-21  Bruno Haible  <bruno@clisp.org>
2728
2729         memset: Move AC_LIBOBJ invocations to module description.
2730         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
2731         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
2732         here...
2733         * modules/memset (configure.ac): ... to here.
2734
2735 2011-05-21  Bruno Haible  <bruno@clisp.org>
2736
2737         memrchr: Move AC_LIBOBJ invocations to module description.
2738         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
2739         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
2740         here...
2741         * modules/memrchr (configure.ac): ... to here.
2742
2743 2011-05-21  Bruno Haible  <bruno@clisp.org>
2744
2745         mempcpy: Move AC_LIBOBJ invocations to module description.
2746         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
2747         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
2748         here...
2749         * modules/mempcpy (configure.ac): ... to here.
2750
2751 2011-05-21  Bruno Haible  <bruno@clisp.org>
2752
2753         memmove: Move AC_LIBOBJ invocations to module description.
2754         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
2755         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
2756         here...
2757         * modules/memmove (configure.ac): ... to here.
2758
2759 2011-05-21  Bruno Haible  <bruno@clisp.org>
2760
2761         memmem*: Move AC_LIBOBJ invocations to module description.
2762         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
2763         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
2764         here...
2765         (gl_FUNC_MEMMEM): ... and here...
2766         * modules/memmem-simple (configure.ac): ... to here.
2767         * modules/memmem (configure.ac): ... and here.
2768
2769 2011-05-21  Bruno Haible  <bruno@clisp.org>
2770
2771         memcpy: Move AC_LIBOBJ invocations to module description.
2772         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
2773         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
2774         here...
2775         * modules/memcpy (configure.ac): ... to here.
2776
2777 2011-05-21  Bruno Haible  <bruno@clisp.org>
2778
2779         memcmp: Simplify autoconf macro.
2780         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
2781         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
2782         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
2783
2784 2011-05-21  Bruno Haible  <bruno@clisp.org>
2785
2786         memcmp: Move AC_LIBOBJ invocations to module description.
2787         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
2788         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
2789         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
2790         * modules/memcmp (configure.ac): ... to here.
2791         (Depends-on): Update conditions.
2792
2793 2011-05-21  Bruno Haible  <bruno@clisp.org>
2794
2795         memchr: Respect rules for use of AC_LIBOBJ.
2796         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
2797         invocations from here...
2798         * modules/memchr (configure.ac): ... to here.
2799
2800 2011-05-21  Bruno Haible  <bruno@clisp.org>
2801
2802         mbtowc: Move AC_LIBOBJ invocations to module description.
2803         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
2804         invocations from here...
2805         * modules/mbtowc (configure.ac): ... to here.
2806
2807 2011-05-21  Bruno Haible  <bruno@clisp.org>
2808
2809         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
2810         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
2811         gl_PREREQ_MBSRTOWCS invocations from here...
2812         * modules/mbsrtowcs (configure.ac): ... to here.
2813
2814 2011-05-21  Bruno Haible  <bruno@clisp.org>
2815
2816         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
2817         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
2818         gl_PREREQ_MBSNRTOWCS invocations from here...
2819         * modules/mbsnrtowcs (configure.ac): ... to here.
2820
2821 2011-05-21  Bruno Haible  <bruno@clisp.org>
2822
2823         mbsinit: Move AC_LIBOBJ invocations to module description.
2824         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
2825         invocations from here...
2826         * modules/mbsinit (configure.ac): ... to here.
2827
2828 2011-05-21  Bruno Haible  <bruno@clisp.org>
2829
2830         mbrlen: Move AC_LIBOBJ invocations to module description.
2831         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
2832         invocations from here...
2833         * modules/mbrlen (configure.ac): ... to here.
2834
2835 2011-05-21  Bruno Haible  <bruno@clisp.org>
2836
2837         mbrtowc: Respect rules for use of AC_LIBOBJ.
2838         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
2839         invocations from here...
2840         * modules/mbrtowc (configure.ac): ... to here.
2841
2842 2011-05-21  Bruno Haible  <bruno@clisp.org>
2843
2844         malloc-*: Move AC_LIBOBJ invocations to module description.
2845         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
2846         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
2847         AC_LIBOBJ invocations from here...
2848         * modules/malloc-gnu (configure.ac): ... to here.
2849         * modules/malloc-posix (configure.ac): ... and here.
2850
2851 2011-05-21  Bruno Haible  <bruno@clisp.org>
2852
2853         lstat, openat: Respect rules for use of AC_LIBOBJ.
2854         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
2855         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
2856         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
2857         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
2858         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
2859         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
2860         here.
2861         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2862
2863 2011-05-21  Bruno Haible  <bruno@clisp.org>
2864
2865         lseek: Move AC_LIBOBJ invocations to module description.
2866         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
2867         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2868         * modules/lseek (configure.ac): ... to here.
2869
2870 2011-05-21  Bruno Haible  <bruno@clisp.org>
2871
2872         linkat: Move AC_LIBOBJ invocations to module description.
2873         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
2874         here...
2875         * modules/linkat (configure.ac): ... to here.
2876
2877 2011-05-21  Bruno Haible  <bruno@clisp.org>
2878
2879         link: Respect rules for use of AC_LIBOBJ.
2880         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
2881         * modules/link (configure.ac): ... to here.
2882
2883 2011-05-21  Bruno Haible  <bruno@clisp.org>
2884
2885         lchown: Move AC_LIBOBJ invocations to module description.
2886         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2887         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2888         * modules/lchown (configure.ac): ... to here.
2889
2890 2011-05-21  Bruno Haible  <bruno@clisp.org>
2891
2892         iswctype: Move AC_LIBOBJ invocations to module description.
2893         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
2894         here...
2895         * modules/iswctype (configure.ac): ... to here.
2896
2897 2011-05-21  Bruno Haible  <bruno@clisp.org>
2898
2899         iswblank: Move AC_LIBOBJ invocations to module description.
2900         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
2901         here...
2902         * modules/iswblank (configure.ac): ... to here.
2903
2904 2011-05-21  Bruno Haible  <bruno@clisp.org>
2905
2906         atanl: Move AC_LIBOBJ invocations to module description.
2907         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
2908         * modules/atanl (configure.ac): ... to here.
2909
2910 2011-05-21  Bruno Haible  <bruno@clisp.org>
2911
2912         acosl: Move AC_LIBOBJ invocations to module description.
2913         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
2914         * modules/acosl (configure.ac): ... to here.
2915
2916 2011-05-21  Bruno Haible  <bruno@clisp.org>
2917
2918         asinl: Respect rules for use of AC_LIBOBJ.
2919         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
2920         * modules/asinl (configure.ac): ... to here.
2921
2922 2011-05-21  Bruno Haible  <bruno@clisp.org>
2923
2924         tanl: Move AC_LIBOBJ invocations to module description.
2925         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
2926         * modules/tanl (configure.ac): ... to here.
2927
2928 2011-05-21  Bruno Haible  <bruno@clisp.org>
2929
2930         cosl: Move AC_LIBOBJ invocations to module description.
2931         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
2932         * modules/cosl (configure.ac): ... to here.
2933
2934 2011-05-21  Bruno Haible  <bruno@clisp.org>
2935
2936         sinl: Move AC_LIBOBJ invocations to module description.
2937         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
2938         * modules/sinl (configure.ac): ... to here.
2939
2940 2011-05-21  Bruno Haible  <bruno@clisp.org>
2941
2942         logl: Move AC_LIBOBJ invocations to module description.
2943         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
2944         * modules/logl (configure.ac): ... to here.
2945
2946 2011-05-21  Bruno Haible  <bruno@clisp.org>
2947
2948         expl: Move AC_LIBOBJ invocations to module description.
2949         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
2950         * modules/expl (configure.ac): ... to here.
2951
2952 2011-05-21  Bruno Haible  <bruno@clisp.org>
2953
2954         roundl: Move AC_LIBOBJ invocations to module description.
2955         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
2956         * modules/roundl (configure.ac): ... to here.
2957
2958 2011-05-21  Bruno Haible  <bruno@clisp.org>
2959
2960         round: Move AC_LIBOBJ invocations to module description.
2961         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
2962         * modules/round (configure.ac): ... to here.
2963
2964 2011-05-21  Bruno Haible  <bruno@clisp.org>
2965
2966         roundf: Move AC_LIBOBJ invocations to module description.
2967         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
2968         * modules/roundf (configure.ac): ... to here.
2969
2970 2011-05-21  Bruno Haible  <bruno@clisp.org>
2971
2972         truncl: Move AC_LIBOBJ invocations to module description.
2973         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
2974         * modules/truncl (configure.ac): ... to here.
2975
2976 2011-05-21  Bruno Haible  <bruno@clisp.org>
2977
2978         trunc: Move AC_LIBOBJ invocations to module description.
2979         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
2980         * modules/trunc (configure.ac): ... to here.
2981
2982 2011-05-21  Bruno Haible  <bruno@clisp.org>
2983
2984         truncf: Move AC_LIBOBJ invocations to module description.
2985         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
2986         * modules/truncf (configure.ac): ... to here.
2987
2988 2011-05-21  Bruno Haible  <bruno@clisp.org>
2989
2990         ceill: Move AC_LIBOBJ invocations to module description.
2991         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
2992         * modules/ceill (configure.ac): ... to here.
2993
2994 2011-05-21  Bruno Haible  <bruno@clisp.org>
2995
2996         ceil: Move AC_LIBOBJ invocations to module description.
2997         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
2998         * modules/ceil (configure.ac): ... to here.
2999
3000 2011-05-21  Bruno Haible  <bruno@clisp.org>
3001
3002         ceilf: Move AC_LIBOBJ invocations to module description.
3003         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
3004         * modules/ceilf (configure.ac): ... to here.
3005
3006 2011-05-21  Bruno Haible  <bruno@clisp.org>
3007
3008         floorl: Respect rules for use of AC_LIBOBJ.
3009         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
3010         * modules/floorl (configure.ac): ... to here.
3011
3012 2011-05-21  Bruno Haible  <bruno@clisp.org>
3013
3014         floor: Respect rules for use of AC_LIBOBJ.
3015         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
3016         * modules/floor (configure.ac): ... to here.
3017
3018 2011-05-21  Bruno Haible  <bruno@clisp.org>
3019
3020         floorf: Move AC_LIBOBJ invocations to module description.
3021         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
3022         * modules/floorf (configure.ac): ... to here.
3023
3024 2011-05-20  Bruno Haible  <bruno@clisp.org>
3025
3026         sqrtl: Respect rules for use of AC_LIBOBJ.
3027         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
3028         * modules/sqrtl (configure.ac): ... to here.
3029
3030 2011-05-20  Bruno Haible  <bruno@clisp.org>
3031
3032         ldexpl: Respect rules for use of AC_LIBOBJ.
3033         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
3034         * modules/ldexpl (configure.ac): ... to here.
3035
3036 2011-05-20  Bruno Haible  <bruno@clisp.org>
3037
3038         frexpl*: Respect rules for use of AC_LIBOBJ.
3039         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
3040         invocation from here...
3041         * modules/frexpl (configure.ac): ... to here.
3042         * modules/frexpl-nolibm (configure.ac): ... and here.
3043
3044 2011-05-20  Bruno Haible  <bruno@clisp.org>
3045
3046         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
3047         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
3048         invocation from here...
3049         * modules/frexp (configure.ac): ... to here.
3050         * modules/frexp-nolibm (configure.ac): ... and here.
3051
3052 2011-05-20  Bruno Haible  <bruno@clisp.org>
3053
3054         isnan: Respect rules for use of AC_LIBOBJ.
3055         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
3056         invocations here.
3057         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
3058         REPLACE_ISNAN.
3059         * modules/isnand (configure.ac): Likewise.
3060         * modules/isnanl (configure.ac): Likewise.
3061
3062 2011-05-20  Bruno Haible  <bruno@clisp.org>
3063
3064         isnanl*: Respect rules for use of AC_LIBOBJ.
3065         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
3066         invocation from here...
3067         * modules/isnanl (configure.ac): ... to here.
3068         * modules/isnanl-nolibm (configure.ac): ... and here.
3069
3070 2011-05-20  Bruno Haible  <bruno@clisp.org>
3071
3072         isnand*: Move AC_LIBOBJ invocations to module description.
3073         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
3074         invocation from here...
3075         * modules/isnand (configure.ac): ... to here.
3076         * modules/isnand-nolibm (configure.ac): ... and here.
3077
3078 2011-05-20  Bruno Haible  <bruno@clisp.org>
3079
3080         isnanf*: Move AC_LIBOBJ invocations to module description.
3081         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
3082         invocation from here...
3083         * modules/isnanf (configure.ac): ... to here.
3084         * modules/isnanf-nolibm (configure.ac): ... and here.
3085
3086 2011-05-20  Bruno Haible  <bruno@clisp.org>
3087
3088         isnan*: Separate the AC_LIBOBJ invocations.
3089         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
3090         AC_LIBOBJ invocation.
3091         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
3092         here.
3093         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
3094         AC_LIBOBJ invocation.
3095         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
3096         here.
3097         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
3098         AC_LIBOBJ invocation.
3099         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
3100         here.
3101         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
3102
3103 2011-05-08  Bruno Haible  <bruno@clisp.org>
3104
3105         isinf: Move AC_LIBOBJ invocations to module description.
3106         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
3107         * modules/isinf (configure.ac): ... to here.
3108
3109 2011-05-08  Bruno Haible  <bruno@clisp.org>
3110
3111         isfinite: Move AC_LIBOBJ invocations to module description.
3112         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
3113         * modules/isfinite (configure.ac): ... to here.
3114
3115 2011-05-08  Bruno Haible  <bruno@clisp.org>
3116
3117         isblank: Move AC_LIBOBJ invocations to module description.
3118         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
3119         here...
3120         * modules/isblank (configure.ac): ... to here.
3121
3122 2011-05-08  Bruno Haible  <bruno@clisp.org>
3123
3124         isapipe: Move AC_LIBOBJ invocations to module description.
3125         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
3126         gl_PREREQ_ISAPIPE invocations from here...
3127         * modules/isapipe (configure.ac): ... to here.
3128         (Depends-on): Update condition.
3129
3130 2011-05-08  Bruno Haible  <bruno@clisp.org>
3131
3132         ioctl: Move AC_LIBOBJ invocations to module description.
3133         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
3134         invocations from here...
3135         * modules/ioctl (configure.ac): ... to here.
3136         (Depends-on): Update condition.
3137
3138 2011-05-08  Bruno Haible  <bruno@clisp.org>
3139
3140         imaxdiv: Move AC_LIBOBJ invocations to module description.
3141         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
3142         invocations from here...
3143         * modules/imaxdiv (configure.ac): ... to here.
3144
3145 2011-05-08  Bruno Haible  <bruno@clisp.org>
3146
3147         imaxabs: Move AC_LIBOBJ invocations to module description.
3148         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
3149         invocations from here...
3150         * modules/imaxabs (configure.ac): ... to here.
3151
3152 2011-05-08  Bruno Haible  <bruno@clisp.org>
3153
3154         getaddrinfo: Move AC_LIBOBJ invocations to module description.
3155         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
3156         AC_LIBOBJ invocations from here...
3157         * modules/getaddrinfo (configure.ac): ... to here.
3158         (Depends-on): Add conditions.
3159
3160 2011-05-08  Bruno Haible  <bruno@clisp.org>
3161
3162         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3163         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
3164         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3165         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
3166         (gl_PREREQ_INET_PTON): ... from here.
3167         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
3168         gl_PREREQ_INET_PTON here.
3169         (Depends-on): Update condition.
3170
3171 2011-05-08  Bruno Haible  <bruno@clisp.org>
3172
3173         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3174         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
3175         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3176         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
3177         (gl_PREREQ_INET_NTOP): ... from here.
3178         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
3179         gl_PREREQ_INET_NTOP here.
3180         (Depends-on): Update condition.
3181
3182 2011-05-08  Bruno Haible  <bruno@clisp.org>
3183
3184         iconv_open: Move AC_LIBOBJ invocations to module description.
3185         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
3186         AC_LIBOBJ invocations from here...
3187         * modules/iconv_open (configure.ac): ... to here.
3188
3189 2011-05-08  Bruno Haible  <bruno@clisp.org>
3190
3191         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
3192         If module 'iconv_open' is among the main modules and module
3193         'iconv_open-utf' is among the tests dependencies, then
3194         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
3195         return the special iconv_t values. Therefore iconv() and iconv_close()
3196         must support these special iconv_t values, already in lib, not only in
3197         tests.
3198         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
3199         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
3200         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
3201         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
3202         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
3203         (Depends-on): Add the dependencies of iconv_open-utf.
3204         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
3205         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
3206         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
3207
3208 2011-05-08  Bruno Haible  <bruno@clisp.org>
3209
3210         group-member: Move AC_LIBOBJ invocations to module description.
3211         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
3212         gl_PREREQ_GROUP_MEMBER invocations from here...
3213         * modules/group-member (configure.ac): ... to here.
3214
3215 2011-05-08  Bruno Haible  <bruno@clisp.org>
3216
3217         grantpt: Move AC_LIBOBJ invocations to module description.
3218         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
3219         invocations from here...
3220         * modules/grantpt (configure.ac): ... to here.
3221
3222 2011-05-08  Bruno Haible  <bruno@clisp.org>
3223
3224         glob: Move AC_LIBOBJ invocations to module description.
3225         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
3226         from here...
3227         * modules/glob (configure.ac): ... to here.
3228
3229 2011-05-08  Bruno Haible  <bruno@clisp.org>
3230
3231         getusershell: Move AC_LIBOBJ invocations to module description.
3232         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
3233         Move AC_LIBOBJ invocation from here...
3234         * modules/getusershell (configure.ac): ... to here.
3235         (Depends-on): Update condition.
3236
3237 2011-05-08  Bruno Haible  <bruno@clisp.org>
3238
3239         gettimeofday: Move AC_LIBOBJ invocations to module description.
3240         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3241         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
3242         gl_PREREQ_GETTIMEOFDAY invocations from here...
3243         * modules/gettimeofday (configure.ac): ... to here.
3244
3245 2011-05-08  Bruno Haible  <bruno@clisp.org>
3246
3247         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
3248         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
3249         just gl_FUNC_TZSET.
3250         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
3251         (gl_FUNC_TZSET_CLOBBER): Remove actions.
3252         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3253         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3254
3255 2011-05-08  Bruno Haible  <bruno@clisp.org>
3256
3257         getsubopt: Move AC_LIBOBJ invocations to module description.
3258         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3259         gl_PREREQ_GETSUBOPT invocations from here...
3260         * modules/getsubopt (configure.ac): ... to here.
3261
3262 2011-05-08  Bruno Haible  <bruno@clisp.org>
3263
3264         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3265         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3266         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3267         * modules/getpass-gnu (configure.ac): ... to here.
3268
3269 2011-05-08  Bruno Haible  <bruno@clisp.org>
3270
3271         getpass: Move AC_LIBOBJ invocations to module description.
3272         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3273         gl_PREREQ_GETPASS invocations from here...
3274         * modules/getpass (configure.ac): ... to here.
3275
3276 2011-05-08  Bruno Haible  <bruno@clisp.org>
3277
3278         getpagesize: Move AC_LIBOBJ invocations to module description.
3279         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3280         from here...
3281         * modules/getpagesize (configure.ac): ... to here.
3282
3283 2011-05-08  Bruno Haible  <bruno@clisp.org>
3284
3285         getopt: Move AC_LIBOBJ invocations to module description.
3286         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3287         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3288         invocations from here...
3289         * modules/getopt-gnu (configure.ac): ... to here.
3290         * modules/getopt-posix (configure.ac): ... and here.
3291         (Depends-on): Update condition.
3292
3293 2011-05-08  Bruno Haible  <bruno@clisp.org>
3294
3295         getopt, argp: Respect rules for use of AC_LIBOBJ.
3296         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3297         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3298         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3299         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3300
3301 2011-05-08  Bruno Haible  <bruno@clisp.org>
3302
3303         getlogin_r: Move AC_LIBOBJ invocations to module description.
3304         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3305         gl_PREREQ_GETLOGIN_R invocations from here...
3306         * modules/getlogin_r (configure.ac): ... to here.
3307
3308 2011-05-08  Bruno Haible  <bruno@clisp.org>
3309
3310         getlogin: Move AC_LIBOBJ invocations to module description.
3311         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3312         here...
3313         * modules/getlogin (configure.ac): ... to here.
3314
3315 2011-05-08  Bruno Haible  <bruno@clisp.org>
3316
3317         getloadavg: Move AC_LIBOBJ invocations to module description.
3318         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3319         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3320         * modules/getloadavg (configure.ac): ... to here.
3321
3322 2011-05-08  Bruno Haible  <bruno@clisp.org>
3323
3324         gethrxtime: Move AC_LIBOBJ invocations to module description.
3325         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3326         LIB_GETHRXTIME from here...
3327         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3328         invocations from here...
3329         * modules/gethrxtime (configure.ac): ... to here.
3330
3331 2011-05-08  Bruno Haible  <bruno@clisp.org>
3332
3333         gethostname: Move AC_LIBOBJ invocations to module description.
3334         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3335         gl_PREREQ_GETHOSTNAME invocations from here...
3336         * modules/gethostname (configure.ac): ... to here.
3337
3338 2011-05-08  Bruno Haible  <bruno@clisp.org>
3339
3340         getgroups: Move AC_LIBOBJ invocations to module description.
3341         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3342         here...
3343         * modules/getgroups (configure.ac): ... to here.
3344
3345 2011-05-08  Bruno Haible  <bruno@clisp.org>
3346
3347         getdtablesize: Move AC_LIBOBJ invocations to module description.
3348         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3349         invocation from here...
3350         * modules/getdtablesize (configure.ac): ... to here.
3351
3352 2011-05-08  Bruno Haible  <bruno@clisp.org>
3353
3354         getdomainname: Move AC_LIBOBJ invocations to module description.
3355         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3356         gl_PREREQ_GETDOMAINNAME invocations from here...
3357         * modules/getdomainname (configure.ac): ... to here.
3358
3359 2011-05-08  Bruno Haible  <bruno@clisp.org>
3360
3361         getline: Move AC_LIBOBJ invocations to module description.
3362         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3363         invocations from here...
3364         * modules/getline (configure.ac): ... to here.
3365
3366 2011-05-08  Bruno Haible  <bruno@clisp.org>
3367
3368         getline: Simplify.
3369         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3370         It's already handled through the module dependency.
3371
3372 2011-05-08  Bruno Haible  <bruno@clisp.org>
3373
3374         getdelim: Move AC_LIBOBJ invocations to module description.
3375         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3376         and gl_PREREQ_GETDELIM invocations from here...
3377         * modules/getdelim (configure.ac): ... to here.
3378         (Depends-on): Fix condition.
3379
3380 2011-05-08  Bruno Haible  <bruno@clisp.org>
3381
3382         getcwd: Move AC_LIBOBJ invocations to module description.
3383         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3384         invocations from here...
3385         * modules/getcwd (configure.ac): ... to here.
3386
3387 2011-05-08  Bruno Haible  <bruno@clisp.org>
3388
3389         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3390         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3391         here...
3392         * modules/getcwd-lgpl (configure.ac): ... to here.
3393
3394 2011-05-07  Bruno Haible  <bruno@clisp.org>
3395
3396         crypto/gc: Move AC_LIBOBJ invocations to module description.
3397         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3398         * modules/crypto/gc (configure.ac): ... to here.
3399
3400 2011-05-07  Bruno Haible  <bruno@clisp.org>
3401
3402         fwriting: Move AC_LIBOBJ invocations to module description.
3403         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3404         here...
3405         * modules/fwriting (configure.ac): ... to here.
3406
3407 2011-05-07  Bruno Haible  <bruno@clisp.org>
3408
3409         fwritable: Move AC_LIBOBJ invocations to module description.
3410         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3411         here...
3412         * modules/fwritable (configure.ac): ... to here.
3413
3414 2011-05-07  Bruno Haible  <bruno@clisp.org>
3415
3416         futimens: Move AC_LIBOBJ invocations to module description.
3417         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3418         here...
3419         * modules/futimens (configure.ac): ... to here.
3420
3421 2011-05-07  Bruno Haible  <bruno@clisp.org>
3422
3423         ftruncate: Move AC_LIBOBJ invocations to module description.
3424         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3425         gl_PREREQ_FTRUNCATE invocations from here...
3426         * modules/ftruncate (configure.ac): ... to here.
3427
3428 2011-05-07  Bruno Haible  <bruno@clisp.org>
3429
3430         fsync: Move AC_LIBOBJ invocations to module description.
3431         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3432         invocations from here...
3433         * modules/fsync (configure.ac): ... to here.
3434
3435 2011-05-07  Bruno Haible  <bruno@clisp.org>
3436
3437         fsusage: Move AC_LIBOBJ invocations to module description.
3438         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3439         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3440         * modules/fsusage (configure.ac): ... to here.
3441
3442 2011-05-07  Bruno Haible  <bruno@clisp.org>
3443
3444         freopen: Move AC_LIBOBJ invocations to module description.
3445         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3446         invocations from here...
3447         * modules/freopen (configure.ac): ... to here.
3448
3449 2011-05-07  Bruno Haible  <bruno@clisp.org>
3450
3451         free: Move AC_LIBOBJ invocations to module description.
3452         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3453         invocations from here...
3454         * modules/free (configure.ac): ... to here.
3455
3456 2011-05-07  Bruno Haible  <bruno@clisp.org>
3457
3458         freadable: Move AC_LIBOBJ invocations to module description.
3459         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3460         here...
3461         * modules/freadable (configure.ac): ... to here.
3462
3463 2011-05-07  Bruno Haible  <bruno@clisp.org>
3464
3465         fpurge: Move AC_LIBOBJ invocations to module description.
3466         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3467         invocations from here...
3468         * modules/fpurge (configure.ac): ... to here.
3469
3470 2011-05-07  Bruno Haible  <bruno@clisp.org>
3471
3472         fpending: Move AC_LIBOBJ invocations to module description.
3473         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
3474         gl_FUNC_FPENDING.
3475         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
3476         invocations from here...
3477         * modules/fpending (configure.ac): ... to here.
3478
3479 2011-05-07  Bruno Haible  <bruno@clisp.org>
3480
3481         fopen: Move AC_LIBOBJ invocations to module description.
3482         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
3483         invocations from here...
3484         * modules/fopen (configure.ac): ... to here.
3485
3486 2011-05-07  Bruno Haible  <bruno@clisp.org>
3487
3488         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
3489         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
3490         gl_FUNC_FNMATCH_POSIX.
3491         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
3492         invocations from here...
3493         * modules/fnmatch (configure.ac): ... to here.
3494         * modules/fnmatch-gnu (configure.ac): ... and here.
3495
3496 2011-05-07  Bruno Haible  <bruno@clisp.org>
3497
3498         flock: Move AC_LIBOBJ invocations to module description.
3499         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
3500         invocations from here...
3501         * modules/flock (configure.ac): ... to here.
3502
3503 2011-05-07  Bruno Haible  <bruno@clisp.org>
3504
3505         fileblocks: Move AC_LIBOBJ invocations to module description.
3506         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
3507         gl_PREREQ_FILEBLOCKS invocations from here...
3508         * modules/fileblocks (configure.ac): ... to here.
3509
3510 2011-05-06  Bruno Haible  <bruno@clisp.org>
3511
3512         fflush: Move AC_LIBOBJ invocations to module description.
3513         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
3514         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
3515         invocations from here...
3516         * modules/fflush (configure.ac): ... to here.
3517
3518 2011-05-06  Bruno Haible  <bruno@clisp.org>
3519
3520         fdopendir: Move AC_LIBOBJ invocations to module description.
3521         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
3522         here...
3523         * modules/fdopendir (configure.ac): ... to here.
3524         (Depends-on): Improve conditions.
3525
3526 2011-05-06  Bruno Haible  <bruno@clisp.org>
3527
3528         _Exit: Move AC_LIBOBJ invocations to module description.
3529         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
3530         invocations from here...
3531         * modules/_Exit (configure.ac): ... to here.
3532
3533 2011-05-21  Bruno Haible  <bruno@clisp.org>
3534
3535         euidaccess: Respect rules for use of AC_LIBOBJ.
3536         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3537         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
3538         from here...
3539         * modules/euidaccess (configure.ac): ... to here.
3540
3541 2011-05-06  Bruno Haible  <bruno@clisp.org>
3542
3543         error: Move AC_LIBOBJ invocations to module description.
3544         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
3545         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
3546         invocations from here...
3547         * modules/error (configure.ac): ... to here.
3548
3549 2011-05-06  Bruno Haible  <bruno@clisp.org>
3550
3551         duplocale: Move AC_LIBOBJ invocations to module description.
3552         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
3553         gl_PREREQ_DUPLOCALE invocations from here...
3554         * modules/duplocale (configure.ac): ... to here.
3555
3556 2011-05-05  Bruno Haible  <bruno@clisp.org>
3557
3558         dirfd: Move AC_LIBOBJ invocations to module description.
3559         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
3560         gl_FUNC_DIRFD.
3561         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3562         here...
3563         * modules/dirfd (configure.ac): ... to here.
3564         (Depends-on): Fix condition.
3565
3566 2011-05-05  Bruno Haible  <bruno@clisp.org>
3567
3568         chown: Respect rules for use of AC_LIBOBJ.
3569         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3570         * modules/chown (configure.ac): ... to here.
3571
3572 2011-05-05  Bruno Haible  <bruno@clisp.org>
3573
3574         chdir-long: Move AC_LIBOBJ invocations to module description.
3575         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3576         gl_PREREQ_CHDIR_LONG invocations from here...
3577         * modules/chdir-long (configure.ac): ... to here.
3578
3579 2011-05-05  Bruno Haible  <bruno@clisp.org>
3580
3581         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3582         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3583         from here...
3584         * modules/canonicalize-lgpl (configure.ac): ... to here.
3585
3586 2011-05-05  Bruno Haible  <bruno@clisp.org>
3587
3588         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3589         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3590         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3591         REPLACE_CALLOC.
3592         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3593         * modules/calloc-gnu (configure.ac): Likewise.
3594
3595 2011-05-05  Bruno Haible  <bruno@clisp.org>
3596
3597         btowc: Move AC_LIBOBJ invocations to module description.
3598         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3599         invocations from here...
3600         * modules/btowc (configure.ac): ... to here.
3601
3602 2011-05-21  Bruno Haible  <bruno@clisp.org>
3603
3604         atexit: Move AC_LIBOBJ invocations to module description.
3605         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3606         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3607         here...
3608         * modules/atexit (configure.ac): ... to here.
3609
3610 2011-05-05  Bruno Haible  <bruno@clisp.org>
3611
3612         atoll: Move AC_LIBOBJ invocations to module description.
3613         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3614         invocations from here...
3615         * modules/atoll (configure.ac): ... to here.
3616
3617 2011-05-05  Bruno Haible  <bruno@clisp.org>
3618
3619         argz: Move AC_LIBOBJ invocations to module description.
3620         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3621         * modules/argz (configure.ac): ... to here.
3622
3623 2011-05-05  Bruno Haible  <bruno@clisp.org>
3624
3625         alphasort: Move AC_LIBOBJ invocations to module description.
3626         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3627         gl_PREREQ_ALPHASORT invocations from here...
3628         * modules/alphasort (configure.ac): ... to here.
3629
3630 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3631
3632         verify: new macro verify_expr; verify_true deprecated
3633         * NEWS: Mention this.
3634         * doc/verify.texi (Compile-time Assertions): Document this.
3635         * lib/verify.h (verify_true): Deprecate.
3636         (verify_expr): New macro.
3637         * tests/test-verify.c (function): Test verify_expr.
3638
3639 2011-06-14  Jim Meyering  <meyering@redhat.com>
3640
3641         init.sh: give more portable redirection-related advice in a comment
3642         * tests/init.sh (stderr_fileno_): Update the advice in comments.
3643         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
3644         for lots of discussion.  Stefano Lattarini suggested the solution
3645         of putting "9>&2" after the command.  Reported by Bruno Haible.
3646
3647 2011-06-13  Bruno Haible  <bruno@clisp.org>
3648
3649         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
3650         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
3651         'none'.
3652
3653 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3654
3655         ftoastr: use strtof only if HAVE_STRTOF
3656         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
3657         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
3658         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
3659         * modules/ftoastr (configure.ac): Check for strtof.
3660
3661 2011-06-13  Bruno Haible  <bruno@clisp.org>
3662
3663         gnulib-tool: Addendum to 2011-06-08 commit.
3664         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
3665         and --witness-c-macro have been given, augment AM_CPPFLAGS.
3666
3667 2011-06-13  Bruno Haible  <bruno@clisp.org>
3668
3669         fseeko: Provide a non-inline replacement of fseek().
3670         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
3671         * modules/fseeko (Depends-on): Add fseek.
3672         * modules/fseek (License): Change to LGPLv2+.
3673
3674 2011-06-13  Bruno Haible  <bruno@clisp.org>
3675
3676         ftello: Provide a non-inline replacement of ftell().
3677         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
3678         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
3679         not have ftello() (such as on mingw).
3680         * modules/ftello (Depends-on): Add ftell.
3681         * modules/ftell (License): Change to LGPLv2+.
3682
3683 2011-05-07  Bruno Haible  <bruno@clisp.org>
3684
3685         ftell: Move AC_LIBOBJ invocations to module description.
3686         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
3687         * modules/ftell (configure.ac): ... to here.
3688
3689 2011-05-07  Bruno Haible  <bruno@clisp.org>
3690
3691         ftello: Respect rules for use of AC_LIBOBJ.
3692         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
3693         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
3694         here...
3695         * modules/ftello (configure.ac): ... to here.
3696
3697 2011-05-07  Bruno Haible  <bruno@clisp.org>
3698
3699         fseeko: Simplify.
3700         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
3701         (gl_FUNC_FSEEKO): Inline it here.
3702
3703 2011-05-07  Bruno Haible  <bruno@clisp.org>
3704
3705         fseek: Move AC_LIBOBJ invocations to module description.
3706         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
3707         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3708         * modules/fseek (configure.ac): ... to here.
3709
3710 2011-05-07  Bruno Haible  <bruno@clisp.org>
3711
3712         fseek: Respect rules for use of AC_LIBOBJ.
3713         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
3714         here...
3715         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
3716
3717 2011-05-07  Bruno Haible  <bruno@clisp.org>
3718
3719         fseeko: Respect rules for use of AC_LIBOBJ.
3720         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
3721         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
3722         here...
3723         * modules/fseeko (configure.ac): ... to here.
3724
3725 2011-06-13  Bruno Haible  <bruno@clisp.org>
3726
3727         gnulib-tool: Allow comments in the 'Depends-on' section.
3728         * doc/gnulib.texi (Module description): Mention comment syntax in the
3729         Depends-on section.
3730         * gnulib-tool (func_get_dependencies): Filter out comment lines.
3731
3732 2011-06-13  Bruno Haible  <bruno@clisp.org>
3733
3734         file-set.h: guard __attibute__ use, now that it's not always defined
3735         * lib/file-set.h (record_file): Use __attribute__ only with compiler
3736         versions that support it.  This fixes a coreutils build failure with
3737         the vendor cc on HP-UX 11.31.
3738
3739 2011-06-12  Bruno Haible  <bruno@clisp.org>
3740
3741         acl: Add support for HP-UX >= 11.11 JFS ACLs.
3742         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
3743         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
3744         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
3745         (acl, aclsort): New declarations.
3746         (aclv_nontrivial): New declaration.
3747         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
3748         (file_has_acl): Read also the second kind of HP-UX ACLs.
3749         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
3750         kind of HP-UX ACLs if the first kind fails.
3751         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
3752         second kind of HP-UX ACLs.
3753         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
3754         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
3755         agree.
3756         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3757         hpuxjfs.
3758         Handle hpuxjfs.
3759         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3760         hpuxjfs.
3761         Handle hpuxjfs.
3762         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3763         (func_test_same_acls): Use both lsacl and getacl.
3764         Handle hpuxjfs.
3765         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3766         (func_test_same_acls): Use both lsacl and getacl.
3767         Handle hpuxjfs.
3768
3769 2011-06-12  Bruno Haible  <bruno@clisp.org>
3770
3771         acl: Complete the 2010-08-10 fix.
3772         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
3773         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
3774         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
3775         explicitly.
3776         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
3777         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
3778
3779 2011-06-12  Bruno Haible  <bruno@clisp.org>
3780
3781         spawn-pipe tests: Comments.
3782         * tests/test-spawn-pipe-child.c (main): Update comment.
3783         Reported by James Youngman <jay@gnu.org>.
3784
3785 2011-06-11  James Youngman  <jay@gnu.org>
3786
3787         New module 'stat-size'.
3788         * modules/stat-size: New module.  Provides macros for accessing
3789         file size information in instances of struct stat.  Depends on the
3790         fileblocks module because it calls st_blocks.
3791         * lib/stat-size.h: New file, adapted from coreutils' system.h.
3792         * doc/gnulib.texi: Include stat-size.texi.
3793         * doc/stat-size.texi: Documentation for this module.
3794         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
3795         * m4/fileblocks.m4: Mention that stat-size depends on the call to
3796         AC_STRUCT_ST_BLOCKS.
3797
3798 2011-06-09  Bruno Haible  <bruno@clisp.org>
3799
3800         thread: Support pthreads-win32.
3801         * lib/glthread/thread.h (gl_thread_self): Define differently on
3802         pthreads-win32.
3803         (gl_null_thread): New declaration.
3804         (gl_thread_self_pointer): New macro.
3805         * lib/glthread/thread.c (gl_null_thread): New constant.
3806         * tests/test-lock.c: Use gl_thread_self_pointer instead of
3807         gl_thread_self.
3808         * tests/test-tls.c: Likewise.
3809         Suggested by Paul Eggert. Reported by Eric Blake.
3810
3811 2011-06-09  Bruno Haible  <bruno@clisp.org>
3812
3813         thread: Fix confusion between NULL and 0.
3814         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
3815         Reported by Paul Eggert.
3816
3817 2011-06-09  Bruno Haible  <bruno@clisp.org>
3818
3819         spawn-pipe tests: Avoid test failure on HP-UX 11.
3820         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
3821         is closed.
3822
3823 2011-06-09  Bruno Haible  <bruno@clisp.org>
3824
3825         acl tests: Fix compilation error on HP-UX 11.
3826         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
3827
3828 2011-06-09  Bruno Haible  <bruno@clisp.org>
3829
3830         rmdir: Avoid test failure on HP-UX 10.20.
3831         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
3832         EEXIST.
3833
3834 2011-06-08  Eric Blake  <eblake@redhat.com>
3835
3836         perror: fix test on mingw
3837         * modules/perror-tests (Depends-on): Add dup2.
3838
3839         strerror_r-posix: fix on MacOS
3840         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
3841         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
3842         logic bug.
3843         * lib/strerror_r.c (strerror_r): Fix the bug.
3844         * lib/strerror.c (strerror): Likewise.
3845         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3846         problem.
3847         * doc/posix-functions/strerror.texi (strerror): Likewise.
3848         * doc/posix-functions/perror.texi (perror): Likewise.
3849         * tests/test-strerror.c (main): Enhance test.
3850         * tests/test-strerror_r.c (main): Likewise.
3851
3852 2011-06-08  Bruno Haible  <bruno@clisp.org>
3853
3854         gnulib-tool: Better isolation between different gnulib-tool invocations.
3855         * gnulib-tool: New option --witness-c-macro.
3856         (witness_c_macro): New variable.
3857         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
3858         AM_CPPFLAGS define it as a C macro.
3859         (func_emit_tests_Makefile_am): Likewise.
3860         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
3861         read it from there.
3862         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
3863         m4_define, not AC_DEFUN.
3864         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
3865         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
3866         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
3867         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
3868         s|...|...|, to substitute the values of the GNULIB_* module indicator
3869         variables.
3870         * modules/dirent (Makefile.am): Likewise.
3871         * modules/fcntl-h (Makefile.am): Likewise.
3872         * modules/iconv-h (Makefile.am): Likewise.
3873         * modules/langinfo (Makefile.am): Likewise.
3874         * modules/locale (Makefile.am): Likewise.
3875         * modules/math (Makefile.am): Likewise.
3876         * modules/netdb (Makefile.am): Likewise.
3877         * modules/poll-h (Makefile.am): Likewise.
3878         * modules/pty (Makefile.am): Likewise.
3879         * modules/search (Makefile.am): Likewise.
3880         * modules/signal (Makefile.am): Likewise.
3881         * modules/spawn (Makefile.am): Likewise.
3882         * modules/stdio (Makefile.am): Likewise.
3883         * modules/stdlib (Makefile.am): Likewise.
3884         * modules/string (Makefile.am): Likewise.
3885         * modules/sys_ioctl (Makefile.am): Likewise.
3886         * modules/sys_select (Makefile.am): Likewise.
3887         * modules/sys_socket (Makefile.am): Likewise.
3888         * modules/sys_stat (Makefile.am): Likewise.
3889         * modules/sys_times (Makefile.am): Likewise.
3890         * modules/sys_utsname (Makefile.am): Likewise.
3891         * modules/sys_wait (Makefile.am): Likewise.
3892         * modules/termios (Makefile.am): Likewise.
3893         * modules/time (Makefile.am): Likewise.
3894         * modules/unistd (Makefile.am): Likewise.
3895         * modules/wchar (Makefile.am): Likewise.
3896
3897 2011-06-08  Eric Blake  <eblake@redhat.com>
3898
3899         strerror: simplify replacement
3900         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
3901         * modules/strerror (configure.ac): No prereqs needed here...
3902         * modules/strerror-override (configure.ac): ...but this needs it.
3903         (Files): Add file for needed prereq macro.
3904
3905 2011-06-08  Bruno Haible  <bruno@clisp.org>
3906
3907         strerror_r-posix: Tweaks.
3908         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
3909         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
3910         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
3911         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
3912         (gl_FUNC_STRERROR_R): ... to here.
3913         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
3914
3915 2011-06-07  Eric Blake  <eblake@redhat.com>
3916
3917         perror: document fixed bugs
3918         * doc/posix-functions/perror.texi (perror): Document recent
3919         patches.
3920
3921 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3922
3923         stat-time: get_stat_birthtime failure is better-defined
3924         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
3925         return a timestamp whose tv_sec and tv_nsec values are both -1.
3926         Previously, the spec said only that the tv_nsec value was negative.
3927         This upward-compatible change simplifies GNU tar a bit.
3928
3929 2011-06-07  Eric Blake  <eblake@redhat.com>
3930
3931         strerror_r-posix: work around cygwin 1.7.9
3932         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
3933         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
3934         bug without replacing strerror_r.
3935         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
3936         strerror_r is buggy, but without requiring strerror_r compilation.
3937         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
3938
3939         test-perror: relax test to ignore cygwin bug
3940         * tests/test-perror2.c (main): Relax test on requiring detection
3941         of stream errors, and use unbuffered stream.
3942         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
3943         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
3944         * doc/posix-functions/fputc.texi (fputc): Likewise.
3945         * doc/posix-functions/fputs.texi (fputs): Likewise.
3946         * doc/posix-functions/fputws.texi (fputws): Likewise.
3947         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
3948         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
3949         * doc/posix-functions/getopt.texi (getopt): Likewise.
3950         * doc/posix-functions/perror.texi (perror): Likewise.
3951         * doc/posix-functions/printf.texi (printf): Likewise.
3952         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
3953         * doc/posix-functions/psignal.texi (psignal): Likewise.
3954         * doc/posix-functions/putc.texi (putc): Likewise.
3955         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
3956         Likewise.
3957         * doc/posix-functions/putchar.texi (putchar): Likewise.
3958         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
3959         Likewise.
3960         * doc/posix-functions/puts.texi (puts): Likewise.
3961         * doc/posix-functions/putwc.texi (putwc): Likewise.
3962         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
3963         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
3964         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3965         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
3966         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3967         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
3968         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
3969         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
3970
3971 2011-05-22  Bruno Haible  <bruno@clisp.org>
3972
3973         strerror: Move AC_LIBOBJ invocations to module description.
3974         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
3975         gl_PREREQ_STRERROR invocations from here...
3976         * modules/strerror (configure.ac): ... to here.
3977
3978 2011-05-21  Bruno Haible  <bruno@clisp.org>
3979
3980         perror: Use common idiom.
3981         * modules/perror (configure.ac): Reorder statements.
3982
3983 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3984
3985         tests: fix usage message in 'mktempd_'
3986         * tests/init.sh (mktempd_): In the usage message, use literal
3987         'mktempd_', not '$ME' (which is even undefined), as the name of
3988         the subroutine.
3989
3990 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3991
3992         tests init: new function 'fatal_', for hard errors
3993         Before this patch, the only way offered by tests/init.sh to
3994         properly signal a hard error was the `framework_failure_'
3995         function.  But the error message issued by that function,
3996         as its name would suggest, refers to a set-up failure in the
3997         testsuite, while hard errors can obviously also be due to
3998         other reasons.  The best way to fix this inconsistency is to
3999         introduce a new function with a more general error message.
4000         * tests/init.sh (fatal_): New function.
4001
4002 2011-06-06  Eric Blake  <eblake@redhat.com>
4003
4004         canonicalize-lgpl: use common idiom
4005         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
4006         over newer POSIX -Rf.
4007         Reported by Bruno Haible.
4008
4009         canonicalize-lgpl: work around AIX realpath bug
4010         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
4011         * doc/posix-functions/realpath.texi (realpath): Document it.
4012         Reported by Bruno Haible.
4013
4014         strerror: work around FreeBSD bug
4015         * lib/strerror.c (strerror): Special case 0.
4016         Reported by Bruno Haible.
4017
4018         strerror-override: avoid bloating errno module
4019         * modules/errno (Files, configure.ac): Move replacement strings...
4020         * modules/strerror-override: ...to new module.
4021         * modules/strerror (Depends-on): Add strerror-override.
4022         * modules/strerror_r-posix (Depends-on): Likewise.
4023         * MODULES.html.sh: Document new module.
4024         Reported by Bruno Haible.
4025
4026 2011-06-06  Bruno Haible  <bruno@clisp.org>
4027
4028         spawn-pipe tests: Rename program.
4029         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
4030         * tests/test-spawn-pipe-child.c: Update comment.
4031         * tests/test-spawn-pipe.sh: Update.
4032         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
4033
4034         spawn-pipe tests: Link the child program only against libc.
4035         * tests/test-spawn-pipe-child.c: New file, extracted from
4036         tests/test-spawn-pipe.c.
4037         (main): Expect only one argument.
4038         (is_open): New function, copied from tests/test-pipe.c.
4039         * tests/test-spawn-pipe.c: Don't include <errno.h>.
4040         (child_main): Remove function.
4041         (test_pipe): Pass only one argument to the child program.
4042         (main): Remove child process code. Expect the child program's name as
4043         first argument.
4044         * tests/test-spawn-pipe.sh: Pass the child program's name as first
4045         argument.
4046         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
4047         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
4048         test-spawn-pipe-child against no libraries.
4049
4050 2011-06-06  Bruno Haible  <bruno@clisp.org>
4051
4052         careadlinkat: Avoid mismatch between ssize_t and int.
4053         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
4054         * lib/careadlinkat.c (careadlinkatcwd): Define always.
4055
4056 2011-06-06  Jim Meyering  <meyering@redhat.com>
4057
4058         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
4059         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
4060         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
4061
4062 2011-06-05  Bruno Haible  <bruno@clisp.org>
4063
4064         ansi-c++-opt: Interoperability with libtool.
4065         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
4066         set the variable to "no", not to ":".
4067         * NEWS: Mention the change.
4068
4069 2011-06-05  Bruno Haible  <bruno@clisp.org>
4070
4071         acl: Fix test failure on AIX 7.
4072         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
4073         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
4074
4075 2011-06-05  Bruno Haible  <bruno@clisp.org>
4076
4077         pipe-filter-ii: Fix test failure on AIX and IRIX.
4078         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
4079         with EAGAIN, retry with a smaller buffer size.
4080
4081 2011-06-05  Bruno Haible  <bruno@clisp.org>
4082
4083         localename: Fix link dependencies.
4084         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
4085         * modules/localename-tests (Makefile.am): Link test-localename with
4086         $(LIBTHREAD).
4087
4088 2011-06-05  Bruno Haible  <bruno@clisp.org>
4089
4090         error: Avoid gcc warning.
4091         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
4092
4093 2011-06-05  Bruno Haible  <bruno@clisp.org>
4094
4095         unsetenv: Avoid gcc warning.
4096         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
4097
4098 2011-06-05  Bruno Haible  <bruno@clisp.org>
4099
4100         setenv: Avoid gcc warning.
4101         * lib/setenv.c (setenv): Provide declaration if system lacks it.
4102
4103 2011-06-05  Bruno Haible  <bruno@clisp.org>
4104
4105         sys_select: Ensure memset is declared also on AIX 7.
4106         * lib/sys_select.in.h: Include <string.h> also on AIX.
4107         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
4108         self-contained also on AIX 7.1.
4109
4110 2011-06-04  Jim Meyering  <meyering@redhat.com>
4111
4112         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
4113         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
4114         function name, "error".
4115         (_gl_translatable_diag_func_re): New configurable variable.
4116
4117 2011-06-04  Bruno Haible  <bruno@clisp.org>
4118
4119         getopt: Avoid gcc warning.
4120         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
4121
4122 2011-06-04  Bruno Haible  <bruno@clisp.org>
4123
4124         strerror_r: Fix comments.
4125         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
4126         commit.
4127
4128 2011-06-04  Bruno Haible  <bruno@clisp.org>
4129
4130         perror: Fix compilation error.
4131         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
4132         Undefine fprintf, not sprintf.
4133         * modules/perror (Depends-on): Remove intprops, verify.
4134
4135 2011-06-04  Bruno Haible  <bruno@clisp.org>
4136
4137         setlocale: Enable replacement on Cygwin 1.5.
4138         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
4139         Cygwin 1.5.x.
4140         * doc/posix-functions/setlocale.texi: Mention that the problem with the
4141         LC_CTYPE category also exists on Cygwin 1.5.x.
4142
4143 2011-06-04  Bruno Haible  <bruno@clisp.org>
4144
4145         strerror-override: Don't disable symbol renamings.
4146         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
4147         * lib/strerror-override.c: Include config.h.
4148         (strerror_override): Don't undefine.
4149
4150 2011-06-03  Bruno Haible  <bruno@clisp.org>
4151
4152         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
4153         * lib/localename.h: Update copyright header.
4154         * lib/localename.c: Likewise.
4155         * lib/relocatable.h: Likewise.
4156         * lib/relocatable.c: Likewise.
4157
4158 2011-06-02  Bruno Haible  <bruno@clisp.org>
4159
4160         doc: Fix a module name.
4161         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
4162
4163 2011-06-02  Bruno Haible  <bruno@clisp.org>
4164
4165         pipe2: Remove dependency on 'nonblocking' module.
4166         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
4167         O_NONBLOCK is defined by gnulib.
4168         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
4169         is zero.
4170         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
4171         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
4172         defined by gnulib.
4173         (get_nonblocking_flag): New function.
4174         (main): Test O_NONBLOCK flag only if it is nonzero.
4175         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
4176
4177 2011-06-03  Jim Meyering  <meyering@redhat.com>
4178
4179         maint: three new prohibit-header-without-use rules
4180         Prohibit use of cloexec.h, posixver.h, same.h without use.
4181         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
4182         (sc_prohibit_posixver_without_use): Likewise.
4183         (sc_prohibit_same_without_use): Likewise.
4184
4185 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
4186
4187         allocator: 'die' routine is now given requested size
4188         * lib/allocator.h (struct allocator.die): New size arg.
4189         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
4190         If the actual problem is an ssize_t limitation, not a size_t or
4191         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
4192
4193 2011-06-01  Eric Blake  <eblake@redhat.com>
4194
4195         strerror: drop strerror_r dependency
4196         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
4197         * lib/strerror-override.c (strerror_override): ...to new file.
4198         * lib/strerror-override.h: Add prototype.
4199         * lib/strerror-impl.h: Delete.
4200         * lib/strerror.c (strerror): New implementation.
4201         * modules/errno (Files): Add new files.
4202         (configure.ac): Compile new file as appropriate.
4203         * modules/strerror (Files): Drop unused file.
4204         (Depends-on): Drop strerror_r-posix.
4205         * MODULES.html.sh: Document strerror_r-posix.
4206         Requested by Sam Steingold.
4207
4208         perror: call strerror_r directly
4209         * modules/perror (Files): Drop strerror-impl.h.
4210         * lib/perror.c (perror): Use our own stack buffer, rather than
4211         calling a wrapper that uses static storage.
4212         * doc/posix-functions/perror.texi (perror): Document a limitation
4213         of our replacement.
4214
4215         strerror_r: fix includes for FreeBSD
4216         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
4217         since we use abort on some platforms.
4218         Reported by Matthias Bolte.
4219
4220 2011-05-31  Bruno Haible  <bruno@clisp.org>
4221
4222         Fix link errors in tests: openat-die uses gettext-h.
4223         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
4224         against $(LIBINTL).
4225         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
4226         against $(LIBINTL).
4227         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
4228         $(LIBINTL).
4229         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
4230         against $(LIBINTL).
4231         * modules/linkat-tests (Makefile.am): Link test-linkat against
4232         $(LIBINTL).
4233         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
4234         $(LIBINTL).
4235         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
4236         against $(LIBINTL).
4237         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
4238         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
4239         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
4240         $(LIBINTL).
4241         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
4242         $(LIBINTL).
4243         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
4244         $(LIBINTL).
4245         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4246
4247 2011-05-31  Bruno Haible  <bruno@clisp.org>
4248
4249         Fix link errors in tests: wait-process uses gettext-h.
4250         * modules/nonblocking-pipe-tests (Makefile.am): Set
4251         test_nonblocking_pipe_main_LDADD.
4252         * modules/nonblocking-socket-tests (Makefile.am): Link
4253         test-nonblocking-socket-main against $(LIBINTL).
4254         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4255
4256 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4257
4258         assert-h: work around 'verify' incompatibility
4259         * lib/verify.h: Use @...@ directives, not ifdef.
4260         * modules/assert-h (assert.h): Implement the directives.
4261         (assert.h): Substitute the symbol-prefix more consistently.
4262
4263 2011-05-29  Jim Meyering  <meyering@redhat.com>
4264
4265         trim: remove three superfluous assignments
4266         * lib/trim.c (trim2): Remove three superfluous assignments
4267         and correct brace positioning.
4268
4269 2011-05-29  Bruno Haible  <bruno@clisp.org>
4270
4271         wctype-h: Avoid namespace pollution on Solaris 2.6.
4272         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4273         identifiers.
4274         * doc/posix-headers/wctype.texi: Mention the problem.
4275         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4276
4277 2011-05-28  Jim Meyering  <meyering@redhat.com>
4278
4279         parse-datetime.y: accommodate -Wstrict-overflow
4280         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4281         placate -Wstrict-overflow.
4282
4283         trim: avoid a warning from -O2 -Wstrict-overflow
4284         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4285
4286 2011-05-29  Bruno Haible  <bruno@clisp.org>
4287
4288         gnulib-tool: Fix bug in yesterday's commit.
4289         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4290         twice.
4291
4292 2011-05-29  Bruno Haible  <bruno@clisp.org>
4293
4294         Allow multiple gnulib generated include files to be combined.
4295         * gnulib-tool (func_compute_include_guard_prefix): New function.
4296         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4297         ${gl_include_guard_prefix} references.
4298         (func_import, func_create_testdir): Invoke
4299         func_compute_include_guard_prefix.
4300         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4301         * lib/ctype.in.h: Likewise.
4302         * lib/dirent.in.h: Likewise.
4303         * lib/errno.in.h: Likewise.
4304         * lib/fcntl.in.h: Likewise.
4305         * lib/float.in.h: Likewise.
4306         * lib/getopt.in.h: Likewise.
4307         * lib/iconv.in.h: Likewise.
4308         * lib/langinfo.in.h: Likewise.
4309         * lib/locale.in.h: Likewise.
4310         * lib/math.in.h: Likewise.
4311         * lib/netdb.in.h: Likewise.
4312         * lib/netinet_in.in.h: Likewise.
4313         * lib/poll.in.h: Likewise.
4314         * lib/pthread.in.h: Likewise.
4315         * lib/pty.in.h: Likewise.
4316         * lib/sched.in.h: Likewise.
4317         * lib/se-selinux.in.h: Likewise.
4318         * lib/search.in.h: Likewise.
4319         * lib/signal.in.h: Likewise.
4320         * lib/spawn.in.h: Likewise.
4321         * lib/stdarg.in.h: Likewise.
4322         * lib/stddef.in.h: Likewise.
4323         * lib/stdint.in.h: Likewise.
4324         * lib/stdio.in.h: Likewise.
4325         * lib/stdlib.in.h: Likewise.
4326         * lib/string.in.h: Likewise.
4327         * lib/strings.in.h: Likewise.
4328         * lib/sys_file.in.h: Likewise.
4329         * lib/sys_ioctl.in.h: Likewise.
4330         * lib/sys_select.in.h: Likewise.
4331         * lib/sys_socket.in.h: Likewise.
4332         * lib/sys_stat.in.h: Likewise.
4333         * lib/sys_time.in.h: Likewise.
4334         * lib/sys_times.in.h: Likewise.
4335         * lib/sys_uio.in.h: Likewise.
4336         * lib/sys_utsname.in.h: Likewise.
4337         * lib/sys_wait.in.h: Likewise.
4338         * lib/sysexits.in.h: Likewise.
4339         * lib/termios.in.h: Likewise.
4340         * lib/time.in.h: Likewise.
4341         * lib/unistd.in.h: Likewise.
4342         * lib/wchar.in.h: Likewise.
4343         * lib/wctype.in.h: Likewise.
4344         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4345         * modules/ctype (Makefile.am): Likewise.
4346         * modules/dirent (Makefile.am): Likewise.
4347         * modules/errno (Makefile.am): Likewise.
4348         * modules/fcntl-h (Makefile.am): Likewise.
4349         * modules/float (Makefile.am): Likewise.
4350         * modules/getopt-posix (Makefile.am): Likewise.
4351         * modules/iconv-h (Makefile.am): Likewise.
4352         * modules/langinfo (Makefile.am): Likewise.
4353         * modules/locale (Makefile.am): Likewise.
4354         * modules/math (Makefile.am): Likewise.
4355         * modules/netdb (Makefile.am): Likewise.
4356         * modules/netinet_in (Makefile.am): Likewise.
4357         * modules/poll-h (Makefile.am): Likewise.
4358         * modules/pthread (Makefile.am): Likewise.
4359         * modules/pty (Makefile.am): Likewise.
4360         * modules/sched (Makefile.am): Likewise.
4361         * modules/search (Makefile.am): Likewise.
4362         * modules/selinux-h (Makefile.am): Likewise.
4363         * modules/signal (Makefile.am): Likewise.
4364         * modules/spawn (Makefile.am): Likewise.
4365         * modules/stdarg (Makefile.am): Likewise.
4366         * modules/stddef (Makefile.am): Likewise.
4367         * modules/stdint (Makefile.am): Likewise.
4368         * modules/stdio (Makefile.am): Likewise.
4369         * modules/stdlib (Makefile.am): Likewise.
4370         * modules/string (Makefile.am): Likewise.
4371         * modules/strings (Makefile.am): Likewise.
4372         * modules/sys_file (Makefile.am): Likewise.
4373         * modules/sys_ioctl (Makefile.am): Likewise.
4374         * modules/sys_select (Makefile.am): Likewise.
4375         * modules/sys_socket (Makefile.am): Likewise.
4376         * modules/sys_stat (Makefile.am): Likewise.
4377         * modules/sys_time (Makefile.am): Likewise.
4378         * modules/sys_times (Makefile.am): Likewise.
4379         * modules/sys_uio (Makefile.am): Likewise.
4380         * modules/sys_utsname (Makefile.am): Likewise.
4381         * modules/sys_wait (Makefile.am): Likewise.
4382         * modules/sysexits (Makefile.am): Likewise.
4383         * modules/termios (Makefile.am): Likewise.
4384         * modules/time (Makefile.am): Likewise.
4385         * modules/unistd (Makefile.am): Likewise.
4386         * modules/wchar (Makefile.am): Likewise.
4387         * modules/wctype-h (Makefile.am): Likewise.
4388         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4389
4390 2011-05-29  Bruno Haible  <bruno@clisp.org>
4391
4392         assert-h: Allow multiple gnulib generated replacements to coexist.
4393         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4394
4395 2011-05-29  Bruno Haible  <bruno@clisp.org>
4396
4397         argp: Allow coexistence with strerror_r-posix module.
4398         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4399         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4400         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4401         not the glibc signature.
4402
4403 2011-05-28  Bruno Haible  <bruno@clisp.org>
4404
4405         gnulib-tool: Alternative structure of testdirs, similar to --import.
4406         * gnulib-tool: New option --single-configure.
4407         (func_usage): Document it.
4408         (single_configure): New variable.
4409         (func_modules_transitive_closure_separately,
4410         func_modules_transitive_closure_separately,
4411         func_determine_use_libtests, func_modules_add_dummy_separately,
4412         func_modules_to_filelist_separately): New functions, extracted from
4413         func_import.
4414         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4415         (func_import): Use the new functions.
4416         (func_create_testdir): Set final_modules. Handle $single_configure =
4417         true case.
4418
4419 2011-05-28  Bruno Haible  <bruno@clisp.org>
4420
4421         getloadavg: Remove an unreliable safety check.
4422         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4423         getloadavg.c is in place.
4424         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4425         Reported by Sam Steingold <sds@gnu.org>.
4426
4427 2011-05-28  Bruno Haible  <bruno@clisp.org>
4428
4429         doc: Cleanup yet another file produced by texinfo.tex.
4430         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4431
4432 2011-05-28  Bruno Haible  <bruno@clisp.org>
4433
4434         Finish the conditional dependencies mechanism.
4435         * gnulib-tool: New option --no-conditional-dependencies.
4436         (func_usage): Document it. Don't mark --conditional-dependencies as
4437         experimental.
4438         (cond_dependencies): The possible values can now be true, false, empty.
4439         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4440         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4441         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4442
4443 2011-05-28  Bruno Haible  <bruno@clisp.org>
4444
4445         doc: Use a recent texinfo.tex.
4446         * doc/Makefile (tex_opts): New variable.
4447         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4448
4449 2011-05-28  Jim Meyering  <meyering@redhat.com>
4450
4451         intprops.h: adjust comment to match code change
4452         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4453         only once, it *may* have side effects.  Also fix an unrelated typo.
4454         (_GL_INT_SIGNED): Likewise.
4455
4456 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4457
4458         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4459
4460 2011-05-26  Bruno Haible  <bruno@clisp.org>
4461
4462         mbsrchr: Avoid collision with system function on Interix.
4463         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4464         Reported by Markus Duft <mduft@gentoo.org>.
4465
4466 2011-05-15  James Youngman  <jay@gnu.org>
4467
4468         getopt: for ambiguous options, enumerate the possibilities.
4469         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4470         the ambiguous options when an ambiguous prefix is given. This was
4471         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
4472         glibc change was
4473         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
4474
4475 2011-05-25  Eric Blake  <eblake@redhat.com>
4476
4477         getcwd: work around mingw bug
4478         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
4479         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4480         Reported by Matthias Bolte.
4481
4482 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4483
4484         test-intprops: disable -Wtype-limits diagnostics
4485         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
4486         diagnostics.  Otherwise, the integer overflow macros generate many
4487         diagnostics.  Reported by Jim Meyering in
4488         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4489
4490         intprops: shorten, to pacify gcc -Woverlength-strings
4491         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
4492         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
4493         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
4494         likely to run afoul of C compiler limits for string constant lengths.
4495         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4496
4497 2011-05-24  Eric Blake  <eblake@redhat.com>
4498
4499         docs: document recently fixed glibc printf bug
4500         * doc/posix-functions/fprintf.texi (fprintf): Document it.
4501         * doc/posix-functions/printf.texi (printf): Likewise.
4502         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4503         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4504
4505         closein-tests: convert to init.sh
4506         * modules/closein-tests (Files): Add init.sh
4507         * tests/test-closein.sh Use it.
4508
4509         yesno-tests: convert to init.sh
4510         * modules/yesno-tests (Files): Add init.sh.
4511         * tests/test-yesno.sh: Use it.
4512
4513         atexit-tests: ensure reliable exit status
4514         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
4515         Reported by Bruno Haible.
4516
4517 2011-05-24  Bruno Haible  <bruno@clisp.org>
4518
4519         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
4520         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
4521         gl_PREREQ_STRERROR_R invocations from here...
4522         * modules/strerror_r-posix (configure.ac): ... to here.
4523
4524 2011-05-24  Eric Blake  <eblake@redhat.com>
4525
4526         strerror_r: fix missing header
4527         * lib/strerror_r.c: Avoid compiler warning about snprintf.
4528
4529         strerror_r: fix AIX test failures
4530         * lib/strerror_r.c (strerror_r): Convert silent truncation to
4531         ERANGE failure.
4532
4533         strerror_r: fix Solaris test failures
4534         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
4535         failures.
4536         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4537
4538         strerror_r: enforce POSIX recommendations
4539         * lib/strerror_r.c (safe_copy): New helper method.
4540         (strerror_r): Guarantee a non-empty string.
4541         * tests/test-strerror_r.c (main): Enhance tests to incorporate
4542         recent POSIX rulings and to match our strerror guarantees.
4543         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4544
4545 2011-05-24  Jim Meyering  <meyering@redhat.com>
4546
4547         test-perror2.c: avoid warning about unused variable
4548         * tests/test-perror2.c (main): Remove declaration of unused "fp".
4549
4550 2011-05-24  Eric Blake  <eblake@redhat.com>
4551
4552         perror: avoid spurious test failure on HP-UX
4553         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
4554
4555         tests: fix logic bug in init.sh
4556         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
4557         shell.
4558
4559 2011-05-24  Jim Meyering  <meyering@redhat.com>
4560
4561         utimensat: do not reference an out-of-scope buffer
4562         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4563         declared in an inner scope, yet "times" would be dereferenced outside
4564         the scope in which "ts" was valid.
4565         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4566         of ts[2] "out/up", so that the use of aliased "times" (via
4567         "times = ts;") does not end up referencing an out-of-scope "ts"
4568
4569         opendir-safer.c: don't clobber errno; don't close negative FD
4570         * lib/opendir-safer.c (opendir_safer):
4571         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4572         file descriptor, and more importantly, don't clobber the
4573         offending errno value with EINVAL.  Before, upon failure
4574         of dup_safer, we would pass the negative file descriptor to
4575         fdopendir, which would clobber errno.
4576
4577 2011-05-23  Bruno Haible  <bruno@clisp.org>
4578
4579         idcache: Fix module description.
4580         * modules/idcache (Include): Set to "idcache.h".
4581
4582 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4583
4584         gnulib-tool: fix portability problem with MacOS sed
4585         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4586         before the "}".  Problem reported by Leo in
4587         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4588         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4589         sed_extract_condition1, sed_extract_condition2.
4590
4591 2011-05-23  Bruno Haible  <bruno@clisp.org>
4592
4593         hash: Simplify autoconf macro.
4594         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4595
4596 2011-05-23  Bruno Haible  <bruno@clisp.org>
4597
4598         getugroups: Fix module description.
4599         * modules/getugroups (Include): Set to "getugroups.h".
4600
4601 2011-05-23  Bruno Haible  <bruno@clisp.org>
4602
4603         linkat: Simplify autoconf macro.
4604         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4605
4606 2011-05-23  Bruno Haible  <bruno@clisp.org>
4607             Eric Blake  <eblake@redhat.com>
4608
4609         linkat, renameat: Update dependencies.
4610         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4611         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4612         symlinkat.
4613
4614 2011-05-23  Jim Meyering  <meyering@redhat.com>
4615
4616         maint.mk: more tight_scope improvements
4617         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4618         (_gl_TS_headers): Define only in if-0'd block.
4619         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4620         sometimes we must *not* use it.  Adjust uses accordingly.
4621         (sc_tight_scope): Use much simpler grep-based test to determine
4622         whether we skip this rule.
4623
4624         maint.mk: generalize/improve the tight-scope rule
4625         * top/maint.mk: Emit a warning when the test is skipped.
4626         (_gl_TS_dir): Add $(srcdir)/ prefix.
4627         (_gl_TS_function_match): Simplify, rather than trying
4628         to enumerate common types.  Otherwise, it would fail to match an
4629         "extern unsigned char const *" declaration in idutils.
4630         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4631         a way to support use of that type of macro.
4632         (_gl_TS_var_match): Simplify regexp.
4633         (_gl_TS_obj_files): New configurable variable.
4634         (_gl_TS_headers): Likewise.
4635
4636 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4637
4638         verify: fix bug when gnulib <assert.h> is also included
4639         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
4640         is defined, not if _GL_STATIC_ASSERT_H is not defined.
4641         Perhaps there's a better way, but this fixes the immediate problem.
4642         Problem reported by Bruno Haible in
4643         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
4644
4645 2011-05-22  Bruno Haible  <bruno@clisp.org>
4646
4647         xgetcwd: Simplify autoconf macro.
4648         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
4649
4650 2011-05-22  Bruno Haible  <bruno@clisp.org>
4651
4652         New module 'mktime-internal'.
4653         * modules/mktime-internal: New file.
4654         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
4655         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
4656         mktime_internal as a C macro if libc has __mktime_internal.
4657         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
4658         conditions.
4659         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
4660
4661 2011-05-22  Bruno Haible  <bruno@clisp.org>
4662
4663         timegm: Correct mktime replacement statements.
4664         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
4665         defining mktime as a C macro. This completes a 2009-07-28 commit.
4666
4667 2011-05-22  Bruno Haible  <bruno@clisp.org>
4668
4669         timegm: Simplify autoconf macro.
4670         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
4671
4672 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4673
4674         clock-time: change to LGPLv2+.
4675         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
4676         BSD-like but we have no mark for that; this is good enough for now.
4677
4678 2011-05-21  Bruno Haible  <bruno@clisp.org>
4679
4680         strerror_r: Fix comments.
4681         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
4682
4683 2011-05-21  Bruno Haible  <bruno@clisp.org>
4684
4685         relocatable-prog-wrapper: Fix possible link error.
4686         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
4687         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
4688         (gl_FUNC_SETENV): ... to here.
4689         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
4690         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
4691
4692 2011-05-21  Bruno Haible  <bruno@clisp.org>
4693
4694         relocatable-prog-wrapper: Assume strerror() exists.
4695         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
4696         m4/strerror.m4.
4697         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
4698         * lib/relocwrapper.c: Remove mention of strerror module.
4699         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
4700         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
4701         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
4702         C macro.
4703
4704 2011-05-21  Bruno Haible  <bruno@clisp.org>
4705
4706         select: Simplify replacement idiom.
4707         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
4708         Win32 platforms.
4709         * lib/sys_select.in.h (select): Simplify accordingly.
4710         * modules/select (Depends-on): Likewise.
4711
4712 2011-05-21  Bruno Haible  <bruno@clisp.org>
4713
4714         mkdir-p: Simplify autoconf macro.
4715         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
4716         gl_FUNC_LCHOWN.
4717
4718 2011-05-21  Eric Blake  <eblake@redhat.com>
4719
4720         strerror_r: avoid clobbering strerror on cygwin
4721         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
4722         fall back instead to sys_errlist.
4723         * modules/strerror (configure.ac): Add witness.
4724         * tests/test-strerror_r.c (main): Enhance test.
4725         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4726         * tests/test-perror2.c (main): Free memory before exit.
4727
4728 2011-05-21  Bruno Haible  <bruno@clisp.org>
4729
4730         mkdtemp: Use gnulib naming conventions.
4731         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
4732         * modules/mkdtemp (configure.ac): Update.
4733
4734 2011-05-20  Eric Blake  <eblake@redhat.com>
4735
4736         strerror_r: avoid corrupting errno on Solaris
4737         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
4738         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4739
4740         strerror_r: avoid compiler warning
4741         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
4742
4743         strerror_r: simplify AIX code
4744         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
4745
4746         test-perror: avoid spurious failure on FreeBSD
4747         * modules/perror-tests (Depends-on): Add strerror, now that
4748         strerror_r no longer pulls it in.
4749
4750 2011-05-20  Bruno Haible  <bruno@clisp.org>
4751
4752         strerror_r-posix: Remove unused dependencies.
4753         * modules/strerror_r-posix (Depends-on): Remove strerror.
4754         Reported by Eric Blake.
4755
4756 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
4757
4758         intprops: remove assumption about A|B representation
4759         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
4760         is a valid integer if both A and B are.  Although this is true for
4761         all known practical hosts, the C standard doesn't guarantee it,
4762         and the code need not assume it.  Also, this change may work around
4763         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
4764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
4765
4766 2011-05-20  Eric Blake  <eblake@redhat.com>
4767
4768         perror: work around FreeBSD bug
4769         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
4770         is broken.  Move AC_LIBOBJ...
4771         * modules/perror (configure.ac): Here.
4772         * doc/posix-functions/perror.texi (perror): Document this.
4773         * tests/test-perror2.c (main): Enhance test.
4774
4775         test-perror: check for strerror interactions
4776         * tests/macros.h (STREQ): Add macro.
4777         * modules/perror-tests (Files): Add second test.
4778         * tests/test-perror2.c (main): New file.
4779         * doc/posix-functions/perror.texi (perror): Document glibc bug.
4780
4781         test-perror: rewrite to use init script
4782         * modules/perror-tests (Files): Add init.sh.
4783         * tests/test-perror.sh: Use temporary directory.
4784
4785 2011-05-20  Jim Meyering  <meyering@redhat.com>
4786
4787         maint: replace misused "a" with "an"
4788         * doc/intprops.texi: "a integer"
4789         * doc/regex.texi: "a explanation"
4790         * lib/alignof.h: "a object"
4791         * lib/argmatch.h: "a explanation"
4792         * lib/argp-help.c: "a option" and "a OPTION_DOC"
4793         * lib/stdint.in.h: "a integer"
4794         * lib/userspec.c: "a owner"
4795         * doc/gnulib.texi: Fix "a idea", and reword.
4796
4797 2011-05-19  Jim Meyering  <meyering@redhat.com>
4798
4799         maint: correct misuse of "a" and "an"
4800         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
4801         * lib/argp-help.c: "an docum...": s/an/a/
4802         * lib/argp-parse.c: "An vector": s/An/A/
4803         * lib/execute.c: "an native": s/an/a/
4804         * lib/spawn-pipe.c: Likewise.
4805         * lib/gc.h: "an Gc_rc": s/an/a/
4806         * lib/unigbrk.in.h: "an grapheme": s/an/a/
4807         * lib/fts.c: "an stat.st_dev": s/an/a/
4808
4809 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4810
4811         intprops-tests: work around HP-UX 11.23 cc bug with constants
4812         * tests/test-intprops.c (VERIFY): New macro.
4813         (main): Use it, instead of verify, to work around the compiler bug; see
4814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4815
4816         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
4817         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
4818         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
4819         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
4820         (_GL_REMAINDER_OVERFLOW): Use it.
4821
4822         intprops-tests: revert unsigned part of previous change
4823         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
4824         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
4825         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
4826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
4827
4828 2011-05-19  Bruno Haible  <bruno@clisp.org>
4829
4830         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
4831         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
4832         strerror_r() returned without filling the buffer.
4833         Reported by Eric Blake.
4834
4835 2011-05-19  Eric Blake  <eblake@redhat.com>
4836
4837         strerror_r: guarantee unchanged errno
4838         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
4839         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
4840         failure.
4841         * tests/test-strerror_r.c (main): Enhance test.
4842
4843 2011-05-19  Bruno Haible  <bruno@clisp.org>
4844
4845         strerror_r: Reorder #if blocks.
4846         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
4847         for consistency with the previous commit.
4848
4849 2011-05-19  Bruno Haible  <bruno@clisp.org>
4850
4851         perror: Avoid clobbering the strerror buffer when possible.
4852         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
4853         * lib/strerror.c: Include it.
4854         * modules/strerror (Files): Add lib/strerror-impl.h.
4855         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
4856         (my_strerror): New function, defined through lib/strerror-impl.h.
4857         (perror): Use it instead of strerror.
4858         * modules/perror (Files): Add lib/strerror-impl.h.
4859         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
4860
4861 2011-05-19  Eric Blake  <eblake@redhat.com>
4862
4863         strerror_r: fix on newer cygwin
4864         * lib/strerror_r.c (strerror_r): Cygwin now has
4865         __xpg_strerror_r, use it.
4866
4867 2011-05-19  Bruno Haible  <bruno@clisp.org>
4868
4869         strerror_r: Avoid clobbering the strerror buffer when possible.
4870         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
4871         (sys_nerr, sys_errlist): New declarations.
4872         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
4873         HP-UX, native Win32, IRIX, and 32-bit Solaris.
4874         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
4875
4876 2011-05-19  Bruno Haible  <bruno@clisp.org>
4877
4878         strerror_r: Fix test failure on mingw.
4879         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
4880         EXTEND_STRERROR_R.
4881         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
4882         macros from errno.in.h instead.
4883
4884 2011-05-19  Eric Blake  <eblake@redhat.com>
4885
4886         strerror: relax test for Solaris
4887         * tests/test-strerror.c (main): Permit Solaris behavior.
4888         * tests/test-strerror_r.c (main): Likewise.
4889
4890         strerror: enforce POSIX ruling on strerror(0)
4891         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
4892         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4893         * lib/strerror_r.c (rpl_strerror_r): Work around it.
4894         * doc/posix-functions/strerror.texi (strerror): Document it.
4895         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
4896         * tests/test-strerror.c (main): Strengthen test.
4897         * tests/test-strerror_r.c (main): Likewise.
4898
4899 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4900
4901         intprop-tests: port to older and more-pedantic compilers
4902         * modules/intprops-tests (Files): Add tests/macros.h.
4903         * tests/test-intprops.c: Include macros.h.
4904         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
4905         it's no longer documented to expand to an integer constant expression.
4906         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
4907         argument is floating point, as it's no longer documented to expand
4908         to an integer constant expression in that case.
4909         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
4910         compiler bugs reported by Bruno Haible.  See
4911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4912         (U0, U1): New constants, to work around the same bugs.  Also,
4913         in tests, use e.g., "(unsigned int) 39" rather than "39u".
4914
4915         intprops: work around C compiler bugs
4916         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
4917         bug in Sun C 5.11 2010/08/13 and other compilers; see
4918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4919
4920         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
4921         * doc/intprops.texi (Integer Type Determination): Fix
4922         documentation for TYPE_IS_INTEGER: it returns an constant
4923         expression, not an integer constant expression.  Fix doc for
4924         TYPE_SIGNED: it returns an integer constant expression only if its
4925         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
4926         hardly worth documented that way....)
4927
4928 2011-05-18  Bruno Haible  <bruno@clisp.org>
4929
4930         strerror_r: Avoid clobbering the strerror buffer when possible.
4931         * lib/strerror_r.c (strerror_r): Merge the three implementations.
4932         Handle gnulib defined errno values here. When strerror() returns NULL
4933         or an empty string, return EINVAL.
4934         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
4935         gnulib defined errno values here.
4936         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
4937
4938 2011-05-18  Eric Blake  <eblake@redhat.com>
4939
4940         fnmatch: avoid compiler warning
4941         * lib/fnmatch_loop.c (FCT): Use correct type.
4942         Reported by Matthias Bolte.
4943
4944 2011-05-13  Jim Meyering  <meyering@redhat.com>
4945
4946         maint.mk: three new prohibit_<HDR>_without_use rules
4947         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
4948         (sc_prohibit_stdio-safer_without_use): Likewise.
4949         (sc_prohibit_xfreopen_without_use): Likewise.
4950
4951 2011-05-17  Jim Meyering  <meyering@redhat.com>
4952
4953         announce-gen: fail if the NEWS delta is empty
4954         If there's nothing noteworthy in NEWS, then either you forgot
4955         or you shouldn't be releasing.
4956         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
4957
4958 2011-05-17  Pádraig Brady <P@draigBrady.com>
4959
4960         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
4961         reserved symbols starting with double underscore from the check.
4962
4963 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
4964
4965         intprops: add doc
4966         * doc/intprops.texi: New file, documenting intprops.
4967         * doc/gnulib.texi (Particular Modules): Include it.
4968
4969         verify: add doc to gnulib manual and fix example
4970         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
4971         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
4972         (Compile-time Assertions): Fix example so it can't overflow.
4973
4974 2011-05-17  Jim Meyering  <meyering@redhat.com>
4975
4976         warnings.m4: don't usurp save_CPPFLAGS variable name
4977         * m4/warnings.m4: Prefix local temporary variable name with gl_.
4978
4979         doc: fix typo
4980         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
4981
4982 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4983             Bruno Haible  <bruno@clisp.org>
4984
4985         doc: Tweak recent change.
4986         * README (Portability guidelines): Tweak new text.
4987         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
4988         Interix 6.1.
4989
4990 2011-05-16  Eric Blake  <eblake@redhat.com>
4991
4992         inttypes: avoid autoconf warning
4993         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
4994         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4995
4996 2011-05-16  Sam Steingold <sds@gnu.org>
4997         and Eric Blake  <eblake@redhat.com>
4998
4999         vc-list-files: accept multiple directory operands
5000         * build-aux/vc-list-files: Iterate over all remaining operands.
5001
5002 2011-05-16  Bruno Haible  <bruno@clisp.org>
5003
5004         Fix confusion regarding deprecated modules.
5005         * modules/calloc (Status, Notice): Mark module as deprecated, not
5006         obsolete.
5007         * modules/fnmatch-posix (Status, Notice): Likewise.
5008         * modules/getdate (Status, Notice): Likewise.
5009         * modules/getopt (Status, Notice): Likewise.
5010         * modules/malloc (Status, Notice): Likewise.
5011         * modules/pipe (Status, Notice): Likewise.
5012         * modules/realloc (Status, Notice): Likewise.
5013         * modules/rename-dest-slash (Status, Notice): Likewise.
5014         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
5015         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
5016         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
5017         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
5018         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
5019
5020 2011-05-16  Bruno Haible  <bruno@clisp.org>
5021
5022         doc: List the target platforms.
5023         * doc/gnulib-intro.texi (Target Platforms): New section.
5024         * doc/gnulib.texi (Introduction): Update menu.
5025         * README (Portability guidelines): Refer to the new section. Update
5026         statement about oldest supported environment. Remove rationale why
5027         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
5028         unportable C89 function.
5029         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
5030         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
5031
5032 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5033
5034         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
5035
5036 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
5037
5038         intprops-tests: new module
5039         * modules/intprops-tests, tests/test-intprops.c: New files.
5040
5041         intprops: add safe, portable integer overflow checking
5042         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
5043         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
5044         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
5045         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
5046         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
5047         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
5048         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
5049         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
5050         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
5051         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
5052         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
5053
5054 2011-05-12  James Youngman  <jay@gnu.org>
5055
5056         Add a test for glibc's Bugzilla bug #12378.
5057         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
5058         doesn't allow the literal matching of a lone "[" (which is
5059         required by POSIX).
5060         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
5061
5062 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
5063
5064         Sync glibc change fixing Bugzilla bug #12378.
5065         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
5066         beginning and fall back to matching as normal character if the
5067         string ends before the matching ']' is found.  This is what POSIX
5068         requires.
5069
5070 2011-05-13  Eric Blake  <eblake@redhat.com>
5071
5072         getcwd-lgpl: relax test for FreeBSD
5073         * doc/posix-functions/getcwd.texi (getcwd): Document portability
5074         issue.
5075         * tests/test-getcwd-lgpl.c (main): Relax test.
5076         Reported by Matthias Bolte.
5077
5078 2011-05-11  Eric Blake  <eblake@redhat.com>
5079
5080         test-fflush: silence compiler warning
5081         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
5082
5083 2011-05-11  Bruno Haible  <bruno@clisp.org>
5084
5085         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
5086         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
5087         * modules/canonicalize (Depends-on): Add 'nocrash'.
5088         * modules/canonicalize-lgpl (Depends-on): Likewise.
5089         * doc/posix-functions/realpath.texi: Update platforms list.
5090         Reported by Ryan Schmidt <ryandesign@macports.org>.
5091
5092 2011-05-11  Bruno Haible  <bruno@clisp.org>
5093
5094         group-member: Declare function in <unistd.h>.
5095         * lib/unistd.in.h (group_member): New declaration.
5096         * lib/group-member.h: Remove file.
5097         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
5098         * tests/test-unistd-c++.cc: Check signature of group_member.
5099         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
5100         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
5101         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
5102         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
5103         HAVE_GROUP_MEMBER.
5104         * modules/group-member (Files): Remove lib/group-member.h.
5105         (Depends-on): Add unistd. Specify conditions.
5106         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5107         (Include): Change to <unistd.h>.
5108         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
5109         HAVE_GROUP_MEMBER.
5110         * NEWS: Mention the change.
5111         * lib/euidaccess.c: Don't include group-member.h.
5112
5113 2011-05-11  Bruno Haible  <bruno@clisp.org>
5114
5115         group-member: Document module.
5116         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
5117         module.
5118
5119 2011-05-11  Bruno Haible  <bruno@clisp.org>
5120
5121         fclose: Fix mistake earlier today.
5122         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
5123
5124 2011-05-11  Eric Blake  <eblake@redhat.com>
5125
5126         fclose: preserve fflush errors
5127         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
5128         Reported by Jim Meyering.
5129
5130         bootstrap: support a prereq of 'rpcgen -' on RHEL5
5131         * build-aux/bootstrap (check_versions): When no specific version
5132         is required, merely check that the app produces an exit status
5133         that indicates its existence.
5134
5135         maint.mk: drop redundant check
5136         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
5137         the same but better.
5138
5139 2011-05-11  Bruno Haible  <bruno@clisp.org>
5140
5141         fclose: Fix possible link error.
5142         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
5143         unregister_shadow_fd. Improve comments.
5144         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
5145         Eric Blake.
5146
5147 2011-05-11  Jim Meyering  <meyering@redhat.com>
5148
5149         maint.mk: improve "can not" detection and generalize rule name
5150         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
5151         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
5152         Use the same technique as in sc_prohibit_doubled_word, so that
5153         we recognize "can not" also when the words are separated by a newline.
5154         Suggested by Eric Blake.
5155         (perl_filename_lineno_text_): Define.  Factored out of...
5156         (prohibit_doubled_word_): ...here.  Use the new definition.
5157         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
5158         (prohibit_undesirable_word_seq_RE_): New overridable variable.
5159         (ignore_undesirable_word_sequence_RE_): New overridable variable.
5160
5161 2011-05-10  Eric Blake  <eblake@redhat.com>
5162
5163         fclose: avoid double close race when possible
5164         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
5165         all but WINDOWS_SOCKETS.
5166
5167 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
5168
5169         openat: correct new comment
5170         * lib/openat-proc.c (openat_proc_name): Correct the comment.
5171
5172 2011-05-10  Jim Meyering  <meyering@redhat.com>
5173
5174         openat: add comments
5175         * lib/openat-proc.c (openat_proc_name): Add comments,
5176         mostly from Eric Blake.
5177
5178 2011-05-09  Eric Blake  <eblake@redhat.com>
5179
5180         openat: reduce syscalls in first probe of /proc
5181         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
5182         be a directory.  Simplify the probe for .. bugs.
5183         * modules/openat (Depends-on): Drop same-inode.
5184         Reported by Bastien ROUCARIES.
5185
5186 2011-05-09  Jim Meyering  <meyering@redhat.com>
5187
5188         maint.mk: change semantics/name of tight_scope variables
5189         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
5190         Rename variables to align with semantics that make them more useful.
5191
5192         maint.mk: tweak new rule's name not to impinge
5193         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
5194         (sc_tight_scope): Use new rule name rather than $@-0.
5195
5196         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
5197         * top/maint.mk (sc_tight_scope): New rule.
5198         (sc_tight_scope-0): New rule, ifdef'd out.
5199         (_gl_TS_dir): Default.
5200         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
5201         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
5202
5203 2011-05-09  Simon Josefsson  <simon@josefsson.org>
5204
5205         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
5206         Haible <bruno@clisp.org>.
5207
5208 2011-05-08  Bruno Haible  <bruno@clisp.org>
5209
5210         Comments.
5211         * m4/isnanf.m4: Add comment.
5212         * m4/isnanl.m4: Likewise.
5213
5214 2011-05-08  Bruno Haible  <bruno@clisp.org>
5215
5216         glob: Remove obsolete macro.
5217         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
5218
5219 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5220
5221         intprops: Sun C 5.11 supports __typeof__
5222         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
5223         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
5224         which is new.
5225         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
5226
5227         intprops: switch to usual gnulib indenting and naming
5228         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
5229         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
5230
5231         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
5232
5233 2011-05-08  Jim Meyering  <meyering@redhat.com>
5234
5235         maint.mk: suppress "Entering/Leaving directory" diag in announcement
5236         * top/maint.mk (release-prep): Use make's --no-print-directory
5237         option when generating the announcement.  This eliminates the
5238         pesky "make[2]: Entering/Leaving directory" diagnostics in the
5239         generated announcement template.
5240
5241 2011-05-08  Bruno Haible  <bruno@clisp.org>
5242
5243         tzset: Fix gettimeofday wrapper on Solaris 2.6.
5244         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
5245         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
5246
5247 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5248
5249         ignore-value, verify: Omit include files from lib_SOURCES.
5250         * modules/ignore-value, modules/verify (Makefile.am):
5251         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
5252         that leads Automake to duplicate use of am__objects_... variables
5253         in Makefile.in.  See
5254         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5255
5256 2011-05-07  Bruno Haible  <bruno@clisp.org>
5257
5258         fclose: Simplify autoconf macro.
5259         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5260         defined.
5261
5262 2011-05-07  Bruno Haible  <bruno@clisp.org>
5263
5264         canonicalize-lgpl: Fix autoconf macro ordering bug.
5265         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5266         gl_STDLIB_H_DEFAULTS.
5267
5268 2011-05-06  Eric Blake  <eblake@redhat.com>
5269
5270         maintainer-makefile: make sc_po_check easier to tune
5271         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5272         to probe for strings, such as an alternate location for gnulib.
5273
5274         fclose: guarantee behavior on seekable stdin
5275         * modules/fclose (Depends-on): Add fflush.
5276         * doc/posix-functions/fclose.texi (fclose): Document this.
5277         * tests/test-fclose.c (main): Make test for this unconditional.
5278
5279 2011-05-06  Bruno Haible  <bruno@clisp.org>
5280
5281         fflush, fpurge: Relicense under LGPLv2+.
5282         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5283         * modules/fpurge (License): Likewise.
5284         With permission from Eric Blake and Jim Meyering.
5285         Suggested by Eric Blake.
5286
5287 2011-05-06  Karl Berry  <karl@gnu.org>
5288
5289         * MODULES.html.sh (func_all_modules): remove exit.
5290
5291 2011-05-06  Jim Meyering  <meyering@redhat.com>
5292
5293         maint.mk: use info-gnu@ as the default only for a stable release
5294         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5295         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5296         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5297         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5298
5299 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5300
5301         assert-h: new module, which supports C1X-style static_assert
5302         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5303         * lib/verify.h: Revamp so that this can be copied into assert.h,
5304         while retaining the ability to use it standalone as before.
5305         Rename private identifiers so as not to encroach on the
5306         standard C namespace, since this is now used by assert.h.
5307         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5308         the old verify_true.
5309         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5310         the old verify_true.  Use _GL_VERIFY_TYPE.
5311         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5312         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5313         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5314         defined when this file is copied into the replacement assert.h.
5315         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5316         and _Static_assert is not built in.
5317         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5318         defined, and use the new macros mentioned above.
5319         * doc/posix-headers/assert.texi: Document this.
5320
5321 2011-05-05  Bruno Haible  <bruno@clisp.org>
5322
5323         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5324         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5325         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5326         gl_REPLACE_FCLOSE here.
5327         * modules/fflush (Depends-on): Remove fclose.
5328         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5329         combination with module 'fclose'.
5330
5331 2011-05-05  Bruno Haible  <bruno@clisp.org>
5332
5333         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5334         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5335         gl_FUNC_FFLUSH.
5336         (gl_FUNC_FFLUSH): Use it.
5337         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5338         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5339         gl_REPLACE_FSEEKO here.
5340
5341 2011-05-05  Bruno Haible  <bruno@clisp.org>
5342
5343         tzset: Relicense under LGPL.
5344         * modules/tzset (License): Change to LGPL.
5345         No agreement needed; it's a no-op.
5346
5347         strtoimax, strtoumax: Relicense under LGPL.
5348         * modules/strtoimax (License): Change to LGPL.
5349         * modules/strtoumax (License): Likewise.
5350         With permission from Jim Meyering, Paul Eggert:
5351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5353
5354         getgroups: Relicense under LGPL.
5355         * modules/getgroups (License): Change to LGPL.
5356         With permission from Jim Meyering, Paul Eggert, Eric Blake:
5357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5360
5361         nanosleep: Relicense under LGPL.
5362         * modules/nanosleep (License): Change to LGPL.
5363         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5364         Haible:
5365         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5367         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5369
5370         futimens: Relicense under LGPL.
5371         * modules/futimens (License): Change to LGPL.
5372         With permission from Eric Blake:
5373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5374
5375         fflush: Relicense under LGPL.
5376         * modules/fflush (License): Change to LGPL.
5377         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5379         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5380         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5381
5382         tmpfile: Relicense under LGPL.
5383         * modules/tmpfile (License): Change to LGPL.
5384         With permission from Ben Pfaff:
5385         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5386
5387         isfinite: Relicense under LGPL.
5388         * modules/isfinite (License): Change to LGPL.
5389         With permission from Ben Pfaff, Bruno Haible:
5390         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5392
5393         acosl..tanl: Relicense under LGPL.
5394         * modules/acosl (License): Change to LGPL.
5395         * modules/asinl (License): Likewise.
5396         * modules/atanl (License): Likewise.
5397         * modules/cosl (License): Likewise.
5398         * modules/expl (License): Likewise.
5399         * modules/logl (License): Likewise.
5400         * modules/sinl (License): Likewise.
5401         * modules/sqrtl (License): Likewise.
5402         * modules/tanl (License): Likewise.
5403         Source code originally from glibc and Paolo Bonzini. Agreements:
5404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5405         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5406
5407 2011-05-05  Bruno Haible  <bruno@clisp.org>
5408
5409         signal: Define sighandler_t.
5410         * lib/signal.in.h (sighandler_t): New type.
5411         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5412         whether sighandler_t is defined.
5413         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5414         * modules/signal (Depends-on): Add extensions.
5415         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5416         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5417         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5418
5419 2011-05-05  Eric Blake  <eblake@redhat.com>
5420
5421         maint: remove useless REPLACE_*_H macros
5422         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5423         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5424         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5425         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5426         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5427         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5428         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5429         * m4/btowc.m4: Update callers.
5430         * m4/dirfd.m4: Likewise.
5431         * m4/duplocale.m4: Likewise.
5432         * m4/fchdir.m4: Likewise.
5433         * m4/fdopendir.m4: Likewise.
5434         * m4/inet_ntop.m4: Likewise.
5435         * m4/inet_pton.m4: Likewise.
5436         * m4/ioctl.m4: Likewise.
5437         * m4/mbrlen.m4: Likewise.
5438         * m4/mbrtowc.m4: Likewise.
5439         * m4/mbsinit.m4: Likewise.
5440         * m4/mbsnrtowcs.m4: Likewise.
5441         * m4/mbsrtowcs.m4: Likewise.
5442         * m4/poll.m4: Likewise.
5443         * m4/setlocale.m4: Likewise.
5444         * m4/wcrtomb.m4: Likewise.
5445         * m4/wcsnrtombs.m4: Likewise.
5446         * m4/wcsrtombs.m4: Likewise.
5447         * m4/wctob.m4: Likewise.
5448         * m4/wcwidth.m4: Likewise.
5449         * modules/posix_spawn: Likewise.
5450         * modules/posix_spawn_file_actions_addclose: Likewise.
5451         * modules/posix_spawn_file_actions_adddup2: Likewise.
5452         * modules/posix_spawn_file_actions_addopen: Likewise.
5453         * modules/posix_spawn_file_actions_destroy: Likewise.
5454         * modules/posix_spawn_file_actions_init: Likewise.
5455         * modules/posix_spawnattr_destroy: Likewise.
5456         * modules/posix_spawnattr_getflags: Likewise.
5457         * modules/posix_spawnattr_getpgroup: Likewise.
5458         * modules/posix_spawnattr_getschedparam: Likewise.
5459         * modules/posix_spawnattr_getschedpolicy: Likewise.
5460         * modules/posix_spawnattr_getsigdefault: Likewise.
5461         * modules/posix_spawnattr_getsigmask: Likewise.
5462         * modules/posix_spawnattr_init: Likewise.
5463         * modules/posix_spawnattr_setflags: Likewise.
5464         * modules/posix_spawnattr_setpgroup: Likewise.
5465         * modules/posix_spawnattr_setschedparam: Likewise.
5466         * modules/posix_spawnattr_setschedpolicy: Likewise.
5467         * modules/posix_spawnattr_setsigdefault: Likewise.
5468         * modules/posix_spawnattr_setsigmask: Likewise.
5469         * modules/posix_spawnp: Likewise.
5470
5471 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
5472
5473         Add option to do-release-commit-and-tag to specify branch.
5474         * build-aux/do-release-commit-and-tag: Add --branch.
5475
5476 2011-05-03  Bruno Haible  <bruno@clisp.org>
5477
5478         Avoid unnecessary compilation units, through conditional dependencies.
5479         * modules/accept (Depends-on): Add conditions to the dependencies.
5480         * modules/acosl (Depends-on): Likewise.
5481         * modules/argz (Depends-on): Likewise.
5482         * modules/asinl (Depends-on): Likewise.
5483         * modules/atanl (Depends-on): Likewise.
5484         * modules/atoll (Depends-on): Likewise.
5485         * modules/bind (Depends-on): Likewise.
5486         * modules/btowc (Depends-on): Likewise.
5487         * modules/canonicalize-lgpl (Depends-on): Likewise.
5488         * modules/ceil (Depends-on): Likewise.
5489         * modules/ceilf (Depends-on): Likewise.
5490         * modules/ceill (Depends-on): Likewise.
5491         * modules/chdir-long (Depends-on): Likewise.
5492         * modules/chown (Depends-on): Likewise.
5493         * modules/close (Depends-on): Likewise.
5494         * modules/connect (Depends-on): Likewise.
5495         * modules/cosl (Depends-on): Likewise.
5496         * modules/dirfd (Depends-on): Likewise.
5497         * modules/dprintf (Depends-on): Likewise.
5498         * modules/dprintf-posix (Depends-on): Likewise.
5499         * modules/error (Depends-on): Likewise.
5500         * modules/euidaccess (Depends-on): Likewise.
5501         * modules/expl (Depends-on): Likewise.
5502         * modules/faccessat (Depends-on): Likewise.
5503         * modules/fchdir (Depends-on): Likewise.
5504         * modules/fclose (Depends-on): Likewise.
5505         * modules/fcntl (Depends-on): Likewise.
5506         * modules/fdopendir (Depends-on): Likewise.
5507         * modules/fflush (Depends-on): Likewise.
5508         * modules/floor (Depends-on): Likewise.
5509         * modules/floorf (Depends-on): Likewise.
5510         * modules/floorl (Depends-on): Likewise.
5511         * modules/fnmatch (Depends-on): Likewise.
5512         * modules/fopen (Depends-on): Likewise.
5513         * modules/fprintf-posix (Depends-on): Likewise.
5514         * modules/frexp (Depends-on): Likewise.
5515         * modules/frexp-nolibm (Depends-on): Likewise.
5516         * modules/frexpl (Depends-on): Likewise.
5517         * modules/frexpl-nolibm (Depends-on): Likewise.
5518         * modules/fseek (Depends-on): Likewise.
5519         * modules/fsusage (Depends-on): Likewise.
5520         * modules/ftell (Depends-on): Likewise.
5521         * modules/ftello (Depends-on): Likewise.
5522         * modules/futimens (Depends-on): Likewise.
5523         * modules/getcwd (Depends-on): Likewise.
5524         * modules/getcwd-lgpl (Depends-on): Likewise.
5525         * modules/getdelim (Depends-on): Likewise.
5526         * modules/getdomainname (Depends-on): Likewise.
5527         * modules/getgroups (Depends-on): Likewise.
5528         * modules/gethostname (Depends-on): Likewise.
5529         * modules/getline (Depends-on): Likewise.
5530         * modules/getlogin_r (Depends-on): Likewise.
5531         * modules/getopt-posix (Depends-on): Likewise.
5532         * modules/getpeername (Depends-on): Likewise.
5533         * modules/getsockname (Depends-on): Likewise.
5534         * modules/getsockopt (Depends-on): Likewise.
5535         * modules/getsubopt (Depends-on): Likewise.
5536         * modules/getusershell (Depends-on): Likewise.
5537         * modules/glob (Depends-on): Likewise.
5538         * modules/grantpt (Depends-on): Likewise.
5539         * modules/iconv_open (Depends-on): Likewise.
5540         * modules/iconv_open-utf (Depends-on): Likewise.
5541         * modules/inet_ntop (Depends-on): Likewise.
5542         * modules/inet_pton (Depends-on): Likewise.
5543         * modules/ioctl (Depends-on): Likewise.
5544         * modules/isapipe (Depends-on): Likewise.
5545         * modules/isfinite (Depends-on): Likewise.
5546         * modules/isinf (Depends-on): Likewise.
5547         * modules/lchown (Depends-on): Likewise.
5548         * modules/ldexpl (Depends-on): Likewise.
5549         * modules/link (Depends-on): Likewise.
5550         * modules/linkat (Depends-on): Likewise.
5551         * modules/listen (Depends-on): Likewise.
5552         * modules/logl (Depends-on): Likewise.
5553         * modules/lstat (Depends-on): Likewise.
5554         * modules/mbrlen (Depends-on): Likewise.
5555         * modules/mbrtowc (Depends-on): Likewise.
5556         * modules/mbsinit (Depends-on): Likewise.
5557         * modules/mbsnrtowcs (Depends-on): Likewise.
5558         * modules/mbsrtowcs (Depends-on): Likewise.
5559         * modules/mbtowc (Depends-on): Likewise.
5560         * modules/memcmp (Depends-on): Likewise.
5561         * modules/mkdir (Depends-on): Likewise.
5562         * modules/mkdtemp (Depends-on): Likewise.
5563         * modules/mkfifo (Depends-on): Likewise.
5564         * modules/mkfifoat (Depends-on): Likewise.
5565         * modules/mknod (Depends-on): Likewise.
5566         * modules/mkostemp (Depends-on): Likewise.
5567         * modules/mkostemps (Depends-on): Likewise.
5568         * modules/mkstemp (Depends-on): Likewise.
5569         * modules/mkstemps (Depends-on): Likewise.
5570         * modules/mktime (Depends-on): Likewise.
5571         * modules/nanosleep (Depends-on): Likewise.
5572         * modules/open (Depends-on): Likewise.
5573         * modules/openat (Depends-on): Likewise.
5574         * modules/perror (Depends-on): Likewise.
5575         * modules/poll (Depends-on): Likewise.
5576         * modules/popen (Depends-on): Likewise.
5577         * modules/posix_spawn (Depends-on): Likewise.
5578         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5579         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5580         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5581         * modules/posix_spawnp (Depends-on): Likewise.
5582         * modules/pread (Depends-on): Likewise.
5583         * modules/printf-posix (Depends-on): Likewise.
5584         * modules/ptsname (Depends-on): Likewise.
5585         * modules/putenv (Depends-on): Likewise.
5586         * modules/pwrite (Depends-on): Likewise.
5587         * modules/readline (Depends-on): Likewise.
5588         * modules/readlink (Depends-on): Likewise.
5589         * modules/readlinkat (Depends-on): Likewise.
5590         * modules/recv (Depends-on): Likewise.
5591         * modules/recvfrom (Depends-on): Likewise.
5592         * modules/regex (Depends-on): Likewise.
5593         * modules/remove (Depends-on): Likewise.
5594         * modules/rename (Depends-on): Likewise.
5595         * modules/renameat (Depends-on): Likewise.
5596         * modules/rmdir (Depends-on): Likewise.
5597         * modules/round (Depends-on): Likewise.
5598         * modules/roundf (Depends-on): Likewise.
5599         * modules/roundl (Depends-on): Likewise.
5600         * modules/rpmatch (Depends-on): Likewise.
5601         * modules/select (Depends-on): Likewise.
5602         * modules/send (Depends-on): Likewise.
5603         * modules/sendto (Depends-on): Likewise.
5604         * modules/setenv (Depends-on): Likewise.
5605         * modules/setlocale (Depends-on): Likewise.
5606         * modules/setsockopt (Depends-on): Likewise.
5607         * modules/shutdown (Depends-on): Likewise.
5608         * modules/sigaction (Depends-on): Likewise.
5609         * modules/signbit (Depends-on): Likewise.
5610         * modules/sigprocmask (Depends-on): Likewise.
5611         * modules/sinl (Depends-on): Likewise.
5612         * modules/sleep (Depends-on): Likewise.
5613         * modules/snprintf (Depends-on): Likewise.
5614         * modules/snprintf-posix (Depends-on): Likewise.
5615         * modules/socket (Depends-on): Likewise.
5616         * modules/sprintf-posix (Depends-on): Likewise.
5617         * modules/sqrtl (Depends-on): Likewise.
5618         * modules/stat (Depends-on): Likewise.
5619         * modules/strchrnul (Depends-on): Likewise.
5620         * modules/strdup-posix (Depends-on): Likewise.
5621         * modules/strerror (Depends-on): Likewise.
5622         * modules/strerror_r-posix (Depends-on): Likewise.
5623         * modules/strndup (Depends-on): Likewise.
5624         * modules/strnlen (Depends-on): Likewise.
5625         * modules/strptime (Depends-on): Likewise.
5626         * modules/strsep (Depends-on): Likewise.
5627         * modules/strsignal (Depends-on): Likewise.
5628         * modules/strstr-simple (Depends-on): Likewise.
5629         * modules/strtod (Depends-on): Likewise.
5630         * modules/strtoimax (Depends-on): Likewise.
5631         * modules/strtok_r (Depends-on): Likewise.
5632         * modules/strtoumax (Depends-on): Likewise.
5633         * modules/symlink (Depends-on): Likewise.
5634         * modules/symlinkat (Depends-on): Likewise.
5635         * modules/tanl (Depends-on): Likewise.
5636         * modules/tcgetsid (Depends-on): Likewise.
5637         * modules/tmpfile (Depends-on): Likewise.
5638         * modules/trunc (Depends-on): Likewise.
5639         * modules/truncf (Depends-on): Likewise.
5640         * modules/truncl (Depends-on): Likewise.
5641         * modules/uname (Depends-on): Likewise.
5642         * modules/unlink (Depends-on): Likewise.
5643         * modules/unlockpt (Depends-on): Likewise.
5644         * modules/unsetenv (Depends-on): Likewise.
5645         * modules/usleep (Depends-on): Likewise.
5646         * modules/utimensat (Depends-on): Likewise.
5647         * modules/vasprintf (Depends-on): Likewise.
5648         * modules/vdprintf (Depends-on): Likewise.
5649         * modules/vdprintf-posix (Depends-on): Likewise.
5650         * modules/vfprintf-posix (Depends-on): Likewise.
5651         * modules/vprintf-posix (Depends-on): Likewise.
5652         * modules/vsnprintf (Depends-on): Likewise.
5653         * modules/vsnprintf-posix (Depends-on): Likewise.
5654         * modules/vsprintf-posix (Depends-on): Likewise.
5655         * modules/wcrtomb (Depends-on): Likewise.
5656         * modules/wcscasecmp (Depends-on): Likewise.
5657         * modules/wcscspn (Depends-on): Likewise.
5658         * modules/wcsdup (Depends-on): Likewise.
5659         * modules/wcsncasecmp (Depends-on): Likewise.
5660         * modules/wcsnrtombs (Depends-on): Likewise.
5661         * modules/wcspbrk (Depends-on): Likewise.
5662         * modules/wcsrtombs (Depends-on): Likewise.
5663         * modules/wcsspn (Depends-on): Likewise.
5664         * modules/wcsstr (Depends-on): Likewise.
5665         * modules/wcstok (Depends-on): Likewise.
5666         * modules/wcswidth (Depends-on): Likewise.
5667         * modules/wctob (Depends-on): Likewise.
5668         * modules/wctomb (Depends-on): Likewise.
5669         * modules/wctype (Depends-on): Likewise.
5670         * modules/wcwidth (Depends-on): Likewise.
5671         * modules/write (Depends-on): Likewise.
5672
5673 2011-05-03  Bruno Haible  <bruno@clisp.org>
5674
5675         Support for conditional dependencies.
5676         * doc/gnulib.texi (Module description): Document the syntax of
5677         conditional dependencies.
5678         * gnulib-tool: New option --conditional-dependencies.
5679         (func_usage): Document it.
5680         (cond_dependencies): New variable.
5681         (func_get_automake_snippet_conditional,
5682         func_get_automake_snippet_unconditional): New functions, extracted from
5683         func_get_automake_snippet.
5684         (func_get_automake_snippet): Use them.
5685         (sed_first_32_chars): New variable.
5686         (func_module_shellfunc_name): New function.
5687         (func_module_shellvar_name): New function.
5688         (func_module_conditional_name): New function.
5689         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
5690         func_cond_module_condition): New functions.
5691         (func_modules_transitive_closure): Add support for conditional
5692         dependencies.
5693         (func_emit_lib_Makefile_am): For a conditional module, enclose the
5694         conditional automake snippet in an automake conditional.
5695         (func_emit_autoconf_snippets): Emit shell functions that contain the
5696         code for conditional modules.
5697         (func_import, func_create_testdir): Update specification.
5698
5699 2011-05-03  Eric Blake  <eblake@redhat.com>
5700
5701         test-getaddrinfo: report error information
5702         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
5703
5704 2011-05-03  Jim Meyering  <meyering@redhat.com>
5705
5706         bootstrap: avoid build failure when $GZIP is set
5707         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
5708         program name.  If defined at all, it is supposed to list gzip options.
5709         Reported by Alan Curry in http://debbugs.gnu.org/8609
5710
5711 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
5712
5713         readme-release: new module with release instructions
5714         * modules/readme-release: New module.
5715         * top/README-release: New file, from coreutils, grep, diffutils.
5716         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5717
5718 2011-05-02  Eric Blake  <eblake@redhat.com>
5719
5720         fflush: also replace fclose when fixing fflush
5721         * modules/fflush (Depends-on): Add fclose.
5722         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
5723         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
5724         memstreams with no backing fd.
5725         * doc/posix-functions/fclose.texi (fclose): Document the use of
5726         fflush module to fix the bug.
5727         * tests/test-fclose.c (main): Relax test when fclose is used in
5728         isolation.
5729
5730         fclose: add some tests
5731         * modules/fclose-tests: New test module.
5732         * tests/test-fclose.c: New file.
5733         * doc/posix-functions/fclose.texi (fclose): Document the bug.
5734
5735         fclose: reduced dependencies
5736         * modules/fclose (Depends-on): Switch from fflush/fseeko to
5737         simpler lseek.
5738         * lib/fclose.c (rpl_fclose): Likewise.
5739         Reported by Simon Josefsson.
5740
5741         exit: drop remaining clients
5742         * modules/argmatch (Depends-on): Replace exit with stdlib.
5743         * modules/copy-file (Depends-on): Likewise.
5744         * modules/execute (Depends-on): Likewise.
5745         * modules/exitfail (Depends-on): Likewise.
5746         * modules/obstack (Depends-on): Likewise.
5747         * modules/pagealign_alloc (Depends-on): Likewise.
5748         * modules/pipe-filter-gi (Depends-on): Likewise.
5749         * modules/pipe-filter-ii (Depends-on): Likewise.
5750         * modules/savewd (Depends-on): Likewise.
5751         * modules/spawn-pipe (Depends-on): Likewise.
5752         * modules/wait-process (Depends-on): Likewise.
5753         * modules/xsetenv (Depends-on): Likewise.
5754         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
5755         * modules/git-merge-changelog (Depends-on): Likewise.
5756         * modules/long-options (Depends-on): Likewise.
5757         * modules/pt_chown (Depends-on): Likewise.
5758         * modules/sysexits (Depends-on): Likewise.
5759
5760         freading: relax license from LGPLv3+ to LGPLv2+
5761         * modules/freading (License): Relax LGPL version.
5762
5763 2011-05-02  Bruno Haible  <bruno@clisp.org>
5764
5765         fchdir: Remove unused dependencies.
5766         * modules/fchdir (Depends-on): Remove include_next.
5767
5768 2011-05-02  Bruno Haible  <bruno@clisp.org>
5769
5770         gnulib-tool: Refactor.
5771         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
5772         from func_emit_autoconf_snippets.
5773         (func_emit_autoconf_snippets): Use it.
5774
5775 2011-05-02  Simon Josefsson  <simon@josefsson.org>
5776
5777         * NEWS: Document removal of 'exit'.
5778         * modules/exit: Remove file.
5779
5780 2011-05-01  Bruno Haible  <bruno@clisp.org>
5781
5782         Update DEPENDENCIES.
5783         * DEPENDENCIES (gettext): Recommend the newest release.
5784         Reported by Simon Josefsson.
5785
5786 2011-05-01  Bruno Haible  <bruno@clisp.org>
5787
5788         gnulib-tool: Reduce code duplication.
5789         * gnulib-tool (func_emit_autoconf_snippets): New function.
5790         (func_import, func_create_testdir): Use it.
5791
5792 2011-04-30  Eric Blake  <eblake@redhat.com>
5793
5794         fclose: don't fail on non-seekable input stream
5795         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
5796         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
5797         since fflush is allowed to fail in that case.
5798
5799 2011-04-30  Bruno Haible  <bruno@clisp.org>
5800
5801         dup3: cleanup
5802         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
5803
5804 2011-04-30  Bruno Haible  <bruno@clisp.org>
5805
5806         netdb: Make it work in C++ mode.
5807         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
5808         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
5809         module.
5810         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
5811         gl_MODULE_INDICATOR_FOR_TESTS.
5812         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
5813         * modules/netdb-c++-tests: New file.
5814         * tests/test-netdb-c++.cc: New file.
5815
5816 2011-04-30  Bruno Haible  <bruno@clisp.org>
5817
5818         New modules 'vfscanf', 'vscanf'.
5819         * modules/vfscanf: New file.
5820         * modules/vscanf: New file.
5821         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
5822         here.
5823         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
5824         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
5825
5826 2011-04-30  Bruno Haible  <bruno@clisp.org>
5827
5828         passfd: Add comments.
5829         * lib/passfd.c: Add comments about platforms.
5830
5831 2011-04-30  Bruno Haible  <bruno@clisp.org>
5832
5833         sys_uio: Make <sys/uio.h> self-contained.
5834         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
5835         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
5836
5837 2011-04-30  Bruno Haible  <bruno@clisp.org>
5838
5839         sys_socket: Ensure 'struct iovec' definition.
5840         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
5841         <sys/socket.h>.
5842         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
5843
5844 2011-04-30  Bruno Haible  <bruno@clisp.org>
5845
5846         sys_uio: Protect definition of 'struct iovec'.
5847         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
5848         it as a C struct.
5849
5850 2011-04-30  Bruno Haible  <bruno@clisp.org>
5851
5852         manywarnings: fix indentation
5853         * m4/manywarnings.m4: Indent by 2 spaces consistently.
5854
5855 2011-04-30  Pádraig Brady <P@draigBrady.com>
5856
5857         manywarnings: add -Wno-missing-field-initializers if needed.
5858         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
5859         option if it's needed to allow initialization with { 0, }
5860
5861 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
5862
5863         announce-gen: cosmetic improvement
5864         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
5865
5866 2011-04-29  Jim Meyering  <meyering@redhat.com>
5867
5868         vc-list-files: indent with spaces, not TABs
5869         * build-aux/vc-list-files: Convert leading TABs to spaces,
5870         to match the style of most other files in gnulib.
5871
5872         announce-gen: indent with spaces, not TABs
5873         * build-aux/announce-gen: Convert all TABs to spaces, to match
5874         the style of most other files in gnulib.
5875
5876 2011-04-29  Eric Blake  <eblake@redhat.com>
5877
5878         quotearg: avoid uninitialized variable use
5879         * lib/quotearg.c (quoting_options_from_style): Initialize
5880         remaining fields, and ensure that custom styles are only used via
5881         quoting_options rather than quoting_style.
5882
5883 2011-04-29  Jim Meyering  <meyering@redhat.com>
5884
5885         maint.mk: remove unused VC-tag variable
5886         * top/maint.mk (VC-tag): Remove unused variable.
5887
5888 2011-04-29  Bruno Haible  <bruno@clisp.org>
5889
5890         netdb: fix gai_strerror replacements
5891         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
5892         * modules/netdb: Substitute it.
5893
5894 2011-04-29  Jim Meyering  <meyering@redhat.com>
5895
5896         test-getcwd.c: avoid new set-but-not-used warning
5897         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
5898         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
5899         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
5900         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
5901
5902         test-hash.c: avoid a new shadowing warning
5903         * tests/test-hash.c (main): Don't shadow "dup".
5904
5905 2011-04-28  Eric Blake  <eblake@redhat.com>
5906
5907         getaddrinfo: fix gai_strerror signature
5908         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
5909         and work around mingw with UNICODE defined.
5910         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
5911         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
5912         * modules/netdb (Makefile.am): Substitute it.
5913         * lib/netdb.in.h (gai_strerror): Declare replacement.
5914         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
5915         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
5916         the fix.
5917
5918         getsockopt: avoid compiler warning
5919         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
5920         Reported by Matthias Bolte.
5921
5922         tests: drop unused link dependency
5923         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
5924         * modules/dirent-safer-tests (Makefile.am): Likewise.
5925         * modules/fdopendir-tests (Makefile.am): Likewise.
5926         * modules/mkfifoat-tests (Makefile.am): Likewise.
5927         * modules/openat-safer-tests (Makefile.am): Likewise.
5928         * modules/openat-tests (Makefile.am): Likewise.
5929         * modules/readlinkat-tests (Makefile.am): Likewise.
5930         * modules/symlinkat-tests (Makefile.am): Likewise.
5931         * modules/linkat-tests (Makefile.am): Likewise.
5932         (Depends-on): Switch to filenamecat-lgpl.
5933         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
5934         LIBINTL.
5935         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
5936         * tests/test-linkat.c (main): Don't require xalloc.
5937
5938         hash, mgetgroups: drop xalloc dependency
5939         * lib/hash.c (includes): Adjust includes.
5940         * lib/mgetgroups.c (includes): Likewise.
5941         (xgetgroups): Move...
5942         * lib/xgetgroups.c: ...to new file.
5943         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
5944         * modules/xgetgroups: New file, split from...
5945         * modules/mgetgroups: ...here.
5946         (Depends-on): Add xalloc-oversized.
5947         * modules/hash (Depends-on): Likewise.
5948         * modules/hash-tests (Depends-on): Drop xalloc.
5949         (test_hash_LDADD): Drop unused library.
5950         * tests/test-hash.c (main): Break xalloc dependency.
5951         (includes): Drop unused include.
5952
5953         xalloc-oversized: new module
5954         * modules/xalloc-oversized: New module.
5955         * modules/xalloc (Depends-on): Add it.
5956         * lib/xalloc.h (xalloc_oversized): Move...
5957         * lib/xalloc-oversized.h: ...into new file.
5958
5959         utimecmp: drop dependency on xmalloc
5960         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
5961         due to memory pressure.
5962         * modules/utimecmp (Depends-on): Drop xalloc.
5963
5964 2011-04-27  Eric Blake  <eblake@redhat.com>
5965
5966         getcwd: fix mingw bugs
5967         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
5968         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
5969         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
5970
5971 2011-04-27  Bruno Haible  <bruno@clisp.org>
5972
5973         mkstemps: Ensure declaration on MacOS X 10.5.
5974         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
5975         * doc/glibc-functions/mkstemps.texi: Document header file problem on
5976         MacOS X.
5977
5978 2011-04-27  Bruno Haible  <bruno@clisp.org>
5979
5980         mkstemp: More documentation.
5981         * doc/posix-functions/mkstemp.texi: Document header file problem on
5982         MacOS X.
5983
5984 2011-04-27  Bruno Haible  <bruno@clisp.org>
5985
5986         mkstemp: Tweak configure message when cross-compiling.
5987         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
5988         result as a guess.
5989
5990 2011-04-27  Bruno Haible  <bruno@clisp.org>
5991
5992         clean-temp: Clarify what it does.
5993         * lib/clean-temp.h: Add more comments.
5994         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
5995         module.
5996         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
5997         * doc/glibc-functions/mkstemps.texi: Likewise.
5998         * doc/glibc-functions/mkostemps.texi: Likewise.
5999
6000 2011-04-27  Eric Blake  <eblake@redhat.com>
6001
6002         fchdir: avoid extra chdir and fix test
6003         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
6004         getcwd-lgpl.
6005         * lib/fchdir.c (get_name): Any absolute name will do; it does not
6006         have to be canonical.
6007         (canonicalize_file_name): Drop unused macro.
6008         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
6009
6010         filenamecat-lgpl: fix licence
6011         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
6012         when it was first created.
6013
6014         linkat, renameat: add missing dependency
6015         * modules/linkat (Depends-on): Require getcwd-lgpl.
6016         * modules/renameat (Depends-on): Likewise.
6017
6018         tests: reduce dependencies
6019         * tests/test-linkat.c (main): Use lighter-weight getcwd.
6020         * tests/test-renameat.c (main): Likewise.
6021         * modules/linkat-tests (Depends-on): Relax dependency.
6022         * modules/renameat-tests (Depends-on): Likewise.
6023         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
6024         dependency explicit.
6025
6026         save-cwd: reduce default dependency
6027         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
6028         * lib/save-cwd.c: Update comments.
6029         * NEWS: Document the semantic change.
6030
6031         getcwd: enhance tests
6032         * tests/test-getcwd-lgpl.c: New file, taken from...
6033         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
6034         repeat long path stress tests from m4 probe.
6035         * modules/getcwd-lgpl-tests: New module.
6036         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
6037         * m4/getcwd-abort-bug.m4: Update comment.
6038         * m4/getcwd-path-max.m4: Likewise.
6039
6040         getcwd-lgpl: new module
6041         * modules/getcwd-lgpl: New module.
6042         * lib/getcwd-lgpl.c: New file.
6043         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6044         * MODULES.html.sh (lacking POSIX:2008): Likewise.
6045         * modules/getcwd (configure.ac): Set C witness.
6046         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
6047
6048         getcwd: tweak comments
6049         * m4/getcwd-abort-bug.m4: Fix comments.
6050         * m4/getcwd-path-max.m4: Likewise.
6051         * m4/getcwd.m4: Likewise.
6052
6053 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6054         and Eric Blake  <eblake@redhat.com>
6055
6056         mkstemp: replace if system version uses wrong permissions
6057         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
6058         read/write mode bits set in file created by mkstemp.
6059         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
6060
6061 2011-04-27  Eric Blake  <eblake@redhat.com>
6062
6063         passfd: avoid compiler warning
6064         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
6065         Reported by Laine Stump.
6066
6067 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
6068
6069         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
6070         required by the NetBSD (and perhaps other 4.4BSD derived) join.
6071
6072 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6073         and Eric Blake  <eblake@redhat.com>
6074
6075         mkstemp: mention clean-temp module
6076         * lib/mkstemp.c: Add comment.
6077         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
6078
6079 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6080
6081         inttypes: also provide default values for 32-bit tests
6082         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
6083         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
6084
6085 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6086
6087         strtoumax: remove dependency on strtoimax
6088         This is like the strtoull change of yesterday.
6089         * modules/strtoumax (Files): Add lib/strtoimax.c.
6090         (Depends-on): Remove strtoimax and add verify.
6091
6092         inttypes-incomplete: new module
6093         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
6094         all but the PRI* and SCN* parts of gl_INTTYPES_H.
6095         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
6096         of gl_INTTYPES_H.
6097         (gl_INTTYPES_H): Rewrite in terms of these new macros.
6098         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
6099         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
6100         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
6101         * modules/strtoumax, modules/xstrtol (Depends-on):
6102         Depend on inttypes-incomplete, not inttypes.
6103         * modules/inttypes-incomplete: New module, containing the contents
6104         of the old modules/inttypes module, except that the Files: section
6105         omits m4/inttypes-pri.m4, and the configure.ac section invokes
6106         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
6107         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
6108         (Depends-on): Depend only on inttypes-incomplete.
6109         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
6110
6111         inttypes: omit now-redundant strtoimax and strtoumax work
6112         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
6113         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
6114
6115         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
6116         This supports apps that need pointers to strtoimax and strtoumax,
6117         and ports to HP-UX 11.00 64.bit, which has macros that expand to
6118         nonexistent functions.  See
6119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
6120         et seq.
6121         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
6122         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
6123         a macro.
6124         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6125
6126 2011-04-25  Simon Josefsson  <simon@josefsson.org>
6127
6128         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
6129
6130 2011-04-25  Bruno Haible  <bruno@clisp.org>
6131
6132         strtol, strtoul: Mark modules as obsolete.
6133         * modules/strtol (Status, Notice): New sections.
6134         * modules/strtoul (Status, Notice): New sections.
6135
6136 2011-04-25  Bruno Haible  <bruno@clisp.org>
6137
6138         strtod: Remove check for strtod, unless supporting old platforms.
6139         * modules/strtod-obsolete: New file.
6140         * m4/strtod-obsolete.m4: New file.
6141         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
6142         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
6143         * modules/strtod (Depends-on): Add strtod-obsolete.
6144         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
6145
6146 2011-04-25  Bruno Haible  <bruno@clisp.org>
6147
6148         strcase: Make module obsolete.
6149         * modules/strcase (Status, Notice): New sections.
6150
6151 2011-04-25  Bruno Haible  <bruno@clisp.org>
6152
6153         dup2: Remove check for dup2, unless supporting old obsolete platforms.
6154         * modules/dup2-obsolete: New file.
6155         * m4/dup2-obsolete.m4: New file.
6156         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
6157         gl_FUNC_DUP2_OBSOLETE is not also defined.
6158         * modules/dup2 (Depends-on): Add dup2-obsolete.
6159         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
6160
6161 2011-04-25  Bruno Haible  <bruno@clisp.org>
6162
6163         strnlen: Avoid memchr related link error on old obsolete platforms.
6164         * modules/memchr-obsolete: New file.
6165         * m4/memchr-obsolete.m4: New file.
6166         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
6167         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
6168         * modules/memchr (Depends-on): Add memchr-obsolete.
6169         * modules/strnlen (Depends-on): Likewise.
6170         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
6171
6172 2011-04-25  Jim Meyering  <meyering@redhat.com>
6173
6174         maint.mk: makefile_at_at_check extend and clean up
6175         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
6176         in addition to */Makefile.am.
6177         Exempt legitimate uses of @VAR@ notation, e.g.,
6178         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
6179         Remove obsolete coreutils-specific comment.
6180         Prompted by discussion here:
6181         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
6182
6183 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6184
6185         strtoul: remove dependency on strtol
6186         This is so that 'configure' need not check for strtol merely because
6187         the application needs strtoul.
6188         * modules/strtoul (Files): Add lib/strtol.c.
6189         (Depends-on): Remove strtol.
6190
6191         strtoull: remove dependency on strtoul
6192         This is like the strtoll change.
6193         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
6194         (Depends-on): Remove strtoul.
6195
6196         strtoll: remove dependency on strtol
6197         This is so that 'configure' need not check for strtol merely because
6198         the application needs strtoll.
6199         * modules/strtoll (Files): Add lib/strtol.c.
6200         (Depends-on): Remove strtol.
6201
6202 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6203
6204         inttypes: Move some configure check to module 'imaxdiv'.
6205         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
6206         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
6207         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
6208
6209 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6210
6211         inttypes: Move some configure check to module 'imaxabs'.
6212         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
6213         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
6214         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
6215
6216 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6217
6218         inttypes: Remove configure tests that are not needed since 2009-12-31.
6219         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
6220         gl_cv_header_working_inttypes_h.
6221
6222 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6223
6224         * modules/strnlen (Depends-on): Remove memchr.
6225         The strnlen implementation doesn't need the memchr module's fixes; see
6226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
6227
6228         strtol: remove dependency on wchar
6229         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
6230         * modules/strtol (Depends-on): Remove wchar.
6231
6232 2011-04-21  Eric Blake  <eblake@redhat.com>
6233
6234         passfd: fix test regression on Linux
6235         * modules/passfd-tests (configure.ac): Correct socketpair check.
6236
6237         passfd: speed up configure and drop unused code
6238         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
6239         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
6240         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
6241         Instead of probing at configure for unix_scm_rights_bsd44_way,
6242         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
6243         check to a struct member probe.
6244         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
6245         (sendfd, recvfd): Update preprocessor checks.
6246         * modules/passfd (Files): Reflect rename, and drop unused file.
6247         (Depends-on): Drop unused dependency.
6248
6249         passfd: allow compilation on mingw
6250         * modules/sys_socket (Depends-on): Add sys_uio.
6251         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
6252         iovec and a minimal struct msghdr.
6253         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6254         * tests/test-sys_socket.c (main): Enhance test.
6255         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6256         guaranteed to provide what we need.
6257         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6258         * modules/passfd-tests (Depends-on): Add sys_wait.
6259         * tests/test-passfd.c (main): Skip test on mingw, for now.
6260         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6261         partial 'struct msghdr' implementation.
6262
6263         sys_uio: new module
6264         * modules/sys_uio: New module.
6265         * modules/sys_uio-tests: Likewise.
6266         * lib/sys_uio.in.h: New file.
6267         * m4/sys_uio_h.m4: Likewise.
6268         * tests/test-sys_uio.c: Likewise.
6269         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6270         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6271
6272 2011-04-20  Jim Meyering  <meyering@redhat.com>
6273
6274         useless-if-before-free: avoid false-positive
6275         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6276         disjunct so that it too requires a terminating ";".  Without that,
6277         this script would identify as useless one statement from gcc that
6278         was not:
6279           if (aligned_ptr)
6280             free (((void **) aligned_ptr) [-1]);
6281
6282 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6283
6284         doc: update users.txt.
6285         * users.txt: Add barcode.
6286
6287 2011-04-19  Bruno Haible  <bruno@clisp.org>
6288
6289         ioctl: Remove link dependency on native Windows.
6290         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6291         (gl_close_fn, gl_ioctl_fn): New types.
6292         (struct fd_hook): Renamed from struct close_hook. Change type of
6293         private_close_fn field. Add private_ioctl_fn field.
6294         (close_hook_fn): Add parameter for primary close method.
6295         (execute_close_hooks, execute_all_close_hooks): Likewise.
6296         (ioctl_hook_fn): New type.
6297         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6298         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6299         argument.
6300         (unregister_fd_hook): Renamed from unregister_close_hook.
6301         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6302         Don't include <unistd.h>.
6303         (close): Remove undef.
6304         (anchor): Update.
6305         (execute_close_hooks): Add argument for primary close method.
6306         (execute_all_close_hooks): Likewise.
6307         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6308         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6309         argument. Allow each argument to be NULL.
6310         (unregister_fd_hook): Renamed from unregister_close_hook.
6311         * lib/close.c (rpl_close): Pass 'close' function pointer to
6312         execute_all_close_hooks.
6313         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6314         (primary_ioctl): New function.
6315         (ioctl): Don't call ioctlsocket here. Instead, call
6316         execute_all_ioctl_hooks.
6317         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6318         close method.
6319         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6320         (fd_sockets_hook): Renamed from close_sockets_hook.
6321         (gl_sockets_startup, gl_sockets_cleanup): Update.
6322         * modules/fd-hook: Renamed from modules/close-hook. Update.
6323         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6324         * modules/sockets (Depends-on): Likewise.
6325         * modules/ioctl (Depends-on): Add fd-hook.
6326         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6327         GNULIB_SOCKET.
6328
6329 2011-04-19  Bruno Haible  <bruno@clisp.org>
6330
6331         Move the support of O_NONBLOCK in open() to the 'open' module.
6332         * modules/nonblocking (Depends-on): Remove 'open'.
6333         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6334         gl_cv_have_open_O_NONBLOCK.
6335         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6336         O_NONBLOCK support.
6337         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6338
6339 2011-04-17  Bruno Haible  <bruno@clisp.org>
6340
6341         pipe2: Simplify code.
6342         * lib/pipe2.c (pipe2): Reduce code duplication.
6343
6344 2011-04-17  Bruno Haible  <bruno@clisp.org>
6345
6346         nonblocking: Add comment.
6347         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6348
6349 2011-04-17  Bruno Haible  <bruno@clisp.org>
6350
6351         nonblocking: Add tests for sockets.
6352         * tests/test-nonblocking-socket.sh: New file.
6353         * tests/test-nonblocking-socket-main.c: New file.
6354         * tests/test-nonblocking-socket-child.c: New file.
6355         * tests/test-nonblocking-socket.h: New file.
6356         * tests/socket-server.h: New file.
6357         * tests/socket-client.h: New file.
6358         * modules/nonblocking-socket-tests: New file.
6359         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6360
6361 2011-04-17  Bruno Haible  <bruno@clisp.org>
6362
6363         nonblocking: Add tests for pipes.
6364         * tests/test-nonblocking-pipe.sh: New file.
6365         * tests/test-nonblocking-pipe-main.c: New file.
6366         * tests/test-nonblocking-pipe-child.c: New file.
6367         * tests/test-nonblocking-pipe.h: New file.
6368         * tests/test-nonblocking-writer.h: New file.
6369         * tests/test-nonblocking-reader.h: New file.
6370         * tests/test-nonblocking-misc.h: New file.
6371         * modules/nonblocking-pipe-tests: New file.
6372         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6373
6374 2011-04-16  Bruno Haible  <bruno@clisp.org>
6375
6376         gettext: Clarify the needed programmer actions.
6377         * modules/gettext (Notice): New field.
6378         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6379
6380 2011-04-16  Bruno Haible  <bruno@clisp.org>
6381
6382         strchrnul: Tweak last commit.
6383         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6384         bug.
6385         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6386         as in _GL_FUNCDECL_SYS.
6387         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6388         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6389
6390 2011-04-15  Eric Blake  <eblake@redhat.com>
6391
6392         strchrnul: work around cygwin bug
6393         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6394         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6396         * modules/string (Makefile.am): Substitute it.
6397         * lib/string.in.h (strchrnul): Use it.
6398
6399 2011-04-15  Bruno Haible  <bruno@clisp.org>
6400
6401         Don't require lib/stdio-write.c when only module 'stdio' is used.
6402         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6403         invocation.
6404         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6405
6406 2011-04-14  Bruno Haible  <bruno@clisp.org>
6407
6408         Support non-blocking pipe I/O in read() on native Windows.
6409         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6410         (read): New declaration.
6411         * lib/read.c: New file.
6412         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6413         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6414         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6415         vscanf): New declarations.
6416         * lib/stdio-read.c: New file.
6417         * m4/read.m4: New file.
6418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6419         REPLACE_READ.
6420         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6421         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6422         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6423         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6424         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6425         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6426         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6427         * modules/read: New file.
6428         * modules/nonblocking (Files): Add lib/stdio-read.c.
6429         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6430         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6431         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6432         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6433         * modules/pread (Depends-on): Add read.
6434         * modules/safe-read (Depends-on): Likewise.
6435         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6436         gets, scanf, vfscanf, vscanf): Verify signatures.
6437         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6438         problem with non-blocking pipes.
6439         * doc/posix-functions/fgetc.texi: Likewise.
6440         * doc/posix-functions/fgets.texi: Likewise.
6441         * doc/posix-functions/fread.texi: Likewise.
6442         * doc/posix-functions/fscanf.texi: Likewise.
6443         * doc/posix-functions/getc.texi: Likewise.
6444         * doc/posix-functions/getchar.texi: Likewise.
6445         * doc/posix-functions/gets.texi: Likewise.
6446         * doc/posix-functions/scanf.texi: Likewise.
6447         * doc/posix-functions/vfscanf.texi: Likewise.
6448         * doc/posix-functions/vscanf.texi: Likewise.
6449
6450 2011-04-14  Bruno Haible  <bruno@clisp.org>
6451
6452         Support non-blocking pipe I/O in write() on native Windows.
6453         * lib/write.c (rpl_write): Split a write request that failed merely
6454         because the byte count was larger than the pipe buffer's size.
6455         * doc/posix-functions/write.texi: Mention the problem with large byte
6456         counts.
6457
6458 2011-04-14  Bruno Haible  <bruno@clisp.org>
6459
6460         wchar: Ensure that wchar_t gets defined on uClibc.
6461         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6462         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6463
6464 2011-04-13  Bruno Haible  <bruno@clisp.org>
6465
6466         safe-write, full-read: Avoid unnecessary compilation units.
6467         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6468         (Depends-on): Remove safe-read. Add ssize_t.
6469         * modules/full-read (Files): Add lib/full-write.c.
6470         (Depends-on): Add full-write.
6471
6472 2011-04-13  Bruno Haible  <bruno@clisp.org>
6473
6474         Support non-blocking pipe I/O and SIGPIPE in pwrite().
6475         * modules/pwrite (Depends-on): Add 'write'.
6476
6477 2011-04-13  Bruno Haible  <bruno@clisp.org>
6478
6479         Support non-blocking pipe I/O in write() on native Windows.
6480         * lib/unistd.in.h (write): Enable replacement also if
6481         GNULIB_UNISTD_H_NONBLOCKING is 1.
6482         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
6483         (rpl_write): When failing to write on a non-blocking pipe, change
6484         errno from ENOSPC to EAGAIN.
6485         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
6486         putchar, puts, vfprintf, vprintf): Enable replacement also if
6487         GNULIB_STDIO_H_NONBLOCKING is 1.
6488         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
6489         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
6490         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
6491         CALL_WITH_SIGPIPE_EMULATION.
6492         (CALL_WITH_SIGPIPE_EMULATION): Use them.
6493         * m4/nonblocking.m4: New file.
6494         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
6495         for non-blocking I/O support.
6496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6497         GNULIB_UNISTD_H_NONBLOCKING.
6498         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
6499         required for non-blocking I/O support.
6500         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
6501         * modules/nonblocking (Files): Add m4/nonblocking.m4,
6502         lib/stdio-write.c, m4/asm-underscore.m4.
6503         (Depends-on): Add stdio, unistd.
6504         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
6505         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
6506         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
6507         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
6508         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
6509         problem with non-blocking pipes.
6510         * doc/posix-functions/fputc.texi: Likewise.
6511         * doc/posix-functions/fputs.texi: Likewise.
6512         * doc/posix-functions/fwrite.texi: Likewise.
6513         * doc/posix-functions/printf.texi: Likewise.
6514         * doc/posix-functions/putc.texi: Likewise.
6515         * doc/posix-functions/putchar.texi: Likewise.
6516         * doc/posix-functions/puts.texi: Likewise.
6517         * doc/posix-functions/vfprintf.texi: Likewise.
6518         * doc/posix-functions/vprintf.texi: Likewise.
6519         * doc/posix-functions/write.texi: Likewise.
6520
6521 2011-04-10  Jim Meyering  <meyering@redhat.com>
6522
6523         maint.mk: prohibit doubled words
6524         Detect them also when they're separated by a newline.
6525         There are 3 ways to customize it:
6526           - disable the test on a per file basis, as usual with rules using
6527             $(VC_LIST_EXCEPT)
6528           - replace the default doubled-word-selecting regexp (affects all files)
6529           - ignore a particular file-vs-doubled-word match
6530         I nearly used that last one to ignore the "is is" match in
6531         coreutils' NEWS file, since the text was "ls -is is ..."
6532         To do that, I would have added this line to cfg.mk:
6533           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
6534         but it would have ignored any "is is" match in NEWS.
6535         Low probability, but still...
6536         Instead, I changed the text, slightly:
6537           -  ls -is is now consistent with ls -lis in ignoring values returned
6538           +  "ls -is" is now consistent with ls -lis in ignoring values returned
6539         * top/maint.mk (prohibit_double_word_RE_): Provide default.
6540         (prohibit_doubled_word_): Define.
6541         (sc_prohibit_doubled_word): New rule.
6542         (sc_prohibit_the_the): Remove.  Subsumed by the above.
6543
6544 2011-04-10  Jim Meyering  <meyering@redhat.com>
6545
6546         maint: fix doubled-word typo in comment
6547         * m4/gethostname.m4: s/is is/it is/
6548         * m4/getdomainname.m4: Likewise.
6549
6550 2011-04-10  Jim Meyering  <meyering@redhat.com>
6551
6552         maint: remove doubled word: s/it it/it/
6553         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
6554
6555 2011-04-10  Jim Meyering  <meyering@redhat.com>
6556
6557         maint.mk: remove useless semicolon and backslash
6558         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
6559         semicolon and backslash.
6560
6561 2011-04-10  Bruno Haible  <bruno@clisp.org>
6562
6563         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6564         * modules/stdint-tests (Depends-on): Add wchar.
6565
6566 2011-04-10  Jim Meyering  <meyering@redhat.com>
6567
6568         maint: remove doubled words in comments, e.g., s/a a/a/
6569         * lib/strptime.c (day_of_the_week): s/the the/the/
6570         * tests/test-chown.h (test_chown): s/a a/a/
6571
6572         test-chown.h: correct a cast
6573         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6574         when the destination is a stat.st_gid.
6575
6576 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6577
6578         getaddrinfo: Fix test for sa_len member.
6579         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6580         include <sys/types.h> before <sys/socket.h>.
6581
6582 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6583
6584         maint: change "can not" to "cannot"
6585         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6586         boundaries.
6587
6588 2011-04-09  Jim Meyering  <meyering@redhat.com>
6589
6590         maint: change "a a" to "a"
6591         * tests/test-lchown.h (test_lchown): s/a a/a/
6592
6593         maint.mk: prohibit \<the the\>
6594         * top/maint.mk (sc_prohibit_the_the): New rule.
6595
6596         maint: fix "the the" in comment
6597         * lib/count-one-bits.h: s/the the/the/
6598
6599         maint: change "can not" to "cannot"
6600         But do not change the occurrences in maintain.texi or in
6601         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6602         * doc/gnulib-tool.texi: s/can not/cannot/
6603         * doc/posix-functions/accept.texi (accept): Likewise.
6604         * doc/posix-functions/socket.texi (socket): Likewise.
6605         * lib/mbrtowc.c: Likewise.
6606
6607         maint.mk: prohibit use of "can not"
6608         * top/maint.mk (sc_prohibit_can_not): New rule.
6609         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6610
6611 2011-04-09  Bruno Haible  <bruno@clisp.org>
6612
6613         careadlinkat: Guard against misuse of careadlinkatcwd.
6614         * lib/careadlinkat.c: Include <stdlib.h>.
6615         (careadlinkatcwd): Check that the fd argument is as expected.
6616
6617 2011-04-09  Bruno Haible  <bruno@clisp.org>
6618
6619         careadlinkat: Use common coding style.
6620         * lib/careadlinkat.c: Move gnulib includes after system includes.
6621
6622 2011-04-09  Bruno Haible  <bruno@clisp.org>
6623
6624         careadlinkat: Clarify specification.
6625         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6626         (careadlinkatcwd): Add comment.
6627         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6628
6629 2011-04-09  Bruno Haible  <bruno@clisp.org>
6630
6631         areadlinkat: Avoid link error on many platforms.
6632         * modules/areadlinkat (Depends-on): Add areadlink.
6633
6634 2011-04-09  Bruno Haible  <bruno@clisp.org>
6635
6636         allocator, careadlinkat: Fix double-inclusion guard.
6637         * lib/allocator.h: Fix double-inclusion guard.
6638         * lib/careadlinkat.h: Likewise.
6639
6640 2011-04-09  Bruno Haible  <bruno@clisp.org>
6641
6642         relocatable-prog-wrapper: Update after module 'areadlink' changed.
6643         * lib/relocwrapper.c: Update dependencies hierarchy.
6644         * build-aux/install-reloc: Update list of files to be compiled.
6645         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
6646         lib/allocator.[hc].
6647
6648 2011-04-08  Eric Blake  <eblake@redhat.com>
6649
6650         strftime: silence gnulib-tool warning
6651         * modules/strftime-tests (Depends-on): Drop automatic dependency.
6652
6653 2011-04-08  Bruno Haible  <bruno@clisp.org>
6654
6655         verify: Fix syntax error with GCC 4.6 in C++ mode.
6656         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
6657         (HAVE_STATIC_ASSERT): New macro.
6658         (verify_true, verify): Use 'static_assert' if it is supported and
6659         '_Static_assert' is not supported.
6660
6661 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6662
6663         allocator: New module.
6664         * modules/allocator, lib/allocator.c: New files.
6665         * lib/allocator.h (stdlib_allocator): New decl.
6666         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
6667         Remove.  Do not include <stdlib.h>.
6668         (careadlinkat): Use stdlib_allocator instead of rolling our own.
6669         * modules/careadlinkat (Files): Remove lib/allocator.h.
6670         (Depends-on): Add allocator.
6671
6672         stdlib: let modules use system malloc, realloc
6673         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
6674         if !_GL_USE_STDLIB_ALLOC.
6675         (malloc, realloc): Limit this change to a smaller scope.
6676
6677         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
6678         (malloc, realloc): Don't #undef; no longer needed.
6679         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6680         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6681         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6682         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6683         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6684         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6685         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6686         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6687
6688         careadlinkat: rename members to avoid problem
6689         * lib/allocator.h (struct allocator): Rename members from
6690         malloc/realloc to allocate/reallocate, to avoid problems if malloc
6691         and realloc are #define'd.  Reported by Eric Blake in
6692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
6693         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
6694
6695 2011-04-08  Eric Blake  <eblake@redhat.com>
6696
6697         nonblocking: reduce dependency
6698         * tests/test-nonblocking.c: Only test sockets when in use.
6699         * modules/nonblocking-tests (Depends-on): Drop socket.
6700         (Makefile.am): Link even if sockets are not present.
6701         * modules/pipe2-tests (Makefile.am): Likewise.
6702         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
6703
6704         pipe2: fix O_NONBLOCK support on mingw
6705         * modules/pipe2 (Depends-on): Add nonblocking.
6706         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
6707         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
6708         * tests/test-nonblocking.c (main): Likewise.
6709         * modules/pipe2-tests (Makefile.am): Avoid link failure.
6710
6711         fcntl-h: fix O_ACCMODE on cygwin
6712         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
6713         * lib/fcntl.in.h (O_ACCMODE): Fix it.
6714
6715         pipe-filter: drop O_NONBLOCK workarounds
6716         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
6717         * modules/pipe-filter-ii (Depends-on): Likewise.
6718         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
6719
6720         nonblocking: provide O_NONBLOCK for mingw
6721         * modules/nonblocking (Depends-on): Add open.
6722         (configure.ac): Set new witness macro.
6723         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
6724         * modules/fcntl-h (Makefile.am): Substitute it.
6725         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
6726         nonblocking module is in use.
6727         * lib/nonblocking.c: Adjust portability test.
6728         * lib/open.c (open): Don't let native open see gnulib flag.
6729         * tests/test-fcntl-h.c (main): Enhance test.
6730         * tests/test-open.h (test_open): Likewise.
6731         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
6732
6733         careadlinkat: fix compilation error on mingw
6734         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
6735         within struct allocator.
6736
6737 2011-04-06  Eric Blake  <eblake@redhat.com>
6738
6739         binary-io: relicense under LGPLv2+
6740         * modules/binary-io (License): Relax to LGPLv2+.
6741         Requested for libvirt, and required by pipe2.
6742
6743 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6744
6745         verify: use _Static_assert if available
6746         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
6747         (verify_true, verify): Use it if available.  This generates better
6748         diagnostics with GCC 4.6.0 and later.
6749
6750 2011-04-05  Bruno Haible  <bruno@clisp.org>
6751
6752         Remove leftover generated .h files after config.status changed.
6753
6754         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
6755         GL_GENERATE_ALLOCA_H.
6756         * modules/alloca-opt (Makefile.am): Remove alloca.h if
6757         GL_GENERATE_ALLOCA_H evaluates to false.
6758
6759         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
6760         GL_GENERATE_ARGZ_H.
6761         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
6762         evaluates to false.
6763
6764         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
6765         GL_GENERATE_BYTESWAP_H.
6766         * modules/byteswap (Makefile.am): Remove byteswap.h if
6767         GL_GENERATE_BYTESWAP_H evaluates to false.
6768
6769         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
6770         GL_GENERATE_ERRNO_H.
6771         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
6772         evaluates to false.
6773
6774         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
6775         GL_GENERATE_FLOAT_H.
6776         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
6777         evaluates to false.
6778
6779         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
6780         GL_GENERATE_FNMATCH_H.
6781         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
6782         GL_GENERATE_FNMATCH_H evaluates to false.
6783
6784         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
6785         GL_GENERATE_GLOB_H.
6786         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
6787         evaluates to false.
6788
6789         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
6790         automake conditional GL_GENERATE_ICONV_H.
6791         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
6792         evaluates to false.
6793
6794         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
6795         GL_GENERATE_NETINET_IN_H.
6796         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
6797         GL_GENERATE_NETINET_IN_H evaluates to false.
6798
6799         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
6800         conditional GL_GENERATE_PTHREAD_H.
6801         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
6802         * modules/pthread (Makefile.am): Remove pthread.h if
6803         GL_GENERATE_PTHREAD_H evaluates to false.
6804
6805         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
6806         GL_GENERATE_SCHED_H.
6807         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
6808         evaluates to false.
6809
6810         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
6811         conditional GL_GENERATE_SELINUX_CONTEXT_H.
6812         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
6813         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
6814
6815         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
6816         GL_GENERATE_STDARG_H.
6817         * modules/stdarg (Makefile.am): Remove stdarg.h if
6818         GL_GENERATE_STDARG_H evaluates to false.
6819
6820         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
6821         GL_GENERATE_STDBOOL_H.
6822         * modules/stdbool (Makefile.am): Remove stdbool.h if
6823         GL_GENERATE_STDBOOL_H evaluates to false.
6824
6825         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
6826         conditional GL_GENERATE_STDDEF_H.
6827         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
6828         * modules/stddef (Makefile.am): Remove stddef.h if
6829         GL_GENERATE_STDDEF_H evaluates to false.
6830
6831         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
6832         GL_GENERATE_STDINT_H.
6833         * modules/stdint (Makefile.am): Remove stdint.h if
6834         GL_GENERATE_STDINT_H evaluates to false.
6835
6836         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
6837         GL_GENERATE_SYSEXITS_H.
6838         * modules/sysexits (Makefile.am): Remove sysexits.h if
6839         GL_GENERATE_SYSEXITS_H evaluates to false.
6840
6841         Reported by Karl Berry and Ralf Wildenhues.
6842
6843 2011-04-05  Bruno Haible  <bruno@clisp.org>
6844
6845         Ensure to rebuild generated .h files when config.status has changed.
6846         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
6847         config.status.
6848         * modules/ctype (Makefile.am): Likewise.
6849         * modules/dirent (Makefile.am): Likewise.
6850         * modules/errno (Makefile.am): Likewise.
6851         * modules/fcntl-h (Makefile.am): Likewise.
6852         * modules/float (Makefile.am): Likewise.
6853         * modules/getopt-posix (Makefile.am): Likewise.
6854         * modules/glob (Makefile.am): Likewise.
6855         * modules/iconv-h (Makefile.am): Likewise.
6856         * modules/inttypes (Makefile.am): Likewise.
6857         * modules/langinfo (Makefile.am): Likewise.
6858         * modules/locale (Makefile.am): Likewise.
6859         * modules/math (Makefile.am): Likewise.
6860         * modules/netdb (Makefile.am): Likewise.
6861         * modules/netinet_in (Makefile.am): Likewise.
6862         * modules/poll-h (Makefile.am): Likewise.
6863         * modules/pthread (Makefile.am): Likewise.
6864         * modules/pty (Makefile.am): Likewise.
6865         * modules/sched (Makefile.am): Likewise.
6866         * modules/search (Makefile.am): Likewise.
6867         * modules/selinux-h (Makefile.am): Likewise.
6868         * modules/signal (Makefile.am): Likewise.
6869         * modules/spawn (Makefile.am): Likewise.
6870         * modules/stdarg (Makefile.am): Likewise.
6871         * modules/stdbool (Makefile.am): Likewise.
6872         * modules/stddef (Makefile.am): Likewise.
6873         * modules/stdint (Makefile.am): Likewise.
6874         * modules/stdio (Makefile.am): Likewise.
6875         * modules/stdlib (Makefile.am): Likewise.
6876         * modules/string (Makefile.am): Likewise.
6877         * modules/strings (Makefile.am): Likewise.
6878         * modules/sys_file (Makefile.am): Likewise.
6879         * modules/sys_ioctl (Makefile.am): Likewise.
6880         * modules/sys_select (Makefile.am): Likewise.
6881         * modules/sys_socket (Makefile.am): Likewise.
6882         * modules/sys_stat (Makefile.am): Likewise.
6883         * modules/sys_time (Makefile.am): Likewise.
6884         * modules/sys_times (Makefile.am): Likewise.
6885         * modules/sys_utsname (Makefile.am): Likewise.
6886         * modules/sys_wait (Makefile.am): Likewise.
6887         * modules/sysexits (Makefile.am): Likewise.
6888         * modules/termios (Makefile.am): Likewise.
6889         * modules/time (Makefile.am): Likewise.
6890         * modules/unistd (Makefile.am): Likewise.
6891         * modules/wchar (Makefile.am): Likewise.
6892         * modules/wctype-h (Makefile.am): Likewise.
6893         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
6894
6895 2011-04-05  Bruno Haible  <bruno@clisp.org>
6896
6897         pipe2: Relicense under LGPLv2+.
6898         * modules/pipe2 (License): Change to LGPLv2+.
6899         Requested by Eric Blake, for libvirt.
6900
6901 2011-04-05  Bruce Korb  <bkorb@gnu.org>
6902
6903         bootstrap: compute gnulib_extra_files after updating build_aux
6904         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
6905         change build_aux or also supply gnulib_extra_files.  Handle correctly.
6906
6907 2011-04-05  Eric Blake  <eblake@redhat.com>
6908
6909         bootstrap: preserve git whitelist item sorting
6910         * build-aux/bootstrap (sort_patterns): New function.
6911         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
6912
6913 2011-04-05  Simon Josefsson  <simon@josefsson.org>
6914
6915         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
6916         sc_space_tab check.
6917
6918 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6919
6920         areadlink, areadlinkat: rewrite in terms of careadlinkat
6921         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
6922         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
6923         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
6924         (malloc, realloc): Remove #undefs.
6925         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
6926         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
6927         readlink, ssize_t, stdint, unistd.
6928         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
6929         areadlink, stdint.
6930
6931         careadlinkat: new module
6932         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
6933         * modules/careadlinkat: New files, written by me with
6934         a review and feedback from Ben Pfaff in
6935         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
6936
6937 2011-04-01  Bruno Haible  <bruno@clisp.org>
6938
6939         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
6940         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
6941         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
6942         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
6943         Reported by Bruce Korb <bruce.korb@gmail.com>.
6944
6945 2011-04-01  Bruno Haible  <bruno@clisp.org>
6946
6947         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
6948         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
6949         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
6950         * modules/wcpcpy (Depends-on): Add extensions.
6951         * modules/wcpncpy (Depends-on): Likewise.
6952         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
6953         systems.
6954         * doc/posix-functions/wcpncpy.texi: Likewise.
6955         * doc/posix-functions/wcwidth.texi: Likewise.
6956
6957 2011-03-31  Eric Blake  <eblake@redhat.com>
6958
6959         nonblocking: fix mingw test failures
6960         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
6961         non-blocking flag on regular file.
6962         (get_nonblocking_flag): Set errno on invalid fd.
6963         * tests/test-nonblocking.c (main): Avoid test failure on
6964         directories if fchdir is not active.
6965         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
6966
6967 2011-03-31  Bruno Haible  <bruno@clisp.org>
6968
6969         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
6970         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
6971         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
6972         Reported by Simon Josefsson <simon@josefsson.org>.
6973
6974 2011-03-31  Bruno Haible  <bruno@clisp.org>
6975         and Eric Blake  <eblake@redhat.com>
6976
6977         nonblocking: new module
6978         * modules/nonblocking: New module.
6979         * modules/nonblocking-tests: Likewise.
6980         * lib/nonblocking.h: New file.
6981         * lib/nonblocking.c: Likewise.
6982         * tests/test-nonblocking.c: New test.
6983         * lib/ioctl.c (ioctl) [mingw]: Update comment.
6984
6985 2011-03-30  Bruno Haible  <bruno@clisp.org>
6986
6987         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
6988         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
6989         instead of 'printf' format for GCC >= 4.4.
6990         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
6991         (fprintf, printf, vfprintf, vprintf): Declare with
6992         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
6993         the system's vfprintf() function.
6994         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
6995
6996 2011-03-30  Eric Blake  <eblake@redhat.com>
6997
6998         passfd: fix scoping bug
6999         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
7000         before sendmsg/recvmsg.
7001
7002         passfd: standardize coding conventions
7003         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
7004         can be learned at compile time.
7005         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
7006         ifdefs.
7007         (sendfd, recvfd): Follow gnulib code conventions.
7008
7009         passfd: fix incorrect sendmsg arguments
7010         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
7011         incorrect msg_controllen value.
7012         * modules/passfd-tests (Depends-on): Check for alarm.
7013         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
7014         Reported by Bastien ROUCARIES.
7015
7016 2011-03-30  Bruno Haible  <bruno@clisp.org>
7017
7018         c-strcasestr: Relicense under LGPLv2+.
7019         * modules/c-strcasestr (License): Change to LGPLv2+.
7020         Requested by Eric Blake, for libvirt.
7021
7022 2011-03-30  Simon Josefsson  <simon@josefsson.org>
7023
7024         * users.txt: Add libidn2.  Fix libtasn1 link.
7025
7026 2011-03-30  Jim Meyering  <meyering@redhat.com>
7027
7028         tests: readlink* ("",... fails with EINVAL on newer kernels
7029         readlink and readlinkat have typically failed with ENOENT for
7030         the invalid, empty file name,  "".  However, with the advent
7031         of linux-2.6.39, they fail with EINVAL.
7032         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
7033         when operating on the empty file name.
7034         * tests/test-readlink.h (test_readlink): Likewise.
7035
7036 2011-03-29  Bruno Haible  <bruno@clisp.org>
7037
7038         Relicense some modules under LGPLv2+, for libidn2.
7039         * modules/array-mergesort (License): Change to LGPLv2+.
7040         * modules/c-strcaseeq (License): Likewise.
7041         * modules/striconveh (License): Likewise.
7042         * modules/striconveha (License): Likewise.
7043         * modules/uniconv/base (License): Likewise.
7044         * modules/uniconv/u8-conv-from-enc (License): Likewise.
7045         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
7046         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
7047         * modules/unictype/base (License): Likewise.
7048         * modules/unictype/bidiclass-of (License): Likewise.
7049         * modules/unictype/category-M (License): Likewise.
7050         * modules/unictype/category-none (License): Likewise.
7051         * modules/unictype/category-of (License): Likewise.
7052         * modules/unictype/category-test (License): Likewise.
7053         * modules/unictype/category-test-withtable (License): Likewise.
7054         * modules/unictype/combining-class (License): Likewise.
7055         * modules/unictype/joiningtype-of (License): Likewise.
7056         * modules/unictype/scripts (License): Likewise.
7057         * modules/uninorm/base (License): Likewise.
7058         * modules/uninorm/canonical-decomposition (License): Likewise.
7059         * modules/uninorm/composition (License): Likewise.
7060         * modules/uninorm/decompose-internal (License): Likewise.
7061         * modules/uninorm/decomposition-table (License): Likewise.
7062         * modules/uninorm/nfc (License): Likewise.
7063         * modules/uninorm/nfd (License): Likewise.
7064         * modules/uninorm/u32-normalize (License): Likewise.
7065         * modules/unistr/base (License): Likewise.
7066         * modules/unistr/u32-cpy (License): Likewise.
7067         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
7068         * modules/unistr/u32-to-u8 (License): Likewise.
7069         * modules/unistr/u32-uctomb (License): Likewise.
7070         * modules/unistr/u8-check (License): Likewise.
7071         * modules/unistr/u8-mblen (License): Likewise.
7072         * modules/unistr/u8-mbtouc (License): Likewise.
7073         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
7074         * modules/unistr/u8-mbtoucr (License): Likewise.
7075         * modules/unistr/u8-prev (License): Likewise.
7076         * modules/unistr/u8-strlen (License): Likewise.
7077         * modules/unistr/u8-to-u32 (License): Likewise.
7078         * modules/unistr/u8-uctomb (License): Likewise.
7079         * modules/unitypes (License): Likewise.
7080         Requested by Simon Josefsson.
7081
7082 2011-03-29  Simon Josefsson  <simon@josefsson.org>
7083
7084         lib-symbol-visibility: Add a notice.
7085         * modules/lib-symbol-visibility (Notice): New field.
7086
7087 2011-03-29  Bruno Haible  <bruno@clisp.org>
7088
7089         getaddrinfo: Doc fix.
7090         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
7091         section "fixed in Gnulib".
7092
7093 2011-03-28  Simon Josefsson  <simon@josefsson.org>
7094
7095         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
7096         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
7097
7098 2011-03-26  Bruno Haible  <bruno@clisp.org>
7099
7100         unictype/property-byname: Reduce the number of load-time relocations.
7101         * lib/unictype/pr_byname.c: Include <stdlib.h>.
7102         (UC_PROPERTY_INDEX_*): New enumeration values.
7103         (uc_property_byname): Convert an index from the lookup table to an
7104         uc_property_t.
7105         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
7106         values.
7107
7108 2011-03-26  Bruno Haible  <bruno@clisp.org>
7109
7110         unictype/property-byname: Allow omitted word separators and aliases.
7111         * lib/unictype/pr_byname.gperf: Add property names without word
7112         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
7113         for 'space'.
7114
7115 2011-03-26  Bruno Haible  <bruno@clisp.org>
7116
7117         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
7118         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
7119         also hyphens to space.
7120         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
7121         without spaces.
7122         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
7123
7124 2011-03-26  Bruno Haible  <bruno@clisp.org>
7125
7126         unictype/joiningtype-byname: Recognize long names as well.
7127         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
7128         a long name.
7129         * lib/unictype/joiningtype_byname.c: Include <string.h>,
7130         unictype/joiningtype_byname.h.
7131         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
7132         * lib/unictype/joiningtype_byname.gperf: New file.
7133         * modules/unictype/joiningtype-byname (Files): Add
7134         lib/unictype/joiningtype_byname.gperf.
7135         (Depends-on): Add gperf.
7136         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
7137         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
7138         long names.
7139
7140         Tests for module 'unictype/joiningtype-longname'.
7141         * modules/unictype/joiningtype-longname-tests: New file.
7142         * tests/unictype/test-joiningtype_longname.c: New file.
7143
7144         New module 'unictype/joiningtype-longname'.
7145         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
7146         * lib/unictype/joiningtype_longname.c: New file.
7147         * modules/unictype/joiningtype-longname: New file.
7148         * modules/unictype/joiningtype-all (Depends-on): Add
7149         unictype/joiningtype-longname.
7150
7151 2011-03-26  Bruno Haible  <bruno@clisp.org>
7152
7153         unictype/bidiclass-byname: Recognize long names as well.
7154         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
7155         name.
7156         * lib/unictype/bidi_byname.c: Include <string.h>,
7157         unictype/bidi_byname.h.
7158         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
7159         * lib/unictype/bidi_byname.gperf: New file.
7160         * modules/unictype/bidiclass-byname (Files): Add
7161         lib/unictype/bidi_byname.gperf.
7162         (Depends-on): Add gperf.
7163         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
7164         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
7165         long names.
7166
7167         Tests for module 'unictype/bidiclass-longname'.
7168         * modules/unictype/bidiclass-longname-tests: New file.
7169         * tests/unictype/test-bidi_longname.c: New file.
7170
7171         New module 'unictype/bidiclass-longname'.
7172         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
7173         * lib/unictype/bidi_longname.c: New file.
7174         * modules/unictype/bidiclass-longname: New file.
7175         * modules/unictype/bidiclass-all (Depends-on): Add
7176         unictype/bidiclass-longname.
7177
7178 2011-03-26  Bruno Haible  <bruno@clisp.org>
7179
7180         unictype/bidi*: Rename modules.
7181         * modules/unictype/bidiclass-all: Renamed from
7182         modules/unictype/bidicategory-all.
7183         * modules/unictype/bidiclass-name: Renamed from
7184         modules/unictype/bidiclass-name.
7185         (Description): Update.
7186         * modules/unictype/bidiclass-name-tests: Renamed from
7187         modules/unictype/bidicategory-name-tests.
7188         * modules/unictype/bidiclass-byname: Renamed from
7189         modules/unictype/bidicategory-byname.
7190         (Description): Update.
7191         * modules/unictype/bidiclass-byname-tests: Renamed from
7192         modules/unictype/bidicategory-byname-tests.
7193         * modules/unictype/bidiclass-of: Renamed from
7194         modules/unictype/bidicategory-of.
7195         (Description): Update.
7196         * modules/unictype/bidiclass-of-tests: Renamed from
7197         modules/unictype/bidicategory-of-tests.
7198         * modules/unictype/bidiclass-test: Renamed from
7199         modules/unictype/bidicategory-test.
7200         (Description): Update.
7201         * modules/unictype/bidiclass-test-tests: Renamed from
7202         modules/unictype/bidicategory-test-tests.
7203         * modules/unictype/bidicategory-all: New file, a simple redirection.
7204         * modules/unictype/bidicategory-name: Likewise.
7205         * modules/unictype/bidicategory-byname: Likewise.
7206         * modules/unictype/bidicategory-of: Likewise.
7207         * modules/unictype/bidicategory-test: Likewise.
7208         * modules/unictype/property-bidi-* (Dependencies): Update.
7209         * lib/unictype/bidi_*.c: Update comment.
7210
7211 2011-03-26  Bruno Haible  <bruno@clisp.org>
7212
7213         unictype/bidi*: Rename functions, part 2.
7214         * modules/unictype/bidicategory-name (configure.ac): Update required
7215         libunistring version.
7216         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
7217
7218 2011-03-25  Bruno Haible  <bruno@clisp.org>
7219
7220         New module 'unictype/combining-class-all'.
7221         * modules/unictype/combining-class-all: New file.
7222
7223         Tests for module 'unictype/combining-class-byname'.
7224         * modules/unictype/combining-class-byname-tests: New file.
7225         * tests/unictype/test-combiningclass_byname.c: New file.
7226
7227         New module 'unictype/combining-class-byname'.
7228         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
7229         * lib/unictype/combiningclass_byname.c: New file.
7230         * lib/unictype/combiningclass_byname.gperf: New file.
7231         * modules/unictype/combining-class-byname: New file.
7232
7233         Tests for module 'unictype/combining-class-longname'.
7234         * modules/unictype/combining-class-longname-tests: New file.
7235         * tests/unictype/test-combiningclass_longname.c: New file.
7236
7237         New module 'unictype/combining-class-longname'.
7238         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
7239         * lib/unictype/combiningclass_longname.c: New file.
7240         * modules/unictype/combining-class-longname: New file.
7241
7242         Tests for module 'unictype/combining-class-name'.
7243         * modules/unictype/combining-class-name-tests: New file.
7244         * tests/unictype/test-combiningclass_name.c: New file.
7245
7246         New module 'unictype/combining-class-name'.
7247         * lib/unictype.in.h (uc_combining_class_name): New declaration.
7248         * lib/unictype/combiningclass_name.c: New file.
7249         * modules/unictype/combining-class-name: New file.
7250
7251 2011-03-25  Bruno Haible  <bruno@clisp.org>
7252
7253         unictype/combining-class: Rename source files.
7254         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7255         of unictype/combining.h.
7256         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7257         Update.
7258         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7259         * modules/unictype/combining-class (Description): Fix.
7260         (Files, Makefile.am): Update.
7261         * tests/unictype/test-combiningclass.c: Renamed from
7262         tests/unictype/test-combining.c.
7263         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7264
7265 2011-03-25  Bruno Haible  <bruno@clisp.org>
7266
7267         unictype: Update list of canonical combining classes.
7268         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7269
7270 2011-03-25  Bruno Haible  <bruno@clisp.org>
7271
7272         unictype/category-byname: Recognize long names as well.
7273         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7274         a long name.
7275         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7276         unictype/categ_byname.h.
7277         (UC_CATEGORY_INDEX_*): New enumeration values.
7278         (uc_general_category_byname): Use uc_general_category_lookup and
7279         convert from index to value.
7280         * lib/unictype/categ_byname.gperf: New file.
7281         * modules/unictype/category-byname (Files): Add
7282         lib/unictype/categ_byname.gperf.
7283         (Depends-on): Add gperf.
7284         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7285         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7286         long names.
7287
7288         Tests for module 'unictype/category-longname'.
7289         * modules/unictype/category-longname-tests: New file.
7290         * tests/unictype/test-categ_longname.c: New file.
7291
7292         New module 'unictype/category-longname'.
7293         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7294         * lib/unictype/categ_longname.c: New file.
7295         * modules/unictype/category-longname: New file.
7296         * modules/unictype/category-all (Depends-on): Add it.
7297
7298 2011-03-25  Bruno Haible  <bruno@clisp.org>
7299
7300         Tests for module 'unictype/category-LC'.
7301         * modules/unictype/category-LC-tests: New file.
7302         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7303
7304         New module 'unictype/category-LC'.
7305         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7306         (UC_CATEGORY_LC): New declaration.
7307         (UC_CASED_LETTER): New macro.
7308         * lib/gen-uni-tables.c (is_category_LC): New function.
7309         (output_categories): Also handle category LC.
7310         (UC_CATEGORY_MASK_LC): New enumeration value.
7311         (general_category_byname): Also handle category LC.
7312         * lib/unictype/categ_LC.c: New file.
7313         * lib/unictype/categ_LC.h: New file, automatically generated.
7314         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7315         category LC.
7316         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7317         * modules/unictype/category-LC: New file.
7318         * modules/unictype/category-byname (Depends-on): Add
7319         unictype/category-LC.
7320         * modules/unictype/category-all (Depends-on): Likewise.
7321
7322 2011-03-25  Eric Blake  <eblake@redhat.com>
7323
7324         xmalloc: revert yesterday's regression
7325         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7326         realloc's underlying behavior (allowing allocation of zero-size
7327         objects, especially if malloc-gnu is also in use).
7328
7329 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7330
7331         maint.mk: add missing version to VC-tag
7332         * top/maint.mk: git tag was missing actual tag name; add it.
7333
7334         valgrind: do leak checking, and exit with code 1 on error (not 0)
7335         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7336         to VALGRIND.
7337
7338 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7339
7340         posix-modules: say what it does.
7341         * posix-modules: Add a line to the --help output saying what it does.
7342
7343 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7344
7345         xmalloc: Do not leak if underlying realloc is C99 compatible.
7346         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7347         This avoids a leak on C99-based systems.  See
7348         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7349
7350 2011-03-24  Eric Blake  <eblake@redhat.com>
7351
7352         realloc: document portability problem
7353         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7354         passing 0 size to realloc.
7355
7356 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7357
7358         doc: update users.txt
7359         * users.txt: Add cvsps, tmpwatch
7360
7361 2011-03-23  Matt Rice  <ratmice@gmail.com>
7362
7363         doc: update users.txt
7364         * users.txt: Add gdb.
7365
7366 2011-03-23  Jim Meyering  <meyering@redhat.com>
7367
7368         doc: update users.txt
7369         Looking through matches up to the following URL (there are still
7370         several more pages), I found several projects that use gnulib:
7371         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7372         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7373         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7374
7375 2011-03-22  Bruno Haible  <bruno@clisp.org>
7376
7377         unictype/bidi*: Rename functions.
7378         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7379         uc_bidi_class, uc_is_bidi_class): New declarations.
7380         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7381         uc_bidi_category_byname.
7382         (uc_bidi_category_byname): New function.
7383         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7384         u_bidi_category_name.
7385         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7386         (uc_bidi_category_name): New function.
7387         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7388         uc_bidi_category.
7389         (uc_bidi_category): New function.
7390         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7391         uc_is_bidi_category. Invoke uc_bidi_class.
7392         (uc_is_bidi_category): New function.
7393         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7394         instead of uc_bidi_category_byname.
7395         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7396         instead of uc_bidi_category_name.
7397         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7398         uc_bidi_category.
7399         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7400         instead of uc_is_bidi_category.
7401
7402 2011-03-21  Bruno Haible  <bruno@clisp.org>
7403
7404         New module 'unictype/joininggroup-all'.
7405         * modules/unictype/joininggroup-all: New file.
7406
7407         Tests for module 'unictype/joininggroup-of'.
7408         * modules/unictype/joininggroup-of-tests: New file.
7409         * tests/unictype/test-joininggroup_of.c: New file.
7410         * tests/unictype/test-joininggroup_of.h: New file, automatically
7411         generated by gen-uni-tables.
7412
7413         New module 'unictype/joininggroup-of'.
7414         * modules/unictype/joininggroup-of: New file.
7415         * lib/unictype/joininggroup_of.c: New file.
7416         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7417         gen-uni-tables.
7418
7419         Tests for module 'unictype/joininggroup-byname'.
7420         * modules/unictype/joininggroup-byname-tests: New file.
7421         * tests/unictype/test-joininggroup_byname.c: New file.
7422
7423         New module 'unictype/joininggroup-byname'.
7424         * modules/unictype/joininggroup-byname: New file.
7425         * lib/unictype/joininggroup_byname.c: New file.
7426         * lib/unictype/joininggroup_byname.gperf: New file.
7427
7428         Tests for module 'unictype/joininggroup-name'.
7429         * modules/unictype/joininggroup-name-tests: New file.
7430         * tests/unictype/test-joininggroup_name.c: New file.
7431
7432         New module 'unictype/joininggroup-name'.
7433         * modules/unictype/joininggroup-name: New file.
7434         * lib/unictype/joininggroup_name.c: New file.
7435         * lib/unictype/joininggroup_name.h: New file.
7436
7437         New module 'unictype/joiningtype-all'.
7438         * modules/unictype/joiningtype-all: New file.
7439
7440         Tests for module 'unictype/joiningtype-of'.
7441         * modules/unictype/joiningtype-of-tests: New file.
7442         * tests/unictype/test-joiningtype_of.c: New file.
7443         * tests/unictype/test-joiningtype_of.h: New file, automatically
7444         generated by gen-uni-tables.
7445
7446         New module 'unictype/joiningtype-of'.
7447         * modules/unictype/joiningtype-of: New file.
7448         * lib/unictype/joiningtype_of.c: New file.
7449         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7450         gen-uni-tables.
7451
7452         Tests for module 'unictype/joiningtype-byname'.
7453         * modules/unictype/joiningtype-byname-tests: New file.
7454         * tests/unictype/test-joiningtype_byname.c: New file.
7455
7456         New module 'unictype/joiningtype-byname'.
7457         * modules/unictype/joiningtype-byname: New file.
7458         * lib/unictype/joiningtype_byname.c: New file.
7459
7460         Tests for module 'unictype/joiningtype-name'.
7461         * modules/unictype/joiningtype-name-tests: New file.
7462         * tests/unictype/test-joiningtype_name.c: New file.
7463
7464         New module 'unictype/joiningtype-name'.
7465         * modules/unictype/joiningtype-name: New file.
7466         * lib/unictype/joiningtype_name.c: New file.
7467
7468         unictype: Add support for Arabic shaping properties.
7469         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7470         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
7471         declarations.
7472         (UC_JOINING_GROUP_*): New enumeration values.
7473         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
7474         declarations.
7475         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
7476         (unicode_joining_type): New variable.
7477         (UC_JOINING_GROUP_*): New enumeration values.
7478         (unicode_joining_group): New variable.
7479         (fill_arabicshaping, joining_type_as_c_identifier,
7480         output_joining_type_test, output_joining_type,
7481         joining_group_as_c_identifier, output_joining_group_test,
7482         output_joining_group): New functions.
7483         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
7484         fill_arabicshaping and output_joining_type_test, output_joining_type,
7485         output_joining_group_test, output_joining_group.
7486         Reported by Simon Josefsson.
7487
7488 2011-03-21  Jim Meyering  <meyering@redhat.com>
7489
7490         strftime: fix a bug in yesterday's change
7491         * lib/strftime.c (add): Accommodate width's initial value of -1.
7492         Otherwise, nstrftime would copy uninitialized data into
7493         the result buffer.
7494
7495 2011-03-21  Jim Meyering  <meyering@redhat.com>
7496
7497         tests: add strftime-tests module
7498         * tests/test-strftime.c: New file.
7499         * modules/strftime-tests: New module.
7500
7501 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7502
7503         strftime: don't assume a byte count fits in 'int'
7504         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
7505         found this problem by static analysis, using gcc -Wstrict-overflow
7506         (GCC 4.5.2, x86-64).  This reported an optimization that depended
7507         on an integer overflow having undefined behavior, but it turns out
7508         that the argument is a size, which might not fit in 'int' anyway,
7509
7510 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7511
7512         stdio: don't require ignore_value around fwrite
7513
7514         This patch works around libc bug 11959
7515         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
7516         Without this patch, applications must often write
7517         ignore_value (fwrite (...)) even though the ignore_value is
7518         not helpful here.  It's common to write many objects, using
7519         fwrite/printf/etc., and then use ferror to detect output error.
7520
7521         I considered making this patch optional, but decided against it,
7522         because libc is obviously being inconsistent here: there is no
7523         reason libc should insist that user code must inspect fwrite
7524         return's value without also insisting that it inspect printf's,
7525         putchar's, etc.  If user code wants to have a strict style where
7526         all these functions' values are checked (so that ferror need not
7527         be checked), we could add support for that style in a new gnulib
7528         module, but in the meantime it's better to be consistent and to
7529         support common usage.
7530
7531         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
7532         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
7533         that we are compiling in checking mode, and if not C++, and
7534         if not already wrapping fwrite for some other reason.
7535         (fwrite): #define to rpl_fwrite if the latter is defined.
7536
7537 2011-03-20  Bruno Haible  <bruno@clisp.org>
7538
7539         verror: Fix compilation error introduced on 2011-02-13.
7540         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
7541         instead of __attribute__.
7542         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7543
7544 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7545             Bruno Haible  <bruno@clisp.org>
7546
7547         socklen: do not depend on sys_socket
7548         While trying to modify Emacs to use gnulib's socklen module,
7549         I discovered a circular dependency: socklen depends on sys_socket
7550         and vice versa.  Emacs can use socklen, but it does not need
7551         sys_socket because it has its own substitute for sys/socket.h.
7552         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
7553         gl_TYPE_SOCKLEN_T.
7554         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
7555         gl_PREREQ_SYS_H_SOCKET.
7556         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
7557         gl_PREREQ_SYS_H_SOCKET.
7558         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
7559         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
7560         * modules/socklen (Depends-on): Do not depend on sys_socket.
7561         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7562
7563 2011-03-20  Jim Meyering  <meyering@redhat.com>
7564
7565         maint.mk: sort file names *after* new transformation
7566         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7567         prefix would have led to an unwarranted failure in GNU parted.
7568         Sort after that transformation.
7569
7570 2011-03-19  Jim Meyering  <meyering@redhat.com>
7571
7572         maint.mk: fix po-file syntax-check rule
7573         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7574         Patch by Bruno Haible.
7575
7576 2011-03-19  Bruno Haible  <bruno@clisp.org>
7577
7578         socklen: Update comment.
7579         * m4/socklen.m4: Update comment about platforms.
7580
7581 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7582             Bruno Haible  <bruno@clisp.org>
7583
7584         inet_ntop, inet_pton: Simplify.
7585         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7586         documented to provide socklen_t and we already depend on sys_socket.
7587         * modules/inet_pton (Depends-on): Likewise.
7588         * lib/arpa_inet.in.h: Adjust comment.
7589
7590 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7591             Bruno Haible  <bruno@clisp.org>
7592
7593         netdb: Simplify.
7594         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7595         documented to provide socklen_t and we already depend on sys_socket.
7596         * lib/netdb.in.h: Adjust comment.
7597
7598 2011-03-19  Bruno Haible  <bruno@clisp.org>
7599
7600         sys_socket, netdb: Document problem with socklen_t.
7601         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7602         platforms.
7603         * doc/posix-headers/netdb.texi: Likewise.
7604
7605 2011-03-18  Eric Blake  <eblake@redhat.com>
7606
7607         maint.mk: let po check work in VPATH build
7608         * top/maint.mk (po_file): Allow cfg.mk override.
7609         (sc_po_check): Allow VPATH use.
7610         Reported by Jiri Denemark.
7611
7612 2011-03-16  Jim Meyering  <meyering@redhat.com>
7613
7614         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7615         Before, you would have had to create one .x-sc_ file per rule in order
7616         to exempt offending files.  Now, you may instead use a Make variable --
7617         usually defined in cfg.mk -- whose name identifies the affected rule.
7618         * top/maint.mk (_sc_excl): Define.
7619         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7620         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7621
7622 2011-03-13  Bruno Haible  <bruno@clisp.org>
7623
7624         ignore-value tests: Avoid warnings.
7625         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7626         empty for gcc < 3.4.
7627
7628 2011-03-13  Bruno Haible  <bruno@clisp.org>
7629
7630         passfd: Fix link error on Solaris.
7631         * modules/passfd (Description): Correct.
7632         (Depends-on): Add socketlib.
7633         (Link): New section.
7634         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7635
7636 2011-03-13  Bruno Haible  <bruno@clisp.org>
7637
7638         passfd: Fix link error on AIX 5.2.
7639         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
7640
7641 2011-03-13  Bruno Haible  <bruno@clisp.org>
7642
7643         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
7644         * lib/sys_socket.in.h: Include <stddef.h>.
7645         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
7646         CMSG_FIRSTHDR. Remove unused variable.
7647
7648 2011-03-13  Bruno Haible  <bruno@clisp.org>
7649
7650         passfd: Fix compilation error on OpenBSD.
7651         * lib/passfd.c: Include <sys/uio.h>.
7652
7653 2011-03-13  Bruno Haible  <bruno@clisp.org>
7654
7655         passfd test: Fix warnings.
7656         * tests/test-passfd.c: Include <sys/wait.h>.
7657         (main): Fix typo.
7658
7659 2011-03-13  Bruno Haible  <bruno@clisp.org>
7660
7661         passfd module, part 4, tweaks.
7662         * tests/test-passfd.c: Reorder includes.
7663         (main): Fix perror and printf calls.
7664
7665 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7666
7667         passfd module, part 4.
7668         * modules/passfd-tests: New file.
7669         * tests/test-passfd.c: New file.
7670
7671 2011-03-13  Jim Meyering  <meyering@redhat.com>
7672
7673         Makefile: rely on GNU make; derive syntax-check rule names
7674         Rather than requiring that each sc_ rule be listed as a dependent
7675         of "check", use features of GNU make to derive the list.
7676         * Makefile (syntax-check-rules): Define.
7677         (check): Depend on the new variable, not the hard-coded list.
7678
7679 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
7680             Bruno Haible  <bruno@clisp.org>
7681
7682         passfd module, part 3.
7683         * lib/passfd.h (recvfd): Add a flags argument.
7684         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
7685         (recvfd): Add a flags argument.
7686         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
7687         exists.
7688         * modules/passfd (Depends-on): Add cloexec.
7689         Suggested by Eric Blake.
7690
7691 2011-03-13  Bruno Haible  <bruno@clisp.org>
7692
7693         passfd module, part 2, tweaks.
7694         * modules/passfd (Files): Reorder.
7695         (Depends-on): Remove errno.
7696         (Include): Remove <sys/socket.h>, <sys/un.h>.
7697         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
7698         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
7699         specification header. Include <sys/socket.h> always. Don't include
7700         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
7701         (sendfd): Clarify that it sets errno when it fails.
7702         (recvfd): Fix specification.
7703
7704 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7705
7706         passfd module, part 2.
7707         * modules/passfd: New file.
7708         * lib/passfd.h: New file.
7709         * lib/passfd.c: New file.
7710
7711 2011-03-12  Bruno Haible  <bruno@clisp.org>
7712
7713         wcswidth, mbswidth: Avoid integer overflow.
7714         * lib/wcswidth.c: Include <limits.h>.
7715         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
7716         * lib/mbswidth.c: Include <limits.h>.
7717         (mbsnwidth): Avoid 'int' overflow.
7718         Reported by Jim Meyering.
7719
7720 2011-03-12  Bruno Haible  <bruno@clisp.org>
7721
7722         futimens, utimensat: Avoid endless recursion on Solaris 10.
7723         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
7724         Solaris.
7725         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
7726         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
7727
7728 2011-03-11  Jim Meyering  <meyering@redhat.com>
7729
7730         maint.mk: relax a regexp to accommodate other formatting styles
7731         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
7732         between "ngettext" and the following "(".
7733
7734 2011-03-11  Pádraig Brady <P@draigBrady.com>
7735
7736         maint.mk: suppress a false positive warning
7737         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
7738         diagnostics are marked with ngettext.
7739
7740 2011-03-10  Eric Blake  <eblake@redhat.com>
7741
7742         wchar: add explicit dependencies, for Tru64
7743         * modules/mbmemcasecoll (Depends-on): Add wchar.
7744         * modules/mbtowc (Depends-on): Likewise.
7745         * modules/vasnprintf (Depends-on): Likewise.
7746         * modules/unistdio/u-printf-args (Depends-on): Likewise.
7747         * modules/wctomb (Depends-on): Likewise.
7748         Reported by Peter O'Gorman.
7749
7750 2011-03-08  Bruno Haible  <bruno@clisp.org>
7751
7752         passfd module, part 1, tweaks.
7753         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
7754         Improve indentation. Improve AC_MSG_CHECKING messages.
7755         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
7756         gl_SOCKET_FAMILIES.
7757
7758 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7759
7760         passfd module, part 1.
7761         * m4/afunix.m4: New file.
7762         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
7763         sockets.
7764
7765 2011-03-08  Bruno Haible  <bruno@clisp.org>
7766
7767         regex-quote: New API.
7768         * lib/regex-quote.h: Include <stdbool.h>.
7769         (struct regex_quote_spec): New type.
7770         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7771         New declarations.
7772         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7773         'const struct regex_quote_spec *' argument.
7774         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
7775         (pcre_special): New constant.
7776         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7777         New functions.
7778         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7779         'const struct regex_quote_spec *' argument.
7780         * modules/regex-quote (Depends-on): Add stdbool.
7781         * tests/test-regex-quote.c (check): Update for new API. Add test for
7782         anchored results.
7783         * NEWS: Mention the API change.
7784         Reported by Reuben Thomas and Eric Blake.
7785
7786 2011-03-06  Bruno Haible  <bruno@clisp.org>
7787
7788         regex-quote: Fix creation of POSIX extended regular expressions.
7789         * lib/regex-quote.c (ere_special): Add grouping and alternation
7790         operators.
7791
7792 2011-03-05  Bruno Haible  <bruno@clisp.org>
7793
7794         doc: Improve doc regarding autopoint vs. gnulib.
7795         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
7796         disable autopoint while running autoreconf.
7797         Suggested by Ralf Wildenhues.
7798
7799 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7800
7801         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
7802         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
7803
7804 2011-03-03  Bruce Korb  <bkorb@gnu.org>
7805
7806         parse-duration: remove xalloc.h dependency
7807         * lib/parse-duration.c (parse_period): handle NULL return from
7808         strdup instead of calling xstrdup().
7809         * modules/parse-duration: remove "xalloc" dependency
7810
7811 2011-03-03  Matthew Booth  <mbooth@redhat.com>
7812
7813         bootstrap: honor m4_base when running aclocal
7814         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
7815
7816 2011-03-02  Jim Meyering  <meyering@redhat.com>
7817
7818         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
7819         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
7820         on request from Matt Booth.
7821
7822 2011-03-01  Eric Blake  <eblake@redhat.com>
7823
7824         test-link: work on Hurd
7825         * tests/test-link.h (test_link): Hurd rejects linking directories
7826         with EISDIR instead of the POSIX-mandated EPERM.
7827
7828 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
7829
7830         stdio: simplify by moving files to printf-posix, sigpipe
7831         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
7832         since this symbol is needed only if printf is replaced.
7833         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
7834         Require gl_ASM_SYMBOL_PREFIX.
7835         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
7836         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
7837         (Depends-on): Add 'raise'.
7838         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
7839         * modules/stdio (Files): Remove lib/stdio-write.c,
7840         m4/asm-underscore.m4.
7841         (Depends-on): Remove 'raise'.
7842
7843         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
7844         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
7845         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
7846         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
7847
7848 2011-02-28  Bruno Haible  <bruno@clisp.org>
7849
7850         localcharset: Assume ANSI C behaviour of free().
7851         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
7852         calling free().
7853         Suggested by Simon Josefsson <simon@josefsson.org>.
7854
7855 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
7856             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
7857             Bruno Haible  <bruno@clisp.org>  (tiny change)
7858
7859         On Cygwin, use /proc file system instead of win32 API.
7860         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
7861         Win32 file names.
7862         (DllMain): Simplify by removing Cygwin specific code.
7863         (find_shared_library_fullname): Use Linux specific implementation also
7864         for Cygwin.
7865         (get_shared_library_fullname): Update accordingly.
7866         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
7867         Win32 file names.
7868         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
7869         Cygwin specific code.
7870
7871 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
7872             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
7873
7874         Fix OpenMP flag detection for various Fortran compilers.
7875         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
7876         OpenMP-conditional compilation construct, to force compile
7877         failure with missing OpenMP flag.
7878         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
7879
7880 2011-02-25  Eric Blake  <eblake@redhat.com>
7881
7882         strstr: expand test coverage
7883         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
7884         compilation.
7885         * tests/test-memmem.c (main): Duplicate tests.
7886         * tests/test-strcasestr.c (main): Likewise.
7887         * tests/test-c-strcasestr.c (main): Likewise.
7888
7889 2011-02-25  Jim Meyering  <meyering@redhat.com>
7890
7891         maint.mk: detect missing-NL-at-EOF, too
7892         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
7893         it also detects when a file lacks a newline at EOF.
7894         (require_exactly_one_NL_at_EOF_): Renamed from
7895         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
7896         since people may well have .x-sc_... file names tied to the
7897         existing name.  Suggested by Eric Blake.
7898
7899 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
7900
7901         dirname: move m4/dos.m4 functionality into lib/dosname.h
7902
7903         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
7904         extracts symbols from it, puts them into config.h; but it's much
7905         easier to use the symbols directly.  filename.h already does this,
7906         but it disagrees with dos.m4 in some respects.  This patch
7907         introduces a different include file dosname.h that packages up
7908         dos.m4, and then later we can work on merging filename.h and
7909         dosname.h.  Applications that need only the easy-to-configure
7910         symbols should consider including dosname.h rather than dirname.h.
7911         * NEWS: Mention incompatible changes.
7912         * m4/dos.m4: Remove.
7913         * lib/dosname.h, modules/dosname: New files.
7914         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
7915         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
7916         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
7917         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
7918         Include dosname.h, not dirname.h.
7919         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
7920         Include dosname.h, for definitions of symbols like ISSLASH
7921         that used to be in config.h.
7922         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
7923         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7924         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7925         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7926         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
7927         * modules/rmdir (Files): Likewise.
7928         * modules/stat (Files): Likewise.
7929         * modules/unlink (Files): Likewise.
7930         * modules/dirname-lgpl (Depends-on): Add dosname.
7931         * modules/lstat (Depends-on): Likewise.
7932         * modules/openat (Depends-on): Likewise.
7933         * modules/rmdir (Depends-on): Likewise.
7934         * modules/savewd (Depends-on): Likewise.
7935         * modules/stat (Depends-on): Likewise.
7936         * modules/unlink (Depends-on): Likewise.
7937         * modules/openat (Depends-on): Remove dirname-lgpl.
7938         * modules/savewd (Depends-on): Likewise.
7939         * tests/test-dirname.c: Do not use removed symbols like
7940         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
7941         the remaining symbols, e.g., ISSLASH ('\\').
7942
7943 2011-02-25  Eric Blake  <eblake@redhat.com>
7944
7945         strstr: revert patches that introduced bug and pessimization
7946         * lib/str-two-way.h: Add another reference.
7947         (two_way_short_needle, two_way_long_needle): Revert changes from
7948         2011-02-24; they pessimize search speed.
7949         (critical_factorization): Partially revert changes from
7950         2010-06-22; they violate the requirement that the left half of the
7951         needle be smaller than the period of the needle.
7952
7953 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7954
7955         filenamecat: remove unnecessary dependency on dirname-lgpl
7956         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
7957         is no direct dependency, just an indirect one via filenamecat-lgpl.
7958
7959         remove: remove unnecessary use of m4/dos.m4
7960         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
7961         * modules/remove (FILES): Remove m4/dos.m4.
7962
7963         * lib/openat-proc.c: Don't include dirname.h; not needed.
7964
7965         backupfile: remove unnecessary use of m4/dos.m4
7966         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
7967         of its symbols are used by the backupfile code.  backupfile.c does
7968         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
7969         for the rare case of programs that want all their backup file
7970         names to live within 8+3 limits, and dos.m4 doesn't address that.
7971         * modules/backupfile (Files): Remove m4/dos.m4.
7972
7973 2011-02-24  Jim Meyering  <meyering@redhat.com>
7974
7975         strstr: fix a bug whereby strstr would mistakenly return NULL
7976         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
7977         in period calculation.
7978         (two_way_long_needle): Likewise.
7979         The original problem was reported by Mike Stump in
7980         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
7981         Ralf Wildenhues provided the short needle and haystack.
7982         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
7983         Add a more involved test to trigger the bug in two_way_long_needle.
7984
7985 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7986
7987         gnulib-tool: remove use of bold display in help screen
7988         * gnulib-tool (func_usage): Do not use bold display anymore in the
7989         help screen.  That was just meant to be a temporary emphasis for a
7990         backward-incompatible change.
7991
7992 2011-02-23  Bruno Haible  <bruno@clisp.org>
7993
7994         Fix misindentation of preprocessor directives.
7995         * lib/argp-namefrob.h: Reindent preprocessor directives.
7996         * lib/getopt_int.h (struct _getopt_data): Likewise.
7997         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
7998         * lib/vasnprintf.c (decode_long_double): Likewise.
7999         * tests/test-argmatch.c: Insert blank lines, for clarity.
8000         * tests/test-exclude.c: Likewise.
8001
8002 2011-02-22  Bruno Haible  <bruno@clisp.org>
8003
8004         ioctl: Fix for MacOS X in 64-bit mode.
8005         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
8006         value.
8007         Suggested by Eric Blake.
8008         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
8009
8010 2011-02-22  Jim Meyering  <meyering@redhat.com>
8011
8012         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
8013         * Makefile (sc_cpp_indent_check): Don't limit the check to files
8014         in lib/.
8015
8016 2011-02-22  Eric Blake  <eblake@redhat.com>
8017
8018         maint: avoid any CDPATH issue
8019         * Makefile (sc_cpp_indent_check): Anchor cd argument.
8020
8021         maint: adjust cpp indentation for my modules, as well
8022         * Makefile (sc_cpp_indent_check): Add my name.
8023         * lib/fbufmode.c: Filter through cppi.
8024         * lib/fpurge.c: Likewise.
8025         * lib/freadable.c: Likewise.
8026         * lib/freading.c: Likewise.
8027         * lib/fwritable.c: Likewise.
8028         * lib/fwriting.c: Likewise.
8029         * lib/sigaction.c: Likewise.
8030
8031 2011-02-22  Jim Meyering  <meyering@redhat.com>
8032
8033         maint: adjust cpp indentation to reflect nesting depth
8034         I.e., in a block of code that begins with an unnested "#if",
8035         put one space between the "#" in column 1 and following token.
8036         For example,
8037         -#include <sys/vfs.h>
8038         +# include <sys/vfs.h>
8039         Do this only in .c files that are part of a module I maintain.
8040         * lib/linkat.c: Filter through cppi.
8041         * lib/nanosleep.c: Likewise.
8042         * lib/openat.c: Likewise.
8043         * lib/openat-die.c: Likewise.
8044         * lib/dup3.c: Likewise.
8045         * lib/fchownat.c: Likewise.
8046         * lib/flock.c: Likewise.
8047         * lib/fsync.c: Likewise.
8048         * lib/fts.c: Likewise.
8049         * lib/getpass.c: Likewise.
8050         * lib/gettimeofday.c: Likewise.
8051         * lib/userspec.c: Likewise.
8052         * Makefile (sc_cpp_indent_check): New rule, to check this.
8053
8054 2011-02-22  Bruno Haible  <bruno@clisp.org>
8055
8056         New module 'wctomb'.
8057         * lib/stdlib.in.h (wctomb): New declaration.
8058         * lib/wctomb.c: New file.
8059         * lib/wctomb-impl.h: New file.
8060         * m4/wctomb.m4: New file.
8061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
8062         REPLACE_WCTOMB.
8063         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
8064         REPLACE_WCTOMB.
8065         * modules/wctomb: New file.
8066         * tests/test-stdlib-c++.cc: Test signature of wctomb.
8067         * doc/posix-functions/wctomb.texi: Mention the new module.
8068         * modules/wctob (Depends-on): Add wctomb.
8069
8070 2011-02-22  Bruno Haible  <bruno@clisp.org>
8071
8072         New module 'mbtowc'.
8073         * lib/stdlib.in.h (mbtowc): New declaration.
8074         * lib/mbtowc.c: New file.
8075         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
8076         * m4/mbtowc.m4: New file.
8077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
8078         REPLACE_MBTOWC.
8079         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
8080         REPLACE_MBTOWC.
8081         * modules/mbtowc: New file.
8082         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
8083         * doc/posix-functions/mbtowc.texi: Mention the new module.
8084         * modules/btowc (Depends-on): Add mbtowc.
8085
8086 2011-02-22  Bruno Haible  <bruno@clisp.org>
8087
8088         wcrtomb: Add more tests for native Windows platforms.
8089         * tests/test-wcrtomb-w32-1.sh: New file.
8090         * tests/test-wcrtomb-w32-2.sh: New file.
8091         * tests/test-wcrtomb-w32-3.sh: New file.
8092         * tests/test-wcrtomb-w32-4.sh: New file.
8093         * tests/test-wcrtomb-w32-5.sh: New file.
8094         * tests/test-wcrtomb-w32.c: New file.
8095         * modules/wcrtomb-tests (Files): Add them.
8096         (Makefile.am): Arrange to run these tests.
8097         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
8098         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
8099
8100 2011-02-20  Bruno Haible  <bruno@clisp.org>
8101
8102         wcrtomb: Enhance test.
8103         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
8104
8105 2011-02-20  Bruno Haible  <bruno@clisp.org>
8106
8107         mbrtowc: Tiny optimization.
8108         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
8109
8110 2011-02-20  Jim Meyering  <meyering@redhat.com>
8111
8112         test-exclude.c: remove unmatched #endif
8113         * tests/test-exclude.c: Remove stray #endif, left over from
8114         the change of a week ago.
8115
8116 2011-02-19  Jim Meyering  <meyering@redhat.com>
8117
8118         git-version-gen: skip "-dirty" check when appropriate
8119         * build-aux/git-version-gen: Don't run any git commands when the
8120         version string comes from .tarball-version.  Prior to this, we
8121         would run git update-index --refresh even from a just-unpacked
8122         tarball directory, and that could affect a .git/ directory in a
8123         parent of the build directory.  Reported by Mike Frysinger.
8124
8125 2011-02-19  Bruno Haible  <bruno@clisp.org>
8126
8127         unictype/property-byname: Reduce the size of the 'data' segment.
8128         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
8129
8130 2011-02-19  Bruno Haible  <bruno@clisp.org>
8131
8132         unictype/scripts: Reduce the size of the 'data' segment.
8133         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
8134         '%pic'.
8135         * lib/unictype/scripts_byname.gperf: Regenerated.
8136
8137 2011-02-19  Bruno Haible  <bruno@clisp.org>
8138
8139         stdint: Update documentation.
8140         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
8141
8142 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
8143
8144         stdint: omit redundant check for wchar.h
8145         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
8146         always tests whether wchar.h exists, so remove the now-redundant test.
8147
8148 2011-02-18  Bruno Haible  <bruno@clisp.org>
8149
8150         stdint: Cut dependency to module 'wchar'.
8151         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
8152         include the necessary prerequisites.
8153         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
8154         * modules/stdint (Depends-on): Remove wchar.
8155         (Makefile.am): Substitute HAVE_WCHAR_H.
8156         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
8157
8158 2011-02-18  Eric Blake  <eblake@redhat.com>
8159
8160         longlong: skip, rather than fail, on cross-compilation
8161         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
8162         when cross-compiling; regression from 2011-02-16.
8163
8164 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8165
8166         * NEWS: Mention 2011-02-08 change to stdlib.
8167
8168 2011-02-17  Bruno Haible  <bruno@clisp.org>
8169
8170         getloadavg: Add comments about platforms.
8171         * m4/getloadavg.m4: Add comment.
8172         * lib/getloadavg.c: Likewise.
8173
8174 2011-02-17  Bruno Haible  <bruno@clisp.org>
8175
8176         getloadavg: Fix link error on Solaris 2.6.
8177         * modules/getloadavg (Link): New section.
8178         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
8179         linking test-getloadavg.
8180         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
8181         getloadavg.
8182
8183 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8184
8185         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
8186         It was 'int', but this doesn't match the IRIX 6.5 manual.
8187         Suggested by Bruno Haible in
8188         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
8189
8190 2011-02-17  Bruno Haible  <bruno@clisp.org>
8191
8192         havelib: Fix comments.
8193         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
8194         change.
8195
8196 2011-02-17  Bruno Haible  <bruno@clisp.org>
8197
8198         havelib: Update config.rpath.
8199         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
8200
8201 2011-02-17  Bruno Haible  <bruno@clisp.org>
8202
8203         getloadavg test: Add some plausibility checks.
8204         * tests/test-getloadavg.c (check_avg): Print a warning when the value
8205         is improbable.
8206
8207 2011-02-16  Eric Blake  <eblake@redhat.com>
8208
8209         maintainer-makefile: make syntax-check a no-op from tarballs
8210         * top/maint.mk (no-vc-detected): New rule.
8211         (local-checks-available): Use it to avoid hanging if someone tries
8212         'make syntax-check' from a tarball.  Also append to any non-syntax
8213         checks already defined in cfg.mk.
8214
8215 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8216
8217         longlong: tune, particularly for common case of c99
8218
8219         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
8220         or running anything if c99, or if unsigned long long int does not
8221         work.  In either case, we know the answer without further tests.
8222         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
8223         it at most once, and use its results for both long long int and
8224         unsigned long long int.  This is more likely to be efficient in
8225         the common case where the program wants to check for both long
8226         long int and unsigned long long int.
8227         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
8228         since the answer is already known.
8229
8230 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8231
8232         getloadavg: set errno
8233         * lib/getloadavg.c: Set errno when returning -1.  If no other
8234         error number looks appropriate, set it to ENOSYS if the getloadavg
8235         looks like it can't possibly ever work, ENOTSUP otherwise.
8236         Suggested by Bruno Haible in
8237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
8238
8239         getloadavg: trim unused parts and speed up 'configure'
8240         * NEWS: Document this.
8241         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
8242         always compiled if getloadavg is absent.
8243         Move test code to ...
8244         * tests/test-getloadavg.c: New file, containing previous
8245         contents of test from lib/getloadavg.c.  It also contains
8246         suggestions by Bruno Haible in
8247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
8248         * modules/getloadavg-tests: New file.
8249         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
8250         Do tests in the same order as they're needed for getloadavg.c.
8251         Omit setgid-related tests that generate symbols KMEM_GROUP,
8252         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8253         Do only the tests that are needed to see whether the system has
8254         getloadavg, moving the other tests into ...
8255         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8256         NLIST_NAME_UNION; nobody should be using it.  Do not define
8257         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8258         relevant, as the user of this module shouldn't care how getloadavg
8259         is implemented.
8260
8261         getloadavg: omit unused var
8262         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8263
8264 2011-02-15  Jim Meyering  <meyering@redhat.com>
8265
8266         doc: update users.txt
8267         * users.txt: Update iwhd's URL.
8268
8269 2011-02-13  Bruno Haible  <bruno@clisp.org>
8270
8271         Consistent macro naming for macros that use GCC __attribute__.
8272         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8273         _ATTRIBUTE_NONNULL_.
8274         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8275         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8276         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8277         ATTRIBUTE_DEPRECATED.
8278         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8279         ATTRIBUTE_NORETURN.
8280         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8281         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8282         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8283         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8284         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8285         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8286         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8287         ATTRIBUTE_SENTINEL.
8288         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8289         ATTRIBUTE_RETURN_CHECK.
8290         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8291         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8292         ATTRIBUTE_NORETURN.
8293         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8294         Reported by Paul Eggert.
8295
8296 2011-02-13  Bruno Haible  <bruno@clisp.org>
8297
8298         Don't interfere with a program's definition of __attribute__.
8299         * lib/argp.h (__attribute__): Remove definition.
8300         (_GL_ATTRIBUTE_FORMAT): New macro.
8301         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8302         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8303         (_GL_ATTRIBUTE_FORMAT): New macro.
8304         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8305         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8306         GCC 3 or newer.
8307         * lib/error.h (__attribute__): Remove definition.
8308         (_GL_ATTRIBUTE_FORMAT): New macro.
8309         (error, error_at_line): Use it.
8310         * lib/hash.h (__attribute__): Remove definition.
8311         (ATTRIBUTE_WUR): Update definition. Define always.
8312         * lib/openat.h (__attribute__): Remove definition.
8313         (ATTRIBUTE_NORETURN): Update definition. Define always.
8314         * lib/sigpipe-die.h (__attribute__): Remove definition.
8315         (ATTRIBUTE_NORETURN): Update definition. Define always.
8316         * lib/vasnprintf.h (__attribute__): Remove definition.
8317         (_GL_ATTRIBUTE_FORMAT): New macro.
8318         (asnprintf, vasnprintf): Use it.
8319         * lib/xalloc.h (__attribute__): Remove definition.
8320         (ATTRIBUTE_NORETURN): Update definition. Define always.
8321         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8322         * lib/xmemdup0.h (__attribute__): Remove definition.
8323         (ATTRIBUTE_NORETURN): Update definition. Define always.
8324         * lib/xprintf.h (__attribute__): Remove definition.
8325         (_GL_ATTRIBUTE_FORMAT): New macro.
8326         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8327         * lib/xstrtol.h (__attribute__): Remove definition.
8328         (ATTRIBUTE_NORETURN): Update definition. Define always.
8329         * lib/xvasprintf.h (__attribute__): Remove definition.
8330         (_GL_ATTRIBUTE_FORMAT): New macro.
8331         (xasprintf, xvasprintf): Use it.
8332         * tests/test-argmatch.c (__attribute__): Remove definition.
8333         (ATTRIBUTE_NORETURN): Update definition. Define always.
8334         * tests/test-exclude.c (__attribute__): Remove definition.
8335         (ATTRIBUTE_NORETURN): Update definition. Define always.
8336         Reported by Paul Eggert.
8337
8338 2011-02-13  Bruno Haible  <bruno@clisp.org>
8339
8340         mbrtowc: Add more tests for native Windows platforms.
8341         * tests/test-mbrtowc-w32-1.sh: New file.
8342         * tests/test-mbrtowc-w32-2.sh: New file.
8343         * tests/test-mbrtowc-w32-3.sh: New file.
8344         * tests/test-mbrtowc-w32-4.sh: New file.
8345         * tests/test-mbrtowc-w32-5.sh: New file.
8346         * tests/test-mbrtowc-w32.c: New file.
8347         * modules/mbrtowc-tests (Files): Add them.
8348         (Makefile.am): Arrange to run these tests.
8349         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8350         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8351
8352 2011-02-13  Bruno Haible  <bruno@clisp.org>
8353
8354         mbrtowc: Work around native Windows bug.
8355         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8356         guess when no suitable locale for testing was found.
8357         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8358
8359 2011-02-13  Bruno Haible  <bruno@clisp.org>
8360
8361         mbsinit: Work around mingw bug.
8362         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8363         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8364         Windows.
8365         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8366
8367 2011-02-13  Bruno Haible  <bruno@clisp.org>
8368
8369         mbsinit: Don't crash for a NULL argument.
8370         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8371         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8372
8373 2011-02-13  Bruno Haible  <bruno@clisp.org>
8374
8375         Don't interfere with a program's definition of __attribute__.
8376         * lib/stdio.in.h (__attribute__): Remove definition.
8377         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8378         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8379         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8380         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8381         * lib/string.in.h (__attribute__): Remove definition.
8382         Reported by Paul Eggert.
8383
8384 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8385
8386         stdlib: don't get in the way of non-GCC __attribute__
8387         See thread starting at
8388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8389         Revert previous stdlib change, installing the following instead:
8390         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8391         to get in the way of a non-GCC compiler that supports __attribute__.
8392         (_GL_ATTRIBUTE_RETURN): New macro.
8393         (_Exit): Use it instead of __attribute__.
8394
8395 2011-02-12  Bruno Haible  <bruno@clisp.org>
8396
8397         quotearg test: Avoid test failure on mingw.
8398         * tests/test-quotearg.sh: Convert the locale identifier from native
8399         Windows syntax to Unix syntax.
8400
8401 2011-02-12  Bruno Haible  <bruno@clisp.org>
8402
8403         setlocale: Prefer gnulib's override over libintl's override.
8404         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8405         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8406         GNULIB_defined_setlocale is set.
8407
8408 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8409
8410         stdlib: support non-GCC __attribute__
8411
8412         Fix a serious and tricky problem encountered when attempting to
8413         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8414         5.5, but it crashed due to memory corruption on Solaris 10 with
8415         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8416         bits that are otherwise zero.  This tagging is optional inside
8417         Emacs but is preferred and is used when __attribute__ ((__aligned
8418         (8))) works, as it does with both recent-enough GCC and with Sun C
8419         5.11.  However, Sun C 5.11 is not GCC and does not #define
8420         __GNUC__ and __GNUC_MINOR__.
8421
8422         When I added the getloadavg module to Emacs, it brought in
8423         stdlib.in.h, which contained this fragment:
8424
8425            #ifndef __attribute__
8426            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8427            #  define __attribute__(Spec)   /* empty */
8428            # endif
8429            #endif
8430
8431         When files that include <stdlib.h> were compiled with Sun C 5.11,
8432         the above code disabled __attribute__ ((__aligned (8))), which
8433         caused variables to not be properly aligned, which eventually led
8434         to the pointer corruption mentioned above.  (This was a bit hard
8435         to diagnose, unfortunately.)
8436
8437         Several "#define __attribute__(X) /* empty */" code snippets need
8438         to be eradicated from Gnulib to work with non-GCC compilers that
8439         support __attribute__.  The Autoconf way to do this is to test for
8440         each kind of attribute that we want support for, and selectively
8441         enable that in source code.
8442
8443         Fix this problem just for stdlib.h, by adding a test for the
8444         __noreturn__ attribute, and change stdlib.in.h to use that test
8445         when needed.  This technique can be easily generalized to the
8446         other *.in.h files and attributes, and a similar technique can be
8447         used for *.h and *.c files.  This patch is enough to solve the
8448         problem for Emacs + getloadavg, and I thought I'd publish it for
8449         feedback before undertaking further, similar fixes in other
8450         modules.
8451
8452         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8453         because it's not needed for stdlib.h.  It merely substitutes the
8454         value directly into stdlib.h.  We may well need to #define it, or
8455         similar symbols, for other modules, but it's nice to also have an
8456         option to not #define it for applications like Emacs that do not
8457         need it.
8458
8459         * lib/stdlib.in.h (__attribute__): Do not #define.
8460         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8461         be defined only if the _Exit module is also used.
8462         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8464         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8465         platforms.
8466         * modules/_Exit (Files): Add m4/attribute.m4.
8467         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8468         * m4/attribute.m4: New file.
8469
8470 2011-02-12  Bruno Haible  <bruno@clisp.org>
8471
8472         wcsrtombs: Work around bug on native Windows.
8473         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
8474         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
8475         instead of len.
8476         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8477
8478 2011-02-12  Bruno Haible  <bruno@clisp.org>
8479
8480         mbsrtowcs: Work around bug on native Windows.
8481         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
8482         against mingw bug.
8483         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
8484
8485 2011-02-12  Bruno Haible  <bruno@clisp.org>
8486
8487         Avoid setlocale bugs in tests.
8488         * modules/btowc (Dependencies): Add setlocale.
8489         * modules/c-strcase (Dependencies): Likewise.
8490         * modules/mbmemcasecmp (Dependencies): Likewise.
8491         * modules/mbmemcasecoll (Dependencies): Likewise.
8492         * modules/mbrtowc (Dependencies): Likewise.
8493         * modules/mbscasecmp (Dependencies): Likewise.
8494         * modules/mbscasestr (Dependencies): Likewise.
8495         * modules/mbschr (Dependencies): Likewise.
8496         * modules/mbscspn (Dependencies): Likewise.
8497         * modules/mbsinit (Dependencies): Likewise.
8498         * modules/mbsncasecmp (Dependencies): Likewise.
8499         * modules/mbsnrtowcs (Dependencies): Likewise.
8500         * modules/mbspbrk (Dependencies): Likewise.
8501         * modules/mbspcasecmp (Dependencies): Likewise.
8502         * modules/mbsrchr (Dependencies): Likewise.
8503         * modules/mbsrtowcs (Dependencies): Likewise.
8504         * modules/mbsspn (Dependencies): Likewise.
8505         * modules/mbsstr (Dependencies): Likewise.
8506         * modules/nl_langinfo (Dependencies): Likewise.
8507         * modules/quotearg (Dependencies): Likewise.
8508         * modules/unicase/locale-language (Dependencies): Likewise.
8509         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
8510         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
8511         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
8512         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
8513         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
8514         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
8515         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
8516         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
8517         * modules/vasnprintf-posix (Dependencies): Likewise.
8518         * modules/wcrtomb (Dependencies): Likewise.
8519         * modules/wcsnrtombs (Dependencies): Likewise.
8520         * modules/wcsrtombs (Dependencies): Likewise.
8521
8522 2011-02-12  Bruno Haible  <bruno@clisp.org>
8523
8524         setlocale: Workaround native Windows bug.
8525         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
8526         succeeds but sets LC_CTYPE to "C", report a failure.
8527         * tests/test-setlocale2.sh: New file.
8528         * tests/test-setlocale2.c: New file.
8529         * modules/setlocale-tests (Files): Add the new files.
8530         (Makefile.am): Enable test-setlocale2.sh test.
8531         * doc/posix-functions/setlocale.texi: Mention workaround.
8532
8533 2011-02-11  Bruno Haible  <bruno@clisp.org>
8534
8535         Tests for module 'setlocale'.
8536         * modules/setlocale-tests: New file.
8537         * tests/test-setlocale1.sh: New file.
8538         * tests/test-setlocale1.c: New file.
8539
8540         New module 'setlocale'.
8541         * lib/locale.in.h (setlocale): New declaration.
8542         * lib/setlocale.c: New file, based on
8543         gettext/gettext-runtime/intl/setlocale.c.
8544         * m4/setlocale.m4: New file.
8545         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
8546         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
8547         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
8548         REPLACE_SETLOCALE.
8549         * modules/setlocale: New file.
8550         * tests/test-locale-c++.cc: Test the declaration of setlocale.
8551         * doc/posix-functions/setlocale.texi: Mention the new module.
8552
8553 2011-02-11  Bruno Haible  <bruno@clisp.org>
8554
8555         Prepare for locale dependent tests on mingw.
8556         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
8557         because it has the wrong locale encoding.
8558         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
8559         French_France.1252 instead of "fr".
8560         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
8561         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8562         because it has the wrong locale encoding.
8563         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8564         native Windows, try Turkish_Turkey.65001.
8565         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8566         Chinese_China.54936.
8567
8568         Prepare for locale dependent tests on mingw.
8569         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8570         differently.
8571         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8572         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8573         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8574         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8575
8576 2011-02-11  Eric Blake  <eblake@redhat.com>
8577
8578         strptime: avoid compiler warnings
8579         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8580         compiler warnings about dead code.
8581         Reported by Daniel P. Berrange.
8582
8583 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8584
8585         doc: update users.txt
8586         * users.txt: Add rcs.
8587
8588 2011-02-10  John W. Eaton  <jwe@gnu.org>
8589
8590         doc: update users.txt
8591         * users.txt: Add octave.
8592
8593 2011-02-10  Jim Meyering  <meyering@redhat.com>
8594
8595         doc: update users.txt
8596         * users.txt: Add iwhd.
8597
8598 2011-02-09  Bruno Haible  <bruno@clisp.org>
8599
8600         gnulib-tool: Make copyright notice adjustment more robust.
8601         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8602         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8603         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8604         License".
8605         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8606
8607 2011-02-06  Bruno Haible  <bruno@clisp.org>
8608
8609         New module 'towctrans'.
8610         * modules/towctrans: New file.
8611         * lib/wctype.in.h (towctrans): New declaration.
8612         * lib/towctrans.c: New file.
8613         * lib/towctrans-impl.h: New file.
8614         * m4/towctrans.m4: New file.
8615         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8616         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8617         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8618         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8619         * doc/posix-functions/towctrans.texi: Mention the new module.
8620
8621 2011-02-06  Bruno Haible  <bruno@clisp.org>
8622
8623         New module 'wctrans'.
8624         * modules/wctrans: New file.
8625         * lib/wctype.in.h (wctrans): New declaration.
8626         * lib/wctrans.c: New file.
8627         * lib/wctrans-impl.h: New file.
8628         * m4/wctrans.m4: New file.
8629         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8630         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8631         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8632         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8633         * doc/posix-functions/wctrans.texi: Mention the new module.
8634
8635 2011-02-06  Bruno Haible  <bruno@clisp.org>
8636
8637         New module 'iswctype'.
8638         * modules/iswctype: New file.
8639         * lib/wctype.in.h (iswctype): New declaration.
8640         * lib/iswctype.c: New file.
8641         * lib/iswctype-impl.h: New file.
8642         * m4/iswctype.m4: New file.
8643         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
8644         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
8645         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
8646         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
8647         * doc/posix-functions/iswctype.texi: Mention the new module and the
8648         HP-UX 11.00 problem.
8649
8650 2011-02-06  Bruno Haible  <bruno@clisp.org>
8651
8652         New module 'wctype'.
8653         * modules/wctype: Change to represent the wctype() substitute.
8654         * lib/wctype.in.h (wctype): New declaration.
8655         * lib/wctype.c: New file.
8656         * lib/wctype-impl.h: New file.
8657         * m4/wctype.m4: New file.
8658         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
8659         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
8660         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
8661         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
8662         * doc/posix-functions/wctype.texi: Mention the new module and the
8663         HP-UX 11.00 problem.
8664
8665 2011-02-06  Bruno Haible  <bruno@clisp.org>
8666
8667         wctype-h: Ensure wctype_t and wctrans_t are defined.
8668         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
8669         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8670         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8671         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
8672         HAVE_WCTRANS_T.
8673         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
8674
8675 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8676
8677         flock: fix license typo
8678
8679         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
8680         omitted.
8681
8682 2011-02-08  Bruno Haible  <bruno@clisp.org>
8683
8684         Split large sed scripts, for HP-UX sed.
8685         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
8686         to avoid HP-UX limit of 99 commands, in the near future.
8687         * modules/stdlib (Makefile.am): Likewise.
8688         * modules/unistd (Makefile.am): Likewise.
8689         * modules/wchar (Makefile.am): Likewise.
8690         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8691         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
8692         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
8693
8694 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8695             Bruno Haible  <bruno@clisp.org>
8696
8697         stdlib: improve random_r modularization
8698         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
8699         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
8700         you also need the random_r module to get this material right.
8701         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
8702         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
8703         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
8704
8705 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8706
8707         stdlib: don't depend on stdint
8708         * lib/stdlib.in.h: Don't include <stdint.h> merely because
8709         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
8710         be independent of whether stdint.h is needed.
8711         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
8712         here, instead of ...
8713         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
8714         struct random_data should be using the random_r module, not just
8715         the stdlib module (which wouldn't make sense: what package needs
8716         just struct random_data without also needing random_r?).
8717         * modules/stdlib (Depends-on): Remove stdint.
8718
8719         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
8720         See the thread rooted at
8721         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
8722         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
8723         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
8724         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
8725         __VMS)); previously it was always included (via fcntl--.h).
8726         (getloadavg): Do not use c_strtod.  Instead, approximate it by
8727         hand; this is good enough for load averages.  Also, do not use
8728         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
8729         flags directly if available and don't bother otherwise.  (Packages
8730         that need the extra reliability should use the modules that define
8731         these flags on older platforms that lack them.)
8732         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
8733         fcntl-safer.
8734
8735 2011-02-08  Jim Meyering  <meyering@redhat.com>
8736
8737         di-set.h, ino-map.h: add multiple-inclusion guard
8738         Technically, the guard is required only for ino-map.h, due to its
8739         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
8740         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
8741         * lib/ino-map.h: Likewise.
8742
8743 2011-02-06  Bruno Haible  <bruno@clisp.org>
8744
8745         iswblank: Ensure declaration on glibc systems.
8746         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
8747         * modules/iswblank (Dependencies): Add 'extensions'.
8748         * doc/posix-functions/iswblank.texi: Document the glibc problem.
8749
8750 2011-02-06  Bruno Haible  <bruno@clisp.org>
8751
8752         New module 'iswblank'.
8753         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
8754         * modules/iswblank: New file.
8755         * modules/wctype-h (Files): Remove lib/iswblank.c.
8756         (Makefile.am): Substitute GNULIB_ISWBLANK.
8757         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
8758         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
8759         (gl_WCTYPE_H_DEFAULTS): New macro.
8760         (gl_WCTYPE_H): Require it. Remove iswblank related code.
8761         * modules/iswblank-tests: New file.
8762         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
8763         * tests/test-wctype-h.c (main): Remove iswblank tests.
8764         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
8765         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
8766         of 'wctype-h'.
8767         * NEWS: Mention the change.
8768         * modules/mbchar (Depends-on): Add iswblank.
8769
8770 2011-02-08  Bruno Haible  <bruno@clisp.org>
8771
8772         di-set tests: Refactor.
8773         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
8774         unnecessary includes.
8775         (ASSERT): Remove macro.
8776         (main): Make C90 compliant by avoiding variable declaration after
8777         statement.
8778         * modules/di-set-tests (Files): Add tests/macros.h.
8779
8780 2011-02-08  Bruno Haible  <bruno@clisp.org>
8781
8782         ino-map tests: Refactor.
8783         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
8784         unnecessary includes.
8785         (ASSERT): Remove macro.
8786         (main): Make C90 compliant by avoiding variable declaration after
8787         statement.
8788         * modules/ino-map-tests (Files): Add tests/macros.h.
8789
8790 2011-02-08  Jim Meyering  <meyering@redhat.com>
8791
8792         di-set: add "const" to a cast
8793         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
8794         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
8795
8796 2011-02-06  Bruno Haible  <bruno@clisp.org>
8797
8798         Rename module 'wctype' to 'wctype-h'.
8799         * modules/wctype-h: Renamed from modules/wctype.
8800         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
8801         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
8802         (Files, Depends-on, Makefile.am): Update.
8803         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
8804         (Files, Makefile.am): Update.
8805         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
8806         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
8807         * doc/posix-headers/wctype.texi: Update.
8808         * doc/posix-functions/iswalnum.texi: Update.
8809         * doc/posix-functions/iswalpha.texi: Update.
8810         * doc/posix-functions/iswblank.texi: Update.
8811         * doc/posix-functions/iswcntrl.texi: Update.
8812         * doc/posix-functions/iswdigit.texi: Update.
8813         * doc/posix-functions/iswgraph.texi: Update.
8814         * doc/posix-functions/iswlower.texi: Update.
8815         * doc/posix-functions/iswprint.texi: Update.
8816         * doc/posix-functions/iswpunct.texi: Update.
8817         * doc/posix-functions/iswspace.texi: Update.
8818         * doc/posix-functions/iswupper.texi: Update.
8819         * doc/posix-functions/iswxdigit.texi: Update.
8820         * doc/posix-functions/towlower.texi: Update.
8821         * doc/posix-functions/towupper.texi: Update.
8822         * NEWS: Mention the change.
8823         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
8824         * modules/mbchar (Dependencies): Likewise.
8825         * modules/mbswidth (Dependencies): Likewise.
8826         * modules/quotearg (Dependencies): Likewise.
8827         * modules/regex (Dependencies): Likewise.
8828         * modules/wcscasecmp (Dependencies): Likewise.
8829         * modules/wcsncasecmp (Dependencies): Likewise.
8830         * modules/wcwidth (Dependencies): Likewise.
8831
8832 2011-02-06  Bruno Haible  <bruno@clisp.org>
8833
8834         New module 'wcswidth'.
8835         * modules/wcswidth: New file.
8836         * lib/wchar.in.h (wcswidth): New declaration.
8837         * lib/wcswidth.c: New file.
8838         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
8839         * m4/wcswidth.m4: New file.
8840         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
8841         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
8842         REPLACE_WCSWIDTH.
8843         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
8844         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
8845         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
8846         * doc/posix-functions/wcswidth.texi: Mention the new module.
8847
8848 2011-02-06  Bruno Haible  <bruno@clisp.org>
8849
8850         New module 'wcstok'.
8851         * modules/wcstok: New file.
8852         * lib/wchar.in.h (wcstok): New declaration.
8853         * lib/wcstok.c: New file.
8854         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
8855         * m4/wcstok.m4: New file.
8856         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
8857         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
8858         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
8859         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
8860         * doc/posix-functions/wcstok.texi: Mention the new module.
8861
8862 2011-02-06  Bruno Haible  <bruno@clisp.org>
8863
8864         New module 'wcsstr'.
8865         * modules/wcsstr: New file.
8866         * lib/wchar.in.h (wcsstr): New declaration.
8867         * lib/wcsstr.c: New file.
8868         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
8869         * m4/wcsstr.m4: New file.
8870         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
8871         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
8872         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
8873         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
8874         * doc/posix-functions/wcsstr.texi: Mention the new module.
8875
8876 2011-02-06  Bruno Haible  <bruno@clisp.org>
8877
8878         New module 'wcspbrk'.
8879         * modules/wcspbrk: New file.
8880         * lib/wchar.in.h (wcspbrk): New declaration.
8881         * lib/wcspbrk.c: New file.
8882         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
8883         * m4/wcspbrk.m4: New file.
8884         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
8885         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
8886         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
8887         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
8888         * doc/posix-functions/wcspbrk.texi: Mention the new module.
8889
8890 2011-02-06  Bruno Haible  <bruno@clisp.org>
8891
8892         New module 'wcsspn'.
8893         * modules/wcsspn: New file.
8894         * lib/wchar.in.h (wcsspn): New declaration.
8895         * lib/wcsspn.c: New file.
8896         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
8897         * m4/wcsspn.m4: New file.
8898         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
8899         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
8900         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
8901         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
8902         * doc/posix-functions/wcsspn.texi: Mention the new module.
8903
8904 2011-02-06  Bruno Haible  <bruno@clisp.org>
8905
8906         New module 'wcscspn'.
8907         * modules/wcscspn: New file.
8908         * lib/wchar.in.h (wcscspn): New declaration.
8909         * lib/wcscspn.c: New file.
8910         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
8911         * m4/wcscspn.m4: New file.
8912         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
8913         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
8914         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
8915         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
8916         * doc/posix-functions/wcscspn.texi: Mention the new module.
8917
8918 2011-02-06  Bruno Haible  <bruno@clisp.org>
8919
8920         New module 'wcsrchr'.
8921         * modules/wcsrchr: New file.
8922         * lib/wchar.in.h (wcsrchr): New declaration.
8923         * lib/wcsrchr.c: New file.
8924         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
8925         * m4/wcsrchr.m4: New file.
8926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
8927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
8928         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
8929         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
8930         * doc/posix-functions/wcsrchr.texi: Mention the new module.
8931
8932 2011-02-06  Bruno Haible  <bruno@clisp.org>
8933
8934         New module 'wcschr'.
8935         * modules/wcschr: New file.
8936         * lib/wchar.in.h (wcschr): New declaration.
8937         * lib/wcschr.c: New file.
8938         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
8939         * m4/wcschr.m4: New file.
8940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
8941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
8942         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
8943         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
8944         * doc/posix-functions/wcschr.texi: Mention the new module.
8945
8946 2011-02-06  Bruno Haible  <bruno@clisp.org>
8947
8948         New module 'wcsdup'.
8949         * modules/wcsdup: New file.
8950         * lib/wchar.in.h (wcsdup): New declaration.
8951         * lib/wcsdup.c: New file.
8952         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
8953         * m4/wcsdup.m4: New file.
8954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
8955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
8956         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
8957         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
8958         * doc/posix-functions/wcsdup.texi: Mention the new module.
8959
8960 2011-02-06  Bruno Haible  <bruno@clisp.org>
8961
8962         New module 'wcsxfrm'.
8963         * modules/wcsxfrm: New file.
8964         * lib/wchar.in.h (wcsxfrm): New declaration.
8965         * lib/wcsxfrm.c: New file.
8966         * lib/wcsxfrm-impl.h: New file.
8967         * m4/wcsxfrm.m4: New file.
8968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
8969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
8970         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
8971         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
8972         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
8973
8974 2011-02-06  Bruno Haible  <bruno@clisp.org>
8975
8976         New module 'wcscoll'.
8977         * modules/wcscoll: New file.
8978         * lib/wchar.in.h (wcscoll): New declaration.
8979         * lib/wcscoll.c: New file.
8980         * lib/wcscoll-impl.h: New file.
8981         * m4/wcscoll.m4: New file.
8982         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
8983         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
8984         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
8985         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
8986         * doc/posix-functions/wcscoll.texi: Mention the new module.
8987
8988 2011-02-06  Bruno Haible  <bruno@clisp.org>
8989
8990         New module 'wcsncasecmp'.
8991         * modules/wcsncasecmp: New file.
8992         * lib/wchar.in.h (wcsncasecmp): New declaration.
8993         * lib/wcsncasecmp.c: New file.
8994         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
8995         * m4/wcsncasecmp.m4: New file.
8996         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
8997         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
8998         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
8999         HAVE_WCSNCASECMP.
9000         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
9001         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
9002
9003 2011-02-06  Bruno Haible  <bruno@clisp.org>
9004
9005         New module 'wcscasecmp'.
9006         * modules/wcscasecmp: New file.
9007         * lib/wchar.in.h (wcscasecmp): New declaration.
9008         * lib/wcscasecmp.c: New file.
9009         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
9010         * m4/wcscasecmp.m4: New file.
9011         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
9012         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
9013         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
9014         HAVE_WCSCASECMP.
9015         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
9016         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
9017
9018 2011-02-05  Bruno Haible  <bruno@clisp.org>
9019
9020         New module 'wcsncmp'.
9021         * modules/wcsncmp: New file.
9022         * lib/wchar.in.h (wcsncmp): New declaration.
9023         * lib/wcsncmp.c: New file.
9024         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
9025         * m4/wcsncmp.m4: New file.
9026         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
9027         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
9028         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
9029         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
9030         * doc/posix-functions/wcsncmp.texi: Mention the new module.
9031
9032 2011-02-05  Bruno Haible  <bruno@clisp.org>
9033
9034         New module 'wcscmp'.
9035         * modules/wcscmp: New file.
9036         * lib/wchar.in.h (wcscmp): New declaration.
9037         * lib/wcscmp.c: New file.
9038         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
9039         * m4/wcscmp.m4: New file.
9040         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
9041         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
9042         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
9043         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
9044         * doc/posix-functions/wcscmp.texi: Mention the new module.
9045
9046 2011-02-05  Bruno Haible  <bruno@clisp.org>
9047
9048         New module 'wcsncat'.
9049         * modules/wcsncat: New file.
9050         * lib/wchar.in.h (wcsncat): New declaration.
9051         * lib/wcsncat.c: New file.
9052         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
9053         * m4/wcsncat.m4: New file.
9054         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
9055         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
9056         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
9057         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
9058         * doc/posix-functions/wcsncat.texi: Mention the new module.
9059
9060 2011-02-05  Bruno Haible  <bruno@clisp.org>
9061
9062         New module 'wcscat'.
9063         * modules/wcscat: New file.
9064         * lib/wchar.in.h (wcscat): New declaration.
9065         * lib/wcscat.c: New file.
9066         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
9067         * m4/wcscat.m4: New file.
9068         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
9069         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
9070         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
9071         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
9072         * doc/posix-functions/wcscat.texi: Mention the new module.
9073
9074 2011-02-05  Bruno Haible  <bruno@clisp.org>
9075
9076         New module 'wcpncpy'.
9077         * modules/wcpncpy: New file.
9078         * lib/wchar.in.h (wcpncpy): New declaration.
9079         * lib/wcpncpy.c: New file.
9080         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
9081         * m4/wcpncpy.m4: New file.
9082         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
9083         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
9084         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
9085         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
9086         * doc/posix-functions/wcpncpy.texi: Mention the new module.
9087
9088 2011-02-05  Bruno Haible  <bruno@clisp.org>
9089
9090         New module 'wcsncpy'.
9091         * modules/wcsncpy: New file.
9092         * lib/wchar.in.h (wcsncpy): New declaration.
9093         * lib/wcsncpy.c: New file.
9094         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
9095         * m4/wcsncpy.m4: New file.
9096         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
9097         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
9098         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
9099         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
9100         * doc/posix-functions/wcsncpy.texi: Mention the new module.
9101
9102 2011-02-05  Bruno Haible  <bruno@clisp.org>
9103
9104         New module 'wcpcpy'.
9105         * modules/wcpcpy: New file.
9106         * lib/wchar.in.h (wcpcpy): New declaration.
9107         * lib/wcpcpy.c: New file.
9108         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
9109         * m4/wcpcpy.m4: New file.
9110         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
9111         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
9112         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
9113         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
9114         * doc/posix-functions/wcpcpy.texi: Mention the new module.
9115
9116 2011-02-05  Bruno Haible  <bruno@clisp.org>
9117
9118         New module 'wcscpy'.
9119         * modules/wcscpy: New file.
9120         * lib/wchar.in.h (wcscpy): New declaration.
9121         * lib/wcscpy.c: New file.
9122         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
9123         * m4/wcscpy.m4: New file.
9124         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
9125         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
9126         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
9127         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
9128         * doc/posix-functions/wcscpy.texi: Mention the new module.
9129
9130 2011-02-05  Bruno Haible  <bruno@clisp.org>
9131
9132         New module 'wcsnlen'.
9133         * modules/wcsnlen: New file.
9134         * lib/wchar.in.h (wcsnlen): New declaration.
9135         * lib/wcsnlen.c: New file.
9136         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
9137         * m4/wcsnlen.m4: New file.
9138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
9139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
9140         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
9141         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
9142         * doc/posix-functions/wcsnlen.texi: Mention the new module.
9143
9144 2011-02-05  Bruno Haible  <bruno@clisp.org>
9145
9146         New module 'wcslen'.
9147         * modules/wcslen: New file.
9148         * lib/wchar.in.h (wcslen): New declaration.
9149         * lib/wcslen.c: New file.
9150         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
9151         * m4/wcslen.m4: New file.
9152         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
9153         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
9154         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
9155         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
9156         * doc/posix-functions/wcslen.texi: Mention the new module.
9157
9158 2011-02-05  Bruno Haible  <bruno@clisp.org>
9159
9160         New module 'wmemset'.
9161         * modules/wmemset: New file.
9162         * lib/wchar.in.h (wmemset): New declaration.
9163         * lib/wmemset.c: New file.
9164         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
9165         * m4/wmemset.m4: New file.
9166         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
9167         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
9168         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
9169         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
9170         * doc/posix-functions/wmemset.texi: Mention the new module.
9171
9172 2011-02-05  Bruno Haible  <bruno@clisp.org>
9173
9174         New module 'wmemmove'.
9175         * modules/wmemmove: New file.
9176         * lib/wchar.in.h (wmemmove): New declaration.
9177         * lib/wmemmove.c: New file.
9178         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
9179         * m4/wmemmove.m4: New file.
9180         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
9181         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
9182         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
9183         HAVE_WMEMMOVE.
9184         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
9185         * doc/posix-functions/wmemmove.texi: Mention the new module.
9186
9187 2011-02-05  Bruno Haible  <bruno@clisp.org>
9188
9189         New module 'wmemcpy'.
9190         * modules/wmemcpy: New file.
9191         * lib/wchar.in.h (wmemcpy): New declaration.
9192         * lib/wmemcpy.c: New file.
9193         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
9194         * m4/wmemcpy.m4: New file.
9195         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
9196         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
9197         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
9198         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
9199         * doc/posix-functions/wmemcpy.texi: Mention the new module.
9200
9201 2011-02-05  Bruno Haible  <bruno@clisp.org>
9202
9203         New module 'wmemcmp'.
9204         * modules/wmemcmp: New file.
9205         * lib/wchar.in.h (wmemcmp): New declaration.
9206         * lib/wmemcmp.c: New file.
9207         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
9208         * m4/wmemcmp.m4: New file.
9209         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
9210         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
9211         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
9212         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
9213         * doc/posix-functions/wmemcmp.texi: Mention the new module.
9214
9215 2011-02-07  Jim Meyering  <meyering@redhat.com>
9216
9217         di-set, ino-map: new modules, from coreutils
9218         * lib/di-set.c: New file.
9219         * lib/di-set.h: Likewise.
9220         * lib/ino-map.c: Likewise.
9221         * lib/ino-map.h: Likewise.
9222         * modules/di-set: Likewise.
9223         * modules/di-set-tests: Likewise.
9224         * modules/ino-map: Likewise.
9225         * modules/ino-map-tests: Likewise.
9226         * tests/test-di-set.c: Likewise.
9227         * tests/test-ino-map.c: Likewise.
9228
9229 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9230
9231         getloadavg: merge minor changes from Emacs
9232
9233         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
9234         (getloadavg): Use memset, not bzero.
9235
9236         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
9237         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9238         clash (bug#86).
9239
9240 2010-11-14  Bruno Haible  <bruno@clisp.org>
9241
9242         Allow multiple gnulib generated replacements to coexist.
9243         * lib/getopt.in.h (struct option): Avoid identical redefinition.
9244         * lib/inttypes.in.h (imaxdiv_t): Likewise.
9245         * lib/langinfo.in.h (nl_item): Likewise.
9246         * lib/math.in.h (_NaN, NAN): Likewise.
9247         * lib/netdb.in.h (struct addrinfo): Likewise.
9248         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
9249         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
9250         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
9251         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
9252         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9253         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9254         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9255         pthread_mutexattr_init, pthread_mutexattr_settype,
9256         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9257         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9258         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9259         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9260         * lib/sched.in.h (struct sched_param): Likewise.
9261         * lib/se-selinux.in.h (security_class_t, security_context_t,
9262         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9263         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9264         lsetfilecon, fsetfilecon, security_check_context,
9265         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9266         Likewise.
9267         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9268         Likewise.
9269         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9270         _gl_function_taking_int_returning_void_t, union sigval,
9271         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9272         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9273         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9274         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9275         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9276         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9277         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9278         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9279         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9280         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9281         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9282         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9283         socklen_t, rpl_fd_isset): Likewise.
9284         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9285         * lib/sys_time.in.h (struct timeval): Likewise.
9286         * lib/sys_times.in.h (struct tms): Likewise.
9287         * lib/sys_utsname.in.h (struct utsname):
9288         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9289         * lib/unistd.in.h (getpagesize): Likewise.
9290         * lib/wchar.in.h (mbstate_t): Likewise.
9291         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9292         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9293         towlower, towupper): Likewise.
9294         Reported by Sam Steingold <sds@gnu.org>.
9295
9296 2011-02-05  Eric Blake  <eblake@redhat.com>
9297
9298         unsetenv: work around Haiku issues
9299         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9300         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9301
9302 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9303
9304         libposix: avoid calling error() within libposix
9305         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9306         is defined.
9307
9308 2011-02-05  Eric Blake  <eblake@redhat.com>
9309
9310         strerror_r-posix: port to cygwin
9311         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9312         implementation.
9313         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9314         * tests/test-strerror_r.c (main): Fix test.
9315         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9316         issue.
9317
9318 2011-02-05  Bruno Haible  <bruno@clisp.org>
9319
9320         New module 'wmemchr'.
9321         * modules/wmemchr: New file.
9322         * lib/wchar.in.h (wmemchr): New declaration.
9323         * lib/wmemchr.c: New file.
9324         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9325         * m4/wmemchr.m4: New file.
9326         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9327         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9328         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9329         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9330         * doc/posix-functions/wmemchr.texi: Mention the new module.
9331
9332 2011-02-04  Eric Blake  <eblake@redhat.com>
9333
9334         fdopendir: detect FreeBSD bug
9335         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9336         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9337
9338 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9339
9340         stdbool: do not define HAVE_STDBOOL_H
9341         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9342         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9343         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9344         imported from the latest Autoconf git.  It was motivated by Emacs,
9345         which uses gnulib but does not need HAVE_STDBOOL_H.
9346
9347 2011-02-04  Bruno Haible  <bruno@clisp.org>
9348
9349         wcsnrtombs: Prepare for new module wwcsnrtombs.
9350         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9351         * lib/wcsnrtombs.c: Include it.
9352         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9353
9354         wcsrtombs: Prepare for new module wwcsrtombs.
9355         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9356         * lib/wcsrtombs.c: Include it.
9357         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9358
9359         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9360         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9361         * lib/mbsnrtowcs.c: Include it.
9362         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9363
9364         mbsrtowcs: Prepare for new module mbsrtowwcs.
9365         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9366         * lib/mbsrtowcs.c: Include it.
9367         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9368
9369 2011-02-04  Bruno Haible  <bruno@clisp.org>
9370
9371         vasnprintf: Reduce use of malloc for small format strings.
9372         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9373         (arguments): Add room for the first 7 arguments.
9374         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9375         (char_directives, u8_directives, u16_directives, u32_directives): Add
9376         room for the first 7 directives.
9377         * lib/printf-parse.c: Include <string.h>.
9378         (PRINTF_PARSE): Change memory handling code so that it uses the first
9379         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9380         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9381         Reported by Pádraig Brady <P@draigbrady.com>.
9382
9383 2011-01-31  Eric Blake  <eblake@redhat.com>
9384
9385         dup2: work around Haiku bug
9386         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9387         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9388         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9389         * tests/test-dup2.c (main): Enhance test.
9390
9391 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9392
9393         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9394         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9395         declared by eglibc 2.11.2.
9396         * lib/stdio.in.h: Likewise.
9397
9398 2011-01-31  Eric Blake  <eblake@redhat.com>
9399
9400         ignore-value: add missing test dependency
9401         * tests/test-ignore-value.c: Revert previous change; stdio.h
9402         provides off_t.
9403         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9404
9405 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9406
9407         mktime: clarify long_int width checking
9408         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9409         the top level, to make it clearer that the assumption about
9410         long_int width is being checked.  See
9411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9412
9413 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9414
9415         ignore-value: Fix self-test.
9416         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9417
9418 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9419
9420         TYPE_MAXIMUM: avoid theoretically undefined behavior
9421         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9422         negative number, which the C Standard says has undefined behavior.
9423         In practice this is not a problem, but might as well do it by the book.
9424         Reported by Rich Felker and Eric Blake; see
9425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9426         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9427         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9428         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9429         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9430         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9431         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9432
9433         mktime: #undef mktime before #defining it
9434         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9435
9436         mktime: systematically normalize tm_isdst comparisons
9437         * lib/mktime.c (isdst_differ): New function.
9438         (__mktime_internal): Use it systematically for all isdst comparisons.
9439         This completes the fix for libc BZ #6723, and removes the need for
9440         normalizing tm_isdst.  See
9441         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9442         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9443
9444         mktime: fix some integer overflow issues and sidestep the rest
9445
9446         This was prompted by a bug report by Benjamin Lindner for MinGW
9447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9448         His bug is due to signed integer overflow (0 - INT_MIN), and I
9449         I scanned through mktime.c looking for other integer overflow
9450         problems, fixing all the bugs I found.
9451
9452         Although the C Standard says the resulting code is still not safe
9453         in the presence of integer overflow, in practice it should be good
9454         enough for all real-world two's-complement implementations, except
9455         for debugging environments that deliberately trap on integer
9456         overflow (e.g., gcc -ftrapv).
9457
9458         * lib/mktime.c (WRAPV): New macro.
9459         (SHR): Also check that long_int and time_t shift right in the
9460         usual way, before using the fast-but-unportable method.
9461         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9462         used.  The code already assumed two's complement, so there's
9463         no need to test for alternatives.  All uses removed.
9464         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9465         the C standard.  Problem reported by Rich Felker in
9466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9467         (twos_complement_arithmetic): Also check long_int and time_t.
9468         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9469         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9470         (__mktime_internal): Avoid integer overflow with unary subtraction
9471         in two instances where -1 - X is an adequate replacement for -X,
9472         since the calculations are approximate.
9473
9474 2011-01-29  Eric Blake  <eblake@redhat.com>
9475
9476         mktime: avoid infinite loop
9477         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
9478         type; behavior is still undefined but portable to all known targets.
9479         Reported by Rich Felker.
9480
9481 2011-01-29  Simon Josefsson  <simon@josefsson.org>
9482
9483         rename, unlink, same-inode: Relicense.
9484         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
9485         * modules/unlink (License): Likewise.
9486         * modules/same-inode (License): Likewise.
9487
9488 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9489
9490         mktime: avoid problems on NetBSD 5 / i386
9491         * lib/mktime.c (long_int): New type.  This works around a problem
9492         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
9493         but time_t is 64 bits, and where I expect the existing code is
9494         wrong in some cases.
9495         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
9496         (ydhms_diff): Bring back the compile-time check for wide-enough
9497         year and yday.
9498
9499         mktime: fix misspelling in comment
9500         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
9501         This merges all recent glibc changes of importance.
9502
9503 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9504
9505         move-if-change: cope with concurrent mv of identical file.
9506         * build-aux/move-if-change (CMPPROG): Accept environment
9507         variable as an override for `cmp'.
9508         (usage): Document CMPPROG.
9509         Adjust comparison to drop stdout.  Cope with failure of mv if
9510         the target file exists and is identical to the source, for
9511         parallel builds.
9512         Report from H.J. Lu against binutils in PR binutils/12283.
9513
9514 2011-01-28  Bruce Korb  <bkorb@gnu.org>
9515
9516         * users.txt: Mention sharutils.
9517
9518 2011-01-28  Simon Josefsson  <simon@josefsson.org>
9519
9520         * users.txt: Mention OATH Toolkit.
9521
9522 2011-01-27  Bruno Haible  <bruno@clisp.org>
9523
9524         Prepare for supporting FreeBSD 10.
9525         * build-aux/config.libpath: Remove handling of freebsd1*.
9526
9527 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
9528
9529         Prepare for supporting FreeBSD 10.
9530         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
9531         match FreeBSD 10.0.
9532
9533 2011-01-27  Bruno Haible  <bruno@clisp.org>
9534
9535         vma-iter, get-rusage-as: Add OpenBSD support.
9536         * modules/vma-iter (configure.ac): Test for mquery.
9537         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
9538         * lib/vma-iter.c: Include <sys/mman.h>.
9539         (vma_iterate): Add an implementation based on mquery().
9540         * lib/resource-ext.h (get_rusage_as): Update comments.
9541         * lib/get-rusage-as.c: Likewise.
9542         * lib/get-rusage-data.c: Likewise.
9543
9544 2011-01-26  Karl Berry  <karl@gnu.org>
9545
9546         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
9547         variables to make it easier to override the makeinfo program used.
9548
9549 2011-01-26  Eric Blake  <eblake@redhat.com>
9550
9551         fcntl: work around Haiku F_DUPFD bugs
9552         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
9553         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
9554         cloexec bit on duplication.
9555         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
9556
9557 2011-01-26  Bruno Haible  <bruno@clisp.org>
9558
9559         Enable memory leak tests on AIX.
9560         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
9561         * tests/test-fprintf-posix3.c (main): Likewise.
9562
9563 2011-01-26  Bruno Haible  <bruno@clisp.org>
9564
9565         Tests for module 'get-rusage-data'.
9566         * modules/get-rusage-data-tests: New file.
9567         * tests/test-get-rusage-data.c: New file.
9568
9569         New module 'get-rusage-data'.
9570         * lib/resource-ext.h (get_rusage_data): New declaration.
9571         * lib/get-rusage-data.c: New file.
9572         * modules/get-rusage-data: New file.
9573
9574 2011-01-25  Bruno Haible  <bruno@clisp.org>
9575
9576         get-rusage-as: Allow for easier testing.
9577         * lib/resource-ext.h (get_rusage_as): Add comment.
9578         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9579         (main): New function for interactive testing.
9580
9581 2011-01-25  Bruno Haible  <bruno@clisp.org>
9582
9583         vma-iter: Treat Haiku like BeOS.
9584         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9585         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9586
9587 2011-01-25  Eric Blake  <eblake@redhat.com>
9588
9589         c-stack: fix regression on cygwin when libsigsegv is present
9590         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9591
9592 2011-01-24  Bruno Haible  <bruno@clisp.org>
9593
9594         vma-iter: Avoid empty intervals.
9595         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9596         on an empty interval.
9597
9598 2011-01-24  Jim Meyering  <meyering@redhat.com>
9599
9600         u64: remove unnecessary #include
9601         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9602
9603 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9604
9605         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9606         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9607
9608 2011-01-23  Bruno Haible  <bruno@clisp.org>
9609
9610         New module 'vma-iter'.
9611         * lib/vma-iter.h: New file.
9612         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9613         * modules/vma-iter: New file.
9614         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9615         for get_rusage_as_via_iterator.
9616         (vma_iterate_callback): New function.
9617         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9618         * modules/get-rusage-as (Depends-on): Add vma-iter.
9619
9620 2011-01-23  Bruno Haible  <bruno@clisp.org>
9621
9622         uninorm: Tweak includes.
9623         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9624         Reported by Jim Meyering.
9625
9626 2011-01-23  Bruno Haible  <bruno@clisp.org>
9627
9628         get-rusage-as: Improve on NetBSD.
9629         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9630         /proc, like on FreeBSD.
9631
9632 2011-01-23  Jim Meyering  <meyering@redhat.com>
9633
9634         xreadlink.h: remove unnecessary #include
9635         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
9636
9637         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
9638         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
9639
9640 2011-01-23  Bruno Haible  <bruno@clisp.org>
9641
9642         get-rusage-as: Fix bug.
9643         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
9644         original limit when aborting the first loop.
9645
9646 2011-01-23  Bruno Haible  <bruno@clisp.org>
9647
9648         wctype: Ensure valid C syntax.
9649         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
9650         unconditionally, instead of gl_NEXT_HEADERS conditionally.
9651
9652 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9653
9654         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
9655         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
9656         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
9657         as they are needed only for configure's test case.
9658         This removes two unnecessary symbols from config.h.
9659
9660         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
9661         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
9662         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
9663         AC_CHECK_HEADERS_ONCE on a header that we also invoke
9664         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
9665         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
9666         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
9667         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9668         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9669         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9670         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9671         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9672         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9673         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9674         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9675         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9676         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9677         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9678
9679 2011-01-21  Eric Blake  <eblake@redhat.com>
9680
9681         maintainer-makefile: work with older git for submodule check
9682         * top/maint.mk (public-submodule-commit): Rewrite to avoid
9683         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
9684         Reported by Matthias Bolte.
9685
9686         bootstrap: minor portability fixes
9687         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
9688         (usage): Omit leading capital and trailing . on help phrases, per
9689         GNU Coding Standards.
9690         (check_versions, top level): Prefix messages with script name.
9691
9692 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
9693
9694         bootstrap: support --no-git option
9695         * build-aux/bootstrap: Add --no-git option, to be used when
9696         --gnulib-srcdir points to the exact desired checkout.
9697
9698 2011-01-21  Eric Blake  <eblake@redhat.com>
9699
9700         strerror_r-posix: work with glibc 2.13
9701         * lib/strerror_r.c (strerror_r): Fix return type.
9702
9703 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9704             Bruno Haible  <bruno@clisp.org>
9705
9706         uN_strstr: New unit tests.
9707         * modules/unistr/u8-strstr-tests: New file.
9708         * modules/unistr/u16-strstr-tests: New file.
9709         * modules/unistr/u32-strstr-tests: New file.
9710         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
9711         * tests/unistr/test-u8-strstr.c: New file.
9712         * tests/unistr/test-u16-strstr.c: New file.
9713         * tests/unistr/test-u32-strstr.c: New file.
9714
9715 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9716             Bruno Haible  <bruno@clisp.org>
9717
9718         Make uN_strstr functions O(n) worst-case.
9719         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
9720         16-bit and 32-bit unit cases, use the unibyte algorithm from
9721         lib/mbsstr.c.
9722         * lib/unistr/u8-strstr.c: Include <string.h>.
9723         (UNIT_IS_UINT8_T): New macro.
9724         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
9725         (U_STRLEN, U_STRNLEN): New macros.
9726         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
9727         (U_STRLEN, U_STRNLEN): New macros.
9728         * modules/unistr/u8-strstr (Depends-on): Add strstr.
9729         (configure.ac): Update required libunistring version.
9730         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
9731         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
9732         malloca.
9733         (configure.ac): Update required libunistring version.
9734         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
9735         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
9736         malloca.
9737         (configure.ac): Update required libunistring version.
9738
9739 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9740             Bruno Haible  <bruno@clisp.org>
9741
9742         Prepare for faster uN_strstr functions.
9743         * lib/str-kmp.h: Support definable UNITs.
9744         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
9745         needle_len argument.
9746         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
9747         * lib/mbscasestr.c (mbscasestr): Likewise.
9748
9749 2011-01-21  Pádraig Brady <P@draigBrady.com>
9750
9751         malloca-tests: make faster by unsetting MALLOC_PERTURB_
9752         * tests/test-malloca.c (main): Unset the environment variable
9753         to greatly speed up the test.
9754         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
9755         * modules/malloca-tests: Depend on unsetenv.
9756
9757 2011-01-21  Pádraig Brady <P@draigBrady.com>
9758
9759         ignore-value: remove stdint dependency
9760         * lib/ignore-value.h: Remove <stdint.h>
9761         * modules/ignore-value: Remove stdint dependency.
9762
9763 2011-01-21  Jim Meyering  <meyering@redhat.com>
9764
9765         maint.mk: adjust variable name to be consistent with other gl_ vars
9766         * top/maint.mk (gl_public_submodule_commit): Rename the variable
9767         to be lower case.
9768
9769 2011-01-20  Jim Meyering  <meyering@redhat.com>
9770
9771         maint.mk: make "check" depend on public-submodule-commit by default
9772         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
9773
9774 2011-01-20  Bruno Haible  <bruno@clisp.org>
9775
9776         mbfile, mbiter: Complete change from 2008-12-21.
9777         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
9778         * m4/mbiter.m4 (gl_MBITER): Likewise.
9779
9780 2011-01-20  Jim Meyering  <meyering@redhat.com>
9781
9782         init.sh: insert space between each function name and "()"
9783         * tests/init.sh: Make it a little easier to see that a function's
9784         name is "warn_", and not "warn" when looking at the first part of
9785         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
9786
9787 2011-01-20  Jim Meyering  <meyering@redhat.com>
9788
9789         mountlist: clean up code formatting
9790         * lib/mountlist.c (read_file_system_list): Split a long line,
9791         correct bracing style, use NULL in place of "(struct statfs *)0",
9792         don't parenthesize return value, add spaces around "=" and after
9793         ";-in-for-stmt".
9794
9795 2011-01-14  Markus Duft <mduft@gentoo.org>
9796
9797         mountlist: add support for Interix
9798         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
9799         Apply statvfs to all entries of /dev/fs.
9800         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
9801         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
9802
9803 2011-01-20  Jim Meyering  <meyering@redhat.com>
9804
9805         maint.mk: improve the public-submodule-commit rule
9806         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
9807         to suppress printing of its commands... unless V=1.
9808         Add git submodule's --quiet option to suppress printing of e.g.,
9809         "Entering gnulib" output.
9810         "cd" into $(srcdir) before running git submodule.
9811
9812 2011-01-20  Bruno Haible  <bruno@clisp.org>
9813
9814         include_next: Fix bug introduced on 2011-01-18.
9815         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
9816         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
9817         ac_cv_header_... variable if the second argument is not 'check'.
9818         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
9819         gl_NEXT_HEADERS_INTERNAL.
9820
9821 2011-01-20  Bruno Haible  <bruno@clisp.org>
9822
9823         Allow the user to avoid the GNULIB_TEST_* macros.
9824         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
9825         Suggested by Paul Eggert.
9826
9827 2011-01-14  Jim Meyering  <meyering@redhat.com>
9828
9829         bootstrap: avoid failure when there is no .gitmodules file
9830         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
9831         has been assigned to, even when its value is the empty string.
9832         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
9833         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
9834         Reported by John W. Eaton <jwe@gnu.org>.
9835
9836 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
9837
9838         assume <ctype.h>, ..., <time.h> exist
9839         For years gnulib has been assuming the existence of the headers
9840         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
9841         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
9842         them, since they don't appear to be needed.
9843         * README (Portability guidelines): Document this.
9844         * lib/flock.c: Assume <fcntl.h> exists.
9845         * lib/regex_internal.h: Assume <locale.h> exists.
9846         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
9847         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
9848         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
9849         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
9850         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
9851         * m4/regex.m4 (gl_REGEX): Likewise.
9852         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
9853         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
9854         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
9855         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
9856         * tests/test-argp.c: Likewise.
9857         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
9858
9859         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
9860         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
9861         AA_APPLE_UNIVERSAL_BUILD.  See
9862         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
9863         * NEWS: Document this.
9864
9865 2011-01-19  Eric Blake  <eblake@redhat.com>
9866
9867         c-stack: assume stack overflow if SA_SIGINFO unsupported
9868         * lib/c-stack.c (SIGACTION_WORKS): Rename...
9869         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
9870         sigaction will work.
9871         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
9872         behavior match Linux.
9873         * tests/test-c-stack.c (main): Prefer NULL for pointers.
9874
9875         stdbool-tests: accomodate Haiku
9876         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
9877
9878         binary-io: fix O_TEXT on Haiku
9879         * modules/binary-io (Depends-on): Add fcntl-h.
9880         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
9881         than blindly undefining O_TEXT.
9882         Reported by Scott McCreary.
9883
9884 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9885
9886         include_next: do not check for standard headers like stddef.h
9887
9888         I found this problem when modifying Emacs to use gnulib.
9889         I noticed that it added HAVE_STDDEF_H to config.h, even though
9890         gnulib always assumes <stddef.h> exists as per README and this
9891         symbol is unnecessary.
9892         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
9893         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
9894         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
9895         faster for headers like stddef.h that are known to exist.
9896         (gl_CHECK_NEXT_HEADERS): Use it.
9897         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
9898         rather than gl_CHECK_NEXT_HEADERS.
9899         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
9900         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
9901
9902 2011-01-18  Eric Blake  <eblake@redhat.com>
9903
9904         ansi-c++-opt: skip C++ dependency style if C++ is unused
9905         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
9906         tests when we know C++ compilation is not desired.
9907         Reported by Scott McCreary.
9908
9909 2011-01-18  Bruno Haible  <bruno@clisp.org>
9910
9911         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
9912         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
9913         (main): Perform test also when getrlimit and setrlimit don't exist or
9914         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
9915         limiting the address space size using setrlimit, compare the address
9916         space size before and after the the test.
9917         * tests/test-dprintf-posix2.c: Likewise.
9918         * tests/test-fprintf-posix3.sh: Update skip messages.
9919         * tests/test-dprintf-posix2.sh: Likewise.
9920         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
9921         * modules/dprintf-posix-tests (Depends-on): Likewise.
9922         Reported by Bruce Korb <bkorb@gnu.org> and
9923         Gary V. Vaughan <gary@gnu.org>.
9924
9925 2011-01-18  Bruno Haible  <bruno@clisp.org>
9926
9927         get-rusage-as: Improvement for Cygwin.
9928         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
9929         areas that are merely reserved.
9930
9931 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9932
9933         strftime: remove dependencies on multibyte modules
9934
9935         strftime depended on mbrlen, mbsinit, and wchar, but these modules
9936         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
9937         only if __osf__ is defined, and I suspect OSF doesn't need these
9938         other modules.  If my guess is wrong, we'll need to come up with a
9939         variant of strftime that doesn't need the multibyte modules.
9940
9941         I discovered this problem when attempting modify Emacs to use the
9942         strftime module.  With the previous gnulib, this caused Emacs to
9943         need 31 new files, ranging from lib/config.charset to
9944         m4/wint_t.m4.  This was overkill and I expect would be offputting
9945         to the Emacs maintainers.  After this change, only 6 new files are
9946         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
9947         stdbool.m4, and tm_gmtoff.m4.
9948
9949         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
9950         Suggested by Bruno Haible in
9951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
9952         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
9953         and do not check for wchar.h.
9954         * modules/strftime (Files): Remove m4/mbstate_t.m4.
9955         (Depends-on): Remove mbrlen, mbsinit, wchar.
9956
9957 2011-01-18  Bruno Haible  <bruno@clisp.org>
9958
9959         Tests for module 'get-rusage-as'.
9960         * modules/get-rusage-as-tests: New file.
9961         * tests/test-get-rusage-as.c: New file.
9962
9963         New module 'get-rusage-as'.
9964         * modules/get-rusage-as: New file.
9965         * lib/resource-ext.h: New file.
9966         * lib/get-rusage-as.c: New file.
9967
9968 2011-01-17  Eric Blake  <eblake@redhat.com>
9969
9970         sigaction: relax license from LGPLv3+ to LGPLv2+
9971         * modules/sigaction (License): Relax to LGPLv2+.
9972
9973 2011-01-14  Bruno Haible  <bruno@clisp.org>
9974
9975         filemode: Make function declarations usable in C++ mode.
9976         * lib/filemode.h: Enclose function declarations in extern "C" block.
9977         Reported by John W. Eaton <jwe@gnu.org>.
9978
9979 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
9980
9981         save-cwd: no longer include "xgetcwd.h"
9982         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
9983         This avoids a compilation failure in projects that use save-cwd
9984         without also using the xgetcwd module.
9985
9986 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9987
9988         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
9989         This is so that a program like Emacs, which needs only dtoastr,
9990         does not have to bother with distributing and compiling ftoastr
9991         and ldtoastr.
9992         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
9993         * modules/dtoastr, modules/ldtoastr: New files.
9994         * modules/ftoastr: Now works just for 'float'.
9995         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
9996         (Makefile.am): Remove ftoastr.h (not needed and no effect),
9997         dtoastr.c, ldtoastr.c.
9998
9999 2011-01-11  Jim Meyering  <meyering@redhat.com>
10000
10001         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
10002         There is no need to work around the lack of the fchdir function,
10003         since gnulib can now provide a replacement when required.
10004         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
10005         * modules/save-cwd (Depends-on): Add fchdir.
10006
10007 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10008
10009         openat, save-cwd: avoid xmalloc
10010
10011         This removes a direct (but undocumented) dependency of openat on
10012         xalloc, along with an indirect dependency via save-cwd.  It also
10013         removes a dependency of save-cwd on xgetcwd, and thereby
10014         indirectly on xalloc.  This change causes the openat substitute
10015         to fall back on save_cwd when memory is tight, and for save_cwd to
10016         fail instead of dying when memory is tight, but that's good enough.
10017         Problem and initial idea for fix reported by Bastien Roucaries in
10018         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
10019
10020         * lib/openat-proc.c: Include stdlib.h (for malloc), not
10021         xalloc.h (for xmalloc).
10022         (openat_proc_name): Use malloc, not xmalloc.
10023         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
10024         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
10025
10026         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
10027         This avoids heap allocation for file names whose lengths are in
10028         the range 512..1023, with the upper bound increasing to at most
10029         4031 depending on the platform's PATH_MAX.  (We do not want
10030         pathmax.h here as it might supply a non-constant PATH_MAX.)
10031         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
10032         Perhaps they should be moved to malloca.h?
10033         (OPENAT_BUFFER_SIZE): Use them.
10034
10035 2011-01-10  Bruno Haible  <bruno@clisp.org>
10036
10037         doc: Update users.txt.
10038         * users.txt: Add recutils.
10039
10040 2011-01-09  Karl Berry  <karl@gnu.org>
10041
10042         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
10043
10044         * doc/configmake.texi: New file.
10045         * doc/gnulib.texi: Include it.
10046         * modules/configmake: Move documentation from here.
10047
10048 2011-01-09  Bruno Haible  <bruno@clisp.org>
10049
10050         Update to Unicode 6.0.0.
10051         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
10052         (get_lbp): Update for Unicode 6.0.0.
10053         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
10054         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
10055         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
10056         U+11001, U+11038..U+11046. Remove U+06DE.
10057         (uc_width): Fix bounds of planes.
10058         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10059         lib/uniwidth/width.c.
10060         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
10061         trailing whitespace removed.
10062         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
10063         without comments, but with the original copyright notice.
10064         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
10065         * lib/unicase/ignorable.h: Likewise.
10066         * lib/unicase/tocasefold.h: Likewise.
10067         * lib/unicase/tolower.h: Likewise.
10068         * lib/unicase/totitle.h: Likewise.
10069         * lib/unicase/toupper.h: Likewise.
10070         * lib/unictype/bidi_of.h: Likewise.
10071         * lib/unictype/blocks.h: Likewise.
10072         * lib/unictype/categ_C.h: Likewise.
10073         * lib/unictype/categ_Cn.h: Likewise.
10074         * lib/unictype/categ_L.h: Likewise.
10075         * lib/unictype/categ_Ll.h: Likewise.
10076         * lib/unictype/categ_Lm.h: Likewise.
10077         * lib/unictype/categ_Lo.h: Likewise.
10078         * lib/unictype/categ_Lu.h: Likewise.
10079         * lib/unictype/categ_M.h: Likewise.
10080         * lib/unictype/categ_Mc.h: Likewise.
10081         * lib/unictype/categ_Me.h: Likewise.
10082         * lib/unictype/categ_Mn.h: Likewise.
10083         * lib/unictype/categ_N.h: Likewise.
10084         * lib/unictype/categ_Nd.h: Likewise.
10085         * lib/unictype/categ_No.h: Likewise.
10086         * lib/unictype/categ_P.h: Likewise.
10087         * lib/unictype/categ_Po.h: Likewise.
10088         * lib/unictype/categ_S.h: Likewise.
10089         * lib/unictype/categ_Sc.h: Likewise.
10090         * lib/unictype/categ_Sk.h: Likewise.
10091         * lib/unictype/categ_Sm.h: Likewise.
10092         * lib/unictype/categ_So.h: Likewise.
10093         * lib/unictype/categ_of.h: Likewise.
10094         * lib/unictype/combining.h: Likewise.
10095         * lib/unictype/ctype_alnum.h: Likewise.
10096         * lib/unictype/ctype_alpha.h: Likewise.
10097         * lib/unictype/ctype_graph.h: Likewise.
10098         * lib/unictype/ctype_lower.h: Likewise.
10099         * lib/unictype/ctype_print.h: Likewise.
10100         * lib/unictype/ctype_punct.h: Likewise.
10101         * lib/unictype/ctype_upper.h: Likewise.
10102         * lib/unictype/decdigit.h: Likewise.
10103         * lib/unictype/digit.h: Likewise.
10104         * lib/unictype/numeric.h: Likewise.
10105         * lib/unictype/pr_alphabetic.h: Likewise.
10106         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10107         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10108         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10109         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10110         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10111         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10112         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10113         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10114         * lib/unictype/pr_case_ignorable.h: Likewise.
10115         * lib/unictype/pr_cased.h: Likewise.
10116         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
10117         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
10118         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
10119         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
10120         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
10121         * lib/unictype/pr_combining.h: Likewise.
10122         * lib/unictype/pr_composite.h: Likewise.
10123         * lib/unictype/pr_currency_symbol.h: Likewise.
10124         * lib/unictype/pr_decimal_digit.h: Likewise.
10125         * lib/unictype/pr_deprecated.h: Likewise.
10126         * lib/unictype/pr_format_control.h: Likewise.
10127         * lib/unictype/pr_grapheme_base.h: Likewise.
10128         * lib/unictype/pr_grapheme_extend.h: Likewise.
10129         * lib/unictype/pr_grapheme_link.h: Likewise.
10130         * lib/unictype/pr_id_continue.h: Likewise.
10131         * lib/unictype/pr_id_start.h: Likewise.
10132         * lib/unictype/pr_ideographic.h: Likewise.
10133         * lib/unictype/pr_lowercase.h: Likewise.
10134         * lib/unictype/pr_math.h: Likewise.
10135         * lib/unictype/pr_numeric.h: Likewise.
10136         * lib/unictype/pr_other_alphabetic.h: Likewise.
10137         * lib/unictype/pr_other_id_continue.h: Likewise.
10138         * lib/unictype/pr_other_math.h: Likewise.
10139         * lib/unictype/pr_punctuation.h: Likewise.
10140         * lib/unictype/pr_sentence_terminal.h: Likewise.
10141         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10142         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10143         * lib/unictype/pr_unified_ideograph.h: Likewise.
10144         * lib/unictype/pr_uppercase.h: Likewise.
10145         * lib/unictype/pr_xid_continue.h: Likewise.
10146         * lib/unictype/pr_xid_start.h: Likewise.
10147         * lib/unictype/scripts.h: Likewise.
10148         * lib/unictype/scripts_byname.gperf: Likewise.
10149         * lib/unictype/sy_java_ident.h: Likewise.
10150         * lib/unigbrk/gbrkprop.h: Likewise.
10151         * lib/unilbrk/lbrkprop1.h: Likewise.
10152         * lib/unilbrk/lbrkprop2.h: Likewise.
10153         * lib/uninorm/decomposition-table2.h: Likewise.
10154         * lib/uniwbrk/wbrkprop.h: Likewise.
10155         * tests/unicase/test-cased.c: Likewise.
10156         * tests/unicase/test-ignorable.c: Likewise.
10157         * tests/unicase/test-uc_tolower.c: Likewise.
10158         * tests/unicase/test-uc_totitle.c: Likewise.
10159         * tests/unicase/test-uc_toupper.c: Likewise.
10160         * tests/unictype/test-categ_C.c: Likewise.
10161         * tests/unictype/test-categ_Cn.c: Likewise.
10162         * tests/unictype/test-categ_L.c: Likewise.
10163         * tests/unictype/test-categ_Ll.c: Likewise.
10164         * tests/unictype/test-categ_Lm.c: Likewise.
10165         * tests/unictype/test-categ_Lo.c: Likewise.
10166         * tests/unictype/test-categ_Lu.c: Likewise.
10167         * tests/unictype/test-categ_M.c: Likewise.
10168         * tests/unictype/test-categ_Mc.c: Likewise.
10169         * tests/unictype/test-categ_Me.c: Likewise.
10170         * tests/unictype/test-categ_Mn.c: Likewise.
10171         * tests/unictype/test-categ_N.c: Likewise.
10172         * tests/unictype/test-categ_Nd.c: Likewise.
10173         * tests/unictype/test-categ_No.c: Likewise.
10174         * tests/unictype/test-categ_P.c: Likewise.
10175         * tests/unictype/test-categ_Po.c: Likewise.
10176         * tests/unictype/test-categ_S.c: Likewise.
10177         * tests/unictype/test-categ_Sc.c: Likewise.
10178         * tests/unictype/test-categ_Sk.c: Likewise.
10179         * tests/unictype/test-categ_Sm.c: Likewise.
10180         * tests/unictype/test-categ_So.c: Likewise.
10181         * tests/unictype/test-ctype_alnum.c: Likewise.
10182         * tests/unictype/test-ctype_alpha.c: Likewise.
10183         * tests/unictype/test-ctype_graph.c: Likewise.
10184         * tests/unictype/test-ctype_lower.c: Likewise.
10185         * tests/unictype/test-ctype_print.c: Likewise.
10186         * tests/unictype/test-ctype_punct.c: Likewise.
10187         * tests/unictype/test-ctype_upper.c: Likewise.
10188         * tests/unictype/test-decdigit.h: Likewise.
10189         * tests/unictype/test-digit.h: Likewise.
10190         * tests/unictype/test-numeric.h: Likewise.
10191         * tests/unictype/test-pr_alphabetic.c: Likewise.
10192         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10193         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
10194         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
10195         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10196         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10197         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10198         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10199         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10200         * tests/unictype/test-pr_case_ignorable.c: Likewise.
10201         * tests/unictype/test-pr_cased.c: Likewise.
10202         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
10203         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
10204         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
10205         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
10206         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
10207         * tests/unictype/test-pr_combining.c: Likewise.
10208         * tests/unictype/test-pr_composite.c: Likewise.
10209         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10210         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10211         * tests/unictype/test-pr_deprecated.c: Likewise.
10212         * tests/unictype/test-pr_format_control.c: Likewise.
10213         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10214         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10215         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10216         * tests/unictype/test-pr_id_continue.c: Likewise.
10217         * tests/unictype/test-pr_id_start.c: Likewise.
10218         * tests/unictype/test-pr_ideographic.c: Likewise.
10219         * tests/unictype/test-pr_lowercase.c: Likewise.
10220         * tests/unictype/test-pr_math.c: Likewise.
10221         * tests/unictype/test-pr_numeric.c: Likewise.
10222         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10223         * tests/unictype/test-pr_other_id_continue.c: Likewise.
10224         * tests/unictype/test-pr_other_math.c: Likewise.
10225         * tests/unictype/test-pr_punctuation.c: Likewise.
10226         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10227         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10228         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10229         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10230         * tests/unictype/test-pr_uppercase.c: Likewise.
10231         * tests/unictype/test-pr_xid_continue.c: Likewise.
10232         * tests/unictype/test-pr_xid_start.c: Likewise.
10233         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10234         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10235         changes.
10236         * lib/unictype/categ_Cc.h: Likewise.
10237         * lib/unictype/categ_Cf.h: Likewise.
10238         * lib/unictype/categ_Co.h: Likewise.
10239         * lib/unictype/categ_Cs.h: Likewise.
10240         * lib/unictype/categ_Lt.h: Likewise.
10241         * lib/unictype/categ_Nl.h: Likewise.
10242         * lib/unictype/categ_Pc.h: Likewise.
10243         * lib/unictype/categ_Pd.h: Likewise.
10244         * lib/unictype/categ_Pe.h: Likewise.
10245         * lib/unictype/categ_Pf.h: Likewise.
10246         * lib/unictype/categ_Pi.h: Likewise.
10247         * lib/unictype/categ_Ps.h: Likewise.
10248         * lib/unictype/categ_Z.h: Likewise.
10249         * lib/unictype/categ_Zl.h: Likewise.
10250         * lib/unictype/categ_Zp.h: Likewise.
10251         * lib/unictype/categ_Zs.h: Likewise.
10252         * lib/unictype/ctype_blank.h: Likewise.
10253         * lib/unictype/ctype_cntrl.h: Likewise.
10254         * lib/unictype/ctype_digit.h: Likewise.
10255         * lib/unictype/ctype_space.h: Likewise.
10256         * lib/unictype/ctype_xdigit.h: Likewise.
10257         * lib/unictype/mirror.h: Likewise.
10258         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10259         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10260         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10261         * lib/unictype/pr_bidi_control.h: Likewise.
10262         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10263         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10264         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10265         * lib/unictype/pr_bidi_pdf.h: Likewise.
10266         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10267         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10268         * lib/unictype/pr_dash.h: Likewise.
10269         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10270         * lib/unictype/pr_diacritic.h: Likewise.
10271         * lib/unictype/pr_extender.h: Likewise.
10272         * lib/unictype/pr_hex_digit.h: Likewise.
10273         * lib/unictype/pr_hyphen.h: Likewise.
10274         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10275         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10276         * lib/unictype/pr_ignorable_control.h: Likewise.
10277         * lib/unictype/pr_iso_control.h: Likewise.
10278         * lib/unictype/pr_join_control.h: Likewise.
10279         * lib/unictype/pr_left_of_pair.h: Likewise.
10280         * lib/unictype/pr_line_separator.h: Likewise.
10281         * lib/unictype/pr_logical_order_exception.h: Likewise.
10282         * lib/unictype/pr_non_break.h: Likewise.
10283         * lib/unictype/pr_not_a_character.h: Likewise.
10284         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10285         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10286         * lib/unictype/pr_other_id_start.h: Likewise.
10287         * lib/unictype/pr_other_lowercase.h: Likewise.
10288         * lib/unictype/pr_other_uppercase.h: Likewise.
10289         * lib/unictype/pr_paired_punctuation.h: Likewise.
10290         * lib/unictype/pr_paragraph_separator.h: Likewise.
10291         * lib/unictype/pr_pattern_syntax.h: Likewise.
10292         * lib/unictype/pr_pattern_white_space.h: Likewise.
10293         * lib/unictype/pr_private_use.h: Likewise.
10294         * lib/unictype/pr_quotation_mark.h: Likewise.
10295         * lib/unictype/pr_radical.h: Likewise.
10296         * lib/unictype/pr_soft_dotted.h: Likewise.
10297         * lib/unictype/pr_space.h: Likewise.
10298         * lib/unictype/pr_titlecase.h: Likewise.
10299         * lib/unictype/pr_variation_selector.h: Likewise.
10300         * lib/unictype/pr_white_space.h: Likewise.
10301         * lib/unictype/pr_zero_width.h: Likewise.
10302         * lib/unictype/sy_c_ident.h: Likewise.
10303         * lib/unictype/sy_c_whitespace.h: Likewise.
10304         * lib/unictype/sy_java_whitespace.h: Likewise.
10305         * lib/uninorm/composition-table.gperf: Likewise.
10306         * lib/uninorm/decomposition-table1.h: Likewise.
10307         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10308         LB8.
10309         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10310         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10311         * modules/unictype/*: Bump version number of expected libunistring
10312         version.
10313
10314 2011-01-09  Bruno Haible  <bruno@clisp.org>
10315
10316         Update to Unicode 5.2.0.
10317         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10318         trailing whitespace removed.
10319
10320 2011-01-09  Bruno Haible  <bruno@clisp.org>
10321
10322         New Unicode character properties, from Unicode 5.2.0.
10323         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10324         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10325         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10326         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10327         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10328         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10329         uc_is_property_cased, uc_is_property_case_ignorable,
10330         uc_is_property_changes_when_lowercased,
10331         uc_is_property_changes_when_uppercased,
10332         uc_is_property_changes_when_titlecased,
10333         uc_is_property_changes_when_casefolded,
10334         uc_is_property_changes_when_casemapped): New declarations.
10335         * lib/unictype/pr_byname.gperf: Add the new properties.
10336         * modules/unictype/property-byname (Depends-on): Depend on the new
10337         properties modules.
10338         * modules/unictype/property-all (Depends-on): Likewise.
10339         * MODULES.html.sh (Unicode string functions): Add
10340         unictype/property-case-ignorable, unictype/property-cased,
10341         unictype/property-changes-when-casefolded,
10342         unictype/property-changes-when-casemapped,
10343         unictype/property-changes-when-lowercased,
10344         unictype/property-changes-when-titlecased,
10345         unictype/property-changes-when-uppercased.
10346
10347         New module 'unictype/property-changes-when-casemapped'.
10348         * modules/unictype/property-changes-when-casemapped: New file.
10349         * lib/unictype/pr_changes_when_casemapped.c: New file.
10350         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10351         generated by gen-uni-tables.
10352         * modules/unictype/property-changes-when-casemapped-tests: New file.
10353         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10354         automatically generated by gen-uni-tables.
10355
10356         New module 'unictype/property-changes-when-casefolded'.
10357         * modules/unictype/property-changes-when-casefolded: New file.
10358         * lib/unictype/pr_changes_when_casefolded.c: New file.
10359         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10360         generated by gen-uni-tables.
10361         * modules/unictype/property-changes-when-casefolded-tests: New file.
10362         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10363         automatically generated by gen-uni-tables.
10364
10365         New module 'unictype/property-changes-when-titlecased'.
10366         * modules/unictype/property-changes-when-titlecased: New file.
10367         * lib/unictype/pr_changes_when_titlecased.c: New file.
10368         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10369         generated by gen-uni-tables.
10370         * modules/unictype/property-changes-when-titlecased-tests: New file.
10371         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10372         automatically generated by gen-uni-tables.
10373
10374         New module 'unictype/property-changes-when-uppercased'.
10375         * modules/unictype/property-changes-when-uppercased: New file.
10376         * lib/unictype/pr_changes_when_uppercased.c: New file.
10377         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10378         generated by gen-uni-tables.
10379         * modules/unictype/property-changes-when-uppercased-tests: New file.
10380         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10381         automatically generated by gen-uni-tables.
10382
10383         New module 'unictype/property-changes-when-lowercased'.
10384         * modules/unictype/property-changes-when-lowercased: New file.
10385         * lib/unictype/pr_changes_when_lowercased.c: New file.
10386         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10387         generated by gen-uni-tables.
10388         * modules/unictype/property-changes-when-lowercased-tests: New file.
10389         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10390         automatically generated by gen-uni-tables.
10391
10392         New module 'unictype/property-case-ignorable'.
10393         * modules/unictype/property-case-ignorable: New file.
10394         * lib/unictype/pr_case_ignorable.c: New file.
10395         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10396         by gen-uni-tables.
10397         * modules/unictype/property-case-ignorable-tests: New file.
10398         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10399         generated by gen-uni-tables.
10400
10401         New module 'unictype/property-cased'.
10402         * modules/unictype/property-cased: New file.
10403         * lib/unictype/pr_cased.c: New file.
10404         * lib/unictype/pr_cased.h: New file, automatically generated by
10405         gen-uni-tables.
10406         * modules/unictype/property-cased-tests: New file.
10407         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10408         gen-uni-tables.
10409
10410 2011-01-09  Bruno Haible  <bruno@clisp.org>
10411
10412         Update to Unicode 5.2.0.
10413         * lib/gen-uni-tables.c (output_predicate, output_category,
10414         output_combclass, output_bidi_category, output_decimal_digit_test,
10415         output_decimal_digit, output_digit_test, output_digit,
10416         output_numeric_test, output_numeric, output_mirror, output_scripts,
10417         output_scripts_byname, output_blocks, output_ident_category): Fix
10418         comment header.
10419         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10420         get_wbp.
10421         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10422         items.
10423         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10424         Changes_When_Lowercased, Changes_When_Uppercased,
10425         Changes_When_Titlecased, Changes_When_Casefolded,
10426         Changes_When_Casemapped.
10427         (is_property_alphabetic, is_property_default_ignorable_code_point):
10428         Update for Unicode 5.2.0.
10429         (is_property_cased, is_property_case_ignorable,
10430         is_property_changes_when_lowercased,
10431         is_property_changes_when_uppercased,
10432         is_property_changes_when_titlecased,
10433         is_property_changes_when_casefolded,
10434         is_property_changes_when_casemapped): New functions.
10435         (output_properties): Output also the properties cased, case_ignorable,
10436         changes_when_lowercased, changes_when_uppercased,
10437         changes_when_titlecased, changes_when_casefolded,
10438         changes_when_casemapped.
10439         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10440         Unicode TR#11 revision 17 -> 19.
10441         (LBP_CP): New enumeration value.
10442         (LBP_*): Adjust values accordingly.
10443         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10444         TR#14 revision 22 -> 24.
10445         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10446         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10447         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10448         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10449         is_WBP_MIDLETTER.
10450         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10451         the code1 and code2 of each composition rule.
10452         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10453         * lib/unicase/ignorable.h: Likewise.
10454         * lib/unicase/tocasefold.h: Likewise.
10455         * lib/unicase/tolower.h: Likewise.
10456         * lib/unicase/totitle.h: Likewise.
10457         * lib/unicase/toupper.h: Likewise.
10458         * lib/unictype/bidi_of.h: Likewise.
10459         * lib/unictype/blocks.h: Likewise.
10460         * lib/unictype/categ_C.h: Likewise.
10461         * lib/unictype/categ_Cf.h: Likewise.
10462         * lib/unictype/categ_Cn.h: Likewise.
10463         * lib/unictype/categ_L.h: Likewise.
10464         * lib/unictype/categ_Ll.h: Likewise.
10465         * lib/unictype/categ_Lm.h: Likewise.
10466         * lib/unictype/categ_Lo.h: Likewise.
10467         * lib/unictype/categ_Lu.h: Likewise.
10468         * lib/unictype/categ_M.h: Likewise.
10469         * lib/unictype/categ_Mc.h: Likewise.
10470         * lib/unictype/categ_Mn.h: Likewise.
10471         * lib/unictype/categ_N.h: Likewise.
10472         * lib/unictype/categ_Nd.h: Likewise.
10473         * lib/unictype/categ_Nl.h: Likewise.
10474         * lib/unictype/categ_No.h: Likewise.
10475         * lib/unictype/categ_P.h: Likewise.
10476         * lib/unictype/categ_Pd.h: Likewise.
10477         * lib/unictype/categ_Po.h: Likewise.
10478         * lib/unictype/categ_S.h: Likewise.
10479         * lib/unictype/categ_Sc.h: Likewise.
10480         * lib/unictype/categ_So.h: Likewise.
10481         * lib/unictype/categ_of.h: Likewise.
10482         * lib/unictype/combining.h: Likewise.
10483         * lib/unictype/ctype_alnum.h: Likewise.
10484         * lib/unictype/ctype_alpha.h: Likewise.
10485         * lib/unictype/ctype_graph.h: Likewise.
10486         * lib/unictype/ctype_lower.h: Likewise.
10487         * lib/unictype/ctype_print.h: Likewise.
10488         * lib/unictype/ctype_punct.h: Likewise.
10489         * lib/unictype/ctype_upper.h: Likewise.
10490         * lib/unictype/decdigit.h: Likewise.
10491         * lib/unictype/digit.h: Likewise.
10492         * lib/unictype/numeric.h: Likewise.
10493         * lib/unictype/pr_alphabetic.h: Likewise.
10494         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10495         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10496         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10497         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10498         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10499         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10500         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10501         * lib/unictype/pr_combining.h: Likewise.
10502         * lib/unictype/pr_composite.h: Likewise.
10503         * lib/unictype/pr_currency_symbol.h: Likewise.
10504         * lib/unictype/pr_dash.h: Likewise.
10505         * lib/unictype/pr_decimal_digit.h: Likewise.
10506         * lib/unictype/pr_deprecated.h: Likewise.
10507         * lib/unictype/pr_diacritic.h: Likewise.
10508         * lib/unictype/pr_extender.h: Likewise.
10509         * lib/unictype/pr_grapheme_base.h: Likewise.
10510         * lib/unictype/pr_grapheme_extend.h: Likewise.
10511         * lib/unictype/pr_grapheme_link.h: Likewise.
10512         * lib/unictype/pr_id_continue.h: Likewise.
10513         * lib/unictype/pr_id_start.h: Likewise.
10514         * lib/unictype/pr_ideographic.h: Likewise.
10515         * lib/unictype/pr_ignorable_control.h: Likewise.
10516         * lib/unictype/pr_logical_order_exception.h: Likewise.
10517         * lib/unictype/pr_lowercase.h: Likewise.
10518         * lib/unictype/pr_numeric.h: Likewise.
10519         * lib/unictype/pr_other_alphabetic.h: Likewise.
10520         * lib/unictype/pr_punctuation.h: Likewise.
10521         * lib/unictype/pr_sentence_terminal.h: Likewise.
10522         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10523         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10524         * lib/unictype/pr_unified_ideograph.h: Likewise.
10525         * lib/unictype/pr_uppercase.h: Likewise.
10526         * lib/unictype/pr_xid_continue.h: Likewise.
10527         * lib/unictype/pr_xid_start.h: Likewise.
10528         * lib/unictype/pr_zero_width.h: Likewise.
10529         * lib/unictype/scripts.h: Likewise.
10530         * lib/unictype/scripts_byname.gperf: Likewise.
10531         * lib/unictype/sy_java_ident.h: Likewise.
10532         * lib/unigbrk/gbrkprop.h: Likewise.
10533         * lib/unilbrk/lbrkprop1.h: Likewise.
10534         * lib/unilbrk/lbrkprop2.h: Likewise.
10535         * lib/unilbrk/lbrktables.h: Likewise.
10536         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
10537         LBP_CP. Implement rule LB30.
10538         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
10539         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
10540         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
10541         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
10542         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
10543         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
10544         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
10545         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
10546         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
10547         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
10548         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
10549         bits instead of 16 bits in the code1 and code2 of each composition
10550         rule.
10551         (uc_composition): Update for Unicode 5.2.0.
10552         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
10553         * lib/uninorm/decomposition-table2.h: Likewise.
10554         * lib/uniwbrk/wbrkprop.h: Likewise.
10555         * tests/unicase/test-cased.c: Likewise.
10556         * tests/unicase/test-ignorable.c: Likewise.
10557         * tests/unicase/test-uc_tolower.c: Likewise.
10558         * tests/unicase/test-uc_totitle.c: Likewise.
10559         * tests/unicase/test-uc_toupper.c: Likewise.
10560         * tests/unictype/test-categ_C.c: Likewise.
10561         * tests/unictype/test-categ_Cf.c: Likewise.
10562         * tests/unictype/test-categ_Cn.c: Likewise.
10563         * tests/unictype/test-categ_L.c: Likewise.
10564         * tests/unictype/test-categ_Ll.c: Likewise.
10565         * tests/unictype/test-categ_Lm.c: Likewise.
10566         * tests/unictype/test-categ_Lo.c: Likewise.
10567         * tests/unictype/test-categ_Lu.c: Likewise.
10568         * tests/unictype/test-categ_M.c: Likewise.
10569         * tests/unictype/test-categ_Mc.c: Likewise.
10570         * tests/unictype/test-categ_Mn.c: Likewise.
10571         * tests/unictype/test-categ_N.c: Likewise.
10572         * tests/unictype/test-categ_Nd.c: Likewise.
10573         * tests/unictype/test-categ_Nl.c: Likewise.
10574         * tests/unictype/test-categ_No.c: Likewise.
10575         * tests/unictype/test-categ_P.c: Likewise.
10576         * tests/unictype/test-categ_Pd.c: Likewise.
10577         * tests/unictype/test-categ_Po.c: Likewise.
10578         * tests/unictype/test-categ_S.c: Likewise.
10579         * tests/unictype/test-categ_Sc.c: Likewise.
10580         * tests/unictype/test-categ_So.c: Likewise.
10581         * tests/unictype/test-ctype_alnum.c: Likewise.
10582         * tests/unictype/test-ctype_alpha.c: Likewise.
10583         * tests/unictype/test-ctype_graph.c: Likewise.
10584         * tests/unictype/test-ctype_lower.c: Likewise.
10585         * tests/unictype/test-ctype_print.c: Likewise.
10586         * tests/unictype/test-ctype_punct.c: Likewise.
10587         * tests/unictype/test-ctype_upper.c: Likewise.
10588         * tests/unictype/test-decdigit.h: Likewise.
10589         * tests/unictype/test-digit.h: Likewise.
10590         * tests/unictype/test-numeric.h: Likewise.
10591         * tests/unictype/test-pr_alphabetic.c: Likewise.
10592         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10593         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10594         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10595         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10596         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10597         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10598         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10599         * tests/unictype/test-pr_combining.c: Likewise.
10600         * tests/unictype/test-pr_composite.c: Likewise.
10601         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10602         * tests/unictype/test-pr_dash.c: Likewise.
10603         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10604         * tests/unictype/test-pr_deprecated.c: Likewise.
10605         * tests/unictype/test-pr_diacritic.c: Likewise.
10606         * tests/unictype/test-pr_extender.c: Likewise.
10607         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10608         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10609         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10610         * tests/unictype/test-pr_id_continue.c: Likewise.
10611         * tests/unictype/test-pr_id_start.c: Likewise.
10612         * tests/unictype/test-pr_ideographic.c: Likewise.
10613         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10614         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10615         * tests/unictype/test-pr_lowercase.c: Likewise.
10616         * tests/unictype/test-pr_numeric.c: Likewise.
10617         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10618         * tests/unictype/test-pr_punctuation.c: Likewise.
10619         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10620         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10621         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10622         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10623         * tests/unictype/test-pr_uppercase.c: Likewise.
10624         * tests/unictype/test-pr_xid_continue.c: Likewise.
10625         * tests/unictype/test-pr_xid_start.c: Likewise.
10626         * tests/unictype/test-pr_zero_width.c: Likewise.
10627         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10628         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10629         changed behaviour: line breaking is now disallowed between a letter
10630         or '=' and '('.
10631         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10632         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10633         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10634         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10635         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10636         lib/uniwidth/width.c.
10637         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
10638         without comments, but with the original copyright notice.
10639         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10640         changes.
10641         * lib/unictype/categ_Cc.h: Likewise.
10642         * lib/unictype/categ_Co.h: Likewise.
10643         * lib/unictype/categ_Cs.h: Likewise.
10644         * lib/unictype/categ_Lt.h: Likewise.
10645         * lib/unictype/categ_Me.h: Likewise.
10646         * lib/unictype/categ_Pc.h: Likewise.
10647         * lib/unictype/categ_Pe.h: Likewise.
10648         * lib/unictype/categ_Pf.h: Likewise.
10649         * lib/unictype/categ_Pi.h: Likewise.
10650         * lib/unictype/categ_Ps.h: Likewise.
10651         * lib/unictype/categ_Sk.h: Likewise.
10652         * lib/unictype/categ_Sm.h: Likewise.
10653         * lib/unictype/categ_Z.h: Likewise.
10654         * lib/unictype/categ_Zl.h: Likewise.
10655         * lib/unictype/categ_Zp.h: Likewise.
10656         * lib/unictype/categ_Zs.h: Likewise.
10657         * lib/unictype/ctype_blank.h: Likewise.
10658         * lib/unictype/ctype_cntrl.h: Likewise.
10659         * lib/unictype/ctype_digit.h: Likewise.
10660         * lib/unictype/ctype_space.h: Likewise.
10661         * lib/unictype/ctype_xdigit.h: Likewise.
10662         * lib/unictype/mirror.h: Likewise.
10663         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10664         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10665         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10666         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10667         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10668         * lib/unictype/pr_bidi_control.h: Likewise.
10669         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10670         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10671         * lib/unictype/pr_bidi_pdf.h: Likewise.
10672         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10673         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10674         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10675         * lib/unictype/pr_format_control.h: Likewise.
10676         * lib/unictype/pr_hex_digit.h: Likewise.
10677         * lib/unictype/pr_hyphen.h: Likewise.
10678         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10679         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10680         * lib/unictype/pr_iso_control.h: Likewise.
10681         * lib/unictype/pr_join_control.h: Likewise.
10682         * lib/unictype/pr_left_of_pair.h: Likewise.
10683         * lib/unictype/pr_line_separator.h: Likewise.
10684         * lib/unictype/pr_math.h: Likewise.
10685         * lib/unictype/pr_non_break.h: Likewise.
10686         * lib/unictype/pr_not_a_character.h: Likewise.
10687         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10688         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10689         * lib/unictype/pr_other_id_continue.h: Likewise.
10690         * lib/unictype/pr_other_id_start.h: Likewise.
10691         * lib/unictype/pr_other_lowercase.h: Likewise.
10692         * lib/unictype/pr_other_math.h: Likewise.
10693         * lib/unictype/pr_other_uppercase.h: Likewise.
10694         * lib/unictype/pr_paired_punctuation.h: Likewise.
10695         * lib/unictype/pr_paragraph_separator.h: Likewise.
10696         * lib/unictype/pr_pattern_syntax.h: Likewise.
10697         * lib/unictype/pr_pattern_white_space.h: Likewise.
10698         * lib/unictype/pr_private_use.h: Likewise.
10699         * lib/unictype/pr_quotation_mark.h: Likewise.
10700         * lib/unictype/pr_radical.h: Likewise.
10701         * lib/unictype/pr_soft_dotted.h: Likewise.
10702         * lib/unictype/pr_space.h: Likewise.
10703         * lib/unictype/pr_titlecase.h: Likewise.
10704         * lib/unictype/pr_variation_selector.h: Likewise.
10705         * lib/unictype/pr_white_space.h: Likewise.
10706         * lib/unictype/sy_c_ident.h: Likewise.
10707         * lib/unictype/sy_c_whitespace.h: Likewise.
10708         * lib/unictype/sy_java_whitespace.h: Likewise.
10709         * modules/uni*/*: Bump version number of expected libunistring version.
10710         Reported by Simon Josefsson.
10711
10712 2011-01-09  Karl Heuer  <kwzh@gnu.org>
10713
10714         useless-if-before-free: fix typo in --help and make the internal,
10715         automatic version date update process work once again.
10716         --help output contained a NUL character instead of the
10717         backslash-zero that was intended.  Also, the "must lie within
10718         the first 8 lines" line is on line 9, and hence not getting
10719         automatically updated.
10720         * build-aux/useless-if-before-free: Fix the former by adding a
10721         backslash, and the latter by condensing the three lines of what-it-does
10722         to a single line, leaving one line of slack for the future.
10723
10724 2011-01-09  Bruno Haible  <bruno@clisp.org>
10725
10726         uniwidth/width: Fix width of U+1D173..U+1D17A.
10727         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
10728         symbolic_width, output_width_property_test): New functions.
10729         (main): Invoke output_nonspacing_property, output_width_property_test.
10730         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
10731         U+1D173..U+1D17A.
10732         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
10733         1.
10734         * modules/uniwidth/*: Bump version number of expected libunistring
10735         version.
10736         * modules/unilbrk/*: Likewise.
10737
10738 2011-01-08  Bruno Haible  <bruno@clisp.org>
10739
10740         uninorm tests: Preserve copyright of Unicode data file.
10741         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
10742         Mention modifications.
10743
10744 2011-01-08  Bruno Haible  <bruno@clisp.org>
10745
10746         gen-uni-tables: Prepare for Unicode 5.2.0.
10747         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
10748         (debug_output_lbp, output_lbp): Update.
10749
10750 2011-01-08  Bruno Haible  <bruno@clisp.org>
10751
10752         unilbrk: Clarify gen-uni-tables.c code.
10753         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
10754         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
10755         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
10756
10757 2011-01-07  Bruno Haible  <bruno@clisp.org>
10758
10759         strtod: Restore errno when successfully parsing Infinity or NaN.
10760         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
10761         restore the original errno.
10762
10763 2011-01-07  Bruno Haible  <bruno@clisp.org>
10764
10765         remove test: Avoid failure on HP-UX 11.
10766         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
10767
10768 2011-01-07  Bruno Haible  <bruno@clisp.org>
10769
10770         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
10771         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
10772         error code.
10773
10774 2011-01-07  Pádraig Brady <P@draigBrady.com>
10775
10776         ignore-value: fixup comments, and add Eric Blake
10777         as an author since he rewrote the macros.
10778         * lib/ignore-value.h (ignore_value):  State that
10779         we now support aggregates.  Also specify exactly
10780         when the GCC warn_unused_result feature was added.
10781
10782 2011-01-06  Eric Blake  <eblake@redhat.com>
10783
10784         ignore-value: support aggregate types
10785         * lib/ignore-value.h (ignore_value): Provide separate gcc
10786         definition.
10787         * modules/ignore-value-tests: New test module.
10788         * tests/test-ignore-value.c: New test.
10789
10790         maint.mk: improve sc_prohibit_strcmp regex
10791         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
10792         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
10793         definition of STRNEQ.
10794
10795         signal: work around Haiku issue with SIGBUS
10796         * lib/siglist.h: Add comment.
10797         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
10798         strsignal's favoring of SIGSEGV.
10799         * tests/test-signal.c (main): Avoid test failure.
10800         * doc/posix-headers/signal.texi (signal.h): Document the issue.
10801         Reported by Scott McCreary.
10802
10803         maint.mk: add pre-release check to ensure submodule commits are public
10804         * top/maint.mk (public-submodule-commit): New rule.
10805         (submodule-checks): New variable.
10806         (alpha beta stable): Depend on the variable.
10807
10808 2011-01-05  Pádraig Brady <P@draigBrady.com>
10809         and Jim Meyering  <meyering@redhat.com>
10810
10811         ignore-value: make ignore_value more generic; deprecate ignore_ptr
10812         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
10813         (ATTRIBUTE_DEPRECATED): Define.
10814         (_ignore_case): New function.
10815         (ignore_value): New macro, to replace the old function.
10816         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
10817         * modules/ignore-value (Depends-on): Add stdint.
10818
10819 2011-01-04  Eric Blake  <eblake@redhat.com>
10820
10821         doc: regenerate INSTALL
10822         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
10823         @firstparagraphindent support, now that autoconf dropped it.
10824         (INSTALL_PRELUDE): Reinstate old macro.
10825         * doc/install.texi: Resync from autoconf.
10826         * doc/INSTALL: Reflect recent autoconf update.
10827         * doc/INSTALL.ISO: Likewise.
10828         * doc/INSTALL.UTF-8: Likewise.
10829         Reported by Karl Berry.
10830
10831 2011-01-04  Bruce Korb  <address@hidden>
10832
10833         git-version-gen: avoid a sub-shell
10834         * build-aux/git-version-gen: Redirect stderr in `...` via
10835         "exec 2>...", rather than via an added sub-shell.
10836
10837 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
10838
10839         git-version-gen: use (...) rather than sh -c '...'
10840         * build-aux/git-version-gen: Rather than hard-coding a shell's name
10841         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
10842
10843 2011-01-03  Jim Meyering  <meyering@redhat.com>
10844
10845         git-version-gen: convert leading TABs to spaces
10846         * build-aux/git-version-gen: Expand leading TABs.
10847
10848         git-version-gen: handle failed "git rev-list"
10849         * build-aux/git-version-gen: Rather than leaking a "fatal" error
10850         from git and proceeding as if it had succeeded but printed no SHA1
10851         checksums, suppress the diagnostic and handle the failure.
10852         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
10853
10854         git-version-gen: include command name in one more diagnostic
10855         * build-aux/git-version-gen: When the required .tarball-version file
10856         was missing or unreadable, you might see the diagnostic from "cat",
10857         but no trace of the name of the invoking script.  Now, you still see
10858         the diagnostic from cat, but also get one from "git-version-gen: ".
10859         Inspired by a patch from Bruce Korb.
10860
10861         update-copyright: adjust test to match changed code
10862         * tests/test-update-copyright.sh: Change test's expected output
10863         to match new actual output.
10864
10865 2011-01-02  Bruno Haible  <bruno@clisp.org>
10866
10867         getlogin_r: Avoid test failure on HP-UX 11.
10868         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
10869         ERANGE when the second argument is zero.
10870         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
10871         portability problem.
10872
10873 2011-01-02  Bruce Korb  <bkorb@gnu.org>
10874
10875         * build-aux/update-copyright: doc Simon's changes
10876
10877 2011-01-02  Simon Josefsson  <simon@josefsson.org>
10878
10879         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
10880         environment variable.
10881
10882 2011-01-02  Bruno Haible  <bruno@clisp.org>
10883
10884         unigbrk: Avoid gcc warnings.
10885         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
10886         unused variable.
10887         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
10888         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
10889         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
10890         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
10891         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
10892         Change type of first argument to 'const char *'.
10893         (main): Remove unused variable.
10894         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
10895         type of first argument to 'const char *'.
10896         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
10897         Likewise.
10898         (main): Change type of variable 's'.
10899         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
10900         to 'int'.
10901
10902 2011-01-02  Bruno Haible  <bruno@clisp.org>
10903
10904         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
10905         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
10906         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
10907         bug.
10908         * lib/pwrite.c: Undo 2010-12-31 patch.
10909         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
10910
10911 2011-01-02  Bruno Haible  <bruno@clisp.org>
10912
10913         pread: Fix test whether it works.
10914         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
10915
10916 2011-01-02  Bruno Haible  <bruno@clisp.org>
10917
10918         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
10919         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
10920         ends in "6". Don't require a specific month name. Try also the locale
10921         names found on HP-UX 11 and Solaris 7.
10922
10923 2011-01-02  Bruno Haible  <bruno@clisp.org>
10924
10925         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
10926         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
10927         C linkage.
10928         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
10929
10930 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10931
10932         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
10933         for consistency, since the "cluster" term is not used elsewhere.
10934         * lib/unigbrk.in.h: Update name.
10935         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
10936         * lib/unigbrk/u16-grapheme-next.c: Update name.
10937         * lib/unigbrk/u16-grapheme-prev.c: Update name.
10938         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
10939         * lib/unigbrk/u32-grapheme-next.c: Update name.
10940         * lib/unigbrk/u32-grapheme-prev.c: Update name.
10941         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
10942         * lib/unigbrk/u8-grapheme-next.c: Update name.
10943         * lib/unigbrk/u8-grapheme-prev.c: Update name.
10944         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
10945         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
10946         Suggested by Bruno Haible.
10947
10948 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10949
10950         Remove module 'u8-grapheme-len' as too redundant with
10951         'u8-grapheme-next'.
10952         * modules/unigbrk/u8-grapheme-len: Delete file.
10953         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
10954         * lib/unigbrk.in.h: Remove prototype for deleted function.
10955         * lib/unigbrk/u8-grapheme-len.c: Delete file.
10956         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
10957
10958         Remove module 'u16-grapheme-len' as too redundant with
10959         'u16-grapheme-next'.
10960         * modules/unigbrk/u16-grapheme-len: Delete file.
10961         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
10962         * lib/unigbrk.in.h: Remove prototype for deleted function.
10963         * lib/unigbrk/u16-grapheme-len.c: Delete file.
10964         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
10965
10966         Remove module 'u32-grapheme-len' as too redundant with
10967         'u32-grapheme-next'.
10968         * modules/unigbrk/u32-grapheme-len: Delete file.
10969         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
10970         * lib/unigbrk.in.h: Remove prototype for deleted function.
10971         * lib/unigbrk/u32-grapheme-len.c: Delete file.
10972         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
10973
10974         Suggested by Bruno Haible.
10975
10976 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10977
10978         * unigbrk.in.h: Fix typo: "ben" => "been".
10979         Reported by Bruno Haible.
10980
10981 2011-01-01  Jim Meyering  <meyering@redhat.com>
10982
10983         maint: update almost all copyright ranges to include 2011
10984         Run the new "make update-copyright" rule.
10985
10986 2011-01-01  Jim Meyering  <meyering@redhat.com>
10987
10988         maint: update-copyright: exempt doc/INSTALL*
10989         * Makefile (update-copyright): Also exclude doc/INSTALL*,
10990         since they are generated.  Suggested by Bruno Haible.
10991
10992 2011-01-01  Jim Meyering  <meyering@redhat.com>
10993
10994         maint: refine the update-copyright rule
10995         * Makefile (update-copyright): Also exclude any file that includes
10996         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
10997         code that merely generates the comment.
10998
10999 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11000
11001         New module 'u8-grapheme-len'.
11002         * modules/unigbrk/u8-grapheme-len: New file.
11003         * modules/unigbrk/u8-grapheme-len-tests: New file.
11004         * lib/unigbrk.in.h: Add prototype for new function.
11005         * lib/unigbrk/u8-grapheme-len.c: New file.
11006         * tests/unigbrk/test-u8-grapheme-len.c: New file.
11007
11008         New module 'u16-grapheme-len'.
11009         * modules/unigbrk/u16-grapheme-len: New file.
11010         * modules/unigbrk/u16-grapheme-len-tests: New file.
11011         * lib/unigbrk.in.h: Add prototype for new function.
11012         * lib/unigbrk/u16-grapheme-len.c: New file.
11013         * tests/unigbrk/test-u16-grapheme-len.c: New file.
11014
11015         New module 'u32-grapheme-len'.
11016         * modules/unigbrk/u32-grapheme-len: New file.
11017         * modules/unigbrk/u32-grapheme-len-tests: New file.
11018         * lib/unigbrk.in.h: Add prototype for new function.
11019         * lib/unigbrk/u32-grapheme-len.c: New file.
11020         * tests/unigbrk/test-u32-grapheme-len.c: New file.
11021
11022         New module 'u8-grapheme-next'.
11023         * modules/unigbrk/u8-grapheme-next: New file.
11024         * modules/unigbrk/u8-grapheme-next-tests: New file.
11025         * lib/unigbrk.in.h: Add prototype for new function.
11026         * lib/unigbrk/u8-grapheme-next.c: New file.
11027         * tests/unigbrk/test-u8-grapheme-next.c: New file.
11028
11029         New module 'u16-grapheme-next'.
11030         * modules/unigbrk/u16-grapheme-next: New file.
11031         * modules/unigbrk/u16-grapheme-next-tests: New file.
11032         * lib/unigbrk.in.h: Add prototype for new function.
11033         * lib/unigbrk/u16-grapheme-next.c: New file.
11034         * tests/unigbrk/test-u16-grapheme-next.c: New file.
11035
11036         New module 'u32-grapheme-next'.
11037         * modules/unigbrk/u32-grapheme-next: New file.
11038         * modules/unigbrk/u32-grapheme-next-tests: New file.
11039         * lib/unigbrk.in.h: Add prototype for new function.
11040         * lib/unigbrk/u32-grapheme-next.c: New file.
11041         * tests/unigbrk/test-u32-grapheme-next.c: New file.
11042
11043         New module 'u8-grapheme-prev'.
11044         * modules/unigbrk/u8-grapheme-prev: New file.
11045         * modules/unigbrk/u8-grapheme-prev-tests: New file.
11046         * lib/unigbrk.in.h: Add prototype for new function.
11047         * lib/unigbrk/u8-grapheme-prev.c: New file.
11048         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
11049
11050         New module 'u16-grapheme-prev'.
11051         * modules/unigbrk/u16-grapheme-prev: New file.
11052         * modules/unigbrk/u16-grapheme-prev-tests: New file.
11053         * lib/unigbrk.in.h: Add prototype for new function.
11054         * lib/unigbrk/u16-grapheme-prev.c: New file.
11055         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
11056
11057         New module 'u32-grapheme-prev'.
11058         * modules/unigbrk/u32-grapheme-prev: New file.
11059         * modules/unigbrk/u32-grapheme-prev-tests: New file.
11060         * lib/unigbrk.in.h: Add prototype for new function.
11061         * lib/unigbrk/u32-grapheme-prev.c: New file.
11062         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
11063
11064         New module 'u8-grapheme-breaks'.
11065         * modules/unigbrk/u8-grapheme-breaks: New file.
11066         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
11067         * lib/unigbrk.in.h: Add prototype for new function.
11068         * lib/unigbrk/u8-grapheme-breaks.c: New file.
11069         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
11070
11071         New module 'u16-grapheme-breaks'.
11072         * modules/unigbrk/u16-grapheme-breaks: New file.
11073         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
11074         * lib/unigbrk.in.h: Add prototype for new function.
11075         * lib/unigbrk/u16-grapheme-breaks.c: New file.
11076         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
11077
11078         New module 'u32-grapheme-breaks'.
11079         * modules/unigbrk/u32-grapheme-breaks: New file.
11080         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
11081         * lib/unigbrk.in.h: Add prototype for new function.
11082         * lib/unigbrk/u32-grapheme-breaks.c: New file.
11083         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
11084
11085         New module 'ulc-grapheme-breaks'.
11086         * modules/unigbrk/ulc-grapheme-breaks: New file.
11087         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
11088         * m4/locale-ar.m4: New file.
11089         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
11090         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
11091         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
11092
11093 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11094
11095         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
11096         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
11097         modified how this file was generated before I initially submitted
11098         the module, but failed to regenerate it.  This meant that several
11099         of the level2 entries were wrong.
11100         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
11101         Remove the division-by-2 that is folded into the table now that
11102         gbrkprop.h has been regenerated properly.  Now -1 entries are
11103         handled correctly.
11104
11105         New module 'unigbrk/uc-gbrk-prop-tests'.
11106         * modules/unigbrk/uc-gbrk-prop-tests: New file.
11107         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
11108         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
11109         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
11110
11111 2011-01-01  Bruno Haible  <bruno@clisp.org>
11112
11113         Avoid use of hexadecimal escapes.
11114         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
11115         instead of hexadecimal escapes.
11116
11117 2011-01-01  Jim Meyering  <meyering@redhat.com>
11118
11119         maint: new rule to update copyright year ranges
11120         * Makefile (update-copyright): New rule.
11121
11122         maint: indent with TABs in Makefile
11123         * Makefile: Expand leading sequences of spaces to TABs
11124
11125         version-etc: update the copyright year it reports
11126         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
11127
11128 2010-12-31  Bruno Haible  <bruno@clisp.org>
11129
11130         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
11131         * lib/isfinite.c (zerof, zerod, zerol): New variables.
11132         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
11133         zero.
11134
11135 2010-12-31  Bruno Haible  <bruno@clisp.org>
11136
11137         pwrite: Work around HP-UX 11.11 bug.
11138         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
11139         works and set REPLACE_PWRITE if not.
11140         * lib/pwrite.c (pwrite): Add an implementation that uses the system
11141         function.
11142         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
11143
11144 2010-12-31  Bruno Haible  <bruno@clisp.org>
11145
11146         pread: Work around HP-UX 11 bugs.
11147         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
11148         and set REPLACE_PREAD if not.
11149         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
11150
11151 2010-12-31  Eric Blake  <eblake@redhat.com>
11152
11153         nl_langinfo: fix YESEXPR on Irix 6.5
11154         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
11155         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
11156         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
11157         it.
11158
11159 2010-12-31  Bruno Haible  <bruno@clisp.org>
11160
11161         iconv: Document HP-UX 11 bug.
11162         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
11163
11164 2010-12-31  Bruno Haible  <bruno@clisp.org>
11165
11166         ldexpl: Fix link error on HP-UX 11.
11167         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
11168         LDEXPL_LIBM, using $ISNANL_LIBM.
11169
11170 2010-12-31  Eric Blake  <eblake@redhat.com>
11171
11172         ftello: avoid compilation failure with SunStudio c89
11173         * lib/ftello.c (ftello): Use lseek, not llseek.
11174
11175         tests: avoid failing coreutils tests on cygwin
11176         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
11177         (create_exe_shims_): Return 0 when skipping.
11178
11179 2010-12-31  Bruno Haible  <bruno@clisp.org>
11180
11181         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
11182         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
11183
11184 2010-12-31  Bruno Haible  <bruno@clisp.org>
11185
11186         waitpid: Fix link error in C++ mode.
11187         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
11188
11189 2010-12-31  Bruno Haible  <bruno@clisp.org>
11190
11191         isnan: Use GCC built-ins when possible.
11192         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
11193         __builtin_isnan.
11194         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
11195         (isnan): Define using GCC built-ins for GCC >= 4.0.
11196
11197 2010-12-31  Bruno Haible  <bruno@clisp.org>
11198
11199         isnand: Fix mistake.
11200         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
11201         __builtin_isnand.
11202
11203 2010-12-31  Bruno Haible  <bruno@clisp.org>
11204
11205         open: Avoid C++ error on HP-UX 11.
11206         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
11207
11208 2010-12-31  Bruno Haible  <bruno@clisp.org>
11209
11210         time_r: Add missing declarations on HP-UX 11.
11211         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
11212         instead of HAVE_LOCALTIME_R.
11213         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
11214         HAVE_LOCALTIME_R always.
11215         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
11216         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
11217         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
11218         HAVE_LOCALTIME_R.
11219         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
11220         * doc/posix-functions/localtime_r.texi: Likewise.
11221
11222 2010-12-29  Eric Blake  <eblake@redhat.com>
11223
11224         mountlist: tweak previous commit
11225         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
11226         Reported by Paul Eggert.
11227
11228         mountlist: fix local drive detection on cygwin
11229         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
11230         that works for cygwin.
11231
11232 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11233
11234         ftoastr, snprintf: ftoastr + snprintf module
11235         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
11236         since the snprintf module now should be good enough here.
11237         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
11238         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
11239         and gl_MODULE_INDICATOR([snprintf]), but the former enables
11240         GNULIB_SNPRINTF only for the test directory, and the latter
11241         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
11242         seems to suffice by itself.
11243
11244 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11245
11246         alloca: one step towards thread-safety
11247         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
11248         need for a static variable.  All callers changed.  This does not
11249         make the alloca replacement thread-safe, but it's one step.
11250
11251         tests: minor indenting change
11252         * tests/init.sh: Sync from coreutils housekeeping patch
11253         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11254         to keep lines within 80 columns.
11255
11256 2010-12-28  Jim Meyering  <meyering@redhat.com>
11257
11258         regex: don't infloop on persistent failing calloc
11259         * lib/regexec.c (build_trtable): Return failure indication upon
11260         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11261         In glibc, this was fixed for version 2.13:
11262         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11263
11264 2010-12-28  Bruno Haible  <bruno@clisp.org>
11265             Paul Eggert <eggert@cs.ucla.edu>
11266
11267         linkat: Make implementation robust against system behaviour variations.
11268         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11269         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11270         way, and to -2 if it needs a generic runtime test.
11271         * lib/linkat.c (solaris_optimized_link_immediate,
11272         solaris_optimized_link_follow): New functions.
11273         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11274         (check_same_link): Use it.
11275
11276 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11277
11278         New module 'unigbrk/base'.
11279         * modules/unigbrk/base: New file.
11280         * lib/unigbrk.in.h: New file.
11281
11282         New module 'unigbrk/uc-gbrk-prop'.
11283         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11284         * modules/unigbrk/uc-gbrk-prop: New file.
11285         * lib/unigbrk/gbrkprop.h: New file.
11286         * lib/unigbrk/uc-gbrk-prop.c: New file.
11287
11288         New module 'unigbrk/uc-is-grapheme-break'.
11289         * modules/unigbrk/uc-is-grapheme-break: New file.
11290         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11291         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11292         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11293         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11294         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11295
11296         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11297
11298 2010-12-27  Bruno Haible  <bruno@clisp.org>
11299
11300         linkat test: Avoid failure on Solaris 11 2010-11.
11301         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11302
11303 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11304
11305         utimens: work around glibc rounding bug on more platforms
11306         * lib/utimens.c (fdutimens): Work around rounding bug even if
11307         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11308         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11309
11310 2010-12-27  Bruno Haible  <bruno@clisp.org>
11311
11312         select tests: Improve comments.
11313         * tests/test-select.c (do_select): Add comments.
11314
11315 2010-12-27  Bruno Haible  <bruno@clisp.org>
11316
11317         select tests: Safer way of handling timeout.
11318         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11319         at every invocation.
11320
11321 2010-12-27  Bruno Haible  <bruno@clisp.org>
11322
11323         select tests: Use 'bool' where appropriate.
11324         * tests/test-select.c (connect_to_socket): Change argument type to
11325         'bool'.
11326
11327 2010-12-27  Bruno Haible  <bruno@clisp.org>
11328
11329         select tests: Use existing modules.
11330         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11331         (configure.ac): Don't test for unistd.h.
11332         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11333         declared in <unistd.h>.
11334
11335 2010-12-27  Bruno Haible  <bruno@clisp.org>
11336
11337         mbrtowc: Work around a Solaris 7 bug.
11338         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11339         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11340         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11341         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11342         MBRTOWC_NULL_ARG1_BUG.
11343         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11344         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11345         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11346         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11347
11348 2010-12-27  Jim Meyering  <meyering@redhat.com>
11349
11350         read-file.c: tweak syntax
11351         * lib/read-file.c (fread_file): Remove space after "*" in function
11352         definitions.
11353
11354 2010-12-27  Bruno Haible  <bruno@clisp.org>
11355
11356         times test: Avoid gcc warnings on OSF/1.
11357         * tests/test-times.c (main): Cast printf arguments from clock_t to
11358         'long int'.
11359
11360 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11361
11362         utimens: work around glibc rounding bug on older Linux kernels
11363         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11364         on Linux with a glibc whose utimes might not work, then work
11365         around a longstanding glibc bug involving rounding rather than
11366         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11367         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11368
11369 2010-12-26  Bruno Haible  <bruno@clisp.org>
11370
11371         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11372         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11373         _GL_CXXALIAS_SYS.
11374         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11375
11376 2010-12-26  Bruno Haible  <bruno@clisp.org>
11377
11378         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11379         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11380         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11381         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11382         looking for the declaration.
11383         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11384         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11385         problem.
11386         * doc/posix-functions/inet_pton.texi: Likewise.
11387
11388 2010-12-26  Bruno Haible  <bruno@clisp.org>
11389
11390         arpa_inet: Use the common idioms with C++ support.
11391         * lib/arpa_inet.in.h: Include c++defs.h.
11392         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11393         support.
11394         * modules/arpa_inet (Depends-on): Add c++defs.
11395         (Makefile.am): Substitute the contents of c++defs.h.
11396         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11397         * modules/arpa_inet-c++-tests: New file.
11398         * tests/test-arpa_inet-c++.cc: New file.
11399
11400 2010-12-25  Bruno Haible  <bruno@clisp.org>
11401
11402         Fix more C++ link errors on Solaris 8.
11403         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11404         $(LIB_EACCESS).
11405         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11406         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11407         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11408         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11409         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11410
11411 2010-12-25  Bruno Haible  <bruno@clisp.org>
11412
11413         printf-posix: Fix link error when a non-GCC compiler is used.
11414         * lib/stdio.in.h (printf): When not using GCC, override printf
11415         correctly.
11416         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11417
11418 2010-12-25  Bruno Haible  <bruno@clisp.org>
11419
11420         strerror_r-posix: Update doc.
11421         * doc/posix-functions/strerror_r.texi: Update doc about the return
11422         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11423
11424 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11425
11426         utimens: simplify the logic of the previous change
11427         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11428         This should not affect whether the test succeeds or fails.
11429
11430         utimens: configure better on hosts with NFS clock skew
11431         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11432         uses the clock of the local host.  It might use the clock of the
11433         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11434         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11435
11436 2010-12-25  Bruno Haible  <bruno@clisp.org>
11437
11438         ptsname test: Avoid failure on Solaris.
11439         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11440         open a pseudo-terminal; don't use BSD-style ptys.
11441         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11442
11443 2010-12-25  Bruno Haible  <bruno@clisp.org>
11444
11445         ptsname: Avoid ERANGE failure on some systems.
11446         * lib/ptsname.c (buffer): Increase size.
11447
11448 2010-12-25  Bruno Haible  <bruno@clisp.org>
11449
11450         rename, renameat: Avoid test failures at NFS mounted locations.
11451         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11452         so that subsequent mkdir calls succeed.
11453
11454 2010-12-25  Bruno Haible  <bruno@clisp.org>
11455
11456         iswblank: Fix C++ link error on Solaris 8.
11457         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11458         _GL_FUNCDECL_SYS.
11459
11460 2010-12-25  Bruno Haible  <bruno@clisp.org>
11461
11462         unistd: Fix C++ link error on Solaris 8.
11463         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11464
11465 2010-12-25  Bruno Haible  <bruno@clisp.org>
11466
11467         readlink doc: Mention an old glibc bug.
11468         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11469
11470 2010-12-25  Bruno Haible  <bruno@clisp.org>
11471
11472         fcntl-h: Fix for use of C++ on glibc systems.
11473         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11474         also on glibc systems in C++ mode.
11475         Reported by Gary V. Vaughan <gary@gnu.org>.
11476
11477 2010-12-25  Bruno Haible  <bruno@clisp.org>
11478
11479         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11480         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
11481
11482 2010-12-25  Bruno Haible  <bruno@clisp.org>
11483
11484         truncl-ieee: Make it work on OSF/1 5.1 with cc.
11485         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
11486         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
11487         test whether truncl works according to ISO C 99 with IEC 60559.
11488         * m4/truncl-ieee.m4: New file.
11489         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
11490         m4/signbit.m4.
11491         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
11492
11493 2010-12-25  Bruno Haible  <bruno@clisp.org>
11494
11495         ceill-ieee: Make it work on OSF/1 5.1 with cc.
11496         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
11497         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
11498         test whether ceill works according to ISO C 99 with IEC 60559.
11499         * m4/ceill-ieee.m4: New file.
11500         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
11501         m4/signbit.m4.
11502         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11503
11504 2010-12-25  Bruno Haible  <bruno@clisp.org>
11505
11506         Ensure all prerequisites of <wchar.h> are included.
11507         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
11508         before <wchar.h>.
11509         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11510         gl_MBRLEN_NUL_RETVAL): Likewise.
11511         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11512         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
11513         AC_FUNC_MBRTOWC): Likewise.
11514         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11515         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11516         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11517         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11518         Likewise.
11519         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11520         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
11521         (gl_WCHAR_H): Improve comments.
11522         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11523
11524 2010-12-25  Bruno Haible  <bruno@clisp.org>
11525
11526         strtok_r: Fix C syntax error in autoconf macro.
11527         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
11528         characters in test program.
11529
11530 2010-12-24  Bruno Haible  <bruno@clisp.org>
11531
11532         ceil, trunc, round: Fix gcc warnings.
11533         * lib/ceil.c (MIN): Undefine before redefining.
11534         * lib/trunc.c (MIN): Likewise.
11535         * lib/round.c (MIN): Likewise.
11536         Include <math.h> first.
11537
11538 2010-12-24  Bruno Haible  <bruno@clisp.org>
11539
11540         select tests: Avoid failures on OSF/1 5.1.
11541         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
11542         failure of closing the last socket; it may fail with ECONNRESET.
11543
11544 2010-12-24  Eric Blake  <eblake@redhat.com>
11545
11546         stdint: avoid HP-UX 10.20 preprocessor bug
11547         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
11548         than #if.
11549         * tests/test-floor2.c (main): Likewise.
11550         Reported by Peter O'Gorman.
11551
11552         pipe: make obsoletion transition easier
11553         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
11554         * modules/pipe (Files): Include revived file.
11555         (Include): Drop reference, to mirror getdate's behavior.
11556
11557 2010-12-24  Bruno Haible  <bruno@clisp.org>
11558
11559         sys_socket: Hide mismatch of declarations on NonStop Kernel.
11560         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
11561         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11562         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11563
11564 2010-12-24  Bruno Haible  <bruno@clisp.org>
11565
11566         gethostname: Ensure declaration on NonStop Kernel.
11567         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11568         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11569
11570 2010-12-24  Bruno Haible  <bruno@clisp.org>
11571
11572         sys_select: Ensure all necessary types on NonStop Kernel.
11573         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11574         include <sys/time.h>.
11575         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11576         NonStop Kernel.
11577         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11578
11579 2010-12-24  Bruno Haible  <bruno@clisp.org>
11580
11581         sys_select: Remove unneeded include.
11582         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11583         have <sys/select.h>.
11584
11585 2010-12-24  Bruno Haible  <bruno@clisp.org>
11586
11587         gethostname: Provide a fallback for HOST_NAME_MAX.
11588         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11589         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11590         instead.
11591         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11592
11593 2010-12-24  Bruno Haible  <bruno@clisp.org>
11594
11595         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11596         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11597         (SA_RESTART): Likewise.
11598         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11599
11600 2010-12-24  Bruno Haible  <bruno@clisp.org>
11601
11602         signal: Define NSIG.
11603         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11604         * tests/test-signal.c (nsig): New variable.
11605         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11606
11607 2010-12-24  Bruno Haible  <bruno@clisp.org>
11608
11609         rename, renameat: Avoid test failures on OSF/1 5.1.
11610         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11611         alternative error codes.
11612         * tests/test-renameat.c (main): Likewise.
11613
11614 2010-12-24  Bruno Haible  <bruno@clisp.org>
11615
11616         *printf: Detect large precisions bug on Solaris 10/SPARC.
11617         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11618         by Paul Eggert.
11619         * tests/test-snprintf-posix.h (test_function): Add this test code here
11620         too.
11621         * tests/test-sprintf-posix.h (test_function): Likewise.
11622         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11623         * tests/test-vasprintf-posix.c (test_function): Likewise.
11624         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11625         around by gnulib.
11626         * doc/posix-functions/printf.texi: Likewise.
11627         * doc/posix-functions/snprintf.texi: Likewise.
11628         * doc/posix-functions/sprintf.texi: Likewise.
11629         * doc/posix-functions/vfprintf.texi: Likewise.
11630         * doc/posix-functions/vprintf.texi: Likewise.
11631         * doc/posix-functions/vsnprintf.texi: Likewise.
11632         * doc/posix-functions/vsprintf.texi: Likewise.
11633         * doc/posix-functions/dprintf.texi: Undo last commit.
11634         * doc/posix-functions/vdprintf.texi: Likewise.
11635
11636 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11637
11638         tests: port test-fdutimensat.c to Solaris 8
11639         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
11640         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
11641         On Solaris 8, it fails with errno == ENOSYS, because there is no
11642         futimens (so it can't use the fd), and there is no lutimens (so it
11643         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
11644
11645         vsnprintf: make more consistent with snprintf; doc fixes
11646
11647         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
11648         the byte count return problem was promoted from the snprintf-posix
11649         to the snprintf module.
11650         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11651         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
11652         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11653         * tests/test-snprintf.c (main): Check the byte count returned.
11654         * tests/test-vsnprintf.c (main): Likewise.
11655
11656 2010-12-23  Eric Blake  <eblake@redhat.com>
11657
11658         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
11659         * modules/sigpipe (License): Relax license.
11660
11661 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11662
11663         doc: document Solaris printf bug with large float precisions
11664         * doc/posix-functions/dprintf.texi (dprintf):
11665         * doc/posix-functions/fprintf.texi (fprintf):
11666         * doc/posix-functions/printf.texi (printf):
11667         * doc/posix-functions/snprintf.texi (snprintf):
11668         * doc/posix-functions/sprintf.texi (sprintf):
11669         * doc/posix-functions/vdprintf.texi (vdprintf):
11670         * doc/posix-functions/vfprintf.texi (vfprintf):
11671         * doc/posix-functions/vprintf.texi (vprintf):
11672         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11673         * doc/posix-functions/vsprintf.texi (vsprintf):
11674         Mention that these functions mishandle large floating point
11675         precisions on Solaris 10.  The same bug is also present in Solaris
11676         8, and I assume earlier.  This causes "cd gnulib-tests; make
11677         check" to fail on Solaris 8 (and I assume, later) when building
11678         the latest coreutils, in test-vasprintf-posix's call to
11679         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
11680         the wide flavors (e.g., wprintf) so this patch just updates the
11681         documentation for the narrow ones.
11682
11683         test-posixtm.c: add two tests
11684         * tests/test-posixtm.c: Add two tests, to highlight the
11685         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
11686         around this bug; this is merely to document it.
11687
11688 2010-12-22  Bruno Haible  <bruno@clisp.org>
11689
11690         getlogin_r: Work around portability problem on OSF/1.
11691         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
11692         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
11693         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
11694         test for a truncated result.
11695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
11696         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
11697         * modules/getlogin_r (Depends-on): Add memchr.
11698         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
11699
11700 2010-12-22  Bruno Haible  <bruno@clisp.org>
11701
11702         ptsname: Avoid test failure on OSF/1 5.1.
11703         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
11704         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
11705         (same_slave): New function.
11706         (main): Use it to compare ptsname's result with the expected file name.
11707
11708 2010-12-22  Bruno Haible  <bruno@clisp.org>
11709
11710         Port extended stdio modules to HP NonStop Kernel.
11711         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
11712         macros.
11713         * lib/fbufmode.c: Update comments.
11714         * lib/fflush.c: Likewise.
11715         * lib/fpurge.c: Likewise.
11716         * lib/freadable.c: Likewise.
11717         * lib/freadahead.c: Likewise.
11718         * lib/freading.c: Likewise.
11719         * lib/freadptr.c: Likewise.
11720         * lib/freadseek.c: Likewise.
11721         * lib/fseeko.c: Likewise.
11722         * lib/fseterr.c: Likewise.
11723         * lib/fwritable.c: Likewise.
11724         * lib/fwriting.c: Likewise.
11725         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11726
11727 2010-12-22  Bruno Haible  <bruno@clisp.org>
11728
11729         ttyname_r: Work around bug on OSF/1 5.1.
11730         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
11731         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
11732         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
11733         present.
11734         * lib/ttyname_r.c (ttyname_r): Update comments.
11735
11736 2010-12-22  Bruno Haible  <bruno@clisp.org>
11737
11738         round: Implement result sign according to IEEE 754.
11739         * lib/round.c (MIN, MINUS_ZERO): New macros.
11740         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
11741         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
11742         * tests/test-round-ieee.c (main): Likewise.
11743         * tests/test-roundl-ieee.c (main): Likewise.
11744
11745         trunc: Implement result sign according to IEEE 754.
11746         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
11747         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
11748         * tests/test-trunc2.c: Include minus-zero.h.
11749         (MINUS_ZERO): New macro.
11750         (trunc_reference): Keep in sync with lib/trunc.c.
11751         * tests/test-truncf2.c: Include minus-zero.h.
11752         (MINUS_ZERO): New macro.
11753         (truncf_reference): Keep in sync with lib/trunc.c.
11754         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
11755         * tests/test-trunc-ieee.c (main): Likewise.
11756         * tests/test-truncl-ieee.c (main): Likewise.
11757
11758         ceil: Implement result sign according to IEEE 754.
11759         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
11760         (FUNC): Return -0.0 for -1 < x < 0.
11761         * tests/test-ceil2.c: Include minus-zero.h.
11762         (MINUS_ZERO): New macro.
11763         (ceil_reference): Keep in sync with lib/ceil.c.
11764         * tests/test-ceilf2.c: Include minus-zero.h.
11765         (MINUS_ZERO): New macro.
11766         (ceilf_reference): Keep in sync with lib/ceil.c.
11767         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
11768         * tests/test-ceil-ieee.c (main): Likewise.
11769         * tests/test-ceill-ieee.c (main): Likewise.
11770
11771         floor: Implement result sign according to IEEE 754.
11772         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
11773         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
11774         * tests/test-floorf2.c (floorf_reference): Likewise.
11775         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
11776         * tests/test-floor-ieee.c (main): Likewise.
11777         * tests/test-floorl-ieee.c (main): Likewise.
11778
11779 2010-12-22  Bruno Haible  <bruno@clisp.org>
11780
11781         getaddrinfo: Update doc.
11782         * doc/posix-functions/gai_strerror.texi: Return type is also different
11783         on AIX and HP-UX.
11784
11785 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11786
11787         getaddrinfo, inet_ntop: Update doc for Solaris.
11788         * doc/posix-functions/gai_strerror.texi: Return type is also an
11789         issue on Solaris 9 and earlier.
11790         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
11791         on Solaris 10 and earlier.
11792
11793 2010-12-21  Bruno Haible  <bruno@clisp.org>
11794
11795         New module 'roundl-ieee'.
11796         * modules/roundl-ieee: New file.
11797         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
11798         test whether roundl works according to ISO C 99 with IEC 60559.
11799         * m4/roundl-ieee.m4: New file.
11800         * modules/roundl-ieee-tests: New file.
11801         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
11802         * tests/test-roundl.c (main): Remove signbit tests.
11803         * modules/roundl-tests (Depends-on): Remove signbit.
11804         * doc/posix-functions/roundl.texi: Mention the new module.
11805
11806 2010-12-21  Bruno Haible  <bruno@clisp.org>
11807
11808         New module 'truncl-ieee'.
11809         * modules/truncl-ieee: New file.
11810         * modules/truncl-ieee-tests: New file.
11811         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
11812         * tests/test-truncl.c (main): Remove signbit tests.
11813         * modules/truncl-tests (Depends-on): Remove signbit.
11814         * doc/posix-functions/truncl.texi: Mention the new module.
11815
11816 2010-12-21  Bruno Haible  <bruno@clisp.org>
11817
11818         New module 'ceill-ieee'.
11819         * modules/ceill-ieee: New file.
11820         * modules/ceill-ieee-tests: New file.
11821         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
11822         * tests/test-ceill.c (main): Remove signbit tests.
11823         * modules/ceill-tests (Depends-on): Remove signbit.
11824         * doc/posix-functions/ceill.texi: Mention the new module.
11825
11826 2010-12-21  Bruno Haible  <bruno@clisp.org>
11827
11828         New module 'floorl-ieee'.
11829         * modules/floorl-ieee: New file.
11830         * modules/floorl-ieee-tests: New file.
11831         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
11832         * tests/test-floorl.c (main): Remove signbit tests.
11833         * modules/floorl-tests (Depends-on): Remove signbit.
11834         * doc/posix-functions/floorl.texi: Mention the new module.
11835
11836 2010-12-21  Bruno Haible  <bruno@clisp.org>
11837
11838         New module 'round-ieee'.
11839         * modules/round-ieee: New file.
11840         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
11841         whether round works according to ISO C 99 with IEC 60559.
11842         * m4/round-ieee.m4: New file.
11843         * modules/round-ieee-tests: New file.
11844         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
11845         * tests/test-round1.c (main): Remove signbit tests.
11846         * modules/round-tests (Depends-on): Remove 'signbit'.
11847         * doc/posix-functions/round.texi: Mention the new module.
11848
11849 2010-12-21  Bruno Haible  <bruno@clisp.org>
11850
11851         New module 'trunc-ieee'.
11852         * modules/trunc-ieee: New file.
11853         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
11854         whether trunc works according to ISO C 99 with IEC 60559.
11855         * m4/trunc-ieee.m4: New file.
11856         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
11857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
11858         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
11859         * modules/trunc-ieee-tests: New file.
11860         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
11861         * tests/test-trunc1.c (main): Remove signbit tests.
11862         * modules/trunc-tests (Depends-on): Remove 'signbit'.
11863         * doc/posix-functions/trunc.texi: Mention the new module.
11864
11865 2010-12-21  Bruno Haible  <bruno@clisp.org>
11866
11867         New module 'ceil-ieee'.
11868         * modules/ceil-ieee: New file.
11869         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
11870         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
11871         ISO C 99 with IEC 60559.
11872         * m4/ceil-ieee.m4: New file.
11873         * modules/ceil (Files): Add lib/ceil.c.
11874         (Depends-on): Add 'float'.
11875         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11876         * lib/math.in.h (ceil): New declaration.
11877         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
11878         REPLACE_CEIL.
11879         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
11880         * modules/ceil-ieee-tests: New file.
11881         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
11882         * tests/test-math-c++.cc: Check the signature of 'ceil'.
11883         * doc/posix-functions/ceil.texi: Mention the new module.
11884
11885 2010-12-21  Bruno Haible  <bruno@clisp.org>
11886
11887         New module 'floor-ieee'.
11888         * modules/floor-ieee: New file.
11889         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
11890         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
11891         ISO C 99 with IEC 60559.
11892         * m4/floor-ieee.m4: New file.
11893         * modules/floor (Files): Add lib/floor.c.
11894         (Depends-on): Add 'float'.
11895         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11896         * lib/math.in.h (floor): New declaration.
11897         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
11898         REPLACE_FLOOR.
11899         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
11900         * modules/floor-ieee-tests: New file.
11901         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
11902         * tests/test-math-c++.cc: Check the signature of 'floor'.
11903         * doc/posix-functions/floor.texi: Mention the new module.
11904
11905 2010-12-21  Bruno Haible  <bruno@clisp.org>
11906
11907         New module 'roundf-ieee'.
11908         * modules/roundf-ieee: New file.
11909         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
11910         test whether roundf works according to ISO C 99 with IEC 60559.
11911         * m4/roundf-ieee.m4: New file.
11912         * modules/roundf-ieee-tests: New file.
11913         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
11914         * tests/test-roundf1.c (main): Remove signbit tests.
11915         * modules/roundf-tests (Depends-on): Remove 'signbit'.
11916         * doc/posix-functions/roundf.texi: Mention the new module.
11917
11918 2010-12-21  Bruno Haible  <bruno@clisp.org>
11919
11920         New module 'truncf-ieee'.
11921         * modules/truncf-ieee: New file.
11922         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
11923         test whether truncf works according to ISO C 99 with IEC 60559.
11924         * m4/truncf-ieee.m4: New file.
11925         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
11926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
11927         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
11928         * modules/truncf-ieee-tests: New file.
11929         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
11930         * tests/test-truncf1.c (main): Remove signbit tests.
11931         * modules/truncf-tests (Depends-on): Remove 'signbit'.
11932         * doc/posix-functions/truncf.texi: Mention the new module.
11933
11934 2010-12-21  Bruno Haible  <bruno@clisp.org>
11935
11936         New module 'ceilf-ieee'.
11937         * modules/ceilf-ieee: New file.
11938         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
11939         test whether ceilf works according to ISO C 99 with IEC 60559.
11940         * m4/ceilf-ieee.m4: New file.
11941         * modules/ceilf-ieee-tests: New file.
11942         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
11943         * tests/test-ceilf1.c (main): Remove signbit tests.
11944         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
11945         * doc/posix-functions/ceilf.texi: Mention the new module.
11946
11947 2010-12-21  Bruno Haible  <bruno@clisp.org>
11948
11949         New module 'floorf-ieee'.
11950         * modules/floorf-ieee: New file.
11951         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
11952         test whether floorf works according to ISO C 99 with IEC 60559.
11953         * m4/floorf-ieee.m4: New file.
11954         * modules/floorf-ieee-tests: New file.
11955         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
11956         * tests/test-floorf1.c (main): Remove signbit tests.
11957         * modules/floorf-tests (Depends-on): Remove 'signbit'.
11958         * doc/posix-functions/floorf.texi: Mention the new module.
11959
11960 2010-12-21  Bruno Haible  <bruno@clisp.org>
11961
11962         Support for minus zero in autoconf macros.
11963         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
11964         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
11965         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
11966         * tests/minus-zero.h: Update comments.
11967
11968 2010-12-21  Bruno Haible  <bruno@clisp.org>
11969
11970         Tests for module 'ceil'.
11971         * modules/ceil-tests: New file.
11972         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
11973         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
11974
11975 2010-12-21  Bruno Haible  <bruno@clisp.org>
11976
11977         Tests for module 'floor'.
11978         * modules/floor-tests: New file.
11979         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
11980         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
11981
11982 2010-12-21  Bruno Haible  <bruno@clisp.org>
11983
11984         math: Fix indentation.
11985         * lib/math.in.h (floorf): Fix indentation.
11986
11987 2010-12-21  Bruno Haible  <bruno@clisp.org>
11988
11989         Fix cross-compilation guesses on Solaris.
11990         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
11991         not match "solaris2.10".
11992         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11993         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
11994         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11995
11996 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
11997
11998         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
11999         This fixes a problem observed with the latest coreutils snapshot
12000         that caused a test to fail on Solaris 8.  src/csplit.c's call
12001         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
12002         earlier, instead of returning the number of bytes that would have
12003         been generated; this causes csplit to incorrectly report memory
12004         exhaustion.
12005         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
12006         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
12007         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
12008         comments to match.
12009         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
12010         Fix typo in matching older versions of Solaris: "solaris2.10"
12011         is matched by the shell pattern "solaris2.[0-9]*".  This matters
12012         only for guessing while cross-compiling.
12013         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
12014
12015 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12016
12017         ftoastr: fix comment again
12018         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12019         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
12020         Also, simplify example a bit by using flags = 0.
12021
12022 2010-12-20  Bruno Haible  <bruno@clisp.org>
12023
12024         round*, trunc*: Update documentation regarding glibc.
12025         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
12026         * doc/posix-functions/round.texi: Likewise.
12027         * doc/posix-functions/roundl.texi: Likewise.
12028         * doc/posix-functions/truncf.texi: Likewise.
12029         * doc/posix-functions/trunc.texi: Likewise.
12030         * doc/posix-functions/truncl.texi: Likewise.
12031
12032 2010-12-20  Bruno Haible  <bruno@clisp.org>
12033
12034         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
12035         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
12036         * doc/posix-functions/round.texi: Likewise.
12037         * doc/posix-functions/roundl.texi: Likewise.
12038
12039 2010-12-20  Bruno Haible  <bruno@clisp.org>
12040
12041         ttyname_r: Add missing declaration on HP-UX 11.
12042         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
12043         HAVE_TTYNAME_R.
12044         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
12045         declared. Set HAVE_TTYNAME_R always.
12046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12047         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
12048         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
12049         HAVE_TTYNAME_R.
12050         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
12051
12052 2010-12-20  Bruno Haible  <bruno@clisp.org>
12053
12054         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
12055         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
12056         * doc/posix-functions/getlogin_r.texi: Likewise.
12057         * tests/test-getlogin.c: Include <errno.h>.
12058         (main): Avoid test failure on HP-UX 11.11.
12059         * tests/test-getlogin_r.c (main): Likewise.
12060
12061 2010-12-20  Bruno Haible  <bruno@clisp.org>
12062
12063         getlogin_r: Add missing declaration on HP-UX 11.
12064         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
12065         declared also when it exists as a function.
12066         * doc/posix-functions/getlogin_r.texi: Document this workaround.
12067
12068 2010-12-20  Bruno Haible  <bruno@clisp.org>
12069
12070         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
12071         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
12072         through wcrtomb.
12073
12074 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12075
12076         ftoastr: fix comment
12077         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12078         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
12079
12080 2010-12-19  Bruno Haible  <bruno@clisp.org>
12081
12082         isnan: Ensure it is a macro.
12083         * lib/math.in.h (isnan): Define as a macro if not already a macro.
12084         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
12085         Solaris.
12086
12087 2010-12-19  Bruno Haible  <bruno@clisp.org>
12088
12089         ldexpl test: Fix link error on OSF/1 5.1.
12090         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
12091
12092 2010-12-19  Bruno Haible  <bruno@clisp.org>
12093
12094         wctype: Make it work in C++ mode on OSF/1 5.1.
12095         * lib/wctype.in.h (iswblank): Declare but not define here.
12096         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
12097         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
12098         * modules/wctype (Files): Add lib/iswblank.c.
12099
12100 2010-12-19  Bruno Haible  <bruno@clisp.org>
12101
12102         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
12103         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
12104         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
12105
12106 2010-12-19  Bruno Haible  <bruno@clisp.org>
12107
12108         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
12109         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
12110         _POSIX_PII_SOCKET.
12111         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
12112         * doc/posix-functions/recvfrom.texi: Likewise.
12113         * doc/posix-functions/send.texi: Likewise.
12114         * doc/posix-functions/sendto.texi: Likewise.
12115
12116 2010-12-19  Bruno Haible  <bruno@clisp.org>
12117
12118         tcgetsid: Add missing declaration on OSF/1 5.1.
12119         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
12120         HAVE_TCGETSID.
12121         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
12122         Don't set HAVE_TCGETSID.
12123         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
12124         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
12125         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
12126         HAVE_TCGETSID.
12127         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
12128
12129 2010-12-19  Bruno Haible  <bruno@clisp.org>
12130
12131         stdio: Fix problem with popen() declaration on OSF/1 5.1.
12132         * lib/stdio.in.h: During the include_next statement, let recursive
12133         includes of this file include only the system header file.
12134
12135 2010-12-19  Bruno Haible  <bruno@clisp.org>
12136
12137         iconv_open: Fix regression from 2010-12-04.
12138         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
12139         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
12140
12141 2010-12-19  Bruno Haible  <bruno@clisp.org>
12142
12143         stdbool test: Avoid a gcc warning.
12144         * tests/test-stdbool.c (main): Fail if e1 is false.
12145         Reported by Jim Meyering.
12146
12147 2010-12-19  Jim Meyering  <meyering@redhat.com>
12148
12149         setenv: restore to working order
12150         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
12151         mistakenly removed.
12152         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
12153         HAVE_SETENV.
12154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
12155         HAVE_SETENV.
12156
12157 2010-12-19  Bruno Haible  <bruno@clisp.org>
12158
12159         Document some different function declarations on OSF/1 5.1.
12160         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
12161         * doc/posix-functions/inet_ntop.texi: Likewise.
12162         * doc/posix-functions/gethostname.texi: Likewise.
12163         * lib/unistd.in.h (gethostname): Update comment.
12164
12165 2010-12-19  Bruno Haible  <bruno@clisp.org>
12166
12167         doc: Mention vasprintf-posix module.
12168         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
12169         the 'vasprintf-posix' module.
12170         * doc/glibc-functions/vasprintf.texi: Likewise.
12171
12172 2010-12-19  Bruno Haible  <bruno@clisp.org>
12173
12174         unsetenv: Add missing declaration on OSF/1 5.1.
12175         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
12176         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
12177         Don't set HAVE_UNSETENV. In the test program, set _BSD.
12178         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
12179         not HAVE_UNSETENV.
12180         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
12181         HAVE_UNSETENV.
12182         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
12183
12184 2010-12-19  Bruno Haible  <bruno@clisp.org>
12185
12186         setenv: Add missing declaration on OSF/1 5.1.
12187         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
12188         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
12189         declared. Don't set HAVE_SETENV.
12190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
12191         not HAVE_SETENV.
12192         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
12193         HAVE_SETENV.
12194         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
12195
12196 2010-12-19  Bruno Haible  <bruno@clisp.org>
12197
12198         nl_langinfo tests: Avoid gcc warning.
12199         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
12200
12201 2010-12-19  Bruno Haible  <bruno@clisp.org>
12202
12203         mknod: Avoid error in C++ mode on OSF/1 with GCC.
12204         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
12205         _GL_CXXALIAS_SYS.
12206
12207 2010-12-19  Bruno Haible  <bruno@clisp.org>
12208
12209         stdbool: Relax test.
12210         * tests/test-stdbool.c (e): Don't require that casts from a variable's
12211         address to 'bool' work in static initializer, for compilers other than
12212         GCC.
12213
12214 2010-12-19  Bruno Haible  <bruno@clisp.org>
12215
12216         ftello: Add missing declaration on OSF/1 5.1.
12217         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
12218         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
12219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
12220         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
12221         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
12222
12223 2010-12-19  Bruno Haible  <bruno@clisp.org>
12224
12225         fseeko: Add missing declaration on OSF/1 5.1.
12226         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
12227         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
12228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
12229         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
12230         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
12231
12232 2010-12-19  Bruno Haible  <bruno@clisp.org>
12233
12234         fchdir: Add missing declaration on OSF/1 5.1.
12235         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
12236         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
12237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
12238         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
12239         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
12240
12241 2010-12-19  Bruno Haible  <bruno@clisp.org>
12242
12243         relocatable-prog-wrapper: Separate from relocatable-prog.
12244         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
12245         uninstall-relocwrapper rule here.
12246         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
12247         Reported by Ian Beckwith <ianb@erislabs.net>.
12248
12249 2010-12-19  Bruno Haible  <bruno@clisp.org>
12250
12251         unistr/u8-mbsnlen: Add missing dependency.
12252         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12253         Reported by Ian Beckwith <ianb@erislabs.net>.
12254
12255 2010-12-19  Bruno Haible  <bruno@clisp.org>
12256
12257         iconv: Make it possible again to use this module without 'iconv-h'.
12258         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12259         if it is not defined.
12260         Reported by Ian Beckwith <ianb@erislabs.net>.
12261
12262 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12263
12264         acl: port to Solaris 8 when copying from tmpfs to ufs
12265         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12266         error number.  Problem observed on Solaris 8 with latest
12267         coreutils, with "mv A B", where A is on a tmpfs file system and B
12268         is on a ufs file system.  This caused coreutils' mv/part-symlink
12269         test to fail.
12270
12271         tests: set fail=0 at start
12272         * tests/init.sh (setup_): Move fail=0 initialization here ...
12273         (mktempd_): ... from here, so that tests can rely on fail being
12274         set to 0 initially.  This fixes a problem in coreutils; see:
12275         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12276
12277 2010-12-18  Bruno Haible  <bruno@clisp.org>
12278
12279         memmem-simple: Stylistic changes.
12280         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12281         Fix preprocessor directive indentation.
12282
12283 2010-12-15  Pádraig Brady <P@draigBrady.com>
12284
12285         memmem, memmem-simple: reorganize and expand empty needle check
12286         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12287         functional checks to memmem-simple so that one has a fully functional
12288         memmem by using just this module.
12289         Restrict the performance only check to the memmem module.
12290         Also expand the empty needle check to ensure the correct
12291         pointer is returned, not just a non NULL pointer.
12292         * doc/glibc-functions/memmem.texi: Rearrange the portability
12293         documentation to correlate with the rearranged checks.
12294         Clarify exactly how the memmem and memmem-simple modules
12295         relate to each other.
12296
12297 2010-12-15  Pádraig Brady <P@draigBrady.com>
12298             Bruno Haible  <bruno@clisp.org>
12299
12300         Improve cross-compilation guesses for uClibc.
12301         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12302         that uClibc does not have the glibc bug.
12303         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12304         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12305
12306 2010-12-14  Eric Blake  <eblake@redhat.com>
12307
12308         configmake: provide fallbacks for oldest supported autotools
12309         * m4/configmake.m4: New file.
12310         * modules/configmake (Files): Ship it.
12311         (configure.ac): Use it to guarantee fallbacks.
12312
12313 2010-12-13  Pádraig Brady <P@draigBrady.com>
12314
12315         read-file: Improve handling of large files
12316         * lib/read-file.c (fread_file): Minimize realloc()s
12317         for regular files, and better manage sizes around SIZE_MAX.
12318
12319 2010-12-13  Eric Blake  <eblake@redhat.com>
12320
12321         cloexec, fcntl: relax license
12322         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12323         consent from all contributors.
12324         * modules/fcntl (License): Likewise.
12325
12326 2010-12-10  Bruno Haible  <bruno@clisp.org>
12327
12328         Tests for module 'pipe-posix'.
12329         * modules/pipe-posix-tests: New file.
12330         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12331
12332 2010-12-10  Bruno Haible  <bruno@clisp.org>
12333
12334         pipe-posix: Make it work in C++ mode.
12335         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12336         (pipe): Use common idiom, not a macro definition.
12337         * lib/pipe.c: New file.
12338         * m4/pipe.m4: New file.
12339         * modules/pipe-posix (Description): Enhance.
12340         (Files): Add lib/pipe.c, m4/pipe.m4.
12341         (configure.ac): Invoke gl_FUNC_PIPE.
12342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12343         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12344         * tests/test-unistd-c++.cc: Check the signature of pipe.
12345
12346 2010-12-10  Bruno Haible  <bruno@clisp.org>
12347
12348         Rename module 'pipe' to 'spawn-pipe'.
12349         * modules/spawn-pipe: New file, renamed from modules/pipe.
12350         (Files, configure.ac, Makefile.am): Update.
12351         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12352         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12353         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12354         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12355         "spawn-pipe.h" instead of "pipe.h".
12356         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12357         to gl_SPAWN_PIPE.
12358         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12359         (Files, Makefile.am): Update.
12360         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12361         Update.
12362         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12363         Include "spawn-pipe.h" instead of "pipe.h".
12364         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12365         * lib/javacomp.c: Likewise.
12366         * lib/javaversion.c: Likewise.
12367         * lib/pipe-filter-gi.c: Likewise.
12368         * lib/pipe-filter-ii.c: Likewise.
12369         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12370         * modules/javacomp (Depends-on): Likewise.
12371         * modules/javaversion (Depends-on): Likewise.
12372         * modules/pipe-filter-gi (Depends-on): Likewise.
12373         * modules/pipe-filter-ii (Depends-on): Likewise.
12374         * MODULES.html.sh (Executing programs): Update.
12375         * NEWS: Mention the change.
12376
12377 2010-12-10  Eric Blake  <eblake@redhat.com>
12378
12379         pipe-posix: new module
12380         * modules/pipe-posix: New file.
12381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12382         (gl_UNISTD_H): Check for declaration.
12383         * modules/unistd (Makefile.am): Substitute it.
12384         * lib/unistd.in.h (pipe): Provide it for mingw.
12385         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12386         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12387
12388 2010-12-07  Bruno Haible  <bruno@clisp.org>
12389
12390         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12391         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12392         u8_strcmp_gnu.
12393         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12394
12395 2010-12-06  Bruno Haible  <bruno@clisp.org>
12396
12397         Update internal documentation.
12398         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12399
12400 2010-12-04  Bruno Haible  <bruno@clisp.org>
12401
12402         Put more information about failed tests into the test return codes.
12403         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12404         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12405         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12406         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12407         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12408         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12409         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12410         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12411         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12412         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12413         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12414         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12415         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12416         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12417         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12418         returns a bit mask.
12419         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12420         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12421         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12422         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12423         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12424         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12425         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12427         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12428         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12429         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12430         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12431         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12432         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12433         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12434         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12435         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12436         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12437         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12438         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12439         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12440         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12441         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12442         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12443         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12444         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12445         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12446         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12447         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12448         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12449         gl_PRINTF_PRECISION): Likewise.
12450         * m4/regex.m4 (gl_REGEX): Likewise.
12451         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12452         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12453         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12454         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12455         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12456         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12457         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12458         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12459         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12460         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12461         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12462         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12463         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12464         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12465         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12466         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12467         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12468         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12469         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12470         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
12471         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
12472         enumerated value.
12473         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
12474
12475 2010-12-04  Bruno Haible  <bruno@clisp.org>
12476
12477         Update for Solaris 11 2010-11.
12478         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
12479         Express, released in November 2010.
12480
12481 2010-12-04  Bruno Haible  <bruno@clisp.org>
12482
12483         nproc: Relax license.
12484         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
12485         and Paul Eggert.
12486         Requested by Ludovic Courtès <ludo@gnu.org>.
12487
12488 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12489
12490         utimecmp: fine-grained src to nearby coarse-grained dest
12491
12492         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
12493         and the source is on a file system with higher-resolution time
12494         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
12495         not work, and the time stamps are close together, the algorithm to
12496         determine the exact resolution from the read-back mtime was buggy:
12497         it had a "!=" where it should have had an "==".  This bug has been
12498         in the code ever since it was introduced to gnulib.
12499         Problem reported by Dan Jacobson in
12500         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
12501
12502 2010-11-30  Bruno Haible  <bruno@clisp.org>
12503
12504         strerror_r-posix: Fix autoconf test.
12505         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
12506
12507 2010-11-28  Bruno Haible  <bruno@clisp.org>
12508             Paul Eggert  <eggert@cs.ucla.edu>
12509
12510         Tests for module 'getdomainname'.
12511         * modules/getdomainname-tests: New file.
12512         * tests/test-getdomainname.c: New file, based on
12513         tests/test-gethostname.c.
12514
12515 2010-11-28  Bruno Haible  <bruno@clisp.org>
12516             Paul Eggert  <eggert@cs.ucla.edu>
12517
12518         getdomainname: Use the system function when possible.
12519         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
12520         (getdomainname): Replace if needed. Provide the declaration if it is
12521         missing. Don't use _GL_CXXALIAS_SYS_CAST.
12522         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
12523         (getdomainname): When the system has getdomainname, call the system
12524         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
12525         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
12526         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
12527         found in libnsl. Look for the declaration also in <netdb.h>. Replace
12528         the function if its second argument is of type 'int' or if it is found
12529         in libnsl.
12530         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
12531         <sys/systeminfo.h> and sysinfo().
12532         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
12533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12534         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
12535         HAVE_GETDOMAINNAME.
12536         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
12537         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
12538         * doc/glibc-functions/getdomainname.texi: Document the problems with
12539         the getdomainname declaration.
12540
12541 2010-11-28  Bruno Haible  <bruno@clisp.org>
12542
12543         sys_socket: Ensure ss_family field on AIX.
12544         * lib/sys_socket.in.h (ss_family): New macro definition.
12545         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
12546         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
12547         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12548         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12549         * modules/sys_socket (Makefile.am): Substitute
12550         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12551         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
12552
12553 2010-11-27  Bruno Haible  <bruno@clisp.org>
12554
12555         readline: Improve configure output.
12556         * m4/readline.m4 (gl_FUNC_READLINE): Make the
12557         "checking for readline..." result understandable.
12558
12559 2010-11-27  Bruno Haible  <bruno@clisp.org>
12560
12561         *printf-posix: Detect a bug on Solaris 10/x86.
12562         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12563         for floating-point output.
12564         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12565         directive.
12566         * tests/test-snprintf-posix.h (test_function): Likewise.
12567         * tests/test-sprintf-posix.h (test_function): Likewise.
12568         * tests/test-vasprintf-posix.c (test_function): Likewise.
12569         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12570         * doc/posix-functions/printf.texi: Likewise.
12571         * doc/posix-functions/snprintf.texi: Likewise.
12572         * doc/posix-functions/sprintf.texi: Likewise.
12573         * doc/posix-functions/vfprintf.texi: Likewise.
12574         * doc/posix-functions/vprintf.texi: Likewise.
12575         * doc/posix-functions/vsnprintf.texi: Likewise.
12576         * doc/posix-functions/vsprintf.texi: Likewise.
12577         * doc/glibc-functions/obstack_printf.texi: Likewise.
12578         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12579
12580 2010-11-27  Bruno Haible  <bruno@clisp.org>
12581
12582         Fix link error when module libunistring-optional is in use.
12583         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12584         * modules/striconveha-tests (Makefile.am): Likewise.
12585
12586 2010-11-27  Bruno Haible  <bruno@clisp.org>
12587
12588         regex: Mention link dependencies.
12589         * modules/regex (Link): New section.
12590         * modules/rpmatch (Link): Likewise.
12591         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12592
12593 2010-11-27  Bruno Haible  <bruno@clisp.org>
12594
12595         ftoastr: Fix compilation error on Solaris.
12596         * lib/ftoastr.c: Include <config.h>.
12597
12598 2010-11-27  Bruno Haible  <bruno@clisp.org>
12599
12600         getloadavg: Update documentation.
12601         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12602
12603 2010-11-27  Bruno Haible  <bruno@clisp.org>
12604
12605         sys_socket: Fix test whether the functions are declared.
12606         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12607         not <sys/select.h>.
12608
12609 2010-11-27  Bruno Haible  <bruno@clisp.org>
12610
12611         getpass: Make sure to get system declaration on some platforms.
12612         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12613         gl_USE_SYSTEM_EXTENSIONS.
12614         * modules/getpass (Depends-on): Add extensions.
12615
12616 2010-11-26  Bruno Haible  <bruno@clisp.org>
12617
12618         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12619         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12620         'iconv' module is present.
12621         (ICONV_CONST): New macro.
12622         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12623         ICONV_CONST.
12624         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12625         set ICONV_CONST.
12626         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12627         here.
12628         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12629         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12630         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12631         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12632         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12633         present.
12634
12635 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12636
12637         ftoastr: comment fix
12638         * lib/ftoastr.c: "little" -> "little or no" in comment
12639
12640 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12641
12642         stdint: port to GCC 4.3 + OSX + Octave
12643         On this platform, stdint.h is buggy and defines int64_t to long
12644         long int.  The replacement defined it to long int, causing
12645         problems with C++ style name mangling.  Instead, trust the system
12646         definition if INT64_MAX is defined, and likewise for the unsigned
12647         variant.   Problem reported by Jarno Rajahalme in
12648         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
12649         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
12650         and don't mess with int64_t and INT64_MAX in this case.
12651         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
12652
12653 2010-11-24  Bruno Haible  <bruno@clisp.org>
12654
12655         doc: Corrections regarding MacOS X 10.4 and 10.5.
12656         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
12657         MacOS X.
12658         Reported by Simon Josefsson.
12659
12660 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
12661
12662         Uninstall ".bin" files installed by relocwrapper.
12663         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
12664         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
12665         unless it is already there.
12666
12667 2010-11-21  Bruno Haible  <bruno@clisp.org>
12668
12669         Update for NetBSD 5.0.
12670         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12671         NetBSD; the test fails on NetBSD 5.0.
12672         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12673         about NetBSD.
12674
12675 2010-11-21  Bruno Haible  <bruno@clisp.org>
12676
12677         Update for HP-UX 11.23 and HP-UX 11.31.
12678         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
12679         HP-UX.
12680
12681 2010-11-21  Bruno Haible  <bruno@clisp.org>
12682
12683         Update for MacOS X 10.5.
12684         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12685         MacOS X; the test fails on MacOS X 10.5.8.
12686         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12687         about MacOS X.
12688
12689 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
12690
12691         bootstrap: add bootstrap_sync option.
12692         See discussion at
12693         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
12694         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
12695         * build-aux/bootstrap: Accept --bootstrap-sync to update
12696         bootstrap if it is not identical to the local gnulib's
12697         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
12698         enable this by default.  Accept --no-bootstrap-sync to disable
12699         it.
12700
12701 2010-11-20  Bruno Haible  <bruno@clisp.org>
12702
12703         Ensure that <features.h> is included before __GLIBC__ is tested.
12704         * lib/printf-parse.h: Include <features.h>.
12705         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
12706         Reported by Mike Frysinger <vapier@gentoo.org>.
12707
12708         Ensure that <features.h> is included before __GLIBC__ is tested.
12709         * lib/wchar.in.h: Include <features.h>.
12710         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
12711         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
12712         Reported by Mike Frysinger <vapier@gentoo.org>.
12713
12714         Ensure that <features.h> is included before __GLIBC__ is tested.
12715         * lib/arpa_inet.in.h: Include <features.h>.
12716         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
12717         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
12718         Reported by Mike Frysinger <vapier@gentoo.org>.
12719
12720         Ensure that <features.h> is included before __GLIBC__ is tested.
12721         * build-aux/link-warning.h: Include <features.h>.
12722         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
12723         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
12724         Reported by Mike Frysinger <vapier@gentoo.org>.
12725
12726         Ensure that <features.h> is included before __GLIBC__ is tested.
12727         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
12728         Reported by Mike Frysinger <vapier@gentoo.org>.
12729
12730 2010-11-20  Bruno Haible  <bruno@clisp.org>
12731
12732         memmem: Fix autoconf test.
12733         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
12734
12735 2010-11-20  Bruno Haible  <bruno@clisp.org>
12736
12737         Port to uClibc.
12738         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
12739         * lib/fcntl.in.h: Likewise.
12740         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
12741         * lib/mbrtowc.c (mbrtowc): Likewise.
12742         * lib/relocatable.c (find_shared_library_fullname): Likewise.
12743         * lib/strerror_r.c: Likewise.
12744         * lib/unistr/u8-strnlen.c: Likewise.
12745         * lib/vasnprintf.c (decimal_point_char): Likewise.
12746         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12747         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12748         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12749         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
12750         * tests/test-sigaction.c (handler, main): Likewise.
12751         * lib/freading.h: Treat uClibc like a non-glibc platform.
12752         * lib/freading.c: Likewise.
12753         * lib/gettext.h: Likewise.
12754         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
12755         Likewise.
12756         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
12757         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
12758         * lib/propername.c (proper_name_utf8): Likewise.
12759         * lib/spawn.in.h: Likewise.
12760         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
12761         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
12762         mem_cd_iconveh_internal): Likewise.
12763         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
12764         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12765         strstr, strcasestr): Likewise.
12766         * lib/unicodeio.c (unicode_to_mb): Likewise.
12767         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
12768         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
12769         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
12770         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
12771         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
12772         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
12773         * lib/unistr/u8-stpncpy.c: Likewise.
12774         * lib/vasnprintf.c (VASNPRINTF): Likewise.
12775         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
12776         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12777         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12778         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
12779         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
12780         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
12781         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
12782         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12783         Likewise.
12784         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12785         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12786         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12787         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12788         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12789         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12790         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12791         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12792         * tests/test-getopt.h (OPTIND_MIN): Likewise.
12793         * tests/test-striconveha.c (main): Likewise.
12794         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12795         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
12796         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
12797         * doc/posix-functions/getline.texi: Likewise.
12798         Reported by Mike Frysinger <vapier@gentoo.org>.
12799
12800 2010-11-20  Bruno Haible  <bruno@clisp.org>
12801
12802         nproc: Fix condition.
12803         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
12804         HAVE_PTHREAD_AFFINITY_NP.
12805
12806 2010-11-20  Bruno Haible  <bruno@clisp.org>
12807
12808         Fix a comment.
12809         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
12810
12811 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12812
12813         ftoastr: don't assume snprintf
12814         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
12815         Implement a subset of snprintf here, by using sprintf safely.
12816         * modules/ftoastr (Depends-on): Remove snprintf.
12817
12818 2010-11-19  Jim Meyering  <meyering@redhat.com>
12819
12820         test-rename.h: fix compilation failure
12821         * tests/test-rename.h (test_rename): Add omitted "}".
12822
12823 2010-11-17  Jim Meyering  <meyering@redhat.com>
12824
12825         maint.mk: add a URL discussing the no-@acronym policy
12826         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
12827
12828 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12829
12830         ftoastr: depend on snprintf, improve comments
12831         * lib/ftoastr.c: Also mention Loitsch's draft.
12832         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
12833         needed in the current implementation, but it might simplify
12834         speeding up the code later.
12835         * modules/ftoastr: Depend on snprintf; this improves portability.
12836         Suggested by Bruno Haible in the same email.
12837
12838         ftoastr: port to hosts lacking strtof and strtold
12839         Problem reported by Bruno Haible in
12840         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
12841         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
12842         environment and strtold (and presumably strtof) are not available.
12843         * modules/ftoastr (Files): Add m4/c-strtod.m4.
12844         (configure.ac): Require gl_C99_STRTOLD.
12845
12846 2010-11-18  Bruno Haible  <bruno@clisp.org>
12847
12848         c-strtold: Avoid link error on AIX 7.
12849         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
12850         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
12851         (gl_C_STRTOLD): Test whether strtold_l exists.
12852         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12853
12854 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12855
12856         intprops: new macro INT_BITS_STRLEN_BOUND
12857         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
12858         ftoastr.h.  This exposes an internal of intprops.h that was formerly
12859         not exposed.  Also, it uses a slightly tighter bound than before;
12860         though this makes no practical difference, we might as well be as
12861         tight as we easily can.
12862
12863         ftoastr: new module, for lossless conversion of floats to short strings
12864         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
12865         * modules/ftoastr: New files.
12866
12867 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
12868
12869         bootstrap: port to Solaris sed
12870         * build-aux/bootstrap (get_version): Port to Solaris sed.
12871         See Ralf Wildenhues's note in
12872         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
12873
12874 2010-11-14  Jim Meyering  <meyering@redhat.com>
12875
12876         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
12877         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
12878         and move definition closer to sole use.
12879
12880 2010-11-13  Jim Meyering  <meyering@redhat.com>
12881
12882         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
12883         Now we require at least autoconf-2.59, which means the work-around
12884         is no longer needed.
12885         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
12886         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12887         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12888         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
12889         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12890
12891 2010-11-13  Bruno Haible  <bruno@clisp.org>
12892
12893         rename, renameat: Avoid test failures at NFS mounted locations.
12894         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
12895         functions.
12896         (test_rename): Use assert_nonexistent.
12897         * tests/test-rename.c: Include <dirent.h>.
12898         * tests/test-renameat.c: Likewise.
12899         Reported by Gary V. Vaughan <gary@gnu.org>.
12900
12901         rename, renameat: Document Linux bug with NFS
12902         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
12903         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
12904         * doc/posix-functions/renameat.texi: Likewise.
12905         Suggested by Eric Blake.
12906
12907 2010-11-13  Bruno Haible  <bruno@clisp.org>
12908
12909         rename test: Add comments.
12910         * tests/test-rename.h (test_rename): Add structure and comments.
12911
12912 2010-11-13  Eric Blake  <eblake@redhat.com>
12913
12914         maintainer-makefile: cover a few more files
12915         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
12916         scripts generated within C files, for libvirt.
12917
12918 2010-11-13  Bruno Haible  <bruno@clisp.org>
12919
12920         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
12921         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
12922         character, return the number of bytes that belong together, not always
12923         1.
12924         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
12925         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
12926         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
12927         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
12928         number of bytes of an invalid character.
12929         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
12930         (main): Invoke it.
12931         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
12932         results.
12933         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
12934         malformed byte sequences.
12935         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
12936         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
12937         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
12938         Reported by Ben Pfaff and Paolo Bonzini.
12939
12940 2010-11-13  Bruno Haible  <bruno@clisp.org>
12941
12942         openat: Work around glibc bug with fchownat() and empty file names.
12943         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
12944         (gl_FUNC_FCHOWNAT): Invoke it.
12945         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
12946         * doc/posix-functions/fchownat.texi: Document the glibc bug.
12947         Reported by Gary V. Vaughan <gary@gnu.org>.
12948
12949 2010-11-13  Bruno Haible  <bruno@clisp.org>
12950
12951         openat: Ensure autoconf macro ordering.
12952         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
12953         gl_USE_SYSTEM_EXTENSIONS.
12954         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
12955
12956 2010-11-13  Bruno Haible  <bruno@clisp.org>
12957
12958         Update comments.
12959         * lib/unistr/u8-check.c: Update file name in comments.
12960         * lib/unistr/u8-mblen.c: Likewise.
12961         * lib/unistr/u8-prev.c: Likewise.
12962         * lib/unistr/u8-strmblen.c: Likewise.
12963         * lib/unistr/u8-strmbtouc.c: Likewise.
12964
12965 2010-11-13  Jim Meyering  <meyering@redhat.com>
12966
12967         tests: avoid test failure on Solaris 10 due to lack of PATH export
12968         * tests/test-update-copyright.sh: Don't forget to export PATH.
12969
12970         init.sh: ensure that IFS is defined, just in case...
12971         * tests/init.sh (setup_): Ensure that IFS is defined,
12972         so that saving and restoring it works as expected.  This
12973         appears to be useful at least for an old version of dash
12974         from a long time ago (RH 6).  See here for details:
12975         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
12976
12977         maint.mk: tighten "test a == b" check
12978         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
12979         test to files that contain something like #!/bin/sh.
12980         Without this, coreutils would get two false positives in
12981         the comments of C source files.
12982
12983 2010-11-12  Eric Blake  <eblake@redhat.com>
12984
12985         bootstrap: fix typo in previous attempt
12986         * build-aux/bootstrap (buildreq): Correct the grouping.
12987         Reported by Paul Eggert.
12988
12989         maintainer-makefile: prohibit test x == x
12990         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
12991         Based on a report by Matthias Bolte.
12992
12993         bootstrap: allow FreeBSD gzip
12994         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
12995         which has no '.' and goes to stderr.
12996         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
12997         Reported by Matthias Bolte.
12998
12999         maintainer-makefile: check for i18n setup
13000         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
13001         will likely work.
13002
13003 2010-11-12  Bruno Haible  <bruno@clisp.org>
13004
13005         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
13006         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
13007         * lib/nanosleep.c (nanosleep): Likewise.
13008
13009 2010-11-11  Bruno Haible  <bruno@clisp.org>
13010
13011         fcntl-h: Fix for use of C++ on glibc systems.
13012         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13013         also on glibc systems in C++ mode.
13014         Reported by Gary V. Vaughan <gary@gnu.org>.
13015
13016 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13017
13018         mknod: avoid false failure with dash
13019         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
13020
13021 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13022
13023         unlink: Fix "is it should" typo in diagnostic.
13024         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
13025         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
13026
13027 2010-11-11  Bruno Haible  <bruno@clisp.org>
13028
13029         Tests for module 'strerror_r-posix'.
13030         * modules/strerror_r-posix-tests: New file.
13031         * tests/test-strerror_r.c: New file.
13032         * tests/test-string-c++.cc: Check the signature of strerror_r.
13033
13034         New module 'strerror_r-posix'.
13035         * lib/string.in.h (strerror_r): New declaration.
13036         * lib/strerror_r.c: New file.
13037         * m4/strerror_r.m4: New file.
13038         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
13039         of strerror_r.
13040         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
13041         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13042         * modules/strerror_r-posix: New file.
13043         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
13044         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13045         * doc/posix-functions/strerror_r.texi: Mention the new module and the
13046         portability problems.
13047
13048 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
13049
13050         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
13051         line is also considered for output. Quoted function name in shell
13052         command, so temporary files for functions like MyClass::operator()
13053         are removed correctly without errors.
13054
13055 2010-11-09  Bruno Haible  <bruno@clisp.org>
13056
13057         * doc/posix-functions/strerror.texi: List more failing platforms.
13058
13059         * doc/posix-functions/strerror.texi: Add a comment.
13060
13061 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13062
13063         fdopendir: fix bug on MacOS X when low on file descriptors
13064
13065         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
13066         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
13067         All callers changed.
13068         (fdopendir): Invoke save_cwd at the top level, not after using
13069         multiple dup() calls to use up file descriptors.  Then retry
13070         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
13071         less than the maximum number of open file descriptors, because
13072         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
13073         on Mac OS X 10.6.4 for tar 1.24
13074         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
13075         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
13076         and for tar 1.25
13077         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
13078
13079 2010-11-07  Bruno Haible  <bruno@clisp.org>
13080
13081         vasnprintf: Support I flag on glibc systems.
13082         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
13083         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
13084         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
13085         snprintf function.
13086         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
13087         glibc systems.
13088         * tests/test-vasnprintf-posix3.c: New file.
13089         * modules/vasnprintf-posix-tests (Files): Add it.
13090         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
13091
13092 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13093
13094         [html] Fix copy/paste bug: Use unique name for compiler warnings.
13095         * MODULES.html.sh: For compiler warnings, use name
13096         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
13097
13098 2010-11-05  Eric Blake  <eblake@redhat.com>
13099
13100         ceil, floor: avoid spurious failure with icc
13101         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
13102         [denormals-as-zero] when optimizing without -mieee-fp option.
13103         * tests/test-floorf2.c (floorf_reference): Likewise.
13104         * tests/test-ceilf1.c (dummy): New function.
13105         (main): Use it to outsmart icc's optimization.
13106         * tests/test-floorf1.c (dummy, main): Likewise.
13107
13108         tests: require working signbit
13109         * modules/ceilf-tests (Depends-on): Add signbit.
13110         * modules/ceill-tests (Depends-on): Likewise.
13111         * modules/floorf-tests (Depends-on): Likewise.
13112         * modules/floorl-tests (Depends-on): Likewise.
13113         * modules/round-tests (Depends-on): Likewise.
13114         * modules/roundf-tests (Depends-on): Likewise.
13115         * modules/roundl-tests (Depends-on): Likewise.
13116         * modules/trunc-tests (Depends-on): Likewise.
13117         * modules/truncf-tests (Depends-on): Likewise.
13118         * modules/truncl-tests (Depends-on): Likewise.
13119
13120         strtod: work around icc bug
13121         * lib/strtod.c (minus_zero): Define to working value.
13122         (strtod): Use it to avoid icc bug.
13123
13124         copysign: enhance tests
13125         * modules/copysign-tests (Files): Add minus-zero.h.
13126         * tests/test-copysign.c (main): Also test zeros.
13127
13128 2010-11-04  Eric Blake  <eblake@redhat.com>
13129
13130         ceil, floor, round, trunc: enhance tests of -0
13131         * tests/test-ceilf1.c (main): Ensure correct sign of result.
13132         * tests/test-ceill.c (main): Likewise.
13133         * tests/test-floorf1.c (main): Likewise.
13134         * tests/test-floorl.c (main): Likewise.
13135         * tests/test-round1.c (main): Likewise.
13136         * tests/test-roundf1.c (main): Likewise.
13137         * tests/test-roundl.c (main): Likewise.
13138         * tests/test-trunc1.c (main): Likewise.
13139         * tests/test-truncf1.c (main): Likewise.
13140         * tests/test-truncl.c (main): Likewise.
13141
13142 2010-11-04  Eric Blake  <eblake@redhat.com>
13143
13144         frexp, tests: work around ICC bug with -zero
13145         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
13146         works with more compilers.
13147         * tests/minus-zero.h: New file.
13148         * modules/ceilf-tests (Files): Include it.
13149         * modules/ceill-tests (Files): Likewise.
13150         * modules/floorf-tests (Files): Likewise.
13151         * modules/floorl-tests (Files): Likewise.
13152         * modules/frexp-nolibm-tests (Files): Likewise.
13153         * modules/frexp-tests (Files): Likewise.
13154         * modules/frexpl-nolibm-tests (Files): Likewise.
13155         * modules/frexpl-tests (Files): Likewise.
13156         * modules/isnan-tests (Files): Likewise.
13157         * modules/isnand-nolibm-tests (Files): Likewise.
13158         * modules/isnand-tests (Files): Likewise.
13159         * modules/isnanf-nolibm-tests (Files): Likewise.
13160         * modules/isnanf-tests (Files): Likewise.
13161         * modules/isnanl-nolibm-tests (Files): Likewise.
13162         * modules/isnanl-tests (Files): Likewise.
13163         * modules/round-tests (Files): Likewise.
13164         * modules/roundf-tests (Files): Likewise.
13165         * modules/roundl-tests (Files): Likewise.
13166         * modules/ldexpl-tests (Files): Likewise.
13167         * modules/signbit-tests (Files): Likewise.
13168         * modules/snprintf-posix-tests (Files): Likewise.
13169         * modules/sprintf-posix-tests (Files): Likewise.
13170         * modules/strtod-tests (Files): Likewise.
13171         * modules/trunc-tests (Files): Likewise.
13172         * modules/truncf-tests (Files): Likewise.
13173         * modules/truncl-tests (Files): Likewise.
13174         * modules/vsnprintf-posix-tests (Files): Likewise.
13175         * modules/vsprintf-posix-tests (Files): Likewise.
13176         * modules/vasnprintf-posix-tests (Files): Likewise.
13177         * modules/vasprintf-posix-tests (Files): Likewise.
13178         * tests/test-ceilf1.c (main): Use it.
13179         * tests/test-ceill.c (main): Likewise.
13180         * tests/test-floorf1.c (main): Likewise.
13181         * tests/test-floorl.c (main): Likewise.
13182         * tests/test-frexp.c (main): Likewise.
13183         * tests/test-frexpl.c (main): Likewise.
13184         * tests/test-isnan.c (main): Likewise.
13185         * tests/test-isnand.h (main): Likewise.
13186         * tests/test-isnanf.h (main): Likewise.
13187         * tests/test-isnanl.h (main): Likewise.
13188         * tests/test-ldexpl.c (main): Likewise.
13189         * tests/test-round.c (main): Likewise.
13190         * tests/test-roundf.c (main): Likewise.
13191         * tests/test-roundl.c (main): Likewise.
13192         * tests/test-signbit.c (test_signbitf, test_signbitd)
13193         (test_signbitl): Likewise.
13194         * tests/test-snprintf-posix.h (test_function): Likewise.
13195         * tests/test-sprintf-posix.h (test_function): Likewise.
13196         * tests/test-strtod.c (main): Likewise.
13197         * tests/test-trunc1.c (main): Likewise.
13198         * tests/test-truncf1.c (main): Likewise.
13199         * tests/test-truncl.c (main): Likewise.
13200
13201         isnanl: work around icc bug
13202         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
13203
13204 2010-11-03  Eric Blake  <eblake@redhat.com>
13205
13206         tests: fix compiler warnings
13207         * tests/test-getopt.h (test_getopt): Fix condition.
13208         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13209         * tests/test-pipe2.c (main): Likewise.
13210         * tests/test-quotearg-simple.c (main): Avoid icc warning.
13211
13212         utimens: fix broken m4 test
13213         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
13214
13215 2010-10-28  Bruno Haible  <bruno@clisp.org>
13216
13217         posix_spawn*, getdtablesize: Relax license.
13218         * modules/posix_spawn (License): Change to LGPLv2+.
13219         * modules/posix_spawnp (License): Likewise.
13220         * modules/posix_spawn-internal (License): Likewise.
13221         * modules/posix_spawnattr_init (License): Likewise.
13222         * modules/posix_spawnattr_getflags (License): Likewise.
13223         * modules/posix_spawnattr_setflags (License): Likewise.
13224         * modules/posix_spawnattr_getpgroup (License): Likewise.
13225         * modules/posix_spawnattr_setpgroup (License): Likewise.
13226         * modules/posix_spawnattr_getschedparam (License): Likewise.
13227         * modules/posix_spawnattr_setschedparam (License): Likewise.
13228         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
13229         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
13230         * modules/posix_spawnattr_getsigdefault (License): Likewise.
13231         * modules/posix_spawnattr_setsigdefault (License): Likewise.
13232         * modules/posix_spawnattr_getsigmask (License): Likewise.
13233         * modules/posix_spawnattr_setsigmask (License): Likewise.
13234         * modules/posix_spawnattr_destroy (License): Likewise.
13235         * modules/posix_spawn_file_actions_init (License): Likewise.
13236         * modules/posix_spawn_file_actions_addclose (License): Likewise.
13237         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
13238         * modules/posix_spawn_file_actions_addopen (License): Likewise.
13239         * modules/posix_spawn_file_actions_destroy (License): Likewise.
13240         * modules/getdtablesize (License): Likewise.
13241         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
13242
13243 2010-10-26  Bruno Haible  <bruno@clisp.org>
13244
13245         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
13246         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
13247         Cygwin and mingw.
13248         Suggested by Eric Blake.
13249
13250 2010-10-26  Bruno Haible  <bruno@clisp.org>
13251
13252         stdio: Work around compilation error due to renameat() on Solaris 10.
13253         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13254         * lib/renameat.c: Don't include <unistd.h> here.
13255         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13256         Reported by Paul Eggert and Eric Blake.
13257
13258 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13259
13260         renameat: port to Solaris 10, which declares renameat in unistd.h
13261
13262         * lib/renameat.c: Include unistd.h before stdio.h, because
13263         Solaris 10 declares renameat in unistd.h.  Problem encountered
13264         when building GNU tar 1.24 on Solaris 10.
13265
13266 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13267
13268         fdopendir: fix C89 compilation
13269         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13270         compilers.
13271
13272 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13273
13274         inttostr: simplify by removing unnecessary redundancy
13275         * lib/anytostr.c: Don't include verify.h.
13276         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13277         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13278         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13279         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13280         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13281         Likewise.
13282         * modules/inttostr (Depends-on): Remove 'verify'.
13283
13284 2010-10-23  Bruno Haible  <bruno@clisp.org>
13285
13286         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13287         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13288         Reported by Eric Blake.
13289
13290 2010-10-23  Bruno Haible  <bruno@clisp.org>
13291
13292         Tests: Fix LOCALE_JA on MirBSD 10.
13293         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13294         to an UTF-8 locale.
13295         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13296         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13297         Reported by Eric Blake.
13298
13299 2010-10-21  Bruno Haible  <bruno@clisp.org>
13300
13301         nl_langinfo test: Avoid test failure on NetBSD 5.
13302         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13303         Reported by Eric Blake.
13304
13305 2010-10-21  Eric Blake  <eblake@redhat.com>
13306
13307         c-stack: work around libsigsegv 2.8 bug
13308         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13309         overflow on at least PowerPC64.
13310
13311 2010-10-17  Bruno Haible  <bruno@clisp.org>
13312
13313         userspec: Drop redundant file.
13314         * modules/userspec (Files): Remove lib/inttostr.h.
13315
13316 2010-10-17  Bruno Haible  <bruno@clisp.org>
13317
13318         nl_langinfo tests: Silence some warnings.
13319         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13320         Reported by Jim Meyering.
13321
13322 2010-10-17  Bruno Haible  <bruno@clisp.org>
13323
13324         Make use of GCC's attribute __alloc_size__.
13325         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13326         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13327         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13328         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13329         __alloc_size__.
13330         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13331         Suggested by Jim Meyering.
13332
13333 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13334
13335         bootstrap: anchor .gitignore entries.
13336         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13337         with...
13338         (insert_vc_ignore): ... this new function, which prepends `/' to
13339         all .gitignore entries before passing them to
13340         insert_sorted_if_absent.
13341
13342 2010-10-16  Bruno Haible  <bruno@clisp.org>
13343
13344         nextafter: Fix configure check.
13345         * modules/nextafter (configure.ac): Correct expected prototype.
13346
13347 2010-10-16  Bruno Haible  <bruno@clisp.org>
13348
13349         termios: Update documentation.
13350         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13351
13352 2010-10-16  Bruno Haible  <bruno@clisp.org>
13353
13354         tests: Make them compile with TinyCC.
13355         * tests/test-strstr.c (main): Remove parentheses around array
13356         initializer.
13357
13358 2010-10-15  Eric Blake  <eblake@redhat.com>
13359
13360         ignore-value: make header idempotent
13361         * lib/ignore-value.h: Add double-inclusion guards.
13362         Reported by Stefan Berger.
13363
13364 2010-10-15  Jim Meyering  <meyering@redhat.com>
13365
13366         GNUmakefile: handle "stable" target, not "major"
13367         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13368         lists in maint.mk and announce-gen.  Without this, "make stable"
13369         would fail to ensure that $(VERSION) is up to date.
13370
13371 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13372
13373         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13374         & co.
13375
13376 2010-10-14  Bruno Haible  <bruno@clisp.org>
13377
13378         vasnprintf: Don't set errno to 0.
13379         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13380         block that sets it to 0.
13381         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13382
13383 2010-10-14  Bruno Haible  <bruno@clisp.org>
13384
13385         socketlib: Fix.
13386         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13387         gl_PREREQ_SYS_H_WINSOCK2.
13388         Reported by Ian Beckwith <ianb@erislabs.net>.
13389
13390 2010-10-13  Jim Meyering  <meyering@redhat.com>
13391
13392         test-select-stdin.c: avoid warn_unused_result warnings
13393         * tests/test-select-stdin.c: Include "macros.h".
13394         ASSERT that read and fflush succeed.
13395
13396 2010-10-13  Jim Meyering  <meyering@redhat.com>
13397
13398         git-version-gen: do require git-VC'd files in cwd
13399         * build-aux/git-version-gen: Reject a git version string
13400         if there are no commits associated with the current directory.
13401         This avoids an unlikely false-positive (unrelated dir whose parent
13402         repository also contains a tag matching v*), as pointed out
13403         by Giuseppe Scrivano in
13404         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13405
13406 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13407
13408         argv-iter: omit nonconforming declaration
13409         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13410         enum arg_iter_err declaration, which doesn't conform to C99.
13411         Solaris 10 cc warns about this.
13412
13413 2010-10-13  Eric Blake  <eblake@redhat.com>
13414
13415         termios: fix compilation on mingw
13416         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13417         (gl_TERMIOS_H): Adjust it on mingw.
13418         * modules/termios (Makefile.am): Substitute new key.
13419         * lib/termios.in.h (includes): Make include_next conditional.
13420         * doc/posix-headers/termios.texi (termios.h): Update
13421         documentation.
13422         Reported by Daniel P. Berrange.
13423
13424 2010-10-13  Jim Meyering  <meyering@redhat.com>
13425
13426         git-version-gen: don't require that .git/ be in the current dir
13427         * build-aux/git-version-gen: Adjust this script so that it works
13428         when run from any working directory beneath the top-level .git/-
13429         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13430         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13431
13432         test-select: avoid warn_unused_result warnings
13433         * tests/test-select.c: Include "macros.h".
13434         ASSERT that each call to read, write, and pipe succeeds.
13435         While not technically required, also check each "close".
13436         * modules/select-tests (Files): Add tests/macros.h.
13437
13438         test-symlinkat: remove declaration of unused local
13439         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13440
13441         test-inttostr: avoid shadowing warnings
13442         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13443         and use malloc rather than the stack for the same reason as
13444         mentioned in the comment justifying the other allocation.
13445
13446 2010-10-11  Bruno Haible  <bruno@clisp.org>
13447
13448         stdlib: Allow multiple gnulib generated replacements to coexist.
13449         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13450         Reported by Sam Steingold <sds@gnu.org>.
13451
13452 2010-10-11  Jim Meyering  <meyering@redhat.com>
13453
13454         fix a documentation typo
13455         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13456
13457 2010-10-11  Eric Blake  <eblake@redhat.com>
13458
13459         futimens: work around Solaris 11 bug
13460         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13461         * tests/test-futimens.h (test_futimens): Enhance, rather than
13462         weaken test.
13463         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13464
13465 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13466
13467         Indentation.
13468         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13469         higher-level operators more to the left.
13470
13471 2010-10-11  Jim Meyering  <meyering@redhat.com>
13472
13473         test-futimens: avoid unwarranted test failure on Solaris 5.11
13474         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
13475         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
13476         because it tries to dereference the NULL name argument.
13477
13478 2010-10-11  Bruno Haible  <bruno@clisp.org>
13479
13480         Indentation.
13481         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
13482         indentation.
13483
13484 2010-10-11  Jim Meyering  <meyering@redhat.com>
13485
13486         spawn.in.h: make indentation consistent with parentheses
13487         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
13488         Make indentation consistent with parentheses.
13489
13490 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
13491
13492         Fix mismatched parens in previous commit
13493         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
13494         parens.
13495
13496 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13497
13498         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
13499
13500         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
13501         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
13502         * lib/malloca.c: Include "verify.h".
13503         (verify1): Remove, replacing with a verify call.
13504         * lib/relocwrapper.c (verify1): Likewise.
13505         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
13506         Likewise.
13507         * modules/malloca (Depends-on): Add 'verify'.
13508         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
13509         * modules/vasnprintf (Depends-on): Add 'verify'.
13510         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13511         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13512         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13513         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13514         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13515         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13516         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13517
13518         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
13519
13520         Formerly the style was sometimes 2*X - 1, because the C standard
13521         was wrongly thought to disallow ?: in integral constant expressions.
13522         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
13523         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
13524         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13525         * lib/stdint.in.h (_verify_intmax_size): Likewise.
13526         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
13527         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
13528         verify that time_t cannot be floating.
13529
13530 2010-10-08  Eric Blake  <eblake@redhat.com>
13531
13532         time: enforce recent POSIX ruling that time_t is integral
13533         * lib/time.in.h (__time_t_must_be_integral): Detect any
13534         problematic systems, allowing the rest of gnulib to assume POSIX.
13535
13536 2010-10-08  Jim Meyering  <meyering@redhat.com>
13537
13538         fdopendir: fix a bug on systems lacking openat and /proc support
13539         OpenBSD 4.7 is one such system.  The most noticeable effect was
13540         failure of any application making nontrivial use of fts: rm, du,
13541         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
13542           ./rm: traversal failed: `a': Bad file descriptor
13543         Debugging that, you see that even though FD 6 was closed just
13544         prior to the opendir call in fd_clone_opendir, its resulting
13545         dir->dd_fd was 8, rather than the expected value of 6:
13546
13547         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
13548         93                close (fd);
13549         (gdb) n
13550         94                dir = fd_clone_opendir (dupfd);
13551         (gdb) n
13552         95                saved_errno = errno;
13553         (gdb) p dir->dd_fd
13554         $11 = 8
13555
13556         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
13557         The problem is that on OpenBSD, fd_clone_opendir has to resort
13558         to using the old-style save/restore CWD mechanism, due to its
13559         lack of openat/proc support, and *that* would steal the FD (6)
13560         that opendir was supposed to use.
13561
13562         The fix is to squirrel away the desired FD so that save_cwd uses a
13563         different one, and then free the dest FD right before calling opendir.
13564         That guarantees opendir will use the required file descriptor.
13565
13566         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13567
13568 2010-10-08  Bruno Haible  <bruno@clisp.org>
13569
13570         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13571         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13572
13573 2010-10-08  Bruno Haible  <bruno@clisp.org>
13574
13575         nanosleep: Make replacement POSIX compliant.
13576         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13577         is out of range.
13578         Reported by Jim Meyering.
13579
13580 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13581
13582         bootstrap: add hook for altering gnulib.mk, for Bison
13583         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13584         the Bison bootstrapping process can rewrite file names and variables
13585         in this file before later parts of 'bootstrap' use the file.
13586         Bison wants to include lib/gnulib.mk from the top-level makefile,
13587         so it needs the file names in this file to be relative to the top
13588         level, not relative to lib; plus it needs variable names to be
13589         rewritten.
13590         (slurp): Use the new function.
13591
13592         bootstrap: reformat for readability
13593         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13594
13595 2010-10-08  Eric Blake  <eblake@redhat.com>
13596
13597         docs: update cygwin progress
13598         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13599         1.7.7.
13600         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13601         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13602         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13603         * doc/posix-functions/carg.texi (carg): Likewise.
13604         * doc/posix-functions/cargf.texi (cargf): Likewise.
13605         * doc/posix-functions/casin.texi (casin): Likewise.
13606         * doc/posix-functions/casinf.texi (casinf): Likewise.
13607         * doc/posix-functions/casinh.texi (casinh): Likewise.
13608         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13609         * doc/posix-functions/catan.texi (catan): Likewise.
13610         * doc/posix-functions/catanf.texi (catanf): Likewise.
13611         * doc/posix-functions/catanh.texi (catanh): Likewise.
13612         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13613         * doc/posix-functions/ccos.texi (ccos): Likewise.
13614         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13615         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13616         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13617         * doc/posix-functions/cexp.texi (cexp): Likewise.
13618         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13619         * doc/posix-functions/cimag.texi (cimag): Likewise.
13620         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13621         * doc/posix-functions/clog.texi (clog): Likewise.
13622         * doc/posix-functions/clogf.texi (clogf): Likewise.
13623         * doc/posix-functions/conj.texi (conj): Likewise.
13624         * doc/posix-functions/conjf.texi (conjf): Likewise.
13625         * doc/posix-functions/cpow.texi (cpow): Likewise.
13626         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13627         * doc/posix-functions/cproj.texi (cproj): Likewise.
13628         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13629         * doc/posix-functions/creal.texi (creal): Likewise.
13630         * doc/posix-functions/crealf.texi (crealf): Likewise.
13631         * doc/posix-functions/csin.texi (csin): Likewise.
13632         * doc/posix-functions/csinf.texi (csinf): Likewise.
13633         * doc/posix-functions/csinh.texi (csinh): Likewise.
13634         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13635         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
13636         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
13637         * doc/posix-functions/ctan.texi (ctan): Likewise.
13638         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
13639         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
13640         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
13641         * doc/posix-headers/complex.texi (complex.h): Likewise.
13642
13643 2010-10-07  Jim Meyering  <meyering@redhat.com>
13644
13645         parse-datetime: avoid compilation failure on OpenBSD 4.7
13646         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
13647         This works around a compilation failure on OpenBSD 4.7:
13648         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
13649
13650 2010-10-07  Eric Blake  <eblake@redhat.com>
13651
13652         docs: update cygwin progress
13653         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
13654         1.7.6.
13655         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13656         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
13657         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
13658         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
13659         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
13660         Likewise.
13661         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
13662         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
13663         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
13664         Likewise.
13665         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
13666         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
13667         Likewise.
13668         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
13669         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
13670         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
13671         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
13672         Likewise.
13673         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
13674         Likewise.
13675         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
13676
13677         docs: update parse-datetime history
13678         * doc/parse-datetime.texi (Authors of parse_datetime): Better
13679         documentation of this function's history and alternatives.
13680
13681         cygwin: use more robust version check
13682         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
13683         exclude an eventual cygwin 1.9.1.
13684         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13685         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13686         (gl_FUNC_STRCASESTR): Likewise.
13687         Reported by Bruno Haible.
13688
13689 2010-10-06  Bruno Haible  <bruno@clisp.org>
13690
13691         string, sys_select: Avoid #including large headers unless necessary.
13692         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
13693         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
13694         OSF/1, BeOS, Haiku.
13695         Reported by Jim Meyering.
13696
13697 2010-10-05  Eric Blake  <eblake@redhat.com>
13698
13699         memmem, strstr, strcasestr: fix bug with long periodic needle
13700         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
13701         periodic needle having false positive.
13702         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
13703         and cygwin 1.7.7.
13704         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
13705         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13706         (gl_FUNC_STRCASESTR): Likewise.
13707         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13708         * tests/test-memmem.c (main): Expose the bug.
13709         * tests/test-strcasestr.c (main): Likewise.
13710         * tests/test-strstr.c (main): Likewise.
13711         * tests/test-c-strcasestr.c (main): Likewise.
13712         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
13713         * doc/posix-functions/strstr.texi (strstr): Likewise.
13714         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13715         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
13716
13717 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13718
13719         parse-datetime: do some more renaming
13720         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
13721         parse_datetime, not get_date.  Mention the renaming.
13722         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
13723         in comments.
13724         * m4/bison.m4: Likewise.
13725
13726 2010-10-05  Eric Blake  <eblake@redhat.com>
13727
13728         parse-datetime: better name than get_date
13729         * NEWS: Reword the deprecation notice.
13730         * modules/get_date: Rename to modules/parse-datetime.
13731         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
13732         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
13733         * lib/get_date.y: Rename to lib/parse-datetime.y.
13734         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
13735         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
13736         * doc/getdate.texi: Provide fallback wrapper.
13737         * lib/getdate.h: Move guts, and wrap...
13738         * lib/parse-datetime.h: ...new file.
13739         * lib/parse-datetime.y (get_date): Rename...
13740         (parse_datetime): ...to this.
13741         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
13742         (gl_PARSE_DATETIME): ...to this.
13743         * doc/posix-functions/getdate.texi (get_date): Provide fallback
13744         documentation.
13745         * modules/getdate (Files): Provide fallback docs and header.
13746         (Notice, Depends-on): Update references.
13747         * tests/test-parse-datetime.c: Likewise.
13748         * DEPENDENCIES: Likewise.
13749         * MODULES.html.sh (Date and time <time.h>): Likewise.
13750         * doc/parse-datetime.texi (Date input formats)
13751         (Authors of parse_datetime): Likewise.
13752         * modules/parse-datetime (Files, configure.ac, Makefile.am)
13753         (Include): Likewise.
13754         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
13755         * gnulib-tool: Likewise.
13756         * m4/bison.m4 (gl_BISON): Likewise.
13757         Suggested by Bruno Haible.
13758
13759 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13760
13761         more ports to Solaris tr, which needs [] around ranges
13762         * gnulib-tool: Solaris tr needs [] around ranges.
13763         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13764         * tests/test-pipe-filter-gi1.c (main): Likewise.
13765         * tests/test-pipe-filter-ii1.c (main): Likewise.
13766
13767 2010-10-05  Eric Blake  <eblake@redhat.com>
13768
13769         bootstrap: fix Solaris regression
13770         * build-aux/bootstrap (check_versions): Solaris tr still needs []
13771         around ranges.
13772         Reported by Pádraig Brady.
13773
13774         bootstrap: work with pkg-config
13775         * build-aux/bootstrap (check_versions): Also transliterate - in
13776         prerequisite name.
13777         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
13778         prerequisites that were already found, to avoid confusion.
13779         Reported by Justin Clift.
13780
13781         faccessat: remove unused wrappers
13782         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
13783         presence of these wrappers dragged in -lgen on Solaris.
13784         Reported by Clemens Brogi; fix suggested by Paul Eggert.
13785
13786 2010-10-05  Jim Meyering  <meyering@redhat.com>
13787
13788         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
13789         * Makefile (sc_pragma_columns): New syntax-check rule.
13790
13791 2010-10-04  Bruno Haible  <bruno@clisp.org>
13792
13793         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
13794         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
13795         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
13796         Reported by Bruce Korb and Eric Blake.
13797
13798 2010-10-04  Bruno Haible  <bruno@clisp.org>
13799
13800         threadlib: Make option --with-libpth-prefix work.
13801         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
13802         use $LIBPTH, not just -lpth.
13803
13804 2010-10-04  Bruno Haible  <bruno@clisp.org>
13805
13806         Avoid line length limitation from HP NonStop system header files.
13807         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
13808         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
13809         * lib/ctype.in.h: Likewise.
13810         * lib/dirent.in.h: Likewise.
13811         * lib/errno.in.h: Likewise.
13812         * lib/fcntl.in.h: Likewise.
13813         * lib/float.in.h: Likewise.
13814         * lib/getopt.in.h: Likewise.
13815         * lib/iconv.in.h: Likewise.
13816         * lib/inttypes.in.h: Likewise.
13817         * lib/langinfo.in.h: Likewise.
13818         * lib/locale.in.h: Likewise.
13819         * lib/math.in.h: Likewise.
13820         * lib/netdb.in.h: Likewise.
13821         * lib/netinet_in.in.h: Likewise.
13822         * lib/poll.in.h: Likewise.
13823         * lib/pthread.in.h: Likewise.
13824         * lib/pty.in.h: Likewise.
13825         * lib/sched.in.h: Likewise.
13826         * lib/se-selinux.in.h: Likewise.
13827         * lib/search.in.h: Likewise.
13828         * lib/signal.in.h: Likewise.
13829         * lib/spawn.in.h: Likewise.
13830         * lib/stdarg.in.h: Likewise.
13831         * lib/stddef.in.h: Likewise.
13832         * lib/stdint.in.h: Likewise.
13833         * lib/stdio.in.h: Likewise.
13834         * lib/stdlib.in.h: Likewise.
13835         * lib/string.in.h: Likewise.
13836         * lib/strings.in.h: Likewise.
13837         * lib/sys_file.in.h: Likewise.
13838         * lib/sys_ioctl.in.h: Likewise.
13839         * lib/sys_select.in.h: Likewise.
13840         * lib/sys_socket.in.h: Likewise.
13841         * lib/sys_stat.in.h: Likewise.
13842         * lib/sys_time.in.h: Likewise.
13843         * lib/sys_times.in.h: Likewise.
13844         * lib/sys_utsname.in.h: Likewise.
13845         * lib/sys_wait.in.h: Likewise.
13846         * lib/sysexits.in.h: Likewise.
13847         * lib/termios.in.h: Likewise.
13848         * lib/time.in.h: Likewise.
13849         * lib/unistd.in.h: Likewise.
13850         * lib/wchar.in.h: Likewise.
13851         * lib/wctype.in.h: Likewise.
13852         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
13853         * modules/ctype (Makefile.am): Likewise.
13854         * modules/dirent (Makefile.am): Likewise.
13855         * modules/errno (Makefile.am): Likewise.
13856         * modules/fcntl-h (Makefile.am): Likewise.
13857         * modules/float (Makefile.am): Likewise.
13858         * modules/getopt-posix (Makefile.am): Likewise.
13859         * modules/iconv-h (Makefile.am): Likewise.
13860         * modules/inttypes (Makefile.am): Likewise.
13861         * modules/langinfo (Makefile.am): Likewise.
13862         * modules/locale (Makefile.am): Likewise.
13863         * modules/math (Makefile.am): Likewise.
13864         * modules/netdb (Makefile.am): Likewise.
13865         * modules/netinet_in (Makefile.am): Likewise.
13866         * modules/poll-h (Makefile.am): Likewise.
13867         * modules/pthread (Makefile.am): Likewise.
13868         * modules/pty (Makefile.am): Likewise.
13869         * modules/sched (Makefile.am): Likewise.
13870         * modules/search (Makefile.am): Likewise.
13871         * modules/selinux-h (Makefile.am): Likewise.
13872         * modules/signal (Makefile.am): Likewise.
13873         * modules/spawn (Makefile.am): Likewise.
13874         * modules/stdarg (Makefile.am): Likewise.
13875         * modules/stddef (Makefile.am): Likewise.
13876         * modules/stdint (Makefile.am): Likewise.
13877         * modules/stdio (Makefile.am): Likewise.
13878         * modules/stdlib (Makefile.am): Likewise.
13879         * modules/string (Makefile.am): Likewise.
13880         * modules/strings (Makefile.am): Likewise.
13881         * modules/sys_file (Makefile.am): Likewise.
13882         * modules/sys_ioctl (Makefile.am): Likewise.
13883         * modules/sys_select (Makefile.am): Likewise.
13884         * modules/sys_socket (Makefile.am): Likewise.
13885         * modules/sys_stat (Makefile.am): Likewise.
13886         * modules/sys_time (Makefile.am): Likewise.
13887         * modules/sys_times (Makefile.am): Likewise.
13888         * modules/sys_utsname (Makefile.am): Likewise.
13889         * modules/sys_wait (Makefile.am): Likewise.
13890         * modules/sysexits (Makefile.am): Likewise.
13891         * modules/termios (Makefile.am): Likewise.
13892         * modules/time (Makefile.am): Likewise.
13893         * modules/unistd (Makefile.am): Likewise.
13894         * modules/wchar (Makefile.am): Likewise.
13895         * modules/wctype (Makefile.am): Likewise.
13896
13897 2010-10-04  Bruno Haible  <bruno@clisp.org>
13898
13899         read-file tests: Avoid a test failure on NonStop Kernel.
13900         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
13901         a regular file.
13902         Reported by Joachim Schmitz <schmitz@hp.com>.
13903
13904 2010-10-03  Bruno Haible  <bruno@clisp.org>
13905
13906         gnulib-tool: Fixes for --create-testdir with --libtool.
13907         * gnulib-tool (func_get_automake_snippet): Don't augment
13908         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
13909         an executable.
13910         (func_create_testdir): Handle module 'alloca' like func_import.
13911         Reported by Bruce Korb <bruce.korb@gmail.com>.
13912
13913 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
13914
13915         Avoid some lines longer than 80 characters.
13916         * lib/stdint.in.h: Break long comment lines.
13917         * lib/math.in.h: Likewise.
13918         (_GL_NUM_UINT_WORDS): New macro, for readability.
13919         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
13920         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
13921         * lib/stdlib.in.h: Likewise.
13922         * lib/spawn.in.h: Likewise.
13923         * lib/sys_socket.in.h: Update an URL.
13924         * lib/sys_stat.in.h: Break long line.
13925
13926 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
13927
13928         Improve pmccabe2html.
13929         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
13930         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
13931         when the sources change. Remove the line in the HTML about "Used
13932         ranges" (which implied that there might be other unused ranges),
13933         rename "Resume" to "Summary" (easier to understand for more users).
13934         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
13935         styles, and some unnecessary blank lines.
13936
13937 2010-10-03  Bruno Haible  <bruno@clisp.org>
13938             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13939
13940         acl: Add support for ACLs on NonStop Kernel.
13941         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
13942         Check whether the function aclsort() exists.
13943         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
13944         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
13945         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13946         (acl_nontrivial [HAVE_ACLSORT]: New function.
13947         (file_has_acl): Implement for NonStop Kernel.
13948         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13949         (qset_acl): Implement for NonStop Kernel.
13950         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
13951         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13952         (main): Implement for NonStop Kernel.
13953         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
13954         Kernel. Handle this flavor.
13955         * tests/test-set-mode-acl.sh: Likewise.
13956         * tests/test-copy-acl.sh: Likewise.
13957         * tests/test-copy-file.sh: Likewise.
13958
13959 2010-10-03  Bruno Haible  <bruno@clisp.org>
13960
13961         Info about ACLs on NonStop Kernel.
13962         * doc/acl-resources.txt: Add info about NonStop Kernel.
13963         References by Joachim Schmitz <schmitz@hp.com>.
13964
13965 2010-10-02  Bruno Haible  <bruno@clisp.org>
13966
13967         Define missing EDQUOT on NonStop Kernel.
13968         * lib/errno.in.h (EDQUOT): Assign a value if missing.
13969         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
13970         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
13971         missing.
13972         * doc/posix-headers/errno.texi: Mention the NSK bug.
13973         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
13974         Reported by Joachim Schmitz <schmitz@hp.com>.
13975
13976 2010-10-02  Bruno Haible  <bruno@clisp.org>
13977
13978         Update doc for POSIX:2008.
13979         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
13980         Update URL of POSIX specification.
13981
13982 2010-10-02  Bruno Haible  <bruno@clisp.org>
13983
13984         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
13985         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
13986         from gnulib, not from Automake.
13987
13988 2010-10-02  Bruno Haible  <bruno@clisp.org>
13989
13990         New module 'system-posix'.
13991         * modules/system-posix: New file.
13992         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
13993         module is present.
13994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
13995         GNULIB_SYSTEM_POSIX.
13996         * modules/stdlib (Depends-on): Remove sys_wait.
13997         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
13998         * doc/posix-functions/system.texi: Mention the new module.
13999         * doc/posix-headers/stdlib.texi: Likewise.
14000         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
14001         define test_sys_wait_macros to a no-op.
14002         Reported by Sam Steingold <sds@gnu.org>.
14003
14004 2010-09-30  Bruno Haible  <bruno@clisp.org>
14005
14006         More renaming from 'getdate' to 'get_date'.
14007         * doc/get_date.texi: Renamed from doc/getdate.texi.
14008         * modules/get_date (Files): Update.
14009         * MODULES.html.sh (Date and time <time.h>): Update.
14010         * DEPENDENCIES: Update.
14011         * gnulib-tool: Update comment.
14012         * m4/bison.m4 (gl_BISON): Likewise.
14013         * m4/get_date.m4 (gl_GET_DATE): Likewise.
14014
14015 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
14016
14017         bootstrap: support ACLOCAL_FLAGS during aclocal
14018         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
14019         can add additional -I dir for third-party .m4 files.
14020
14021 2010-09-30  Eric Blake  <eblake@redhat.com>
14022
14023         bootstrap: use glibtoolize on MacOS
14024         * build-aux/bootstrap (check_versions): Convert libtool into
14025         libtoolize.
14026         (tool search): Move libtool check earlier, and look for
14027         glibtoolize for MacOS.
14028         (gnulib_tool_options): Auto-add --libtool when appropriate.
14029         Reported by Justin Clift.
14030
14031         poll: fix typo that broke test on MacOS
14032         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
14033         Reported by Justin Clift.
14034
14035         getdate: rename to get_date
14036         Note: getdate.h is not renamed, to minimize client impact.
14037         * modules/getdate: Mark obsolete.  Move old contents...
14038         * modules/get_date: ...to new module name.
14039         * modules/getdate-tests: Move...
14040         * modules/get_date-tests: ...here.
14041         * m4/getdate.m4: Move...
14042         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
14043         * lib/getdate.y: Move...
14044         * lib/get_date.y: ...here.
14045         * tests/test-getdate.c: Move...
14046         * tests/test-get_date.c: ...here.
14047         * doc/posix-functions/getdate.texi (getdate): Update name.
14048         * NEWS: Mention the change.
14049
14050 2010-09-29  Bruno Haible  <bruno@clisp.org>
14051
14052         Separate the module 'waitpid' from the module 'sys_wait'.
14053         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
14054         present.
14055         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
14056         gl_MODULE_INDICATOR_FOR_TESTS.
14057         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
14058         * modules/sys_wait (Depends-on): Remove waitpid.
14059         (Makefile.am): Substitute GNULIB_WAITPID.
14060         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
14061         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
14062         signature only if the 'waitpid' module is present.
14063         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
14064         * NEWS: Mention the change.
14065         * modules/grantpt (Depends-on): Add waitpid.
14066         * modules/wait-process (Depends-on): Likewise.
14067
14068 2010-09-29  Bruno Haible  <bruno@clisp.org>
14069
14070         More tests for module 'sys_wait'.
14071         * modules/sys_wait-c++-tests: New file.
14072         * tests/test-sys_wait-c++.cc: New file.
14073         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
14074         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14075
14076 2010-09-29  Bruno Haible  <bruno@clisp.org>
14077
14078         New module 'waitpid'.
14079         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
14080         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
14081         Don't include <process.h>.
14082         (waitpid): Declare only, using modern idiom.
14083         * m4/waitpid.m4: New file.
14084         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
14085         * modules/waitpid: New file.
14086         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
14087         (Makefile.am): Update.
14088         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14089
14090 2010-09-28  Bruno Haible  <bruno@clisp.org>
14091
14092         poll: Assume ANSI C.
14093         * lib/poll.c (poll): Use an ANSI C declaration.
14094
14095 2010-09-28  Bruno Haible  <bruno@clisp.org>
14096
14097         poll-h: Create poll.h on all platforms.
14098         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
14099         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
14100         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
14101         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
14102         (gl_REPLACE_POLL_H): Don't set POLL_H.
14103         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
14104         * modules/poll-h (Depends-on): Add include_next.
14105         (Makefile.am): Create poll.h unconditionally. Substitute also
14106         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
14107
14108 2010-09-28  Bruno Haible  <bruno@clisp.org>
14109
14110         Tests for module 'poll-h'.
14111         * modules/poll-h-c++-tests: New file.
14112         * tests/test-poll-h-c++.cc: New file.
14113
14114         Tests for module 'poll-h'.
14115         * modules/poll-h-tests: New file.
14116         * tests/test-poll-h.c: New file.
14117
14118 2010-09-28  Bruno Haible  <bruno@clisp.org>
14119
14120         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
14121         * modules/poll-h (Depends-on): Add 'extensions'.
14122
14123 2010-09-28  Bruno Haible  <bruno@clisp.org>
14124
14125         New module 'poll-h'.
14126         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
14127         (poll): Use modern idiom.
14128         * modules/poll-h: New file.
14129         * modules/poll (Files): Remove lib/poll.in.h.
14130         (Depends-on): Add poll-h.
14131         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
14132         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
14133         * m4/poll_h.m4: New file.
14134         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
14135         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
14136         and invoke gl_REPLACE_POLL_H.
14137         * lib/poll.c: Use common idiom.
14138         * tests/test-poll.c: Likewise.
14139         * doc/posix-headers/poll.texi: Mention the poll-h module.
14140         Suggested by Eric Blake.
14141
14142 2010-09-26  Bruno Haible  <bruno@clisp.org>
14143
14144         sys_wait: Implement WSTOPSIG.
14145         * lib/sys_wait.in.h (WSTOPSIG): New macro.
14146         Reported by Simon Josefsson.
14147
14148 2010-09-26  Simon Josefsson  <simon@josefsson.org>
14149
14150         stdlib, sys_wait: Avoid compilation error on mingw.
14151         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
14152
14153 2010-09-26  Bruno Haible  <bruno@clisp.org>
14154
14155         stdlib tests: Avoid code duplication.
14156         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
14157         * modules/sys_wait-tests (Files): Likewise.
14158         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
14159         * tests/test-stdlib.c: Include test-sys_wait.h.
14160         (main): Invoke test_sys_wait_macros.
14161         * tests/test-sys_wait.c: Include test-sys_wait.h.
14162         (main): Invoke test_sys_wait_macros.
14163
14164 2010-09-25  Simon Josefsson  <simon@josefsson.org>
14165
14166         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
14167         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
14168         sure Windows sockets are working before calling getaddrinfo.
14169         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
14170         * doc/gnulib.texi (Windows sockets): Fix typo.
14171
14172 2010-09-25  Bruno Haible  <bruno@clisp.org>
14173
14174         Tests for module 'regex-quote'.
14175         * modules/regex-quote-tests: New file.
14176         * tests/test-regex-quote.c: New file.
14177
14178         New module 'regex-quote'.
14179         * lib/regex-quote.h: New file.
14180         * lib/regex-quote.c: New file.
14181         * modules/regex-quote: New file.
14182         Suggested by Reuben Thomas <rrt@sc3d.org>.
14183
14184 2010-09-24  Bruno Haible  <bruno@clisp.org>
14185
14186         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
14187         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
14188
14189 2010-09-23  Bruno Haible  <bruno@clisp.org>
14190
14191         setenv: Relax license.
14192         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
14193         Blake.
14194         Requested by Eric Blake.
14195
14196 2010-09-22  Bruno Haible  <bruno@clisp.org>
14197
14198         termios: Relax license.
14199         * modules/termios (License): Change to LGPLv2+.
14200         Requested by Eric Blake.
14201
14202 2010-09-22  Bruno Haible  <bruno@clisp.org>
14203
14204         threadlib: Allow the package to change the default to 'no'.
14205         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
14206         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
14207         Reported by Paul Eggert.
14208
14209 2010-09-22  Pádraig Brady  <P@draigbrady.com>
14210             Bruno Haible  <bruno@clisp.org>
14211
14212         Fix endless loop in mbmemcasecoll.
14213         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
14214         byte.
14215         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
14216
14217 2010-09-22  Bruno Haible  <bruno@clisp.org>
14218
14219         Tests for module 'memcoll'.
14220         * modules/memcoll-tests: New file.
14221         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
14222
14223         memcoll, xmemcoll: Clarify size vs. length.
14224         * modules/memcoll.c (memcoll0): Clarify specification.
14225         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
14226         passed to collate_error.
14227
14228 2010-09-22  Bruno Haible  <bruno@clisp.org>
14229
14230         Tests for module 'memcasecmp'.
14231         * modules/memcasecmp-tests: New file.
14232         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
14233
14234 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14235
14236         * lib/pthread.in.h: Add split double-inclusion guard, and include
14237         system <pthread.h> if there is one.  Use @@-style as in other
14238         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
14239         pthread.h doesn't.
14240         (pthread_mutexattr_destroy, pthread_mutexattr_init):
14241         (pthread_mutexattr_settype, pthread_mutex_trylock):
14242         New static inline functions, if there's no system <pthread.h>.
14243         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
14244         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
14245         Approximate with mutexes if the system lacks spinlocks, as in
14246         MacOS.
14247         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
14248         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
14249         @@-style.  Check for spinlocks separately.
14250         (gl_PTHREAD_DEFAULTS): New macro.
14251         * modules/pthread: Redo to use a more typical style for in.h files.
14252
14253 2010-09-21  Eric Blake  <eblake@redhat.com>
14254
14255         net_if: enhance tests
14256         * tests/test-net_if.c (main): Move signature checks earlier.
14257         Print failures to stderr.
14258         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14259         Document the bug that we do not yet fix.
14260
14261 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14262
14263         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14264         about gnulib, not GSS.
14265
14266 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14267
14268         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14269         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14270         for Emacs.
14271         * build-aux/pmccabe2html: Make Makefile.am example code more
14272         cut-and-paste friendly.
14273
14274 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14275
14276         * tests/test-net_if.c: New file.
14277         * modules/net_if-tests: New file.
14278
14279 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14280
14281         pthread: add pthread_spin_destroy
14282         * lib/pthread.in.h (pthread_spin_destroy): New function.
14283
14284 2010-09-19  Bruno Haible  <bruno@clisp.org>
14285
14286         gnulib-tool: Fix --help output.
14287         * gnulib-tool (func_usage): Fix help message.
14288         Reported by Reuben Thomas <rrt@sc3d.org>.
14289
14290 2010-09-18  Jim Meyering  <meyering@redhat.com>
14291
14292         maint.mk: avoid unexpanded \n in two diagnostics
14293         * top/maint.mk (sc_prohibit_always_true_header_tests):
14294         Don't use a literal \n in a halt=... assignment.  It would not be
14295         expanded, and the two \n bytes would appear in the diagnostic output
14296         rather than the desired newline.  Use halt=$$(printf ... instead.
14297         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14298
14299 2010-09-18  Bruno Haible  <bruno@clisp.org>
14300
14301         netinet_in: Doc tweak.
14302         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14303         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14304
14305 2010-09-18  Jim Meyering  <meyering@redhat.com>
14306
14307         init.sh: correct an outdated comment
14308         * tests/init.sh (create_exe_shims_):  s/function/alias/
14309
14310         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14311         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14312         a file named "*.exe" is removed between the glob expansion and the
14313         processing of that oddly named file.
14314
14315 2010-09-17  Eric Blake  <eblake@redhat.com>
14316
14317         mirbsd: add some more support
14318         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14319         in BSD family.
14320         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14321         devices as OpenBSD.
14322         * m4/host-os.m4 (mirbsd): Add MirBSD.
14323
14324         tests: fix unportable assumption on sys/wait.h
14325         * tests/test-sys_wait.c (main): Relax test.
14326         * tests/test-stdlib.c (main): Likewise.
14327
14328         init.sh: accomodate directory with no .exes
14329         * tests/init.sh: Accomodate directory containing only scripts.
14330
14331         tests: avoid compiler warning
14332         * tests/test-stdlib.c (main): Use the variable.
14333
14334         fdutimens, fdutimensat: update signature, again
14335         * lib/utimens.h (gl_futimens): Delete, and move signature...
14336         (fdutimens): ...here.
14337         (fdutimensat): Rearrange signature.
14338         (lutimensat): Rename variable for clarity.
14339         * lib/fdutimensat.c (fdutimensat): Update signature.
14340         * lib/utimens.c (fdutimens): Likewise.
14341         (gl_futimens): Delete.
14342         (utimens, lutimens): Update callers.
14343         * lib/futimens.c (futimens): Likewise.
14344         * tests/test-fdutimensat.c: Likewise.
14345         * tests/test-utimens.c: Likewise.
14346         * tests/test-futimens.h: Update comment.
14347         * NEWS: Mention this.
14348         Suggested by Paul Eggert.
14349
14350 2010-09-17  Bruno Haible  <bruno@clisp.org>
14351
14352         Take over the maintenance of some older macros from Autoconf.
14353         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14354         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14355         GNU Autoconf.
14356         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14357         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14358
14359 2010-09-17  Eric Blake  <eblake@redhat.com>
14360
14361         fdutimensat: drop atflag validation
14362         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14363         with valid fd, to close a race scenario where futimens is
14364         unsupported and FILE was replaced by a symlink.
14365         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14366         accordingly.
14367         Suggested by Paul Eggert.
14368
14369 2010-09-16  Bruno Haible  <bruno@clisp.org>
14370
14371         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14372         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14373
14374 2010-09-16  Bruno Haible  <bruno@clisp.org>
14375
14376         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14377         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14378         login_tty exists.
14379         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14380
14381 2010-09-16  Bruno Haible  <bruno@clisp.org>
14382
14383         login_tty: Make the replacement code work on BSD systems.
14384         * lib/login_tty.c: Include <sys/ioctl.h>.
14385         (login_tty): Use ioctl TIOCSCTTY when available.
14386         * modules/login_tty (Depends-on): Add sys_ioctl.
14387         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14388
14389 2010-09-16  Bruno Haible  <bruno@clisp.org>
14390
14391         login_tty: Stricter unit test.
14392         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14393         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14394         and tcgetsid() after login_tty.
14395         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14396
14397 2010-09-16  Bruno Haible  <bruno@clisp.org>
14398
14399         New module 'tcgetsid'.
14400         * lib/tcgetsid.c: New file.
14401         * m4/tcgetsid.m4: New file.
14402         * modules/tcgetsid: New file.
14403         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14404         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14405         GNULIB_TCGETSID, HAVE_TCGETSID.
14406         * lib/termios.in.h: Include <sys/types.h>.
14407         (tcgetsid): New declaration.
14408         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14409         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14410         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14411         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14412
14413 2010-09-16  Bruno Haible  <bruno@clisp.org>
14414
14415         Tests for module 'termios'.
14416         * modules/termios-c++-tests: New file.
14417         * modules/termios-tests: New file.
14418         * tests/test-termios-c++.cc: New file.
14419         * tests/test-termios.c: New file.
14420
14421         New module 'termios'.
14422         * modules/termios: New file.
14423         * lib/termios.in.h: New file.
14424         * m4/termios_h.m4: New file.
14425         * doc/posix-headers/termios.texi: Mention the new module.
14426
14427 2010-09-16  Eric Blake  <eblake@redhat.com>
14428
14429         fdutimensat: add an atflag parameter
14430         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14431         * lib/utimens.h (fdutimensat): Update prototype.
14432         * tests/test-fdutimensat.c: Adjust test to match.
14433         * NEWS: Document the change.
14434         Suggested by Paul Eggert.
14435
14436 2010-09-16  Bruno Haible  <bruno@clisp.org>
14437
14438         Fix typos in comments.
14439         * lib/striconveh.h: Fix typo in comment.
14440         * lib/login_tty.c (login_tty): Likewise.
14441
14442 2010-09-15  Bruno Haible  <bruno@clisp.org>
14443
14444         stdlib: clarify MirBSD WEXITSTATUS bug
14445         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14446         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14447
14448 2010-09-15  Eric Blake  <eblake@redhat.com>
14449
14450         stdlib: work around MirBSD WEXITSTATUS bug
14451         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14452         * modules/stdlib (Depends-on): Add sys_wait.
14453         * tests/test-sys_wait.c (main): Enhance test.
14454         * tests/test-stdlib.c (main): Likewise.
14455         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14456
14457         docs: mention MacOS issue with WEXITSTATUS(constant)
14458         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14459         issue.
14460         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14461
14462         strnlen: add tests
14463         * modules/strnlen-tests: New file.
14464         * tests/test-strnlen.c: Likewise.
14465
14466 2010-09-14  Bruno Haible  <bruno@clisp.org>
14467
14468         unistr/base: Avoid link errors when module 'libunistring' is also used.
14469         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14470         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
14471         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
14472         Declare also when HAVE_LIBUNISTRING is set.
14473         Reported by Pádraig Brady <P@draigbrady.com>.
14474
14475 2010-09-14  Eric Blake  <eblake@redhat.com>
14476
14477         test-rawmemchr: make more robust
14478         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
14479         (Depends-on, configure.ac): Add needed prerequisites to use it.
14480         * modules/memchr-tests (Files, Depends-on, configure.ac):
14481         Likewise, to avoid implicit reliance on memchr module prereqs.
14482         * tests/test-memchr.c (main): Ensure proper masking.
14483         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
14484         reads.
14485
14486         memchr: detect glibc Alpha bug
14487         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
14488         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
14489         Alpha.
14490         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
14491         * tests/test-memchr.c (main): Enhance test.
14492         Reported by Nelson H. F. Beebe.
14493
14494 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14495
14496         fts, getcwd, glob: audit for dirfd returning -1
14497         * lib/fts.c (opendir): Remove #define; no longer used.
14498         (opendirat): New arg PDIR_FD.  All callers changed.
14499         (fts_build, _opendir2): Use new opendirat to avoid the need for
14500         dirfd, or for checking whether dirfd returns a negative value.
14501         Don't use opendir; always use openat followed by fdopendir.
14502         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
14503         it.
14504         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
14505         returns -1 here.
14506         * modules/fts (Depends-on): Remove dirfd.
14507         * modules/getcwd (Depends-on): Likewise.
14508
14509 2010-09-13  Eric Blake  <eblake@redhat.com>
14510
14511         float: fix broken MirBSD header
14512         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
14513         * doc/posix-headers/float.texi (float.h): Document it.
14514
14515 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14516
14517         fts: use O_NOFOLLOW to avoid race condition when opening a directory
14518         * lib/fts.c (opendirat): New arg extra_flags.
14519         (__opendir2): Use it to avoid following symlinks when opening
14520         a directory, if symlinks are not supposed to be followed.  See
14521         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
14522
14523         fdopendir: preserve argument fd before returning
14524         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
14525         (fdopendir_with_dup, fd_clone_opendir): New static functions.
14526         (fdopendir): Use them, arranging for FD to be open to the same
14527         directory that it was when it started.  (It might be temporarily
14528         closed while fdopendir is running, so this not thread- or
14529         signal-safe.)  Be careful to do the right thing even when file
14530         descriptors are scarce and dup fails with errno == EMFILE.  See
14531         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
14532
14533 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
14534
14535         regex: Pass the system regex if its only problem is 32-bit regoff_t.
14536         * NEWS: Document change.
14537         * m4/regex.m4: Disable test for regoff_t size.
14538
14539 2010-09-13  Jim Meyering  <meyering@redhat.com>
14540
14541         fts: don't operate on an invalid file descriptor after failed dup
14542         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
14543         negative file descriptor.
14544
14545 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14546
14547         savedir: add streamsavedir, deprecate fdsavedir
14548         * NEWS: Mention deprecation of fdsavedir.
14549         * lib/savedir.c (streamsavedir): New extern function, whose name
14550         ends in "savedir" to be consistent with the others.  This differs
14551         from savedirstream in that it doesn't close its argument.  The
14552         next version of GNU tar will use this instead of fdsavedir, to
14553         avoid some race conditions and conserve file descriptors.
14554         (savedirstream): Reimplement as a wrapper around streamsavedir.
14555         (fdsavedir): Add a comment deprecating this function.  As far as
14556         I know, only GNU tar used it, and GNU tar doesn't need it any more.
14557         * lib/savedir.h (streamsavedir): New decl.
14558         (fdsavedir): Add a comment deprecating this.
14559
14560 2010-09-10  Bruno Haible  <bruno@clisp.org>
14561
14562         langinfo: Fix last commit.
14563         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14564         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14565         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14566
14567 2010-09-10  Bruno Haible  <bruno@clisp.org>
14568
14569         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14570         * lib/progreloc.c (O_EXEC): Define fallback.
14571
14572 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14573
14574         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14575         * NEWS: Document recent changes to fcntl-h.
14576         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14577         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14578         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14579         Similarly for O_SEARCH; this last was already true, but not documented.
14580         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14581         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14582         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14583         Likewise.
14584         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14585         is zero, not whether it is defined.
14586         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14587         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14588         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14589
14590 2010-09-10  Bruno Haible  <bruno@clisp.org>
14591
14592         langinfo, nl_langinfo: Fix for IRIX 5.3.
14593         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14594         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14595         HAVE_LANGINFO_YESEXPR.
14596         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14597         HAVE_LANGINFO_YESEXPR.
14598         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14599         HAVE_LANGINFO_T_FMT_AMPM is 0.
14600         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14601         HAVE_LANGINFO_YESEXPR is 0.
14602         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14603         NOEXPR.
14604         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14605         * doc/posix-functions/nl_langinfo.texi: Likewise.
14606         Reported by Eric Blake.
14607
14608 2010-09-10  Bruno Haible  <bruno@clisp.org>
14609
14610         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14611         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14612         on FreeBSD 8.0 and OpenBSD 4.6.
14613         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14614         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14615         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14616         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14617         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14618         ac_includes_default.
14619         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14620
14621 2010-09-09  Eric Blake  <eblake@redhat.com>
14622
14623         strsignal: work around NetBSD bug
14624         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14625         * lib/string.in.h (includes): Likewise.
14626         * doc/posix-functions/strsignal.texi (strsignal): Document the
14627         bug.
14628         Reported by Nelson H. F. Beebe.
14629
14630         gnulib-tool: work with NetBSD /bin/sh
14631         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14632         (func_get_description, func_get_comment, func_get_status)
14633         (func_get_notice, func_get_applicability, func_get_filelist)
14634         (func_get_dependencies, func_get_autoconf_early_snippet)
14635         (func_get_autoconf_snippet, func_get_automake_snippet)
14636         (func_get_include_directive, func_get_link_directive)
14637         (func_get_license, func_get_maintainer, func_import): Avoid
14638         shell syntax errors from parsing syntax extensions.
14639
14640 2010-09-09  Bruno Haible  <bruno@clisp.org>
14641
14642         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14643         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
14644         a reliable way to determine whether the 'alias' command works.
14645
14646 2010-09-08  Jim Meyering  <meyering@redhat.com>
14647
14648         init.sh: penalize a set-x-impaired shell; don't disqualify it
14649         * tests/init.sh: Too many shells corrupt application stderr when
14650         you set -x, so we can't afford to disqualify them, since at least
14651         on Irix-6.5, that would disqualify all bourne shells.
14652         Instead, use a two-pass approach.
14653         On the first pass, try to find a shell that meets the stricter
14654         condition that set -x does not corrupt stderr.
14655         If no shell meets the stricter condition, retest each candidate
14656         shell, but without that extra condition.  Finally, when
14657         VERBOSE=yes is requested and set -x might cause trouble, simply
14658         issue a warning and refrain from enabling debug output.
14659
14660 2010-09-08  Eric Blake  <eblake@redhat.com>
14661
14662         unsetenv: fix OpenBSD bug
14663         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
14664         * doc/posix-functions/unsetenv.texi (unsetenv): Update
14665         documentation.
14666         Reported by Jim Meyering.
14667
14668         strtod: work around IRIX 6.5 bug
14669         * lib/strtod.c (strtod): Reparse number on shorter string if
14670         exponent parse was invalid.
14671         * tests/test-strtod.c (main): Add check for "0x1p 2".
14672         Reported by Tom G. Christensen.
14673
14674         getopt: optimize previous patch
14675         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
14676         empty variable.  Speed up awk script.
14677         Reported by Paolo Bonzini.
14678
14679 2010-09-08  Jim Meyering  <meyering@redhat.com>
14680
14681         test.sh: disqualify shells for which set -x corrupts stderr
14682         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
14683         and OpenBSD 4.7.  They make it so with "set -x", environment settings
14684         appear in stderr output.  For example, this command:
14685             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
14686         prints "P=1" on those two systems:
14687
14688 2010-09-08  Bruno Haible  <bruno@clisp.org>
14689
14690         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14691         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
14692         commands, because some shells ignore redirections when there is an
14693         error in the command lookup.
14694         Reported by Eric Blake.
14695
14696 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
14697
14698         * lib/regex.h: Fix a mention of `regex_compile' (should be
14699         `re_compile_pattern').
14700         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
14701         (re_set_registers): Correct name of parameter in comment.
14702
14703         * doc/regex.texi: Add documentation for missing syntax flags.
14704         Remove commented-out documentation of defunct syntax option
14705         RE_NO_EMPTY_ALTS.
14706         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
14707         Add documentation of re_set_registers.
14708         Document trick to re-use a pattern buffer by setting fastmap manually.
14709         Update documentation of struct re_pattern_buffer per public members.
14710         Uncomment documentation of equivalence class operators and
14711         collating symbol operators, since they are now implemented,
14712         Explain leftmost-longest matching in relation to alternatives.
14713         Tidy documentation of substring matching.
14714         Remove POSIX documentation, which is done better in
14715         glibc, and refer the reader there. Keep BSD API documentation, as
14716         that is not readily available elsewhere.
14717
14718 2010-09-07  Eric Blake  <eblake@redhat.com>
14719
14720         getopt: handle POSIXLY_CORRECT set but not exported
14721         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
14722         export state of POSIXLY_CORRECT, due to bash set -o posix.
14723         Reported by Dustin J. Mitchell.
14724
14725 2010-09-05  Bruno Haible  <bruno@clisp.org>
14726
14727         gnulib-tool: Highlight the changed options.
14728         * gnulib-tool (func_usage): Display the --import, --add-import,
14729         --remove-import explanations in bold font.
14730
14731 2010-09-06  Karl Berry  <karl@gnu.org>
14732
14733         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
14734
14735 2010-09-05  Bruno Haible  <bruno@clisp.org>
14736
14737         uniwidth/width: Update comment.
14738         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
14739         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
14740
14741 2010-09-05  Bruno Haible  <bruno@clisp.org>
14742
14743         isinf, isnan: Relax license.
14744         * modules/isinf (License): Change from GPL to LGPL, with consent from
14745         Ben Pfaff.
14746         * modules/isnan (License): Likewise.
14747         Requested by Ludovic Courtès.
14748
14749 2010-09-04  Bruno Haible  <bruno@clisp.org>
14750
14751         gnulib-tool: Help migration from --import to --add-import or --update.
14752         * gnulib-tool: Emit a verbose error message when --import is used
14753         without any module name.
14754
14755 2010-09-04  Bruno Haible  <bruno@clisp.org>
14756
14757         Update doc about gnulib-tool.
14758         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
14759         'gnulib-tool --update' in more detail.
14760         Reported by Eric Blake.
14761
14762 2010-09-04  Bruno Haible  <bruno@clisp.org>
14763
14764         gnulib-tool: Change --import. New options --add/remove-import.
14765         * gnulib-tool: New options --add-import, --remove-import.
14766         (func_usage): Document them.
14767         (have_associative): Define always.
14768         (func_import): In import mode, don't merge the specified settings with
14769         the cached settings. Implement remove-import mode.
14770         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
14771         Explain when to use them versus --import.
14772         (Simple update): Use --add-import instead of --import.
14773         * NEWS: Mention the change.
14774
14775 2010-09-04  Bruno Haible  <bruno@clisp.org>
14776
14777         * doc/gnulib-tool.texi (Initial import): Update paragraph about
14778         separate gnulib.mk.
14779
14780 2010-09-04  Bruno Haible  <bruno@clisp.org>
14781
14782         gnulib-tool: Don't talk about CVS any more.
14783         * gnulib-tool (func_usage, func_import): Write "version control"
14784         instead of CVS.
14785
14786 2010-09-04  Jim Meyering  <meyering@redhat.com>
14787
14788         maint.mk: avoid obscure sc_copyright_check failure in coreutils
14789         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
14790         false positives (whose names may be ill-chosen) when searching
14791         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
14792         would cause a false-positive.
14793
14794         avoid coreutils "make distcheck" failure
14795         Coreutils tests with an absolute build directory name that contains
14796         a space.  Not quoting this directory name caused a failure.
14797         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
14798         * tests/test-vc-list-files-cvs.sh: Likewise.
14799
14800 2010-09-04  Bruno Haible  <bruno@clisp.org>
14801
14802         gnulib-tool: Avoid error when run in a package without Makefile.am.
14803         * gnulib-tool: When collecting the m4dirs in a package that does not
14804         have a Makefile.am, eliminate those directories that contain no
14805         gnulib-cache.m4. Fix expression that counts these directories.
14806
14807 2010-09-04  Bruno Haible  <bruno@clisp.org>
14808
14809         update-copyright test: Improve output when perl is missing or too old.
14810         * tests/test-update-copyright.sh: Move test of Perl version down after
14811         the test whether Perl exists. Provide an explanation relating Perl's
14812         error message to Automake's SKIP: message.
14813
14814 2010-09-04  Bruno Haible  <bruno@clisp.org>
14815
14816         Don't augment PATH in TESTS_ENVIRONMENT.
14817         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
14818         set abs_aux_dir instead of augmenting PATH.
14819         * modules/vc-list-files-tests (Makefile.am): Likewise.
14820         * tests/test-update-copyright.sh: Augment PATH here.
14821         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
14822         path_prepend_.
14823         * tests/test-vc-list-files-git.sh: Likewise.
14824
14825 2010-09-04  Jim Meyering  <meyering@redhat.com>
14826
14827         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
14828         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
14829
14830 2010-09-04  Bruno Haible  <bruno@clisp.org>
14831
14832         strdup: Fix compilation error in C++ mode.
14833         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
14834         the macro.
14835
14836 2010-09-04  Bruno Haible  <bruno@clisp.org>
14837
14838         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
14839         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
14840         macro into a function.
14841         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14842
14843 2010-09-04  Bruno Haible  <bruno@clisp.org>
14844
14845         Set PATH_SEPARATOR the same way autoconf does.
14846         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
14847         the value of PATH_SEPARATOR the same way autoconf-generated configure
14848         scripts do.
14849         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
14850         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14851
14852 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14853
14854         Set PATH_SEPARATOR the same way autoconf does.
14855         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
14856         the same way autoconf-generated configure scripts do.
14857         * posix-modules: Likewise.
14858
14859 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14860
14861         hash: fix safe_hasher const typo
14862         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
14863         const; otherwise, there is a type error later.
14864
14865 2010-09-02  Jim Meyering  <meyering@redhat.com>
14866
14867         test-update-copyright.sh: require perl 5.8.0
14868         * tests/test-update-copyright.sh: Require 5.8.0,
14869         which Tom G. Christensen has confirmed is adequate,
14870         while 5.6.1 is not.
14871
14872 2010-09-02  Eric Blake  <eblake@redhat.com>
14873
14874         tests: init.sh improvements for re-exec'ing with zsh
14875         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
14876         -vx through shell re-exec.
14877         Reported by Tom G. Christensen.
14878
14879         wctype: fix typo in previous commit
14880         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
14881         Reported by Ludovic Courtès.
14882
14883 2010-09-02  Jim Meyering  <meyering@redhat.com>
14884
14885         test-update-copyright.sh: skip test if Perl is too old
14886         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
14887         Reported by Tom G. Christensen.
14888
14889 2010-09-02  Bruno Haible  <bruno@clisp.org>
14890
14891         wctype: Avoid compilation error on IRIX 6.5.30.
14892         * lib/wctype.in.h (iswblank): Declare with a replacement if
14893         REPLACE_ISWBLANK is set.
14894         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
14895         declared. Set REPLACE_ISWBLANK.
14896         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
14897         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
14898         * doc/posix-headers/wctype.texi: Likewise.
14899         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14900
14901 2010-09-01  Bruno Haible  <bruno@clisp.org>
14902
14903         New module 'socketlib'.
14904         * modules/socketlib: New file.
14905         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
14906         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
14907         * modules/sockets (Depends-on): Add socketlib.
14908         Suggested by Sam Steingold <sds@gnu.org>.
14909
14910 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14911
14912         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
14913
14914         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
14915         when one needs search access to a directory but not read access.
14916         On systems where it is available, it works in some cases where
14917         O_RDONLY does not, namely on directories that are searchable but
14918         not readable, and which need only to be searchable.  If O_SEARCH
14919         is not available, fall back to the traditional method of using
14920         O_RDONLY.
14921
14922         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
14923         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
14924         when opening a directory that needs only to be searchable.
14925         * lib/chdir-safer.c (chdir_no_follow): Likewise.
14926         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
14927         * lib/openat-proc.c (openat_proc_name): Likewise.
14928         * lib/openat.c (openat_needs_fchdir): Likewise.
14929         * lib/save-cwd.c (save_cwd): Likewise.
14930         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
14931
14932 2010-08-28  Bruno Haible  <bruno@clisp.org>
14933
14934         New module 'host-cpu-c-abi'.
14935         * modules/host-cpu-c-abi: New file.
14936         * m4/host-cpu-c-abi.m4: New file, based on part of
14937         clisp/src/m4/general.m4.
14938         Requested by Sam Steingold <sds@gnu.org>.
14939
14940 2010-08-31  Eric Blake  <eblake@redhat.com>
14941         and Jim Meyering  <meyering@redhat.com>
14942
14943         hash: factor, and guard against misbehaving hasher function
14944         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
14945         of table->hasher's return value.  Also protect against a hash value
14946         so large that adding it to table->bucket results in a NULL pointer.
14947         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
14948         Use it in place of open-coded check-and-abort.
14949
14950 2010-08-30  Bruno Haible  <bruno@clisp.org>
14951
14952         hash: silence spurious clang warning
14953         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
14954         Reported by Eric Blake.
14955
14956 2010-08-30  Eric Blake  <eblake@redhat.com>
14957
14958         strstr, memmem, strcasestr: avoid leaked shell message
14959         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
14960         FreeBSD.
14961         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14962         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14963
14964         tests: silence clang warning
14965         * tests/test-malloca.c (do_allocation): Avoid dead store.
14966
14967 2010-08-29  Bruno Haible  <bruno@clisp.org>
14968
14969         gettext: Fix recent mistake.
14970         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
14971
14972 2010-08-29  Bruno Haible  <bruno@clisp.org>
14973
14974         selinux-h: Offer a --without-selinux option.
14975         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
14976         --without-selinux was specified, skip all tests and define
14977         HAVE_SELINUX_SELINUX_H to 0.
14978         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
14979         set LIB_SELINUX to empty.
14980         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
14981         gl_LIBSELINUX. If --without-selinux was specified, replace
14982         selinux/context.h.
14983         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
14984
14985 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14986             Bruno Haible  <bruno@clisp.org>
14987
14988         Make the module 'realloc-gnu' work again on AIX and OSF/1.
14989         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
14990         of HAVE_REALLOC.
14991         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
14992         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
14993         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
14994         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14995
14996 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14997             Bruno Haible  <bruno@clisp.org>
14998
14999         Make the module 'calloc-gnu' work again on AIX and OSF/1.
15000         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
15001         HAVE_CALLOC.
15002         * lib/xmalloc.c: Update accordingly.
15003         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
15004         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
15005         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
15006
15007 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15008             Bruno Haible  <bruno@clisp.org>
15009
15010         Make the module 'malloc-gnu' work again on AIX and OSF/1.
15011         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
15012         HAVE_MALLOC.
15013         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
15014         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
15015         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15016
15017 2010-08-29  Bruno Haible  <bruno@clisp.org>
15018
15019         Update modules list.
15020         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15021         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
15022         (String handling <string.h>): Add astrxfrm.
15023         (File system functions): Add readlinkat.
15024
15025 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15026
15027         Tests for module 'realloc-gnu'.
15028         * modules/realloc-gnu-tests: New file.
15029         * tests/test-realloc-gnu.c: New file.
15030
15031         Tests for module 'calloc-gnu'.
15032         * modules/calloc-gnu-tests: New file.
15033         * tests/test-calloc-gnu.c: New file.
15034
15035         Tests for module 'malloc-gnu'.
15036         * modules/malloc-gnu-tests: New file.
15037         * tests/test-malloc-gnu.c: New file.
15038
15039 2010-08-28  Bruno Haible  <bruno@clisp.org>
15040
15041         Rename module 'realloc' -> 'realloc-gnu'.
15042         * modules/realloc-gnu: New file, copied from modules/realloc.
15043         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
15044         obsolete.
15045         * modules/mgetgroups (Depends-on): Update.
15046         * doc/posix-functions/realloc.texi: Update.
15047         * NEWS: Mention the change.
15048
15049         Rename module 'calloc' -> 'calloc-gnu'.
15050         * modules/calloc-gnu: New file, copied from modules/calloc.
15051         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
15052         obsolete.
15053         * doc/posix-functions/calloc.texi: Update.
15054         * NEWS: Mention the change.
15055
15056         Rename module 'malloc' -> 'malloc-gnu'.
15057         * modules/malloc-gnu: New file, copied from modules/malloc.
15058         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
15059         obsolete.
15060         * modules/argp (Depends-on): Update.
15061         * modules/regex (Depends-on): Update.
15062         * doc/posix-functions/malloc.texi: Update.
15063         * NEWS: Mention the change.
15064
15065 2010-08-28  Eric Blake  <eblake@redhat.com>
15066
15067         pread, pwrite: add missing dependency
15068         * modules/pread (Depends-on): Add extensions.
15069         * modules/pwrite (Depends-on): Likewise.
15070
15071 2010-08-28  Bruno Haible  <bruno@clisp.org>
15072
15073         unistr/u*-strchr: Fix tests dependencies.
15074         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
15075         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
15076         Reported by Ian Beckwith <ianb@erislabs.net>.
15077
15078 2010-08-28  Bruno Haible  <bruno@clisp.org>
15079
15080         read-file: Don't occupy too much unused memory.
15081         * lib/read-file.c (fread_file): Shrink the buffer at the end.
15082
15083 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
15084             Eric Blake  <eblake@redhat.com>
15085             Bruno Haible  <bruno@clisp.org>
15086
15087         read-file: Avoid memory reallocations with regular files.
15088         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
15089         (fread_file): With regular files, use the remaining length as the
15090         initial buffer size.  Check against overflow.
15091         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
15092         sys_stat.
15093
15094 2010-08-28  Bruno Haible  <bruno@clisp.org>
15095
15096         ftello: Relax license.
15097         * modules/ftello (License): Relax to LGPLv2+.
15098         Reported by Eric Blake.
15099
15100 2010-08-28  Bruno Haible  <bruno@clisp.org>
15101
15102         Avoid relocwrapper link errors due to gnulib replacement functions.
15103         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
15104         function.
15105         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15106
15107 2010-08-28  Bruno Haible  <bruno@clisp.org>
15108
15109         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
15110         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
15111         defined.
15112         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
15113         Suggested by Eric Blake.
15114
15115 2010-08-28  Bruno Haible  <bruno@clisp.org>
15116
15117         sys_socket, netdb: Ensure socklen_t gets defined.
15118         * modules/sys_socket (Depends-on): Add socklen.
15119         * modules/netdb (Depends-on): Likewise.
15120         * modules/getaddrinfo (Depends-on): Remove socklen.
15121         * modules/getsockopt (Depends-on): Likewise.
15122         * modules/setsockopt (Depends-on): Likewise.
15123         * tests/test-sys_socket.c: Check that socklen_t is defined.
15124         * tests/test-netdb.c: Likewise.
15125         * m4/socklen.m4: Update comments.
15126         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15127
15128 2010-08-27  Eric Blake  <eblake@redhat.com>
15129
15130         login_tty: add missing dependency
15131         * modules/login_tty (Depends-on): Add pty.
15132
15133 2010-08-26  Eric Blake  <eblake@redhat.com>
15134
15135         lib-symbol-versions: fix m4 quoting
15136         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
15137         format for AC_LINK_IFELSE.
15138
15139         glob: fix compile test
15140         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
15141
15142         btowc: fix missing file
15143         * modules/btowc (Files): Also ship locale-fr.m4.
15144
15145         lseek: fix link test
15146         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
15147         AC_LINK_IFELSE.
15148
15149         include_next: silence autoconf 2.68 warning
15150         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
15151         AC_COMPILE_IFELSE as special.
15152         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
15153         autoconf < 2.68.
15154
15155         acl: fix compilation test
15156         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
15157         AC_COMPILE_IFELSE.
15158
15159 2010-08-26  Bruno Haible  <bruno@clisp.org>
15160
15161         Modernize AC_TRY_RUN invocations.
15162         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
15163         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15164         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
15165         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
15166         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
15167         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15168         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15169         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15170         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15171         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15172         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15173         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15174         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15175         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15176         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15177         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15178         gl_MBRLEN_NUL_RETVAL): Likewise.
15179         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15180         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15181         Likewise.
15182         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15183         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15184         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15185         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15186         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
15187         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
15188         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
15189         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15190         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
15191         Likewise.
15192         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15193         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
15194         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15195         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15196         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15197         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15198         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15199         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
15200         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15201         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15202
15203 2010-08-26  Bruno Haible  <bruno@clisp.org>
15204
15205         Modernize AC_TRY_LINK invocations.
15206         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
15207         AC_TRY_LINK.
15208         * m4/argp.m4 (gl_ARGP): Likewise.
15209         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15210         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15211         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15212         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15213         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15214         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
15215         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15216         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15217         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15218         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15219         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15220         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
15221         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
15222         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15223         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15224         * m4/hostent.m4 (gl_HOSTENT): Likewise.
15225         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15226         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
15227         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15228         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
15229         Likewise.
15230         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
15231         Likewise.
15232         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
15233         Likewise.
15234         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15235         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
15236         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
15237         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15238         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15239         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15240         * m4/servent.m4 (gl_SERVENT): Likewise.
15241         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15242         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15243         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15244         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15245         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15246         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15247         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15248         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15249         * modules/tsearch-tests (configure.ac): Likewise.
15250
15251 2010-08-26  Bruno Haible  <bruno@clisp.org>
15252
15253         Modernize AC_TRY_COMPILE invocations.
15254         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15255         AC_TRY_COMPILE.
15256         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15257         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15258         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15259         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15260         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15261         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15262         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15263         * m4/lock.m4 (gl_LOCK): Likewise.
15264         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15265         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15266         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15267         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15268         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15269         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15270         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15271         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15272         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15273         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15274         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15275         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15276         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15277         extraneous semicolon.
15278
15279 2010-08-26  Jim Meyering  <meyering@redhat.com>
15280
15281         stat-time: relax license LGPL
15282         * modules/stat-time (License): Change from GPL to LGPL,
15283         with consent from all contributors, for use in libguile.
15284         Requested by Ludovic Courtès.
15285
15286 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15287
15288         poll: return immediately on POLLHUP.
15289         * lib/poll.c (poll): Always set timeout before wait_timeout is
15290         computed.
15291
15292 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15293
15294         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15295         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15296         rmdir ("dir/.//"), unlinkat.
15297
15298 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15299
15300         stdbool: avoid spurious failure with modern xlc
15301         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15302
15303 2010-08-24  Bruno Haible  <bruno@clisp.org>
15304
15305         getloadavg: simplify code
15306         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15307         gl_have_func. Update comments.
15308
15309 2010-08-24  Eric Blake  <eblake@redhat.com>
15310
15311         getloadavg: don't define SVR4 on cygwin
15312         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15313         only define SVR4 when -lkvm is required.
15314         Reported by Yaakov Selkowitz.
15315
15316 2010-08-24  Bruno Haible  <bruno@clisp.org>
15317
15318         priv-set: fix comment
15319         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15320
15321 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15322
15323         priv-set: fix comments
15324         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15325         to match code, as suggested by David Bartley in:
15326         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15327
15328 2010-08-23  Eric Blake  <eblake@redhat.com>
15329
15330         stdbool: avoid rejecting clang
15331         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15332         * tests/test-stdbool.c: Enable more tests if using the system
15333         <stdbool.h> instead of the gnulib replacement.
15334         (main): Move xlc bug test to a runtime test for all compilers.
15335         Reported by Anders Kaseorg.
15336
15337         argz: fix shell quoting issue
15338         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15339         Reported by Charles Wilson.
15340
15341 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15342             Erik Faye-Lund <kusmabite@gmail.com>
15343
15344         poll, select: handle ERROR_BROKEN_PIPE.
15345         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15346         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15347         * lib/select.c (win32_compute_revents): Do not mark a pipe
15348         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15349
15350 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15351
15352         fts: allow compilation with C++
15353         * lib/fts_.h: Specify extern "C" linkage with C++.
15354
15355 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15356
15357         Fix gnulib-tool sed script de-commentation for AIX sed.
15358         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15359         sed.
15360
15361 2010-08-17  Eric Blake  <eblake@redhat.com>
15362
15363         test-stddef: test for (some) offsetof bugs
15364         * tests/test-stddef.c: Enhance test to ensure correct type of
15365         offsetof.
15366         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15367         that we are not fixing at this time.
15368
15369 2010-08-15  Bruno Haible  <bruno@clisp.org>
15370
15371         stpncpy: Allow stpncpy to be defined as a macro.
15372         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15373         if it's already correctly declared.
15374         * lib/string.in.h (stpncpy): Undefine before redefining.
15375         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15376
15377 2010-08-14  Bruno Haible  <bruno@clisp.org>
15378
15379         Rename module 'memxfrm' to 'amemxfrm'.
15380         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15381         (amemxfrm): Renamed from memxfrm.
15382         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15383         (amemxfrm): Renamed from memxfrm.
15384         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15385         * NEWS: Mention the change.
15386         * MODULES.html.sh (String handling <string.h>): Update.
15387         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15388         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15389         * lib/unicase/u16-casexfrm.c: Likewise.
15390         * lib/unicase/u32-casexfrm.c: Likewise.
15391         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15392         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15393         * lib/uninorm/u16-normxfrm.c: Likewise.
15394         * lib/uninorm/u32-normxfrm.c: Likewise.
15395         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15396         memxfrm.
15397         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15398         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15399         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15400         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15401         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15402         Suggested by Paul Eggert.
15403
15404 2010-08-14  Bruno Haible  <bruno@clisp.org>
15405
15406         Tests for module 'astrxfrm'.
15407         * modules/astrxfrm-tests: New file.
15408         * tests/test-astrxfrm.c: New file.
15409
15410         New module 'astrxfrm'.
15411         * lib/astrxfrm.h: New file.
15412         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15413         * modules/astrxfrm: New file.
15414
15415 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15416
15417         regex: Tweak doc.
15418         * doc/regex.texi (Overview): Don't mention regex.c.
15419         (GNU Regular Expression Compiling): Likewise.
15420         (Match-end-of-line Operator): Mention 'not_eol'.
15421
15422 2010-08-14  Brian Gough  <bjg@gnu.org>
15423             Bruno Haible  <bruno@clisp.org>
15424
15425         git-merge-changelog: add doc relating to use with bzr and hg.
15426         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15427
15428 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15429
15430         pthread: fix pthread.h creation for srcdir != builddir
15431         * modules/pthread (Makefile.am): Fix the rule to work also in a
15432         non-srcdir build.
15433
15434 2010-08-13  Karl Berry  <karl@gnu.org>
15435
15436         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15437         * doc/posix-*/*: force line break before @url of POSIX
15438         specifications.
15439         Suggested by Werner Lemberg.
15440
15441 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15442
15443         strtod: fix const diagnostic
15444         * lib/strtod.c (strtod): Don't assign const char * to char *,
15445         as this elicits a warning from GCC when warnings are enabled.
15446
15447 2010-08-10  Pádraig Brady <P@draigbrady.com>
15448         and Eric Blake  <eblake@redhat.com>
15449
15450         copy-acl: ignore ENOTSUP on HP-UX
15451         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15452         so that it is available for HP-UX.
15453         * lib/copy-acl.c (qcopy_acl): Use it.
15454         Reported by Patrick M. Callahan.
15455
15456 2010-08-10  Eric Blake  <eblake@redhat.com>
15457
15458         open, chown: relax license
15459         * modules/open (License): Change to LGPLv2+, with consent by all
15460         authors, for use in augeas.
15461         * modules/chown (License): Likewise.
15462         * modules/lchown (Likewise): Likewise.
15463         Requested by Adam Stokes.
15464
15465 2010-08-09  Karl Berry  <karl@gnu.org>
15466
15467         * build-aux/ar-lib: new file, import from Automake.
15468         * config/srclist.txt: autocheck for updates.
15469
15470 2010-08-09  Eric Blake  <eblake@redhat.com>
15471
15472         readlinkat: adjust client modules
15473         * modules/areadlinkat (Depends-on): Use readlinkat, not
15474         symlinkat.
15475         * modules/areadlinkat-with-size (Depends-on): Likewise.
15476
15477         mknod: be more vocal about danger of running tests as root
15478         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
15479         root, since that is just asking for problems.
15480         Suggested by Bruno Haible, based on a report by Rainer Tammer.
15481
15482         readlinkat: split into its own module
15483         * modules/symlinkat: Split readlinkat...
15484         * modules/readlinkat: ...into separate module.
15485         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
15486         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
15487         * lib/symlinkat.c (readlinkat): Move...
15488         * lib/readlinkat.c: ...into new file.
15489         * modules/symlinkat-tests: Split readlinkat test...
15490         * modules/readlinkat-tests: ...into separate module.
15491         * tests/test-symlinkat.c: Split...
15492         * tests/test-readlinkat.c: ...into new file.
15493         * NEWS: Document the split.
15494         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15495         * lib/unistd.in.h (readlinkat): Likewise.
15496         Suggested by Bruno Haible.
15497
15498 2010-08-08  Bruno Haible  <bruno@clisp.org>
15499
15500         memxfrm: Speed up.
15501         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
15502         that usually only one call to strxfrm is necessary for each string
15503         part.
15504         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15505
15506 2010-08-07  Karl Berry  <karl@gnu.org>
15507
15508         * doc/posix-headers/limits.texi,
15509         * doc/posix-functions/malloc.texi,
15510         * doc/posix-functions/strsignal.texi: missing @item.
15511         * doc/ld-version-script.texi: spurious leading i.
15512         * doc/regex.texi (Interval Operators): no commas inside @var.
15513
15514 2010-08-01  Bruno Haible  <bruno@clisp.org>
15515
15516         Integrate the regex documentation.
15517         * doc/gnulib.texi: Define 'cn' index.
15518         (Regular expressions): New a chapter that includes regex.texi and
15519         regexprops-generic.texi.
15520         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15521         syntax.
15522
15523         Whitespace cleanup.
15524         * doc/regex.texi: Remove trailing spaces.
15525
15526         Add regex documentation.
15527         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
15528         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
15529         Written by Kathy A. Hargreaves and Karl Berry.
15530
15531 2010-08-01  Bruno Haible  <bruno@clisp.org>
15532
15533         link: Update documentation.
15534         * doc/posix-functions/link.texi: Update regarding Solaris.
15535
15536 2010-07-31  Bruno Haible  <bruno@clisp.org>
15537
15538         Update modules list.
15539         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
15540         (String handling <string.h>): Add memcmp2, memxfrm.
15541         (Container data structures): Add xlist, xsublist, xoset.
15542         (Core language properties): Add alignof, unused-parameter.
15543         (Process control, Numeric conversion functions <stdlib.h>): Renamed
15544         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
15545         (Unibyte characters <ctype.h>): New section.
15546         (String handling <string.h>): New section.
15547         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
15548         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
15549         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
15550         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
15551         tan, tanh, tanl, y0, y1, yn.
15552         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
15553         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
15554         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
15555         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
15556         unlockpt, vdprintf, vdprintf-posix.
15557         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
15558         (File system functions): Add concat-filename, sys_file, sys_ioctl,
15559         xconcat-filename.
15560         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
15561         getdtablesize, pipe2, pipe2-safer.
15562         (Security): New section.
15563         (Networking functions): Add accept4.
15564         (Signal handling): Add sigpipe.
15565         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15566         mbmemcasecoll.
15567         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15568         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15569         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15570         pipe-filter-ii.
15571         (Misc): Add argp-version-etc, login_tty, parse-duration.
15572
15573 2010-07-31  Bruno Haible  <bruno@clisp.org>
15574
15575         Improve doc in MODULES.html.
15576         * modules/linkat (Description): Add the word "function".
15577         * modules/mkfifo (Description): Likewise.
15578         * modules/mknod (Description): Likewise.
15579         * modules/remove (Description): Likewise.
15580         * modules/renameat (Description): Likewise.
15581         * modules/stat (Description): Likewise.
15582         * modules/symlink (Description): Likewise.
15583         * modules/unlink (Description): Likewise.
15584
15585 2010-07-31  Bruno Haible  <bruno@clisp.org>
15586
15587         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15588         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15589         option --enable/disable-c++ instead of --enable/disable-cxx.
15590         * NEWS: Mention the change.
15591
15592 2010-07-31  Bruno Haible  <bruno@clisp.org>
15593
15594         readlink, areadlink: Relax test a bit.
15595         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15596         alternative to ENOTDIR.
15597         * tests/test-areadlink.h (test_areadlink): Likewise.
15598         Reported by Rainer Tammer.
15599
15600 2010-07-31  Bruno Haible  <bruno@clisp.org>
15601
15602         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15603         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15604         character, perform the search using U_STRCHR.
15605         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15606         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15607         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15608         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15609         Suggested by Paolo Bonzini.
15610
15611 2010-07-31  Bruno Haible  <bruno@clisp.org>
15612
15613         unistr/u*-strstr: Fix dependencies.
15614         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15615         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15616         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15617
15618 2010-07-31  Bruno Haible  <bruno@clisp.org>
15619
15620         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15621         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15622         the beginning of the loop.
15623         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15624         cases in 'switch' statement.
15625
15626         unistr/u8-strchr: Fix several bugs.
15627         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15628         the string. When not found, return NULL, not a pointer near the end.
15629
15630         More tests for unistr/u8-strchr.
15631         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15632         that the function does not read past the first occurrence of the byte
15633         being searched.
15634         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15635         * tests/unistr/test-u16-strchr.c (main): New function.
15636         * tests/unistr/test-u32-strchr.c (main): New function.
15637
15638 2010-07-31  Bruno Haible  <bruno@clisp.org>
15639
15640         posix-modules: Ignore backup files of documentation files.
15641         * posix-modules: grep only through files named *.texi.
15642
15643 2010-07-31  Bruno Haible  <bruno@clisp.org>
15644
15645         symlinkat: Fix documentation.
15646         * doc/posix-functions/readlinkat.texi: Fix module name.
15647
15648 2010-07-31  Bruno Haible  <bruno@clisp.org>
15649
15650         fchownat: Replace also when chown has the trailing slash bug.
15651         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
15652         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
15653         introduced on 2010-04-10.
15654         Reported by Rainer Tammer.
15655
15656 2010-07-31  Bruno Haible  <bruno@clisp.org>
15657
15658         linkat: Work around AIX 7.1 bug.
15659         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
15660         whether linkat handles trailing slash correctly. If not, replace linkat
15661         and define LINKAT_TRAILING_SLASH_BUG.
15662         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
15663         check whether (fd1,file1) points to a directory if file1 or file2 ends
15664         in a slash. Code taken from lib/link.c.
15665         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
15666         Reported by Rainer Tammer.
15667
15668 2010-07-31  Bruno Haible  <bruno@clisp.org>
15669
15670         Correctly determine whether pow is available in libc on AIX 7 with xlc.
15671         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
15672         This disables an xlc optimization that was causing wrong test results.
15673         Reported by Rainer Tammer.
15674
15675 2010-07-31  Bruno Haible  <bruno@clisp.org>
15676
15677         iconv: Work around AIX 6.1..7.1 bug.
15678         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
15679         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
15680         cross-compiling, guess no on all versions of AIX.
15681         Reported by Rainer Tammer.
15682
15683 2010-07-31  Bruno Haible  <bruno@clisp.org>
15684
15685         readlink: Relax test a bit.
15686         * tests/test-readlink.h (test_readlink): Allow different errno value
15687         when readlink is called with a file name that ends in / and refers to
15688         a file.
15689         Suggested by Eric Blake.
15690         Reported by Rainer Tammer.
15691
15692 2010-07-31  Bruno Haible  <bruno@clisp.org>
15693
15694         copysign: Does not require -lm on glibc systems.
15695         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
15696         gl_COMMON_DOUBLE_MATHFUNC.
15697         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
15698
15699 2010-07-31  Bruno Haible  <bruno@clisp.org>
15700
15701         duplocale: Work around AIX 7.1 bug.
15702         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
15703         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
15704         * lib/duplocale.c (rpl_duplocale): Update comment.
15705         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
15706         Reported by Rainer Tammer.
15707
15708 2010-07-30  Bruno Haible  <bruno@clisp.org>
15709
15710         dirfd: Avoid link error on AIX 7.1.
15711         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
15712         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
15713         exist, set REPLACE_DIRFD.
15714         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
15715         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
15716         * doc/posix-functions/dirfd.texi: Update.
15717         Reported by Rainer Tammer.
15718
15719 2010-07-30  Eric Blake  <eblake@redhat.com>
15720
15721         strtod: next round of AIX fixes
15722         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
15723         exponent.
15724         * tests/test-strtod.c (main): Enhance tests.
15725         * doc/posix-functions/strtod.texi (strtod): Document next bug.
15726         Reported by Rainer Tammer.
15727
15728         futimens: fix configure check
15729         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
15730         Reported by Bruno Haible.
15731
15732 2010-07-30  Bruno Haible  <bruno@clisp.org>
15733
15734         getline: Update regarding AIX.
15735         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
15736         Reported by Rainer Tammer.
15737
15738 2010-07-30  Bruno Haible  <bruno@clisp.org>
15739
15740         wcwidth: Drop replacement on AIX 7.
15741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
15742         AIX 7.
15743         Reported by Rainer Tammer.
15744
15745 2010-07-30  Bruno Haible  <bruno@clisp.org>
15746
15747         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
15748         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
15749         a 'char *'.
15750         Reported by Rainer Tammer.
15751
15752 2010-07-30  Bruno Haible  <bruno@clisp.org>
15753
15754         unlink: Update regarding AIX.
15755         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
15756         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
15757         Reported by Rainer Tammer.
15758
15759 2010-07-30  Bruno Haible  <bruno@clisp.org>
15760
15761         symlink: Update regarding AIX.
15762         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
15763         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
15764         Reported by Rainer Tammer.
15765
15766 2010-07-30  Bruno Haible  <bruno@clisp.org>
15767
15768         strndup: Update regarding AIX.
15769         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
15770         AIX 7.
15771         Reported by Rainer Tammer.
15772
15773 2010-07-30  Bruno Haible  <bruno@clisp.org>
15774
15775         stat: Update regarding AIX.
15776         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
15777         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
15778         Reported by Rainer Tammer.
15779
15780 2010-07-30  Bruno Haible  <bruno@clisp.org>
15781
15782         truncl: Fix autoconf test.
15783         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
15784         whether truncl works.
15785         Reported by Rainer Tammer.
15786
15787 2010-07-30  Bruno Haible  <bruno@clisp.org>
15788
15789         round: Update regarding AIX.
15790         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
15791         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
15792         Reported by Rainer Tammer.
15793
15794 2010-07-30  Bruno Haible  <bruno@clisp.org>
15795
15796         rename: Update regarding AIX.
15797         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
15798         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
15799         Reported by Rainer Tammer.
15800
15801 2010-07-30  Bruno Haible  <bruno@clisp.org>
15802
15803         printf.m4: Update regarding AIX.
15804         * m4/printf.m4: Update comments regarding AIX.
15805         Reported by Rainer Tammer.
15806
15807 2010-07-30  Bruno Haible  <bruno@clisp.org>
15808
15809         iconv: Update regarding AIX.
15810         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
15811         AIX 7.
15812         Reported by Rainer Tammer.
15813
15814 2010-07-30  Bruno Haible  <bruno@clisp.org>
15815
15816         getopt: Update regarding AIX.
15817         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
15818         no on AIX.
15819         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
15820         Reported by Rainer Tammer.
15821
15822 2010-07-30  Bruno Haible  <bruno@clisp.org>
15823
15824         ldexpl; Update regarding AIX.
15825         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
15826         on AIX 7.
15827         Reported by Rainer Tammer.
15828
15829 2010-07-30  Bruno Haible  <bruno@clisp.org>
15830
15831         frexpl: Update regarding AIX.
15832         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
15833         on AIX 7.
15834         Reported by Rainer Tammer.
15835
15836 2010-07-30  Bruno Haible  <bruno@clisp.org>
15837
15838         open, fopen: Update regarding AIX.
15839         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
15840         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15841         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
15842         * doc/posix-functions/fopen.texi: Likewise.
15843         Reported by Rainer Tammer.
15844
15845 2010-07-30  Bruno Haible  <bruno@clisp.org>
15846
15847         chown: Update doc regarding AIX.
15848         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
15849         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
15850         Reported by Rainer Tammer.
15851
15852 2010-07-30  Eric Blake  <eblake@redhat.com>
15853
15854         strtod: fix bug in replacement function on AIX
15855         * lib/strtod.c (strtod): Special case broken "0x" parse in
15856         underlying strtod.
15857         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
15858         * doc/posix-functions/strtod.texi (strtod): Likewise.
15859         Reported by Rainer Tammer.
15860
15861 2010-07-30  Bruno Haible  <bruno@clisp.org>
15862
15863         mbrlen: Fix cross-compilation guess for AIX.
15864         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
15865         guess. Leftover from 2008-12-22.
15866
15867 2010-07-30  Bruno Haible  <bruno@clisp.org>
15868
15869         mbrtowc: Fix cross-compilation guess for AIX.
15870         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
15871         guess. Leftover from 2008-12-21.
15872
15873 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
15874
15875         init.sh: work around trap limitation of some shells
15876         * tests/init.sh (setup_): Move exit trap outside of shell function.
15877
15878 2010-07-29  Eric Blake  <eblake@redhat.com>
15879
15880         strtod: aid debugging
15881         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
15882         understanding why strtod is rejected.
15883
15884 2010-07-28  Bruno Haible  <bruno@clisp.org>
15885
15886         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
15887         * lib/unistr/u8-chr.c: Include <string.h>.
15888         * tests/unistr/test-u8-chr.c: Likewise.
15889         * tests/unistr/test-u16-chr.c: Likewise.
15890         * tests/unistr/test-u32-chr.c: Likewise.
15891         * tests/unistr/test-u8-strchr.c: Likewise.
15892         * tests/unistr/test-u16-strchr.c: Likewise.
15893         * tests/unistr/test-u32-strchr.c: Likewise.
15894         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
15895         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
15896         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
15897         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
15898
15899 2010-07-28  Bruno Haible  <bruno@clisp.org>
15900
15901         Use spaces for indentation, not tabs.
15902         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15903
15904 2010-07-27  Bruno Haible  <bruno@clisp.org>
15905
15906         mbspcasecmp: Fix function specification.
15907         * lib/string.in.h (mbspcasecmp): Fix specification comment.
15908         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
15909         Reported by Eric Blake <eblake@redhat.com>.
15910
15911 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
15912
15913         timespec: use cast and not conditional, as truncation isn't possible
15914         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
15915         instead of a conditional.  Comment about the situation in more detail.
15916         This undoes most of the 2009-10-29 patch.
15917
15918 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
15919
15920         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
15921         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
15922         * lib/unistr/u8-strchr.c: Likewise.
15923         * modules/unistr/u8-chr: Depend on memchr.
15924
15925         unistr/u*-strchr: add tests
15926         * modules/unistr/u8-strchr-tests: New file.
15927         * modules/unistr/u16-strchr-tests: New file.
15928         * modules/unistr/u32-strchr-tests: New file.
15929         * tests/unistr/test-strchr.h: New file.
15930         * tests/unistr/test-u8-strchr.c: New file.
15931         * tests/unistr/test-u16-strchr.c: New file.
15932         * tests/unistr/test-u32-strchr.c: New file.
15933
15934         unistr/u*-chr: test multibyte sequences more
15935         * tests/unistr/test-chr.h: Do complete testing of the characters in the
15936         test vector.
15937         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
15938         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
15939         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
15940
15941         unistr/u*-chr: test multibyte sequences
15942         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
15943
15944         unistr/u*-chr: prepare for multibyte tests
15945         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
15946         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
15947         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
15948         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
15949         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
15950         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
15951
15952 2010-07-18  Bruno Haible  <bruno@clisp.org>
15953
15954         unistr/u8-strchr: Optimize non-ASCII argument case.
15955         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
15956         because the first byte often matches anyway.
15957         Reported by Pádraig Brady <P@draigbrady.com>.
15958
15959 2010-07-15  Karl Berry  <karl@gnu.org>
15960
15961         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
15962
15963 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
15964
15965         getcwd: on Solaris, work better if ancestors are inaccessible
15966         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
15967         buffer and size, try again with a large buffer.  This works better
15968         on Solaris, since its getcwd succeeds even if the path to the root
15969         is inaccessible, and this is helpful in common cases such as .zfs
15970         hidden directories.  Problem reported by J Chapman Flack in
15971         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
15972         Use system getcwd if it's declared, not merely if it's partly
15973         working; use the partly-working test only to avoid needless effort
15974         if the system getcwd fails.
15975         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
15976         comment that was already obsolete and is now even more obsolete.
15977         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
15978         now might call strdup.
15979
15980 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
15981
15982         pthread: Add enough so that coreutils/src/sort.c compiles.
15983         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
15984         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
15985         gnulib. Include <sched.h> and <time.h>, as per POSIX.
15986         Include <sys/types.h>, in case it defines pthread_t.
15987         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
15988         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
15989         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
15990         (pthread_rwlockattr_t, pthread_spinlock_t):
15991         New typedefs, if HAVE_PTHREAD_T is not defined.
15992         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
15993         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
15994         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
15995         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
15996         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
15997         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
15998         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
15999         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
16000         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
16001         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
16002         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
16003         New macros.
16004         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
16005         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
16006         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
16007         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
16008         (pthread_spin_unlock): New dummy functions.
16009         (pthread_create): Return EAGAIN; don't set errno.
16010         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
16011         require AC_C_INLINE.
16012         * modules/pthread (Depends-on): Add sched, time.
16013         (pthread.h): Use AM_V_GEN.
16014
16015 2010-07-13  Bruno Haible  <bruno@clisp.org>
16016
16017         striconveh: Don't malloc memory if the result buffer is sufficient.
16018         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
16019         buffer if its size is sufficient.
16020         Reported by Ludovic Courtès <ludo@gnu.org>.
16021
16022 2010-07-13  Bruno Haible  <bruno@clisp.org>
16023
16024         strtod: Add safety check.
16025         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
16026
16027 2010-07-12  Bruno Haible  <bruno@clisp.org>
16028
16029         Unify tests that set gl_cv_func_ldexpl_no_libm.
16030         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
16031         gl_FUNC_LDEXPL.
16032         (gl_FUNC_LDEXPL): Invoke it.
16033         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16034
16035 2010-07-12  Bruno Haible  <bruno@clisp.org>
16036
16037         Unify tests that set gl_cv_func_ldexp_no_libm.
16038         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
16039         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
16040         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
16041         (configure.ac): Simply invoke gl_FUNC_LDEXP.
16042         * modules/strtod (Files): Add m4/ldexp.m4.
16043
16044 2010-07-12  Bruno Haible  <bruno@clisp.org>
16045
16046         Unify tests that set gl_cv_func_frexpl_no_libm.
16047         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
16048         gl_FUNC_FREXPL_NO_LIBM.
16049         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
16050         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16051
16052 2010-07-12  Bruno Haible  <bruno@clisp.org>
16053
16054         Unify tests that set gl_cv_func_frexp_no_libm.
16055         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
16056         gl_FUNC_FREXP_NO_LIBM.
16057         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
16058         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16059
16060 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16061
16062         memcoll: clarify sizes versus lengths, document better, and tweak perf
16063         * lib/memcoll.c (strcoll_loop, memcoll0):
16064         Improve quality of descriptive comments.  Name variables
16065         consistently as to whether they are lengths (which do not include
16066         terminating null) versus sizes (which do).
16067         * lib/xmemcoll.c (xmemcoll0): Likewise.
16068         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
16069         returned when s1size == 0; this is easier to compile and saves
16070         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
16071
16072 2010-07-12  Bruno Haible  <bruno@clisp.org>
16073
16074         Tests for module '_Exit'.
16075         * modules/_Exit-tests: New file.
16076         * tests/test-_Exit.sh: New file.
16077         * tests/test-_Exit.c: New file.
16078
16079         New module '_Exit'.
16080         * lib/stdlib.in.h (__attribute__): New macro.
16081         (_Exit): New declaration.
16082         * lib/_Exit.c: New file.
16083         * m4/_Exit.m4: New file.
16084         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
16085         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
16086         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
16087         * modules/_Exit: New file.
16088         * tests/test-stdlib-c++.cc (_Exit): Check signature.
16089         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
16090
16091 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16092
16093         strtod: make it more-accurate typically, and don't require libm
16094         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
16095         Include limits.h.  Don't include string.h.
16096         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
16097         (locale_isspace): New function, so that no casts are needed to
16098         check whether *s is a space.
16099         (ldexp): Provide an unused dummy if not available.
16100         (scale_radix_exp, parse_number, underlying_strtod): New functions.
16101         (strtod): Use them.  This implementation prefers to use the
16102         underlying strtod if available, falling back on our own code
16103         only to fix known bugs.  This is more likely to produce an
16104         accurate result.  Also, it avoids the use of libm functions.
16105         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
16106         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
16107         was absent, but it caused a test failure with coreutils.
16108         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
16109         with libm.
16110         * modules/strtod (Makefile.am, Link): libm is no longer needed.
16111         * modules/strtod-tests (Makefile.am): Likewise.
16112
16113 2010-07-11  Pádraig Brady  <P@draigBrady.com>
16114             Bruno Haible  <bruno@clisp.org>
16115
16116         unistr/u8-strchr: Optimize ASCII argument case.
16117         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
16118
16119 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16120
16121         (x)memcoll: minor tweaks
16122         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
16123         is after the type that it qualifies.
16124         (memcoll0): Likewise.
16125         * lib/memcoll.h (memcoll0): Likewise.
16126         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
16127         * lib/xmemcoll.h (xmemcoll0): Likewise.
16128         * lib/memcoll.c (memcoll0): Correct the comment.  This function
16129         differs from memcoll in that the NUL byte is part of the argument.
16130         Omit the abort-checks, as performance is a real issue here.  Plus,
16131         the checks were wrong anyway (an off-by-one error).  Omit local
16132         variable 'diff', as it's a bit clearer that way.
16133         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
16134         no longer needed.
16135
16136 2010-07-08  Chen Guo <chenguo4@yahoo.com>
16137
16138         (x)memcoll: speedup when input is known to be NUL delimited
16139         * lib/memcoll.c: Include stdlib.
16140         (memcoll0): New function.
16141         (strcoll_loop): New function, refactored for use in both memcoll
16142         and memcoll0.
16143         * lib/memcoll.h (memcoll0): Add prototype.
16144         * lib/xmemcoll.c (xmemcoll0): New function.
16145         (collate_error): New function, refactored for use in both xmemcoll
16146         and xmemcoll0.
16147         * lib/xmemcoll.h (xmemcoll0): Add prototype.
16148         * m4/memcoll.m4: add inline invocation.
16149
16150 2010-07-06  Pádraig Brady  <P@draigBrady.com>
16151
16152         * build-aux/bootstrap: Remove any local translations
16153         from the translation project synchronization directory,
16154         so that local only translations are not distributed.
16155
16156 2010-07-04  Bruno Haible  <bruno@clisp.org>
16157
16158         fsusage: Clarify which code applies to which platforms.
16159         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
16160         platform.
16161         * lib/fsusage.c (get_fs_usage): Likewise.
16162
16163 2010-07-04  Bruno Haible  <bruno@clisp.org>
16164
16165         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
16166         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
16167         Reported by Martin Lambers <marlam@marlam.de>.
16168
16169 2010-07-04  Jim Meyering  <meyering@redhat.com>
16170
16171         hash: once again explicitly disallow insertion of NULL
16172         * lib/hash.c (hash_insert0): Reinstate just-removed test:
16173         inserting a NULL pointer cannot work with these functions.
16174         Add a comment with details.
16175         This reverts part of the 2010-07-01 commit, 5bef1a35
16176         "hash: extend module to deal with non-pointer keys".
16177
16178 2010-07-01  Bruno Haible  <bruno@clisp.org>
16179
16180         stdbool: Update doc.
16181         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
16182         Info from Christian Weisgerber <naddy@mips.inka.de>.
16183
16184 2010-07-01  Jim Meyering  <meyering@redhat.com>
16185
16186         hash: extend module to deal with non-pointer keys
16187         * lib/hash.c (hash_insert0): New interface, much like hash_insert
16188         but that allows insertion of non-pointer entries.
16189         Do not disallow an ENTRY value of NULL.
16190         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
16191         * lib/hash.h (hash_insert0): Declare.
16192
16193 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16194
16195         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
16196         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
16197         not present (i.e. with autoconf 2.59 and when using gettextize, not
16198         gnulib), require AC_GNU_SOURCE instead.
16199
16200 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
16201
16202         idpriv-drop: Fix tests.
16203         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
16204         not to the test-idpriv-droptemp program.
16205
16206 2010-06-29  Bruno Haible  <bruno@clisp.org>
16207
16208         string: Fix syntax error with g++ 2.96.
16209         * lib/string.in.h (__pure__): Remove definition.
16210         (_GL_ATTRIBUTE_PURE): New macro.
16211         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
16212         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
16213         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16214
16215 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
16216
16217         unitypes: Fix bug introduced on 2010-05-18.
16218         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
16219
16220 2010-06-22  Eric Blake  <eblake@redhat.com>
16221
16222         memmem: slight optimization
16223         * lib/str-two-way.h (critical_factorization): Update comments.
16224         Reduce work during factorization phase.
16225         Reported by Carlos Bueno <carlos@bueno.org>.
16226
16227 2010-06-21  Bruno Haible  <bruno@clisp.org>
16228
16229         Fix HAVE_CALLOC_POSIX misnomer.
16230         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
16231         !HAVE_CALLOC_POSIX.
16232         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
16233         HAVE_CALLOC_POSIX.
16234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
16235         instead of HAVE_CALLOC_POSIX.
16236         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
16237         HAVE_CALLOC_POSIX.
16238
16239         Use modern idiom for calloc() replacement.
16240         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
16241         AC_FUNC_CALLOC.
16242         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
16243         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
16244         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16245         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
16246         (gl_REPLACE_CALLOC): New macro.
16247
16248 2010-06-21  Bruno Haible  <bruno@clisp.org>
16249
16250         Fix HAVE_REALLOC_POSIX misnomer.
16251         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
16252         !HAVE_REALLOC_POSIX.
16253         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16254         HAVE_REALLOC_POSIX.
16255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16256         instead of HAVE_REALLOC_POSIX.
16257         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16258         HAVE_REALLOC_POSIX.
16259
16260         Use modern idiom for realloc() replacement.
16261         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16262         AC_FUNC_REALLOC.
16263         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16264         Autoconf's AC_FUNC_REALLOC.
16265         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16266         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16267         (gl_REPLACE_REALLOC): New macro.
16268         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16269
16270 2010-06-21  Bruno Haible  <bruno@clisp.org>
16271
16272         Fix HAVE_MALLOC_POSIX misnomer.
16273         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16274         !HAVE_MALLOC_POSIX.
16275         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16276         HAVE_MALLOC_POSIX.
16277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16278         instead of HAVE_MALLOC_POSIX.
16279         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16280         HAVE_MALLOC_POSIX.
16281
16282         Use modern idiom for malloc() replacement.
16283         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16284         AC_FUNC_MALLOC.
16285         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16286         Autoconf's AC_FUNC_MALLOC.
16287         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16288         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16289         (gl_REPLACE_MALLOC): New macro.
16290         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16291
16292 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16293
16294         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16295         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16296         This macro takes 3 arguments, not 4.
16297
16298 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16299
16300         ipv6: fix detection under mingw
16301         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16302         in6_addr.
16303
16304 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16305
16306         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16307         that strtod() works when cross-compiling to a glibc version known
16308         to work.
16309
16310 2010-06-15  Bruno Haible  <bruno@clisp.org>
16311
16312         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16313
16314 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16315
16316         select: Correct timeout.
16317         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16318
16319 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16320
16321         git-version-gen: init shell var to avoid env var influence
16322         * build-aux/git-version-gen (v): Init shell var to empty.
16323
16324 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16325
16326         priv-set: Don't assume that priv.h exists merely because getppriv does.
16327         See Jan Andersen's bug report about AIX 5L in
16328         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16329         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16330         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16331         * lib/priv-set.h: Likewise.
16332         * tests/test-priv-set.c: Likewise.
16333
16334 2010-06-13  Bruno Haible  <bruno@clisp.org>
16335
16336         relocatable: Make it easier to test whether to install wrappers.
16337         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16338         RELOCATABLE_VIA_WRAPPER.
16339
16340 2010-06-13  Bruno Haible  <bruno@clisp.org>
16341
16342         gnulib-tool: Display specified modules and dependencies differently.
16343         * gnulib-tool (func_show_module_list): New function.
16344         (func_import, func_create_testdir): Invoke it.
16345         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16346
16347 2010-06-13  Bruno Haible  <bruno@clisp.org>
16348
16349         gnulib-tool: Align code of func_import and func_create_testdir.
16350         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16351         specified_modules.
16352
16353 2010-06-12  Jim Meyering  <meyering@redhat.com>
16354
16355         test-inttostr: avoid spurious failure on Solaris 9
16356         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16357         to accept "%ju".  Reported by Bruno Haible.
16358
16359 2010-06-11  Jim Meyering  <meyering@redhat.com>
16360
16361         test-sys_socket: mark variables as used more readably
16362         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16363         as "used" explicitly via (void) statement casts.  This is more
16364         readable than using them in an artificial return expression.
16365         Suggestion from Bruno Haible.
16366
16367 2010-06-11  Bruno Haible  <bruno@clisp.org>
16368
16369         Avoid some more warnings from "gcc -Wwrite-strings".
16370         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16371         to 'const char *'.
16372         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16373         * tests/test-c-strcasestr.c (main): Likewise.
16374         * tests/test-mbscasestr1.c (main): Likewise.
16375         * tests/test-mbscasestr2.c (main): Likewise.
16376         * tests/test-memmem.c (main): Likewise.
16377         * tests/test-strstr.c (main): Likewise.
16378         * tests/test-strcasestr.c (main): Likewise.
16379
16380 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16381
16382         init.sh: change framework_failure_ to fail with status 99, not 1
16383         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16384         automake's parallel-tests rule that this is an unexpected failure,
16385         even if the test is listed in XFAIL_TESTS.
16386
16387 2010-06-11  Jim Meyering  <meyering@redhat.com>
16388
16389         test-inttostr: avoid warnings about 4-6KB literal strings
16390         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16391         Include "macros.h", for its definition of ASSERT.
16392         (CK): s/assert/ASSERT/
16393         * modules/inttostr-tests (Files): Add macros.h.
16394
16395         init.sh: don't use $ME_ or skip_ before they are defined
16396         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16397         their first uses.  Also hoist their companions: warn_, fail_,
16398         framework_failure_, $stderr_fileno.  Prompted by a patch from
16399         Stefano Lattarini.
16400
16401         test-sys_socket: avoid set-but-not-used warnings from gcc
16402         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16403         avoid warning about set-but-not-used variables.
16404
16405         test-xvasprintf: avoid 'const' discard warnings
16406         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16407         "const" when assigning from literal strings.
16408         (test_xasprintf): Add "void" in function argument list to placate
16409         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16410
16411         tests: avoid compilation warnings in argmatch and exclude tests...
16412         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16413         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16414         Since it always exits, declare with the "noreturn" attribute.
16415         * tests/test-argmatch.c: Likewise.
16416
16417         tests: avoid 'const' discard warnings in mbsstr tests
16418         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16419         * tests/test-mbsstr2.c (main): Likewise.
16420
16421         test-verify: avoid warning from gcc's -Wmissing-declarations
16422         * tests/test-verify.c (function): Declare to be static.
16423
16424         test-inttostr.c: include <string.h> for use of strcmp
16425         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16426
16427         test-linkat: avoid failed assertion on "other" architectures
16428         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16429         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16430         sparc: https://bugs.launchpad.net/bugs/591968
16431
16432 2010-06-11  Jim Meyering  <meyering@redhat.com>
16433
16434         printf.m4: avoid autoconf's "Expanded Before Required" warning
16435         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16436         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16437         autoconf warning.
16438
16439 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16440
16441         Replacement header templates are now named with ".in", not "_".
16442         * doc/gnulib-intro.texi: Correct.
16443
16444 2010-06-10  Jim Meyering  <meyering@redhat.com>
16445
16446         inttostr-tests: depend on snprintf, not snprintf-posix
16447         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16448         snprintf-posix, to avoid this aclocal failure:
16449           missing file gnulib-tests/vasnprintf.c
16450           configure.ac:45: error: expected source file, required through \
16451           AC_LIBSOURCES, not found
16452
16453 2010-06-10  Jim Meyering  <meyering@redhat.com>
16454
16455         inttostr: add a new function, inttostr, and tests
16456         The namesake function was not available.  The existence of the
16457         template file, inttostr.c makes its addition nontrivial.
16458         * lib/anytostr.c: Rename from inttostr.c.
16459         (anytostr): Rename from inttostr.
16460         * lib/inttostr.c: New file.
16461         * modules/inttostr (Files): Add anytostr.c.
16462         (Makefile.am): Set lib_SOURCES instead of ...
16463         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16464         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16465         * lib/offtostr.c: Likewise.
16466         * lib/uinttostr.c: Likewise.
16467         * lib/umaxtostr.c: Likewise.
16468         * modules/inttostr-tests: New file.
16469         * tests/test-inttostr.c: New file.  Test these functions.
16470
16471 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
16472             Bruno Haible  <bruno@clisp.org>
16473
16474         Add "Extending Gnulib" chapter to manual.
16475         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
16476         chapter.
16477         (Extending Gnulib): New chapter.
16478         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
16479         chapter.
16480
16481 2010-06-09  Bruno Haible  <bruno@clisp.org>
16482
16483         Avoid relocwrapper link errors due to gnulib replacement functions.
16484         * lib/areadlink.c: Use the system's malloc, realloc functions.
16485         (areadlink): Set errno to ENOMEM explicitly.
16486         * modules/areadlink (Depends-on): Remove malloc-posix.
16487         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16488
16489 2010-06-09  Bruno Haible  <bruno@clisp.org>
16490
16491         Avoid relocwrapper link errors due to gnulib replacement functions.
16492         * lib/canonicalize-lgpl.c: Use the system's malloc function.
16493         * lib/malloca.c: Likewise.
16494         * lib/relocatable.c: Likewise.
16495         * lib/progreloc.c: Use the system's malloc, sprintf functions.
16496         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
16497         * lib/setenv.c: Use the system's malloc, realloc functions.
16498         * lib/strerror.c: Use the system's sprintf function.
16499         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16500
16501 2010-06-04  Bruno Haible  <bruno@clisp.org>
16502
16503         Prefer documented low-level autoconf macro names.
16504         * m4/lib-link.m4: Use m4_translit instead of translit.
16505         * m4/environ.m4: Likewise.
16506         * m4/mathfunc.m4: Likewise.
16507         * m4/onceonly.m4: Likewise.
16508         * m4/stdint.m4: Likewise.
16509         Suggested by Eric Blake.
16510
16511 2010-06-04  Martin Lambers  <marlam@marlam.de>
16512             Bruno Haible  <bruno@clisp.org>
16513
16514         havelib: Allow library names with '+' characters.
16515         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16516         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
16517
16518 2010-06-09  Bruno Haible  <bruno@clisp.org>
16519
16520         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
16521         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
16522         realloc failed.
16523
16524 2010-06-08  Peter Simons  <simons@cryp.to>
16525
16526         maint.mk: make the news-check rule more configurable
16527         * top/maint.mk (news-check-lines-spec): New variable.
16528         (news-check): Use "sed -n 1,10p" in place of "head".
16529
16530 2010-06-07  Jim Meyering  <meyering@redhat.com>
16531
16532         do-release-commit-and-tag: fix typo in --help
16533         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
16534
16535         regex: avoid new dead-code warning with gcc-4.6.0
16536         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
16537         if-block containing a while-loop.  It's been unused for at least
16538         5 years.
16539
16540 2010-06-05  Bruno Haible  <bruno@clisp.org>
16541
16542         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
16543         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
16544
16545 2010-06-04  Bruno Haible  <bruno@clisp.org>
16546
16547         Update to GNU gettext 0.18.1.
16548         * modules/gettext (configure.ac): Require gettext infrastructure from
16549         version 0.18.1.
16550
16551 2010-06-03  Bruno Haible  <bruno@clisp.org>
16552
16553         Don't use AC_LIBOBJ with file names in subdirectories.
16554         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
16555         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
16556         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
16557         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
16558         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
16559         gl_LIBUNISTRING_LIBSOURCE.
16560         (Makefile.am): Augment lib_SOURCES here, conditionally.
16561         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16562
16563 2010-06-03  Bruno Haible  <bruno@clisp.org>
16564
16565         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16566         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16567         expansion does not end with a newline.
16568         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16569         unnecessary newline.
16570
16571 2010-06-03  Bruno Haible  <bruno@clisp.org>
16572
16573         Reduce dependencies.
16574         * tests/test-quotearg.h: New file, extracted from
16575         tests/test-quotearg.c.
16576         * tests/test-quotearg-simple.c: New file, extracted from
16577         tests/test-quotearg.c.
16578         * tests/test-quotearg.c: Don't include <ctype.h>.
16579         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16580         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16581         use_quote_double_quotes, use_quotearg_colon): Moved to
16582         tests/test-quotearg.h.
16583         (results_g, flag_results, custom_quotes, custom_results): Moved
16584         to tests/test-quotearg-simple.c.
16585         (main): Moved the part that does not depend on gettext to
16586         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16587         performed.
16588         * modules/quotearg-simple: New file.
16589         * modules/quotearg-simple-tests: New file.
16590         * modules/quotearg (Depends-on): Add quotearg-simple.
16591         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16592         (Files): Add tests/test-quotearg.h.
16593         Reported by Paolo Bonzini.
16594
16595 2010-06-03  Bruno Haible  <bruno@clisp.org>
16596
16597         Reduce dependencies.
16598         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16599
16600 2010-06-03  Bruno Haible  <bruno@clisp.org>
16601
16602         time: Undefine more broken macros.
16603         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16604         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16605         Reported by Eric Blake.
16606
16607 2010-06-03  Bruno Haible  <bruno@clisp.org>
16608
16609         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16610         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16611         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16612         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16613         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16614         Reported by Ludovic Courtès <ludo@gnu.org>.
16615
16616 2010-06-02  Eric Blake  <eblake@redhat.com>
16617
16618         time: work with mingw + pthreads-win32 library
16619         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16620         if timespec is defined only in pthread.h.
16621         * modules/time (Makefile.am): Substitute it.
16622         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16623         <pthread.h>, when needed.
16624         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16625         from the library.
16626
16627 2010-05-31  Bruno Haible  <bruno@clisp.org>
16628
16629         Avoid expanding two macros in the wrong order.
16630         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16631         gl_LIBUNISTRING if it is defined.
16632         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16633         autoconf >= 2.64.
16634         Reported by Ludovic Courtès <ludo@gnu.org>.
16635
16636 2010-05-27  Jim Meyering  <meyering@redhat.com>
16637
16638         maint.mk: also prohibit "#undef" of always-defined symbols
16639         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
16640         Allow more than one space before the symbol name.
16641         (sc_prohibit_always-defined_macros): Use grep's -E, now that
16642         the regexp uses alternation.
16643
16644 2010-05-26  Eric Blake  <eblake@redhat.com>
16645
16646         maint.mk: avoid echo -e
16647         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
16648         Convert all uses of echo -* to printf.
16649         Reported by Matthias Bolte.
16650
16651 2010-05-25  Bruno Haible  <bruno@clisp.org>
16652
16653         Update to GNU gettext 0.18, part 2.
16654         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
16655         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
16656
16657 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16658
16659         Add missing include in test-pwrite.c.
16660         * tests/test-pwrite.c: Include string.h, for strcmp.
16661
16662 2010-05-24  Bruno Haible  <bruno@clisp.org>
16663
16664         * NEWS: Mention requirement for Automake option 'subdir-objects'.
16665
16666 2010-05-24  Bruno Haible  <bruno@clisp.org>
16667
16668         Don't use conversion with transliteration in u{8,16,32}_strcoll.
16669         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
16670         iconveh_error argument.
16671         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
16672         U_STRCONV_TO_LOCALE.
16673         * lib/unistr/u16-strcoll.c: Likewise.
16674         * lib/unistr/u32-strcoll.c: Likewise.
16675         * modules/unistr/u8-strcoll (Depends-on): Add
16676         uniconv/u8-strconv-to-enc, localcharset. Remove
16677         uniconv/u8-strconv-to-locale.
16678         (configure.ac): Bump version number.
16679         * modules/unistr/u16-strcoll (Depends-on): Add
16680         uniconv/u16-strconv-to-enc, localcharset. Remove
16681         uniconv/u16-strconv-to-locale.
16682         (configure.ac): Bump version number.
16683         * modules/unistr/u32-strcoll (Depends-on): Add
16684         uniconv/u32-strconv-to-enc, localcharset. Remove
16685         uniconv/u32-strconv-to-locale.
16686         (configure.ac): Bump version number.
16687
16688 2010-05-24  Bruno Haible  <bruno@clisp.org>
16689
16690         Avoid a test failure on NetBSD 5.0.
16691         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
16692         an iconv() bug.
16693
16694 2010-05-24  Bruno Haible  <bruno@clisp.org>
16695
16696         Adjust #include directive style.
16697         * modules/regex (Includes): Recommend to write <regex.h>.
16698
16699 2010-05-24  Bruno Haible  <bruno@clisp.org>
16700
16701         regex: Don't require alloca.
16702         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
16703         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
16704         only inside if (0).
16705
16706 2010-05-23  Jim Meyering  <meyering@redhat.com>
16707
16708         test-renameat.c: include <sys/stat.h>
16709         * tests/test-renameat.c: Include <sys/stat.h>; required for
16710         definition of S_IS* macros.
16711
16712 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
16713
16714         Update maintainer documentation for 'relocatable-prog' module.
16715         * doc/relocatable-maint.texi: Update.
16716         Comments by Bruno Haible.
16717
16718 2010-05-23  Bruno Haible  <bruno@clisp.org>
16719
16720         git-merge-changelog: Enable --split-merged-entry by default.
16721         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
16722         (usage): Don't mention this option any more.
16723         Reported by Ralf Wildenhues.
16724
16725 2010-05-23  Jim Meyering  <meyering@redhat.com>
16726
16727         test-pwrite: do not leave behind a test file named "out"
16728         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
16729         The trivial-looking use of init.sh is really necessary.
16730         It ensures that the temporary file, "out", is created in
16731         a temporary directory, and removed upon termination.
16732         * tests/test-pwrite.sh: Re-add file.
16733         * modules/pwrite-tests: Reference it.
16734
16735 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16736
16737         Fix output redirection buglet in init.sh.
16738         * tests/init.sh: Fix redirection of stderr.
16739
16740 2010-05-20  Simon Josefsson  <simon@josefsson.org>
16741
16742         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
16743
16744 2010-05-17  Simon Josefsson  <simon@josefsson.org>
16745
16746         * modules/valgrind-tests: New file.
16747         * m4/valgrind-tests.m4: New file.
16748         * doc/valgrind-tests.texi: New file.
16749         * doc/gnulib.texi (Running self-tests under valgrind): New
16750         section.
16751
16752 2010-05-19  Bruno Haible  <bruno@clisp.org>
16753
16754         Clean up dead code in recent commit.
16755         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
16756         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
16757         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
16758         Suggested by Paolo Bonzini.
16759
16760 2010-05-19  Bruno Haible  <bruno@clisp.org>
16761
16762         Avoid valgrind error reports from libunistring.
16763         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
16764         * modules/libunistring (Files): Add it.
16765         * modules/libunistring-optional (Files): Likewise.
16766
16767 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
16768             Bruno Haible  <bruno@clisp.org>
16769
16770         New module 'libunistring-optional'.
16771         * modules/libunistring-optional: New file.
16772         * m4/libunistring-base.m4: New file.
16773         * m4/libunistring-optional.m4: New file.
16774         * lib/unicase.in.h: Renamed from lib/unicase.h.
16775         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
16776         * lib/unictype.in.h: Renamed from lib/unictype.h.
16777         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
16778         * lib/uniname.in.h: Renamed from lib/uniname.h.
16779         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
16780         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
16781         * lib/unistr.in.h: Renamed from lib/unistr.h.
16782         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
16783         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
16784         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
16785         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
16786         gl_LIBUNISTRING. If the library was found, determine the installed
16787         version and set LIBUNISTRING_VERSION.
16788         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
16789         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
16790         handle a configuration option --with-included-libunistring.
16791         * modules/libunistring (Files): Add m4/absolute-header.m4.
16792         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
16793         Add m4/libunistring-base.m4.
16794         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16795         (Makefile.am): Build unicase.h from unicase.in.h.
16796         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
16797         Add m4/libunistring-base.m4.
16798         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16799         (Makefile.am): Build uniconv.h from uniconv.in.h.
16800         * modules/unictype/base (Files): Use unictype.in.h instead of
16801         unictype.h. Add m4/libunistring-base.m4.
16802         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16803         (Makefile.am): Build unictype.h from unictype.in.h.
16804         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
16805         Add m4/libunistring-base.m4.
16806         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16807         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
16808         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
16809         Add m4/libunistring-base.m4.
16810         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16811         (Makefile.am): Build uniname.h from uniname.in.h.
16812         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
16813         Add m4/libunistring-base.m4.
16814         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16815         (Makefile.am): Build uninorm.h from uninorm.in.h.
16816         * modules/unistdio/base (Files): Use unistdio.in.h instead of
16817         unistdio.h. Add m4/libunistring-base.m4.
16818         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16819         (Makefile.am): Build unistdio.h from unistdio.in.h.
16820         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
16821         Add m4/libunistring-base.m4.
16822         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16823         (Makefile.am): Build unistr.h from unistr.in.h.
16824         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
16825         Add m4/libunistring-base.m4.
16826         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16827         (Makefile.am): Build unitypes.h from unitypes.in.h.
16828         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
16829         Add m4/libunistring-base.m4.
16830         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16831         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
16832         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
16833         uniwidth.h. Add m4/libunistring-base.m4.
16834         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16835         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
16836         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
16837         instead of augmenting lib_SOURCES.
16838         * modules/unicase/empty-suffix-context: Likewise.
16839         * modules/unicase/locale-language: Likewise.
16840         * modules/unicase/tolower: Likewise.
16841         * modules/unicase/totitle: Likewise.
16842         * modules/unicase/toupper: Likewise.
16843         * modules/unicase/u8-casecmp: Likewise.
16844         * modules/unicase/u8-casecoll: Likewise.
16845         * modules/unicase/u8-casefold: Likewise.
16846         * modules/unicase/u8-casexfrm: Likewise.
16847         * modules/unicase/u8-ct-casefold: Likewise.
16848         * modules/unicase/u8-ct-tolower: Likewise.
16849         * modules/unicase/u8-ct-totitle: Likewise.
16850         * modules/unicase/u8-ct-toupper: Likewise.
16851         * modules/unicase/u8-is-cased: Likewise.
16852         * modules/unicase/u8-is-casefolded: Likewise.
16853         * modules/unicase/u8-is-lowercase: Likewise.
16854         * modules/unicase/u8-is-titlecase: Likewise.
16855         * modules/unicase/u8-is-uppercase: Likewise.
16856         * modules/unicase/u8-prefix-context: Likewise.
16857         * modules/unicase/u8-suffix-context: Likewise.
16858         * modules/unicase/u8-tolower: Likewise.
16859         * modules/unicase/u8-totitle: Likewise.
16860         * modules/unicase/u8-toupper: Likewise.
16861         * modules/unicase/u16-casecmp: Likewise.
16862         * modules/unicase/u16-casecoll: Likewise.
16863         * modules/unicase/u16-casefold: Likewise.
16864         * modules/unicase/u16-casexfrm: Likewise.
16865         * modules/unicase/u16-ct-casefold: Likewise.
16866         * modules/unicase/u16-ct-tolower: Likewise.
16867         * modules/unicase/u16-ct-totitle: Likewise.
16868         * modules/unicase/u16-ct-toupper: Likewise.
16869         * modules/unicase/u16-is-cased: Likewise.
16870         * modules/unicase/u16-is-casefolded: Likewise.
16871         * modules/unicase/u16-is-lowercase: Likewise.
16872         * modules/unicase/u16-is-titlecase: Likewise.
16873         * modules/unicase/u16-is-uppercase: Likewise.
16874         * modules/unicase/u16-prefix-context: Likewise.
16875         * modules/unicase/u16-suffix-context: Likewise.
16876         * modules/unicase/u16-tolower: Likewise.
16877         * modules/unicase/u16-totitle: Likewise.
16878         * modules/unicase/u16-toupper: Likewise.
16879         * modules/unicase/u32-casecmp: Likewise.
16880         * modules/unicase/u32-casecoll: Likewise.
16881         * modules/unicase/u32-casefold: Likewise.
16882         * modules/unicase/u32-casexfrm: Likewise.
16883         * modules/unicase/u32-ct-casefold: Likewise.
16884         * modules/unicase/u32-ct-tolower: Likewise.
16885         * modules/unicase/u32-ct-totitle: Likewise.
16886         * modules/unicase/u32-ct-toupper: Likewise.
16887         * modules/unicase/u32-is-cased: Likewise.
16888         * modules/unicase/u32-is-casefolded: Likewise.
16889         * modules/unicase/u32-is-lowercase: Likewise.
16890         * modules/unicase/u32-is-titlecase: Likewise.
16891         * modules/unicase/u32-is-uppercase: Likewise.
16892         * modules/unicase/u32-prefix-context: Likewise.
16893         * modules/unicase/u32-suffix-context: Likewise.
16894         * modules/unicase/u32-tolower: Likewise.
16895         * modules/unicase/u32-totitle: Likewise.
16896         * modules/unicase/u32-toupper: Likewise.
16897         * modules/unicase/ulc-casecmp: Likewise.
16898         * modules/unicase/ulc-casecoll: Likewise.
16899         * modules/unicase/ulc-casexfrm: Likewise.
16900         * modules/uniconv/u8-conv-from-enc: Likewise.
16901         * modules/uniconv/u8-conv-to-enc: Likewise.
16902         * modules/uniconv/u8-strconv-from-enc: Likewise.
16903         * modules/uniconv/u8-strconv-from-locale: Likewise.
16904         * modules/uniconv/u8-strconv-to-enc: Likewise.
16905         * modules/uniconv/u8-strconv-to-locale: Likewise.
16906         * modules/uniconv/u16-conv-from-enc: Likewise.
16907         * modules/uniconv/u16-conv-to-enc: Likewise.
16908         * modules/uniconv/u16-strconv-from-enc: Likewise.
16909         * modules/uniconv/u16-strconv-from-locale: Likewise.
16910         * modules/uniconv/u16-strconv-to-enc: Likewise.
16911         * modules/uniconv/u16-strconv-to-locale: Likewise.
16912         * modules/uniconv/u32-conv-from-enc: Likewise.
16913         * modules/uniconv/u32-conv-to-enc: Likewise.
16914         * modules/uniconv/u32-strconv-from-enc: Likewise.
16915         * modules/uniconv/u32-strconv-from-locale: Likewise.
16916         * modules/uniconv/u32-strconv-to-enc: Likewise.
16917         * modules/uniconv/u32-strconv-to-locale: Likewise.
16918         * modules/unictype/bidicategory-byname: Likewise.
16919         * modules/unictype/bidicategory-name: Likewise.
16920         * modules/unictype/bidicategory-of: Likewise.
16921         * modules/unictype/bidicategory-test: Likewise.
16922         * modules/unictype/block-list: Likewise.
16923         * modules/unictype/block-test: Likewise.
16924         * modules/unictype/category-C: Likewise.
16925         * modules/unictype/category-Cc: Likewise.
16926         * modules/unictype/category-Cf: Likewise.
16927         * modules/unictype/category-Cn: Likewise.
16928         * modules/unictype/category-Co: Likewise.
16929         * modules/unictype/category-Cs: Likewise.
16930         * modules/unictype/category-L: Likewise.
16931         * modules/unictype/category-Ll: Likewise.
16932         * modules/unictype/category-Lm: Likewise.
16933         * modules/unictype/category-Lo: Likewise.
16934         * modules/unictype/category-Lt: Likewise.
16935         * modules/unictype/category-Lu: Likewise.
16936         * modules/unictype/category-M: Likewise.
16937         * modules/unictype/category-Mc: Likewise.
16938         * modules/unictype/category-Me: Likewise.
16939         * modules/unictype/category-Mn: Likewise.
16940         * modules/unictype/category-N: Likewise.
16941         * modules/unictype/category-Nd: Likewise.
16942         * modules/unictype/category-Nl: Likewise.
16943         * modules/unictype/category-No: Likewise.
16944         * modules/unictype/category-P: Likewise.
16945         * modules/unictype/category-Pc: Likewise.
16946         * modules/unictype/category-Pd: Likewise.
16947         * modules/unictype/category-Pe: Likewise.
16948         * modules/unictype/category-Pf: Likewise.
16949         * modules/unictype/category-Pi: Likewise.
16950         * modules/unictype/category-Po: Likewise.
16951         * modules/unictype/category-Ps: Likewise.
16952         * modules/unictype/category-S: Likewise.
16953         * modules/unictype/category-Sc: Likewise.
16954         * modules/unictype/category-Sk: Likewise.
16955         * modules/unictype/category-Sm: Likewise.
16956         * modules/unictype/category-So: Likewise.
16957         * modules/unictype/category-Z: Likewise.
16958         * modules/unictype/category-Zl: Likewise.
16959         * modules/unictype/category-Zp: Likewise.
16960         * modules/unictype/category-Zs: Likewise.
16961         * modules/unictype/category-and: Likewise.
16962         * modules/unictype/category-and-not: Likewise.
16963         * modules/unictype/category-byname: Likewise.
16964         * modules/unictype/category-name: Likewise.
16965         * modules/unictype/category-none: Likewise.
16966         * modules/unictype/category-of: Likewise.
16967         * modules/unictype/category-or: Likewise.
16968         * modules/unictype/category-test: Likewise.
16969         * modules/unictype/combining-class: Likewise.
16970         * modules/unictype/ctype-alnum: Likewise.
16971         * modules/unictype/ctype-alpha: Likewise.
16972         * modules/unictype/ctype-blank: Likewise.
16973         * modules/unictype/ctype-cntrl: Likewise.
16974         * modules/unictype/ctype-digit: Likewise.
16975         * modules/unictype/ctype-graph: Likewise.
16976         * modules/unictype/ctype-lower: Likewise.
16977         * modules/unictype/ctype-print: Likewise.
16978         * modules/unictype/ctype-punct: Likewise.
16979         * modules/unictype/ctype-space: Likewise.
16980         * modules/unictype/ctype-upper: Likewise.
16981         * modules/unictype/ctype-xdigit: Likewise.
16982         * modules/unictype/decimal-digit: Likewise.
16983         * modules/unictype/digit: Likewise.
16984         * modules/unictype/mirror: Likewise.
16985         * modules/unictype/numeric: Likewise.
16986         * modules/unictype/property-alphabetic: Likewise.
16987         * modules/unictype/property-ascii-hex-digit: Likewise.
16988         * modules/unictype/property-bidi-arabic-digit: Likewise.
16989         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
16990         * modules/unictype/property-bidi-block-separator: Likewise.
16991         * modules/unictype/property-bidi-boundary-neutral: Likewise.
16992         * modules/unictype/property-bidi-common-separator: Likewise.
16993         * modules/unictype/property-bidi-control: Likewise.
16994         * modules/unictype/property-bidi-embedding-or-override: Likewise.
16995         * modules/unictype/property-bidi-eur-num-separator: Likewise.
16996         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
16997         * modules/unictype/property-bidi-european-digit: Likewise.
16998         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
16999         * modules/unictype/property-bidi-left-to-right: Likewise.
17000         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
17001         * modules/unictype/property-bidi-other-neutral: Likewise.
17002         * modules/unictype/property-bidi-pdf: Likewise.
17003         * modules/unictype/property-bidi-segment-separator: Likewise.
17004         * modules/unictype/property-bidi-whitespace: Likewise.
17005         * modules/unictype/property-byname: Likewise.
17006         * modules/unictype/property-combining: Likewise.
17007         * modules/unictype/property-composite: Likewise.
17008         * modules/unictype/property-currency-symbol: Likewise.
17009         * modules/unictype/property-dash: Likewise.
17010         * modules/unictype/property-decimal-digit: Likewise.
17011         * modules/unictype/property-default-ignorable-code-point: Likewise.
17012         * modules/unictype/property-deprecated: Likewise.
17013         * modules/unictype/property-diacritic: Likewise.
17014         * modules/unictype/property-extender: Likewise.
17015         * modules/unictype/property-format-control: Likewise.
17016         * modules/unictype/property-grapheme-base: Likewise.
17017         * modules/unictype/property-grapheme-extend: Likewise.
17018         * modules/unictype/property-grapheme-link: Likewise.
17019         * modules/unictype/property-hex-digit: Likewise.
17020         * modules/unictype/property-hyphen: Likewise.
17021         * modules/unictype/property-id-continue: Likewise.
17022         * modules/unictype/property-id-start: Likewise.
17023         * modules/unictype/property-ideographic: Likewise.
17024         * modules/unictype/property-ids-binary-operator: Likewise.
17025         * modules/unictype/property-ids-trinary-operator: Likewise.
17026         * modules/unictype/property-ignorable-control: Likewise.
17027         * modules/unictype/property-iso-control: Likewise.
17028         * modules/unictype/property-join-control: Likewise.
17029         * modules/unictype/property-left-of-pair: Likewise.
17030         * modules/unictype/property-line-separator: Likewise.
17031         * modules/unictype/property-logical-order-exception: Likewise.
17032         * modules/unictype/property-lowercase: Likewise.
17033         * modules/unictype/property-math: Likewise.
17034         * modules/unictype/property-non-break: Likewise.
17035         * modules/unictype/property-not-a-character: Likewise.
17036         * modules/unictype/property-numeric: Likewise.
17037         * modules/unictype/property-other-alphabetic: Likewise.
17038         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
17039         * modules/unictype/property-other-grapheme-extend: Likewise.
17040         * modules/unictype/property-other-id-continue: Likewise.
17041         * modules/unictype/property-other-id-start: Likewise.
17042         * modules/unictype/property-other-lowercase: Likewise.
17043         * modules/unictype/property-other-math: Likewise.
17044         * modules/unictype/property-other-uppercase: Likewise.
17045         * modules/unictype/property-paired-punctuation: Likewise.
17046         * modules/unictype/property-paragraph-separator: Likewise.
17047         * modules/unictype/property-pattern-syntax: Likewise.
17048         * modules/unictype/property-pattern-white-space: Likewise.
17049         * modules/unictype/property-private-use: Likewise.
17050         * modules/unictype/property-punctuation: Likewise.
17051         * modules/unictype/property-quotation-mark: Likewise.
17052         * modules/unictype/property-radical: Likewise.
17053         * modules/unictype/property-sentence-terminal: Likewise.
17054         * modules/unictype/property-soft-dotted: Likewise.
17055         * modules/unictype/property-space: Likewise.
17056         * modules/unictype/property-terminal-punctuation: Likewise.
17057         * modules/unictype/property-test: Likewise.
17058         * modules/unictype/property-titlecase: Likewise.
17059         * modules/unictype/property-unassigned-code-value: Likewise.
17060         * modules/unictype/property-unified-ideograph: Likewise.
17061         * modules/unictype/property-uppercase: Likewise.
17062         * modules/unictype/property-variation-selector: Likewise.
17063         * modules/unictype/property-white-space: Likewise.
17064         * modules/unictype/property-xid-continue: Likewise.
17065         * modules/unictype/property-xid-start: Likewise.
17066         * modules/unictype/property-zero-width: Likewise.
17067         * modules/unictype/scripts: Likewise.
17068         * modules/unictype/syntax-c-ident: Likewise.
17069         * modules/unictype/syntax-c-whitespace: Likewise.
17070         * modules/unictype/syntax-java-ident: Likewise.
17071         * modules/unictype/syntax-java-whitespace: Likewise.
17072         * modules/unilbrk/u8-possible-linebreaks: Likewise.
17073         * modules/unilbrk/u8-width-linebreaks: Likewise.
17074         * modules/unilbrk/u16-possible-linebreaks: Likewise.
17075         * modules/unilbrk/u16-width-linebreaks: Likewise.
17076         * modules/unilbrk/u32-possible-linebreaks: Likewise.
17077         * modules/unilbrk/u32-width-linebreaks: Likewise.
17078         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
17079         * modules/unilbrk/ulc-width-linebreaks: Likewise.
17080         * modules/uniname/uniname: Likewise.
17081         * modules/uninorm/canonical-decomposition: Likewise.
17082         * modules/uninorm/composition: Likewise.
17083         * modules/uninorm/decomposing-form: Likewise.
17084         * modules/uninorm/decomposition: Likewise.
17085         * modules/uninorm/filter: Likewise.
17086         * modules/uninorm/nfc: Likewise.
17087         * modules/uninorm/nfd: Likewise.
17088         * modules/uninorm/nfkc: Likewise.
17089         * modules/uninorm/nfkd: Likewise.
17090         * modules/uninorm/u8-normalize: Likewise.
17091         * modules/uninorm/u8-normcmp: Likewise.
17092         * modules/uninorm/u8-normcoll: Likewise.
17093         * modules/uninorm/u8-normxfrm: Likewise.
17094         * modules/uninorm/u16-normalize: Likewise.
17095         * modules/uninorm/u16-normcmp: Likewise.
17096         * modules/uninorm/u16-normcoll: Likewise.
17097         * modules/uninorm/u16-normxfrm: Likewise.
17098         * modules/uninorm/u32-normalize: Likewise.
17099         * modules/uninorm/u32-normcmp: Likewise.
17100         * modules/uninorm/u32-normcoll: Likewise.
17101         * modules/uninorm/u32-normxfrm: Likewise.
17102         * modules/unistdio/u8-asnprintf: Likewise.
17103         * modules/unistdio/u8-asprintf: Likewise.
17104         * modules/unistdio/u8-snprintf: Likewise.
17105         * modules/unistdio/u8-sprintf: Likewise.
17106         * modules/unistdio/u8-u8-asnprintf: Likewise.
17107         * modules/unistdio/u8-u8-asprintf: Likewise.
17108         * modules/unistdio/u8-u8-snprintf: Likewise.
17109         * modules/unistdio/u8-u8-sprintf: Likewise.
17110         * modules/unistdio/u8-u8-vasnprintf: Likewise.
17111         * modules/unistdio/u8-u8-vasprintf: Likewise.
17112         * modules/unistdio/u8-u8-vsnprintf: Likewise.
17113         * modules/unistdio/u8-u8-vsprintf: Likewise.
17114         * modules/unistdio/u8-vasnprintf: Likewise.
17115         * modules/unistdio/u8-vasprintf: Likewise.
17116         * modules/unistdio/u8-vsnprintf: Likewise.
17117         * modules/unistdio/u8-vsprintf: Likewise.
17118         * modules/unistdio/u16-asnprintf: Likewise.
17119         * modules/unistdio/u16-asprintf: Likewise.
17120         * modules/unistdio/u16-snprintf: Likewise.
17121         * modules/unistdio/u16-sprintf: Likewise.
17122         * modules/unistdio/u16-u16-asnprintf: Likewise.
17123         * modules/unistdio/u16-u16-asprintf: Likewise.
17124         * modules/unistdio/u16-u16-snprintf: Likewise.
17125         * modules/unistdio/u16-u16-sprintf: Likewise.
17126         * modules/unistdio/u16-u16-vasnprintf: Likewise.
17127         * modules/unistdio/u16-u16-vasprintf: Likewise.
17128         * modules/unistdio/u16-u16-vsnprintf: Likewise.
17129         * modules/unistdio/u16-u16-vsprintf: Likewise.
17130         * modules/unistdio/u16-vasnprintf: Likewise.
17131         * modules/unistdio/u16-vasprintf: Likewise.
17132         * modules/unistdio/u16-vsnprintf: Likewise.
17133         * modules/unistdio/u16-vsprintf: Likewise.
17134         * modules/unistdio/u32-asnprintf: Likewise.
17135         * modules/unistdio/u32-asprintf: Likewise.
17136         * modules/unistdio/u32-snprintf: Likewise.
17137         * modules/unistdio/u32-sprintf: Likewise.
17138         * modules/unistdio/u32-u32-asnprintf: Likewise.
17139         * modules/unistdio/u32-u32-asprintf: Likewise.
17140         * modules/unistdio/u32-u32-snprintf: Likewise.
17141         * modules/unistdio/u32-u32-sprintf: Likewise.
17142         * modules/unistdio/u32-u32-vasnprintf: Likewise.
17143         * modules/unistdio/u32-u32-vasprintf: Likewise.
17144         * modules/unistdio/u32-u32-vsnprintf: Likewise.
17145         * modules/unistdio/u32-u32-vsprintf: Likewise.
17146         * modules/unistdio/u32-vasnprintf: Likewise.
17147         * modules/unistdio/u32-vasprintf: Likewise.
17148         * modules/unistdio/u32-vsnprintf: Likewise.
17149         * modules/unistdio/u32-vsprintf: Likewise.
17150         * modules/unistdio/ulc-asnprintf: Likewise.
17151         * modules/unistdio/ulc-asprintf: Likewise.
17152         * modules/unistdio/ulc-fprintf: Likewise.
17153         * modules/unistdio/ulc-snprintf: Likewise.
17154         * modules/unistdio/ulc-sprintf: Likewise.
17155         * modules/unistdio/ulc-vasnprintf: Likewise.
17156         * modules/unistdio/ulc-vasprintf: Likewise.
17157         * modules/unistdio/ulc-vfprintf: Likewise.
17158         * modules/unistdio/ulc-vsnprintf: Likewise.
17159         * modules/unistdio/ulc-vsprintf: Likewise.
17160         * modules/unistr/u8-check: Likewise.
17161         * modules/unistr/u8-chr: Likewise.
17162         * modules/unistr/u8-cmp: Likewise.
17163         * modules/unistr/u8-cmp2: Likewise.
17164         * modules/unistr/u8-cpy: Likewise.
17165         * modules/unistr/u8-cpy-alloc: Likewise.
17166         * modules/unistr/u8-endswith: Likewise.
17167         * modules/unistr/u8-mblen: Likewise.
17168         * modules/unistr/u8-mbsnlen: Likewise.
17169         * modules/unistr/u8-mbtouc: Likewise.
17170         * modules/unistr/u8-mbtouc-unsafe: Likewise.
17171         * modules/unistr/u8-mbtoucr: Likewise.
17172         * modules/unistr/u8-move: Likewise.
17173         * modules/unistr/u8-next: Likewise.
17174         * modules/unistr/u8-prev: Likewise.
17175         * modules/unistr/u8-set: Likewise.
17176         * modules/unistr/u8-startswith: Likewise.
17177         * modules/unistr/u8-stpcpy: Likewise.
17178         * modules/unistr/u8-stpncpy: Likewise.
17179         * modules/unistr/u8-strcat: Likewise.
17180         * modules/unistr/u8-strchr: Likewise.
17181         * modules/unistr/u8-strcmp: Likewise.
17182         * modules/unistr/u8-strcoll: Likewise.
17183         * modules/unistr/u8-strcpy: Likewise.
17184         * modules/unistr/u8-strcspn: Likewise.
17185         * modules/unistr/u8-strdup: Likewise.
17186         * modules/unistr/u8-strlen: Likewise.
17187         * modules/unistr/u8-strmblen: Likewise.
17188         * modules/unistr/u8-strmbtouc: Likewise.
17189         * modules/unistr/u8-strncat: Likewise.
17190         * modules/unistr/u8-strncmp: Likewise.
17191         * modules/unistr/u8-strncpy: Likewise.
17192         * modules/unistr/u8-strnlen: Likewise.
17193         * modules/unistr/u8-strpbrk: Likewise.
17194         * modules/unistr/u8-strrchr: Likewise.
17195         * modules/unistr/u8-strspn: Likewise.
17196         * modules/unistr/u8-strstr: Likewise.
17197         * modules/unistr/u8-strtok: Likewise.
17198         * modules/unistr/u8-to-u16: Likewise.
17199         * modules/unistr/u8-to-u32: Likewise.
17200         * modules/unistr/u8-uctomb: Likewise.
17201         * modules/unistr/u16-check: Likewise.
17202         * modules/unistr/u16-chr: Likewise.
17203         * modules/unistr/u16-cmp: Likewise.
17204         * modules/unistr/u16-cmp2: Likewise.
17205         * modules/unistr/u16-cpy: Likewise.
17206         * modules/unistr/u16-cpy-alloc: Likewise.
17207         * modules/unistr/u16-endswith: Likewise.
17208         * modules/unistr/u16-mblen: Likewise.
17209         * modules/unistr/u16-mbsnlen: Likewise.
17210         * modules/unistr/u16-mbtouc: Likewise.
17211         * modules/unistr/u16-mbtouc-unsafe: Likewise.
17212         * modules/unistr/u16-mbtoucr: Likewise.
17213         * modules/unistr/u16-move: Likewise.
17214         * modules/unistr/u16-next: Likewise.
17215         * modules/unistr/u16-prev: Likewise.
17216         * modules/unistr/u16-set: Likewise.
17217         * modules/unistr/u16-startswith: Likewise.
17218         * modules/unistr/u16-stpcpy: Likewise.
17219         * modules/unistr/u16-stpncpy: Likewise.
17220         * modules/unistr/u16-strcat: Likewise.
17221         * modules/unistr/u16-strchr: Likewise.
17222         * modules/unistr/u16-strcmp: Likewise.
17223         * modules/unistr/u16-strcoll: Likewise.
17224         * modules/unistr/u16-strcpy: Likewise.
17225         * modules/unistr/u16-strcspn: Likewise.
17226         * modules/unistr/u16-strdup: Likewise.
17227         * modules/unistr/u16-strlen: Likewise.
17228         * modules/unistr/u16-strmblen: Likewise.
17229         * modules/unistr/u16-strmbtouc: Likewise.
17230         * modules/unistr/u16-strncat: Likewise.
17231         * modules/unistr/u16-strncmp: Likewise.
17232         * modules/unistr/u16-strncpy: Likewise.
17233         * modules/unistr/u16-strnlen: Likewise.
17234         * modules/unistr/u16-strpbrk: Likewise.
17235         * modules/unistr/u16-strrchr: Likewise.
17236         * modules/unistr/u16-strspn: Likewise.
17237         * modules/unistr/u16-strstr: Likewise.
17238         * modules/unistr/u16-strtok: Likewise.
17239         * modules/unistr/u16-to-u32: Likewise.
17240         * modules/unistr/u16-to-u8: Likewise.
17241         * modules/unistr/u16-uctomb: Likewise.
17242         * modules/unistr/u32-check: Likewise.
17243         * modules/unistr/u32-chr: Likewise.
17244         * modules/unistr/u32-cmp: Likewise.
17245         * modules/unistr/u32-cmp2: Likewise.
17246         * modules/unistr/u32-cpy: Likewise.
17247         * modules/unistr/u32-cpy-alloc: Likewise.
17248         * modules/unistr/u32-endswith: Likewise.
17249         * modules/unistr/u32-mblen: Likewise.
17250         * modules/unistr/u32-mbsnlen: Likewise.
17251         * modules/unistr/u32-mbtouc: Likewise.
17252         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17253         * modules/unistr/u32-mbtoucr: Likewise.
17254         * modules/unistr/u32-move: Likewise.
17255         * modules/unistr/u32-next: Likewise.
17256         * modules/unistr/u32-prev: Likewise.
17257         * modules/unistr/u32-set: Likewise.
17258         * modules/unistr/u32-startswith: Likewise.
17259         * modules/unistr/u32-stpcpy: Likewise.
17260         * modules/unistr/u32-stpncpy: Likewise.
17261         * modules/unistr/u32-strcat: Likewise.
17262         * modules/unistr/u32-strchr: Likewise.
17263         * modules/unistr/u32-strcmp: Likewise.
17264         * modules/unistr/u32-strcoll: Likewise.
17265         * modules/unistr/u32-strcpy: Likewise.
17266         * modules/unistr/u32-strcspn: Likewise.
17267         * modules/unistr/u32-strdup: Likewise.
17268         * modules/unistr/u32-strlen: Likewise.
17269         * modules/unistr/u32-strmblen: Likewise.
17270         * modules/unistr/u32-strmbtouc: Likewise.
17271         * modules/unistr/u32-strncat: Likewise.
17272         * modules/unistr/u32-strncmp: Likewise.
17273         * modules/unistr/u32-strncpy: Likewise.
17274         * modules/unistr/u32-strnlen: Likewise.
17275         * modules/unistr/u32-strpbrk: Likewise.
17276         * modules/unistr/u32-strrchr: Likewise.
17277         * modules/unistr/u32-strspn: Likewise.
17278         * modules/unistr/u32-strstr: Likewise.
17279         * modules/unistr/u32-strtok: Likewise.
17280         * modules/unistr/u32-to-u16: Likewise.
17281         * modules/unistr/u32-to-u8: Likewise.
17282         * modules/unistr/u32-uctomb: Likewise.
17283         * modules/uniwbrk/u8-wordbreaks: Likewise.
17284         * modules/uniwbrk/u16-wordbreaks: Likewise.
17285         * modules/uniwbrk/u32-wordbreaks: Likewise.
17286         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17287         * modules/uniwbrk/wordbreak-property: Likewise.
17288         * modules/uniwidth/u8-strwidth: Likewise.
17289         * modules/uniwidth/u8-width: Likewise.
17290         * modules/uniwidth/u16-strwidth: Likewise.
17291         * modules/uniwidth/u16-width: Likewise.
17292         * modules/uniwidth/u32-strwidth: Likewise.
17293         * modules/uniwidth/u32-width: Likewise.
17294         * modules/uniwidth/width: Likewise.
17295         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17296         with $(LIBUNISTRING).
17297         * modules/unicase/ignorable-tests: Likewise.
17298         * modules/unicase/locale-language-tests: Likewise.
17299         * modules/unicase/tolower-tests: Likewise.
17300         * modules/unicase/totitle-tests: Likewise.
17301         * modules/unicase/toupper-tests: Likewise.
17302         * modules/unicase/u8-casecmp-tests: Likewise.
17303         * modules/unicase/u8-casecoll-tests: Likewise.
17304         * modules/unicase/u8-casefold-tests: Likewise.
17305         * modules/unicase/u8-is-cased-tests: Likewise.
17306         * modules/unicase/u8-is-casefolded-tests: Likewise.
17307         * modules/unicase/u8-is-lowercase-tests: Likewise.
17308         * modules/unicase/u8-is-titlecase-tests: Likewise.
17309         * modules/unicase/u8-is-uppercase-tests: Likewise.
17310         * modules/unicase/u8-tolower-tests: Likewise.
17311         * modules/unicase/u8-totitle-tests: Likewise.
17312         * modules/unicase/u8-toupper-tests: Likewise.
17313         * modules/unicase/u16-casecmp-tests: Likewise.
17314         * modules/unicase/u16-casecoll-tests: Likewise.
17315         * modules/unicase/u16-casefold-tests: Likewise.
17316         * modules/unicase/u16-is-cased-tests: Likewise.
17317         * modules/unicase/u16-is-casefolded-tests: Likewise.
17318         * modules/unicase/u16-is-lowercase-tests: Likewise.
17319         * modules/unicase/u16-is-titlecase-tests: Likewise.
17320         * modules/unicase/u16-is-uppercase-tests: Likewise.
17321         * modules/unicase/u16-tolower-tests: Likewise.
17322         * modules/unicase/u16-totitle-tests: Likewise.
17323         * modules/unicase/u16-toupper-tests: Likewise.
17324         * modules/unicase/u32-casecmp-tests: Likewise.
17325         * modules/unicase/u32-casecoll-tests: Likewise.
17326         * modules/unicase/u32-casefold-tests: Likewise.
17327         * modules/unicase/u32-is-cased-tests: Likewise.
17328         * modules/unicase/u32-is-casefolded-tests: Likewise.
17329         * modules/unicase/u32-is-lowercase-tests: Likewise.
17330         * modules/unicase/u32-is-titlecase-tests: Likewise.
17331         * modules/unicase/u32-is-uppercase-tests: Likewise.
17332         * modules/unicase/u32-tolower-tests: Likewise.
17333         * modules/unicase/u32-totitle-tests: Likewise.
17334         * modules/unicase/u32-toupper-tests: Likewise.
17335         * modules/unicase/ulc-casecmp-tests: Likewise.
17336         * modules/unicase/ulc-casecoll-tests: Likewise.
17337         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17338         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17339         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17340         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17341         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17342         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17343         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17344         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17345         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17346         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17347         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17348         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17349         * modules/unictype/bidicategory-byname-tests: Likewise.
17350         * modules/unictype/bidicategory-name-tests: Likewise.
17351         * modules/unictype/bidicategory-of-tests: Likewise.
17352         * modules/unictype/bidicategory-test-tests: Likewise.
17353         * modules/unictype/block-list-tests: Likewise.
17354         * modules/unictype/block-of-tests: Likewise.
17355         * modules/unictype/block-test-tests: Likewise.
17356         * modules/unictype/category-C-tests: Likewise.
17357         * modules/unictype/category-Cc-tests: Likewise.
17358         * modules/unictype/category-Cf-tests: Likewise.
17359         * modules/unictype/category-Cn-tests: Likewise.
17360         * modules/unictype/category-Co-tests: Likewise.
17361         * modules/unictype/category-Cs-tests: Likewise.
17362         * modules/unictype/category-L-tests: Likewise.
17363         * modules/unictype/category-Ll-tests: Likewise.
17364         * modules/unictype/category-Lm-tests: Likewise.
17365         * modules/unictype/category-Lo-tests: Likewise.
17366         * modules/unictype/category-Lt-tests: Likewise.
17367         * modules/unictype/category-Lu-tests: Likewise.
17368         * modules/unictype/category-M-tests: Likewise.
17369         * modules/unictype/category-Mc-tests: Likewise.
17370         * modules/unictype/category-Me-tests: Likewise.
17371         * modules/unictype/category-Mn-tests: Likewise.
17372         * modules/unictype/category-N-tests: Likewise.
17373         * modules/unictype/category-Nd-tests: Likewise.
17374         * modules/unictype/category-Nl-tests: Likewise.
17375         * modules/unictype/category-No-tests: Likewise.
17376         * modules/unictype/category-P-tests: Likewise.
17377         * modules/unictype/category-Pc-tests: Likewise.
17378         * modules/unictype/category-Pd-tests: Likewise.
17379         * modules/unictype/category-Pe-tests: Likewise.
17380         * modules/unictype/category-Pf-tests: Likewise.
17381         * modules/unictype/category-Pi-tests: Likewise.
17382         * modules/unictype/category-Po-tests: Likewise.
17383         * modules/unictype/category-Ps-tests: Likewise.
17384         * modules/unictype/category-S-tests: Likewise.
17385         * modules/unictype/category-Sc-tests: Likewise.
17386         * modules/unictype/category-Sk-tests: Likewise.
17387         * modules/unictype/category-Sm-tests: Likewise.
17388         * modules/unictype/category-So-tests: Likewise.
17389         * modules/unictype/category-Z-tests: Likewise.
17390         * modules/unictype/category-Zl-tests: Likewise.
17391         * modules/unictype/category-Zp-tests: Likewise.
17392         * modules/unictype/category-Zs-tests: Likewise.
17393         * modules/unictype/category-and-not-tests: Likewise.
17394         * modules/unictype/category-and-tests: Likewise.
17395         * modules/unictype/category-byname-tests: Likewise.
17396         * modules/unictype/category-name-tests: Likewise.
17397         * modules/unictype/category-none-tests: Likewise.
17398         * modules/unictype/category-of-tests: Likewise.
17399         * modules/unictype/category-or-tests: Likewise.
17400         * modules/unictype/category-test-withtable-tests: Likewise.
17401         * modules/unictype/combining-class-tests: Likewise.
17402         * modules/unictype/ctype-alnum-tests: Likewise.
17403         * modules/unictype/ctype-alpha-tests: Likewise.
17404         * modules/unictype/ctype-blank-tests: Likewise.
17405         * modules/unictype/ctype-cntrl-tests: Likewise.
17406         * modules/unictype/ctype-digit-tests: Likewise.
17407         * modules/unictype/ctype-graph-tests: Likewise.
17408         * modules/unictype/ctype-lower-tests: Likewise.
17409         * modules/unictype/ctype-print-tests: Likewise.
17410         * modules/unictype/ctype-punct-tests: Likewise.
17411         * modules/unictype/ctype-space-tests: Likewise.
17412         * modules/unictype/ctype-upper-tests: Likewise.
17413         * modules/unictype/ctype-xdigit-tests: Likewise.
17414         * modules/unictype/decimal-digit-tests: Likewise.
17415         * modules/unictype/digit-tests: Likewise.
17416         * modules/unictype/mirror-tests: Likewise.
17417         * modules/unictype/numeric-tests: Likewise.
17418         * modules/unictype/property-alphabetic-tests: Likewise.
17419         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17420         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17421         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17422         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17423         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17424         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17425         * modules/unictype/property-bidi-control-tests: Likewise.
17426         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17427         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17428         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17429         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17430         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17431         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17432         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17433         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17434         * modules/unictype/property-bidi-pdf-tests: Likewise.
17435         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17436         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17437         * modules/unictype/property-byname-tests: Likewise.
17438         * modules/unictype/property-combining-tests: Likewise.
17439         * modules/unictype/property-composite-tests: Likewise.
17440         * modules/unictype/property-currency-symbol-tests: Likewise.
17441         * modules/unictype/property-dash-tests: Likewise.
17442         * modules/unictype/property-decimal-digit-tests: Likewise.
17443         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17444         * modules/unictype/property-deprecated-tests: Likewise.
17445         * modules/unictype/property-diacritic-tests: Likewise.
17446         * modules/unictype/property-extender-tests: Likewise.
17447         * modules/unictype/property-format-control-tests: Likewise.
17448         * modules/unictype/property-grapheme-base-tests: Likewise.
17449         * modules/unictype/property-grapheme-extend-tests: Likewise.
17450         * modules/unictype/property-grapheme-link-tests: Likewise.
17451         * modules/unictype/property-hex-digit-tests: Likewise.
17452         * modules/unictype/property-hyphen-tests: Likewise.
17453         * modules/unictype/property-id-continue-tests: Likewise.
17454         * modules/unictype/property-id-start-tests: Likewise.
17455         * modules/unictype/property-ideographic-tests: Likewise.
17456         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17457         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17458         * modules/unictype/property-ignorable-control-tests: Likewise.
17459         * modules/unictype/property-iso-control-tests: Likewise.
17460         * modules/unictype/property-join-control-tests: Likewise.
17461         * modules/unictype/property-left-of-pair-tests: Likewise.
17462         * modules/unictype/property-line-separator-tests: Likewise.
17463         * modules/unictype/property-logical-order-exception-tests: Likewise.
17464         * modules/unictype/property-lowercase-tests: Likewise.
17465         * modules/unictype/property-math-tests: Likewise.
17466         * modules/unictype/property-non-break-tests: Likewise.
17467         * modules/unictype/property-not-a-character-tests: Likewise.
17468         * modules/unictype/property-numeric-tests: Likewise.
17469         * modules/unictype/property-other-alphabetic-tests: Likewise.
17470         * modules/unictype/property-other-default-ignorable-code-point-tests:
17471         Likewise.
17472         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
17473         * modules/unictype/property-other-id-continue-tests: Likewise.
17474         * modules/unictype/property-other-id-start-tests: Likewise.
17475         * modules/unictype/property-other-lowercase-tests: Likewise.
17476         * modules/unictype/property-other-math-tests: Likewise.
17477         * modules/unictype/property-other-uppercase-tests: Likewise.
17478         * modules/unictype/property-paired-punctuation-tests: Likewise.
17479         * modules/unictype/property-paragraph-separator-tests: Likewise.
17480         * modules/unictype/property-pattern-syntax-tests: Likewise.
17481         * modules/unictype/property-pattern-white-space-tests: Likewise.
17482         * modules/unictype/property-private-use-tests: Likewise.
17483         * modules/unictype/property-punctuation-tests: Likewise.
17484         * modules/unictype/property-quotation-mark-tests: Likewise.
17485         * modules/unictype/property-radical-tests: Likewise.
17486         * modules/unictype/property-sentence-terminal-tests: Likewise.
17487         * modules/unictype/property-soft-dotted-tests: Likewise.
17488         * modules/unictype/property-space-tests: Likewise.
17489         * modules/unictype/property-terminal-punctuation-tests: Likewise.
17490         * modules/unictype/property-test-tests: Likewise.
17491         * modules/unictype/property-titlecase-tests: Likewise.
17492         * modules/unictype/property-unassigned-code-value-tests: Likewise.
17493         * modules/unictype/property-unified-ideograph-tests: Likewise.
17494         * modules/unictype/property-uppercase-tests: Likewise.
17495         * modules/unictype/property-variation-selector-tests: Likewise.
17496         * modules/unictype/property-white-space-tests: Likewise.
17497         * modules/unictype/property-xid-continue-tests: Likewise.
17498         * modules/unictype/property-xid-start-tests: Likewise.
17499         * modules/unictype/property-zero-width-tests: Likewise.
17500         * modules/unictype/scripts-tests: Likewise.
17501         * modules/unictype/syntax-c-ident-tests: Likewise.
17502         * modules/unictype/syntax-c-whitespace-tests: Likewise.
17503         * modules/unictype/syntax-java-ident-tests: Likewise.
17504         * modules/unictype/syntax-java-whitespace-tests: Likewise.
17505         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
17506         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
17507         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
17508         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
17509         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
17510         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
17511         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
17512         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
17513         * modules/uniname/uniname-tests: Likewise.
17514         * modules/uninorm/canonical-decomposition-tests: Likewise.
17515         * modules/uninorm/compat-decomposition-tests: Likewise.
17516         * modules/uninorm/composition-tests: Likewise.
17517         * modules/uninorm/decomposing-form-tests: Likewise.
17518         * modules/uninorm/decomposition-tests: Likewise.
17519         * modules/uninorm/filter-tests: Likewise.
17520         * modules/uninorm/nfc-tests: Likewise.
17521         * modules/uninorm/nfd-tests: Likewise.
17522         * modules/uninorm/nfkc-tests: Likewise.
17523         * modules/uninorm/nfkd-tests: Likewise.
17524         * modules/uninorm/u8-normcmp-tests: Likewise.
17525         * modules/uninorm/u8-normcoll-tests: Likewise.
17526         * modules/uninorm/u16-normcmp-tests: Likewise.
17527         * modules/uninorm/u16-normcoll-tests: Likewise.
17528         * modules/uninorm/u32-normcmp-tests: Likewise.
17529         * modules/uninorm/u32-normcoll-tests: Likewise.
17530         * modules/unistdio/u8-asnprintf-tests: Likewise.
17531         * modules/unistdio/u8-vasnprintf-tests: Likewise.
17532         * modules/unistdio/u8-vasprintf-tests: Likewise.
17533         * modules/unistdio/u8-vsnprintf-tests: Likewise.
17534         * modules/unistdio/u8-vsprintf-tests: Likewise.
17535         * modules/unistdio/u16-asnprintf-tests: Likewise.
17536         * modules/unistdio/u16-vasnprintf-tests: Likewise.
17537         * modules/unistdio/u16-vasprintf-tests: Likewise.
17538         * modules/unistdio/u16-vsnprintf-tests: Likewise.
17539         * modules/unistdio/u16-vsprintf-tests: Likewise.
17540         * modules/unistdio/u32-asnprintf-tests: Likewise.
17541         * modules/unistdio/u32-vasnprintf-tests: Likewise.
17542         * modules/unistdio/u32-vasprintf-tests: Likewise.
17543         * modules/unistdio/u32-vsnprintf-tests: Likewise.
17544         * modules/unistdio/u32-vsprintf-tests: Likewise.
17545         * modules/unistdio/ulc-asnprintf-tests: Likewise.
17546         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
17547         * modules/unistdio/ulc-vasprintf-tests: Likewise.
17548         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
17549         * modules/unistdio/ulc-vsprintf-tests: Likewise.
17550         * modules/unistr/u8-check-tests: Likewise.
17551         * modules/unistr/u8-chr-tests: Likewise.
17552         * modules/unistr/u8-cmp-tests: Likewise.
17553         * modules/unistr/u8-cmp2-tests: Likewise.
17554         * modules/unistr/u8-cpy-alloc-tests: Likewise.
17555         * modules/unistr/u8-cpy-tests: Likewise.
17556         * modules/unistr/u8-mblen-tests: Likewise.
17557         * modules/unistr/u8-mbsnlen-tests: Likewise.
17558         * modules/unistr/u8-mbtouc-tests: Likewise.
17559         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
17560         * modules/unistr/u8-mbtoucr-tests: Likewise.
17561         * modules/unistr/u8-move-tests: Likewise.
17562         * modules/unistr/u8-next-tests: Likewise.
17563         * modules/unistr/u8-prev-tests: Likewise.
17564         * modules/unistr/u8-set-tests: Likewise.
17565         * modules/unistr/u8-stpcpy-tests: Likewise.
17566         * modules/unistr/u8-stpncpy-tests: Likewise.
17567         * modules/unistr/u8-strcat-tests: Likewise.
17568         * modules/unistr/u8-strcmp-tests: Likewise.
17569         * modules/unistr/u8-strcoll-tests: Likewise.
17570         * modules/unistr/u8-strcpy-tests: Likewise.
17571         * modules/unistr/u8-strdup-tests: Likewise.
17572         * modules/unistr/u8-strlen-tests: Likewise.
17573         * modules/unistr/u8-strmblen-tests: Likewise.
17574         * modules/unistr/u8-strmbtouc-tests: Likewise.
17575         * modules/unistr/u8-strncat-tests: Likewise.
17576         * modules/unistr/u8-strncmp-tests: Likewise.
17577         * modules/unistr/u8-strncpy-tests: Likewise.
17578         * modules/unistr/u8-strnlen-tests: Likewise.
17579         * modules/unistr/u8-to-u16-tests: Likewise.
17580         * modules/unistr/u8-to-u32-tests: Likewise.
17581         * modules/unistr/u8-uctomb-tests: Likewise.
17582         * modules/unistr/u16-check-tests: Likewise.
17583         * modules/unistr/u16-chr-tests: Likewise.
17584         * modules/unistr/u16-cmp-tests: Likewise.
17585         * modules/unistr/u16-cmp2-tests: Likewise.
17586         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17587         * modules/unistr/u16-cpy-tests: Likewise.
17588         * modules/unistr/u16-mblen-tests: Likewise.
17589         * modules/unistr/u16-mbsnlen-tests: Likewise.
17590         * modules/unistr/u16-mbtouc-tests: Likewise.
17591         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17592         * modules/unistr/u16-mbtoucr-tests: Likewise.
17593         * modules/unistr/u16-move-tests: Likewise.
17594         * modules/unistr/u16-next-tests: Likewise.
17595         * modules/unistr/u16-prev-tests: Likewise.
17596         * modules/unistr/u16-set-tests: Likewise.
17597         * modules/unistr/u16-stpcpy-tests: Likewise.
17598         * modules/unistr/u16-stpncpy-tests: Likewise.
17599         * modules/unistr/u16-strcat-tests: Likewise.
17600         * modules/unistr/u16-strcmp-tests: Likewise.
17601         * modules/unistr/u16-strcoll-tests: Likewise.
17602         * modules/unistr/u16-strcpy-tests: Likewise.
17603         * modules/unistr/u16-strdup-tests: Likewise.
17604         * modules/unistr/u16-strlen-tests: Likewise.
17605         * modules/unistr/u16-strmblen-tests: Likewise.
17606         * modules/unistr/u16-strmbtouc-tests: Likewise.
17607         * modules/unistr/u16-strncat-tests: Likewise.
17608         * modules/unistr/u16-strncmp-tests: Likewise.
17609         * modules/unistr/u16-strncpy-tests: Likewise.
17610         * modules/unistr/u16-strnlen-tests: Likewise.
17611         * modules/unistr/u16-to-u32-tests: Likewise.
17612         * modules/unistr/u16-to-u8-tests: Likewise.
17613         * modules/unistr/u16-uctomb-tests: Likewise.
17614         * modules/unistr/u32-check-tests: Likewise.
17615         * modules/unistr/u32-chr-tests: Likewise.
17616         * modules/unistr/u32-cmp-tests: Likewise.
17617         * modules/unistr/u32-cmp2-tests: Likewise.
17618         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17619         * modules/unistr/u32-cpy-tests: Likewise.
17620         * modules/unistr/u32-mblen-tests: Likewise.
17621         * modules/unistr/u32-mbsnlen-tests: Likewise.
17622         * modules/unistr/u32-mbtouc-tests: Likewise.
17623         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17624         * modules/unistr/u32-mbtoucr-tests: Likewise.
17625         * modules/unistr/u32-move-tests: Likewise.
17626         * modules/unistr/u32-next-tests: Likewise.
17627         * modules/unistr/u32-prev-tests: Likewise.
17628         * modules/unistr/u32-set-tests: Likewise.
17629         * modules/unistr/u32-stpcpy-tests: Likewise.
17630         * modules/unistr/u32-stpncpy-tests: Likewise.
17631         * modules/unistr/u32-strcat-tests: Likewise.
17632         * modules/unistr/u32-strcmp-tests: Likewise.
17633         * modules/unistr/u32-strcoll-tests: Likewise.
17634         * modules/unistr/u32-strcpy-tests: Likewise.
17635         * modules/unistr/u32-strdup-tests: Likewise.
17636         * modules/unistr/u32-strlen-tests: Likewise.
17637         * modules/unistr/u32-strmblen-tests: Likewise.
17638         * modules/unistr/u32-strmbtouc-tests: Likewise.
17639         * modules/unistr/u32-strncat-tests: Likewise.
17640         * modules/unistr/u32-strncmp-tests: Likewise.
17641         * modules/unistr/u32-strncpy-tests: Likewise.
17642         * modules/unistr/u32-strnlen-tests: Likewise.
17643         * modules/unistr/u32-to-u16-tests: Likewise.
17644         * modules/unistr/u32-to-u8-tests: Likewise.
17645         * modules/unistr/u32-uctomb-tests: Likewise.
17646         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
17647         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
17648         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
17649         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
17650         * modules/uniwidth/u8-strwidth-tests: Likewise.
17651         * modules/uniwidth/u8-width-tests: Likewise.
17652         * modules/uniwidth/u16-strwidth-tests: Likewise.
17653         * modules/uniwidth/u16-width-tests: Likewise.
17654         * modules/uniwidth/u32-strwidth-tests: Likewise.
17655         * modules/uniwidth/u32-width-tests: Likewise.
17656         * modules/uniwidth/width-tests: Likewise.
17657
17658 2010-05-18  Richard Jones  <rjones@redhat.com>
17659
17660         doc: users.txt: list hivex
17661         * users.txt: Add hivex.
17662
17663 2010-05-18  Richard Jones  <rjones@redhat.com>
17664
17665         doc: users.txt: list febootstrap
17666         * users.txt: Add febootstrap.
17667
17668 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
17669
17670         bootstrap: fix an error when gnulib is not used as a git submodule
17671         * build-aux/bootstrap (gnulib_path): If its length is zero then
17672         assign "gnulib" to it.
17673         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
17674
17675 2010-05-16  Bruno Haible  <bruno@clisp.org>
17676
17677         Avoid autoconf warnings about AM_ICONV.
17678         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
17679         2.64.
17680
17681 2010-05-16  Bruno Haible  <bruno@clisp.org>
17682
17683         absolute-header: Make the macro usable in more situations.
17684         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
17685         from gl_ABSOLUTE_HEADER.
17686         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
17687
17688 2010-05-16  James Youngman  <jay@gnu.org>
17689
17690         doc: update users.txt
17691         * users.txt: Add CSSC.
17692
17693 2010-05-16  Jim Meyering  <meyering@redhat.com>
17694
17695         init.sh: fix an error in the previous change; add more comments
17696         * tests/init.sh: Compare exit code in loop against 9, not 2.
17697         Patch by Bruno Haible.
17698         Make the two tests more similar by adding an empty "then" clause.
17699         Add comments.
17700
17701         init.sh: avoid unnecessary shell re-exec
17702         * tests/init.sh: Improve the re-exec-required check to first test the
17703         current shell.  If it passes the test, do not search for a shell that
17704         does pass, and do not re-exec.  This test is particularly contorted to
17705         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
17706         of $(...) evokes a syntax error and causes immediate shell exit with
17707         status 2.  Bruno Haible reported that the re-exec made it impossible
17708         to single-step through any init.sh-using script.
17709
17710 2010-05-16  Bruno Haible  <bruno@clisp.org>
17711
17712         Fix collision between gnulib's and libintl's printf replacements.
17713         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
17714         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
17715         (printf): When using GNU C, map the __printf__ function to rpl_printf
17716         via __asm__. When not using GNU C, define rpl_printf instead of
17717         __printf__.
17718         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
17719         commit.
17720         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
17721         commit.
17722         * m4/asm-underscore.m4: New file.
17723         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
17724         * modules/stdio (Files): Add m4/asm-underscore.m4.
17725         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
17726         Reported by Ben Pfaff.
17727
17728 2010-05-16  Bruno Haible  <bruno@clisp.org>
17729
17730         verify: Avoid skipping the test on openSUSE 11.0.
17731         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
17732
17733 2010-05-13  Bruno Haible  <bruno@clisp.org>
17734
17735         Avoid useless warnings from G++.
17736         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
17737         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
17738         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17739
17740 2010-05-11  Jim Meyering  <meyering@redhat.com>
17741
17742         maint.mk: tweak preceding change
17743         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
17744         regexps tighter by anchoring at EOL, and make the new group "shy"
17745         for slightly decreased overhead.
17746
17747 2010-05-11  Eric Blake  <eblake@redhat.com>
17748
17749         maint.mk: gnulib doesn't guarantee NSIG
17750         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
17751
17752 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17753
17754         test-pwrite.c: Remove unused variable declaration.
17755         * tests/test-pwrite.c (main): Remove read_buf declaration.
17756
17757         Remove useless test-pwrite.sh file.
17758         * tests/test-pwrite.sh: Delete file.
17759         * modules/pwrite-tests: Remove references.
17760         Reported by Bruno Haible.
17761
17762 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17763
17764         init.sh: fix a typo
17765         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
17766
17767 2010-05-10  Jim Meyering  <meyering@redhat.com>
17768
17769         maint.mk: avoid using a temporary file in the always-defined-macros check
17770         * top/maint.mk (.re-defmac): Remove rule.
17771         (gl_trap_): Remove definition.
17772         (sc_prohibit_always-defined_macros): Rewrite not to create and
17773         depend on a temporary file.  Instead, depend on GNU grep's ability
17774         to read a list of regular expressions from stdin when given "-f -".
17775
17776 2010-05-09  Bruno Haible  <bruno@clisp.org>
17777
17778         Update to GNU gettext 0.18, part 1.
17779         * m4/gettext.m4: Update to GNU gettext 0.18.
17780         * m4/intl.m4: Likewise.
17781         * m4/po.m4: Likewise.
17782         * modules/gettext (Files): Add m4/fcntl-o.m4.
17783         (configure.ac): Require gettext infrastructure from version 0.18.
17784
17785 2010-05-09  Jim Meyering  <meyering@redhat.com>
17786
17787         init.sh: enable MALLOC_PERTURB_
17788         * tests/init.sh: Enable glibc's malloc-perturbing option.
17789
17790         maint.mk: improve sc_cross_check_PATH_usage_in_tests
17791         With my recent change in init.sh from the two-line form:
17792             -#   : ${srcdir=.}
17793             -#   . "$srcdir/init.sh"; path_prepend_ .
17794             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
17795         I noticed that using the one-line form would cause this test
17796         to fail with a false-positive, or to stop working altogether,
17797         depending on whether help-version changed or all the tests did.
17798         * top/maint.mk (_hv_regex): Remove this definition.
17799         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
17800         (_hv_regex_strong): Use a stronger regex to check for conformance.
17801         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
17802         Give a separate diagnostic for lack of conforming use.
17803
17804         maint.mk: prohibit definition of symbols defined by gnulib
17805         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
17806         definition of symbols defined by gnulib.
17807
17808 2010-05-09  Bruno Haible  <bruno@clisp.org>
17809
17810         acl: Avoid test failure on Cygwin-hosted mingw.
17811         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
17812
17813 2010-05-09  Bruno Haible  <bruno@clisp.org>
17814
17815         error: Use system's fcntl function.
17816         * lib/error.c (fcntl): Undefine.
17817
17818 2010-05-09  Jim Meyering  <meyering@redhat.com>
17819
17820         verify: adjust formatting to be more consistent
17821         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
17822         argument-list '('s, and after one comma.
17823
17824 2010-05-09  Bruno Haible  <bruno@clisp.org>
17825
17826         error: More reliable output on mingw.
17827         * lib/error.c: Include <windows.h>.
17828         (is_open): New function.
17829         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
17830         defined.
17831
17832 2010-05-09  Bruno Haible  <bruno@clisp.org>
17833
17834         vasnprintf: Fix syntax errors in libintl build on mingw.
17835         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
17836         pad_ourselves and prec_ourselves after use.
17837
17838 2010-05-08  Bruno Haible  <bruno@clisp.org>
17839
17840         * lib/config.charset: Update comments for Cygwin 1.7.
17841         * lib/localcharset.c: Likewise.
17842
17843 2010-05-07  Jim Meyering  <meyering@redhat.com>
17844
17845         init.sh: improve comments
17846         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
17847         . "${srcdir=.}/init.sh"; path_prepend_ .
17848         Add a note about path_prepend_ and the alternative of using
17849         TESTS_ENVIRONMENT.
17850
17851 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17852
17853         exclude: Unescape hashed patterns in wildcard mode.
17854         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
17855         to the hash list.
17856         * tests/test-exclude8.sh: New test case.
17857         * modules/exclude-tests: Add new test.
17858
17859 2010-05-05  Eric Blake  <eblake@redhat.com>
17860
17861         verify: automate tests
17862         * modules/verify-tests: New module.
17863         * tests/test-verify.sh: New file.
17864         * tests/test-verify.c: Guard each negative test with a unique id.
17865         Also avoid warning about unused left hand of comma expressions.
17866
17867 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17868
17869         Further improvements to verify.h, suggested by Eric Blake.
17870         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
17871         the GL_* versions, to avoid collision with OpenGL.
17872         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
17873         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
17874         than testing merely whether it's defined.
17875
17876         Modify verify.h to pacify gcc -Wredundant_decls.
17877         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
17878         These use the prefix "GL_" since they're likely to be useful elsewhere.
17879         We may need to break them out into a different .h file.
17880         (__COUNTER__): Define to 0 if the compiler doesn't support it.
17881         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
17882         of verify_function__.
17883
17884 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17885
17886         Tests for module pwrite.
17887         * modules/pwrite-tests: New file.
17888         * tests/test-pwrite.sh: New file.
17889         * tests/test-pwrite.c: New file.
17890
17891         New module pwrite.
17892         * lib/unistd.in.h (pwrite): New declaration.
17893         * lib/pwrite.c: New file, from glibc with modifications.
17894         * m4/pwrite.m4: New file.
17895         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
17896         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
17897         REPLACE_PWRITE.
17898         * modules/pwrite: New file.
17899         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
17900         REPLACE_PWRITE.
17901         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
17902         * doc/posix-functions/pwrite.texi: Mention the new module.
17903
17904 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17905
17906         pread: Update documentation.
17907         * doc/posix-functions/pread.texi: Mention the 'pread' module.
17908
17909 2010-05-04  Eric Blake  <eblake@redhat.com>
17910
17911         docs: update cygwin progress
17912         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
17913         this bug.
17914         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
17915         Added in cygwin 1.7.2.
17916         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
17917         Likewise.
17918         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
17919         Likewise.
17920         * doc/glibc-functions/dup3.texi (dup3): Likewise.
17921         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17922         * doc/glibc-functions/accept4.texi (accept4): Likewise.
17923         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
17924         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
17925         Mention nproc module.
17926         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
17927         bug in cygwin 1.7.5 addition.
17928         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
17929         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
17930         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
17931         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
17932         1.7.5.
17933         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
17934         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
17935         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
17936         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
17937         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
17938         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
17939         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
17940         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
17941         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
17942         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
17943         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
17944         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
17945         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
17946         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
17947         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
17948         Likewise.
17949         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
17950         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
17951         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
17952         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
17953         Likewise.
17954         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
17955         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
17956         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
17957         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
17958         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
17959         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
17960         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
17961         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
17962         Likewise.
17963         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
17964         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
17965         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
17966         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
17967         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
17968         Likewise.
17969         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
17970         Likewise.
17971         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
17972         Likewise.
17973         * doc/glibc-functions/xdrrec_endofrecord.texi
17974         (xdrrec_endofrecord): Likewise.
17975         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
17976         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
17977         Likewise.
17978         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
17979         Likewise.
17980
17981 2010-05-04  Jim Meyering  <meyering@redhat.com>
17982
17983         gendocs.sh: make its "-s FILE" option more useful
17984         * build-aux/gendocs.sh: When honoring the -s FILE option, update
17985         $PACKAGE to reflect the probably-different basename of "FILE".
17986
17987 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17988
17989         bootstrap: don't ignore download_po_files failure
17990         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
17991         failure.
17992
17993 2010-05-03  Jim Meyering  <meyering@redhat.com>
17994
17995         maint.mk: allow to pass options to gendocs.sh
17996         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
17997         (gendocs_options_): New overridable variable.
17998
17999         gnu-web-doc-update: don't ignore configure or build failure
18000         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
18001
18002         announce-gen: backslash-escape '@'s in --help output
18003         * build-aux/announce-gen: Fix syntax errors.
18004
18005         maint.mk, announce-gen: allow project-specific announcement mail headers
18006         * top/maint.mk (translation_project_): Define default.
18007         (announcement_Cc_, announcement_mail_headers_): Likewise.
18008         (announcement): Invoke announce-gen with new --mail-headers option.
18009         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
18010
18011         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
18012         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
18013         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
18014         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
18015         line in the "err2" output file when running "make check" in verbose
18016         mode (i.e., with set -x enabled).
18017
18018 2010-05-03  Bruno Haible  <bruno@clisp.org>
18019
18020         wctob: Fix for weird platforms.
18021         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
18022         argument value.
18023
18024 2010-05-03  Jim Meyering  <meyering@redhat.com>
18025
18026         maint.mk: prohibit unwarranted use of <strings.h>
18027         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
18028         strings.h in a file that does not also use strcasecmp, strncasecmp,
18029         ffs or ffsll.
18030
18031         maint.mk: remove obsolete comments
18032         * top/maint.mk: Remove stale, commented-out rules.
18033
18034 2010-05-02  Bruno Haible  <bruno@clisp.org>
18035
18036         wcwidth: Declare also when it's aliased.
18037         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
18038         macro.
18039
18040 2010-05-02  Bruno Haible  <bruno@clisp.org>
18041
18042         Fix regression from 2010-04-25.
18043         * gnulib-tool (func_modules_transitive_closure): Check the status of
18044         all modules, not only of the tests that are of the form foo-tests where
18045         foo is a module.
18046
18047 2010-05-02  Bruno Haible  <bruno@clisp.org>
18048
18049         wctob: Work around nasty Cygwin 1.7.2 bug.
18050         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
18051         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
18052
18053 2010-05-01  Bruno Haible  <bruno@clisp.org>
18054
18055         fpurge: Sharper test.
18056         * tests/test-fpurge.c (main): Add one more ftell check.
18057         * modules/fpurge-tests (Depends-on): Add ftell.
18058         Suggested by Eric Blake.
18059
18060 2010-05-01  Bruno Haible  <bruno@clisp.org>
18061
18062         ftello: Another test.
18063         * tests/test-ftello3.c: New file.
18064         * modules/ftello-tests (Files): Add it.
18065         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18066         MOSTLYCLEANFILES.
18067
18068         ftell: Another test.
18069         * tests/test-ftell3.c: New file.
18070         * modules/ftell-tests (Files): Add it.
18071         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18072         MOSTLYCLEANFILES.
18073
18074 2010-05-01  Bruno Haible  <bruno@clisp.org>
18075
18076         ftell, ftello: Work around Solaris bug.
18077         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
18078         * lib/ftello.c: Include stdio-impl.h.
18079         (ftello): On Solaris, when _IOWRT is set, compute the result without
18080         looking at _IOREAD.
18081         * modules/ftello (Files): Add lib/stdio-impl.h.
18082         * doc/posix-functions/ftell.texi: Mention Solaris bug.
18083         * doc/posix-functions/ftello.texi: Likewise.
18084         Reported by Eric Blake.
18085
18086 2010-05-01  Bruno Haible  <bruno@clisp.org>
18087
18088         freading: Adapt to special meaning of _IOREAD flag on Solaris.
18089         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
18090         the _IOWRT flag is also set.
18091
18092 2010-05-01  Bruno Haible  <bruno@clisp.org>
18093
18094         Fix doc about a HP-UX stdio bug.
18095         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
18096         * doc/posix-functions/ftello.texi: Likewise.
18097
18098 2010-05-01  Bruno Haible  <bruno@clisp.org>
18099
18100         lseek test: Fix failure on Solaris.
18101         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
18102         output.
18103
18104 2010-04-30  Jim Meyering  <meyering@redhat.com>
18105
18106         bootstrap: don't ignore failure to generate po*/Makevars
18107         * build-aux/bootstrap (with_gettext): Don't ignore failure
18108         to create po/Makevars or runtime-po/Makevars.
18109
18110 2010-04-29  Eric Blake  <eblake@redhat.com>
18111
18112         headers: relax license to LGPLv2+
18113         * modules/fcntl-h (License): Relax license.
18114         * modules/getopt-posix (License): Likewise.
18115         * modules/locale (License): Likewise.
18116         * modules/math (License): Likewise.
18117         * modules/pty (License): Likewise.
18118         * modules/sched (License): Likewise.
18119         * modules/search (License): Likewise.
18120         * modules/spawn (License): Likewise.
18121         * modules/stdarg (License): Likewise.
18122         * modules/sysexits (License): Likewise.
18123
18124 2010-04-29  Jim Meyering  <meyering@redhat.com>
18125
18126         inttypes: relax license to LGPLv2+
18127         * modules/inttypes (License): Relax license.
18128
18129 2010-04-29  Simon Josefsson  <simon@josefsson.org>
18130
18131         * top/maint.mk (indent): Run twice to produce idempotent results.
18132
18133 2010-04-28  Bruno Haible  <bruno@clisp.org>
18134
18135         getdate: Generate getdate.c in the source directory.
18136         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
18137         MOSTLYCLEANFILES.
18138         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
18139
18140 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
18141
18142         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
18143         is not declared as a const *; avoid warnings in that case.
18144
18145 2010-04-28  Eric Blake  <eblake@redhat.com>
18146
18147         canonicalize-lgpl: avoid compiler warning
18148         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
18149         declaration' / 'extraneous semicolon' warning with some compilers.
18150         Reported by Andreas Gruenbacher.
18151
18152 2010-04-28  Jim Meyering  <meyering@redhat.com>
18153
18154         init.sh: ensure a more reliable exit status when exiting via trap
18155         * tests/init.sh (setup_): Don't rely on $? in signal handler.
18156         Inspired by patches from Dmitry V. Levin.
18157         Also trap on signal 3 (SIGQUIT).
18158
18159 2010-04-27  Bruno Haible  <bruno@clisp.org>
18160
18161         Update doc about utimes().
18162         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
18163         'utimens' module.
18164         Reported by Andreas Gruenbacher <agruen@suse.de>.
18165
18166 2010-04-27  Eric Blake  <eblake@redhat.com>
18167
18168         full-read, full-write: relax license
18169         * modules/full-read (License): Drop to LGPLv2+.
18170         * modules/full-write (License): Likewise.
18171         * modules/safe-read (License): Likewise.
18172         * modules/safe-write (License): Likewise.
18173
18174         pthread: mention library for linking
18175         * modules/pthread (Link): Mention $(LIB_PTHREAD).
18176
18177 2010-04-27  Jim Meyering  <meyering@redhat.com>
18178
18179         maint.mk: fix a bug introduced in last change
18180         * top/maint.mk (gl_assured_headers_): Now that all names are on
18181         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
18182         is not anchored to end of word, it should be adequate.
18183
18184         maint.mk: avoid side-effect in latest syntax-check
18185         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
18186         to run commands via $(shell...), and hence to incur cost only when
18187         the new rule is actually run.
18188
18189         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
18190         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
18191         and use that to create a regexp used to detect all #if HAVE_..._H uses.
18192         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
18193         (gl_assured_headers_, az_, AZ_): Define.
18194         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
18195
18196 2010-04-26  Jim Meyering  <jim@meyering.net>
18197             Bruno Haible  <bruno@clisp.org>
18198
18199         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
18200         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
18201         Prompted by an exchange with Gilles Espinasse.
18202
18203 2010-04-26  Jim Meyering  <meyering@redhat.com>
18204
18205         git-version-gen: aesthetic tweak
18206         * build-aux/git-version-gen: Use "$nl" rather than a literal,
18207         so that the command remains on a single line.
18208
18209 2010-04-26  Eric Blake  <eblake@redhat.com>
18210
18211         git-version-gen: allow use on EBCDIC hosts
18212         * build-aux/git-version-gen (dirty): Use literal rather than tying
18213         ourselves to ascii.
18214         Reported by Steve Goetze.
18215
18216 2010-04-25  Bruno Haible  <bruno@clisp.org>
18217
18218         netdb: Add support for GNULIB_POSIXCHECK.
18219         * lib/netdb.in.h: Include warn-on-use.h.
18220         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
18221         functions are used when GNULIB_POSIXCHECK is defined and the
18222         getaddrinfo module is not in use.
18223         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
18224         freeaddrinfo, gai_strerror, getnameinfo are declared.
18225         * modules/netdb (Depends-on): Add warn-on-use.
18226         (Makefile.am): Include warn-on-use.h in netdb.h.
18227
18228 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
18229
18230         build: avoid "make check" failure without .git/ directory
18231         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
18232         there is no .git/ directory.
18233
18234 2010-04-25  Bruno Haible  <bruno@clisp.org>
18235
18236         ptsname: Fix misuse of ttyname_r.
18237         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
18238         of errno.
18239
18240 2010-04-25  Bruno Haible  <bruno@clisp.org>
18241
18242         ttyname_r: Make it work on Solaris 10.
18243         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
18244         if the system function has the POSIX declaration. Test whether the
18245         function fails if the buffer is less than 128 bytes large.
18246         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
18247         system's ttyname_r function. Provide a reasonably large buffer.
18248         * modules/ttyname_r (Depends-on): Add extensions.
18249         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
18250
18251 2010-04-25  Bruno Haible  <bruno@clisp.org>
18252
18253         Use the 'extensions' module for some more functions on Solaris.
18254         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18255         module.
18256         * doc/posix-functions/ctime_r.texi: Likewise.
18257         * doc/posix-functions/getgrgid_r.texi: Likewise.
18258         * doc/posix-functions/getgrnam_r.texi: Likewise.
18259         * doc/posix-functions/getpwnam_r.texi: Likewise.
18260         * doc/posix-functions/getpwuid_r.texi: Likewise.
18261         * doc/posix-functions/readdir_r.texi: Likewise.
18262         * doc/posix-functions/sigwait.texi: Likewise.
18263         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18264         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18265
18266 2010-04-25  Bruno Haible  <bruno@clisp.org>
18267
18268         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18269         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18270         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18271         * lib/ttyname_r.c: Include <limits.h>.
18272         (ttyname_r): Define using the system's ttyname_r function, if it exists
18273         and not on Solaris.
18274         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18275         set.
18276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18277         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18278         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18279         Reported by Simon Josefsson.
18280
18281 2010-04-25  Bruno Haible  <bruno@clisp.org>
18282
18283         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18284         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
18285         * doc/posix-functions/ctime_r.texi: Likewise.
18286         * doc/posix-functions/getgrgid_r.texi: Likewise.
18287         * doc/posix-functions/getgrnam_r.texi: Likewise.
18288         * doc/posix-functions/getlogin_r.texi: Likewise.
18289         * doc/posix-functions/getpwnam_r.texi: Likewise.
18290         * doc/posix-functions/getpwuid_r.texi: Likewise.
18291         * doc/posix-functions/readdir_r.texi: Likewise.
18292         * doc/posix-functions/sigwait.texi: Likewise.
18293         * doc/posix-functions/ttyname_r.texi: Likewise.
18294         Reported by Simon Josefsson.
18295
18296 2010-04-25  Bruno Haible  <bruno@clisp.org>
18297
18298         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18299         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18300         also to --create-testdir.
18301         (func_acceptable): Don't consider the status of *-tests modules here.
18302         (func_modules_transitive_closure): Consider it here, before including a
18303         test module.
18304         (func_import, func_create_testdir): Set inc_all_direct_tests,
18305         inc_all_indirect_tests.
18306         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18307         --create-testdir and --create-megatestdir.
18308
18309 2010-04-25  Bruno Haible  <bruno@clisp.org>
18310
18311         gnulib-tool: Add --without-*-tests options.
18312         * gnulib-tool (func_usage): Document the --without-*-tests options.
18313         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18314         excl_unportable_tests): New variables.
18315         Fail if they are specified with --import or --update.
18316         (func_acceptable): Respect the excl_*_tests variables.
18317         (func_import): Set the excl_*_tests variables to empty.
18318
18319 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18320             Bruno Haible  <bruno@clisp.org>
18321
18322         Work around a MacOS X 10.4 bug with openpty.
18323         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18324         * tests/test-openpty.c (main): Close the master side explicitly.
18325
18326 2010-04-25  Bruno Haible  <bruno@clisp.org>
18327
18328         strnlen: Fix a C++ test error on MacOS X and Solaris.
18329         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18330         the function is not declared.
18331         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18332         Simon Josefsson.
18333
18334 2010-04-24  Bruno Haible  <bruno@clisp.org>
18335
18336         Avoid a gcc warning.
18337         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18338         of correct type for %08lx directive.
18339         Reported by Eric Blake.
18340
18341 2010-04-24  Bruno Haible  <bruno@clisp.org>
18342
18343         vasnprintf: Correct errno value in case of out-of-memory.
18344         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18345         or sprintf. Use the errno value from SNPRINTF or sprintf.
18346         Reported by Ian Beckwith <ianb@erislabs.net>.
18347
18348 2010-04-24  Bruno Haible  <bruno@clisp.org>
18349
18350         ansi-c++-opt: Find correct compiler when cross-compiling.
18351         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18352         AC_CHECK_PROGS.
18353         Reported by Simon Josefsson.
18354
18355 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18356
18357         vc-list-files: Add support for subversion
18358         * build-aux/vc-list-files: Use "svn list" to generate the list of
18359         files controlled by subversion.
18360
18361 2010-04-23  Jim Meyering  <meyering@redhat.com>
18362
18363         vc-list-files tests: convert to use init.sh
18364         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18365         path_prepend_.
18366         Use Exit, not exit.
18367         Use skip_ rather than open coding it.
18368         Remove trap set-up and compare definitions.
18369         * tests/test-vc-list-files-git.sh: Likewise.
18370         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18371
18372 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18373
18374         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18375         backup files.
18376
18377 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18378
18379         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18380
18381 2010-04-20  Eric Blake  <eblake@redhat.com>
18382
18383         tests: be robust to ignored SIGPIPE
18384         * tests/test-select-in.sh: Consume all output.
18385         * tests/test-lseek.sh: Check correct exit status, while avoiding
18386         EPIPE.
18387
18388 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18389             Bruno Haible  <bruno@clisp.org>
18390
18391         visibility: Don't use -fvisibility if it leads to a warning.
18392         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18393         yes, don't pretend that visibility works if it leads to a warning.
18394         Reported by Mike Gran <spk121@yahoo.com>.
18395
18396 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18397
18398         * build-aux/bootstrap: Use "git -h" for testing for supported options
18399         instead of "git --help".  The short-form option only shows a summary,
18400         and doesn't layout the full man page.  Grep for the full option name
18401         in the summary, too.
18402
18403 2010-04-19  Bruno Haible  <bruno@clisp.org>
18404
18405         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18406         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18407         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18408         mention of RELOCATABLE_STRIP.
18409         Reported by Sylvain Beucler <beuc@beuc.net>.
18410
18411 2010-04-19  Bruno Haible  <bruno@clisp.org>
18412
18413         * lib/diffseq.h: Fix typo in comment.
18414         Reported by Eric Blake.
18415
18416 2010-04-19  Bruno Haible  <bruno@clisp.org>
18417
18418         ioctl: Move autoconf macro to a .m4 file.
18419         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18420         * modules/ioctl (Files): Add it.
18421         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18422         Reported by Ian Beckwith <ianb@erislabs.net>.
18423
18424 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18425             Bruno Haible  <bruno@clisp.org>
18426
18427         diffseq: Accommodate use-case with abstract arrays.
18428         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18429         is not defined.
18430         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18431         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18432
18433 2010-04-18  Bruno Haible  <bruno@clisp.org>
18434
18435         * doc/posix-headers/stdbool.texi: More precise wording.
18436
18437 2010-04-17  Jim Meyering  <meyering@redhat.com>
18438
18439         maint.mk: use gnu-style indentation in an embedded perl script
18440         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18441         Rename variable: s/two/last_two_bytes/
18442
18443 2010-04-16  Eric Blake  <eblake@redhat.com>
18444
18445         test-stdbool: skip test that fails with Solaris CC
18446         * tests/test-stdbool.c (f): Skip test that causes compilation
18447         error under buggy C++ compiler.
18448         * lib/stdbool.in.h: Document the limitation.
18449         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18450
18451         setenv: allow compilation with C++
18452         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18453         register keyword.
18454
18455         stdint: allow test to pass with C++
18456         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18457
18458         getopt: allow compilation with C++
18459         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18460         struct.
18461         * lib/getopt.c (_getopt_internal_r): Use correct type.
18462         Reported by Dagobert Michelson, via Joel E. Denny.
18463
18464 2010-04-16  Bruno Haible  <bruno@clisp.org>
18465
18466         Override netdb.h always.
18467         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18468         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18469         Reported by Ludovic Courtès <ludo@gnu.org>.
18470
18471 2010-04-15  Bruno Haible  <bruno@clisp.org>
18472
18473         openpty: Fix mistake from 2010-03-21.
18474         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
18475         Reported by Simon Josefsson.
18476
18477 2010-04-15  Eric Blake  <eblake@redhat.com>
18478
18479         test-forkpty: fix expected signature
18480         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18481         Reported by Simon Josefsson.
18482
18483 2010-04-15  Jim Meyering  <meyering@redhat.com>
18484
18485         maint.mk: texinfo_suffix_re_: correct the default regexp
18486         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
18487
18488         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
18489         make it configurable via texinfo_suffix_re_.
18490
18491 2010-04-14  Eric Blake  <eblake@redhat.com>
18492
18493         strtok_r: relax license to LGPLv2+
18494         * modules/strtok_r (License): Relax license.
18495         Reported by Matthias Bolte.
18496
18497 2010-04-14  Simon Josefsson  <simon@josefsson.org>
18498
18499         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
18500         version 1.4.4 by default instead of requiring the libgcrypt
18501         version used during build.  This makes it possible to use the
18502         application with older but still binary compatible libgcrypt
18503         versions.
18504
18505 2010-04-13  Eric Blake  <eblake@redhat.com>
18506
18507         getopt-gnu: match recent glibc fixes and posix ruling
18508         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
18509         '+' handling, when requesting extensions.
18510         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
18511         'W;' handling.
18512         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
18513         * doc/posix-functions/getopt.texi (getopt): Document this.
18514         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18515         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18516         Likewise.
18517
18518         getopt: merge bug fixes from glibc
18519         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
18520         diagnostics.  Honor '+:' correctly.  Reject ';'.
18521
18522         getopt-posix: detect MacOS bug
18523         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
18524         optind when missing a required argument.
18525         * doc/posix-functions/getopt.texi (getopt): Document the bug.
18526         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18527         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18528         Likewise.
18529
18530         getopt-posix: avoid spurious failure on Solaris
18531         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
18532         an indicator that setting optind=1 is sufficient for reset.
18533
18534         getopt-posix: avoid spurious failure on FreeBSD
18535         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
18536         in POSIX mode, since the m4 test uses it.
18537
18538         gnulib-tool: silence warning on BSD sh
18539         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
18540
18541 2010-04-13  Jim Meyering  <meyering@redhat.com>
18542
18543         doc: users.txt: GNU patch now uses gnulib
18544         * users.txt: Add patch.
18545
18546 2010-04-12  Jim Meyering  <meyering@redhat.com>
18547
18548         maint.mk: generate more concise timing data for syntax-check rules
18549         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
18550         " done" from each line that reports a syntax-check test duration.
18551
18552 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
18553
18554         git-version-gen: use "git update-index..." rather than "git status"
18555         * build-aux/git-version-gen: Use git update-index --refresh, not
18556         "git status".  With some versions of git, "git status" would fail
18557         to update the index and result in an unwarranted "-dirty" suffix.
18558
18559 2010-04-11  Jim Meyering  <meyering@redhat.com>
18560
18561         openat: correct formatting (no semantic change)
18562         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18563         Suggested by Bruno Haible.
18564
18565 2010-04-11  Bruno Haible  <bruno@clisp.org>
18566
18567         Stricter declaration checking in testdirs.
18568         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18569         If for_tests is true, augment AM_CPPFLAGS to define
18570         GNULIB_STRICT_CHECKING.
18571         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18572         GNULIB_STRICT_CHECKING is defined, verify that the function is
18573         declared.
18574
18575 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18576             Bruno Haible  <bruno@clisp.org>
18577
18578         libunistring: Improve configure output.
18579         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18580         Don't say "consider installing GNU libunistring" when checking again
18581         with libiconv.
18582
18583 2010-04-11  Bruno Haible  <bruno@clisp.org>
18584
18585         libunistring: Correct value of $LTLIBUNISTRING.
18586         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18587         correct the value of $LTLIBUNISTRING.
18588
18589 2010-04-11  Bruno Haible  <bruno@clisp.org>
18590
18591         havelib: Add static libraries to LIBS in the right order.
18592         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18593         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18594
18595 2010-04-11  Bruno Haible  <bruno@clisp.org>
18596
18597         libunistring: Detect libunistring also when it depends on libiconv.
18598         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18599         the second AC_LIB_HAVE_LINKFLAGS invocation.
18600
18601 2010-04-11  James Youngman  <jay@gnu.org>
18602
18603         close-stream: declare local scalars to be "const"
18604         * lib/close-stream.c (close_stream): Make boolean variables const
18605         to document the fact that we set but do not change them.
18606
18607 2010-04-11  Bruno Haible  <bruno@clisp.org>
18608
18609         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18610
18611 2010-04-11  Jim Meyering  <meyering@redhat.com>
18612
18613         maint.mk: don't include dist-check.mk
18614         * top/maint.mk: Remove bogus include directive.
18615
18616         maint.mk: improve empty-line-at-EOF check
18617         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18618         solution, rather than tail+Perl-based one.  The latter would read
18619         a few kilobytes from the end of each file, and did not handle empty
18620         files properly.
18621
18622         maint.mk: print the elapsed time for each syntax-check rule
18623         * top/maint.mk (sc_m_rules_): Save start time in a file.
18624         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18625         (local-check): Interpose the .z rules
18626
18627 2010-04-11  Jim Meyering  <meyering@redhat.com>
18628
18629         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18630         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18631         empty file with one that ends in an empty line.
18632
18633 2010-04-10  Bruno Haible  <bruno@clisp.org>
18634
18635         mkdir: Make it work on mingw64.
18636         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
18637         * lib/mkdir.c: Update comment.
18638         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
18639
18640 2010-04-10  Bruno Haible  <bruno@clisp.org>
18641
18642         Don't override improved macro from newer autoconf.
18643         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
18644         autoconf >= 2.62.
18645         Reported by Joel E. Denny <jdenny@clemson.edu>.
18646
18647 2010-04-10  Jim Meyering  <meyering@redhat.com>
18648
18649         maint.mk: new syntax-check rule: prohibit empty lines at end of file
18650         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
18651
18652         maint.mk: correct a diagnostic
18653         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
18654         in diagnostic; now use $prohibit.
18655
18656 2010-04-10  Bruno Haible  <address@hidden>
18657
18658         fchownat: Fix a C++ test error on Solaris 8.
18659         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
18660         the function does not exist.
18661
18662 2010-04-10  Bruno Haible  <bruno@clisp.org>
18663
18664         vasnprintf: Add more tests.
18665         * tests/test-vasnprintf-posix.c: Include <errno.h>.
18666         (test_function): Test converting an invalid wide string.
18667
18668         vasnprintf: Correct handling of unconvertible wide string arguments.
18669         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
18670         VASNPRINTF.
18671         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
18672         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
18673         smaller than the expected maximum need for the directive. Set errno to
18674         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
18675         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
18676         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
18677         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
18678         * modules/vasnprintf (Files): Add m4/printf.m4.
18679         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18680
18681 2010-04-10  Bruno Haible  <bruno@clisp.org>
18682
18683         vasnprintf: Fix crash in %ls directive.
18684         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
18685         string is passed as argument to %ls, with no precision and no width.
18686         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18687
18688 2010-04-10  Bruno Haible  <bruno@clisp.org>
18689
18690         vasnprintf: Fix multiple test failures on mingw.
18691         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
18692         _snprintf, or snwprintf, not _snwprintf.
18693
18694 2010-04-10  Bruno Haible  <bruno@clisp.org>
18695
18696         write: Fix a C++ test error on mingw.
18697         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
18698
18699 2010-04-10  Bruno Haible  <bruno@clisp.org>
18700
18701         vasnprintf test: Reduce code duplication.
18702         * tests/test-vasnprintf.c (test_function): New function, extracted from
18703         test_vasnprintf.
18704         (test_vasnprintf, test_asnprintf): Invoke it.
18705
18706 2010-04-10  Bruno Haible  <bruno@clisp.org>
18707
18708         strnlen: Fix warning in C++ mode on MacOS X.
18709         * lib/string.in.h (strnlen): Use the modern idiom.
18710         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
18711         defining strnlen as a macro already in <config.h>.
18712         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18713         REPLACE_STRNLEN.
18714         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
18715         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18716
18717 2010-04-08  James Youngman  <jay@gnu.org>
18718
18719         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
18720         the example.
18721
18722 2010-04-09  Jim Meyering  <meyering@redhat.com>
18723
18724         maint.mk: print better diagnostic when there is no $(_hv_file)
18725         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
18726         announce that when $(_hv_file) (aka help-version) does not exist.
18727
18728         init.sh: run tr in the "C" locale to avoid multibyte interpretation
18729         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
18730         not try to interpret its random input bytes.  Jarno Rajahalme reported
18731         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
18732         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
18733         (mktempd_): Likewise, just in case.
18734
18735         ftruncate: add two years to projected module removal date: 2012
18736         * m4/ftruncate.m4: Adjust comments.
18737
18738         ftruncate: mark module as obsolete; even MinGW provides it, now
18739         * modules/ftruncate (Status): Obsolete.
18740         (Notice): Say that.
18741         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
18742         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
18743
18744 2010-04-08  Bruno Haible  <bruno@clisp.org>
18745
18746         Fix side effects from tests-related modules.
18747         * modules/dprintf-posix (Comment): New section.
18748         * modules/fprintf-posix (Comment): Likewise.
18749         * modules/obstack-printf-posix (Comment): Likewise.
18750         * modules/printf-posix (Comment): Likewise.
18751         * modules/snprintf-posix (Comment): Likewise.
18752         * modules/sprintf-posix (Comment): Likewise.
18753         * modules/vasnprintf-posix (Comment): Likewise.
18754         * modules/vasprintf-posix (Comment): Likewise.
18755         * modules/vdprintf-posix (Comment): Likewise.
18756         * modules/vfprintf-posix (Comment): Likewise.
18757         * modules/vprintf-posix (Comment): Likewise.
18758         * modules/vsnprintf-posix (Comment): Likewise.
18759         * modules/vsprintf-posix (Comment): Likewise.
18760         * modules/xprintf-posix (Comment): Likewise.
18761         * modules/xvasprintf-posix (Comment): Likewise.
18762         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
18763         * modules/floorf-tests (Depends-on): Likewise.
18764         * modules/round-tests (Depends-on): Likewise.
18765         * modules/roundf-tests (Depends-on): Likewise.
18766         * modules/trunc-tests (Depends-on): Likewise.
18767         * modules/truncf-tests (Depends-on): Likewise.
18768         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
18769         'fprintf-posix' module is not present.
18770         * tests/test-floorf2.c (check): Likewise.
18771         * tests/test-trunc2.c (check): Likewise.
18772         * tests/test-truncf2.c (check): Likewise.
18773         * tests/test-round2.c (equal): Likewise.
18774         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18775
18776 2010-04-07  Karl Berry  <karl@gnu.org>
18777
18778         * config/srclist.txt,
18779         * config/srclistvars.sh,
18780         * config/srclist-update: doc fixes.
18781
18782 2010-04-07  Jim Meyering  <meyering@redhat.com>
18783
18784         maint.mk: add a PATH crosschecking syntax-check rule
18785         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
18786         Useful if you use a test like the one in help-version (coreutils,
18787         diffutils, grep, gzip) that ensures $(VERSION) matches what is
18788         printed by prog --version.
18789
18790 2010-04-06  Bruno Haible  <bruno@clisp.org>
18791
18792         Fix link error on mingw.
18793         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
18794         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
18795
18796 2010-04-06  Bruno Haible  <bruno@clisp.org>
18797
18798         Assume rmdir exists.
18799         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
18800
18801 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
18802
18803         doc: update users.txt
18804         * users.txt: Add gcal.
18805
18806 2010-04-06  Jim Meyering  <meyering@redhat.com>
18807
18808         init.sh: simply unset TMPDIR rather than risking env -i
18809         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
18810         although it probably works fine on all Unix-based systems, some
18811         systems (Cygwin?) cannot tolerate a totally cleared environment.
18812         Suggestion from Eric Blake.
18813
18814 2010-04-06  Jim Meyering  <meyering@redhat.com>
18815
18816         init.sh: portability fix: use env's POSIX-specified -i option not -u
18817         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
18818         than unportable env -u.  Solaris 5.11's env lacks support for -u.
18819
18820 2010-04-05  Bruno Haible  <bruno@clisp.org>
18821
18822         btowc: Work around Cygwin 1.7.2 bug.
18823         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
18824         does not map NUL to 0.
18825         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
18826
18827 2010-04-05  Bruno Haible  <bruno@clisp.org>
18828
18829         Make the multithread modules work on Cygwin 1.7.2.
18830         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
18831         imported symbols can be declared weak, so that it returns "no" on
18832         Cygwin 1.7.2.
18833
18834 2010-04-05  Bruno Haible  <bruno@clisp.org>
18835
18836         Use the module 'strncat'.
18837         * modules/unistr/u8-strncat (Depends-on): Add strncat.
18838
18839         Tests for module 'strncat'.
18840         * modules/strncat-tests: New file.
18841         * tests/test-strncat.c: New file.
18842
18843         New module 'strncat'.
18844         * lib/string.in.h (strncat): New declaration.
18845         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
18846         * m4/strncat.m4: New file, based on m4/memchr.m4.
18847         * modules/strncat: New file.
18848         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
18849         is declared.
18850         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
18851         REPLACE_STRNCAT.
18852         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
18853         REPLACE_STRNCAT.
18854         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
18855         module.
18856         * tests/test-string-c++.cc: Check signature of strncat.
18857
18858 2010-04-05  Jim Meyering  <meyering@redhat.com>
18859
18860         xstrtoumax-tests: convert to use init.sh
18861         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
18862         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18863         Use Exit, not exit.
18864         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18865
18866         xstrtoimax-tests: convert to use init.sh
18867         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
18868         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18869         Use Exit, not exit.
18870         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18871
18872 2010-04-05  Bruno Haible  <bruno@clisp.org>
18873
18874         sys_socket: Avoid #define replacements in C++ mode.
18875         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
18876         warning to the function if possible, rather than #defining the symbol
18877         to a dysfunctional alias.
18878
18879 2010-04-05  Bruno Haible  <bruno@clisp.org>
18880
18881         fseeko: Fix C++ test error on mingw.
18882         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
18883         gl_FUNC_FSEEKO.
18884         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
18885         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
18886         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
18887         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
18888
18889 2010-04-05  Bruno Haible  <bruno@clisp.org>
18890
18891         duplocale: Improve test output.
18892         * tests/test-duplocale.c (main): Print reason for skipped test.
18893
18894 2010-04-05  Bruno Haible  <bruno@clisp.org>
18895
18896         Assume rmdir exists.
18897         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
18898         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
18899
18900 2010-04-05  Bruno Haible  <bruno@clisp.org>
18901
18902         Fix link error on Solaris 8 with cc.
18903         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
18904
18905 2010-04-05  Bruno Haible  <bruno@clisp.org>
18906
18907         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18908         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
18909
18910 2010-04-05  Bruno Haible  <bruno@clisp.org>
18911
18912         vasprintf: Update documentation.
18913         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
18914
18915 2010-04-05  Bruno Haible  <bruno@clisp.org>
18916
18917         ptsname: Improve test.
18918         * tests/test-ptsname.c (main): Also try the various master names of BSD
18919         systems.
18920
18921 2010-04-05  Bruno Haible  <bruno@clisp.org>
18922
18923         memchr: Avoid a possible C++ test error.
18924         * lib/string.in.h (memchr): Provide declaration if function is missing.
18925         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
18926         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
18927         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
18928         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
18929
18930 2010-04-05  Bruno Haible  <bruno@clisp.org>
18931
18932         strtok_r: Improve idiom.
18933         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
18934         AC_LIBOBJ is used.
18935
18936 2010-04-05  Bruno Haible  <bruno@clisp.org>
18937
18938         strdup: Improve idiom.
18939         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
18940         AC_LIBOBJ is used.
18941         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
18942         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
18943         when AC_LIBOBJ is used.
18944
18945 2010-04-05  Bruno Haible  <bruno@clisp.org>
18946
18947         mbsinit, mbrtowc, wcrtomb: Improve idioms.
18948         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
18949         don't set REPLACE_MBSINIT to 1.
18950         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
18951         don't set REPLACE_MBRTOWC to 1.
18952         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
18953         exist, don't set REPLACE_MBSRTOWCS to 1.
18954         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
18955         exist, don't set REPLACE_MBSNRTOWCS to 1.
18956         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
18957         don't set REPLACE_WCRTOMB to 1.
18958         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
18959         exist, don't set REPLACE_WCSRTOMBS to 1.
18960         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
18961         exist, don't set REPLACE_WCSNRTOMBS to 1.
18962
18963 2010-04-05  Bruno Haible  <bruno@clisp.org>
18964
18965         ldexpl: Improve idiom.
18966         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
18967         make sure to set HAVE_DECL_LDEXPL to 0.
18968
18969 2010-04-05  Jim Meyering  <meyering@redhat.com>
18970
18971         xstrtol-tests: convert to use init.sh
18972         * modules/xstrtol-tests (Files): Add tests/init.sh.
18973         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18974         Use Exit, not exit.
18975         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18976
18977         atexit-tests: convert to use init.sh
18978         * modules/atexit-tests (Files): Add tests/init.sh.
18979         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18980         Use Exit, not exit.
18981         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18982
18983         init.sh: fix typo
18984         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
18985
18986         init.sh: make it easier for a test script to write to the tty, ...
18987         when using automake's parallel-tests mode.
18988         * tests/init.sh (stderr_fileno_): Define overridable variable.
18989         (warn_): New function, to use it.
18990         (fail_, skip_, framework_failure_): Use warn_.
18991
18992 2010-04-04  Bruno Haible  <bruno@clisp.org>
18993
18994         btowc: Avoid warning.
18995         * lib/btowc.c: Include <stdlib.h>.
18996         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
18997
18998 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18999             Bruno Haible  <bruno@clisp.org>
19000
19001         wchar: Port to NetBSD 1.5.
19002         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
19003         * lib/wctype.in.h (WEOF): Likewise.
19004
19005 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19006             Bruno Haible  <bruno@clisp.org>
19007
19008         Port extended stdio to NetBSD 1.5.
19009         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
19010         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
19011         older.
19012
19013 2010-04-04  Bruno Haible  <bruno@clisp.org>
19014
19015         string: Remove unused substitution.
19016         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19017         HAVE_DECL_STRERROR.
19018         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
19019
19020 2010-04-04  Bruno Haible  <bruno@clisp.org>
19021
19022         strtod: Avoid a possible C++ test error.
19023         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
19024         set REPLACE_STRTOD.
19025
19026 2010-04-04  Bruno Haible  <bruno@clisp.org>
19027
19028         strerror: Update documentation.
19029         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
19030
19031 2010-04-04  Bruno Haible  <bruno@clisp.org>
19032
19033         stdio: Fix some C++ test errors on Solaris 8 with GCC.
19034         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
19035         _GL_CXXALIAS_SYS_CAST.
19036
19037 2010-04-04  Bruno Haible  <bruno@clisp.org>
19038
19039         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19040         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
19041         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
19042         REPLACE_FREXPL to 1.
19043         * doc/posix-functions/frexpl.texi: Update documentation.
19044
19045 2010-04-04  Bruno Haible  <bruno@clisp.org>
19046
19047         math: Fix some C++ test errors on Solaris 8 and Cygwin.
19048         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
19049
19050 2010-04-04  Bruno Haible  <bruno@clisp.org>
19051
19052         Implement nanosleep for native Windows.
19053         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
19054
19055 2010-04-04  Bruno Haible  <bruno@clisp.org>
19056
19057         math: Fix some C++ test errors on Solaris 8.
19058         * lib/math.in.h (truncf, trunc): Use simpler idiom.
19059
19060 2010-04-04  Bruno Haible  <bruno@clisp.org>
19061
19062         math: Fix some C++ test errors on Cygwin.
19063         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
19064         truncl): Provide declaration if the system does not have it.
19065         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
19066         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
19067         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
19068         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
19069         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
19070         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
19071         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
19072         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
19073         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
19074         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
19075         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
19076         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
19077         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
19078         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
19079         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
19080         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
19081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
19082         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19083         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19084         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
19085         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19086         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19087
19088 2010-04-04  Bruno Haible  <bruno@clisp.org>
19089
19090         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
19091         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19092         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19093         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19094         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19095         * m4/isinf.m4 (gl_ISINF): Likewise.
19096         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19097
19098 2010-04-04  Bruno Haible  <bruno@clisp.org>
19099
19100         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
19101         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19102
19103 2010-04-04  Bruno Haible  <bruno@clisp.org>
19104
19105         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
19106         * modules/tmpfile (configure.ac): Update.
19107
19108         tmpfile: Fix C++ test error on mingw.
19109         * lib/stdio.in.h (tmpfile): New declaration.
19110         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
19111         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
19112         * modules/tmpfile (Depends-on): Add stdio.
19113         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
19114         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
19115         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
19116         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
19117         REPLACE_TMPFILE.
19118         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
19119
19120 2010-04-04  Bruno Haible  <bruno@clisp.org>
19121
19122         ioctl: Fix C++ test error on mingw.
19123         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
19124         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
19125         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
19126
19127 2010-04-03  Bruno Haible  <bruno@clisp.org>
19128
19129         wcwidth: Fix C++ test error on mingw.
19130         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
19131         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
19132         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
19133
19134 2010-04-03  Bruno Haible  <bruno@clisp.org>
19135
19136         nanosleep: Fix C++ test error on mingw.
19137         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
19138         * lib/time.in.h (nanosleep): Use modern idiom.
19139         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
19140         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
19141         REPLACE_NANOSLEEP to 1.
19142         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
19143         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
19144
19145 2010-04-03  Bruno Haible  <bruno@clisp.org>
19146
19147         strptime: Fix C++ test error on mingw.
19148         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
19149         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
19150         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
19151         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
19152         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
19153         not REPLACE_STRPTIME.
19154         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
19155         REPLACE_STRPTIME.
19156
19157 2010-04-03  Bruno Haible  <bruno@clisp.org>
19158
19159         timegm: Fix C++ test error on mingw.
19160         * lib/time.in.h (timegm): Use modern idiom.
19161         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
19162         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
19163         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
19164         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
19165
19166 2010-04-03  Bruno Haible  <bruno@clisp.org>
19167
19168         timegm: Assume declaration if function exists.
19169         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
19170         if it exists. Don't clobber ac_cv_func_timegm.
19171
19172 2010-04-03  Bruno Haible  <bruno@clisp.org>
19173
19174         time_r: Fix C++ test error on mingw.
19175         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
19176         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
19177         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
19178         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
19179         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
19180
19181 2010-04-03  Bruno Haible  <bruno@clisp.org>
19182
19183         time_r: Minor updates.
19184         * modules/time_r (Description): Mention the provided functions.
19185         * lib/time_r.c: Don't include <string.h>.
19186         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
19187         * doc/posix-functions/localtime_r.texi: Likewise.
19188
19189 2010-04-03  Bruno Haible  <bruno@clisp.org>
19190
19191         time: Fix regression introduced on 2010-03-08.
19192         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
19193         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
19194
19195 2010-04-03  Jim Meyering  <meyering@redhat.com>
19196
19197         maint.mk: don't silently disable project-specific syntax-check rules
19198         * top/maint.mk (_prohibit_regexp): Define, to help people realize
19199         that they need to convert their project-specific syntax-check rules
19200         to use the new _sc_search_regexp.
19201
19202 2010-04-03  Bruno Haible  <bruno@clisp.org>
19203
19204         fchdir: Fix regression introduced on 2010-03-08.
19205         * lib/unistd.in.h (fchdir): Fix declaration.
19206         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
19207         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
19208         REPLACE_FCHDIR.
19209         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
19210         REPLACE_FCHDIR.
19211
19212 2010-04-03  Bruno Haible  <bruno@clisp.org>
19213
19214         getpagesize: Fix C++ test error on mingw.
19215         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
19216         system does not declare the function.
19217         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
19218         declared.
19219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19220         HAVE_DECL_GETPAGESIZE.
19221         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
19222
19223 2010-04-03  Bruno Haible  <bruno@clisp.org>
19224
19225         stdio: Make C++ tests work on mingw.
19226         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
19227         does not declare the function.
19228
19229 2010-04-03  Bruno Haible  <bruno@clisp.org>
19230
19231         ftello: Fix C++ test error on mingw.
19232         * lib/stdio.in.h (ftello): Use modern idiom.
19233         * lib/ftello.c (ftello): Renamed from rpl_ftello.
19234         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
19235         is missing and that it needs to be replaced.
19236         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
19237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
19238         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
19239
19240 2010-04-03  Bruno Haible  <bruno@clisp.org>
19241
19242         fseeko: Fix C++ test error on mingw.
19243         * lib/stdio.in.h (fseeko): Use modern idiom.
19244         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
19245         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
19246         is missing and that it needs to be replaced.
19247         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
19248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
19249         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
19250
19251 2010-04-03  Bruno Haible  <bruno@clisp.org>
19252
19253         mkstemp: Fix C++ test error on mingw.
19254         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19255         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19256         function is missing and that it needs to be replaced.
19257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19258         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19259
19260 2010-04-03  Bruno Haible  <bruno@clisp.org>
19261
19262         stpncpy: Fix C++ test error on mingw.
19263         * lib/string.in.h (stpncpy): Use modern idiom.
19264         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19265         function is missing and that it needs to be replaced.
19266         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19267         REPLACE_STPNCPY.
19268         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19269
19270 2010-04-03  Bruno Haible  <bruno@clisp.org>
19271
19272         sys_stat: Fix C++ test error on mingw.
19273         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19274         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19275
19276 2010-04-03  Bruno Haible  <bruno@clisp.org>
19277
19278         pty: Update doc.
19279         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19280
19281 2010-04-03  Bruno Haible  <bruno@clisp.org>
19282
19283         unistd: Fix C++ test error on mingw.
19284         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19285
19286 2010-04-03  Bruno Haible  <bruno@clisp.org>
19287
19288         Update doc regarding mingw.
19289         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19290         * doc/glibc-functions/login_tty.texi: Likewise.
19291         * doc/glibc-functions/forkpty.texi: Likewise.
19292
19293 2010-04-03  Bruno Haible  <bruno@clisp.org>
19294
19295         stdlib: Avoid compilation failure of c-strtold on mingw.
19296         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19297
19298 2010-04-03  Bruno Haible  <bruno@clisp.org>
19299
19300         locale: Make C++ tests work on Cygwin and mingw.
19301         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19302         cannot provide the function.
19303         Reported by Simon Josefsson.
19304
19305 2010-04-03  Bruno Haible  <bruno@clisp.org>
19306
19307         localename: Port to MacOS X 10.6.
19308         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19309         memory layout of the locales in MacOS X 10.6 as well.
19310         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19311
19312 2010-04-02  Bruno Haible  <bruno@clisp.org>
19313
19314         gnulib-tool: Ensure that long-running tests are executed last.
19315         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19316         running tests after the one for the other tests.
19317
19318 2010-04-02  Bruno Haible  <bruno@clisp.org>
19319
19320         gnulib-tool: Ensure the tests in the main directory are executed first.
19321         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19322         start with the current directory.
19323
19324 2010-04-02  Bruno Haible  <bruno@clisp.org>
19325
19326         Tests for module 'havelib', moved here from GNU gettext.
19327         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19328         modifications.
19329         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19330         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19331         with modifications.
19332         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19333         modifications.
19334         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19335         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19336         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19337         with modifications.
19338         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19339         with modifications.
19340         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19341         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19342         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19343         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19344         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19345         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19346         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19347         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19348         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19349         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19350         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19351         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19352         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19353         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19354         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19355         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19356         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19357         with modifications.
19358         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19359         with modifications.
19360         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19361         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19362         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19363         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19364         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19365         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19366         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19367         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19368         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19369         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19370         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19371         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19372         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19373         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19374         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19375         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19376         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19377         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19378         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19379         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19380         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19381         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19382         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19383         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19384         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19385         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19386         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19387         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19388         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19389         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19390         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19391         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19392         * tests/havelib/rpathx/rpathx.c: New file, from
19393         gettext/autoconf-lib-link.
19394         * tests/havelib/rpathx/Makefile.am: New file, from
19395         gettext/autoconf-lib-link.
19396         * tests/havelib/rpathx/configure.ac: New file, from
19397         gettext/autoconf-lib-link with modifications.
19398         * tests/havelib/rpathy/rpathy.c: New file, from
19399         gettext/autoconf-lib-link.
19400         * tests/havelib/rpathy/Makefile.am: New file, from
19401         gettext/autoconf-lib-link.
19402         * tests/havelib/rpathy/configure.ac: New file, from
19403         gettext/autoconf-lib-link with modifications.
19404         * tests/havelib/rpathz/rpathz.c: New file, from
19405         gettext/autoconf-lib-link.
19406         * tests/havelib/rpathz/Makefile.am: New file, from
19407         gettext/autoconf-lib-link.
19408         * tests/havelib/rpathz/configure.ac: New file, from
19409         gettext/autoconf-lib-link with modifications.
19410         * tests/havelib/rpathlx/usex.c: New file, from
19411         gettext/autoconf-lib-link.
19412         * tests/havelib/rpathlx/Makefile.am: New file, from
19413         gettext/autoconf-lib-link.
19414         * tests/havelib/rpathlx/configure.ac: New file, from
19415         gettext/autoconf-lib-link with modifications.
19416         * tests/havelib/rpathly/usey.c: New file, from
19417         gettext/autoconf-lib-link.
19418         * tests/havelib/rpathly/Makefile.am: New file, from
19419         gettext/autoconf-lib-link.
19420         * tests/havelib/rpathly/configure.ac: New file, from
19421         gettext/autoconf-lib-link with modifications.
19422         * tests/havelib/rpathlz/usez.c: New file, from
19423         gettext/autoconf-lib-link.
19424         * tests/havelib/rpathlz/Makefile.am: New file, from
19425         gettext/autoconf-lib-link.
19426         * tests/havelib/rpathlz/configure.ac: New file, from
19427         gettext/autoconf-lib-link with modifications.
19428         * tests/havelib/rpathlyx/usey.c: New file, from
19429         gettext/autoconf-lib-link.
19430         * tests/havelib/rpathlyx/Makefile.am: New file, from
19431         gettext/autoconf-lib-link.
19432         * tests/havelib/rpathlyx/configure.ac: New file, from
19433         gettext/autoconf-lib-link with modifications.
19434         * tests/havelib/rpathlzyx/usez.c: New file, from
19435         gettext/autoconf-lib-link.
19436         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19437         gettext/autoconf-lib-link.
19438         * tests/havelib/rpathlzyx/configure.ac: New file, from
19439         gettext/autoconf-lib-link with modifications.
19440         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19441         with modifications.
19442
19443 2010-04-02  Bruno Haible  <bruno@clisp.org>
19444
19445         gnulib-tool: Create distributed built sources also for the tests.
19446         * gnulib-tool (func_create_testdir): Also generate distributed built
19447         sources in the tests directory.
19448
19449 2010-04-02  Bruno Haible  <bruno@clisp.org>
19450
19451         gnulib-tool: Obey user's environment variables.
19452         * gnulib-tool (func_create_testdir): When creating built sources,
19453         respect the environment variables for autoconf, automake, etc. given by
19454         the user.
19455
19456 2010-04-02  Bruno Haible  <bruno@clisp.org>
19457
19458         gnulib-tool: Provide the value of --m4-base to modules.
19459         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19460         of gl_m4_base.
19461
19462 2010-04-02  Eric Blake  <eblake@redhat.com>
19463
19464         maint.mk: fix some fallout
19465         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19466         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19467
19468 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19469
19470         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
19471         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
19472         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
19473         (sc_cast_of_x_alloc_return_value): Likewise.
19474         (sc_cast_of_alloca_return_value): Likewise.
19475         (sc_space_tab): Likewise.
19476         (sc_prohibit_atoi_atof): Likewise.
19477         (sc_prohibit_magic_number_exit): Likewise.
19478         (sc_error_exit_success): Likewise.
19479         (sc_file_system): Likewise.
19480         (sc_prohibit_have_config_h): Likewise.
19481         (sc_require_config_h): Likewise.
19482         (sc_prohibit_HAVE_MBRTOWC): Likewise.
19483         (sc_obsolete_symbols): Likewise.
19484         (sc_changelog): Likewise.
19485         (sc_program_name): Likewise.
19486         (sc_the_the): Likewise.
19487         (sc_trailing_blank): Likewise.
19488         (sc_two_space_separator_in_usage): Likewise.
19489         (sc_useless_cpp_parens): Likewise.
19490         (sc_GPL_version): Likewise.
19491         (sc_GFDL_version): Likewise.
19492         (sc_texinfo_acronym): Likewise.
19493         (sc_prohibit_cvs_keyword): Likewise.
19494         (sc_prohibit_stat_st_blocks): Likewise.
19495         (sc_prohibit_S_IS_definition): Likewise.
19496         (sc_redundant_const): Likewise.
19497         (sc_makefile_TAB_only_indentation): Likewise.
19498         (sc_m4_quote_check): Likewise.
19499         (sc_makefile_path_separator_check): Likewise.
19500         (sc_copyright_check): Likewise.
19501         (sc_Wundef_boolean): Likewise.
19502         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19503
19504         maint.mk: match 0 or more whitespace-before-function-call '('
19505         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
19506         that have zero or two-and-more spaces between the function name
19507         and the open parenthesis.
19508         (sc_error_message_warn_fatal): Likewise.
19509         (sc_error_message_uppercase): Likewise.
19510         (sc_error_message_period): Likewise.
19511
19512 2010-03-31  Eric Blake  <eblake@redhat.com>
19513
19514         maint.mk: check for [ as well as test
19515         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
19516         Based on a libvirt report by Matthias Bolte.
19517
19518         gnumakefile: don't squelch _version output
19519         * top/GNUmakefile (_version): Create one-shot dependency rather
19520         than using $(shell) when version must be regenerated.
19521         (_autoreconf): Run verbosely, by default.
19522
19523         sys_time: avoid compiler warnings
19524         * lib/sys_time.in.h (includes): Ensure gcc pragma is
19525         unconditional, fixing regression from 2010-03-29.
19526         Reported by Simon Josefsson.
19527
19528 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19529
19530         maint.mk: s/_header_without_use/_sc_header_without_use/
19531         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
19532         (sc_prohibit_assert_without_use): Use the new name.
19533         (sc_prohibit_close_stream_without_use): Likewise.
19534         (sc_prohibit_getopt_without_use): Likewise.
19535         (sc_prohibit_quotearg_without_use): Likewise.
19536         (sc_prohibit_quote_without_use): Likewise.
19537         (sc_prohibit_long_options_without_use): Likewise.
19538         (sc_prohibit_inttostr_without_use): Likewise.
19539         (sc_prohibit_ignore_value_without_use): Likewise.
19540         (sc_prohibit_error_without_use): Likewise.
19541         (sc_prohibit_xalloc_without_use): Likewise.
19542         (sc_prohibit_hash_without_use): Likewise.
19543         (sc_prohibit_hash_pjw_without_use): Likewise.
19544         (sc_prohibit_safe_read_without_use): Likewise.
19545         (sc_prohibit_argmatch_without_use): Likewise.
19546         (sc_prohibit_canonicalize_without_use): Likewise.
19547         (sc_prohibit_root_dev_ino_without_use): Likewise.
19548         (sc_prohibit_openat_without_use): Likewise.
19549         (sc_prohibit_c_ctype_without_use): Likewise.
19550         (sc_prohibit_signal_without_use): Likewise.
19551         (sc_prohibit_intprops_without_use): Likewise.
19552
19553 2010-03-30  Eric Blake  <eblake@redhat.com>
19554
19555         maint: improve module indicators
19556         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
19557         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
19558         columns, and avoid extra macro expansion.
19559
19560         fdopendir: work around FreeBSD bug
19561         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19562         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19563         * modules/dirent (Makefile.am): Substitute it.
19564         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19565         declaration.
19566         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19567         fix.
19568         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19569
19570 2010-03-29  Bruno Haible  <bruno@clisp.org>
19571
19572         Emit #pragma system_header after the inclusion guard, not before.
19573         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19574         guard that spans the entire file, not before. This enables an
19575         optimization in GCC's preprocessor.
19576         * lib/ctype.in.h: Likewise.
19577         * lib/dirent.in.h: Likewise.
19578         * lib/errno.in.h: Likewise.
19579         * lib/float.in.h: Likewise.
19580         * lib/getopt.in.h: Likewise.
19581         * lib/iconv.in.h: Likewise.
19582         * lib/langinfo.in.h: Likewise.
19583         * lib/locale.in.h: Likewise.
19584         * lib/math.in.h: Likewise.
19585         * lib/netdb.in.h: Likewise.
19586         * lib/netinet_in.in.h: Likewise.
19587         * lib/pty.in.h: Likewise.
19588         * lib/sched.in.h: Likewise.
19589         * lib/se-selinux.in.h: Likewise.
19590         * lib/search.in.h: Likewise.
19591         * lib/spawn.in.h: Likewise.
19592         * lib/stdarg.in.h: Likewise.
19593         * lib/stdint.in.h: Likewise.
19594         * lib/string.in.h: Likewise.
19595         * lib/strings.in.h: Likewise.
19596         * lib/sys_file.in.h: Likewise.
19597         * lib/sys_ioctl.in.h: Likewise.
19598         * lib/sys_time.in.h: Likewise.
19599         * lib/sys_times.in.h: Likewise.
19600         * lib/sys_utsname.in.h: Likewise.
19601         * lib/sys_wait.in.h: Likewise.
19602         * lib/sysexits.in.h: Likewise.
19603         * lib/wctype.in.h: Likewise.
19604
19605 2010-03-28  James Youngman  <jay@gnu.org>
19606
19607         save-cwd: don't leak a file descriptor when the caller execs.
19608         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19609         saved file descriptor.
19610         * modules/save-cwd (Depends-on): Depend on cloexec.
19611
19612 2010-03-29  Bruno Haible  <bruno@clisp.org>
19613
19614         Remove vestiges of fts-lgpl module.
19615         * lib/fts_.h: Assume GNULIB_FTS is 1.
19616         * lib/fts.c: Likewise.
19617         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19618
19619 2010-03-28  Bruno Haible  <bruno@clisp.org>
19620
19621         Fix definition of tests witness macro.
19622         * gnulib-tool (func_import): Fix definition of witness macro.
19623
19624 2010-03-28  Bruno Haible  <bruno@clisp.org>
19625
19626         Fix ioctl's protoype on glibc systems.
19627         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19628         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19629         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19630         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19631         signature. If not, arrange to replace the ioctl function.
19632         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19633         REPLACE_IOCTL.
19634         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19635         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
19636         Reported by Ludovic Courtès <ludo@gnu.org>.
19637
19638 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
19639
19640         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
19641         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19642         made it so grep -r --include=GLOB* ... did not work.
19643
19644 2010-03-26  Jim Meyering  <meyering@redhat.com>
19645             Eric Blake  <eblake@redhat.com>
19646
19647         maint.mk: prohibit use of test's -o and -a operators
19648         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
19649
19650 2010-03-28  Bruno Haible  <bruno@clisp.org>
19651
19652         Remove unused GNULIB_XYZ macro definitions.
19653         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
19654         invocation.
19655
19656 2010-03-28  Bruno Haible  <bruno@clisp.org>
19657
19658         Mark privileged tests modules.
19659         * modules/idpriv-drop-tests (Status): New section.
19660         * modules/idpriv-droptemp-tests (Status): New section.
19661
19662 2010-03-28  Bruno Haible  <bruno@clisp.org>
19663
19664         Split C++ tests into separate tests modules.
19665         * modules/dirent-c++-tests: New file, extracted from
19666         modules/dirent-tests.
19667         * modules/dirent-tests: Depend on it.
19668         * modules/fcntl-h-c++-tests: New file, extracted from
19669         modules/fcntl-h-tests.
19670         * modules/fcntl-h-tests: Depend on it.
19671         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
19672         * modules/glob-tests: Depend on it.
19673         * modules/iconv-h-c++-tests: New file, extracted from
19674         modules/iconv-h-tests.
19675         * modules/iconv-h-tests: Depend on it.
19676         * modules/langinfo-c++-tests: New file, extracted from
19677         modules/langinfo-tests.
19678         * modules/langinfo-tests: Depend on it.
19679         * modules/locale-c++-tests: New file, extracted from
19680         modules/locale-tests.
19681         * modules/locale-tests: Depend on it.
19682         * modules/math-c++-tests: New file, extracted from modules/math-tests.
19683         * modules/math-tests: Depend on it.
19684         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
19685         * modules/pty-tests: Depend on it.
19686         * modules/search-c++-tests: New file, extracted from
19687         modules/search-tests.
19688         * modules/search-tests: Depend on it.
19689         * modules/signal-c++-tests: New file, extracted from
19690         modules/signal-tests.
19691         * modules/signal-tests: Depend on it.
19692         * modules/spawn-c++-tests: New file, extracted from
19693         modules/spawn-tests.
19694         * modules/spawn-tests: Depend on it.
19695         * modules/stdio-c++-tests: New file, extracted from
19696         modules/stdio-tests.
19697         * modules/stdio-tests: Depend on it.
19698         * modules/stdlib-c++-tests: New file, extracted from
19699         modules/stdlib-tests.
19700         * modules/stdlib-tests: Depend on it.
19701         * modules/string-c++-tests: New file, extracted from
19702         modules/string-tests.
19703         * modules/string-tests: Depend on it.
19704         * modules/sys_ioctl-c++-tests: New file, extracted from
19705         modules/sys_ioctl-tests.
19706         * modules/sys_ioctl-tests: Depend on it.
19707         * modules/sys_select-c++-tests: New file, extracted from
19708         modules/sys_select-tests.
19709         * modules/sys_select-tests: Depend on it.
19710         * modules/sys_socket-c++-tests: New file, extracted from
19711         modules/sys_socket-tests.
19712         * modules/sys_socket-tests: Depend on it.
19713         * modules/sys_stat-c++-tests: New file, extracted from
19714         modules/sys_stat-tests.
19715         * modules/sys_stat-tests: Depend on it.
19716         * modules/sys_time-c++-tests: New file, extracted from
19717         modules/sys_time-tests.
19718         * modules/sys_time-tests: Depend on it.
19719         * modules/time-c++-tests: New file, extracted from modules/time-tests.
19720         * modules/time-tests: Depend on it.
19721         * modules/unistd-c++-tests: New file, extracted from
19722         modules/unistd-tests.
19723         * modules/unistd-tests: Depend on it.
19724         * modules/wchar-c++-tests: New file, extracted from
19725         modules/wchar-tests.
19726         * modules/wchar-tests: Depend on it.
19727         * modules/wctype-c++-tests: New file, extracted from
19728         modules/wctype-tests.
19729         * modules/wctype-tests: Depend on it.
19730         Reported by Simon Josefsson.
19731
19732 2010-03-28  Bruno Haible  <bruno@clisp.org>
19733
19734         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
19735         * gnulib-tool (func_exists_module): New function, extracted from
19736         func_verify_module.
19737         (func_verify_module): Use it.
19738         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
19739         'foo' only if 'foo' exists.
19740         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
19741         module.
19742
19743 2010-03-28  Bruno Haible  <bruno@clisp.org>
19744
19745         gnulib-tool: Add support for special categories of tests.
19746         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
19747         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
19748         (func_usage): Document them.
19749         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
19750         inc_unportable_tests, inc_all_tests): New variables.
19751         (func_acceptable): Consider these variables.
19752         (func_modules_transitive_closure): Make it work when the 'Status' field
19753         consists of multiple words.
19754         (func_import): Store and restore the values of inc_cxx_tests,
19755         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
19756         inc_all_tests in gnulib-comp.m4.
19757         (func_create_testdir): Set inc_all_tests to true.
19758         * doc/gnulib.texi (Extra tests modules): New section.
19759         Suggested by Jim Meyering.
19760
19761 2010-03-28  Bruno Haible  <bruno@clisp.org>
19762
19763         ansi-c++-opt: Allow turning off the C++ build by default.
19764         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
19765         gl_CXX_CHOICE_DEFAULT_NO is defined.
19766         Requested by Eric Blake.
19767
19768 2010-03-28  Bruno Haible  <bruno@clisp.org>
19769
19770         unistd: Avoid #define replacements in C++ mode.
19771         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
19772         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
19773         setsockopt, shutdown, select): In C++, attach a warning to the function
19774         if possible, rather than #defining the symbol to a dysfunctional alias.
19775         Reported by John W. Eaton <jwe@gnu.org>.
19776
19777 2010-03-28  Bruno Haible  <bruno@clisp.org>
19778
19779         Fix link errors on mingw.
19780         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
19781         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
19782         $(LIBSOCKET).
19783         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
19784         $(LIBSOCKET).
19785
19786 2010-03-28  Bruno Haible  <bruno@clisp.org>
19787             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19788
19789         lib-ignore: Determine different options for different compilers.
19790         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
19791         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
19792         Add comments.
19793         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
19794         * NEWS: Mention the change.
19795
19796 2010-03-27  Bruno Haible  <bruno@clisp.org>
19797
19798         Remove unused GNULIB_XYZ macro definitions.
19799         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19800         * modules/fseek (configure.ac): Likewise.
19801         * modules/ioctl (configure.ac): Likewise.
19802         * modules/open (configure.ac): Likewise.
19803         * modules/stdlib-safer (configure.ac): Likewise.
19804
19805 2010-03-27  Bruno Haible  <bruno@clisp.org>
19806
19807         Add a remark about certain modules.
19808         * modules/malloc (Comment): New section.
19809         * modules/realloc (Comment): Likewise.
19810         * modules/sigpipe (Comment): Likewise.
19811
19812 2010-03-27  Bruno Haible  <bruno@clisp.org>
19813
19814         Resolve conflict between the two kinds of module indicators.
19815         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
19816         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
19817         * modules/canonicalize (configure.ac): Invoke
19818         gl_MODULE_INDICATOR_FOR_TESTS.
19819         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
19820         GNULIB_XYZ.
19821         * tests/test-dirent-c++.cc: Likewise.
19822         * tests/test-dirent-safer.c: Likewise.
19823         * tests/test-dup2.c: Likewise.
19824         * tests/test-fchdir.c: Likewise.
19825         * tests/test-fcntl-h-c++.cc: Likewise.
19826         * tests/test-getopt.c: Likewise.
19827         * tests/test-getopt.h: Likewise.
19828         * tests/test-langinfo-c++.cc: Likewise.
19829         * tests/test-locale-c++.cc: Likewise.
19830         * tests/test-math-c++.cc: Likewise.
19831         * tests/test-pty-c++.cc: Likewise.
19832         * tests/test-search-c++.cc: Likewise.
19833         * tests/test-signal-c++.cc: Likewise.
19834         * tests/test-spawn-c++.cc: Likewise.
19835         * tests/test-stdio-c++.cc: Likewise.
19836         * tests/test-stdlib-c++.cc: Likewise.
19837         * tests/test-string-c++.cc: Likewise.
19838         * tests/test-sys_ioctl-c++.cc: Likewise.
19839         * tests/test-sys_select-c++.cc: Likewise.
19840         * tests/test-sys_socket-c++.cc: Likewise.
19841         * tests/test-sys_stat-c++.cc: Likewise.
19842         * tests/test-sys_time-c++.cc: Likewise.
19843         * tests/test-time-c++.cc: Likewise.
19844         * tests/test-unistd-c++.cc: Likewise.
19845         * tests/test-wchar-c++.cc: Likewise.
19846         * tests/uninorm/test-u8-nfc.c: Likewise.
19847         * tests/uninorm/test-u8-nfd.c: Likewise.
19848         * tests/uninorm/test-u8-nfkc.c: Likewise.
19849         * tests/uninorm/test-u8-nfkd.c: Likewise.
19850         * tests/uninorm/test-u16-nfc.c: Likewise.
19851         * tests/uninorm/test-u16-nfd.c: Likewise.
19852         * tests/uninorm/test-u16-nfkc.c: Likewise.
19853         * tests/uninorm/test-u16-nfkd.c: Likewise.
19854         * tests/uninorm/test-u32-nfc.c: Likewise.
19855         * tests/uninorm/test-u32-nfc-big.c: Likewise.
19856         * tests/uninorm/test-u32-nfd.c: Likewise.
19857         * tests/uninorm/test-u32-nfd-big.c: Likewise.
19858         * tests/uninorm/test-u32-nfkc.c: Likewise.
19859         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
19860         * tests/uninorm/test-u32-nfkd.c: Likewise.
19861         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
19862         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19863
19864 2010-03-27  Bruno Haible  <bruno@clisp.org>
19865
19866         Distinguish two kinds of module indicators.
19867         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
19868         gl_MODULE_INDICATOR.
19869         (gl_MODULE_INDICATOR): New macro.
19870         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19871         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
19872         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19873         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19874         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19875         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19876         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19877         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19878         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19879         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19880         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19881         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19882         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19883         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19884         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19885         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19886         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19887         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19888         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19889         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19890         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19891         * modules/cloexec (configure.ac): Likewise.
19892         * modules/getopt-gnu (configure.ac): Likewise.
19893         * modules/uninorm/u8-normalize (configure.ac): Likewise.
19894         * modules/uninorm/u16-normalize (configure.ac): Likewise.
19895         * modules/uninorm/u32-normalize (configure.ac): Likewise.
19896         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
19897
19898 2010-03-27  Bruno Haible  <bruno@clisp.org>
19899
19900         New module description field 'Comment'.
19901         * gnulib-tool: New option --extract-comment.
19902         (func_usage): Document it.
19903         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
19904         (func_get_comment): New function.
19905         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
19906
19907 2010-03-27  Bruno Haible  <bruno@clisp.org>
19908
19909         Addendum to 2010-02-07 commit.
19910         * gnulib-tool (func_usage): Document --extract-applicability option.
19911
19912 2010-03-27  Bruno Haible  <bruno@clisp.org>
19913
19914         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
19915         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
19916         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
19917         rather than link errors.
19918
19919 2010-03-27  Bruno Haible  <bruno@clisp.org>
19920
19921         Avoid side effects from tests-related modules on the compilation of lib.
19922         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
19923         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
19924         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
19925         parameter. Emit into AM_CPPFLAGS a definition of the designated C
19926         macro.
19927         (func_import): Define a witness macro. Assign it a value that depends
19928         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
19929         tests-related modules.
19930         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
19931         Reported by Jim Meyering.
19932
19933 2010-03-27  Bruno Haible  <bruno@clisp.org>
19934
19935         Factorize common .m4 code.
19936         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
19937         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
19938         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
19939         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
19940         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19941         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
19942         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
19943         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19944         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19945         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19946         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
19947         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19948         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19949         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19950         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19951         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
19952         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19953         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19954         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19955         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
19956         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
19957         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19958         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19959         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19960         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19961         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19962         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
19963         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
19964         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
19965         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19966         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19967         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19968
19969 2010-03-27  Bruno Haible  <bruno@clisp.org>
19970
19971         Fix a compilation error on Cygwin with g++ >= 4.3.
19972         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
19973         if it is undefined or if we alias it to chmod.
19974         (lstat): Don't warn about the use of this function if it is undefined
19975         or if we alias it to stat.
19976         Reported by Simon Josefsson.
19977
19978 2010-03-27  Bruno Haible  <bruno@clisp.org>
19979
19980         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
19981         * modules/getlogin (configure.ac): Update.
19982
19983         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
19984         * modules/getlogin_r (configure.ac): Update.
19985
19986         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
19987         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
19988         * modules/inet_ntop (configure.ac): Update.
19989
19990         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
19991         * modules/inet_pton (configure.ac): Update.
19992
19993         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
19994         * modules/mbslen (configure.ac): Update.
19995
19996         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
19997         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
19998         * modules/forkpty (configure.ac): Update.
19999         * modules/openpty (configure.ac): Update.
20000
20001 2010-03-26  Simon Josefsson  <simon@josefsson.org>
20002
20003         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
20004         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
20005
20006 2010-03-25  Eric Blake  <eblake@redhat.com>
20007
20008         maint: use pragma consistently across replacement headers
20009         * lib/ctype.in.h (system_header): Hoist for consistent placement.
20010         * lib/dirent.in.h (system_header): Likewise.
20011         * lib/errno.in.h (system_header): Likewise.
20012         * lib/float.in.h (system_header): Likewise.
20013         * lib/getopt.in.h (system_header): Likewise.
20014         * lib/iconv.in.h (system_header): Likewise.
20015         * lib/inttypes.in.h (system_header): Likewise.
20016         * lib/langinfo.in.h (system_header): Likewise.
20017         * lib/locale.in.h (system_header): Likewise.
20018         * lib/math.in.h (system_header): Likewise.
20019         * lib/netdb.in.h (system_header): Likewise.
20020         * lib/netinet_in.in.h (system_header): Likewise.
20021         * lib/pty.in.h (system_header): Likewise.
20022         * lib/sched.in.h (system_header): Likewise.
20023         * lib/se-selinux.in.h (system_header): Likewise.
20024         * lib/search.in.h (system_header): Likewise.
20025         * lib/spawn.in.h (system_header): Likewise.
20026         * lib/stdarg.in.h (system_header): Likewise.
20027         * lib/stdint.in.h (system_header): Likewise.
20028         * lib/string.in.h (system_header): Likewise.
20029         * lib/strings.in.h (system_header): Likewise.
20030         * lib/sys_file.in.h (system_header): Likewise.
20031         * lib/sys_ioctl.in.h (system_header): Likewise.
20032         * lib/sys_socket.in.h (system_header): Likewise.
20033         * lib/sys_times.in.h (system_header): Likewise.
20034         * lib/sys_utsname.in.h (system_header): Likewise.
20035         * lib/sys_wait.in.h (system_header): Likewise.
20036         * lib/sysexits.in.h (system_header): Likewise.
20037         * lib/unistd.in.h (system_header): Likewise.
20038         * lib/wctype.in.h (system_header): Likewise.
20039
20040         arpa/inet: fix mingw compilation warning
20041         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
20042         Reported by Matthew Bolte.
20043
20044 2010-03-25  Bruno Haible  <bruno@clisp.org>
20045
20046         Avoid collision between gnulib wrapper and libintl wrapper.
20047         * lib/printf.c (printf): Don't define if a printf wrapper is already
20048         defined in intl/printf.c.
20049         Reported by Michel Boaventura <michel@michelboaventura.com>.
20050
20051 2010-03-25  Bruno Haible  <bruno@clisp.org>
20052
20053         Use ANSI C.
20054         * lib/readutmp.h (getutent): Provide ANSI C prototype.
20055
20056 2010-03-25  Bruno Haible  <bruno@clisp.org>
20057
20058         Minor formatting changes.
20059         * lib/acosl.c: Insert space before function argument list.
20060         * lib/argz.c: Likewise.
20061         * lib/asinl.c: Likewise.
20062         * lib/expl.c: Likewise.
20063         * lib/gen-uni-tables.c: Likewise.
20064         * lib/gettext.h: Likewise.
20065         * lib/glthread/lock.h: Likewise.
20066         * lib/tanl.c: Likewise.
20067         * lib/uniname/uniname.c: Likewise.
20068         * tests/test-idpriv-drop.c: Likewise.
20069         * tests/test-idpriv-droptemp.c: Likewise.
20070         * tests/test-lock.c: Likewise.
20071         * tests/test-tls.c: Likewise.
20072         * lib/argp-help.c: Insert space before function-like macro argument
20073         list.
20074         * lib/memcmp.c: Likewise.
20075         * tests/test-base64.c: Likewise.
20076         * lib/localename.c: Insert space before sizeof's argument list.
20077         * lib/safe-alloc.h: Likewise.
20078         * lib/file-set.h: Insert space before macro argument list.
20079         * tests/test-argp.c: Likewise.
20080         * lib/argp-namefrob.h: Insert space before function parameter list.
20081         * lib/getaddrinfo.c: Likewise.
20082         * lib/netdb.in.h: Likewise.
20083         * lib/parse-duration.h: Likewise.
20084         * lib/parse-duration.c: Likewise.
20085         * lib/poll.c: Likewise.
20086         * lib/select.c: Likewise.
20087         * lib/trim.h: Likewise.
20088         * tests/test-usleep.c: Likewise.
20089         * lib/ldexpl.c: Insert space before function parameter list and before
20090         function argument list.
20091         * lib/logl.c: Likewise.
20092         * lib/sqrtl.c: Likewise.
20093         * lib/trim.c: Likewise.
20094         * lib/cosl.c: Use GNU style indentation. Insert space before function
20095         argument list.
20096         * lib/sinl.c: Likewise.
20097         * lib/tsearch.c: Insert space after 'for'.
20098         Reported by Jim Meyering.
20099
20100 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
20101
20102         * maint.mk (sc_Wundef_boolean): Check for the presence of the
20103         config header before grepping, as it's not present before
20104         autoreconf/configure are run.  Reported by Simon Josefsson.
20105
20106 2010-03-23  Bruno Haible  <bruno@clisp.org>
20107
20108         pt_chown: Make it work with automake < 1.11.
20109         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
20110         Reported by Simon Josefsson.
20111
20112 2010-03-23  Bruno Haible  <bruno@clisp.org>
20113
20114         pt_chown: Don't depend on GPLed modules.
20115         * lib/pt_chown.c: Don't include idpriv.h.
20116         (main): Don't drop privileges.
20117         * modules/pt_chown (Depends-on): Remove idpriv-drop.
20118         Reported by Simon Josefsson.
20119
20120 2010-03-24  Simon Josefsson  <simon@josefsson.org>
20121
20122         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
20123         suggestions from karl@freefriends.org (Karl Berry).
20124
20125 2010-03-22  Eric Blake  <eblake@redhat.com>
20126
20127         gethostname: further tweaks
20128         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
20129         are overriding gethostname.
20130         Suggested by Bruno Haible.
20131
20132 2010-03-21  Bruno Haible  <bruno@clisp.org>
20133
20134         Fix comments.
20135         * lib/forkpty.c (rpl_forkpty): Fix comment.
20136         * lib/openpty.c (rpl_openpty): Likewise.
20137         Reported by Eric Blake.
20138
20139 2010-03-22  Eric Blake  <eblake@redhat.com>
20140
20141         gethostname: fix build on mingw
20142         * lib/unistd.in.h (includes): Work around fact that mingw
20143         <winsock2.h> re-includes <unistd.h>, by avoiding any
20144         redeclarations if we are being included by <winsock2.h>.
20145         Reported by Matthias Bolte.
20146
20147 2010-03-21  Bruno Haible  <bruno@clisp.org>
20148
20149         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20150         * lib/forkpty.c (forkpty): New replacement function, from glibc with
20151         modifications.
20152         * lib/pty.in.h (forkpty): Update declaration. Add comments.
20153         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
20154         provide the replacement.
20155         * modules/forkpty (Depends-on): Add openpty, login_tty.
20156         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
20157         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
20158         * doc/glibc-functions/forkpty.texi: More supported platforms.
20159         * config/srclist.txt: Add forkpty.c (commented).
20160
20161 2010-03-21  Bruno Haible  <bruno@clisp.org>
20162
20163         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
20164         (Makefile.am): Verify that PTY_LIB is defined.
20165
20166         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
20167
20168 2010-03-21  Bruno Haible  <bruno@clisp.org>
20169
20170         Tests for module 'login_tty'.
20171         * modules/login_tty-tests: New file.
20172         * tests/test-login_tty.c: New file.
20173
20174         New module 'login_tty'.
20175         * lib/login_tty.c: New file.
20176         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
20177         * modules/login_tty: New file.
20178         * doc/glibc-functions/login_tty.texi: Mention the new module.
20179
20180 2010-03-21  Bruno Haible  <bruno@clisp.org>
20181
20182         login_tty: Documentation.
20183         * doc/glibc-functions/login_tty.texi: New file.
20184         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
20185
20186 2010-03-21  Bruno Haible  <bruno@clisp.org>
20187
20188         pty: Consistent macro naming.
20189         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
20190         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
20191         * modules/pty (configure.ac): Update.
20192
20193 2010-03-21  Bruno Haible  <bruno@clisp.org>
20194
20195         Tests for openpty: Make stricter.
20196         * tests/test-openpty.c (main): Add test of canonical processing and
20197         erase.
20198         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
20199
20200         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20201         * lib/openpty.c (openpty): New replacement function.
20202         * lib/pty.in.h: Include <termios.h>.
20203         (openpty): Update declaration. Add comments.
20204         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
20205         is not declared, arrange to provide the replacement. Check for _getpty
20206         and posix_openpt.
20207         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
20208         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
20209         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
20210         * modules/pty-tests (test_pty_c___LDADD): New variable.
20211         * doc/glibc-functions/openpty.texi: More supported platforms.
20212
20213 2010-03-21  Bruno Haible  <bruno@clisp.org>
20214
20215         setenv: Tweaks.
20216         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
20217         the test program.
20218         * doc/posix-functions/setenv.texi: Update platforms list.
20219
20220 2010-03-21  Bruno Haible  <bruno@clisp.org>
20221
20222         New module 'unlockpt'.
20223         * lib/unlockpt.c: New file, from glibc with modifications.
20224         * m4/unlockpt.m4: New file.
20225         * modules/unlockpt: New file.
20226         * lib/stdlib.in.h (unlockpt): New declaration.
20227         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
20228         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
20229         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
20230         HAVE_UNLOCKPT.
20231         * doc/posix-functions/unlockpt.texi: Mention the new module.
20232         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
20233         * config/srclist.txt: Add unlockpt.c (commented).
20234
20235 2010-03-21  Jim Meyering  <meyering@redhat.com>
20236
20237         maint.mk: prohibit inclusion of "intprops.h" without use
20238         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20239
20240 2010-03-21  Bruno Haible  <bruno@clisp.org>
20241
20242         New module 'grantpt'.
20243         * lib/grantpt.c: New file, from glibc with modifications.
20244         * m4/grantpt.m4: New file.
20245         * modules/grantpt: New file.
20246         * lib/stdlib.in.h (grantpt): New declaration.
20247         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
20248         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
20249         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
20250         HAVE_GRANTPT.
20251         * doc/posix-functions/grantpt.texi: Mention the new module.
20252         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20253         * config/srclist.txt: Add grantpt.c (commented).
20254
20255 2010-03-21  Bruno Haible  <bruno@clisp.org>
20256
20257         New module 'pt_chown'.
20258         * lib/pt_chown.c: New file, from glibc with modifications.
20259         * lib/pty-private.h: New file, from glibc with modifications.
20260         * modules/pt_chown: New file.
20261         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20262
20263 2010-03-21  Bruno Haible  <bruno@clisp.org>
20264
20265         Tests for module 'ptsname'.
20266         * modules/ptsname-tests: New file.
20267         * tests/test-ptsname.c: New file.
20268
20269         New module 'ptsname'.
20270         * lib/ptsname.c: New file, from glibc with modifications.
20271         * m4/ptsname.m4: New file.
20272         * modules/ptsname: New file.
20273         * lib/stdlib.in.h (ptsname): New declaration.
20274         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20275         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20276         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20277         HAVE_PTSNAME.
20278         * doc/posix-functions/ptsname.texi: Mention the new module.
20279         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20280         * config/srclist.txt: Add ptsname.c (commented).
20281
20282 2010-03-21  Bruno Haible  <bruno@clisp.org>
20283
20284         Tests for module 'ttyname_r'.
20285         * modules/ttyname_r-tests: New file.
20286         * tests/test-ttyname_r.c: New file.
20287
20288         New module 'ttyname_r'.
20289         * lib/ttyname_r.c: New file.
20290         * m4/ttyname_r.m4: New file.
20291         * modules/ttyname_r: New file.
20292         * lib/unistd.in.h (ttyname_r): New declaration.
20293         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20294         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20295         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20296         HAVE_TTYNAME_R.
20297         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20298         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20299
20300 2010-03-20  Bruno Haible  <bruno@clisp.org>
20301
20302         signal: Undefine macro definitions in C++ mode.
20303         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20304         sigfillset): Undefine macro definitions from the system header in C++
20305         mode.
20306         Reported by John W. Eaton <jwe@gnu.org>.
20307
20308 2010-03-20  Bruno Haible  <bruno@clisp.org>
20309
20310         Ensure no #include statements inside extern "C" { ... }.
20311         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20312         contain #include statements.
20313         * lib/time.in.h: Likewise.
20314
20315 2010-03-20  Bruno Haible  <bruno@clisp.org>
20316
20317         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20318         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20319         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20320         Reported by John W. Eaton <jwe@gnu.org>.
20321
20322 2010-03-20  Bruno Haible  <bruno@clisp.org>
20323
20324         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20325         Reported by Jim Meyering.
20326
20327 2010-03-20  Bruno Haible  <bruno@clisp.org>
20328
20329         pipe: Set errno upon failure.
20330         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20331         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20332         errno value in error message.
20333
20334 2010-03-20  Bruno Haible  <bruno@clisp.org>
20335             Jim Meyering  <meyering@redhat.com>
20336
20337         lchown: Avoid "unused variable" warning.
20338         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20339
20340 2010-03-20  Bruno Haible  <bruno@clisp.org>
20341
20342         Work around unlink() bug on MacOS X 10.5.6.
20343         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20344         attempting to unlink a parent directory.
20345         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20346         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20347         activate for the replacement function.
20348         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20349
20350 2010-03-20  Bruno Haible  <bruno@clisp.org>
20351
20352         Fix link errors on Solaris 8.
20353         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20354         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20355
20356 2010-03-19  Jim Meyering  <meyering@redhat.com>
20357
20358         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20359         The _LIBC implementation of build_range_exp correctly honors the
20360         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20361         However, the non-_LIBC implementation would ignore that syntax-bit
20362         flag and return REG_ERANGE unconditionally.
20363         This change makes it honor that flag.
20364         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20365         Make two pointer parameters "const".
20366         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20367         (parse_bracket_exp): Update caller.
20368
20369         regex.m4: correct the reversed range endpoint ([b-a]) test
20370         * m4/regex.m4: When requiring that [b-a] evoke failure,
20371         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20372         test pass once again for x86-based systems.
20373
20374 2010-03-19  Bruno Haible  <bruno@clisp.org>
20375
20376         scandir: Fix link error on Solaris 8.
20377         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20378         macros.
20379
20380 2010-03-19  Bruno Haible  <bruno@clisp.org>
20381
20382         getusershell: Fix documentation.
20383         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20384         module.
20385         * doc/glibc-functions/setusershell.texi: Likewise.
20386
20387         getusershell: Provide declaration, missing on Solaris 9.
20388         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20389         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20390         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20391         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20393         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20394         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20395         HAVE_GETUSERSHELL.
20396         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20397
20398 2010-03-19  Bruno Haible  <bruno@clisp.org>
20399
20400         wctype: Provide iswblank function.
20401         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20402         exists and is fine.
20403         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20404         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20405         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20406         * doc/posix-functions/iswblank.texi: Update.
20407
20408 2010-03-19  Bruno Haible  <bruno@clisp.org>
20409
20410         Tests of module 'pty' in C++ mode.
20411         * modules/pty-tests: New file.
20412         * tests/test-pty-c++.cc: New file.
20413         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20414
20415 2010-03-19  Eric Blake  <eblake@redhat.com>
20416
20417         logb: fix documentation
20418         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20419         1.5 declaration bug.
20420
20421         forkpty, openpty: prefer glibc's const-safe prototype
20422         * lib/forkpty.c (rpl_forkpty): New file.
20423         * lib/openpty.c (rpl_openpty): Likewise.
20424         * modules/forkpty (Files): Distribute it.
20425         * modules/openpty (Files): Likewise.
20426         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20427         check...
20428         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20429         replacement for for non-const BSD signature.
20430         * modules/pty (Makefile.am): Substitute witnesses.
20431         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20432         * tests/test-forkpty.c: Update signature check.
20433         * tests/test-openpty.c: Likewise.
20434         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20435         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20436
20437         forkpty, openpty: split functions into new modules
20438         * modules/pty (Makefile.am): Substitute new witnesses.
20439         (Libraries): Move library detection...
20440         * modules/forkpty: ...into new module.
20441         * modules/openpty: Another new module.
20442         * modules/pty-tests: Rename and split...
20443         * modules/forkpty-tests: ...to this...
20444         * modules/openpty-tests: ...and this.
20445         * tests/test-pty.c: Rename and split...
20446         * tests/test-forkpty.c: ...to this...
20447         * tests/test-openpty.c: ...and this.
20448         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20449         (gl_PTY): Split library searching...
20450         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20451         (gl_FORKPTY, gl_OPENPTY): New macros.
20452         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20453         * NEWS: Mention the split.
20454         * MODULES.html.sh (Misc): Document the modules.
20455         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20456         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20457
20458         pty: improve replacement header
20459         * lib/pty.in.h: New file.
20460         * modules/pty (Files): Ship it.
20461         (Makefile.am): Always build replacement.
20462         * m4/pty.m4: Rename...
20463         * m4/pty_h.m4: ...to this.
20464         (gl_PTY): Modernize setting of witness macros; update check of
20465         forkpty to take proper advantage of cache.
20466         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20467
20468         getopt: avoid compiler warning
20469         * lib/getopt.c (attribute_hidden): Remove unused macro.
20470
20471 2010-03-18  Bruno Haible  <bruno@clisp.org>
20472
20473         Fix link errors on Solaris 8.
20474         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
20475         * modules/search-tests (test_search_c___LDADD): Likewise.
20476         * modules/signal-tests (test_signal_c___LDADD): Likewise.
20477         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
20478         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
20479         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
20480         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
20481         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
20482         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
20483
20484 2010-03-18  Bruno Haible  <bruno@clisp.org>
20485
20486         Fix bug introduced on 2010-03-14.
20487         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
20488         (gl_SPAWN_H): Require it.
20489         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
20490         Reported by Simon Josefsson.
20491
20492 2010-03-18  Bruno Haible  <bruno@clisp.org>
20493
20494         Fix typo introduced on 2009-12-31.
20495         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
20496         posix_spawn_file_actions_adddup2.
20497
20498 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
20499         and Eric Blake  <eblake@redhat.com>
20500
20501         test-vc-list-files-git: make more robust
20502         * tests/test-vc-list-files-git.sh: Unset problematic environment
20503         variables.  Chain commands together.
20504
20505 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
20506
20507         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
20508         `AC_CHECK_DECL' invocation.
20509
20510 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
20511
20512         * lib/inttostr.c (inttostr): Make sure the invocation of verify
20513         appears before executable statements. Suggested by Petr Sumbera
20514         <Petr.Sumbera@Sun.COM>.
20515
20516 2010-03-14  Bruno Haible  <bruno@clisp.org>
20517
20518         * tests/test-flock.c (test_exclusive): Comment out a test that causes
20519         portability problems. Instead use a simpler test.
20520         (main): Check that invalid arguments are rejected only on Linux.
20521
20522 2010-03-14  Bruno Haible  <bruno@clisp.org>
20523
20524         Fix bug introduced on 2009-12-31.
20525         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20526         gl_PREREQ_SYS_H_WINSOCK2 always.
20527         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
20528         SYS_SOCKET_H variable.
20529         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
20530         Update comments.
20531         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
20532         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20533         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20534         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20535         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
20536
20537 2010-03-14  Bruno Haible  <bruno@clisp.org>
20538
20539         Fix values returned by sinl, cosl.
20540         * lib/trigl.h: Add specification comments.
20541         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
20542         that combines the values from the precomputed table with the values of
20543         the Chebyshev polynomials.
20544
20545 2010-03-14  Bruno Haible  <bruno@clisp.org>
20546
20547         Fix compilation error when modules 'posix_spawn[p]' are not used.
20548         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
20549         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
20550
20551 2010-03-14  Bruno Haible  <bruno@clisp.org>
20552
20553         Fix compilation error on mingw when module 'time_r' is not used.
20554         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
20555         is 1.
20556         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
20557         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20558         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
20559         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
20560
20561 2010-03-14  Bruno Haible  <bruno@clisp.org>
20562
20563         Fix compilation error with Sun C.
20564         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20565         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20566         instead of GCC specific ULONG_LONG_MAX.
20567         * lib/xstrtoll.c: Likewise.
20568         * lib/xstrtoull.c: Likewise.
20569
20570 2010-03-13  Bruno Haible  <bruno@clisp.org>
20571
20572         Allow the user to disable C++ code and tests.
20573         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20574         (gl_PROG_ANSI_CXX): Require it.
20575
20576 2010-03-13  Bruno Haible  <bruno@clisp.org>
20577
20578         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20579         cases.
20580
20581 2010-03-13  Bruno Haible  <bruno@clisp.org>
20582
20583         Test that gnulib does not break the standard C++ headers.
20584         * tests/test-locale-c++2.cc: New file.
20585         * modules/locale-tests (Files): Add it.
20586         (Makefile.am): Compile it for test-locale-c++.
20587         * tests/test-math-c++2.cc: New file.
20588         * modules/math-tests (Files): Add it.
20589         (Makefile.am): Compile it for test-math-c++.
20590         * tests/test-signal-c++2.cc: New file.
20591         * modules/signal-tests (Files): Add it.
20592         (Makefile.am): Compile it for test-signal-c++.
20593         * tests/test-stdio-c++2.cc: New file.
20594         * modules/stdio-tests (Files): Add it.
20595         (Makefile.am): Compile it for test-stdio-c++.
20596         * tests/test-stdlib-c++2.cc: New file.
20597         * modules/stdlib-tests (Files): Add it.
20598         (Makefile.am): Compile it for test-stdlib-c++.
20599         * tests/test-string-c++2.cc: New file.
20600         * modules/string-tests (Files): Add it.
20601         (Makefile.am): Compile it for test-string-c++.
20602         * tests/test-time-c++2.cc: New file.
20603         * modules/time-tests (Files): Add it.
20604         (Makefile.am): Compile it for test-time-c++.
20605         Reported by John W. Eaton <jwe@gnu.org>.
20606
20607 2010-03-13  Bruno Haible  <bruno@clisp.org>
20608
20609         * gnulib-tool (func_usage): Clarify which options are available for
20610         --create-testdir and --create-megatestdir.
20611
20612 2010-03-13  Bruno Haible  <bruno@clisp.org>
20613
20614         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20615         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20616         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20617         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20618         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20619         when appropriate.
20620         Reported by Jim Meyering.
20621
20622 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20623
20624         * gnulib-tool (func_import): Explain origin of code.
20625
20626 2010-03-12  Bruno Haible  <bruno@clisp.org>
20627
20628         Fix problem with automake's definition of CXXLINK.
20629         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20630         Reported by Simon Josefsson and Ludovic Courtès.
20631
20632 2010-03-12  Bruno Haible  <bruno@clisp.org>
20633
20634         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20635         stable releases.
20636
20637 2010-03-11  Bruno Haible  <bruno@clisp.org>
20638
20639         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
20640         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
20641         whether the system provides one variant or multiple variants of the
20642         function.
20643         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
20644         C++ compilers.
20645         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
20646         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
20647         Reported by Jim Meyering.
20648
20649 2010-03-09  Simon Josefsson  <simon@josefsson.org>
20650
20651         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
20652
20653 2010-03-08  Bruno Haible  <bruno@clisp.org>
20654
20655         gnulib-tool: Add support for --libtool in --create-testdir.
20656         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
20657         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
20658
20659 2010-03-08  Eric Blake  <eblake@redhat.com>
20660
20661         gnulib-tool.texi: mention possibility of git submodule
20662         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
20663         submodules.
20664         * doc/.gitignore: Ignore another generated file.
20665
20666 2010-03-08  Karl Berry  <karl@gnu.org>
20667
20668         * doc/gnulib-tool.texi (VCS Issues): Mention third option
20669         of committing gnulib files while skipping others.
20670
20671 2010-03-07  Bruno Haible  <bruno@clisp.org>
20672
20673         Tests of module 'wctype' in C++ mode.
20674         * tests/test-wctype-c++.cc: New file.
20675         * modules/wctype-tests (Files): Add it and tests/signature.h.
20676         (Depends-on): Add ansi-c++-opt.
20677         (Makefile.am): Arrange to compile and run test-wctype-c++.
20678
20679         Tests of module 'wchar' in C++ mode.
20680         * tests/test-wchar-c++.cc: New file.
20681         * modules/wchar-tests (Files): Add it and tests/signature.h.
20682         (Depends-on): Add ansi-c++-opt.
20683         (Makefile.am): Arrange to compile and run test-wchar-c++.
20684         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
20685         gl_MODULE_INDICATOR.
20686
20687         Tests of module 'unistd' in C++ mode.
20688         * tests/test-unistd-c++.cc: New file.
20689         * modules/unistd-tests (Files): Add it and tests/signature.h.
20690         (Depends-on): Add ansi-c++-opt.
20691         (Makefile.am): Arrange to compile and run test-unistd-c++.
20692         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
20693         gl_MODULE_INDICATOR.
20694
20695         Tests of module 'time' in C++ mode.
20696         * tests/test-time-c++.cc: New file.
20697         * modules/time-tests (Files): Add it and tests/signature.h.
20698         (Depends-on): Add ansi-c++-opt.
20699         (Makefile.am): Arrange to compile and run test-time-c++.
20700         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20701
20702         Tests of module 'sys_time' in C++ mode.
20703         * tests/test-sys_time-c++.cc: New file.
20704         * modules/sys_time-tests (Files): Add it and tests/signature.h.
20705         (Depends-on): Add ansi-c++-opt.
20706         (Makefile.am): Arrange to compile and run test-sys_time-c++.
20707         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
20708         gl_MODULE_INDICATOR.
20709
20710         Tests of module 'sys_stat' in C++ mode.
20711         * tests/test-sys_stat-c++.cc: New file.
20712         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
20713         (Depends-on): Add ansi-c++-opt.
20714         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
20715         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
20716         gl_MODULE_INDICATOR.
20717
20718         Tests of module 'sys_socket' in C++ mode.
20719         * tests/test-sys_socket-c++.cc: New file.
20720         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
20721         (Depends-on): Add ansi-c++-opt.
20722         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
20723         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
20724         gl_MODULE_INDICATOR.
20725
20726         Tests of module 'sys_select' in C++ mode.
20727         * tests/test-sys_select-c++.cc: New file.
20728         * modules/sys_select-tests (Files): Add it and tests/signature.h.
20729         (Depends-on): Add ansi-c++-opt.
20730         (Makefile.am): Arrange to compile and run test-sys_select-c++.
20731         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
20732         gl_MODULE_INDICATOR.
20733
20734         Tests of module 'sys_ioctl' in C++ mode.
20735         * tests/test-sys_ioctl-c++.cc: New file.
20736         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
20737         (Depends-on): Add ansi-c++-opt.
20738         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
20739         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
20740         gl_MODULE_INDICATOR.
20741
20742         Tests of module 'string' in C++ mode.
20743         * tests/test-string-c++.cc: New file.
20744         * modules/string-tests (Files): Add it and tests/signature.h.
20745         (Depends-on): Add ansi-c++-opt.
20746         (Makefile.am): Arrange to compile and run test-string-c++.
20747         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
20748         gl_MODULE_INDICATOR.
20749
20750         Tests of module 'stdlib' in C++ mode.
20751         * tests/test-stdlib-c++.cc: New file.
20752         * modules/stdlib-tests (Files): Add it and tests/signature.h.
20753         (Depends-on): Add ansi-c++-opt.
20754         (Makefile.am): Arrange to compile and run test-stdlib-c++.
20755         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
20756         gl_MODULE_INDICATOR.
20757
20758         Tests of module 'stdio' in C++ mode.
20759         * tests/test-stdio-c++.cc: New file.
20760         * modules/stdio-tests (Files): Add it and tests/signature.h.
20761         (Depends-on): Add ansi-c++-opt.
20762         (Makefile.am): Arrange to compile and run test-stdio-c++.
20763         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
20764         gl_MODULE_INDICATOR.
20765
20766         Tests of module 'spawn' in C++ mode.
20767         * tests/test-spawn-c++.cc: New file.
20768         * modules/spawn-tests (Files): Add it and tests/signature.h.
20769         (Depends-on): Add ansi-c++-opt.
20770         (Makefile.am): Arrange to compile and run test-spawn-c++.
20771         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
20772         gl_MODULE_INDICATOR.
20773
20774         Tests of module 'signal' in C++ mode.
20775         * tests/test-signal-c++.cc: New file.
20776         * modules/signal-tests (Files): Add it and tests/signature.h.
20777         (Depends-on): Add ansi-c++-opt.
20778         (Makefile.am): Arrange to compile and run test-signal-c++.
20779         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
20780         gl_MODULE_INDICATOR.
20781
20782         Tests of module 'search' in C++ mode.
20783         * tests/test-search-c++.cc: New file.
20784         * modules/search-tests (Files): Add it and tests/signature.h.
20785         (Depends-on): Add ansi-c++-opt.
20786         (Makefile.am): Arrange to compile and run test-search-c++.
20787         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
20788         gl_MODULE_INDICATOR.
20789
20790         Tests of module 'math' in C++ mode.
20791         * tests/test-math-c++.cc: New file.
20792         * modules/math-tests (Files): Add it and tests/signature.h.
20793         (Depends-on): Add ansi-c++-opt.
20794         (Makefile.am): Arrange to compile and run test-math-c++.
20795         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20796
20797         Tests of module 'locale' in C++ mode.
20798         * tests/test-locale-c++.cc: New file.
20799         * modules/locale-tests (Files): Add it and tests/signature.h.
20800         (Depends-on): Add ansi-c++-opt.
20801         (Makefile.am): Arrange to compile and run test-locale-c++.
20802         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
20803         gl_MODULE_INDICATOR.
20804
20805         Tests of module 'langinfo' in C++ mode.
20806         * tests/test-langinfo-c++.cc: New file.
20807         * modules/langinfo-tests (Files): Add it and tests/signature.h.
20808         (Depends-on): Add ansi-c++-opt.
20809         (Makefile.am): Arrange to compile and run test-langinfo-c++.
20810         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
20811         gl_MODULE_INDICATOR.
20812
20813         Tests of module 'iconv-h' in C++ mode.
20814         * tests/test-iconv-h-c++.cc: New file.
20815         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
20816         (Depends-on): Add ansi-c++-opt.
20817         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
20818
20819         Tests of module 'glob' in C++ mode.
20820         * tests/test-glob-c++.cc: New file.
20821         * modules/glob-tests (Files): Add it.
20822         (Depends-on): Add ansi-c++-opt.
20823         (Makefile.am): Arrange to compile and run test-glob-c++.
20824
20825         Tests of module 'fcntl-h' in C++ mode.
20826         * tests/test-fcntl-h-c++.cc: New file.
20827         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
20828         (Depends-on): Add ansi-c++-opt.
20829         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
20830         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
20831         gl_MODULE_INDICATOR.
20832
20833         Tests of module 'dirent' in C++ mode.
20834         * tests/test-dirent-c++.cc: New file.
20835         * modules/dirent-tests (Files): Add it and tests/signature.h.
20836         (Depends-on): Add ansi-c++-opt.
20837         (Makefile.am): Arrange to compile and run test-dirent-c++.
20838         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20839         gl_MODULE_INDICATOR.
20840
20841         New module 'ansi-c++-opt'.
20842         * modules/ansi-c++-opt: New file.
20843         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
20844
20845         Document C++ namespace mode.
20846         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
20847
20848         wctype: Avoid #define replacements in C++ mode.
20849         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
20850         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
20851         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
20852         In C++, define a namespaced alias symbol.
20853         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
20854         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
20855         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
20856         rule.
20857
20858         wchar: Avoid #define replacements in C++ mode.
20859         * lib/wchar.in.h: Include c++defs.h.
20860         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
20861         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
20862         symbol.
20863         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
20864         * modules/wchar (Depends-on): Add c++defs.
20865         (Makefile.am): Update wchar.h rule.
20866
20867         unistd: Avoid #define replacements in C++ mode.
20868         * lib/unistd.in.h: Include c++defs.h.
20869         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
20870         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
20871         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
20872         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
20873         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
20874         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
20875         symbol.
20876         (environ): Update.
20877         * modules/unistd (Depends-on): Add c++defs.
20878         (Makefile.am): Update unistd.h rule.
20879
20880         time: Avoid #define replacements in C++ mode.
20881         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
20882         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
20883         define a namespaced alias symbol.
20884         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
20885         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
20886         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
20887         * modules/time (Depends-on): Add c++defs, warn-on-use.
20888         (Makefile.am): Update time.h rule.
20889         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20890         * modules/nanosleep (configure.ac): Likewise.
20891         * modules/strptime (configure.ac): Likewise.
20892         * modules/timegm (configure.ac): Likewise.
20893
20894         sys_time: Avoid #define replacements in C++ mode.
20895         * lib/sys_time.in.h: Include c++defs.h.
20896         (gettimeofday): In C++, define a namespaced alias symbol.
20897         * modules/sys_time (Depends-on): Add c++defs.
20898         (Makefile.am): Update sys/time.h rule.
20899
20900         sys_stat: Avoid #define replacements in C++ mode.
20901         * lib/sys_stat.in.h: Include c++defs.h.
20902         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
20903         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
20904         namespaced alias symbol.
20905         In C++, define a namespaced alias symbol.
20906         * modules/sys_stat (Depends-on): Add c++defs.
20907         (Makefile.am): Update sys/stat.h rule.
20908
20909         sys_socket: Avoid #define replacements in C++ mode.
20910         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
20911         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
20912         definitions also when the system has a <sys/socket.h>.
20913         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20914         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
20915         In C++, define a namespaced alias symbol.
20916         * modules/sys_socket (Depends-on): Add c++defs.
20917         (Makefile.am): Update sys/socket.h rule.
20918
20919         sys_select: Avoid #define replacements in C++ mode.
20920         * lib/sys_select.in.h: Include c++defs.h. Enable the function
20921         definitions also when the system has a <sys/select.h>.
20922         (select): In C++, define a namespaced alias symbol.
20923         * modules/sys_select (Depends-on): Add c++defs.
20924         (Makefile.am): Update sys/select.h rule.
20925
20926         sys_ioctl: Avoid #define replacements in C++ mode.
20927         * lib/sys_ioctl.in.h: Include c++defs.h.
20928         (ioctl): In C++, define a namespaced alias symbol.
20929         * modules/sys_ioctl (Depends-on): Add c++defs.
20930         (Makefile.am): Update sys/ioctl.h rule.
20931
20932         string: Avoid #define replacements in C++ mode.
20933         * lib/string.in.h: Include c++defs.h.
20934         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
20935         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20936         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20937         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
20938         strsignal, strverscmp): In C++, define a namespaced alias symbol.
20939         * modules/string (Depends-on): Add c++defs.
20940         (Makefile.am): Update string.h rule.
20941
20942         stdlib: Avoid #define replacements in C++ mode.
20943         * lib/stdlib.in.h: Include c++defs.h.
20944         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
20945         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
20946         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
20947         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
20948         symbol.
20949         * modules/stdlib (Depends-on): Add c++defs.
20950         (Makefile.am): Update stdlib.h rule.
20951
20952         stdio: Avoid #define replacements in C++ mode.
20953         * lib/stdio.in.h: Include c++defs.h.
20954         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
20955         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
20956         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
20957         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
20958         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
20959         namespaced alias symbol.
20960         * modules/stdio (Depends-on): Add c++defs.
20961         (Makefile.am): Update stdio.h rule.
20962
20963         spawn: Avoid #define replacements in C++ mode.
20964         * lib/spawn.in.h: Include c++defs.h.
20965         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20966         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20967         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20968         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20969         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20970         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20971         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20972         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20973         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20974         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20975         In C++, define a namespaced alias symbol.
20976         * modules/spawn (Depends-on): Add c++defs.
20977         (Makefile.am): Update spawn.h rule.
20978
20979         signal: Avoid #define replacements in C++ mode.
20980         * lib/signal.in.h: Include c++defs.h.
20981         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20982         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
20983         namespaced alias symbol.
20984         * modules/signal (Depends-on): Add c++defs.
20985         (Makefile.am): Update signal.h rule.
20986
20987         search: Avoid #define replacements in C++ mode.
20988         * lib/search.in.h: Include c++defs.h.
20989         (_gl_search_compar_fn, _gl_search_action_fn): New types.
20990         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
20991         symbol.
20992         * modules/search (Depends-on): Add c++defs.
20993         (Makefile.am): Update search.h rule.
20994
20995         math: Avoid #define replacements in C++ mode.
20996         * lib/math.in.h: Include c++defs.h.
20997         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
20998         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
20999         trunc, truncl): In C++, define a namespaced alias symbol.
21000         * modules/math (Depends-on): Add c++defs.
21001         (Makefile.am): Update math.h rule.
21002
21003         locale: Avoid #define replacements in C++ mode.
21004         * lib/locale.in.h: Include c++defs.h.
21005         (duplocale): In C++, define a namespaced alias symbol.
21006         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
21007         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
21008         * modules/locale (Depends-on): Add c++defs.
21009         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
21010
21011         langinfo: Avoid #define replacements in C++ mode.
21012         * lib/langinfo.in.h: Include c++defs.h.
21013         (nl_langinfo): In C++, define a namespaced alias symbol.
21014         * modules/langinfo (Depends-on): Add c++defs.
21015         (Makefile.am): Update langinfo.h rule.
21016
21017         iconv-h: Avoid #define replacements in C++ mode.
21018         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
21019         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
21020         symbol.
21021         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21022         whenever iconv is present.
21023         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
21024         (Makefile.am): Update iconv.h rule.
21025
21026         glob: Avoid #define replacements in C++ mode.
21027         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
21028         (_gl_glob_errfunc_fn): New type.
21029         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
21030         symbol.
21031         * modules/glob (Depends-on): Add c++defs, warn-on-use.
21032         (Makefile.am): Update glob.h rule.
21033
21034         fcntl-h: Avoid #define replacements in C++ mode.
21035         * lib/fcntl.in.h: Include c++defs.h.
21036         (fcntl, open, openat): In C++, define a namespaced alias symbol.
21037         * modules/fcntl-h (Depends-on): Add c++defs.
21038         (Makefile.am): Update fcntl.h rule.
21039
21040         dirent: Avoid #define replacements in C++ mode.
21041         * lib/dirent.in.h: Include c++defs.h.
21042         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
21043         namespaced alias symbol.
21044         (dirfd): Update declaration.
21045         * modules/dirent (Depends-on): Add c++defs.
21046         (Makefile.am): Update dirent.h rule.
21047
21048         ctype: Make it usable in C++ code.
21049         * lib/ctype.in.h: Include c++defs.h.
21050         (isblank): Declare as extern "C".
21051         * modules/ctype (Depends-on): Add c++defs.
21052         (Makefile.am): Update ctype.h rule.
21053
21054         New module 'c++defs'.
21055         * modules/c++defs: New file.
21056         * build-aux/c++defs.h: New file.
21057         Reported by John W. Eaton <jwe@gnu.org>.
21058
21059 2010-03-07  Bruno Haible  <bruno@clisp.org>
21060
21061         logb: Provide missing declaration for Cygwin.
21062         * lib/math.in.h (logb): New declaration.
21063         * m4/logb.m4: New file.
21064         * modules/logb (Files): Add m4/logb.m4.
21065         (Depends-on): Add math.
21066         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
21067         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
21068         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
21069         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
21070         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
21071
21072 2010-03-07  Bruno Haible  <bruno@clisp.org>
21073
21074         Fix test-cond link error.
21075         * tests/test-cond.c: Include <stdio.h>.
21076
21077 2010-03-07  Bruno Haible  <bruno@clisp.org>
21078
21079         Fix test-dirent-safer link error.
21080         * modules/dirent-safer-tests (Makefile.am): Define
21081         test_dirent_safer_LDADD.
21082
21083 2010-03-07  Bruno Haible  <bruno@clisp.org>
21084
21085         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
21086         among default module list.
21087
21088 2010-03-07  Bruno Haible  <bruno@clisp.org>
21089
21090         Fix link error on platforms with GNU libiconv.
21091         * modules/unistr/u8-strcoll-tests (Makefile): Define
21092         test_u8_strcoll_LDADD.
21093         * modules/unistr/u16-strcoll-tests (Makefile): Define
21094         test_u16_strcoll_LDADD.
21095         * modules/unistr/u32-strcoll-tests (Makefile): Define
21096         test_u32_strcoll_LDADD.
21097
21098 2010-03-07  Bruno Haible  <bruno@clisp.org>
21099
21100         Use POSIX declarations for socket functions.
21101         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
21102         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
21103         rpl_sendto): Change declaration to match POSIX.
21104         * lib/connect.c (rpl_connect): Likewise.
21105         * lib/accept.c (rpl_accept): Likewise.
21106         * lib/bind.c (rpl_bind): Likewise.
21107         * lib/getpeername.c (rpl_getpeername): Likewise.
21108         * lib/getsockname.c (rpl_getsockname): Likewise.
21109         * lib/recv.c (rpl_recv): Likewise.
21110         * lib/send.c (rpl_send): Likewise.
21111         * lib/recvfrom.c (rpl_recvfrom): Likewise.
21112         * lib/sendto.c (rpl_sendto): Likewise.
21113
21114 2010-03-06  Bruno Haible  <bruno@clisp.org>
21115
21116         Clarify access, euidaccess, faccessat.
21117         * doc/posix-functions/faccessat.texi: Mention security problem under
21118         "Other problems", not "Portability problems".
21119         * doc/posix-functions/access.texi: Likewise. Mention a related security
21120         problem.
21121         * doc/glibc-functions/euidaccess.texi: Mention security problems.
21122         * lib/euidaccess.c: Add comments about platforms.
21123         * lib/unistd.in.h (access, euidaccess): Add warnings.
21124
21125 2010-03-07  Bruno Haible  <bruno@clisp.org>
21126
21127         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
21128         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
21129         (POSIX_SPAWN_SETSCHEDULER): Likewise.
21130         (POSIX_SPAWN_USEVFORK): Define in a way that works when
21131         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21132         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
21133         declare when POSIX_SPAWN_SETSCHEDULER is zero.
21134         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
21135         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
21136         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
21137         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
21138         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
21139         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
21140         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
21141         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
21142         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
21143         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
21144         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
21145         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
21146         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
21147         Likewise.
21148         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
21149         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
21150         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
21151         Likewise.
21152         * tests/test-spawn.c (main): Make it work when
21153         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21154
21155 2010-03-07  Bruno Haible  <bruno@clisp.org>
21156
21157         Fix incorrect Makefile.am generation in German locale.
21158         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21159         Execute sed command with character range in C locale.
21160
21161 2010-03-06  Bruno Haible  <bruno@clisp.org>
21162
21163         Tests for module 'iconv-h'.
21164         * modules/iconv-h-tests: New file.
21165         * tests/test-iconv-h.c: New file.
21166
21167         New module 'iconv-h'.
21168         * modules/iconv-h: New file.
21169         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
21170         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
21171         (configure.ac): Remove gl_ICONV_H.
21172         (Makefile.am): Remove rule for iconv.h.
21173
21174 2010-03-06  Bruno Haible  <bruno@clisp.org>
21175
21176         More consistent naming of *.m4 files.
21177         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
21178         * modules/wctype (Files): Update.
21179
21180         More consistent naming of *.m4 files.
21181         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
21182         * modules/wchar (Files): Update.
21183
21184 2010-03-06  Jim Meyering  <meyering@redhat.com>
21185
21186         euidaccess: relax license to LGPLv2+
21187         * modules/euidaccess (License): Relax to LGPLv2+.
21188
21189 2010-03-06  Bruno Haible  <bruno@clisp.org>
21190
21191         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
21192         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
21193         (Makefile.am): Augment lib_SOURCES instead.
21194
21195 2010-03-04  Jim Meyering  <meyering@redhat.com>
21196
21197         utime: remove obsolete module
21198         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
21199         unnecessary for years, and has been marked as obsolete for 10 months.
21200         * modules/utime: Remove file.
21201         * lib/utime.c: Remove file.
21202         * m4/utime.m4: Remove file.
21203         * m4/utimes-null.m4: Remove file.
21204         * doc/posix-functions/utime.texi (utime): Remove reference to
21205         the module.  Move the sole "fixed by gnulib" item into the
21206         "problems not fixed by Gnulib" list.
21207         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
21208
21209 2010-03-05  Simon Josefsson  <simon@josefsson.org>
21210
21211         * modules/exit (License): Relax license to LGPLv2+.
21212         (Status): Mark as obsolete.
21213         * NEWS: Mention deprecated 'exit' module.
21214         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
21215         of now obsolete 'exit'.
21216
21217 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21218
21219         fts-lgpl: remove unused module
21220         * modules/fts-lgpl: Remove.
21221         * MODULES.html.sh (func_all_modules): Adjust.
21222         * check-module (find_included_lib_files): Adjust.
21223         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
21224
21225 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
21226
21227         copy-acl: enhance Solaris ACL error handling
21228         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
21229         * lib/set-mode-acl.c (qset_acl): Likewise.
21230
21231 2010-03-02  Bruno Haible  <bruno@clisp.org>
21232
21233         spawn: Don't override the system defined values on FreeBSD 8.
21234         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
21235         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
21236         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
21237         if HAVE_POSIX_SPAWN is 1.
21238         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
21239
21240 2010-03-01  Bruno Haible  <bruno@clisp.org>
21241
21242         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
21243         regarding Automake.
21244
21245 2010-02-25  Bruno Haible  <bruno@clisp.org>
21246
21247         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
21248         * gnulib-tool: Define 'echo' as a function only before the ksh alias
21249         setting, not afterwards.
21250         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21251
21252 2010-02-24  Eric Blake  <eblake@redhat.com>
21253
21254         bootstrap, git-version-gen: use timestamp
21255         * build-aux/git-version-gen (scriptversion): Force UTC.
21256         * build-aux/bootstrap (scriptversion): New variable.
21257
21258         bootstrap: allow older git
21259         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21260         older than 1.6.4.  Requested by the libvirt project.
21261
21262 2010-02-23  Eric Blake  <eblake@redhat.com>
21263
21264         warn-on-use: work with old autoconf
21265         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21266         AS_VAR semantics of autoconf 2.60.
21267         Reported by Bruno Haible.
21268
21269         bootstrap: improve some comments
21270         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21271         clarification comments.
21272
21273         gettimeofday: provide correct function
21274         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21275         when replacement is declared, otherwise provide gettimeofday.
21276         Reported by Michael Goffioul.
21277
21278 2010-02-23  Jim Meyering  <meyering@redhat.com>
21279
21280         lib-ignore: relax license to "unlimited", not LGPLv2+
21281         * modules/lib-ignore (License): Relax to "unlimited".
21282
21283 2010-02-23  Jim Meyering  <meyering@redhat.com>
21284
21285         lib-ignore: relax license to LGPLv2+
21286         * modules/lib-ignore (License): Relax to LGPLv2+.
21287
21288 2010-02-22  Eric Blake  <eblake@redhat.com>
21289
21290         lseek: avoid bash 3.2 broken pipe bug
21291         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21292         warning from bash 3.2.
21293         Reported by Ben Pfaff, with analysis from Bruno Haible.
21294
21295         bootstrap: support non-FSF copyright holder
21296         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21297         bootstrap.conf override of COPYRIGHT_HOLDER.
21298         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21299
21300         bootstrap: interoperate with gettext 0.14.1
21301         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21302
21303         bootstrap: allow for alternate submodule location
21304         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21305         hardcoding submodule location.
21306         (gnulib_mk): Allow direct use of Makefile.am.
21307
21308         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21309         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21310         rather than reconfiguring where the submodule points.
21311
21312         gettimeofday: restore support for platforms that lack function
21313         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21314         replacement if function is missing.
21315         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21316         * modules/sys_time (Makefile.am): Substitute it.
21317         * lib/sys_time.in.h (gettimeofday): Check it.
21318         Reported by Michael Goffioul.
21319
21320 2010-02-21  Bruno Haible  <bruno@clisp.org>
21321
21322         * lib/stdio.in.h (obstack_printf): Fix typo.
21323
21324 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21325
21326         vc-list-files: use bzr ls's -R option
21327         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21328         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21329
21330 2010-02-21  Jim Meyering  <meyering@redhat.com>
21331
21332         init.sh: fix EXEEXT shims to work also for names like test-prog
21333         * tests/init.sh: Re-exec a better shell, when needed.
21334         If the current shell lacks support for posix $(...), an init.sh-using
21335         test will now try to find a shell that supports that.  If EXEEXT is
21336         nonempty, we also require support for hyphen-in-alias-name and shell
21337         substitutions like ${var#glob}.  Failure to find such a shell results
21338         in a skipped test.
21339
21340 2010-02-21  Bruno Haible  <bruno@clisp.org>
21341
21342         Really work around around "broken pipe" error message from bash 3.2.
21343         * gnulib-tool (func_reset_sigpipe): Remove function.
21344         (echo): In bash 3.2, define to a function that uses printf.
21345         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21346
21347 2010-02-20  Bruno Haible  <bruno@clisp.org>
21348
21349         Restore support for automake 1.9.6 with autoconf 2.61.
21350         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21351         Reported by James Youngman <jay@gnu.org>.
21352
21353 2010-02-20  Bruno Haible  <bruno@clisp.org>
21354
21355         Improve *printf warning condition.
21356         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21357         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21358         and the function is overridden due to SIGPIPE emulation.
21359
21360 2010-02-20  Bruno Haible  <bruno@clisp.org>
21361
21362         * lib/stdio.in.h: Tweak comments.
21363
21364 2010-02-19  Bruno Haible  <bruno@clisp.org>
21365
21366         Make it easier to find modules. New gnulib-tool option '--find'.
21367         * gnulib-tool: New option --find.
21368         (func_usage): Document it.
21369         (func_sanitize_modulelist): New function, extracted from
21370         func_all_modules.
21371         (func_all_modules): Invoke it.
21372         * doc/gnulib-tool.texi (Which modules?): New node.
21373
21374 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21375
21376         * lib/sys_select.in.h: Provide select replacement even if
21377         sys/select.h exists on a system, for Interix.
21378
21379 2010-02-18  Jim Meyering  <meyering@redhat.com>
21380
21381         init.sh: don't use $(...) just yet
21382         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21383         to accommodate e.g., Solaris' /bin/sh.
21384
21385 2010-02-17  Bruno Haible  <bruno@clisp.org>
21386
21387         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21388         Reported by Ludovic Courtès <ludo@gnu.org>.
21389
21390 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21391
21392         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21393         linking with -lintl.
21394
21395 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21396
21397         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21398         if not provided by the system's netdb.h.  Reported by
21399         ludo@gnu.org (Ludovic Courtès).
21400
21401 2010-02-15  Jim Meyering  <meyering@redhat.com>
21402
21403         init.sh: improve portability and efficiency
21404         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21405         "dummy" in a for loop.
21406         Use '!', not '^' to select the complement of a character set used
21407         in a "case" statement.
21408         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21409         Suggestions from Eric Blake.
21410
21411         init.sh: automatically accommodate programs with the .exe suffix
21412         Automatically arrange for an invocation of "prog" to execute the
21413         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21414         may use the simpler "prog", yet still work when built on a system
21415         that requires specifying the added suffix.
21416         Do this by constructing a function named "prog" that invokes
21417         "prog.exe" for each .exe file in selected directories.
21418         * tests/init.sh (find_exe_basenames_): New function.
21419         (create_exe_shim_functions_): New function.
21420         (path_prepend_): Use it.
21421
21422         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21423         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21424         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21425
21426 2010-02-14  Jim Meyering  <meyering@redhat.com>
21427
21428         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21429         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21430         (sc_prohibit_hash_pjw_without_use): New rule.
21431
21432         maint.mk: allow the default upload destination dir to be overridden
21433         * top/maint.mk (upload_dest_dir_): Define with a default that
21434         preserves the status quo.
21435         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21436         Reported by Peter Simons.
21437
21438         maint.mk: prohibit inclusion of "hash.h" without_use
21439         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21440
21441 2010-02-10  Jim Meyering  <meyering@redhat.com>
21442
21443         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21444         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21445
21446 2010-02-09  Eric Blake  <ebb9@byu.net>
21447         and Bruno Haible  <bruno@clisp.org>
21448
21449         obstack-printf-posix: ensure declaration
21450         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21451         extracted from gl_FUNC_OBSTACK_PRINTF.
21452         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21453         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21454         Likewise.
21455         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21456         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21457         0.
21458
21459 2010-02-08  Bruno Haible  <bruno@clisp.org>
21460
21461         gnulib-tool: Fix typo in 2010-02-07 commit.
21462         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21463         Reported by Eric Blake.
21464
21465 2010-02-07  Bruno Haible  <bruno@clisp.org>
21466
21467         gnulib-tool: Fix up caching patches.
21468         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21469         option --no-cache. Use associative arrays when supported by the shell.
21470         (sed_comments): New variable.
21471         (modcache): Renamed from do_cache.
21472         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
21473         abbreviate unnecessarily.
21474         (have_associative): New variable.
21475         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
21476         way also for ksh and zsh.
21477         (func_init_sed_convert_to_cache_statements): New function, extracted
21478         from func_cache_lookup_module. Add support for associative arrays.
21479         Don't set the c_MODULE_cached variable here. Ignore all lines before
21480         the first field header. Remove only the final newline, not all trailing
21481         newlines. Support empty fields correctly. Limit the use of 'eval' to
21482         assignments.
21483         (func_get_description, func_get_status, func_get_notice,
21484         func_get_applicability, func_get_filelist, func_get_dependencies,
21485         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
21486         func_get_automake_snippet, func_get_include_directive,
21487         func_get_link_directive, func_get_license, func_get_maintainer):
21488         Update documentation. List the unoptimized code first. Add support for
21489         associative arrays. Limit the use of 'eval' to assignments.
21490         (func_get_applicability): Undo stylistic pessimisations.
21491         (func_get_automake_snippet, func_get_include_directive): Reduce code
21492         duplication.
21493         (func_modules_transitive_closure, func_modules_add_dummy,
21494         func_modules_notice, func_modules_to_filelist, func_add_file,
21495         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
21496         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
21497         func_create_testdir, func_create_megatestdir): Update documentation.
21498
21499 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21500
21501         * gnulib-tool (func_cache_lookup_module): Store the module name
21502         belonging to the cache variable; error out if two different
21503         module names map to the same cache variable name.
21504
21505 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21506
21507         gnulib-tool: Make caching optional.
21508         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
21509         Update matching short versions of --no-changelog.
21510         (func_usage): Update.
21511         (sed_extract_cache_prog): Renamed from ...
21512         (sed_extract_prog): ... this; revert to old extraction script.
21513         (func_get_description, func_get_status)
21514         (func_get_notice, func_get_applicability, func_get_filelist)
21515         (func_get_dependencies, func_get_autoconf_early_snippet)
21516         (func_get_autoconf_snippet, func_get_automake_snippet)
21517         (func_get_include_directive, func_get_link_directive)
21518         (func_get_license, func_get_maintainer): If $do_cache is false,
21519         use old, non-caching extraction scripts.
21520         Suggestion by Bruno Haible.
21521
21522 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21523
21524         gnulib-tool: cache module metainformation.
21525         * gnulib-tool (sed_extract_prog): Match newline before each
21526         header, and rewrite header to a shell variable suffix.
21527         (func_cache_var, func_cache_lookup_module): New functions,
21528         to turn a module name into a cache variable prefix, and to
21529         look up and cache module metainformation.
21530         (func_get_description, func_get_status)
21531         (func_get_notice, func_get_applicability, func_get_filelist)
21532         (func_get_dependencies, func_get_autoconf_early_snippet)
21533         (func_get_autoconf_snippet, func_get_automake_snippet)
21534         (func_get_include_directive, func_get_link_directive)
21535         (func_get_license, func_get_maintainer): Use
21536         func_cache_lookup_module.
21537
21538 2010-02-07  Bruno Haible  <bruno@clisp.org>
21539
21540         fnctl: Fix missing dependency.
21541         * modules/fcntl (Depends-on): Add getdtablesize.
21542         Reported by John W. Eaton <jwe@gnu.org>.
21543
21544 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21545
21546         Argp: fix recognition of short alias options.
21547
21548         * lib/argp-parse.c (convert_options): Fix improper use of
21549         `|' between character values.
21550         * tests/test-argp.c (group1_option): New alias option
21551         --read (-r).
21552         (group1_parser): Special handling for 'r'.
21553         (test15): New test case.
21554         (test_fun): Add test15.
21555         * tests/test-argp-2.sh: Update expected --help and --usage
21556         outputs.
21557
21558 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21559
21560         * tests/test-argp.c: Fix indentation.
21561
21562 2010-02-04  Eric Blake  <ebb9@byu.net>
21563
21564         gettimeofday: expose type of second argument
21565         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21566         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21567         * tests/test-gettimeofday.c: Use it to silence warning.
21568         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21569         the issue.
21570
21571 2010-02-03  Jim Meyering  <meyering@redhat.com>
21572
21573         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21574         * lib/regcomp.c (TYPE_SIGNED): Define.
21575         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21576
21577         regcomp.c: avoid a new -Wshadow warning
21578         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21579
21580 2010-02-01  Jim Meyering  <meyering@redhat.com>
21581
21582         removing useless parentheses in cpp #define directives
21583         For motivation, see commit c0221df4, "define STREQ(a,b)
21584         consistently, removing useless parentheses"
21585         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21586         * lib/mountlist.c (MNT_IGNORE): Likewise.
21587         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21588
21589 2010-02-01  Eric Blake  <ebb9@byu.net>
21590
21591         sys_time: use link-warning
21592         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21593         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21594         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21595         * modules/sys_time (Depends-on): Add warn-on-use.
21596         (Makefile.am): Always build replacement.
21597         (configure.ac): Update substitutions.
21598         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21599         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21600         bother with SYS_TIME_H.
21601         * modules/gettimeofday (configure.ac): Declare indicator.
21602         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21603         in use.
21604
21605         closein-tests: silence compiler warning
21606         * tests/test-closein.c (main): Ignore fread result.
21607         * modules/closein-tests (Depends-on): Add ignore-value.
21608
21609         tests: silence warning about system return
21610         * tests/test-areadlink-with-size.c (main): Ignore system result.
21611         * tests/test-areadlink.c (main): Likewise.
21612         * tests/test-areadlinkat-with-size.c (main): Likewise.
21613         * tests/test-areadlinkat.c (main): Likewise.
21614         * tests/test-canonicalize-lgpl.c (main): Likewise.
21615         * tests/test-canonicalize.c (main): Likewise.
21616         * tests/test-chown.c (main): Likewise.
21617         * tests/test-fchownat.c (main): Likewise.
21618         * tests/test-fdutimensat.c (main): Likewise.
21619         * tests/test-fstatat.c (main): Likewise.
21620         * tests/test-futimens.c (main): Likewise.
21621         * tests/test-lchown.c (main): Likewise.
21622         * tests/test-link.c (main): Likewise.
21623         * tests/test-linkat.c (main): Likewise.
21624         * tests/test-lstat.c (main): Likewise.
21625         * tests/test-mkdir.c (main): Likewise.
21626         * tests/test-mkdirat.c (main): Likewise.
21627         * tests/test-mkfifo.c (main): Likewise.
21628         * tests/test-mkfifoat.c (main): Likewise.
21629         * tests/test-mknod.c (main): Likewise.
21630         * tests/test-readlink.c (main): Likewise.
21631         * tests/test-remove.c (main): Likewise.
21632         * tests/test-rename.c (main): Likewise.
21633         * tests/test-renameat.c (main): Likewise.
21634         * tests/test-rmdir.c (main): Likewise.
21635         * tests/test-symlink.c (main): Likewise.
21636         * tests/test-symlinkat.c (main): Likewise.
21637         * tests/test-unlink.c (main): Likewise.
21638         * tests/test-unlinkat.c (main): Likewise.
21639         * tests/test-utimens.c (main): Likewise.
21640         * tests/test-utimensat.c (main): Likewise.
21641         * modules/areadlink-tests (Depends-on): Add ignore-value.
21642         * modules/areadlink-with-size-tests (Depends-on): Likewise.
21643         * modules/areadlinkat-tests (Depends-on): Likewise.
21644         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
21645         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21646         * modules/canonicalize-tests (Depends-on): Likewise.
21647         * modules/chown-tests (Depends-on): Likewise.
21648         * modules/fdutimensat-tests (Depends-on): Likewise.
21649         * modules/futimens-tests (Depends-on): Likewise.
21650         * modules/lchown-tests (Depends-on): Likewise.
21651         * modules/link-tests (Depends-on): Likewise.
21652         * modules/linkat-tests (Depends-on): Likewise.
21653         * modules/lstat-tests (Depends-on): Likewise.
21654         * modules/mkdir-tests (Depends-on): Likewise.
21655         * modules/mkfifo-tests (Depends-on): Likewise.
21656         * modules/mkfifoat-tests (Depends-on): Likewise.
21657         * modules/mknod-tests (Depends-on): Likewise.
21658         * modules/openat-tests (Depends-on): Likewise.
21659         * modules/readlink-tests (Depends-on): Likewise.
21660         * modules/remove-tests (Depends-on): Likewise.
21661         * modules/rename-tests (Depends-on): Likewise.
21662         * modules/renameat-tests (Depends-on): Likewise.
21663         * modules/rmdir-tests (Depends-on): Likewise.
21664         * modules/symlink-tests (Depends-on): Likewise.
21665         * modules/symlinkat-tests (Depends-on): Likewise.
21666         * modules/unlink-tests (Depends-on): Likewise.
21667         * modules/utimens-tests (Depends-on): Likewise.
21668         * modules/utimensat-tests (Depends-on): Likewise.
21669
21670 2010-01-31  Bruno Haible  <bruno@clisp.org>
21671
21672         Perform the same test for many <math.h> functions.
21673         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
21674         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
21675         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
21676         of gl_MATHFUNC.
21677         * modules/acos (configure.ac): Likewise.
21678         * modules/asin (configure.ac): Likewise.
21679         * modules/atan (configure.ac): Likewise.
21680         * modules/atan2 (configure.ac): Likewise.
21681         * modules/cbrt (configure.ac): Likewise.
21682         * modules/copysign (configure.ac): Likewise.
21683         * modules/cos (configure.ac): Likewise.
21684         * modules/cosh (configure.ac): Likewise.
21685         * modules/erf (configure.ac): Likewise.
21686         * modules/erfc (configure.ac): Likewise.
21687         * modules/exp (configure.ac): Likewise.
21688         * modules/fmod (configure.ac): Likewise.
21689         * modules/hypot (configure.ac): Likewise.
21690         * modules/j0 (configure.ac): Likewise.
21691         * modules/j1 (configure.ac): Likewise.
21692         * modules/jn (configure.ac): Likewise.
21693         * modules/lgamma (configure.ac): Likewise.
21694         * modules/log (configure.ac): Likewise.
21695         * modules/log10 (configure.ac): Likewise.
21696         * modules/log1p (configure.ac): Likewise.
21697         * modules/pow (configure.ac): Likewise.
21698         * modules/remainder (configure.ac): Likewise.
21699         * modules/sin (configure.ac): Likewise.
21700         * modules/sinh (configure.ac): Likewise.
21701         * modules/tan (configure.ac): Likewise.
21702         * modules/tanh (configure.ac): Likewise.
21703         * modules/y0 (configure.ac): Likewise.
21704         * modules/y1 (configure.ac): Likewise.
21705         * modules/yn (configure.ac): Likewise.
21706         Suggested by Paolo Bonzini.
21707
21708 2010-01-31  Bruno Haible  <bruno@clisp.org>
21709
21710         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
21711
21712 2010-01-31  Bruno Haible  <bruno@clisp.org>
21713
21714         Work around getdelim() bug on FreeBSD 8.0.
21715         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
21716         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
21717         not work.
21718         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
21719         is 1.
21720         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
21721         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
21722         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
21723         a non-zero size.
21724         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
21725
21726 2010-01-31  Bruno Haible  <bruno@clisp.org>
21727
21728         Work around getline() bug on FreeBSD 8.0.
21729         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
21730         and a non-zero size.
21731         * tests/test-getline.c (main): Likewise.
21732         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
21733         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
21734
21735 2010-01-28  Eric Blake  <ebb9@byu.net>
21736
21737         regex: fix build failure
21738         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
21739         platforms.
21740
21741 2010-01-28  Jim Meyering  <meyering@redhat.com>
21742
21743         regex: do not ignore memory allocation failure
21744         * lib/regex_internal.c (create_cd_newstate): Detect
21745         re_node_set_init_copy failure.   Extracted from glibc commit
21746         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21747
21748         regex: sync more white-space changes from libc
21749         * lib/regex_internal.c: White-space only changes.
21750         * lib/regexec.c: Likewise.
21751
21752         regex: add many uses of __attribute_warn_unused_result__
21753         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
21754         * lib/regexec.c: Likewise.
21755         Extracted from a messy glibc commit.
21756
21757         regcomp.c: spelling and merge-artifact from glibc
21758         * lib/regcomp.c: Merge remainder of glibc's
21759         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21760
21761         regcomp.c: sync white-space changes from glibc
21762         * lib/regcomp.c: Merge to accommodate white space
21763         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21764
21765         regcomp.c: do not ignore internal return values
21766         * lib/regcomp.c: Do not ignore internal return values.
21767         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
21768         but without its white-space changes and spelling fixes.
21769
21770         regex_internal.h: define __attribute_warn_unused_result__
21771         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
21772
21773         maint: add a syntax-check rule to check for vulnerable Makefile.in
21774         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
21775
21776 2010-01-27  Jim Meyering  <meyering@redhat.com>
21777
21778         ncftpput-ftp: clean up spaces
21779         * build-aux/ncftpput-ftp: Make Copyright line consistent.
21780         Remove trailing blanks.
21781
21782 2010-01-27  Simon Josefsson  <simon@josefsson.org>
21783
21784         * build-aux/git-version-gen: Fix copyright statement.
21785         * build-aux/gnupload: Likewise.
21786         * tests/test-arcfour.c: Likewise.
21787         * tests/test-arctwo.c: Likewise.
21788         * tests/test-count-one-bits.c: Likewise.
21789         * tests/test-crc.c: Likewise.
21790         * tests/test-des.c: Likewise.
21791         * tests/test-gc-arcfour.c: Likewise.
21792         * tests/test-gc-arctwo.c: Likewise.
21793         * tests/test-gc-des.c: Likewise.
21794         * tests/test-gc-hmac-md5.c: Likewise.
21795         * tests/test-gc-hmac-sha1.c: Likewise.
21796         * tests/test-gc-md2.c: Likewise.
21797         * tests/test-gc-md4.c: Likewise.
21798         * tests/test-gc-md5.c: Likewise.
21799         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21800         * tests/test-gc-rijndael.c: Likewise.
21801         * tests/test-gc-sha1.c: Likewise.
21802         * tests/test-gc.c: Likewise.
21803         * tests/test-gethostname.c: Likewise.
21804         * tests/test-gettimeofday.c: Likewise.
21805         * tests/test-hash.c: Likewise.
21806         * tests/test-hmac-md5.c: Likewise.
21807         * tests/test-hmac-sha1.c: Likewise.
21808         * tests/test-md2.c: Likewise.
21809         * tests/test-md4.c: Likewise.
21810         * tests/test-md5.c: Likewise.
21811         * tests/test-memchr.c: Likewise.
21812         * tests/test-memchr2.c: Likewise.
21813         * tests/test-memcmp.c: Likewise.
21814         * tests/test-memmem.c: Likewise.
21815         * tests/test-memrchr.c: Likewise.
21816         * tests/test-rawmemchr.c: Likewise.
21817         * tests/test-read-file.c: Likewise.
21818         * tests/test-rijndael.c: Likewise.
21819         * tests/test-sockets.c: Likewise.
21820         * tests/test-strchrnul.c: Likewise.
21821         * tests/test-strstr.c: Likewise.
21822         * tests/test-strtod.c: Likewise.
21823         * build-aux/ncftpput-ftp: Likewise.
21824
21825 2010-01-26  Eric Blake  <ebb9@byu.net>
21826
21827         ignore-value: update recommended header name
21828         * modules/ignore-value (Include): Only use <> for headers that
21829         exist in glibc.
21830
21831 2010-01-26  Jim Meyering  <meyering@redhat.com>
21832
21833         test-userspec.c: avoid compiler warnings
21834         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
21835         and "initialization discards qualifiers..." warnings.
21836         Put the first "uid" in its own scope, and make char* members "const".
21837
21838 2010-01-25  Bruno Haible  <bruno@clisp.org>
21839
21840         gnulib-tool: Make warning diagnostics consistent.
21841         * gnulib-tool (func_warning): New function.
21842         Use it everywhere where gnulib-tool produces output to stderr and it is
21843         not a fatal error.
21844
21845 2010-01-25  Bruno Haible  <bruno@clisp.org>
21846
21847         Fix test dependencies.
21848         * modules/xstrtol-tests (Depends-on): Add inttypes.
21849         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
21850
21851 2010-01-25 Pádraig Brady <P@draigBrady.com>
21852
21853         syntax-check: detect incorrect boolean macro values in config.h
21854         * modules/maintainer-makefile (configure.ac): Parameterize the location
21855         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
21856         The logic is from Eric Blake and the location indicated by Jim Meyering.
21857         Note the more natural CONFIG_HEADER name is prohibited by automake
21858         for backwards compatibility reasons.
21859         * top/maint.mk (sc_Wundef_boolean): New rule.
21860
21861 2010-01-25  Jim Meyering  <meyering@redhat.com>
21862
21863         bootstrap: detect MacOS 10.6's shasum, too
21864         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
21865         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
21866
21867 2010-01-23  Jim Meyering  <meyering@redhat.com>
21868
21869         xstrtoll: new module
21870         * modules/xstrtoll: New file.
21871         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
21872         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
21873         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
21874         ./configure fails if you use this module and lack "long long".
21875         * modules/xstrtoll-tests: New module.
21876         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
21877         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
21878         new init.sh-based test framework.
21879
21880 2010-01-24  Bruno Haible  <bruno@clisp.org>
21881
21882         Tests for module 'yn'.
21883         * modules/yn-tests: New file.
21884         * tests/test-yn.c: New file.
21885
21886         Tests for module 'y1'.
21887         * modules/y1-tests: New file.
21888         * tests/test-y1.c: New file.
21889
21890         Tests for module 'y0'.
21891         * modules/y0-tests: New file.
21892         * tests/test-y0.c: New file.
21893
21894         Tests for module 'tanh'.
21895         * modules/tanh-tests: New file.
21896         * tests/test-tanh.c: New file.
21897
21898         Tests for module 'tan'.
21899         * modules/tan-tests: New file.
21900         * tests/test-tan.c: New file.
21901
21902         Tests for module 'sqrt'.
21903         * modules/sqrt-tests: New file.
21904         * tests/test-sqrt.c: New file.
21905
21906         Tests for module 'sinh'.
21907         * modules/sinh-tests: New file.
21908         * tests/test-sinh.c: New file.
21909
21910         Tests for module 'sin'.
21911         * modules/sin-tests: New file.
21912         * tests/test-sin.c: New file.
21913
21914         Tests for module 'rint'.
21915         * modules/rint-tests: New file.
21916         * tests/test-rint.c: New file.
21917
21918         Tests for module 'remainder'.
21919         * modules/remainder-tests: New file.
21920         * tests/test-remainder.c: New file.
21921
21922         Tests for module 'pow'.
21923         * modules/pow-tests: New file.
21924         * tests/test-pow.c: New file.
21925
21926         Tests for module 'nextafter'.
21927         * modules/nextafter-tests: New file.
21928         * tests/test-nextafter.c: New file.
21929
21930         Tests for module 'modf'.
21931         * modules/modf-tests: New file.
21932         * tests/test-modf.c: New file.
21933
21934         Tests for module 'logb'.
21935         * modules/logb-tests: New file.
21936         * tests/test-logb.c: New file.
21937
21938         Tests for module 'log1p'.
21939         * modules/log1p-tests: New file.
21940         * tests/test-log1p.c: New file.
21941
21942         Tests for module 'log10'.
21943         * modules/log10-tests: New file.
21944         * tests/test-log10.c: New file.
21945
21946         Tests for module 'log'.
21947         * modules/log-tests: New file.
21948         * tests/test-log.c: New file.
21949
21950         Tests for module 'lgamma'.
21951         * modules/lgamma-tests: New file.
21952         * tests/test-lgamma.c: New file.
21953
21954         Tests for module 'ldexp'.
21955         * modules/ldexp-tests: New file.
21956         * tests/test-ldexp.c: New file.
21957
21958         Tests for module 'jn'.
21959         * modules/jn-tests: New file.
21960         * tests/test-jn.c: New file.
21961
21962         Tests for module 'j1'.
21963         * modules/j1-tests: New file.
21964         * tests/test-j1.c: New file.
21965
21966         Tests for module 'j0'.
21967         * modules/j0-tests: New file.
21968         * tests/test-j0.c: New file.
21969
21970         Tests for module 'hypot'.
21971         * modules/hypot-tests: New file.
21972         * tests/test-hypot.c: New file.
21973
21974         Tests for module 'fmod'.
21975         * modules/fmod-tests: New file.
21976         * tests/test-fmod.c: New file.
21977
21978         Tests for module 'fabs'.
21979         * modules/fabs-tests: New file.
21980         * tests/test-fabs.c: New file.
21981
21982         Tests for module 'exp'.
21983         * modules/exp-tests: New file.
21984         * tests/test-exp.c: New file.
21985
21986         Tests for module 'erfc'.
21987         * modules/erfc-tests: New file.
21988         * tests/test-erfc.c: New file.
21989
21990         Tests for module 'erf'.
21991         * modules/erf-tests: New file.
21992         * tests/test-erf.c: New file.
21993
21994         Tests for module 'cosh'.
21995         * modules/cosh-tests: New file.
21996         * tests/test-cosh.c: New file.
21997
21998         Tests for module 'cos'.
21999         * modules/cos-tests: New file.
22000         * tests/test-cos.c: New file.
22001
22002         Tests for module 'copysign'.
22003         * modules/copysign-tests: New file.
22004         * tests/test-copysign.c: New file.
22005
22006         Tests for module 'cbrt'.
22007         * modules/cbrt-tests: New file.
22008         * tests/test-cbrt.c: New file.
22009
22010         Tests for module 'atan2'.
22011         * modules/atan2-tests: New file.
22012         * tests/test-atan2.c: New file.
22013
22014         Tests for module 'atan'.
22015         * modules/atan-tests: New file.
22016         * tests/test-atan.c: New file.
22017
22018         Tests for module 'asin'.
22019         * modules/asin-tests: New file.
22020         * tests/test-asin.c: New file.
22021
22022         Tests for module 'acos'.
22023         * modules/acos-tests: New file.
22024         * tests/test-acos.c: New file.
22025
22026 2010-01-24  Bruno Haible  <bruno@clisp.org>
22027
22028         Fix tests for common <math.h> functions.
22029         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
22030         code snippet that references the function pointer, rather than merely
22031         calling the function. Substitute the FUNC_LIBM variable.
22032         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
22033         * modules/acos (configure.ac): Likewise.
22034         * modules/asin (configure.ac): Likewise.
22035         * modules/atan (configure.ac): Likewise.
22036         * modules/atan2 (configure.ac): Likewise.
22037         * modules/cbrt (configure.ac): Likewise.
22038         * modules/copysign (configure.ac): Likewise.
22039         * modules/cos (configure.ac): Likewise.
22040         * modules/cosh (configure.ac): Likewise.
22041         * modules/erf (configure.ac): Likewise.
22042         * modules/erfc (configure.ac): Likewise.
22043         * modules/exp (configure.ac): Likewise.
22044         * modules/fabs (configure.ac): Likewise.
22045         * modules/fmod (configure.ac): Likewise.
22046         * modules/hypot (configure.ac): Likewise.
22047         * modules/j0 (configure.ac): Likewise.
22048         * modules/j1 (configure.ac): Likewise.
22049         * modules/jn (configure.ac): Likewise.
22050         * modules/ldexp (configure.ac): Likewise.
22051         * modules/lgamma (configure.ac): Likewise.
22052         * modules/log (configure.ac): Likewise.
22053         * modules/log10 (configure.ac): Likewise.
22054         * modules/log1p (configure.ac): Likewise.
22055         * modules/logb (configure.ac): Likewise.
22056         * modules/modf (configure.ac): Likewise.
22057         * modules/nextafter (configure.ac): Likewise.
22058         * modules/pow (configure.ac): Likewise.
22059         * modules/remainder (configure.ac): Likewise.
22060         * modules/rint (configure.ac): Likewise.
22061         * modules/sin (configure.ac): Likewise.
22062         * modules/sinh (configure.ac): Likewise.
22063         * modules/tan (configure.ac): Likewise.
22064         * modules/tanh (configure.ac): Likewise.
22065         * modules/y0 (configure.ac): Likewise.
22066         * modules/y1 (configure.ac): Likewise.
22067         * modules/yn (configure.ac): Likewise.
22068
22069 2010-01-24  Bruno Haible  <bruno@clisp.org>
22070
22071         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
22072         * tests/test-acosl.c (x): New variable.
22073         (main): Store argument in x and fetch it from x.
22074         * tests/test-asinl.c (x): New variable.
22075         (main): Store argument in x and fetch it from x.
22076         * tests/test-atanl.c (x): New variable.
22077         (main): Store argument in x and fetch it from x.
22078         * tests/test-cosl.c (x): New variable.
22079         (main): Store argument in x and fetch it from x.
22080         * tests/test-expl.c (x): New variable.
22081         (main): Store argument in x and fetch it from x.
22082         * tests/test-logl.c (x): New variable.
22083         (main): Store argument in x and fetch it from x.
22084         * tests/test-sinl.c (x): New variable.
22085         (main): Store argument in x and fetch it from x.
22086         * tests/test-sqrtl.c (x): New variable.
22087         (main): Store argument in x and fetch it from x.
22088         * tests/test-tanl.c (x): New variable.
22089         (main): Store argument in x and fetch it from x.
22090
22091 2010-01-24  Bruno Haible  <bruno@clisp.org>
22092
22093         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
22094         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
22095         assignments to the initial TESTS_ENVIRONMENT.
22096         * doc/gnulib.texi (Unit test modules): Document it.
22097         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
22098         TESTS_ENVIRONMENT.
22099         * modules/btowc-tests (Makefile.am): Likewise.
22100         * modules/c-stack-tests (Makefile.am): Likewise.
22101         * modules/c-strcase-tests (Makefile.am): Likewise.
22102         * modules/copy-file-tests (Makefile.am): Likewise.
22103         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
22104         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
22105         * modules/mbrtowc-tests (Makefile.am): Likewise.
22106         * modules/mbscasecmp-tests (Makefile.am): Likewise.
22107         * modules/mbscasestr-tests (Makefile.am): Likewise.
22108         * modules/mbschr-tests (Makefile.am): Likewise.
22109         * modules/mbscspn-tests (Makefile.am): Likewise.
22110         * modules/mbsinit-tests (Makefile.am): Likewise.
22111         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22112         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
22113         * modules/mbspbrk-tests (Makefile.am): Likewise.
22114         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22115         * modules/mbsrchr-tests (Makefile.am): Likewise.
22116         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
22117         * modules/mbsspn-tests (Makefile.am): Likewise.
22118         * modules/mbsstr-tests (Makefile.am): Likewise.
22119         * modules/nl_langinfo-tests (Makefile.am): Likewise.
22120         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
22121         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22122         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22123         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22124         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22125         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
22126         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22127         * modules/wcrtomb-tests (Makefile.am): Likewise.
22128         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
22129         * modules/wcsrtombs-tests (Makefile.am): Likewise.
22130         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
22131         assignments from TESTS_ENVIRONMENT.
22132         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
22133         augmentation.
22134         * modules/argp-version-etc-tests (Makefile.am): Likewise.
22135         * modules/atexit-tests (Makefile.am): Likewise.
22136         * modules/binary-io-tests (Makefile.am): Likewise.
22137         * modules/closein-tests (Makefile.am): Likewise.
22138         * modules/dprintf-posix-tests (Makefile.am): Likewise.
22139         * modules/exclude-tests (Makefile.am): Likewise.
22140         * modules/fflush-tests (Makefile.am): Likewise.
22141         * modules/fpending-tests (Makefile.am): Likewise.
22142         * modules/fprintf-posix-tests (Makefile.am): Likewise.
22143         * modules/freadahead-tests (Makefile.am): Likewise.
22144         * modules/freadptr-tests (Makefile.am): Likewise.
22145         * modules/freadseek-tests (Makefile.am): Likewise.
22146         * modules/fseek-tests (Makefile.am): Likewise.
22147         * modules/fseeko-tests (Makefile.am): Likewise.
22148         * modules/ftell-tests (Makefile.am): Likewise.
22149         * modules/ftello-tests (Makefile.am): Likewise.
22150         * modules/idpriv-drop-tests (Makefile.am): Likewise.
22151         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
22152         * modules/lseek-tests (Makefile.am): Likewise.
22153         * modules/parse-duration-tests (Makefile.am): Likewise.
22154         * modules/perror-tests (Makefile.am): Likewise.
22155         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
22156         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
22157         * modules/pipe-tests (Makefile.am): Likewise.
22158         * modules/pread-tests (Makefile.am): Likewise.
22159         * modules/printf-posix-tests (Makefile.am): Likewise.
22160         * modules/select-tests (Makefile.am): Likewise.
22161         * modules/sigpipe-tests (Makefile.am): Likewise.
22162         * modules/tsearch-tests (Makefile.am): Likewise.
22163         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
22164         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
22165         * modules/uniname/uniname-tests (Makefile.am): Likewise.
22166         * modules/uniwidth/width-tests (Makefile.am): Likewise.
22167         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
22168         * modules/version-etc-tests (Makefile.am): Likewise.
22169         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22170         * modules/vprintf-posix-tests (Makefile.am): Likewise.
22171         * modules/xalloc-die-tests (Makefile.am): Likewise.
22172         * modules/xprintf-posix-tests (Makefile.am): Likewise.
22173         * modules/xstrtoimax-tests (Makefile.am): Likewise.
22174         * modules/xstrtol-tests (Makefile.am): Likewise.
22175         * modules/xstrtoumax-tests (Makefile.am): Likewise.
22176         * modules/yesno-tests (Makefile.am): Likewise.
22177         Suggested by Jim Meyering.
22178
22179 2010-01-24  Bruno Haible  <bruno@clisp.org>
22180
22181         More documentation.
22182         * doc/gnulib.texi (Writing modules): New chapter.
22183         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
22184         the new chapter.
22185
22186 2010-01-24  Jim Meyering  <meyering@redhat.com>
22187
22188         maint.mk: do not prepend "./" after filtering
22189         * top/maint.mk (_prepend_srcdir_prefix): New variable
22190         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
22191         "./" when $(srcdir) is ".".
22192
22193         define STREQ(a,b) consistently, removing useless parentheses
22194         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
22195         since the only risk is that "a" or "b" contains an unparenthesized
22196         comma, but if either did that, STREQ would have 3 or more arguments.
22197         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
22198         * lib/fts.c (STREQ): Remove unnecessary parentheses.
22199         * lib/hash-triple.c (STREQ): Likewise.
22200         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
22201         * lib/getugroups.c (STREQ): Likewise.
22202
22203 2010-01-23  Jim Meyering  <meyering@redhat.com>
22204
22205         maint.mk: fix syntax-check in a non-srcdir build directory
22206         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
22207         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
22208
22209 2010-01-22  Jim Meyering  <meyering@redhat.com>
22210
22211         userspec: add unit tests
22212         * tests/test-userspec.c: New file.
22213         * modules/userspec-tests: Likewise.
22214
22215 2010-01-21  Jim Meyering  <meyering@redhat.com>
22216
22217         maint.mk: handle source file names containing "." robustly
22218         * top/maint.mk (_dot_escaped_srcdir): Define.
22219         (VC_LIST): Use it in LHS of sed substitution.
22220
22221 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
22222
22223         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
22224         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
22225         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
22226         from a non-srcdir build.
22227
22228 2010-01-20  Eric Blake  <ebb9@byu.net>
22229
22230         warn-on-use: use instead of link-warning
22231         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
22232         * modules/unistd (Depends-on, Makefile.am): Likewise.
22233         * modules/arpa_inet (Depends-on): Replace link-warning with
22234         warn-on-use.
22235         (Makefile.am): Update rules accordingly.
22236         * modules/ctype (Depends-on, Makefile.am): Likewise.
22237         * modules/dirent (Depends-on, Makefile.am): Likewise.
22238         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
22239         * modules/inttypes (Depends-on, Makefile.am): Likewise.
22240         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22241         * modules/locale (Depends-on, Makefile.am): Likewise.
22242         * modules/math (Depends-on, Makefile.am): Likewise.
22243         * modules/search (Depends-on, Makefile.am): Likewise.
22244         * modules/signal (Depends-on, Makefile.am): Likewise.
22245         * modules/spawn (Depends-on, Makefile.am): Likewise.
22246         * modules/stdlib (Depends-on, Makefile.am): Likewise.
22247         * modules/string (Depends-on, Makefile.am): Likewise.
22248         * modules/strings (Depends-on, Makefile.am): Likewise.
22249         * modules/sys_file (Depends-on, Makefile.am): Likewise.
22250         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
22251         * modules/sys_select (Depends-on, Makefile.am): Likewise.
22252         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22253         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22254         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22255         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22256         * modules/wchar (Depends-on, Makefile.am): Likewise.
22257         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22258         should be poisoned.
22259         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22260         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22261         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22262         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22263         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22264         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22265         * m4/math_h.m4 (gl_MATH_H): Likewise.
22266         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22267         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22268         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22269         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22270         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22271         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22272         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22273         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22274         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22275         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22276         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22277         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22278         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22279         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22280         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22281         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22282         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22283         GL_LINK_WARNING.
22284         * lib/ctype.in.h: Likewise.
22285         * lib/dirent.in.h: Likewise.
22286         * lib/fcntl.in.h: Likewise.
22287         * lib/inttypes.in.h: Likewise.
22288         * lib/langinfo.in.h: Likewise.
22289         * lib/locale.in.h: Likewise.
22290         * lib/math.in.h: Likewise.
22291         * lib/search.in.h: Likewise.
22292         * lib/signal.in.h: Likewise.
22293         * lib/spawn.in.h: Likewise.
22294         * lib/stdio.in.h: Likewise.
22295         * lib/stdlib.in.h: Likewise.
22296         * lib/string.in.h: Likewise.
22297         * lib/strings.in.h: Likewise.
22298         * lib/sys_file.in.h: Likewise.
22299         * lib/sys_ioctl.in.h: Likewise.
22300         * lib/sys_select.in.h: Likewise.
22301         * lib/sys_socket.in.h: Likewise.
22302         * lib/sys_stat.in.h: Likewise.
22303         * lib/sys_times.in.h: Likewise.
22304         * lib/sys_utsname.in.h: Likewise.
22305         * lib/unistd.in.h: Likewise.
22306         * lib/wchar.in.h: Likewise.
22307
22308 2010-01-20  Bruno Haible  <bruno@clisp.org>
22309
22310         Avoid duplicate -lm.
22311         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22312         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22313         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22314         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22315         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22316         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22317         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22318         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22319         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22320         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22321         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22322         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22323         Reported by Paolo Bonzini.
22324
22325 2010-01-19  Bruno Haible  <bruno@clisp.org>
22326
22327         langinfo, nl_langinfo: Relicense under LGPLv2+.
22328         * modules/langinfo (License): Change to LGPLv2+.
22329         * modules/nl_langinfo (License): Likewise.
22330         Patch by David Lutterkort <lutter@redhat.com>.
22331
22332 2010-01-19  Bruno Haible  <bruno@clisp.org>
22333
22334         Avoid compilation error with cc on OSF/1 5.1.
22335         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22336         statement, not before.
22337         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22338
22339 2010-01-18  Bruno Haible  <bruno@clisp.org>
22340
22341         Avoid a link error due to the __printf__ symbol.
22342         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22343         and 2.6.x.
22344         (__format__, __printf__): Remove definitions.
22345         * lib/argp-fmtstream.h: Likewise.
22346         * lib/argp.h: Likewise.
22347         * lib/error.h: Likewise.
22348         * lib/vasnprintf.h: Likewise.
22349         * lib/xprintf.h: Likewise.
22350         * lib/xvasprintf.h: Likewise.
22351         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22352
22353 2010-01-18  Bruno Haible  <bruno@clisp.org>
22354
22355         Tests for module 'tanl'.
22356         * modules/tanl-tests: New file.
22357         * tests/test-tanl.c: New file.
22358
22359         Tests for module 'sqrtl'.
22360         * modules/sqrtl-tests: New file.
22361         * tests/test-sqrtl.c: New file.
22362
22363         Tests for module 'sinl'.
22364         * modules/sinl-tests: New file.
22365         * tests/test-sinl.c: New file.
22366
22367         Tests for module 'logl'.
22368         * modules/logl-tests: New file.
22369         * tests/test-logl.c: New file.
22370
22371         Tests for module 'expl'.
22372         * modules/expl-tests: New file.
22373         * tests/test-expl.c: New file.
22374
22375         Tests for module 'cosl'.
22376         * modules/cosl-tests: New file.
22377         * tests/test-cosl.c: New file.
22378
22379         Tests for module 'atanl'.
22380         * modules/atanl-tests: New file.
22381         * tests/test-atanl.c: New file.
22382
22383         Tests for module 'asinl'.
22384         * modules/asinl-tests: New file.
22385         * tests/test-asinl.c: New file.
22386
22387         Tests for module 'acosl'.
22388         * modules/acosl-tests: New file.
22389         * tests/test-acosl.c: New file.
22390
22391         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22392         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22393         tanl): Use the standard gnulib idiom.
22394         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22395         * lib/sinl.c: Likewise.
22396         * lib/tanl.c: Don't include trigl.c.
22397         (kernel_tanl): Make static.
22398         * lib/sincosl.c: Include trigl.h first.
22399         * lib/trigl.c: Likewise.
22400         * m4/acosl.m4: New file.
22401         * m4/asinl.m4: New file.
22402         * m4/atanl.m4: New file.
22403         * m4/cosl.m4: New file.
22404         * m4/expl.m4: New file.
22405         * m4/logl.m4: New file.
22406         * m4/sinl.m4: New file.
22407         * m4/sqrtl.m4: New file.
22408         * m4/tanl.m4: New file.
22409         * m4/mathl.m4: Remove file.
22410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22411         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22412         Don't initialize GNULIB_MATHL.
22413         * modules/acosl: New file.
22414         * modules/asinl: New file.
22415         * modules/atanl: New file.
22416         * modules/cosl: New file.
22417         * modules/expl: New file.
22418         * modules/logl: New file.
22419         * modules/sinl: New file.
22420         * modules/sqrtl: New file.
22421         * modules/tanl: New file.
22422         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22423         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22424         substitute GNULIB_MATHL.
22425         * modules/mathl: Rewritten.
22426         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22427         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22428         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22429         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22430         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22431         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22432         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22433         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22434         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22435
22436 2010-01-18  Bruno Haible  <bruno@clisp.org>
22437
22438         sqrt: Make gl_FUNC_SQRT requirable.
22439         * m4/sqrt.m4: New file.
22440         * modules/sqrt (Files): Add it.
22441         (configure.ac): Invoke gl_FUNC_SQRT.
22442
22443 2010-01-18  Bruno Haible  <bruno@clisp.org>
22444
22445         New modules for common <math.h> functions.
22446         * m4/mathfunc.m4: New file.
22447         * modules/acos: New file.
22448         * modules/asin: New file.
22449         * modules/atan: New file.
22450         * modules/atan2: New file.
22451         * modules/cbrt: New file.
22452         * modules/copysign: New file.
22453         * modules/cos: New file.
22454         * modules/cosh: New file.
22455         * modules/erf: New file.
22456         * modules/erfc: New file.
22457         * modules/exp: New file.
22458         * modules/fabs: New file.
22459         * modules/fmod: New file.
22460         * modules/hypot: New file.
22461         * modules/j0: New file.
22462         * modules/j1: New file.
22463         * modules/jn: New file.
22464         * modules/ldexp: New file.
22465         * modules/lgamma: New file.
22466         * modules/log: New file.
22467         * modules/log10: New file.
22468         * modules/log1p: New file.
22469         * modules/logb: New file.
22470         * modules/modf: New file.
22471         * modules/nextafter: New file.
22472         * modules/pow: New file.
22473         * modules/remainder: New file.
22474         * modules/rint: New file.
22475         * modules/sin: New file.
22476         * modules/sinh: New file.
22477         * modules/sqrt: New file.
22478         * modules/tan: New file.
22479         * modules/tanh: New file.
22480         * modules/y0: New file.
22481         * modules/y1: New file.
22482         * modules/yn: New file.
22483         * doc/posix-functions/acos.texi: Mention the 'acos' module.
22484         * doc/posix-functions/asin.texi: Mention the 'asin' module.
22485         * doc/posix-functions/atan.texi: Mention the 'atan' module.
22486         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
22487         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
22488         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
22489         * doc/posix-functions/cos.texi: Mention the 'cos' module.
22490         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
22491         * doc/posix-functions/erf.texi: Mention the 'erf' module.
22492         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
22493         * doc/posix-functions/exp.texi: Mention the 'exp' module.
22494         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
22495         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
22496         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
22497         * doc/posix-functions/j0.texi: Mention the 'j0' module.
22498         * doc/posix-functions/j1.texi: Mention the 'j1' module.
22499         * doc/posix-functions/jn.texi: Mention the 'jn' module.
22500         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
22501         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
22502         * doc/posix-functions/log.texi: Mention the 'log' module.
22503         * doc/posix-functions/log10.texi: Mention the 'log10' module.
22504         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
22505         * doc/posix-functions/logb.texi: Mention the 'logb' module.
22506         * doc/posix-functions/modf.texi: Mention the 'modf' module.
22507         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
22508         * doc/posix-functions/pow.texi: Mention the 'pow' module.
22509         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
22510         * doc/posix-functions/rint.texi: Mention the 'rint' module.
22511         * doc/posix-functions/sin.texi: Mention the 'sin' module.
22512         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
22513         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
22514         * doc/posix-functions/tan.texi: Mention the 'tan' module.
22515         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
22516         * doc/posix-functions/y0.texi: Mention the 'y0' module.
22517         * doc/posix-functions/y1.texi: Mention the 'y1' module.
22518         * doc/posix-functions/yn.texi: Mention the 'yn' module.
22519
22520 2010-01-18  Jim Meyering  <meyering@redhat.com>
22521
22522         ignore-value: relax license to LGPLv2+
22523         * modules/ignore-value (License): Relax to LGPLv2+.
22524
22525         getdate: don't leak when TZ contains two or more '"'s
22526         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
22527         double quote in TZ after the first one.
22528
22529         readtokens: do not leak internal token_lengths buffer
22530         * lib/readtokens.c (readtokens): Free the local, lengths,
22531         when the supplied "token_lengths" parameter is NULL.
22532
22533 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22534
22535         Fix a couple of missing LIBTHREAD link failures on AIX.
22536         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
22537         $(LIBTHREAD).
22538         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
22539
22540         Link test-poll against INET_PTON_LIB.
22541         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
22542         for inet_pton on Solaris 10.
22543
22544 2010-01-17  Bruno Haible  <bruno@clisp.org>
22545
22546         unistdio/*-sprintf: Fix typo in module description.
22547         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
22548         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
22549         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
22550         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
22551         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
22552         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
22553         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
22554         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22555
22556 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22557
22558         gnulib-tool: fix filelist for AIX, HP-UX ksh.
22559         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
22560         variables in shell case patterns, for AIX and HP-UX ksh.
22561
22562         Split large sed scripts, for HP-UX sed.
22563         * modules/stdio: Split sed scripts around 50 sed commands,
22564         to avoid HP-UX limit of 99 commands, in the near future.
22565         * modules/string: Likewise.
22566         * modules/unistd: Likewise.
22567
22568         gnulib-tool: avoid writing in the current directory.
22569         * gnulib-tool (func_emit_lib_Makefile_am)
22570         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22571         not in the current directory, so concurrent gnulib-tool
22572         instances do not interfere.
22573
22574 2010-01-16  Jim Meyering  <meyering@redhat.com>
22575
22576         doc: update users.txt
22577         * users.txt: Add grep.
22578         (diffutils, gzip): Update URLs.
22579
22580 2010-01-12  Bruno Haible  <bruno@clisp.org>
22581
22582         posix_spawn: Avoid test failure on Cygwin.
22583         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22584         characters.
22585         Reported by Simon Josefsson.
22586
22587 2010-01-12  Bruno Haible  <bruno@clisp.org>
22588
22589         * tests/test-cond.c (main): When skipping the test, show the reason.
22590
22591 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22592
22593         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22594
22595 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22596
22597         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22598         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22599
22600 2010-01-12  Eric Blake  <ebb9@byu.net>
22601
22602         build: guarantee AS_VAR_IF
22603         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22604         (gl_AS_VAR_IF): Move...
22605         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22606         Reported by Simon Josefsson.
22607
22608 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22609
22610         * lib/stdio.in.h: Fix typo.
22611
22612 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22613
22614         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22615         libgpg-error.
22616
22617 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22618
22619         * tests/test-xalloc-die.sh: Use $EXEEXT.
22620
22621 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22622             Bruno Haible  <bruno@clisp.org>
22623
22624         getlogin, getlogin_r: Avoid test failure.
22625         * tests/test-getlogin.c: Include <stdio.h>.
22626         (main): Skip the test when the function fails because stdin is not a
22627         tty.
22628         * tests/test-getlogin_r.c: Include <stdio.h>.
22629         (main): Skip the test when the function fails because stdin is not a
22630         tty.
22631
22632 2010-01-11  Eric Blake  <ebb9@byu.net>
22633
22634         tests: avoid more large file warnings
22635         * tests/test-fflush.c: Avoid warning about ftell use.
22636         * tests/test-fseek.c: Avoid warning about fseek use.
22637
22638 2010-01-10  Bruno Haible  <bruno@clisp.org>
22639
22640         nproc: Work better on Linux when /proc and /sys are not mounted.
22641         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
22642         as lower bound when, on glibc/Linux systems,
22643         sysconf (_SC_NPROCESSORS_CONF) returns 1.
22644         Suggested by Pádraig Brady <P@draigbrady.com>.
22645         Reported by Dmitry V. Levin <ldv@altlinux.org>.
22646
22647         nproc: Refactor.
22648         * lib/nproc.c (num_processors_via_affinity_mask): New function,
22649         extracted from num_processors.
22650         (num_processors): Call it.
22651
22652 2010-01-11  Jim Meyering  <meyering@redhat.com>
22653
22654         utimecmp: avoid new warning from upcoming gcc-4.5.0
22655         * lib/utimecmp.c (BILLION): Define using #define rather than an
22656         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
22657
22658 2010-01-11  Eric Blake  <ebb9@byu.net>
22659
22660         math: add portability warnings for classification macros
22661         * modules/math (Depends-on): Add warn-on-use.
22662         (Makefile.am): Provide new substitutions.
22663         * m4/math_h.m4 (gl_MATH_H): Require inline.
22664         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
22665         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
22666         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
22667         implement warnings.
22668
22669         unistd: warn on use of environ without module
22670         * modules/unistd (Depends-on): Add warn-on-use.
22671         (Makefile.am): Provide new substitutions.
22672         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
22673         * lib/unistd.in.h (environ): Wrap with a warning helper function.
22674
22675         stdio: warn on suspicious uses
22676         * modules/stdio (Depends-on): Add warn-on-use.
22677         (Makefile.am): Provide new substitutions.
22678         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
22679         fseeko.
22680         * lib/stdio.in.h (gets): Always warn on use.
22681         (fseek, ftell): Adjust when warnings are issued, and honor
22682         _GL_NO_LARGE_FILES as a way to silence the warning.
22683         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
22684         any warning about large file offsets.
22685         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
22686         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
22687         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
22688         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
22689         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
22690         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
22691         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
22692         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
22693
22694         warn-on-use: new module
22695         * modules/warn-on-use: New file.
22696         * build-aux/warn-on-use.h: Likewise.
22697         * m4/warn-on-use.m4: Likewise.
22698         * MODULES.html.sh (Support for building): Mention it.
22699
22700 2010-01-10  Bruno Haible  <bruno@clisp.org>
22701
22702         Tests for module 'unistr/u32-strdup'.
22703         * modules/unistr/u32-strdup-tests: New file.
22704         * tests/unistr/test-u32-strdup.c: New file.
22705
22706         Tests for module 'unistr/u16-strdup'.
22707         * modules/unistr/u16-strdup-tests: New file.
22708         * tests/unistr/test-u16-strdup.c: New file.
22709
22710         Tests for module 'unistr/u8-strdup'.
22711         * modules/unistr/u8-strdup-tests: New file.
22712         * tests/unistr/test-u8-strdup.c: New file.
22713         * tests/unistr/test-strdup.h: New file.
22714
22715         Tests for module 'unistr/u32-strncmp'.
22716         * modules/unistr/u32-strncmp-tests: New file.
22717         * tests/unistr/test-u32-strncmp.c: New file.
22718
22719         Tests for module 'unistr/u16-strncmp'.
22720         * modules/unistr/u16-strncmp-tests: New file.
22721         * tests/unistr/test-u16-strncmp.c: New file.
22722
22723         Tests for module 'unistr/u8-strncmp'.
22724         * modules/unistr/u8-strncmp-tests: New file.
22725         * tests/unistr/test-u8-strncmp.c: New file.
22726         * tests/unistr/test-strncmp.h: New file.
22727
22728         Tests for module 'unistr/u32-strcoll'.
22729         * modules/unistr/u32-strcoll-tests: New file.
22730         * tests/unistr/test-u32-strcoll.c: New file.
22731
22732         Tests for module 'unistr/u16-strcoll'.
22733         * modules/unistr/u16-strcoll-tests: New file.
22734         * tests/unistr/test-u16-strcoll.c: New file.
22735
22736         Tests for module 'unistr/u8-strcoll'.
22737         * modules/unistr/u8-strcoll-tests: New file.
22738         * tests/unistr/test-u8-strcoll.c: New file.
22739
22740         Tests for module 'unistr/u32-strcmp'.
22741         * modules/unistr/u32-strcmp-tests: New file.
22742         * tests/unistr/test-u32-strcmp.c: New file.
22743         * tests/unistr/test-u32-strcmp.h: New file.
22744
22745         Tests for module 'unistr/u16-strcmp'.
22746         * modules/unistr/u16-strcmp-tests: New file.
22747         * tests/unistr/test-u16-strcmp.c: New file.
22748         * tests/unistr/test-u16-strcmp.h: New file.
22749
22750         Tests for module 'unistr/u8-strcmp'.
22751         * modules/unistr/u8-strcmp-tests: New file.
22752         * tests/unistr/test-u8-strcmp.c: New file.
22753         * tests/unistr/test-u8-strcmp.h: New file.
22754         * tests/unistr/test-strcmp.h: New file.
22755
22756         Tests for module 'unistr/u32-strncat'.
22757         * modules/unistr/u32-strncat-tests: New file.
22758         * tests/unistr/test-u32-strncat.c: New file.
22759
22760         Tests for module 'unistr/u16-strncat'.
22761         * modules/unistr/u16-strncat-tests: New file.
22762         * tests/unistr/test-u16-strncat.c: New file.
22763
22764         Tests for module 'unistr/u8-strncat'.
22765         * modules/unistr/u8-strncat-tests: New file.
22766         * tests/unistr/test-u8-strncat.c: New file.
22767         * tests/unistr/test-strncat.h: New file.
22768
22769         Tests for module 'unistr/u32-strcat'.
22770         * modules/unistr/u32-strcat-tests: New file.
22771         * tests/unistr/test-u32-strcat.c: New file.
22772
22773         Tests for module 'unistr/u16-strcat'.
22774         * modules/unistr/u16-strcat-tests: New file.
22775         * tests/unistr/test-u16-strcat.c: New file.
22776
22777         Tests for module 'unistr/u8-strcat'.
22778         * modules/unistr/u8-strcat-tests: New file.
22779         * tests/unistr/test-u8-strcat.c: New file.
22780         * tests/unistr/test-strcat.h: New file.
22781
22782         Tests for module 'unistr/u32-stpncpy'.
22783         * modules/unistr/u32-stpncpy-tests: New file.
22784         * tests/unistr/test-u32-stpncpy.c: New file.
22785
22786         Tests for module 'unistr/u16-stpncpy'.
22787         * modules/unistr/u16-stpncpy-tests: New file.
22788         * tests/unistr/test-u16-stpncpy.c: New file.
22789
22790         Tests for module 'unistr/u8-stpncpy'.
22791         * modules/unistr/u8-stpncpy-tests: New file.
22792         * tests/unistr/test-u8-stpncpy.c: New file.
22793         * tests/unistr/test-stpncpy.h: New file.
22794
22795         Tests for module 'unistr/u32-strncpy'.
22796         * modules/unistr/u32-strncpy-tests: New file.
22797         * tests/unistr/test-u32-strncpy.c: New file.
22798
22799         Tests for module 'unistr/u16-strncpy'.
22800         * modules/unistr/u16-strncpy-tests: New file.
22801         * tests/unistr/test-u16-strncpy.c: New file.
22802
22803         Tests for module 'unistr/u8-strncpy'.
22804         * modules/unistr/u8-strncpy-tests: New file.
22805         * tests/unistr/test-u8-strncpy.c: New file.
22806         * tests/unistr/test-strncpy.h: New file.
22807
22808         Tests for module 'unistr/u32-stpcpy'.
22809         * modules/unistr/u32-stpcpy-tests: New file.
22810         * tests/unistr/test-u32-stpcpy.c: New file.
22811
22812         Tests for module 'unistr/u16-stpcpy'.
22813         * modules/unistr/u16-stpcpy-tests: New file.
22814         * tests/unistr/test-u16-stpcpy.c: New file.
22815
22816         Tests for module 'unistr/u8-stpcpy'.
22817         * modules/unistr/u8-stpcpy-tests: New file.
22818         * tests/unistr/test-u8-stpcpy.c: New file.
22819         * tests/unistr/test-stpcpy.h: New file.
22820
22821         Tests for module 'unistr/u32-strcpy'.
22822         * modules/unistr/u32-strcpy-tests: New file.
22823         * tests/unistr/test-u32-strcpy.c: New file.
22824
22825         Tests for module 'unistr/u16-strcpy'.
22826         * modules/unistr/u16-strcpy-tests: New file.
22827         * tests/unistr/test-u16-strcpy.c: New file.
22828
22829         Tests for module 'unistr/u8-strcpy'.
22830         * modules/unistr/u8-strcpy-tests: New file.
22831         * tests/unistr/test-u8-strcpy.c: New file.
22832         * tests/unistr/test-strcpy.h: New file.
22833
22834         Tests for module 'unistr/u32-strnlen'.
22835         * modules/unistr/u32-strnlen-tests: New file.
22836         * tests/unistr/test-u32-strnlen.c: New file.
22837
22838         Tests for module 'unistr/u16-strnlen'.
22839         * modules/unistr/u16-strnlen-tests: New file.
22840         * tests/unistr/test-u16-strnlen.c: New file.
22841
22842         Tests for module 'unistr/u8-strnlen'.
22843         * modules/unistr/u8-strnlen-tests: New file.
22844         * tests/unistr/test-u8-strnlen.c: New file.
22845         * tests/unistr/test-strnlen.h: New file.
22846
22847         Tests for module 'unistr/u32-strlen'.
22848         * modules/unistr/u32-strlen-tests: New file.
22849         * tests/unistr/test-u32-strlen.c: New file.
22850
22851         Tests for module 'unistr/u16-strlen'.
22852         * modules/unistr/u16-strlen-tests: New file.
22853         * tests/unistr/test-u16-strlen.c: New file.
22854
22855         Tests for module 'unistr/u8-strlen'.
22856         * modules/unistr/u8-strlen-tests: New file.
22857         * tests/unistr/test-u8-strlen.c: New file.
22858
22859         Tests for module 'unistr/u32-prev'.
22860         * modules/unistr/u32-prev-tests: New file.
22861         * tests/unistr/test-u32-prev.c: New file.
22862
22863         Tests for module 'unistr/u16-prev'.
22864         * modules/unistr/u16-prev-tests: New file.
22865         * tests/unistr/test-u16-prev.c: New file.
22866
22867         Tests for module 'unistr/u8-prev'.
22868         * modules/unistr/u8-prev-tests: New file.
22869         * tests/unistr/test-u8-prev.c: New file.
22870
22871         Tests for module 'unistr/u32-next'.
22872         * modules/unistr/u32-next-tests: New file.
22873         * tests/unistr/test-u32-next.c: New file.
22874
22875         Tests for module 'unistr/u16-next'.
22876         * modules/unistr/u16-next-tests: New file.
22877         * tests/unistr/test-u16-next.c: New file.
22878
22879         Tests for module 'unistr/u8-next'.
22880         * modules/unistr/u8-next-tests: New file.
22881         * tests/unistr/test-u8-next.c: New file.
22882
22883         Tests for module 'unistr/u32-strmbtouc'.
22884         * modules/unistr/u32-strmbtouc-tests: New file.
22885         * tests/unistr/test-u32-strmbtouc.c: New file.
22886
22887         Tests for module 'unistr/u16-strmbtouc'.
22888         * modules/unistr/u16-strmbtouc-tests: New file.
22889         * tests/unistr/test-u16-strmbtouc.c: New file.
22890
22891         Tests for module 'unistr/u8-strmbtouc'.
22892         * modules/unistr/u8-strmbtouc-tests: New file.
22893         * tests/unistr/test-u8-strmbtouc.c: New file.
22894
22895         Tests for module 'unistr/u32-strmblen'.
22896         * modules/unistr/u32-strmblen-tests: New file.
22897         * tests/unistr/test-u32-strmblen.c: New file.
22898
22899         Tests for module 'unistr/u16-strmblen'.
22900         * modules/unistr/u16-strmblen-tests: New file.
22901         * tests/unistr/test-u16-strmblen.c: New file.
22902
22903         Tests for module 'unistr/u8-strmblen'.
22904         * modules/unistr/u8-strmblen-tests: New file.
22905         * tests/unistr/test-u8-strmblen.c: New file.
22906
22907         Tests for module 'unistr/u32-cpy-alloc'.
22908         * modules/unistr/u32-cpy-alloc-tests: New file.
22909         * tests/unistr/test-u32-cpy-alloc.c: New file.
22910
22911         Tests for module 'unistr/u16-cpy-alloc'.
22912         * modules/unistr/u16-cpy-alloc-tests: New file.
22913         * tests/unistr/test-u16-cpy-alloc.c: New file.
22914
22915         Tests for module 'unistr/u8-cpy-alloc'.
22916         * modules/unistr/u8-cpy-alloc-tests: New file.
22917         * tests/unistr/test-u8-cpy-alloc.c: New file.
22918         * tests/unistr/test-cpy-alloc.h: New file.
22919
22920         Tests for module 'unistr/u32-mbsnlen'.
22921         * modules/unistr/u32-mbsnlen-tests: New file.
22922         * tests/unistr/test-u32-mbsnlen.c: New file.
22923
22924         Tests for module 'unistr/u16-mbsnlen'.
22925         * modules/unistr/u16-mbsnlen-tests: New file.
22926         * tests/unistr/test-u16-mbsnlen.c: New file.
22927
22928         Tests for module 'unistr/u8-mbsnlen'.
22929         * modules/unistr/u8-mbsnlen-tests: New file.
22930         * tests/unistr/test-u8-mbsnlen.c: New file.
22931
22932         Tests for module 'unistr/u32-chr'.
22933         * modules/unistr/u32-chr-tests: New file.
22934         * tests/unistr/test-u32-chr.c: New file.
22935
22936         Tests for module 'unistr/u16-chr'.
22937         * modules/unistr/u16-chr-tests: New file.
22938         * tests/unistr/test-u16-chr.c: New file.
22939
22940         Tests for module 'unistr/u8-chr'.
22941         * modules/unistr/u8-chr-tests: New file.
22942         * tests/unistr/test-u8-chr.c: New file.
22943         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
22944
22945         Tests for module 'unistr/u32-cmp2'.
22946         * modules/unistr/u32-cmp2-tests: New file.
22947         * tests/unistr/test-u32-cmp2.c: New file.
22948
22949         Tests for module 'unistr/u16-cmp2'.
22950         * modules/unistr/u16-cmp2-tests: New file.
22951         * tests/unistr/test-u16-cmp2.c: New file.
22952
22953         Tests for module 'unistr/u8-cmp2'.
22954         * modules/unistr/u8-cmp2-tests: New file.
22955         * tests/unistr/test-u8-cmp2.c: New file.
22956         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
22957
22958         Tests for module 'unistr/u32-cmp'.
22959         * modules/unistr/u32-cmp-tests: New file.
22960         * tests/unistr/test-u32-cmp.c: New file.
22961
22962         Tests for module 'unistr/u16-cmp'.
22963         * modules/unistr/u16-cmp-tests: New file.
22964         * tests/unistr/test-u16-cmp.c: New file.
22965
22966         Tests for module 'unistr/u8-cmp'.
22967         * modules/unistr/u8-cmp-tests: New file.
22968         * tests/unistr/test-u8-cmp.c: New file.
22969         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
22970
22971         Tests for module 'unistr/u32-set'.
22972         * modules/unistr/u32-set-tests: New file.
22973         * tests/unistr/test-u32-set.c: New file.
22974
22975         Tests for module 'unistr/u16-set'.
22976         * modules/unistr/u16-set-tests: New file.
22977         * tests/unistr/test-u16-set.c: New file.
22978
22979         Tests for module 'unistr/u8-set'.
22980         * modules/unistr/u8-set-tests: New file.
22981         * tests/unistr/test-u8-set.c: New file.
22982         * tests/unistr/test-set.h: New file.
22983
22984         Tests for module 'unistr/u32-move'.
22985         * modules/unistr/u32-move-tests: New file.
22986         * tests/unistr/test-u32-move.c: New file.
22987
22988         Tests for module 'unistr/u16-move'.
22989         * modules/unistr/u16-move-tests: New file.
22990         * tests/unistr/test-u16-move.c: New file.
22991
22992         Tests for module 'unistr/u8-move'.
22993         * modules/unistr/u8-move-tests: New file.
22994         * tests/unistr/test-u8-move.c: New file.
22995         * tests/unistr/test-move.h: New file.
22996
22997         Tests for module 'unistr/u32-cpy'.
22998         * modules/unistr/u32-cpy-tests: New file.
22999         * tests/unistr/test-u32-cpy.c: New file.
23000
23001         Tests for module 'unistr/u16-cpy'.
23002         * modules/unistr/u16-cpy-tests: New file.
23003         * tests/unistr/test-u16-cpy.c: New file.
23004
23005         Tests for module 'unistr/u8-cpy'.
23006         * modules/unistr/u8-cpy-tests: New file.
23007         * tests/unistr/test-u8-cpy.c: New file.
23008         * tests/unistr/test-cpy.h: New file.
23009
23010 2010-01-09  Bruno Haible  <bruno@clisp.org>
23011
23012         Tests for module 'unistr/u32-uctomb'.
23013         * modules/unistr/u32-uctomb-tests: New file.
23014         * tests/unistr/test-u32-uctomb.c: New file.
23015
23016         Tests for module 'unistr/u16-uctomb'.
23017         * modules/unistr/u16-uctomb-tests: New file.
23018         * tests/unistr/test-u16-uctomb.c: New file.
23019
23020         Tests for module 'unistr/u8-uctomb'.
23021         * modules/unistr/u8-uctomb-tests: New file.
23022         * tests/unistr/test-u8-uctomb.c: New file.
23023
23024         Tests for module 'unistr/u32-mbtoucr'.
23025         * modules/unistr/u32-mbtoucr-tests: New file.
23026         * tests/unistr/test-u32-mbtoucr.c: New file.
23027
23028         Tests for module 'unistr/u16-mbtoucr'.
23029         * modules/unistr/u16-mbtoucr-tests: New file.
23030         * tests/unistr/test-u16-mbtoucr.c: New file.
23031
23032         Tests for module 'unistr/u8-mbtoucr'.
23033         * modules/unistr/u8-mbtoucr-tests: New file.
23034         * tests/unistr/test-u8-mbtoucr.c: New file.
23035
23036         Tests for module 'unistr/u32-mbtouc'.
23037         * modules/unistr/u32-mbtouc-tests: New file.
23038         * tests/unistr/test-u32-mbtouc.c: New file.
23039
23040         Tests for module 'unistr/u16-mbtouc'.
23041         * modules/unistr/u16-mbtouc-tests: New file.
23042         * tests/unistr/test-u16-mbtouc.c: New file.
23043
23044         Tests for module 'unistr/u8-mbtouc'.
23045         * modules/unistr/u8-mbtouc-tests: New file.
23046         * tests/unistr/test-u8-mbtouc.c: New file.
23047
23048         Tests for module 'unistr/u32-mbtouc-unsafe'.
23049         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
23050         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
23051         * tests/unistr/test-u32-mbtouc.h: New file.
23052
23053         Tests for module 'unistr/u16-mbtouc-unsafe'.
23054         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
23055         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
23056         * tests/unistr/test-u16-mbtouc.h: New file.
23057
23058         Tests for module 'unistr/u8-mbtouc-unsafe'.
23059         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
23060         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
23061         * tests/unistr/test-u8-mbtouc.h: New file.
23062
23063         Tests for module 'unistr/u32-mblen'.
23064         * modules/unistr/u32-mblen-tests: New file.
23065         * tests/unistr/test-u32-mblen.c: New file.
23066
23067         Tests for module 'unistr/u16-mblen'.
23068         * modules/unistr/u16-mblen-tests: New file.
23069         * tests/unistr/test-u16-mblen.c: New file.
23070
23071         Tests for module 'unistr/u8-mblen'.
23072         * modules/unistr/u8-mblen-tests: New file.
23073         * tests/unistr/test-u8-mblen.c: New file.
23074
23075         Tests for module 'unistr/u32-to-u16'.
23076         * modules/unistr/u32-to-u16-tests: New file.
23077         * tests/unistr/test-u32-to-u16.c: New file.
23078
23079         Tests for module 'unistr/u32-to-u8'.
23080         * modules/unistr/u32-to-u8-tests: New file.
23081         * tests/unistr/test-u32-to-u8.c: New file.
23082
23083         Tests for module 'unistr/u16-to-u32'.
23084         * modules/unistr/u16-to-u32-tests: New file.
23085         * tests/unistr/test-u16-to-u32.c: New file.
23086
23087         Tests for module 'unistr/u16-to-u8'.
23088         * modules/unistr/u16-to-u8-tests: New file.
23089         * tests/unistr/test-u16-to-u8.c: New file.
23090
23091         Tests for module 'unistr/u8-to-u32'.
23092         * modules/unistr/u8-to-u32-tests: New file.
23093         * tests/unistr/test-u8-to-u32.c: New file.
23094
23095         Tests for module 'unistr/u8-to-u16'.
23096         * modules/unistr/u8-to-u16-tests: New file.
23097         * tests/unistr/test-u8-to-u16.c: New file.
23098
23099         Tests for module 'unistr/u32-check'.
23100         * modules/unistr/u32-check-tests: New file.
23101         * tests/unistr/test-u32-check.c: New file.
23102
23103         Tests for module 'unistr/u16-check'.
23104         * modules/unistr/u16-check-tests: New file.
23105         * tests/unistr/test-u16-check.c: New file.
23106
23107         Tests for module 'unistr/u8-check'.
23108         * modules/unistr/u8-check-tests: New file.
23109         * tests/unistr/test-u8-check.c: New file.
23110
23111         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
23112         (category_equals): New function.
23113         (main): Add more tests.
23114         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
23115
23116         * tests/unictype/test-bidi_byname.c (main): Add more tests.
23117
23118 2010-01-10  Bruno Haible  <bruno@clisp.org>
23119
23120         unistr/u*-strcoll: Try harder to distinguish different strings.
23121         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
23122         compare s1 and s2 to see if they are different.
23123
23124 2010-01-10  Bruno Haible  <bruno@clisp.org>
23125
23126         unistr/u*-stpncpy: Fix the return value.
23127         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
23128         description of the return value consistent with stpncpy in glibc.
23129         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
23130         written non-NUL unit.
23131
23132 2010-01-10  Bruno Haible  <bruno@clisp.org>
23133
23134         unistr/u*-next: Add missing dependencies.
23135         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
23136         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
23137         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
23138
23139 2010-01-10  Bruno Haible  <bruno@clisp.org>
23140
23141         unistr/u8-mbsnlen: Fix return value for incomplete character.
23142         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
23143         u8_mblen.
23144         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
23145         Remove unistr/u8-mblen.
23146         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
23147         u16_mblen.
23148         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
23149         Remove unistr/u16-mblen.
23150
23151 2010-01-10  Bruno Haible  <bruno@clisp.org>
23152
23153         wchar: Fix compilation error when <wchar.h> is used from coreutils.
23154         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
23155         Reported by Brian Gough <bjg@gnu.org> and
23156         Chris Clayton <chris2553@googlemail.com> via
23157         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
23158
23159 2010-01-09  Bruno Haible  <bruno@clisp.org>
23160
23161         unistr/u16-to-u32: Reject invalid input.
23162         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
23163         u16_mbtouc.
23164         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
23165         Remove unistr/u16-mbtouc.
23166
23167         unistr/u16-to-u8: Reject invalid input.
23168         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
23169         u16_mbtouc.
23170         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
23171         Remove unistr/u16-mbtouc.
23172
23173         unistr/u8-to-u32: Reject invalid input.
23174         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
23175         u8_mbtouc.
23176         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
23177         Remove unistr/u8-mbtouc.
23178
23179         unistr/u8-to-u16: Reject invalid input.
23180         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
23181         u8_mbtouc.
23182         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
23183         Remove unistr/u8-mbtouc.
23184
23185 2010-01-09  Bruno Haible  <bruno@clisp.org>
23186
23187         Tests for module 'getlogin'.
23188         * modules/getlogin-tests: New file.
23189         * tests/test-getlogin.c: New file.
23190
23191         New module 'getlogin'.
23192         * lib/unistd.in.h (getlogin): New declaration.
23193         * lib/getlogin.c: New file.
23194         * m4/getlogin.m4: New file.
23195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
23196         HAVE_GETLOGIN.
23197         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
23198         HAVE_GETLOGIN.
23199         * modules/getlogin: New file.
23200         * doc/posix-functions/getlogin.texi: Mention the new module.
23201         Reported by John W. Eaton <jwe@gnu.org>.
23202
23203 2010-01-09  Bruno Haible  <bruno@clisp.org>
23204
23205         getlogin_r: Support for native Windows.
23206         * lib/getlogin_r.c: Include <windows.h>
23207         (getlogin_r): Implement for native Windows.
23208         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
23209         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
23210         via John W. Eaton <jwe@gnu.org>.
23211
23212 2010-01-09  Bruno Haible  <bruno@clisp.org>
23213
23214         getlogin_r: Small fixes.
23215         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
23216         succeeds.
23217         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
23218         before testing whether getlogin_r is declared. No need to set
23219         HAVE_DECL_GETLOGIN_R to 1.
23220         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
23221
23222 2010-01-09  Bruno Haible  <bruno@clisp.org>
23223
23224         * lib/unistd.in.h (getlogin_r): Add comment.
23225
23226 2010-01-09  Bruno Haible  <bruno@clisp.org>
23227
23228         Tests for module 'getlogin_r'.
23229         * modules/getlogin_r-tests: New file.
23230         * tests/test-getlogin_r.c: New file.
23231
23232 2010-01-09  Jim Meyering  <meyering@redhat.com>
23233
23234         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
23235         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
23236         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
23237
23238 2010-01-08  Simon Josefsson  <simon@josefsson.org>
23239
23240         * lib/dup2.c (rpl_dup2): Improve comment.
23241
23242 2010-01-08  Eric Blake  <ebb9@byu.net>
23243
23244         maint.mk: allow packages to add makefile @@ exceptions
23245         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
23246         (sc_makefile_check): Rename...
23247         (sc_makefile_at_at_check): ...to this, and use hook.
23248
23249         dup2: work around mingw bug
23250         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
23251         Reported by Simon Josefsson.
23252
23253 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23254
23255         glob: Fix C++ compilation.
23256         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23257         C++.
23258
23259 2010-01-07  Bruno Haible  <bruno@clisp.org>
23260
23261         Fix indentation of wctype.in.h, broken since 2007-01-06.
23262         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23263
23264 2010-01-07  Bruno Haible  <bruno@clisp.org>
23265
23266         mbslen: Avoid collision with system function.
23267         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23268         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23269         * m4/mbslen.m4: New file.
23270         * modules/mbslen (Files): Add it.
23271         (configure.ac): Invoke gl_MBSLEN.
23272         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23273         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23274         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23275         via Ian Beckwith <ianb@erislabs.net>.
23276
23277 2010-01-07  Bruno Haible  <bruno@clisp.org>
23278
23279         dirent: Document the last fix.
23280         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23281
23282 2010-01-07  Bruno Haible  <bruno@clisp.org>
23283
23284         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23285         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23286         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23287         va_list are defined.
23288         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23289         Reported by Eric Blake.
23290
23291 2010-01-07  Bruno Haible  <bruno@clisp.org>
23292
23293         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23294         * modules/xlist (Depends-on): Add 'list',
23295         * modules/xoset (Depends-on): Add 'oset'.
23296         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23297
23298 2010-01-07  Bruno Haible  <bruno@clisp.org>
23299
23300         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23301         * doc/posix-functions/strncasecmp.texi: Likewise.
23302
23303 2010-01-07  Bruno Haible  <bruno@clisp.org>
23304
23305         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23306
23307 2010-01-07  John W. Eaton  <jwe@octave.org>
23308
23309         wctype: allow C++ use
23310         * lib/wctype.in.h: Add extern "C" block for C++.
23311
23312 2010-01-06  Eric Blake  <ebb9@byu.net>
23313
23314         maint.mk: detect incorrect GFDL usage
23315         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23316
23317 2010-01-06  Jim Meyering  <meyering@redhat.com>
23318         and Eric Blake  <ebb9@byu.net>
23319
23320         maint.mk: ignore multi-line copyright in NEWS
23321         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23322
23323 2010-01-06  Eric Blake  <ebb9@byu.net>
23324
23325         select: add missing dependency
23326         * modules/select-tests (Depends-on): Move sockets dependency...
23327         * modules/select (Depends-on): ...here.
23328         Reported by Ian Beckwith.
23329
23330         doc: regenerate INSTALL
23331         * doc/INSTALL: Reflect recent autoconf update.
23332         * doc/INSTALL.ISO: Likewise.
23333         * doc/INSTALL.UTF-8: Likewise.
23334
23335         pread: fix compilation on glibc
23336         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23337         Reported by Ralf Wildenhues.
23338
23339         dirent: fix test failure
23340         * lib/dirent.in.h (includes): Guarantee ino_t.
23341         Reported by Ralf Wildenhues.
23342
23343 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23344
23345         linkat, renameat: avoid bad free
23346         * lib/at-func2.c (at_func2): Fix typo.
23347         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23348
23349 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23350
23351         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23352         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23353         to avoid failure of symlink test later.
23354
23355 2010-01-06  Eric Blake  <ebb9@byu.net>
23356
23357         stdio, unistd: guarantee ssize_t
23358         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23359         2008 are exposed when needed.
23360         * lib/stdio.in.h (includes): Likewise.
23361         Reported by Ralf Wildenhues.
23362
23363 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23364
23365         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23366         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23367         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23368
23369 2010-01-06  Jim Meyering  <meyering@redhat.com>
23370
23371         readtokens: this module *does* require xalloc.h
23372         It uses only functions that were omitted by the old syntax-check rule.
23373         * lib/readtokens.c: Include "xalloc.h" once again.
23374         * modules/readtokens (Depends-on): Add xalloc.
23375         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23376
23377 2010-01-05  Eric Blake  <ebb9@byu.net>
23378
23379         maint: support 'make announcement' from a VPATH build
23380         * top/maint.mk (announcement): Look for correct NEWS file.
23381
23382 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23383
23384         utimens (fdutimens): ignore a negative FD, per contract
23385         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23386         when we have a valid file descriptor.  Otherwise, using a brand
23387         new glibc (with just-patched futimens that now fails with EBADF)
23388         would cause this function to fail with ENOSYS.
23389         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23390         See also http://bugzilla.redhat.com/552320.
23391
23392 2010-01-05  Eric Blake  <ebb9@byu.net>
23393
23394         strcase: document what it provides
23395         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23396         gnulib module.
23397         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23398         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23399
23400 2010-01-05  Jim Meyering  <meyering@redhat.com>
23401
23402         maint: remove useless inclusions of "xalloc.h"
23403         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23404         * lib/readtokens.c: Likewise.
23405         * lib/same.c: Likewise.
23406         * modules/getloadavg (Depends-on): Remove xalloc.
23407         * modules/readtokens: Likewise.
23408         * modules/same: Likewise.
23409
23410         maint.mk: include 4 more function names in alloca.h-checking regexp
23411         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23412         regexp.  Before, we would give a false-positive (saying alloca.h
23413         is included unnecessarily) when the only uses involved omitted symbols.
23414
23415         xalloc.h: use consistent formatting
23416         * lib/xalloc.h: Move declarations to start in the first column.
23417
23418 2010-01-05  Eric Blake  <ebb9@byu.net>
23419
23420         mkdir: avoid xalloc
23421         * lib/mkdir.c (includes): Drop unused header.
23422         Reported by John W. Eaton.
23423
23424 2010-01-04  Jim Meyering  <meyering@redhat.com>
23425
23426         nl_langinfo: avoid configure-time syntax error
23427         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23428         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23429         the empty string.  Don't let that provoke a shell syntax error.
23430
23431         regcomp, regexec, fnmatch: avoid array bounds read error
23432         * lib/regcomp.c (build_equiv_class): From glibc:
23433         Use only the low 24 bits of a findidx return value as an index
23434         into the weights array.  Patch by Ulrich Drepper:
23435         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23436         * lib/regexec.c (check_node_accept_bytes): Likewise.
23437         * lib/fnmatch_loop.c (FCT): Likewise.
23438
23439         regcomp: skip collseq lookup when there are no rules
23440         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23441         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23442
23443         regcomp: recognize ill-formed { } expressions
23444         * lib/regcomp.c (parse_dup_op): From glibc:
23445         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23446
23447         regcomp: fix typo in comment
23448         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23449         s/satisfy/satisfies/.
23450
23451         regcomp: sync from glibc: remove dead store
23452         * lib/regcomp.c (duplicate_node_closure): Remove useless
23453         search_duplicated_node call and dead store.
23454
23455         regcomp: sync from glibc; always use nl_langinfo
23456         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23457         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23458         * modules/regex (Depends-on): Add nl_langinfo.
23459
23460 2010-01-04  Eric Blake  <ebb9@byu.net>
23461
23462         fdopendir: fix configure test
23463         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23464
23465 2010-01-01  Bruno Haible  <bruno@clisp.org>
23466
23467         wchar: Remove unused configure check.
23468         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23469
23470 2010-01-01  Eric Blake  <ebb9@byu.net>
23471
23472         headers: make check of system header explicit
23473         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
23474         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
23475         ourselves.
23476         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23477         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23478         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23479         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
23480         internals.
23481         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
23482         missing.
23483         Suggested by Bruno Haible.
23484
23485 2010-01-01  Jim Meyering  <meyering@redhat.com>
23486
23487         ChangeLog: tweak to eliminate unnecessary copyright line
23488         * ChangeLog: Remove a copyright line that was mistakenly updated
23489         by today's update-copyright run.  Reported by Eric Blake.
23490
23491         test-update-copyright: don't let envvar setting cause test failure
23492         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23493
23494 2010-01-01  Bruno Haible  <bruno@clisp.org>
23495
23496         localename: Avoid gcc warning.
23497         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
23498         function if it is not used.
23499
23500 2010-01-01  Jim Meyering  <meyering@redhat.com>
23501
23502         update nearly all FSF copyright year lists to include 2010
23503         Use the same procedure as for 2009, outlined in
23504         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
23505
23506         version-etc: set COPYRIGHT_YEAR to 2010
23507         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
23508
23509 2009-12-31  Eric Blake  <ebb9@byu.net>
23510
23511         doc: correct availability of cygwin 1.5.x getopt
23512         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
23513         variables.
23514         * doc/posix-functions/opterr.texi (opterr): Likewise.
23515         * doc/posix-functions/optind.texi (optind): Likewise.
23516         * doc/posix-functions/optopt.texi (optopt): Likewise.
23517         * doc/posix-functions/tzname.texi (tzname): Likewise.
23518
23519         openat: update maintainer
23520         * modules/openat (Maintainer): Add myself.
23521
23522         utimens: avoid shadowing warning
23523         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
23524         buffers into one, to avoid shadowing, as well as avoiding a
23525         redundant stat.
23526         Reported by Jim Meyering.
23527
23528         test-dup2: avoid compiler warning
23529         * tests/test-dup2.c (is_inheritable): Only define if used.
23530
23531 2010-01-01  Bruno Haible  <bruno@clisp.org>
23532
23533         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
23534         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
23535         defined, use wctomb instead of wcrtomb.
23536
23537 2010-01-01  Bruno Haible  <bruno@clisp.org>
23538
23539         iconv: Reject native Solaris iconv.
23540         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
23541         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
23542
23543 2009-12-31  Bruno Haible  <bruno@clisp.org>
23544
23545         * tests/test-signal.c (main): Remove test of 'SIG'.
23546
23547 2009-12-31  Bruno Haible  <bruno@clisp.org>
23548
23549         spawn: Fix incomplete fix.
23550         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23551         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23552         warnings for GNULIB_POSIXCHECK again.
23553         Reported by Eric Blake.
23554
23555 2009-12-31  Bruno Haible  <bruno@clisp.org>
23556
23557         Avoid namespace pollution on glibc systems.
23558         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23559         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
23560         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
23561         glibc systems.
23562
23563 2009-12-31  Bruno Haible  <bruno@clisp.org>
23564
23565         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23566         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23567         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23568         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23569         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23570         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23571         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23572
23573 2009-12-31  Bruno Haible  <bruno@clisp.org>
23574
23575         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23576         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23577         afterwards.
23578
23579 2009-12-31  Bruno Haible  <bruno@clisp.org>
23580
23581         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23582         SYS_UTSNAME_H.
23583
23584 2009-12-31  Bruno Haible  <bruno@clisp.org>
23585
23586         spawn: Fix misapplied patch.
23587         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23588         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23589         warnings for GNULIB_POSIXCHECK.
23590
23591 2009-12-31  Bruno Haible  <bruno@clisp.org>
23592
23593         times: Update after sys_times changed.
23594         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23595         * modules/times (Files): Add it.
23596         (configure.ac): Invoke gl_FUNC_TIMES.
23597
23598 2009-12-31  Bruno Haible  <bruno@clisp.org>
23599
23600         Use AC_C_INLINE where necessary.
23601         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23602         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23603         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23604         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23605         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23606         * m4/mbiter.m4 (gl_MBITER): Likewise.
23607         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23608         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23609         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23610         * modules/u64 (configure.ac): Likewise.
23611
23612 2009-12-31  Bruno Haible  <bruno@clisp.org>
23613
23614         Use AC_C_INLINE instead of module 'inline' where possible.
23615         * modules/inline (Description): Clarify purpose.
23616         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23617         * modules/count-one-bits (Depends-on): Remove inline.
23618         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23619         * modules/openat (Depends-on): Remove inline.
23620         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23621         instead of depending on module 'inline'.
23622         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23623         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23624         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23625         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23626         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23627         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23628         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23629         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23630         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23631         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23632         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23633         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23634         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23635         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
23636         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
23637         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
23638         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
23639         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
23640         Likewise.
23641         * modules/unictype/property-ascii-hex-digit (Depends-on,
23642         configure.ac): Likewise.
23643         * modules/unictype/property-bidi-arabic-digit (Depends-on,
23644         configure.ac): Likewise.
23645         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
23646         configure.ac): Likewise.
23647         * modules/unictype/property-bidi-block-separator (Depends-on,
23648         configure.ac): Likewise.
23649         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
23650         configure.ac): Likewise.
23651         * modules/unictype/property-bidi-common-separator (Depends-on,
23652         configure.ac): Likewise.
23653         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
23654         Likewise.
23655         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
23656         configure.ac): Likewise.
23657         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
23658         configure.ac): Likewise.
23659         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
23660         configure.ac): Likewise.
23661         * modules/unictype/property-bidi-european-digit (Depends-on,
23662         configure.ac): Likewise.
23663         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
23664         configure.ac): Likewise.
23665         * modules/unictype/property-bidi-left-to-right (Depends-on,
23666         configure.ac): Likewise.
23667         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
23668         configure.ac): Likewise.
23669         * modules/unictype/property-bidi-other-neutral (Depends-on,
23670         configure.ac): Likewise.
23671         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
23672         Likewise.
23673         * modules/unictype/property-bidi-segment-separator (Depends-on,
23674         configure.ac): Likewise.
23675         * modules/unictype/property-bidi-whitespace (Depends-on,
23676         configure.ac): Likewise.
23677         * modules/unictype/property-combining (Depends-on, configure.ac):
23678         Likewise.
23679         * modules/unictype/property-composite (Depends-on, configure.ac):
23680         Likewise.
23681         * modules/unictype/property-currency-symbol (Depends-on,
23682         configure.ac): Likewise.
23683         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
23684         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
23685         Likewise.
23686         * modules/unictype/property-default-ignorable-code-point (Depends-on,
23687         configure.ac): Likewise.
23688         * modules/unictype/property-deprecated (Depends-on, configure.ac):
23689         Likewise.
23690         * modules/unictype/property-diacritic (Depends-on, configure.ac):
23691         Likewise.
23692         * modules/unictype/property-extender (Depends-on, configure.ac):
23693         Likewise.
23694         * modules/unictype/property-format-control (Depends-on, configure.ac):
23695         Likewise.
23696         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
23697         Likewise.
23698         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
23699         Likewise.
23700         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
23701         Likewise.
23702         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
23703         Likewise.
23704         * modules/unictype/property-hyphen (Depends-on, configure.ac):
23705         Likewise.
23706         * modules/unictype/property-id-continue (Depends-on, configure.ac):
23707         Likewise.
23708         * modules/unictype/property-id-start (Depends-on, configure.ac):
23709         Likewise.
23710         * modules/unictype/property-ideographic (Depends-on, configure.ac):
23711         Likewise.
23712         * modules/unictype/property-ids-binary-operator (Depends-on,
23713         configure.ac): Likewise.
23714         * modules/unictype/property-ids-trinary-operator (Depends-on,
23715         configure.ac): Likewise.
23716         * modules/unictype/property-ignorable-control (Depends-on,
23717         configure.ac): Likewise.
23718         * modules/unictype/property-iso-control (Depends-on, configure.ac):
23719         Likewise.
23720         * modules/unictype/property-join-control (Depends-on, configure.ac):
23721         Likewise.
23722         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
23723         Likewise.
23724         * modules/unictype/property-line-separator (Depends-on, configure.ac):
23725         Likewise.
23726         * modules/unictype/property-logical-order-exception (Depends-on,
23727         configure.ac): Likewise.
23728         * modules/unictype/property-lowercase (Depends-on, configure.ac):
23729         Likewise.
23730         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
23731         * modules/unictype/property-non-break (Depends-on, configure.ac):
23732         Likewise.
23733         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
23734         Likewise.
23735         * modules/unictype/property-numeric (Depends-on, configure.ac):
23736         Likewise.
23737         * modules/unictype/property-other-alphabetic (Depends-on,
23738         configure.ac): Likewise.
23739         * modules/unictype/property-other-default-ignorable-code-point
23740         (Depends-on, configure.ac): Likewise.
23741         * modules/unictype/property-other-grapheme-extend (Depends-on,
23742         configure.ac): Likewise.
23743         * modules/unictype/property-other-id-continue (Depends-on,
23744         configure.ac): Likewise.
23745         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
23746         Likewise.
23747         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
23748         Likewise.
23749         * modules/unictype/property-other-math (Depends-on, configure.ac):
23750         Likewise.
23751         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
23752         Likewise.
23753         * modules/unictype/property-paired-punctuation (Depends-on,
23754         configure.ac): Likewise.
23755         * modules/unictype/property-paragraph-separator (Depends-on,
23756         configure.ac): Likewise.
23757         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
23758         Likewise.
23759         * modules/unictype/property-pattern-white-space (Depends-on,
23760         configure.ac): Likewise.
23761         * modules/unictype/property-private-use (Depends-on, configure.ac):
23762         Likewise.
23763         * modules/unictype/property-punctuation (Depends-on, configure.ac):
23764         Likewise.
23765         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
23766         Likewise.
23767         * modules/unictype/property-radical (Depends-on, configure.ac):
23768         Likewise.
23769         * modules/unictype/property-sentence-terminal (Depends-on,
23770         configure.ac): Likewise.
23771         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
23772         Likewise.
23773         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
23774         * modules/unictype/property-terminal-punctuation (Depends-on,
23775         configure.ac): Likewise.
23776         * modules/unictype/property-titlecase (Depends-on, configure.ac):
23777         Likewise.
23778         * modules/unictype/property-unassigned-code-value (Depends-on,
23779         configure.ac): Likewise.
23780         * modules/unictype/property-unified-ideograph (Depends-on,
23781         configure.ac): Likewise.
23782         * modules/unictype/property-uppercase (Depends-on, configure.ac):
23783         Likewise.
23784         * modules/unictype/property-variation-selector (Depends-on,
23785         configure.ac): Likewise.
23786         * modules/unictype/property-white-space (Depends-on, configure.ac):
23787         Likewise.
23788         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
23789         Likewise.
23790         * modules/unictype/property-xid-start (Depends-on, configure.ac):
23791         Likewise.
23792         * modules/unictype/property-zero-width (Depends-on, configure.ac):
23793         Likewise.
23794         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
23795         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
23796         Likewise.
23797
23798 2009-12-31  Bruno Haible  <bruno@clisp.org>
23799
23800         Remove unnecessary AC_C_INLINE invocation.
23801         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
23802         since 2009-08-21.
23803
23804 2009-12-31  Jim Meyering  <meyering@redhat.com>
23805
23806         maint.mk: don't require explicit gpg_key_ID in cfg.mk
23807         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
23808         With this change, we can all remove the gpg_key_ID = ... definition
23809         from our respective cfg.mk files.
23810
23811         maint.mk: create announcement template in ~/, not in /tmp
23812         * top/maint.mk (emit_upload_commands): Adjust.
23813         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
23814         Remove temporary file, .ci-msg.
23815
23816 2009-12-31  Eric Blake  <ebb9@byu.net>
23817
23818         link-warning: always build headers with link warnings
23819         * modules/arpa_inet (Makefile.am): Always build replacement
23820         header.
23821         * modules/ctype (Makefile.am): Likewise.
23822         * modules/dirent (Makefile.am): Likewise.
23823         * modules/inttypes (Makefile.am): Likewise.
23824         * modules/langinfo (Makefile.am): Likewise.
23825         * modules/locale (Makefile.am): Likewise.
23826         * modules/spawn (Makefile.am): Likewise.
23827         * modules/sys_file (Makefile.am): Likewise.
23828         * modules/sys_ioctl (Makefile.am): Likewise.
23829         * modules/sys_select (Makefile.am): Likewise.
23830         * modules/sys_socket (Makefile.am): Likewise.
23831         * modules/sys_times (Makefile.am): Likewise.
23832         * modules/sys_utsname (Makefile.am): Likewise.
23833         * modules/sys_wait (Makefile.am): Likewise.
23834         * modules/wchar (Makefile.am): Likewise.
23835         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
23836         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
23837         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
23838         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
23839         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
23840         Likewise.
23841         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23842         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23843         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
23844         Likewise.
23845         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
23846         Likewise.
23847         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23848         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
23849         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
23850         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23851         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23852         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23853         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23854         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
23855         (gl_WCHAR_H_DEFAULTS): Likewise.
23856
23857 2009-12-31  Eric Blake  <ebb9@byu.net>
23858
23859         signal, spawn: use link warnings
23860         * lib/signal.in.h (sigset_t): Make unconditional.
23861         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
23862         (sigpending, sigprocmask, sigaction): Add link warnings.
23863         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
23864         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
23865         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
23866         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
23867         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
23868         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
23869         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
23870         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
23871         (posix_spawn_file_actions_destroy)
23872         (posix_spawn_file_actions_addopen)
23873         (posix_spawn_file_actions_addclose)
23874         (posix_spawn_file_actions_adddup2): Likewise.
23875         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
23876         * tests/test-signal.c (main): Enhance test.
23877
23878         spawn: improve wrapper support
23879         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
23880         (gl_SPAWN_H_DEFAULTS): New defaults.
23881         * modules/spawn (Makefile.am): Substitute them.
23882         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
23883         Only declare if missing or broken.
23884
23885         sys_times, sys_utsname: use include_next
23886         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
23887         header.
23888         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
23889         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23890         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23891         * modules/sys_times (Depends-on): Add include_next.
23892         (Makefile.am): Substitute additional values.
23893         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23894         * lib/sys_times.in.h (includes): Include native header, if
23895         available.
23896         * lib/sys_utsname.in.h (includes): Likewise.
23897         * tests/test-sys_times.c (main): Enhance test.
23898
23899         fdutimensat: revert prior patch
23900         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
23901         utimens.h.
23902         Reported by Bruno Haible.
23903
23904 2009-12-30  Eric Blake  <ebb9@byu.net>
23905
23906         sys_wait: drop link-warning dependency
23907         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
23908         link-warning efforts.
23909         * lib/sys_wait.in.h: Likewise.
23910
23911         fdutimensat: remove bogus dependency
23912         * modules/fdutimensat (Depends-on): Drop inline.
23913
23914         unistd: fix typo
23915         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
23916
23917 2009-12-30  Bruno Haible  <bruno@clisp.org>
23918
23919         Fix compilation error with Solaris cc.
23920         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
23921         * lib/unicase/u16-is-invariant.c: Likewise.
23922         * lib/unicase/u32-is-invariant.c: Likewise.
23923         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23924
23925 2009-12-30  Bruno Haible  <bruno@clisp.org>
23926
23927         Fix test crash.
23928         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
23929         locales.
23930         Reported by Simon Josefsson <simon@josefsson.org>.
23931
23932 2009-12-30  Bruno Haible  <bruno@clisp.org>
23933
23934         Fix compilation error on most platforms.
23935         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
23936         Reported by Simon Josefsson <simon@josefsson.org>
23937         and Nelson H. F. Beebe <beebe@math.utah.edu>.
23938
23939 2009-12-30  Eric Blake  <ebb9@byu.net>
23940
23941         futimens, utimensat: work around ntfs-3g bug
23942         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
23943         a ctime bug is present, and expand workaround to cover ntfs-3g.
23944         * lib/utimens.c (fdutimens, lutimens): Likewise.
23945         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
23946         (validate_timespec): Adjust return value.
23947         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
23948         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23949         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
23950
23951 2009-12-29  Eric Blake  <ebb9@byu.net>
23952
23953         link-warning: make usage consistent
23954         * modules/ctype (Depends-on): Add link-warning.
23955         (Makefile.am): Update rules accordingly.
23956         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23957         * modules/locale (Depends-on, Makefile.am): Likewise.
23958         * modules/sys_file (Makefile.am): Likewise.
23959         * modules/getopt-posix (Makefile.am): Delete unused link warning
23960         efforts.
23961         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
23962         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
23963         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
23964         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
23965
23966         stdio: remove unused variables
23967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
23968         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
23969         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23970
23971         tests: test more substitute headers
23972         * modules/ctype-tests: New file.
23973         * modules/dirent-tests: Likewise.
23974         * modules/spawn-tests: Likewise.
23975         * modules/sys_file-tests: Likewise.
23976         * modules/sys_ioctl-tests: Likewise.
23977         * modules/sys_wait-tests: Likewise.
23978         * tests/test-ctype.c: Likewise.
23979         * tests/test-dirent.c: Likewise.
23980         * tests/test-spawn.c: Likewise.
23981         * tests/test-sys_file.c: Likewise.
23982         * tests/test-sys_ioctl.c: Likewise.
23983         * tests/test-sys_wait.c: Likewise.
23984         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
23985         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
23986         whether or not flock is in use.
23987
23988         tests: remove License section from module
23989         * modules/arpa_inet-tests: Remove unneeded section.
23990         * modules/byteswap-tests: Likewise.
23991         * modules/ceilf-tests: Likewise.
23992         * modules/ceill-tests: Likewise.
23993         * modules/crypto/des-tests: Likewise.
23994         * modules/crypto/gc-arcfour-tests: Likewise.
23995         * modules/crypto/gc-arctwo-tests: Likewise.
23996         * modules/crypto/gc-des-tests: Likewise.
23997         * modules/crypto/gc-hmac-md5-tests: Likewise.
23998         * modules/crypto/gc-hmac-sha1-tests: Likewise.
23999         * modules/crypto/gc-md2-tests: Likewise.
24000         * modules/crypto/gc-md4-tests: Likewise.
24001         * modules/crypto/gc-md5-tests: Likewise.
24002         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
24003         * modules/crypto/gc-rijndael-tests: Likewise.
24004         * modules/crypto/gc-sha1-tests: Likewise.
24005         * modules/crypto/gc-tests: Likewise.
24006         * modules/crypto/md2-tests: Likewise.
24007         * modules/crypto/md4-tests: Likewise.
24008         * modules/fcntl-h-tests: Likewise.
24009         * modules/floorf-tests: Likewise.
24010         * modules/floorl-tests: Likewise.
24011         * modules/frexp-nolibm-tests: Likewise.
24012         * modules/frexp-tests: Likewise.
24013         * modules/frexpl-nolibm-tests: Likewise.
24014         * modules/frexpl-tests: Likewise.
24015         * modules/getaddrinfo-tests: Likewise.
24016         * modules/inttypes-tests: Likewise.
24017         * modules/isfinite-tests: Likewise.
24018         * modules/isinf-tests: Likewise.
24019         * modules/ldexpl-tests: Likewise.
24020         * modules/locale-tests: Likewise.
24021         * modules/math-tests: Likewise.
24022         * modules/netdb-tests: Likewise.
24023         * modules/netinet_in-tests: Likewise.
24024         * modules/printf-frexp-tests: Likewise.
24025         * modules/printf-frexpl-tests: Likewise.
24026         * modules/priv-set-tests: Likewise.
24027         * modules/random_r-tests: Likewise.
24028         * modules/round-tests: Likewise.
24029         * modules/roundf-tests: Likewise.
24030         * modules/roundl-tests: Likewise.
24031         * modules/search-tests: Likewise.
24032         * modules/select-tests: Likewise.
24033         * modules/signal-tests: Likewise.
24034         * modules/stdbool-tests: Likewise.
24035         * modules/stddef-tests: Likewise.
24036         * modules/stdint-tests: Likewise.
24037         * modules/stdio-tests: Likewise.
24038         * modules/stdlib-tests: Likewise.
24039         * modules/string-tests: Likewise.
24040         * modules/strings-tests: Likewise.
24041         * modules/sys_select-tests: Likewise.
24042         * modules/sys_socket-tests: Likewise.
24043         * modules/sys_stat-tests: Likewise.
24044         * modules/sys_time-tests: Likewise.
24045         * modules/sys_utsname-tests: Likewise.
24046         * modules/sysexits-tests: Likewise.
24047         * modules/time-tests: Likewise.
24048         * modules/trunc-tests: Likewise.
24049         * modules/truncf-tests: Likewise.
24050         * modules/truncl-tests: Likewise.
24051         * modules/tsearch-tests: Likewise.
24052         * modules/unistd-tests: Likewise.
24053         * modules/wchar-tests: Likewise.
24054         * modules/wctype-tests: Likewise.
24055
24056         tests: fix license on several tests
24057         * tests/test-des.c: Update to GPLv3+.
24058         * tests/test-flock.c: Likewise.
24059         * tests/test-fsync.c: Likewise.
24060         * tests/test-futimens.h: Likewise.
24061         * tests/test-gc-arcfour.c: Likewise.
24062         * tests/test-gc-arctwo.c: Likewise.
24063         * tests/test-gc-des.c: Likewise.
24064         * tests/test-gc-hmac-md5.c: Likewise.
24065         * tests/test-gc-hmac-sha1.c: Likewise.
24066         * tests/test-gc-md2.c: Likewise.
24067         * tests/test-gc-md4.c: Likewise.
24068         * tests/test-gc-md5.c: Likewise.
24069         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24070         * tests/test-gc-rijndael.c: Likewise.
24071         * tests/test-gc-sha1.c: Likewise.
24072         * tests/test-gc.c: Likewise.
24073         * tests/test-getcwd.c: Likewise.
24074         * tests/test-link.c: Likewise.
24075         * tests/test-link.h: Likewise.
24076         * tests/test-lutimens.h: Likewise.
24077         * tests/test-md2.c: Likewise.
24078         * tests/test-md4.c: Likewise.
24079         * tests/test-mkdir.h: Likewise.
24080         * tests/test-rename.c: Likewise.
24081         * tests/test-rename.h: Likewise.
24082         * tests/test-safe-alloc.c: Likewise.
24083         * tests/test-utimens-common.h: Likewise.
24084         * tests/test-utimens.h: Likewise.
24085
24086         maint: sync license texts
24087         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
24088         * doc/gpl-3.0.texi: Revert copyright year update.
24089         * doc/lgpl-3.0.texi: Likewise.
24090
24091 2009-12-29  Jim Meyering  <meyering@redhat.com>
24092
24093         update nearly all FSF copyright year lists to include 2009
24094         The files named by the following are exempted:
24095             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
24096               test -f "$dst" && { echo "$dst"; continue; }
24097               test -d "$dst" || continue
24098               echo "$dst"/$(basename "$src")
24099             done > exempt
24100             git ls-files tests/unictype >> exempt
24101         In the remaining files, convert to all-interval notation if
24102         - there is already at least one year interval like 2000-2003
24103         - the file is maintained by me
24104         - the file is in lib/uni*/, where that style already prevails
24105         Otherwise, use update-copyright's default.
24106
24107 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24108         and Eric Blake  <ebb9@byu.net>
24109
24110         tests: don't require debug system() to pass
24111         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
24112         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24113         * tests/test-unlink.h (test_unlink_func): Likewise.
24114         * tests/test-fstatat.c (main): ...into callers.
24115         * tests/test-lstat.c (main): Likewise.
24116         * tests/test-rmdir.c (main): Likewise.
24117         * tests/test-unlink.c (main): Likewise.
24118         * tests/test-unlinkat.c (main): Likewise.
24119         * tests/test-areadlink-with-size.c (main): Don't require a
24120         debug-only system call to pass, aiding cross-testing to mingw.
24121         * tests/test-areadlink.c (main): Likewise.
24122         * tests/test-areadlinkat-with-size.c (main): Likewise.
24123         * tests/test-areadlinkat.c (main): Likewise.
24124         * tests/test-canonicalize-lgpl.c (main): Likewise.
24125         * tests/test-canonicalize.c (main): Likewise.
24126         * tests/test-chown.c (main): Likewise.
24127         * tests/test-fchownat.c (main): Likewise.
24128         * tests/test-lchown.c (main): Likewise.
24129         * tests/test-fdutimensat.c (main): Likewise.
24130         * tests/test-futimens.c (main): Likewise.
24131         * tests/test-link.c (main): Likewise.
24132         * tests/test-linkat.c (main): Likewise.
24133         * tests/test-mkdir.c (main): Likewise.
24134         * tests/test-mkdirat.c (main): Likewise.
24135         * tests/test-mkfifo.c (main): Likewise.
24136         * tests/test-mkfifoat.c (main): Likewise.
24137         * tests/test-mknod.c (main): Likewise.
24138         * tests/test-readlink.c (main): Likewise.
24139         * tests/test-remove.c (main): Likewise.
24140         * tests/test-rename.c (main): Likewise.
24141         * tests/test-renameat.c (main): Likewise.
24142         * tests/test-symlink.c (main): Likewise.
24143         * tests/test-symlinkat.c (main): Likewise.
24144         * tests/test-utimens.c (main): Likewise.
24145         * tests/test-utimensat.c (main): Likewise.
24146
24147 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24148
24149         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
24150         on $(UNUSED_PARAMETER_H) to avoid build failure.
24151
24152 2009-12-28  Jim Meyering  <meyering@redhat.com>
24153
24154         update-copyright: you may specify a max. line length other than 72
24155         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24156
24157         maint: use consistent FSF copyright line syntax
24158         * lib/posixtm.c: Add missing comma in FSF copyright line.
24159         * lib/posixtm.h: Likewise.
24160         * lib/getugroups.c: Add missing ", Inc.".
24161
24162         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
24163         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
24164         FSF copyright line.  Remove trailing blanks.
24165
24166 2009-12-28  Eric Blake  <ebb9@byu.net>
24167
24168         test-dup2: reduce dependencies
24169         * modules/cloexec (Configure.ac): Set witness.
24170         * modules/dup2-tests (Depends-on): Drop cloexec.
24171         * tests/test-dup2.c (main): Skip portion of test if cloexec module
24172         not present.
24173         Suggested by Bruno Haible.
24174
24175 2009-12-26  Bruno Haible  <bruno@clisp.org>
24176
24177         Remove an unneeded dependency.
24178         * modules/fseterr (Depends-on): Remove dup2.
24179
24180 2009-12-26  Eric Blake  <ebb9@byu.net>
24181
24182         tests: use macros.h in more places
24183         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
24184         (ASSERT_STREAM): Provide default of stderr.
24185         * tests/test-dirent-safer.c: Include macros.h, using alternate
24186         stream for assertions.
24187         * tests/test-dup-safer.c: Likewise.
24188         * tests/test-freopen-safer.c: Likewise.
24189         * tests/test-getopt.c: Likewise.
24190         * tests/test-openat-safer.c: Likewise.
24191         * tests/test-pipe.c: Likewise.
24192         * tests/test-popen-safer.c: Likewise.
24193         * modules/dirent-safer-tests (Files): Include macros.h.
24194         * modules/unistd-safer-tests (Files): Likewise.
24195         * modules/freopen-safer-tests (Files): Likewise.
24196         * modules/getopt-posix-tests (Files): Likewise.
24197         * modules/openat-safer-tests (Files): Likewise.
24198         * modules/pipe-tests (Files): Likewise.
24199
24200 2009-12-26  Bruno Haible  <bruno@clisp.org>
24201
24202         javacomp: Portability fix.
24203         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
24204         that it also works on Solaris.
24205
24206 2009-12-26  Bruno Haible  <bruno@clisp.org>
24207
24208         localename: Fix storage allocation of gl_locale_name_thread's result.
24209         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
24210         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
24211         all platforms that have 'uselocale'.
24212         (gl_locale_name_thread_unsafe): New function, extracted from
24213         gl_locale_name_thread.
24214         (gl_locale_name_thread): Call struniq on all platforms that have
24215         'uselocale'.
24216         * tests/test-localename.c (test_locale_name_thread): Check that the
24217         resulting strings are permanently allocated.
24218         * modules/localename-tests (Depends-on): Add strdup.
24219
24220 2009-12-26  Bruno Haible  <bruno@clisp.org>
24221
24222         * tests/test-localename.c (categories): Fill in the strings.
24223
24224 2009-12-26  Jim Meyering  <meyering@redhat.com>
24225
24226         isdir: complete the removal of m4/isdir.m4
24227         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
24228
24229         isdir: clean up, since at least grep still uses it
24230         * lib/isdir.c: Include "isdir.h".
24231         (S_ISDIR): Remove now-unneeded definition.
24232         * modules/isdir (Files): Add lib/isdir.h.
24233         * lib/isdir.h: New file, with declaration.
24234         * m4/isdir.m4: Remove file -- unneeded.
24235
24236 2009-12-25  Bruno Haible  <bruno@clisp.org>
24237
24238         selinux-h: Make generated .h files standalone.
24239         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
24240         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
24241         * lib/se-selinux.in.h: Likewise.
24242         * modules/selinux-h (Depends-on): Add unused-parameter.
24243         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
24244         selinux/selinux.h and selinux/context.h.
24245         Suggested by Eric Blake.
24246
24247 2009-12-25  Bruno Haible  <bruno@clisp.org>
24248
24249         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
24250         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
24251         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
24252         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24253         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24254
24255 2009-12-24  Bruno Haible  <bruno@clisp.org>
24256
24257         openat: Fix warning.
24258         * lib/openat-proc.c: Include <unistd.h>.
24259
24260 2009-12-24  Bruno Haible  <bruno@clisp.org>
24261
24262         New module 'unused-parameter'.
24263         * build-aux/unused-parameter.h: New file, extracted from earlier
24264         gnulib-common.m4.
24265         * modules/unused-parameter: New file.
24266         * lib/unistr.h: Include unused-parameter.h.
24267         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24268         _GL_UNUSED.
24269         * modules/unistr/base (Depends-on): Add unused-parameter.
24270
24271 2009-12-24  Bruno Haible  <bruno@clisp.org>
24272
24273         Add missing dependencies to 'extensions' module.
24274         * m4/extensions.m4: Add comment.
24275         * modules/accept4 (Depends-on): Add extensions.
24276         * modules/dup3 (Depends-on): Likewise.
24277         * modules/fcntl (Depends-on): Likewise.
24278         * modules/futimens (Depends-on): Likewise.
24279         * modules/mknod (Depends-on): Likewise.
24280         * modules/pipe2 (Depends-on): Likewise.
24281         * modules/stat-time (Depends-on): Likewise.
24282         * modules/strcasestr-simple (Depends-on): Likewise.
24283         * modules/strsignal (Depends-on): Likewise.
24284         * modules/utimensat (Depends-on): Likewise.
24285         * modules/localcharset (Depends-on): Likewise. Needed because of
24286         gl_FCNTL_O_FLAGS.
24287         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24288         AC_TYPE_MBSTATE_T.
24289         * modules/wcsnrtombs (Depends-on): Likewise.
24290         * modules/wcsrtombs (Depends-on): Likewise.
24291
24292 2009-12-24  Bruno Haible  <bruno@clisp.org>
24293
24294         binary-io: Avoid gcc warning due to SET_BINARY.
24295         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24296         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24297
24298 2009-12-24  Bruno Haible  <bruno@clisp.org>
24299
24300         Avoid future namespace pollution on glibc systems.
24301         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24302         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24303         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24304         glibc systems.
24305
24306 2009-12-24  Bruno Haible  <bruno@clisp.org>
24307
24308         Refactor common macros used in tests.
24309         * tests/macros.h: New file.
24310         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24311         and/or <stdlib.h>, if appropriate.
24312         (ASSERT, SIZEOF): Remove macros.
24313         * tests/test-areadlink-with-size.c: Likewise.
24314         * tests/test-areadlinkat.c: Likewise.
24315         * tests/test-areadlinkat-with-size.c: Likewise.
24316         * tests/test-argmatch.c: Likewise.
24317         * tests/test-argv-iter.c: Likewise.
24318         * tests/test-array-mergesort.c: Likewise.
24319         * tests/test-array_list.c: Likewise.
24320         * tests/test-array_oset.c: Likewise.
24321         * tests/test-avltree_list.c: Likewise.
24322         * tests/test-avltree_oset.c: Likewise.
24323         * tests/test-avltreehash_list.c: Likewise.
24324         * tests/test-base64.c: Likewise.
24325         * tests/test-binary-io.c: Likewise.
24326         * tests/test-bitrotate.c: Likewise.
24327         * tests/test-btowc.c: Likewise.
24328         * tests/test-byteswap.c: Likewise.
24329         * tests/test-c-ctype.c: Likewise.
24330         * tests/test-c-stack.c: Likewise.
24331         * tests/test-c-strcasecmp.c: Likewise.
24332         * tests/test-c-strcasestr.c: Likewise.
24333         * tests/test-c-strncasecmp.c: Likewise.
24334         * tests/test-c-strstr.c: Likewise.
24335         * tests/test-canonicalize-lgpl.c: Likewise.
24336         * tests/test-canonicalize.c: Likewise.
24337         * tests/test-carray_list.c: Likewise.
24338         * tests/test-ceilf1.c: Likewise.
24339         * tests/test-ceilf2.c: Likewise.
24340         * tests/test-ceill.c: Likewise.
24341         * tests/test-chown.c: Likewise.
24342         * tests/test-cloexec.c: Likewise.
24343         * tests/test-copy-acl.c: Likewise.
24344         * tests/test-copy-file.c: Likewise.
24345         * tests/test-count-one-bits.c: Likewise.
24346         * tests/test-dprintf-posix.c: Likewise.
24347         * tests/test-dup2.c: Likewise.
24348         * tests/test-dup3.c: Likewise.
24349         * tests/test-duplocale.c: Likewise.
24350         * tests/test-fbufmode.c: Likewise.
24351         * tests/test-fchdir.c: Likewise.
24352         * tests/test-fchownat.c: Likewise.
24353         * tests/test-fcntl-safer.c: Likewise.
24354         * tests/test-fcntl.c: Likewise.
24355         * tests/test-fdopendir.c: Likewise.
24356         * tests/test-fdutimensat.c: Likewise.
24357         * tests/test-fflush2.c: Likewise.
24358         * tests/test-file-has-acl.c: Likewise.
24359         * tests/test-filevercmp.c: Likewise.
24360         * tests/test-flock.c: Likewise.
24361         * tests/test-floorf1.c: Likewise.
24362         * tests/test-floorf2.c: Likewise.
24363         * tests/test-floorl.c: Likewise.
24364         * tests/test-fnmatch.c: Likewise.
24365         * tests/test-fopen.h: Likewise.
24366         * tests/test-fpending.c: Likewise.
24367         * tests/test-fprintf-posix.c: Likewise.
24368         * tests/test-fpurge.c: Likewise.
24369         * tests/test-freadable.c: Likewise.
24370         * tests/test-freadahead.c: Likewise.
24371         * tests/test-freading.c: Likewise.
24372         * tests/test-freadptr.c: Likewise.
24373         * tests/test-freadptr2.c: Likewise.
24374         * tests/test-freadseek.c: Likewise.
24375         * tests/test-freopen.c: Likewise.
24376         * tests/test-frexp.c: Likewise.
24377         * tests/test-frexpl.c: Likewise.
24378         * tests/test-fseek.c: Likewise.
24379         * tests/test-fseeko.c: Likewise.
24380         * tests/test-fstatat.c: Likewise.
24381         * tests/test-fstrcmp.c: Likewise.
24382         * tests/test-fsync.c: Likewise.
24383         * tests/test-ftell.c: Likewise.
24384         * tests/test-ftello.c: Likewise.
24385         * tests/test-func.c: Likewise.
24386         * tests/test-futimens.c: Likewise.
24387         * tests/test-fwritable.c: Likewise.
24388         * tests/test-fwriting.c: Likewise.
24389         * tests/test-getcwd.c: Likewise.
24390         * tests/test-getdate.c: Likewise.
24391         * tests/test-getdelim.c: Likewise.
24392         * tests/test-getdtablesize.c: Likewise.
24393         * tests/test-getgroups.c: Likewise.
24394         * tests/test-getline.c: Likewise.
24395         * tests/test-getndelim2.c: Likewise.
24396         * tests/test-glob.c: Likewise.
24397         * tests/test-hash.c: Likewise.
24398         * tests/test-i-ring.c: Likewise.
24399         * tests/test-iconv-utf.c: Likewise.
24400         * tests/test-iconv.c: Likewise.
24401         * tests/test-idpriv-drop.c: Likewise.
24402         * tests/test-idpriv-droptemp.c: Likewise.
24403         * tests/test-inet_ntop.c: Likewise.
24404         * tests/test-inet_pton.c: Likewise.
24405         * tests/test-isblank.c: Likewise.
24406         * tests/test-isfinite.c: Likewise.
24407         * tests/test-isinf.c: Likewise.
24408         * tests/test-isnan.c: Likewise.
24409         * tests/test-isnand.h: Likewise.
24410         * tests/test-isnanf.h: Likewise.
24411         * tests/test-isnanl.h: Likewise.
24412         * tests/test-lchown.c: Likewise.
24413         * tests/test-ldexpl.c: Likewise.
24414         * tests/test-link.c: Likewise.
24415         * tests/test-linkat.c: Likewise.
24416         * tests/test-linked_list.c: Likewise.
24417         * tests/test-linkedhash_list.c: Likewise.
24418         * tests/test-localename.c: Likewise.
24419         * tests/test-lseek.c: Likewise.
24420         * tests/test-lstat.c: Likewise.
24421         * tests/test-mbmemcasecmp.c: Likewise.
24422         * tests/test-mbmemcasecoll.c: Likewise.
24423         * tests/test-mbrtowc.c: Likewise.
24424         * tests/test-mbscasecmp.c: Likewise.
24425         * tests/test-mbscasestr1.c: Likewise.
24426         * tests/test-mbscasestr2.c: Likewise.
24427         * tests/test-mbscasestr3.c: Likewise.
24428         * tests/test-mbscasestr4.c: Likewise.
24429         * tests/test-mbschr.c: Likewise.
24430         * tests/test-mbscspn.c: Likewise.
24431         * tests/test-mbsinit.c: Likewise.
24432         * tests/test-mbsncasecmp.c: Likewise.
24433         * tests/test-mbsnrtowcs.c: Likewise.
24434         * tests/test-mbspbrk.c: Likewise.
24435         * tests/test-mbspcasecmp.c: Likewise.
24436         * tests/test-mbsrchr.c: Likewise.
24437         * tests/test-mbsrtowcs.c: Likewise.
24438         * tests/test-mbsspn.c: Likewise.
24439         * tests/test-mbsstr1.c: Likewise.
24440         * tests/test-mbsstr2.c: Likewise.
24441         * tests/test-mbsstr3.c: Likewise.
24442         * tests/test-memchr.c: Likewise.
24443         * tests/test-memchr2.c: Likewise.
24444         * tests/test-memcmp.c: Likewise.
24445         * tests/test-memmem.c: Likewise.
24446         * tests/test-memrchr.c: Likewise.
24447         * tests/test-mkdir.c: Likewise.
24448         * tests/test-mkdirat.c: Likewise.
24449         * tests/test-mkfifo.c: Likewise.
24450         * tests/test-mkfifoat.c: Likewise.
24451         * tests/test-mknod.c: Likewise.
24452         * tests/test-nanosleep.c: Likewise.
24453         * tests/test-nl_langinfo.c: Likewise.
24454         * tests/test-obstack-printf.c: Likewise.
24455         * tests/test-open.c: Likewise.
24456         * tests/test-openat.c: Likewise.
24457         * tests/test-pipe-filter-gi1.c: Likewise.
24458         * tests/test-pipe-filter-gi2-main.c: Likewise.
24459         * tests/test-pipe-filter-ii1.c: Likewise.
24460         * tests/test-pipe-filter-ii2-main.c: Likewise.
24461         * tests/test-pipe2.c: Likewise.
24462         * tests/test-popen.h: Likewise.
24463         * tests/test-posixtm.c: Likewise.
24464         * tests/test-pread.c: Likewise.
24465         * tests/test-printf-frexp.c: Likewise.
24466         * tests/test-printf-frexpl.c: Likewise.
24467         * tests/test-printf-posix.c: Likewise.
24468         * tests/test-priv-set.c: Likewise.
24469         * tests/test-quotearg.c: Likewise.
24470         * tests/test-random_r.c: Likewise.
24471         * tests/test-rawmemchr.c: Likewise.
24472         * tests/test-rbtree_list.c: Likewise.
24473         * tests/test-rbtree_oset.c: Likewise.
24474         * tests/test-rbtreehash_list.c: Likewise.
24475         * tests/test-readlink.c: Likewise.
24476         * tests/test-remove.c: Likewise.
24477         * tests/test-rename.c: Likewise.
24478         * tests/test-renameat.c: Likewise.
24479         * tests/test-rmdir.c: Likewise.
24480         * tests/test-round1.c: Likewise.
24481         * tests/test-roundf1.c: Likewise.
24482         * tests/test-roundl.c: Likewise.
24483         * tests/test-safe-alloc.c: Likewise.
24484         * tests/test-sameacls.c: Likewise.
24485         * tests/test-set-mode-acl.c: Likewise.
24486         * tests/test-setenv.c: Likewise.
24487         * tests/test-sigaction.c: Likewise.
24488         * tests/test-signbit.c: Likewise.
24489         * tests/test-sleep.c: Likewise.
24490         * tests/test-snprintf-posix.c: Likewise.
24491         * tests/test-snprintf.c: Likewise.
24492         * tests/test-sprintf-posix.c: Likewise.
24493         * tests/test-stat-time.c: Likewise.
24494         * tests/test-stat.c: Likewise.
24495         * tests/test-strcasestr.c: Likewise.
24496         * tests/test-strchrnul.c: Likewise.
24497         * tests/test-strerror.c: Likewise.
24498         * tests/test-striconv.c: Likewise.
24499         * tests/test-striconveh.c: Likewise.
24500         * tests/test-striconveha.c: Likewise.
24501         * tests/test-strsignal.c: Likewise.
24502         * tests/test-strstr.c: Likewise.
24503         * tests/test-strtod.c: Likewise.
24504         * tests/test-strverscmp.c: Likewise.
24505         * tests/test-symlink.c: Likewise.
24506         * tests/test-symlinkat.c: Likewise.
24507         * tests/test-trunc1.c: Likewise.
24508         * tests/test-trunc2.c: Likewise.
24509         * tests/test-truncf1.c: Likewise.
24510         * tests/test-truncf2.c: Likewise.
24511         * tests/test-truncl.c: Likewise.
24512         * tests/test-uname.c: Likewise.
24513         * tests/test-unlink.c: Likewise.
24514         * tests/test-unlinkat.c: Likewise.
24515         * tests/test-unsetenv.c: Likewise.
24516         * tests/test-usleep.c: Likewise.
24517         * tests/test-utimens.c: Likewise.
24518         * tests/test-utimensat.c: Likewise.
24519         * tests/test-vasnprintf-posix.c: Likewise.
24520         * tests/test-vasnprintf-posix2.c: Likewise.
24521         * tests/test-vasnprintf.c: Likewise.
24522         * tests/test-vasprintf-posix.c: Likewise.
24523         * tests/test-vasprintf.c: Likewise.
24524         * tests/test-vdprintf-posix.c: Likewise.
24525         * tests/test-vfprintf-posix.c: Likewise.
24526         * tests/test-vprintf-posix.c: Likewise.
24527         * tests/test-vsnprintf-posix.c: Likewise.
24528         * tests/test-vsnprintf.c: Likewise.
24529         * tests/test-vsprintf-posix.c: Likewise.
24530         * tests/test-wcrtomb.c: Likewise.
24531         * tests/test-wcsnrtombs.c: Likewise.
24532         * tests/test-wcsrtombs.c: Likewise.
24533         * tests/test-wctype.c: Likewise.
24534         * tests/test-wcwidth.c: Likewise.
24535         * tests/test-xfprintf-posix.c: Likewise.
24536         * tests/test-xmemdup0.c: Likewise.
24537         * tests/test-xprintf-posix.c: Likewise.
24538         * tests/test-xvasprintf.c: Likewise.
24539         * tests/unicase/test-locale-language.c: Likewise.
24540         * tests/unicase/test-mapping-part1.h: Likewise.
24541         * tests/unicase/test-predicate-part1.h: Likewise.
24542         * tests/unicase/test-u8-casecmp.c: Likewise.
24543         * tests/unicase/test-u8-casecoll.c: Likewise.
24544         * tests/unicase/test-u8-casefold.c: Likewise.
24545         * tests/unicase/test-u8-is-cased.c: Likewise.
24546         * tests/unicase/test-u8-is-casefolded.c: Likewise.
24547         * tests/unicase/test-u8-is-lowercase.c: Likewise.
24548         * tests/unicase/test-u8-is-titlecase.c: Likewise.
24549         * tests/unicase/test-u8-is-uppercase.c: Likewise.
24550         * tests/unicase/test-u8-tolower.c: Likewise.
24551         * tests/unicase/test-u8-totitle.c: Likewise.
24552         * tests/unicase/test-u8-toupper.c: Likewise.
24553         * tests/unicase/test-u16-casecmp.c: Likewise.
24554         * tests/unicase/test-u16-casecoll.c: Likewise.
24555         * tests/unicase/test-u16-casefold.c: Likewise.
24556         * tests/unicase/test-u16-is-cased.c: Likewise.
24557         * tests/unicase/test-u16-is-casefolded.c: Likewise.
24558         * tests/unicase/test-u16-is-lowercase.c: Likewise.
24559         * tests/unicase/test-u16-is-titlecase.c: Likewise.
24560         * tests/unicase/test-u16-is-uppercase.c: Likewise.
24561         * tests/unicase/test-u16-tolower.c: Likewise.
24562         * tests/unicase/test-u16-totitle.c: Likewise.
24563         * tests/unicase/test-u16-toupper.c: Likewise.
24564         * tests/unicase/test-u32-casecmp.c: Likewise.
24565         * tests/unicase/test-u32-casecoll.c: Likewise.
24566         * tests/unicase/test-u32-casefold.c: Likewise.
24567         * tests/unicase/test-u32-is-cased.c: Likewise.
24568         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24569         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24570         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24571         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24572         * tests/unicase/test-u32-tolower.c: Likewise.
24573         * tests/unicase/test-u32-totitle.c: Likewise.
24574         * tests/unicase/test-u32-toupper.c: Likewise.
24575         * tests/unicase/test-ulc-casecmp.c: Likewise.
24576         * tests/unicase/test-ulc-casecoll.c: Likewise.
24577         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24578         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24579         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24580         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24581         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24582         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24583         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24584         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24585         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24586         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24587         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24588         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24589         * tests/unictype/test-bidi_byname.c: Likewise.
24590         * tests/unictype/test-bidi_name.c: Likewise.
24591         * tests/unictype/test-bidi_of.c: Likewise.
24592         * tests/unictype/test-bidi_test.c: Likewise.
24593         * tests/unictype/test-block_list.c: Likewise.
24594         * tests/unictype/test-block_of.c: Likewise.
24595         * tests/unictype/test-block_test.c: Likewise.
24596         * tests/unictype/test-categ_and.c: Likewise.
24597         * tests/unictype/test-categ_and_not.c: Likewise.
24598         * tests/unictype/test-categ_byname.c: Likewise.
24599         * tests/unictype/test-categ_name.c: Likewise.
24600         * tests/unictype/test-categ_none.c: Likewise.
24601         * tests/unictype/test-categ_of.c: Likewise.
24602         * tests/unictype/test-categ_or.c: Likewise.
24603         * tests/unictype/test-categ_test_withtable.c: Likewise.
24604         * tests/unictype/test-combining.c: Likewise.
24605         * tests/unictype/test-decdigit.c: Likewise.
24606         * tests/unictype/test-digit.c: Likewise.
24607         * tests/unictype/test-mirror.c: Likewise.
24608         * tests/unictype/test-numeric.c: Likewise.
24609         * tests/unictype/test-pr_byname.c: Likewise.
24610         * tests/unictype/test-pr_test.c: Likewise.
24611         * tests/unictype/test-predicate-part1.h: Likewise.
24612         * tests/unictype/test-scripts.c: Likewise.
24613         * tests/unictype/test-sy_c_ident.c: Likewise.
24614         * tests/unictype/test-sy_java_ident.c: Likewise.
24615         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24616         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24617         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24618         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24619         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24620         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24621         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24622         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24623         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24624         * tests/uninorm/test-compat-decomposition.c: Likewise.
24625         * tests/uninorm/test-composition.c: Likewise.
24626         * tests/uninorm/test-decomposing-form.c: Likewise.
24627         * tests/uninorm/test-decomposition.c: Likewise.
24628         * tests/uninorm/test-u8-nfc.c: Likewise.
24629         * tests/uninorm/test-u8-nfd.c: Likewise.
24630         * tests/uninorm/test-u8-nfkc.c: Likewise.
24631         * tests/uninorm/test-u8-nfkd.c: Likewise.
24632         * tests/uninorm/test-u8-normcmp.c: Likewise.
24633         * tests/uninorm/test-u8-normcoll.c: Likewise.
24634         * tests/uninorm/test-u16-nfc.c: Likewise.
24635         * tests/uninorm/test-u16-nfd.c: Likewise.
24636         * tests/uninorm/test-u16-nfkc.c: Likewise.
24637         * tests/uninorm/test-u16-nfkd.c: Likewise.
24638         * tests/uninorm/test-u16-normcmp.c: Likewise.
24639         * tests/uninorm/test-u16-normcoll.c: Likewise.
24640         * tests/uninorm/test-u32-nfc.c: Likewise.
24641         * tests/uninorm/test-u32-nfd.c: Likewise.
24642         * tests/uninorm/test-u32-nfkc.c: Likewise.
24643         * tests/uninorm/test-u32-nfkd.c: Likewise.
24644         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24645         * tests/uninorm/test-u32-normcmp.c: Likewise.
24646         * tests/uninorm/test-u32-normcoll.c: Likewise.
24647         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
24648         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24649         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24650         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24651         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24652         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24653         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24654         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24655         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24656         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24657         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24658         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24659         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24660         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24661         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24662         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24663         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24664         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24665         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24666         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24667         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24668         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24669         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24670         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24671         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24672         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24673         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24674         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24675         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24676         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
24677         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
24678         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
24679         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
24680         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24681         * tests/uniwidth/test-u8-width.c: Likewise.
24682         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24683         * tests/uniwidth/test-u16-width.c: Likewise.
24684         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24685         * tests/uniwidth/test-u32-width.c: Likewise.
24686         * tests/uniwidth/test-uc_width.c: Likewise.
24687         * tests/uniwidth/test-uc_width2.c: Likewise.
24688         * modules/acl-tests (Files): Add tests/macros.h.
24689         * modules/areadlink-tests (Files): Likewise.
24690         * modules/areadlink-with-size-tests (Files): Likewise.
24691         * modules/areadlinkat-tests (Files): Likewise.
24692         * modules/areadlinkat-with-size-tests (Files): Likewise.
24693         * modules/argmatch-tests (Files): Likewise.
24694         * modules/argv-iter-tests (Files): Likewise.
24695         * modules/array-list-tests (Files): Likewise.
24696         * modules/array-mergesort-tests (Files): Likewise.
24697         * modules/array-oset-tests (Files): Likewise.
24698         * modules/avltree-list-tests (Files): Likewise.
24699         * modules/avltree-oset-tests (Files): Likewise.
24700         * modules/avltreehash-list-tests (Files): Likewise.
24701         * modules/base64-tests (Files): Likewise.
24702         * modules/binary-io-tests (Files): Likewise.
24703         * modules/bitrotate-tests (Files): Likewise.
24704         * modules/btowc-tests (Files): Likewise.
24705         * modules/byteswap-tests (Files): Likewise.
24706         * modules/c-ctype-tests (Files): Likewise.
24707         * modules/c-stack-tests (Files): Likewise.
24708         * modules/c-strcase-tests (Files): Likewise.
24709         * modules/c-strcasestr-tests (Files): Likewise.
24710         * modules/c-strstr-tests (Files): Likewise.
24711         * modules/canonicalize-lgpl-tests (Files): Likewise.
24712         * modules/canonicalize-tests (Files): Likewise.
24713         * modules/carray-list-tests (Files): Likewise.
24714         * modules/ceilf-tests (Files): Likewise.
24715         * modules/ceill-tests (Files): Likewise.
24716         * modules/chown-tests (Files): Likewise.
24717         * modules/cloexec-tests (Files): Likewise.
24718         * modules/copy-file-tests (Files): Likewise.
24719         * modules/count-one-bits-tests (Files): Likewise.
24720         * modules/dprintf-posix-tests (Files): Likewise.
24721         * modules/dup2-tests (Files): Likewise.
24722         * modules/dup3-tests (Files): Likewise.
24723         * modules/duplocale-tests (Files): Likewise.
24724         * modules/fbufmode-tests (Files): Likewise.
24725         * modules/fchdir-tests (Files): Likewise.
24726         * modules/fcntl-safer-tests (Files): Likewise.
24727         * modules/fcntl-tests (Files): Likewise.
24728         * modules/fdopendir-tests (Files): Likewise.
24729         * modules/fdutimensat-tests (Files): Likewise.
24730         * modules/fflush-tests (Files): Likewise.
24731         * modules/filevercmp-tests (Files): Likewise.
24732         * modules/flock-tests (Files): Likewise.
24733         * modules/floorf-tests (Files): Likewise.
24734         * modules/floorl-tests (Files): Likewise.
24735         * modules/fnmatch-tests (Files): Likewise.
24736         * modules/fopen-safer-tests (Files): Likewise.
24737         * modules/fopen-tests (Files): Likewise.
24738         * modules/fpending-tests (Files): Likewise.
24739         * modules/fprintf-posix-tests (Files): Likewise.
24740         * modules/fpurge-tests (Files): Likewise.
24741         * modules/freadable-tests (Files): Likewise.
24742         * modules/freadahead-tests (Files): Likewise.
24743         * modules/freading-tests (Files): Likewise.
24744         * modules/freadptr-tests (Files): Likewise.
24745         * modules/freadseek-tests (Files): Likewise.
24746         * modules/freopen-tests (Files): Likewise.
24747         * modules/frexp-nolibm-tests (Files): Likewise.
24748         * modules/frexp-tests (Files): Likewise.
24749         * modules/frexpl-nolibm-tests (Files): Likewise.
24750         * modules/frexpl-tests (Files): Likewise.
24751         * modules/fseek-tests (Files): Likewise.
24752         * modules/fseeko-tests (Files): Likewise.
24753         * modules/fstrcmp-tests (Files): Likewise.
24754         * modules/fsync-tests (Files): Likewise.
24755         * modules/ftell-tests (Files): Likewise.
24756         * modules/ftello-tests (Files): Likewise.
24757         * modules/func-tests (Files): Likewise.
24758         * modules/futimens-tests (Files): Likewise.
24759         * modules/fwritable-tests (Files): Likewise.
24760         * modules/fwriting-tests (Files): Likewise.
24761         * modules/getcwd-tests (Files): Likewise.
24762         * modules/getdate-tests (Files): Likewise.
24763         * modules/getdelim-tests (Files): Likewise.
24764         * modules/getdtablesize-tests (Files): Likewise.
24765         * modules/getgroups-tests (Files): Likewise.
24766         * modules/getline-tests (Files): Likewise.
24767         * modules/getndelim2-tests (Files): Likewise.
24768         * modules/glob-tests (Files): Likewise.
24769         * modules/hash-tests (Files): Likewise.
24770         * modules/i-ring-tests (Files): Likewise.
24771         * modules/iconv-tests (Files): Likewise.
24772         * modules/iconv_open-utf-tests (Files): Likewise.
24773         * modules/idpriv-drop-tests (Files): Likewise.
24774         * modules/idpriv-droptemp-tests (Files): Likewise.
24775         * modules/inet_ntop-tests (Files): Likewise.
24776         * modules/inet_pton-tests (Files): Likewise.
24777         * modules/isblank-tests (Files): Likewise.
24778         * modules/isfinite-tests (Files): Likewise.
24779         * modules/isinf-tests (Files): Likewise.
24780         * modules/isnan-tests (Files): Likewise.
24781         * modules/isnand-nolibm-tests (Files): Likewise.
24782         * modules/isnand-tests (Files): Likewise.
24783         * modules/isnanf-nolibm-tests (Files): Likewise.
24784         * modules/isnanf-tests (Files): Likewise.
24785         * modules/isnanl-nolibm-tests (Files): Likewise.
24786         * modules/isnanl-tests (Files): Likewise.
24787         * modules/lchown-tests (Files): Likewise.
24788         * modules/ldexpl-tests (Files): Likewise.
24789         * modules/link-tests (Files): Likewise.
24790         * modules/linkat-tests (Files): Likewise.
24791         * modules/linked-list-tests (Files): Likewise.
24792         * modules/linkedhash-list-tests (Files): Likewise.
24793         * modules/localename-tests (Files): Likewise.
24794         * modules/lseek-tests (Files): Likewise.
24795         * modules/lstat-tests (Files): Likewise.
24796         * modules/mbmemcasecmp-tests (Files): Likewise.
24797         * modules/mbmemcasecoll-tests (Files): Likewise.
24798         * modules/mbrtowc-tests (Files): Likewise.
24799         * modules/mbscasecmp-tests (Files): Likewise.
24800         * modules/mbscasestr-tests (Files): Likewise.
24801         * modules/mbschr-tests (Files): Likewise.
24802         * modules/mbscspn-tests (Files): Likewise.
24803         * modules/mbsinit-tests (Files): Likewise.
24804         * modules/mbsncasecmp-tests (Files): Likewise.
24805         * modules/mbsnrtowcs-tests (Files): Likewise.
24806         * modules/mbspbrk-tests (Files): Likewise.
24807         * modules/mbspcasecmp-tests (Files): Likewise.
24808         * modules/mbsrchr-tests (Files): Likewise.
24809         * modules/mbsrtowcs-tests (Files): Likewise.
24810         * modules/mbsspn-tests (Files): Likewise.
24811         * modules/mbsstr-tests (Files): Likewise.
24812         * modules/memchr-tests (Files): Likewise.
24813         * modules/memchr2-tests (Files): Likewise.
24814         * modules/memcmp-tests (Files): Likewise.
24815         * modules/memmem-tests (Files): Likewise.
24816         * modules/memrchr-tests (Files): Likewise.
24817         * modules/mkdir-tests (Files): Likewise.
24818         * modules/mkfifo-tests (Files): Likewise.
24819         * modules/mkfifoat-tests (Files): Likewise.
24820         * modules/mknod-tests (Files): Likewise.
24821         * modules/nanosleep-tests (Files): Likewise.
24822         * modules/nl_langinfo-tests (Files): Likewise.
24823         * modules/obstack-printf-tests (Files): Likewise.
24824         * modules/open-tests (Files): Likewise.
24825         * modules/openat-tests (Files): Likewise.
24826         * modules/pipe-filter-gi-tests (Files): Likewise.
24827         * modules/pipe-filter-ii-tests (Files): Likewise.
24828         * modules/pipe2-tests (Files): Likewise.
24829         * modules/popen-safer-tests (Files): Likewise.
24830         * modules/popen-tests (Files): Likewise.
24831         * modules/posixtm-tests (Files): Likewise.
24832         * modules/pread-tests (Files): Likewise.
24833         * modules/printf-frexp-tests (Files): Likewise.
24834         * modules/printf-frexpl-tests (Files): Likewise.
24835         * modules/printf-posix-tests (Files): Likewise.
24836         * modules/priv-set-tests (Files): Likewise.
24837         * modules/quotearg-tests (Files): Likewise.
24838         * modules/random_r-tests (Files): Likewise.
24839         * modules/rawmemchr-tests (Files): Likewise.
24840         * modules/rbtree-list-tests (Files): Likewise.
24841         * modules/rbtree-oset-tests (Files): Likewise.
24842         * modules/rbtreehash-list-tests (Files): Likewise.
24843         * modules/readlink-tests (Files): Likewise.
24844         * modules/remove-tests (Files): Likewise.
24845         * modules/rename-tests (Files): Likewise.
24846         * modules/renameat-tests (Files): Likewise.
24847         * modules/rmdir-tests (Files): Likewise.
24848         * modules/round-tests (Files): Likewise.
24849         * modules/roundf-tests (Files): Likewise.
24850         * modules/roundl-tests (Files): Likewise.
24851         * modules/safe-alloc-tests (Files): Likewise.
24852         * modules/setenv-tests (Files): Likewise.
24853         * modules/sigaction-tests (Files): Likewise.
24854         * modules/signbit-tests (Files): Likewise.
24855         * modules/sleep-tests (Files): Likewise.
24856         * modules/snprintf-posix-tests (Files): Likewise.
24857         * modules/snprintf-tests (Files): Likewise.
24858         * modules/sprintf-posix-tests (Files): Likewise.
24859         * modules/stat-tests (Files): Likewise.
24860         * modules/stat-time-tests (Files): Likewise.
24861         * modules/strcasestr-tests (Files): Likewise.
24862         * modules/strchrnul-tests (Files): Likewise.
24863         * modules/strerror-tests (Files): Likewise.
24864         * modules/striconv-tests (Files): Likewise.
24865         * modules/striconveh-tests (Files): Likewise.
24866         * modules/striconveha-tests (Files): Likewise.
24867         * modules/strsignal-tests (Files): Likewise.
24868         * modules/strstr-tests (Files): Likewise.
24869         * modules/strtod-tests (Files): Likewise.
24870         * modules/strverscmp-tests (Files): Likewise.
24871         * modules/symlink-tests (Files): Likewise.
24872         * modules/symlinkat-tests (Files): Likewise.
24873         * modules/trunc-tests (Files): Likewise.
24874         * modules/truncf-tests (Files): Likewise.
24875         * modules/truncl-tests (Files): Likewise.
24876         * modules/uname-tests (Files): Likewise.
24877         * modules/unicase/cased-tests (Files): Likewise.
24878         * modules/unicase/ignorable-tests (Files): Likewise.
24879         * modules/unicase/locale-language-tests (Files): Likewise.
24880         * modules/unicase/tolower-tests (Files): Likewise.
24881         * modules/unicase/totitle-tests (Files): Likewise.
24882         * modules/unicase/toupper-tests (Files): Likewise.
24883         * modules/unicase/u8-casecmp-tests (Files): Likewise.
24884         * modules/unicase/u8-casecoll-tests (Files): Likewise.
24885         * modules/unicase/u8-casefold-tests (Files): Likewise.
24886         * modules/unicase/u8-is-cased-tests (Files): Likewise.
24887         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
24888         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
24889         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
24890         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
24891         * modules/unicase/u8-tolower-tests (Files): Likewise.
24892         * modules/unicase/u8-totitle-tests (Files): Likewise.
24893         * modules/unicase/u8-toupper-tests (Files): Likewise.
24894         * modules/unicase/u16-casecmp-tests (Files): Likewise.
24895         * modules/unicase/u16-casecoll-tests (Files): Likewise.
24896         * modules/unicase/u16-casefold-tests (Files): Likewise.
24897         * modules/unicase/u16-is-cased-tests (Files): Likewise.
24898         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
24899         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
24900         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
24901         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
24902         * modules/unicase/u16-tolower-tests (Files): Likewise.
24903         * modules/unicase/u16-totitle-tests (Files): Likewise.
24904         * modules/unicase/u16-toupper-tests (Files): Likewise.
24905         * modules/unicase/u32-casecmp-tests (Files): Likewise.
24906         * modules/unicase/u32-casecoll-tests (Files): Likewise.
24907         * modules/unicase/u32-casefold-tests (Files): Likewise.
24908         * modules/unicase/u32-is-cased-tests (Files): Likewise.
24909         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
24910         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
24911         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
24912         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
24913         * modules/unicase/u32-tolower-tests (Files): Likewise.
24914         * modules/unicase/u32-totitle-tests (Files): Likewise.
24915         * modules/unicase/u32-toupper-tests (Files): Likewise.
24916         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
24917         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
24918         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
24919         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
24920         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
24921         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
24922         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
24923         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
24924         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
24925         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
24926         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
24927         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
24928         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
24929         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
24930         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
24931         * modules/unictype/bidicategory-name-tests (Files): Likewise.
24932         * modules/unictype/bidicategory-of-tests (Files): Likewise.
24933         * modules/unictype/bidicategory-test-tests (Files): Likewise.
24934         * modules/unictype/block-list-tests (Files): Likewise.
24935         * modules/unictype/block-of-tests (Files): Likewise.
24936         * modules/unictype/block-test-tests (Files): Likewise.
24937         * modules/unictype/category-C-tests (Files): Likewise.
24938         * modules/unictype/category-Cc-tests (Files): Likewise.
24939         * modules/unictype/category-Cf-tests (Files): Likewise.
24940         * modules/unictype/category-Cn-tests (Files): Likewise.
24941         * modules/unictype/category-Co-tests (Files): Likewise.
24942         * modules/unictype/category-Cs-tests (Files): Likewise.
24943         * modules/unictype/category-L-tests (Files): Likewise.
24944         * modules/unictype/category-Ll-tests (Files): Likewise.
24945         * modules/unictype/category-Lm-tests (Files): Likewise.
24946         * modules/unictype/category-Lo-tests (Files): Likewise.
24947         * modules/unictype/category-Lt-tests (Files): Likewise.
24948         * modules/unictype/category-Lu-tests (Files): Likewise.
24949         * modules/unictype/category-M-tests (Files): Likewise.
24950         * modules/unictype/category-Mc-tests (Files): Likewise.
24951         * modules/unictype/category-Me-tests (Files): Likewise.
24952         * modules/unictype/category-Mn-tests (Files): Likewise.
24953         * modules/unictype/category-N-tests (Files): Likewise.
24954         * modules/unictype/category-Nd-tests (Files): Likewise.
24955         * modules/unictype/category-Nl-tests (Files): Likewise.
24956         * modules/unictype/category-No-tests (Files): Likewise.
24957         * modules/unictype/category-P-tests (Files): Likewise.
24958         * modules/unictype/category-Pc-tests (Files): Likewise.
24959         * modules/unictype/category-Pd-tests (Files): Likewise.
24960         * modules/unictype/category-Pe-tests (Files): Likewise.
24961         * modules/unictype/category-Pf-tests (Files): Likewise.
24962         * modules/unictype/category-Pi-tests (Files): Likewise.
24963         * modules/unictype/category-Po-tests (Files): Likewise.
24964         * modules/unictype/category-Ps-tests (Files): Likewise.
24965         * modules/unictype/category-S-tests (Files): Likewise.
24966         * modules/unictype/category-Sc-tests (Files): Likewise.
24967         * modules/unictype/category-Sk-tests (Files): Likewise.
24968         * modules/unictype/category-Sm-tests (Files): Likewise.
24969         * modules/unictype/category-So-tests (Files): Likewise.
24970         * modules/unictype/category-Z-tests (Files): Likewise.
24971         * modules/unictype/category-Zl-tests (Files): Likewise.
24972         * modules/unictype/category-Zp-tests (Files): Likewise.
24973         * modules/unictype/category-Zs-tests (Files): Likewise.
24974         * modules/unictype/category-and-not-tests (Files): Likewise.
24975         * modules/unictype/category-and-tests (Files): Likewise.
24976         * modules/unictype/category-byname-tests (Files): Likewise.
24977         * modules/unictype/category-name-tests (Files): Likewise.
24978         * modules/unictype/category-none-tests (Files): Likewise.
24979         * modules/unictype/category-of-tests (Files): Likewise.
24980         * modules/unictype/category-or-tests (Files): Likewise.
24981         * modules/unictype/category-test-withtable-tests (Files): Likewise.
24982         * modules/unictype/combining-class-tests (Files): Likewise.
24983         * modules/unictype/ctype-alnum-tests (Files): Likewise.
24984         * modules/unictype/ctype-alpha-tests (Files): Likewise.
24985         * modules/unictype/ctype-blank-tests (Files): Likewise.
24986         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
24987         * modules/unictype/ctype-digit-tests (Files): Likewise.
24988         * modules/unictype/ctype-graph-tests (Files): Likewise.
24989         * modules/unictype/ctype-lower-tests (Files): Likewise.
24990         * modules/unictype/ctype-print-tests (Files): Likewise.
24991         * modules/unictype/ctype-punct-tests (Files): Likewise.
24992         * modules/unictype/ctype-space-tests (Files): Likewise.
24993         * modules/unictype/ctype-upper-tests (Files): Likewise.
24994         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
24995         * modules/unictype/decimal-digit-tests (Files): Likewise.
24996         * modules/unictype/digit-tests (Files): Likewise.
24997         * modules/unictype/mirror-tests (Files): Likewise.
24998         * modules/unictype/numeric-tests (Files): Likewise.
24999         * modules/unictype/property-alphabetic-tests (Files): Likewise.
25000         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
25001         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
25002         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
25003         Likewise.
25004         * modules/unictype/property-bidi-block-separator-tests (Files):
25005         Likewise.
25006         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
25007         Likewise.
25008         * modules/unictype/property-bidi-common-separator-tests (Files):
25009         Likewise.
25010         * modules/unictype/property-bidi-control-tests (Files): Likewise.
25011         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
25012         Likewise.
25013         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
25014         Likewise.
25015         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
25016         Likewise.
25017         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
25018         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
25019         Likewise.
25020         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
25021         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
25022         Likewise.
25023         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
25024         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
25025         * modules/unictype/property-bidi-segment-separator-tests (Files):
25026         Likewise.
25027         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
25028         * modules/unictype/property-byname-tests (Files): Likewise.
25029         * modules/unictype/property-combining-tests (Files): Likewise.
25030         * modules/unictype/property-composite-tests (Files): Likewise.
25031         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
25032         * modules/unictype/property-dash-tests (Files): Likewise.
25033         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
25034         * modules/unictype/property-default-ignorable-code-point-tests (Files):
25035         Likewise.
25036         * modules/unictype/property-deprecated-tests (Files): Likewise.
25037         * modules/unictype/property-diacritic-tests (Files): Likewise.
25038         * modules/unictype/property-extender-tests (Files): Likewise.
25039         * modules/unictype/property-format-control-tests (Files): Likewise.
25040         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
25041         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
25042         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
25043         * modules/unictype/property-hex-digit-tests (Files): Likewise.
25044         * modules/unictype/property-hyphen-tests (Files): Likewise.
25045         * modules/unictype/property-id-continue-tests (Files): Likewise.
25046         * modules/unictype/property-id-start-tests (Files): Likewise.
25047         * modules/unictype/property-ideographic-tests (Files): Likewise.
25048         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
25049         * modules/unictype/property-ids-trinary-operator-tests (Files):
25050         Likewise.
25051         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
25052         * modules/unictype/property-iso-control-tests (Files): Likewise.
25053         * modules/unictype/property-join-control-tests (Files): Likewise.
25054         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
25055         * modules/unictype/property-line-separator-tests (Files): Likewise.
25056         * modules/unictype/property-logical-order-exception-tests (Files):
25057         Likewise.
25058         * modules/unictype/property-lowercase-tests (Files): Likewise.
25059         * modules/unictype/property-math-tests (Files): Likewise.
25060         * modules/unictype/property-non-break-tests (Files): Likewise.
25061         * modules/unictype/property-not-a-character-tests (Files): Likewise.
25062         * modules/unictype/property-numeric-tests (Files): Likewise.
25063         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
25064         * modules/unictype/property-other-default-ignorable-code-point-tests
25065         (Files): Likewise.
25066         * modules/unictype/property-other-grapheme-extend-tests (Files):
25067         Likewise.
25068         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
25069         * modules/unictype/property-other-id-start-tests (Files): Likewise.
25070         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
25071         * modules/unictype/property-other-math-tests (Files): Likewise.
25072         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
25073         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
25074         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
25075         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
25076         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
25077         * modules/unictype/property-private-use-tests (Files): Likewise.
25078         * modules/unictype/property-punctuation-tests (Files): Likewise.
25079         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
25080         * modules/unictype/property-radical-tests (Files): Likewise.
25081         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
25082         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
25083         * modules/unictype/property-space-tests (Files): Likewise.
25084         * modules/unictype/property-terminal-punctuation-tests (Files):
25085         Likewise.
25086         * modules/unictype/property-test-tests (Files): Likewise.
25087         * modules/unictype/property-titlecase-tests (Files): Likewise.
25088         * modules/unictype/property-unassigned-code-value-tests (Files):
25089         Likewise.
25090         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
25091         * modules/unictype/property-uppercase-tests (Files): Likewise.
25092         * modules/unictype/property-variation-selector-tests (Files): Likewise.
25093         * modules/unictype/property-white-space-tests (Files): Likewise.
25094         * modules/unictype/property-xid-continue-tests (Files): Likewise.
25095         * modules/unictype/property-xid-start-tests (Files): Likewise.
25096         * modules/unictype/property-zero-width-tests (Files): Likewise.
25097         * modules/unictype/scripts-tests (Files): Likewise.
25098         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
25099         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
25100         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
25101         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
25102         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
25103         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
25104         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
25105         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
25106         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
25107         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
25108         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
25109         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
25110         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
25111         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
25112         * modules/uninorm/composition-tests (Files): Likewise.
25113         * modules/uninorm/decomposing-form-tests (Files): Likewise.
25114         * modules/uninorm/decomposition-tests (Files): Likewise.
25115         * modules/uninorm/filter-tests (Files): Likewise.
25116         * modules/uninorm/nfc-tests (Files): Likewise.
25117         * modules/uninorm/nfd-tests (Files): Likewise.
25118         * modules/uninorm/nfkc-tests (Files): Likewise.
25119         * modules/uninorm/nfkd-tests (Files): Likewise.
25120         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
25121         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
25122         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
25123         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
25124         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
25125         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
25126         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
25127         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25128         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
25129         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
25130         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
25131         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
25132         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25133         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
25134         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
25135         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
25136         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
25137         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25138         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
25139         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
25140         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
25141         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
25142         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25143         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
25144         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
25145         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
25146         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
25147         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
25148         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
25149         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
25150         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
25151         * modules/uniwidth/u8-width-tests (Files): Likewise.
25152         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
25153         * modules/uniwidth/u16-width-tests (Files): Likewise.
25154         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
25155         * modules/uniwidth/u32-width-tests (Files): Likewise.
25156         * modules/uniwidth/width-tests (Files): Likewise.
25157         * modules/unlink-tests (Files): Likewise.
25158         * modules/unsetenv-tests (Files): Likewise.
25159         * modules/usleep-tests (Files): Likewise.
25160         * modules/utimens-tests (Files): Likewise.
25161         * modules/utimensat-tests (Files): Likewise.
25162         * modules/vasnprintf-posix-tests (Files): Likewise.
25163         * modules/vasnprintf-tests (Files): Likewise.
25164         * modules/vasprintf-posix-tests (Files): Likewise.
25165         * modules/vasprintf-tests (Files): Likewise.
25166         * modules/vdprintf-posix-tests (Files): Likewise.
25167         * modules/vfprintf-posix-tests (Files): Likewise.
25168         * modules/vprintf-posix-tests (Files): Likewise.
25169         * modules/vsnprintf-posix-tests (Files): Likewise.
25170         * modules/vsnprintf-tests (Files): Likewise.
25171         * modules/vsprintf-posix-tests (Files): Likewise.
25172         * modules/wcrtomb-tests (Files): Likewise.
25173         * modules/wcsnrtombs-tests (Files): Likewise.
25174         * modules/wcsrtombs-tests (Files): Likewise.
25175         * modules/wctype-tests (Files): Likewise.
25176         * modules/wcwidth-tests (Files): Likewise.
25177         * modules/xmemdup0-tests (Files): Likewise.
25178         * modules/xprintf-posix-tests (Files): Likewise.
25179         * modules/xvasprintf-tests (Files): Likewise.
25180
25181 2009-12-24  Eric Blake  <ebb9@byu.net>
25182
25183         test-nanosleep: fix typo
25184         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
25185         patch.
25186         Reported by Bruno Haible.
25187
25188 2009-12-24  Bruno Haible  <bruno@clisp.org>
25189
25190         Reduce namespace pollution on glibc systems.
25191         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
25192         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
25193         systems.
25194         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
25195         <getopt.h> on glibc systems.
25196         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
25197         systems.
25198         * lib/fcntl.c: Include <unistd.h> here instead.
25199
25200 2009-12-24  Bruno Haible  <bruno@clisp.org>
25201
25202         * lib/stdlib.in.h (includes): Fix typo in today's commit.
25203
25204 2009-12-24  Eric Blake  <ebb9@byu.net>
25205
25206         tests: add signature checks
25207         * tests/signature.h (SIGNATURE_CHECK): New file.
25208         * modules/atexit-tests (Files): Use it.
25209         * modules/btowc-tests (Files): Likewise.
25210         * modules/canonicalize-lgpl-tests (Files): Likewise.
25211         * modules/ceilf-tests (Files): Likewise.
25212         * modules/ceill-tests (Files): Likewise.
25213         * modules/chown-tests (Files): Likewise.
25214         * modules/dprintf-posix-tests (Files): Likewise.
25215         * modules/dup2-tests (Files): Likewise.
25216         * modules/dup3-tests (Files): Likewise.
25217         * modules/duplocale-tests (Files): Likewise.
25218         * modules/fchdir-tests (Files): Likewise.
25219         * modules/fcntl-tests (Files): Likewise.
25220         * modules/fdopendir-tests (Files): Likewise.
25221         * modules/fflush-tests (Files): Likewise.
25222         * modules/flock-tests (Files): Likewise.
25223         * modules/floorf-tests (Files): Likewise.
25224         * modules/floorl-tests (Files): Likewise.
25225         * modules/fnmatch-tests (Files): Likewise.
25226         * modules/fopen-tests (Files): Likewise.
25227         * modules/fprintf-posix-tests (Files): Likewise.
25228         * modules/freopen-tests (Files): Likewise.
25229         * modules/frexp-nolibm-tests (Files): Likewise.
25230         * modules/frexp-tests (Files): Likewise.
25231         * modules/frexpl-nolibm-tests (Files): Likewise.
25232         * modules/frexpl-tests (Files): Likewise.
25233         * modules/fseek-tests (Files): Likewise.
25234         * modules/fseeko-tests (Files): Likewise.
25235         * modules/fsync-tests (Files): Likewise.
25236         * modules/ftell-tests (Files): Likewise.
25237         * modules/ftello-tests (Files): Likewise.
25238         * modules/futimens-tests (Files): Likewise.
25239         * modules/getaddrinfo-tests (Files): Likewise.
25240         * modules/getcwd-tests (Files): Likewise.
25241         * modules/getdelim-tests (Files): Likewise.
25242         * modules/getdtablesize-tests (Files): Likewise.
25243         * modules/getgroups-tests (Files): Likewise.
25244         * modules/gethostname-tests (Files): Likewise.
25245         * modules/getline-tests (Files): Likewise.
25246         * modules/getopt-posix-tests (Files): Likewise.
25247         * modules/gettimeofday-tests (Files): Likewise.
25248         * modules/glob-tests (Files): Likewise.
25249         * modules/iconv-tests (Files): Likewise.
25250         * modules/inet_ntop-tests (Files): Likewise.
25251         * modules/inet_pton-tests (Files): Likewise.
25252         * modules/isblank-tests (Files): Likewise.
25253         * modules/lchown-tests (Files): Likewise.
25254         * modules/ldexpl-tests (Files): Likewise.
25255         * modules/link-tests (Files): Likewise.
25256         * modules/linkat-tests (Files): Likewise.
25257         * modules/lseek-tests (Files): Likewise.
25258         * modules/lstat-tests (Files): Likewise.
25259         * modules/mbrtowc-tests (Files): Likewise.
25260         * modules/mbsinit-tests (Files): Likewise.
25261         * modules/mbsnrtowcs-tests (Files): Likewise.
25262         * modules/mbsrtowcs-tests (Files): Likewise.
25263         * modules/memchr-tests (Files): Likewise.
25264         * modules/memcmp-tests (Files): Likewise.
25265         * modules/memmem-tests (Files): Likewise.
25266         * modules/memrchr-tests (Files): Likewise.
25267         * modules/mkdir-tests (Files): Likewise.
25268         * modules/mkfifo-tests (Files): Likewise.
25269         * modules/mkfifoat-tests (Files): Likewise.
25270         * modules/mknod-tests (Files): Likewise.
25271         * modules/nanosleep-tests (Files): Likewise.
25272         * modules/nl_langinfo-tests (Files): Likewise.
25273         * modules/obstack-printf-tests (Files): Likewise.
25274         * modules/open-tests (Files): Likewise.
25275         * modules/openat-tests (Files): Likewise.
25276         * modules/perror-tests (Files): Likewise.
25277         * modules/pipe2-tests (Files): Likewise.
25278         * modules/poll-tests (Files): Likewise.
25279         * modules/popen-tests (Files): Likewise.
25280         * modules/posix_spawn-tests (Files): Likewise.
25281         * modules/posix_spawnp-tests (Files): Likewise.
25282         * modules/pread-tests (Files): Likewise.
25283         * modules/printf-posix-tests (Files): Likewise.
25284         * modules/pty-tests (Files): Likewise.
25285         * modules/random_r-tests (Files): Likewise.
25286         * modules/rawmemchr-tests (Files): Likewise.
25287         * modules/readlink-tests (Files): Likewise.
25288         * modules/remove-tests (Files): Likewise.
25289         * modules/rename-tests (Files): Likewise.
25290         * modules/renameat-tests (Files): Likewise.
25291         * modules/rmdir-tests (Files): Likewise.
25292         * modules/round-tests (Files): Likewise.
25293         * modules/roundf-tests (Files): Likewise.
25294         * modules/roundl-tests (Files): Likewise.
25295         * modules/select-tests (Files): Likewise.
25296         * modules/setenv-tests (Files): Likewise.
25297         * modules/sigaction-tests (Files): Likewise.
25298         * modules/sleep-tests (Files): Likewise.
25299         * modules/snprintf-posix-tests (Files): Likewise.
25300         * modules/snprintf-tests (Files): Likewise.
25301         * modules/sprintf-posix-tests (Files): Likewise.
25302         * modules/stat-tests (Files): Likewise.
25303         * modules/strcasestr-tests (Files): Likewise.
25304         * modules/strchrnul-tests (Files): Likewise.
25305         * modules/strerror-tests (Files): Likewise.
25306         * modules/strsignal-tests (Files): Likewise.
25307         * modules/strstr-tests (Files): Likewise.
25308         * modules/strtod-tests (Files): Likewise.
25309         * modules/strverscmp-tests (Files): Likewise.
25310         * modules/symlink-tests (Files): Likewise.
25311         * modules/symlinkat-tests (Files): Likewise.
25312         * modules/times-tests (Files): Likewise.
25313         * modules/trunc-tests (Files): Likewise.
25314         * modules/truncf-tests (Files): Likewise.
25315         * modules/truncl-tests (Files): Likewise.
25316         * modules/tsearch-tests (Files): Likewise.
25317         * modules/uname-tests (Files): Likewise.
25318         * modules/unlink-tests (Files): Likewise.
25319         * modules/unsetenv-tests (Files): Likewise.
25320         * modules/usleep-tests (Files): Likewise.
25321         * modules/utimensat-tests (Files): Likewise.
25322         * modules/vasprintf-tests (Files): Likewise.
25323         * modules/vdprintf-posix-tests (Files): Likewise.
25324         * modules/vfprintf-posix-tests (Files): Likewise.
25325         * modules/vprintf-posix-tests (Files): Likewise.
25326         * modules/vsnprintf-posix-tests (Files): Likewise.
25327         * modules/vsnprintf-tests (Files): Likewise.
25328         * modules/vsprintf-posix-tests (Files): Likewise.
25329         * modules/wcrtomb-tests (Files): Likewise.
25330         * modules/wcsnrtombs-tests (Files): Likewise.
25331         * modules/wcsrtombs-tests (Files): Likewise.
25332         * modules/wcwidth-tests (Files): Likewise.
25333         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25334         * tests/test-isinf.c (isinf): Likewise.
25335         * tests/test-isnan.c (isnan): Likewise.
25336         * tests/test-signbit.c (signbit): Likewise.
25337         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25338         declaration, either as macro or with correct signature.
25339         (select): Ensure function under test is declared with correct
25340         signature in correct header.
25341         * tests/test-atexit.c (atexit): Likewise.
25342         * tests/test-btowc.c (btowc): Likewise.
25343         * tests/test-canonicalize-lgpl.c (realpath)
25344         (canonicalize_file_name): Likewise.
25345         * tests/test-ceilf1.c (ceilf): Likewise.
25346         * tests/test-ceill.c (ceill): Likewise.
25347         * tests/test-chown.c (chown): Likewise.
25348         * tests/test-dprintf-posix.c (dprintf): Likewise.
25349         * tests/test-dup2.c (dup2): Likewise.
25350         * tests/test-dup3.c (dup3): Likewise.
25351         * tests/test-duplocale.c (duplocale): Likewise.
25352         * tests/test-fchdir.c (fchdir): Likewise.
25353         * tests/test-fchownat.c (fchownat): Likewise.
25354         * tests/test-fcntl.c (fcntl): Likewise.
25355         * tests/test-fdopendir.c (fdopendir): Likewise.
25356         * tests/test-fflush.c (fflush): Likewise.
25357         * tests/test-flock.c (flock): Likewise.
25358         * tests/test-floorf1.c (floorf): Likewise.
25359         * tests/test-floorl.c (floorl): Likewise.
25360         * tests/test-fnmatch.c (fnmatch): Likewise.
25361         * tests/test-fopen.c (fopen): Likewise.
25362         * tests/test-fprintf-posix.c (fprintf): Likewise.
25363         * tests/test-freopen.c (freopen): Likewise.
25364         * tests/test-frexp.c (frexp): Likewise.
25365         * tests/test-frexpl.c (frexpl): Likewise.
25366         * tests/test-fseek.c (fseek): Likewise.
25367         * tests/test-fseeko.c (fseeko): Likewise.
25368         * tests/test-fstatat.c (fstatat): Likewise.
25369         * tests/test-fsync.c (fsync): Likewise.
25370         * tests/test-ftell.c (ftell): Likewise.
25371         * tests/test-ftello.c (ftello): Likewise.
25372         * tests/test-futimens.c (futimens): Likewise.
25373         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25374         (gai_strerror): Likewise.
25375         * tests/test-getcwd.c (getcwd): Likewise.
25376         * tests/test-getdelim.c (getdelim): Likewise.
25377         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25378         * tests/test-getgroups.c (getgroups): Likewise.
25379         * tests/test-gethostname.c (gethostname): Likewise.
25380         * tests/test-getline.c (getline): Likewise.
25381         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25382         Likewise.
25383         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25384         * tests/test-glob.c (glob, globfree): Likewise.
25385         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25386         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25387         * tests/test-inet_pton.c (inet_pton): Likewise.
25388         * tests/test-isblank.c (isblank): Likewise.
25389         * tests/test-lchown.c (lchown): Likewise.
25390         * tests/test-ldexpl.c (ldexpl): Likewise.
25391         * tests/test-link.c (link): Likewise.
25392         * tests/test-linkat.c (linkat): Likewise.
25393         * tests/test-lseek.c (lseek): Likewise.
25394         * tests/test-lstat.c (lstat): Likewise.
25395         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25396         * tests/test-mbsinit.c (mbsinit): Likewise.
25397         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25398         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25399         * tests/test-memchr.c (memchr): Likewise.
25400         * tests/test-memcmp.c (memcmp): Likewise.
25401         * tests/test-memmem.c (memmem): Likewise.
25402         * tests/test-memrchr.c (memrchr): Likewise.
25403         * tests/test-mkdir.c (mkdir): Likewise.
25404         * tests/test-mkdirat.c (mkdirat): Likewise.
25405         * tests/test-mkfifo.c (mkfifo): Likewise.
25406         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25407         * tests/test-mknod.c (mknod): Likewise.
25408         * tests/test-nanosleep.c (nanosleep): Likewise.
25409         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25410         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25411         Likewise.
25412         * tests/test-open.c (open): Likewise.
25413         * tests/test-openat.c (openat): Likewise.
25414         * tests/test-perror.c (perror): Likewise.
25415         * tests/test-pipe2.c (pipe2): Likewise.
25416         * tests/test-poll.c (poll): Likewise.
25417         * tests/test-popen.c (popen, pclose): Likewise.
25418         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25419         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25420         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25421         (posix_spawn_file_actions_destroy)
25422         (posix_spawn_file_actions_addclose)
25423         (posix_spawn_file_actions_addopen)
25424         (posix_spawn_file_actions_adddup2): Likewise.
25425         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25426         * tests/test-pread.c (pread): Likewise.
25427         * tests/test-printf-posix.c (printf): Likewise.
25428         * tests/test-pty.c (openpty, forkpty): Likewise.
25429         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25430         (random_r): Likewise.
25431         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25432         * tests/test-readlink.c (readlink): Likewise.
25433         * tests/test-remove.c (remove): Likewise.
25434         * tests/test-rename.c (rename): Likewise.
25435         * tests/test-renameat.c (renameat): Likewise.
25436         * tests/test-rmdir.c (rmdir): Likewise.
25437         * tests/test-round1.c (round): Likewise.
25438         * tests/test-roundf1.c (roundf): Likewise.
25439         * tests/test-roundl.c (roundl): Likewise.
25440         * tests/test-setenv.c (setenv): Likewise.
25441         * tests/test-sigaction.c (sigaction): Likewise.
25442         * tests/test-sleep.c (sleep): Likewise.
25443         * tests/test-snprintf.c (snprintf): Likewise.
25444         * tests/test-sprintf-posix.c (sprintf): Likewise.
25445         * tests/test-stat.c (stat): Likewise.
25446         * tests/test-stpncpy.c (stpncpy): Likewise.
25447         * tests/test-strcasestr.c (strcasestr): Likewise.
25448         * tests/test-strchrnul.c (strchrnul): Likewise.
25449         * tests/test-strerror.c (strerror): Likewise.
25450         * tests/test-strsignal.c (strsignal): Likewise.
25451         * tests/test-strstr.c (strstr): Likewise.
25452         * tests/test-strtod.c (strtod): Likewise.
25453         * tests/test-strverscmp.c (strverscmp): Likewise.
25454         * tests/test-symlink.c (symlink): Likewise.
25455         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25456         * tests/test-times.c (times): Likewise.
25457         * tests/test-trunc1.c (trunc): Likewise.
25458         * tests/test-truncf1.c (truncf): Likewise.
25459         * tests/test-truncl.c (truncl): Likewise.
25460         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25461         Likewise.
25462         * tests/test-uname.c (uname): Likewise.
25463         * tests/test-unlink.c (unlink): Likewise.
25464         * tests/test-unlinkat.c (unlinkat): Likewise.
25465         * tests/test-unsetenv.c (unsetenv): Likewise.
25466         * tests/test-usleep.c (usleep): Likewise.
25467         * tests/test-utimensat.c (utimensat): Likewise.
25468         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25469         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25470         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
25471         * tests/test-vprintf-posix.c (vprintf): Likewise.
25472         * tests/test-vsnprintf.c (vsnprintf): Likewise.
25473         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
25474         * tests/test-wcrtomb.c (wcrtomb): Likewise.
25475         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
25476         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
25477         * tests/test-wcwidth.c (wcwidth): Likewise.
25478
25479         build: pull in conditional headers during GNULIB_POSIXCHECK
25480         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
25481         definitions from any conditionally-included headers.
25482         * lib/stdlib.in.h (includes): Likewise.
25483         * lib/unistd.in.h (includes): Likewise.
25484
25485 2009-12-24  Bruno Haible  <bruno@clisp.org>
25486
25487         * tests/test-argv-iter.c: Include header file being tested immediately
25488         after config.h.
25489         * tests/test-base64.c: Likewise.
25490         * tests/test-flock.c: Likewise.
25491         * tests/test-fsync.c: Likewise.
25492         * tests/test-getdate.c: Likewise.
25493         * tests/test-getndelim2.c: Likewise.
25494         * tests/test-isfinite.c: Likewise.
25495         * tests/test-isinf.c: Likewise.
25496         * tests/test-strerror.c: Likewise.
25497         * tests/test-strsignal.c: Likewise.
25498
25499 2009-12-23  Eric Blake  <ebb9@byu.net>
25500
25501         unistd: work around cygwin bug
25502         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
25503         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
25504         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25505
25506 2009-12-23  Bruno Haible  <bruno@clisp.org>
25507
25508         localename: More tests.
25509         * tests/test-localename.c (SIZEOF): New macro.
25510         (categories): New variable.
25511         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
25512         test_locale_name_default): Add test w.r.t. thread locale.
25513         (test_locale_name_thread): New function.
25514         (main): Invoke it.
25515
25516         localename: Make aware of thread locale.
25517         * lib/localename.h (gl_locale_name_thread): New declaration.
25518         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
25519         behaviour with respect to thread locale.
25520         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
25521         <langinfo.h>, glthread/lock.h.
25522         (SIZE_BITS): New macro.
25523         (string_hash): New function.
25524         (struct hash_node): New type.
25525         (HASH_TABLE_SIZE): New macro.
25526         (struniq_hash_table, struniq_lock): New variables.
25527         (struniq): New function.
25528         (gl_locale_name_thread): New function.
25529         (gl_locale_name): Invoke it.
25530         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
25531         * modules/localename (Depends-on): Add lock.
25532         Reported by Mike Gran <spk121@yahoo.com>.
25533
25534 2009-12-23  Eric Blake  <ebb9@byu.net>
25535
25536         va-args: new module
25537         * modules/va-args: New file.
25538         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
25539         * MODULES.html.sh (Core language properties): Mention it.
25540
25541         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
25542         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
25543         named alias for __attribute__((__unused__)).
25544         * lib/chown.c: Update client.
25545         * lib/fchmodat.c: Likewise.
25546         * lib/fts.c: Likewise.
25547         * lib/getdate.y: Likewise.
25548         * lib/getgroups.c: Likewise.
25549         * lib/getopt.c: Likewise.
25550         * lib/getugroups.c: Likewise.
25551         * lib/mkdir.c: Likewise.
25552         * lib/mkfifo.c: Likewise.
25553         * lib/mkfifoat.c: Likewise.
25554         * lib/mknod.c: Likewise.
25555         * lib/mknodat.c: Likewise.
25556         * lib/readlink.c: Likewise.
25557         * lib/se-context.in.h: Likewise.
25558         * lib/se-selinux.in.h: Likewise.
25559         * lib/sockets.c: Likewise.
25560         * lib/symlink.c: Likewise.
25561         * lib/symlinkat.c: Likewise.
25562         * lib/unicodeio.c: Likewise.
25563         * lib/unistr.h: Likewise.
25564         * tests/test-areadlink.c: Likewise.
25565         * tests/test-areadlinkat.c: Likewise.
25566         * tests/test-filenamecat.c: Likewise.
25567         * tests/test-fseeko.c: Likewise.
25568         * tests/test-ftello.c: Likewise.
25569         * tests/test-getdate.c: Likewise.
25570         * tests/test-getgroups.c: Likewise.
25571         * tests/test-gethostname.c: Likewise.
25572         * tests/test-quotearg.c: Likewise.
25573         * tests/test-version-etc.c: Likewise.
25574         * tests/test-xalloc-die.c: Likewise.
25575         * tests/test-xfprintf-posix.c: Likewise.
25576         * tests/test-xprintf-posix.c: Likewise.
25577         * tests/test-xvasprintf.c: Likewise.
25578
25579         tests: avoid compiler warnings
25580         * tests/test-fcntl.c (main): Delete unused parameters.
25581         * tests/test-freopen-safer.c (main): Likewise.
25582         * tests/test-xalloc-die.c (main): Mark unused parameters.
25583         * tests/test-fseeko.c (main): Likewise.
25584         * tests/test-ftello.c (main): Likewise.
25585         * tests/test-nanosleep.c (main): Avoid declaration warning.
25586         * tests/test-sleep.c (main): Likewise.
25587         * tests/test-unsetenv.c (main): Silence warning about string
25588         literal.
25589         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25590
25591 2009-12-23  Bruno Haible  <bruno@clisp.org>
25592
25593         * tests/test-localename.c (test_locale_name): New function, extracted
25594         from main. Also test mixed situations.
25595         (test_locale_name_posix, test_locale_name_environ,
25596         test_locale_name_default): New functions.
25597         (main): Invoke them all.
25598         * modules/localename-tests (configure.ac): Test for newlocale.
25599
25600 2009-12-23  Bruno Haible  <bruno@clisp.org>
25601
25602         unistd: Ensure getcwd gets declared before being overridden.
25603         * lib/unistd.in.h: Conditionally include <io.h>.
25604
25605 2009-12-22  Bruno Haible  <bruno@clisp.org>
25606
25607         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25608         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25609         (gl_WCHAR_H): Invoke it.
25610         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25611         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25612         Reported by Karl Berry <karl@freefriends.org>.
25613
25614 2009-12-22  Eric Blake  <ebb9@byu.net>
25615
25616         math, unistd: avoid redundant includes
25617         * lib/math.in.h (isnan): No need to re-include <math.h>.
25618         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25619
25620         getsubopt: work around cygwin bug
25621         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25622         avoid conflicting with system getsubopt.
25623         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25624         bug.
25625
25626         getopt: synchronize from glibc
25627         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25628         parameter order.  Adjust all callers.
25629         (_getopt_internal_r, main): Adjust quoting in error messages.
25630         Drop considerations for outdated POSIX 1003.2 error message.
25631         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25632         callers.
25633         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25634
25635         test-getopt: test stderr behavior
25636         * modules/getopt-posix-tests (Depends-on): Add dup2.
25637         * tests/test-getopt.c (ASSERT): Avoid stderr.
25638         (main): Move stderr to a temporary file.
25639         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
25640         Instead, add parameter to inform caller if output occurred.
25641         (test_getopt): Adjust all existing tests to expect silence, and
25642         add new tests of leading ":".
25643         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25644         glibc shortcomings with leading "-:" or "+:" in optstring.
25645         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25646         Likewise.
25647         * doc/posix-functions/getopt.texi (getopt): Likewise.
25648
25649         test-getopt: enhance test
25650         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
25651         supports optind=0.
25652         * tests/test-getopt.c (OPTIND_MIN): Move...
25653         * tests/test-getopt.h (OPTIND_MIN): ...here.
25654         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
25655         Require that optind=0 works, since modern BSD supports it in
25656         addition to optreset, and since coreutils expects it.
25657         (test_getopt_long_only): New test.
25658         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25659         glibc shortcomings with 'W;', and enforcement of optind=0.
25660         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25661         Likewise.
25662
25663 2009-12-21  Bruno Haible  <bruno@clisp.org>
25664
25665         localename: Improvements for MacOS X and Cygwin.
25666         * lib/localename.h (gl_locale_name_environ): New declaration.
25667         * lib/localename.c (gl_locale_name_environ): New function, extracted from
25668         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
25669         (gl_locale_name_posix): Invoke it.
25670         (gl_locale_name_default): Add comments. Use Windows native API also on
25671         Cygwin.
25672
25673 2009-12-21  Bruno Haible  <bruno@clisp.org>
25674
25675         Update list of Win32 locale ids.
25676         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
25677         (LANG_SAMI): Renamed from LANG_SAAMI.
25678         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
25679         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
25680         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
25681         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
25682         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
25683         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
25684         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
25685         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
25686         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
25687         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
25688         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
25689         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
25690         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
25691         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
25692         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
25693         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
25694         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
25695         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
25696         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
25697         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
25698         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
25699         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
25700         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
25701         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
25702         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
25703         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
25704         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
25705         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
25706         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
25707         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
25708         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
25709         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
25710         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
25711         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
25712         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
25713         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
25714         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
25715         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
25716         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
25717         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
25718         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
25719         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
25720         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
25721         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
25722         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
25723         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
25724         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
25725         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
25726         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
25727         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
25728         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
25729         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
25730         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
25731         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
25732         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
25733         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
25734         Add more languages and countries for Sami, Sorbian. Add more countries
25735         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
25736         for Pashto. Change country for Syriac, Tswana.
25737
25738 2009-12-21  Eric Blake  <ebb9@byu.net>
25739
25740         test-utimens: avoid spurious failure
25741         * tests/test-chown.h (nap): Factor...
25742         * tests/nap.h: ...into new file.
25743         * tests/test-lchown.h (nap): Avoid duplication.
25744         * tests/test-utimens-common.h (nap): Use shared implementation,
25745         necessary on file systems with 1-second resolution.
25746         * modules/chown-tests (Files): Include new file.
25747         * modules/fdutimensat-tests (Files): Likewise.
25748         * modules/futimens-tests (Files): Likewise.
25749         * modules/lchown-tests (Files): Likewise.
25750         * modules/openat-tests (Files): Likewise.
25751         * modules/utimens-tests (Files): Likewise.
25752         * modules/utimensat-tests (Files): Likewise.
25753
25754 2009-12-19  Eric Blake  <ebb9@byu.net>
25755
25756         futimens, utimensat: work around Linux bug
25757         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
25758         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25759         * lib/utimensat.c (rpl_utimensat): Work around it.
25760         * lib/futimens.c (rpl_futimens): Adjust comment.
25761
25762         utimens: work around Linux ctime bug
25763         * lib/utimens.c (detect_ctime_bug): New helper function.
25764         (update_timespec): Differentiate between workaround needed for
25765         this bug vs. what is needed for systems that lack utimensat.
25766         (fdutimens, lutimens): Work around bug.
25767
25768         utimens: check for ctime update
25769         * tests/test-utimens-common.h (check_ctime): Define.
25770         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
25771         * tests/test-futimens.h (test_futimens): Likewise.
25772         * tests/test-lutimens.h (test_lutimens): Likewise.
25773         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25774         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25775
25776 2009-12-19  Bruno Haible  <bruno@clisp.org>
25777
25778         dprintf-posix: Check against memory leak fixed on 2009-12-15.
25779         * tests/test-dprintf-posix2.sh: New file.
25780         * tests/test-dprintf-posix2.c: New file.
25781         * modules/dprintf-posix-tests (Files): Add them.
25782         (configure.ac): Check for getrlimit and setrlimit.
25783         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25784
25785 2009-12-19  Bruno Haible  <bruno@clisp.org>
25786
25787         fprintf-posix: Check against memory leak fixed on 2009-12-15.
25788         * tests/test-fprintf-posix3.sh: New file.
25789         * tests/test-fprintf-posix3.c: New file.
25790         * modules/fprintf-posix-tests (Files): Add them.
25791         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25792
25793 2009-12-19  Eric Blake  <ebb9@byu.net>
25794
25795         dirfd: fix prototype
25796         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
25797         * lib/dirfd.c (dirfd): Likewise.
25798
25799         canonicalize: reduce memory usage
25800         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
25801         allocation to size.
25802         Reported by Solar Designer <solar@openwall.com>.
25803
25804 2009-12-19  Bruno Haible  <bruno@clisp.org>
25805
25806         New module attribute 'Applicability'.
25807         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
25808         * gnulib-tool: New option --extract-applicability.
25809         (func_usage): Document it.
25810         (sed_extract_prog): Recognize it.
25811         (func_get_applicability): New function.
25812         (func_import): Generalize handling of 'link-warning' module.
25813         * modules/link-warning (Applicability): New section.
25814         * modules/arg-nonnull (Applicability): New section.
25815         Repoted by Simon Josefsson <simon@josefsson.org>.
25816
25817 2009-12-19  Bruno Haible  <bruno@clisp.org>
25818
25819         fflush: tweak
25820         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
25821         * lib/fseeko.c (rpl_fseeko): Likewise.
25822
25823 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
25824
25825         * lib/gl_list.h: Fix typo in comment.
25826
25827 2009-12-16  Eric Blake  <ebb9@byu.net>
25828
25829         fcntl: use to simplify other modules
25830         * modules/cloexec (Depends-on): Add fcntl.
25831         * modules/fchdir (Depends-on): Likewise.
25832         * modules/fd-safer-flag (Depends-on): Likewise.
25833         * modules/unistd-safer (Depends-on): Likewise.
25834         * modules/dup3 (configure.ac): Set module indicator.
25835         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
25836         missing.
25837         * lib/fchdir.c (_gl_register_dup): Fix comment.
25838         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
25839         * lib/dup-safer.c (dup_safer): Likewise.
25840         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
25841         * lib/dup3.c (dup3): Likewise.
25842         * tests/test-fchdir.c (main): Enhance test.
25843         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
25844
25845         fcntl: port portions of fcntl to mingw
25846         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
25847         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
25848         replacement for mingw.
25849         * modules/fcntl (Description): Update.
25850         (Depends-on): Add dup2.
25851         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
25852         * modules/fcntl-h (Makefile.am): Substitute it.
25853         * lib/fcntl.in.h (fcntl): Update declaration.
25854         (F_DUPFD, F_GETFD): New macros, when needed.
25855         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25856         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
25857         * tests/test-fcntl.c (check_flags, main): Enhance test for items
25858         we now guarantee.
25859
25860         fcntl: work around cygwin bug in F_DUPFD
25861         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
25862         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
25863         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
25864         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
25865         * doc/posix-functions/fcntl.texi (fcntl): Document it.
25866
25867         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
25868         * modules/fcntl (Files): List new files.
25869         (configure.ac): Run a test.
25870         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
25871         * lib/fcntl.c (rpl_fcntl): Likewise.
25872         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
25873         (gl_FCNTL_H): Always replace fcntl.h.
25874         * modules/fcntl-h (Makefile.am): Substitute witnesses.
25875         * lib/fcntl.in.h (fcntl): Declare replacement.
25876         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
25877         needed, plus a witness.
25878         * doc/posix-functions/fcntl.texi (fcntl): Document this.
25879         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25880         * tests/test-fcntl.c: New file.
25881         * modules/fcntl-tests: Likewise.
25882
25883         binary-io: avoid potential compilation warning
25884         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
25885         directives.
25886
25887         fflush: avoid compilation error on NetBSD
25888         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
25889         between off_t and fpos_t, since the latter is sometimes a struct.
25890         * lib/fseeko.c (rpl_fseeko): Likewise.
25891         Reported by Alexander Nasonov <alnsn@yandex.ru>.
25892
25893 2009-12-15  Eric Blake  <ebb9@byu.net>
25894
25895         fcntl-h, stdio, sys_ioctl: fix declarations
25896         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
25897         function must not take arguments.
25898         * lib/sys_ioctl.in.h (ioctl): Likewise.
25899         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
25900         (open): Add a link warning.
25901
25902 2009-12-15  Jim Meyering  <meyering@redhat.com>
25903
25904         areadlink, areadlink-with-size: relax license to LGPLv2+
25905         * modules/areadlink (License): Relax to LGPLv2+.
25906         * modules/areadlink-with-size (License): Likewise.
25907
25908 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
25909             Bruno Haible  <bruno@clisp.org>
25910
25911         *printf: Fix memory leak.
25912         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
25913         * lib/vfprintf.c (vfprintf): Likewise.
25914         * lib/dprintf.c (dprintf): Likewise.
25915         * lib/vdprintf.c (vdprintf): Likewise.
25916
25917 2009-12-14  Eric Blake  <ebb9@byu.net>
25918
25919         accept4: adjust module dependencies
25920         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
25921
25922         utimens: one more try at avoiding compiler warning
25923         * lib/utimens.c (lutimens): Lower scope of result.
25924
25925 2009-12-13  Bruno Haible  <bruno@clisp.org>
25926
25927         Move the malloc checking from module 'list' to new module 'xlist'.
25928         * modules/xlist: New file.
25929         * lib/gl_xlist.h: New file.
25930         * lib/gl_xlist.c: New file.
25931         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
25932         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
25933         gl_list_add_last, gl_list_add_before, gl_list_add_after,
25934         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
25935         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
25936         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
25937         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
25938         gl_sortedlist_nx_add): New declarations.
25939         (struct gl_list_implementation): Rename and change methods accordingly.
25940         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
25941         (gl_list_nx_create): Renamed from gl_list_create.
25942         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25943         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25944         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25945         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25946         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25947         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25948         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25949         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25950         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
25951         gl_list_create_empty.
25952         (gl_list_nx_create): Renamed from gl_list_create.
25953         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25954         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25955         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25956         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25957         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25958         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25959         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25960         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25961         * lib/gl_array_list.c: Don't include xalloc.h.
25962         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
25963         NULL upon out-of-memory.
25964         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
25965         out-of-memory.
25966         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
25967         Change return type to 'int'.
25968         (gl_array_nx_set_at): Renamed from gl_array_set_at.
25969         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25970         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
25971         upon out-of-memory.
25972         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
25973         upon out-of-memory.
25974         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
25975         upon out-of-memory.
25976         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
25977         upon out-of-memory.
25978         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
25979         out-of-memory.
25980         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
25981         Update.
25982         (gl_array_list_implementation): Update.
25983         * lib/gl_carray_list.c: Don't include xalloc.h.
25984         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
25985         Return NULL upon out-of-memory.
25986         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
25987         out-of-memory.
25988         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
25989         Change return type to 'int'.
25990         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
25991         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25992         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
25993         upon out-of-memory.
25994         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
25995         upon out-of-memory.
25996         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
25997         out-of-memory.
25998         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
25999         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
26000         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
26001         Update.
26002         (gl_carray_list_implementation): Update.
26003         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
26004         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
26005         gl_linked_create_empty. Return NULL upon out-of-memory.
26006         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
26007         out-of-memory.
26008         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
26009         Change return type to 'int'. Return -1 upon out-of-memory.
26010         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
26011         out-of-memory.
26012         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
26013         upon out-of-memory.
26014         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
26015         upon out-of-memory.
26016         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
26017         NULL upon out-of-memory.
26018         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
26019         upon out-of-memory.
26020         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
26021         out-of-memory.
26022         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
26023         Update.
26024         * lib/gl_linked_list.c: Don't include xalloc.h.
26025         (gl_linked_list_implementation): Update.
26026         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
26027         (add_to_bucket): Change return type to 'int'.
26028         (gl_linkedhash_list_implementation): Update.
26029         * lib/gl_anytree_list1.h (free_subtree): New function.
26030         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
26031         gl_tree_create_empty. Return NULL upon out-of-memory.
26032         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
26033         Change return type to 'int'. Return -1 upon out-of-memory.
26034         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
26035         out-of-memory.
26036         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
26037         (gl_tree_remove_node): New function, moved here from
26038         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
26039         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
26040         Update.
26041         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
26042         malloc, not xmalloc. Return NULL upon out-of-memory.
26043         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26044         out-of-memory.
26045         (gl_tree_remove_node_from_tree): New function, extracted from
26046         gl_tree_remove_node.
26047         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26048         upon out-of-memory.
26049         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26050         out-of-memory.
26051         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26052         upon out-of-memory.
26053         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26054         upon out-of-memory.
26055         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26056         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
26057         not xmalloc. Return NULL upon out-of-memory.
26058         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26059         out-of-memory.
26060         (gl_tree_remove_node_from_tree): New function, extracted from
26061         gl_tree_remove_node.
26062         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26063         upon out-of-memory.
26064         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26065         out-of-memory.
26066         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26067         upon out-of-memory.
26068         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26069         upon out-of-memory.
26070         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26071         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
26072         gl_anytree_list1.h before gl_anyavltree_list2.h.
26073         (gl_avltree_list_implementation): Update.
26074         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
26075         gl_anytree_list1.h before gl_anyavltree_list2.h.
26076         (gl_rbtree_list_implementation): Update.
26077         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
26078         Change return type to 'int'. Return -1 upon out-of-memory. Use
26079         __builtin_expect.
26080         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
26081         (gl_avltreehash_list_implementation): Update.
26082         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
26083         (gl_rbtreehash_list_implementation): Update.
26084         * modules/array-list (Depends-on): Remove xalloc.
26085         * modules/carray-list (Depends-on): Likewise.
26086         * modules/linked-list (Depends-on): Likewise.
26087         * modules/linkedhash-list (Depends-on): Likewise.
26088         * modules/avltree-list (Depends-on): Likewise.
26089         * modules/rbtree-list (Depends-on): Likewise.
26090         * modules/avltreehash-list (Depends-on): Likewise.
26091         * modules/rbtreehash-list (Depends-on): Likewise.
26092
26093         * modules/xsublist: New file.
26094         * lib/gl_xsublist.h: New file.
26095         * lib/gl_xsublist.c: New file.
26096         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
26097         (gl_sublist_nx_create): New declaration.
26098         * lib/gl_sublist.c: Don't include xalloc.h.
26099         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
26100         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
26101         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
26102         Change return type to 'int'. Return -1 upon out-of-memory.
26103         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
26104         upon out-of-memory.
26105         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
26106         NULL upon out-of-memory.
26107         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
26108         upon out-of-memory.
26109         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
26110         NULL upon out-of-memory.
26111         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
26112         NULL upon out-of-memory.
26113         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
26114         upon out-of-memory.
26115         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
26116         (gl_sublist_list_implementation): Update.
26117         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
26118         upon out-of-memory.
26119         * modules/sublist (Depends-on): Remove xalloc.
26120
26121         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
26122         * tests/test-carray_list.c: Likewise.
26123         * tests/test-linked_list.c: Likewise.
26124         * tests/test-linkedhash_list.c: Likewise.
26125         * tests/test-avltree_list.c: Likewise.
26126         * tests/test-rbtree_list.c: Likewise.
26127         * tests/test-avltreehash_list.c: Likewise.
26128         * tests/test-rbtreehash_list.c: Likewise.
26129         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
26130         * modules/carray-list-tests (Makefile.am): Likewise.
26131         * modules/linked-list-tests (Makefile.am): Likewise.
26132         * modules/linkedhash-list-tests (Makefile.am): Likewise.
26133         * modules/avltree-list-tests (Makefile.am): Likewise.
26134         * modules/rbtree-list-tests (Makefile.am): Likewise.
26135         * modules/avltreehash-list-tests (Makefile.am): Likewise.
26136         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26137
26138         * NEWS: Mention the changes.
26139
26140         * lib/clean-temp.c: Include gl_xlist.h.
26141         * modules/clean-temp (Depends-on): Add xlist.
26142
26143         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
26144         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
26145
26146         * tests/test-array_oset.c: Include gl_xlist.h.
26147         * modules/array-oset-tests (Depends-on): Add xlist.
26148
26149         Reported by José E. Marchesi <jemarch@gnu.org>.
26150
26151 2009-12-13  Bruno Haible  <bruno@clisp.org>
26152
26153         Move the malloc checking from module 'oset' to new module 'xoset'.
26154         * modules/xoset: New file.
26155         * lib/gl_xoset.h: New file.
26156         * lib/gl_xoset.c: New file.
26157         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
26158         declarations.
26159         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
26160         (struct gl_oset_implementation): Rename and change methods accordingly.
26161         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
26162         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26163         'int'. Mark as __warn_unused_result__.
26164         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
26165         gl_oset_create_empty.
26166         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26167         'int'.
26168         * lib/gl_array_oset.c: Don't include xalloc.h.
26169         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
26170         malloc, not xmalloc.
26171         (grow): Change return type to 'int'. Don't call xalloc_die.
26172         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
26173         to 'int'.
26174         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
26175         'int'.
26176         (gl_array_oset_implementation): Update.
26177         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
26178         gl_tree_create_empty.
26179         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
26180         'int'.
26181         * lib/gl_avltree_oset.c: Don't include xalloc.h.
26182         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26183         xmalloc.
26184         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26185         not xmalloc.
26186         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26187         xmalloc.
26188         (gl_avltree_oset_implementation): Update.
26189         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
26190         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26191         xmalloc.
26192         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26193         not xmalloc.
26194         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26195         xmalloc.
26196         (gl_rbtree_oset_implementation): Update.
26197         * modules/array-oset (Depends-on): Remove xalloc.
26198         * modules/avltree-oset (Depends-on): Likewise.
26199         * modules/rbtree-oset (Depends-on): Likewise.
26200         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
26201         * tests/test-avltree_oset.c: Likewise.
26202         * tests/test-rbtree_oset.c: Likewise.
26203         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26204         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
26205         * modules/rbtree-oset-tests (Makefile.am): Likewise.
26206         * NEWS: Mention the change.
26207
26208 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
26209
26210         maint.mk: allow a project to override release-prep commands
26211         * top/maint.mk (alpha, beta, stable): Move release-preparatory
26212         commands into a new rule.
26213         (release-prep): New rule.
26214         (release-prep-hook): New overridable variable.
26215
26216 2009-12-13  Bruno Haible  <bruno@clisp.org>
26217
26218         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
26219
26220 2009-12-13  Jim Meyering  <meyering@redhat.com>
26221
26222         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
26223         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
26224
26225 2009-12-12  Bruno Haible  <bruno@clisp.org>
26226
26227         duplocale: Tweak.
26228         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
26229
26230 2009-12-12  Karl Berry  <karl@gnu.org>
26231
26232         * config/srclist.txt (strtoll.c): tab changes, no more sync.
26233
26234 2009-12-12  Bruno Haible  <bruno@clisp.org>
26235
26236         * m4/po.m4: Undo incorrect untabification.
26237
26238 2009-12-12  Bruno Haible  <bruno@clisp.org>
26239
26240         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
26241         * modules/c-strtod (Depends-on): Add locale.
26242         * modules/c-strtold (Depends-on): Likewise.
26243
26244 2009-12-12  Bruno Haible  <bruno@clisp.org>
26245
26246         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
26247
26248 2009-12-11  Eric Blake  <ebb9@byu.net>
26249
26250         setenv: relax requirement in light of POSIX ruling
26251         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
26252         not NULL.
26253         * tests/test-setenv.c (main): Relax test.
26254         * tests/test-unsetenv.c (main): Likewise.
26255         * doc/posix-functions/setenv.texi (setenv): Document this.
26256         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26257
26258 2009-12-11  Bruno Haible  <bruno@clisp.org>
26259
26260         New module 'fd-safer-flag'.
26261         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26262         * lib/dup-safer.c (dup_safer_flag): Remove function.
26263         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26264         * lib/fd-safer.c (fd_safer_flag): Remove function.
26265         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26266         * modules/cloexec (configure.ac): Drop indicator macro.
26267         * modules/fd-safer-flag: New file.
26268         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26269         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26270         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26271
26272 2009-12-11  Bruno Haible  <bruno@clisp.org>
26273
26274         Tests for module 'nl_langinfo'.
26275         * modules/nl_langinfo-tests: New file.
26276         * tests/test-nl_langinfo.sh: New file.
26277         * tests/test-nl_langinfo.c: New file.
26278
26279         New module 'nl_langinfo'.
26280         * lib/nl_langinfo.c: New file.
26281         * m4/nl_langinfo.m4: New file.
26282         * modules/nl_langinfo: New file.
26283         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26284
26285 2009-12-11  Bruno Haible  <bruno@clisp.org>
26286
26287         Tests for module 'langinfo'.
26288         * modules/langinfo-tests: New file.
26289         * tests/test-langinfo.c: New file.
26290
26291         New module 'langinfo'.
26292         * lib/langinfo.in.h: New file.
26293         * m4/langinfo_h.m4: New file.
26294         * modules/langinfo: New file.
26295         * doc/posix-headers/langinfo.texi: Mention the new module.
26296
26297 2009-12-11  Bruno Haible  <bruno@clisp.org>
26298
26299         * lib/config.charset: Untabify.
26300
26301 2009-12-11  Bruno Haible  <bruno@clisp.org>
26302
26303         * modules/unistd-safer (configure.ac): Drop indicator macro.
26304
26305 2009-12-11  Bruno Haible  <bruno@clisp.org>
26306
26307         Move pipe2-safer code to its own file.
26308         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26309         * lib/pipe-safer.c (pipe2_safer): Remove function.
26310         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26311         (Makefile.am): Add it to lib_SOURCES.
26312
26313 2009-12-10  Bruno Haible  <bruno@clisp.org>
26314
26315         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26316
26317 2009-12-10  Bruno Haible  <bruno@clisp.org>
26318
26319         Declare which arguments expect non-NULL values, for GCC and clang.
26320         * build-aux/arg-nonnull.h: New file.
26321         * modules/arg-nonnull: New file.
26322         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26323         (inet_ntop, inet_pton): Use it.
26324         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26325         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26326         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26327         (open, openat): Use it.
26328         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26329         (fnmatch): Use it.
26330         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26331         (getopt, getopt_long, getopt_long_only): Use it.
26332         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26333         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26334         Use it.
26335         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26336         (iconv_open): Use it.
26337         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26338         (strtoimax, strtoumax): Use it.
26339         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26340         (duplocale): Use it.
26341         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26342         (frexp, frexpl): Use it.
26343         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26344         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26345         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26346         (tsearch, tfind, tdelete, twalk): Use it.
26347         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26348         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26349         sigpending): Use it.
26350         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26351         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26352         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26353         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26354         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26355         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26356         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26357         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26358         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26359         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26360         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26361         Use it.
26362         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26363         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26364         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26365         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26366         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26367         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26368         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26369         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26370         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26371         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26372         strtoull, unsetenv): Use it.
26373         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26374         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26375         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26376         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26377         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26378         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26379         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26380         (strcasecmp, strncasecmp): Use it.
26381         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26382         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26383         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26384         rpl_setsockopt): Use it.
26385         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26386         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26387         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26388         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26389         (gettimeofday): Use it.
26390         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26391         (times): Use it.
26392         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26393         (uname): Use it.
26394         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26395         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26396         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26397         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26398         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26399         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26400         unlinkat, write): Use it.
26401         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26402         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26403         * lib/argv-iter.h: Include arg-nonnull.h.
26404         (_ATTRIBUTE_NONNULL_): Remove macro.
26405         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26406         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26407         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26408         optimization.
26409         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26410         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26411         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26412         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26413         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26414         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26415         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26416         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26417         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26418         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26419         * modules/dirent (Depends-on): Add arg-nonnull.
26420         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26421         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26422         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26423         * modules/fnmatch (Depends-on): Add arg-nonnull.
26424         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26425         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26426         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26427         * modules/glob (Depends-on): Add arg-nonnull.
26428         (Makefile.am): Insert arg-nonnull.h into glob.h.
26429         * modules/iconv_open (Depends-on): Add arg-nonnull.
26430         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26431         * modules/inttypes (Depends-on): Add arg-nonnull.
26432         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26433         * modules/locale (Depends-on): Add arg-nonnull.
26434         (Makefile.am): Insert arg-nonnull.h into locale.h.
26435         * modules/math (Depends-on): Add arg-nonnull.
26436         (Makefile.am): Insert arg-nonnull.h into math.h.
26437         * modules/netdb (Depends-on): Add arg-nonnull.
26438         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26439         * modules/search (Depends-on): Add arg-nonnull.
26440         (Makefile.am): Insert arg-nonnull.h into search.h.
26441         * modules/signal (Depends-on): Add arg-nonnull.
26442         (Makefile.am): Insert arg-nonnull.h into signal.h.
26443         * modules/spawn (Depends-on): Add arg-nonnull.
26444         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26445         * modules/stdio (Depends-on): Add arg-nonnull.
26446         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26447         * modules/stdlib (Depends-on): Add arg-nonnull.
26448         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26449         * modules/string (Depends-on): Add arg-nonnull.
26450         (Makefile.am): Insert arg-nonnull.h into string.h.
26451         * modules/strings (Depends-on): Add arg-nonnull.
26452         (Makefile.am): Insert arg-nonnull.h into strings.h.
26453         * modules/sys_socket (Depends-on): Add arg-nonnull.
26454         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26455         * modules/sys_stat (Depends-on): Add arg-nonnull.
26456         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26457         * modules/sys_time (Depends-on): Add arg-nonnull.
26458         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26459         * modules/sys_times (Depends-on): Add arg-nonnull.
26460         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26461         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26462         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26463         * modules/time (Depends-on): Add arg-nonnull.
26464         (Makefile.am): Insert arg-nonnull.h into time.h.
26465         * modules/unistd (Depends-on): Add arg-nonnull.
26466         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26467         * modules/wchar (Depends-on): Add arg-nonnull.
26468         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26469         * modules/argv-iter (Depends-on): Add arg-nonnull.
26470         * tests/test-canonicalize.c (null_ptr): New function.
26471         (main): Use it.
26472         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
26473         (main): Use it.
26474         * tests/test-memmem.c (null_ptr): New function.
26475         (main): Use it.
26476         Reported by Jim Meyering.
26477
26478 2009-12-10  Bruno Haible  <bruno@clisp.org>
26479
26480         Use spaces for indentation, not tabs.
26481         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26482         * m4/*.m4: Untabify.
26483         * build-aux/*.h: Untabify.
26484         * tests/**/*.[hc]: Untabify.
26485         * README: New section "Indent with spaces, not TABs", based on
26486         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
26487         * NEWS: Mention the change.
26488
26489 2009-12-10  Bruno Haible  <bruno@clisp.org>
26490
26491         pty test: Fix link error.
26492         * modules/pty-tests (Makefile.am): Add the default LDADD value to
26493         test_pty_LDADD.
26494
26495 2009-12-07  Simon Josefsson  <simon@josefsson.org>
26496
26497         * modules/pty: New file.
26498         * modules/pty-tests: New file.
26499         * m4/pty.m4: New file.
26500         * tests/test-pty.c: New file.
26501         * doc/glibc-headers/pty.texi: Modified.
26502         * doc/glibc-functions/forkpty.texi: Modified.
26503         * doc/glibc-functions/openpty.texi: Modified.
26504
26505 2009-12-10  Bruno Haible  <bruno@clisp.org>
26506
26507         Avoid syntax error in C++ mode.
26508         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
26509
26510 2009-12-10  Bruno Haible  <bruno@clisp.org>
26511
26512         Use sed with option -e.
26513         * gnulib-tool (func_version, func_emit_copyright_notice,
26514         func_emit_initmacro_end, func_import, func_create_testdir): Pass
26515         option -e to sed.
26516         * modules/link-warning (Makefile.am): Likewise.
26517
26518 2009-12-10  Jim Meyering  <meyering@redhat.com>
26519
26520         mgetgroups: do not write bytes beyond end of malloc'd buffer
26521         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
26522         username, we call getgroups with a one-element-shorter buffer,
26523         but still told it the length was original, max_n_groups.
26524
26525 2009-12-09  Eric Blake  <ebb9@byu.net>
26526
26527         cloexec: relax license
26528         * modules/cloexec (Maintainer): Add myself.
26529         (License): Use LGPL, not GPL.
26530
26531         link-warning: optimize generation
26532         * modules/link-warning (Makefile.am): Reduce process usage.
26533
26534 2009-12-09  Bruno Haible  <bruno@clisp.org>
26535
26536         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
26537         workaround was added on 2009-11-17.
26538
26539 2009-12-09  Jim Meyering  <meyering@redhat.com>
26540             Bruno Haible  <bruno@clisp.org>
26541
26542         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26543         * modules/link-warning (Makefile.am): Make the comment-removing sed
26544         command more robust in the face of bootstrap-prepended comment lines.
26545
26546 2009-12-09  Bruno Haible  <bruno@clisp.org>
26547
26548         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
26549         most one group.
26550
26551 2009-12-09  Simon Josefsson <simon@josefsson.org>
26552             Bruno Haible  <bruno@clisp.org>
26553
26554         * build-aux/link-warning.h: Add copyright notice.
26555         * modules/link-warning (Makefile.am): Generate link-warning.h from
26556         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
26557         * NEWS: Mention change in link-warning module.
26558         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
26559         * modules/dirent (Makefile.am): Add dependency to dirent.h.
26560         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
26561         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26562         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26563         * modules/math (Makefile.am): Add dependency to math.h.
26564         * modules/search (Makefile.am): Add dependency to search.h.
26565         * modules/signal (Makefile.am): Add dependency to signal.h.
26566         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26567         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26568         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26569         * modules/string (Makefile.am): Add dependency to string.h.
26570         * modules/strings (Makefile.am): Add dependency to strings.h.
26571         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26572         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26573         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26574         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26575         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26576         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26577         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26578         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26579         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26580
26581 2009-12-09  Bruno Haible  <bruno@clisp.org>
26582
26583         fchdir: Optimize away rpl_fstat when possible.
26584         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26585         REPLACE_OPEN_DIRECTORY.
26586         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26587
26588 2009-12-09  Bruno Haible  <bruno@clisp.org>
26589
26590         * lib/fchdir.c: Update comment.
26591
26592 2009-12-09  Bruno Haible  <bruno@clisp.org>
26593
26594         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26595
26596 2009-12-08  Eric Blake  <ebb9@byu.net>
26597
26598         fchdir: avoid memory leak on re-registration.
26599         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26600
26601 2009-12-08  Jim Meyering  <meyering@redhat.com>
26602
26603         init.sh: avoid Solaris 10 /bin/sh portability problem
26604         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26605         sourced script:
26606           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26607           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26608           bar
26609         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26610         and two tests used that idiom.
26611         * tests/init.sh: Update suggested usage comments.
26612         (path_prepend_): New function, to be used in place
26613         of the --src-path=DIR option.
26614         (setup_): Move PATH-prepending code into path_prepend_.
26615         * tests/test-pread.sh: Adapt to new usage.
26616         * tests/test-xalloc-die.sh: Likewise.
26617
26618 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26619
26620         * doc/gnulib.texi (Glibc pty.h): Add.
26621         * doc/glibc-functions/forkpty.texi: Add.
26622         * doc/glibc-functions/openpty.texi: Add.
26623         Suggested by Bruno Haible.
26624
26625 2009-12-08  Eric Blake  <ebb9@byu.net>
26626
26627         fchdir: fix logic bugs
26628         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26629         * tests/test-fchdir.c (main): Enhance test.
26630         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26631         is in use.
26632
26633         dup2: fix logic bugs
26634         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26635         REPLACE_DUP2 to decide when rpl_dup2 is needed.
26636         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
26637         exists.
26638         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
26639
26640 2009-12-07  Eric Blake  <ebb9@byu.net>
26641
26642         unlink: fix m4 detection
26643         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
26644
26645         unistd-safer: add unit test
26646         * modules/unistd-safer-tests: New file.
26647         * tests/test-dup-safer.c: Likewise.
26648         * tests/test-cloexec.c (setmode): Avoid compiler warning.
26649         * tests/test-dup2.c (setmode): Likewise.
26650         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
26651
26652         cloexec: preserve text vs. binary across dup_cloexec
26653         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
26654         mode.
26655         * modules/dup2-tests (Depends-on): Add binary-io.
26656         * modules/cloexec-tests (Depends-on): Likewise.
26657         * tests/test-dup2.c (setmode, is_mode): New helpers.
26658         (main): Add tests that translation mode is preserved.
26659         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
26660         Reported by Bruno Haible.
26661
26662         mgetgroups: reduce duplicate listings
26663         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
26664         resulting array.
26665         * tests/test-chown.h (test_chown): Simplify client.
26666         * tests/test-lchown.h (test_lchown): Likewise.
26667
26668 2009-12-06  Bruno Haible  <bruno@clisp.org>
26669
26670         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
26671         value.
26672
26673 2009-12-06  Bruno Haible  <bruno@clisp.org>
26674
26675         * lib/progname.c: Include stdio.h, stdlib.h.
26676         (set_program_name): Reject a NULL argument.
26677
26678 2009-12-05  Eric Blake  <ebb9@byu.net>
26679
26680         pipe2-safer: new module
26681         * modules/pipe2-safer: New file.
26682         * lib/unistd-safer.h (pipe2_safer): New prototype.
26683         * lib/unistd--.h (pipe2): New wrapper.
26684         * lib/pipe-safer.c (pipe2_safer): New function.
26685         * modules/pipe (Depends-on): Add pipe2-safer.
26686         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
26687
26688         stdlib-safer: preserve cloexec flag for mkostemp[s]
26689         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
26690         fd_safer_flag.
26691
26692         unistd-safer: allow preservation of cloexec status via flag
26693         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
26694         prototypes.
26695         * lib/dup-safer.c (dup_safer_flag): New function.
26696         * lib/fd-safer.c (fd_safer_flag): Likewise.
26697         * modules/cloexec (configure.ac): Set witness.
26698
26699         test-dup2: enhance test
26700         * modules/dup2-tests (Depends-on): Add cloexec.
26701         * tests/test-dup2.c (main): Enhance test.
26702
26703         cloexec: add dup_cloexec
26704         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
26705         header and comments.
26706         * lib/cloexec.c (set_cloexec_flag): Add comments.
26707         (dup_cloexec): New function, with mingw implementation borrowed
26708         from...
26709         * lib/w32spawn.h (dup_noinherit): ...here.
26710         * modules/execute (Depends-on): Add cloexec.
26711         * modules/pipe (Depends-on): Likewise.
26712         * modules/cloexec (Depends-on): Add dup2.
26713         * modules/cloexec-tests (Files): New file.
26714         * tests/test-cloexec.c: Likewise.
26715
26716         test-xalloc-die: fix test for mingw
26717         * modules/xalloc-die-tests (Files): Add tests/init.sh.
26718         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
26719         directory and .exe suffix off argv[0] output.
26720
26721         test-fseeko: fix test for mingw
26722         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
26723         than undefining fseek, so test will pass on mingw.
26724
26725 2009-12-05  Bruno Haible  <bruno@clisp.org>
26726
26727         * lib/progname.h (set_program_name): Clarify specification.
26728         * lib/progname.c (set_program_name): Likewise.
26729         Reported by Jim Meyering.
26730
26731 2009-12-05  Jim Meyering  <meyering@redhat.com>
26732
26733         maint.mk: backslash-escape parens in default regexp
26734         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
26735         backslash-escape the literal parentheses.
26736
26737         maint.mk: news-date-check: use grep -E
26738         * top/maint.mk (today): Define a Make variable, not a...
26739         (news-date-check): ...shell variable.
26740         (news-date-regexp): Use the Make variable.
26741         Use grep's -E option.  Change the failing diagnostic to mention
26742         the variable, $(news-date-regexp).
26743
26744 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
26745
26746         maintainer-makefile: allow customization of NEWS entry format
26747         * top/maint.mk (news-date-regexp): New overridable variable.
26748         (news-date-check): Use it.
26749
26750 2009-12-04  Eric Blake  <ebb9@byu.net>
26751
26752         mgetgroups: add xgetgroups, and avoid ENOSYS failures
26753         * lib/mgetgroups.h (xgetgroups): New prototype.
26754         * lib/mgetgroups.c (xgetgroups): New wrapper.
26755         (mgetgroups): Handle ENOSYS.
26756         * modules/mgetgroups (Depends-on): Add realloc.
26757         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
26758
26759         mgetgroups: avoid argument promotion issues with -1
26760         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
26761         for invalid gid_t.
26762         * tests/test-chown.h (getegid, test_chown): Likewise.
26763         * tests/test-lchown.h (getegid, test_lchown): Likewise.
26764
26765 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
26766
26767         exclude: Fix header file problems.
26768         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
26769
26770 2009-12-01  Jim Meyering  <meyering@redhat.com>
26771
26772         fts: fts_open: do not let an empty string cause immediate failure
26773         This is required in support of GNU rm, for which the command
26774         "rm A '' B" must process and remove both A and B, in spite of
26775         the empty string argument.
26776         * lib/fts.c (fts_open): Do not let the presence of an empty string
26777         cause fts_open to fail immediately.  Most fts-using tools must be
26778         able to process all arguments, in order, and can be expected to
26779         diagnose such arguments themselves.
26780
26781 2009-11-30  Eric Blake  <ebb9@byu.net>
26782
26783         utimens: fix compilation error
26784         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
26785         Declare variable at right scope.
26786
26787 2009-11-29  Jim Meyering  <meyering@redhat.com>
26788
26789         bootstrap: handle perl-5.11's changed --version output
26790         * build-aux/bootstrap (get_version): Handle perl separately,
26791         since perl-5.11's --version output is different.
26792
26793 2009-11-28  Jim Meyering  <meyering@redhat.com>
26794
26795         userspec: depend on the inttostr module, too
26796         * modules/userspec (Depends-on): Add inttostr.
26797
26798         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
26799         * lib/userspec.c (parse_with_separator): Do not accept a user ID
26800         number of MAXUID when it evaluates to (uid_t) -1.
26801         Likewise for group ID.  Reported by Matt McCutchen in
26802         <http://savannah.gnu.org/bugs/?28113>
26803
26804         userspec: reformat to use spaces, not TABs
26805         * lib/userspec.c: Expand TABs to spaces.
26806         Add Emacs' "indent-tabs-mode: nil" hint.
26807
26808 2009-11-27  Eric Blake  <ebb9@byu.net>
26809
26810         getopt-gnu: flush out another BSD bug
26811         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
26812         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
26813         flush out BSD bug.
26814         * tests/test-getopt.h (test_getopt): End lists with NULL.
26815         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26816         (test_getopt_long_posix): Enhance test.
26817         * modules/getopt-posix-tests (Depends-on): Add stdbool.
26818         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
26819         getopt-gnu.
26820         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26821         Likewise.
26822
26823 2009-11-27  Simon Josefsson  <simon@josefsson.org>
26824
26825         * modules/idpriv-droptemp-tests (Notice): Fix text.
26826
26827 2009-11-27  Jim Meyering  <meyering@redhat.com>
26828
26829         test-xalloc-die: avoid spurious failure due to libtool argv difference
26830         In a libtool-enabled project, this test would fail due to a difference
26831         in the emitted program name, e.g.,
26832         -test-xalloc-die: memory exhausted
26833         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
26834         Use program to avoid that.
26835         * modules/xalloc-die-tests (Depends-on): Add progname.
26836         * tests/test-xalloc-die.c: Include progname.h".
26837         (program_name): Remove decl.
26838         (main): Call set_program_name.
26839         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
26840
26841 2009-11-26  Richard Jones  <rjones@redhat.com>
26842
26843         w32sock: leave win32 error in place.
26844         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
26845
26846 2009-11-26  Eric Blake  <ebb9@byu.net>
26847
26848         init.sh: suggest to use skip_ and fail_ functions in comments
26849         * tests/init.sh: Add a sentence.
26850
26851 2009-11-25  Bruno Haible  <bruno@clisp.org>
26852
26853         init.sh: add documentation in comments
26854         * tests/init.sh: Add some developer and user documentation.
26855
26856 2009-11-26  Jim Meyering  <meyering@redhat.com>
26857
26858         init.sh: accommodate even those who specify bogus srcdir manually
26859         * tests/init.sh: Normally, srcdir is guaranteed by automake and
26860         configure-time tests to be sanitized, so that there is no need to
26861         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
26862         (with no double quotes) suffices.  However, since tests may be
26863         invoked manually, and since you may explicitly set srcdir to the
26864         name of a directory containing spaces, do quote its uses here.
26865         * tests/test-pread.sh: Likewise.
26866         Suggested by Bruno Haible.
26867
26868         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
26869         * tests/test-pread.sh: Write no data into the pipe, because
26870         test-pread actually reads none.  This avoids a diagnostic,
26871         "bash: echo: write error: Broken pipe", that arises in the unusual
26872         event something is ignoring SIGPIPE, and might be interpreted
26873         as some sort of failure.  Reported by Bruno Haible.
26874
26875 2009-11-25  Jim Meyering  <meyering@redhat.com>
26876
26877         test-pread: cover failure with ESPIPE and EINVAL
26878         * tests/test-pread.c (main): Test for failure, too.
26879         * tests/test-pread.sh: Invoke with stdin on a pipe.
26880         Suggested by Eric Blake.
26881
26882         pread: improvement and fix
26883         * modules/pread (Depends-on): Depend on lseek, for portability to
26884         e.g., mingw.  Suggested by Eric Blake.
26885         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
26886
26887         unistd.in.h: correct declaration of pread
26888         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
26889         Reported by Richard W.M. Jones.
26890
26891         test-pread.sh: distribute the test script
26892         * modules/pread-tests (Files): Include test-pread.sh.
26893
26894         test-pread.sh: clean up
26895         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
26896         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
26897         That is unnecessary, since it's always ".".
26898         Suggestion from Eric Blake.
26899
26900         test-pread.sh: make executable
26901         * tests/test-pread.sh: Set executable bit.
26902         Reported by Eric Blake.
26903
26904         correct typo in test-pread.sh
26905         * tests/test-pread.sh: Add #! line.
26906
26907         test pread
26908         * tests/test-pread.c: New file.
26909         * tests/test-pread.sh: Likewise.
26910         * modules/pread-tests: Likewise.
26911
26912         pread: new module
26913         * modules/pread: New file.
26914         * lib/unistd.in.h (pread): Define/declare.
26915         * lib/pread.c (pread): New file.
26916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
26917         * modules/unistd (Makefile.am): Substitute witnesses.
26918         * doc/posix-functions/pread.texi (pread): Update.
26919         * MODULES.html.sh: Add pread.
26920
26921 2009-11-25  Jim Meyering  <meyering@redhat.com>
26922
26923         tests/init.sh: new file to be used via most *.sh tests
26924         * tests/init.sh: New file.
26925
26926 2009-11-25  Eric Blake  <ebb9@byu.net>
26927
26928         utimens: work around older Linux failure with symlinks
26929         * lib/utimens.c (lutimensat_works_really): New variable.
26930         (fdutimens, lutimens): Use it to manage kernels that support
26931         nanosecond times on files, but not on symlinks.
26932         Reported by OndÅ™ej Vašík.
26933
26934         utimes: fix configure grammar
26935         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
26936
26937 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
26938
26939         regex: Fix fastmap for multibyte character ranges.
26940         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
26941         characters when a multibyte character range is included.
26942
26943 2009-11-22  Andy Wingo  <wingo@pobox.com>
26944
26945         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
26946         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
26947
26948 2009-11-24  Bruno Haible  <bruno@clisp.org>
26949
26950         doc: Most *_l functions exist in MacOS X 10.5.
26951         * doc/posix-functions/duplocale.texi: Update platforms list.
26952         * doc/posix-functions/freelocale.texi: Likewise.
26953         * doc/posix-functions/newlocale.texi: Likewise.
26954         * doc/posix-functions/uselocale.texi: Likewise.
26955         * doc/posix-functions/isalnum_l.texi: Likewise.
26956         * doc/posix-functions/isalpha_l.texi: Likewise.
26957         * doc/posix-functions/isblank_l.texi: Likewise.
26958         * doc/posix-functions/iscntrl_l.texi: Likewise.
26959         * doc/posix-functions/isdigit_l.texi: Likewise.
26960         * doc/posix-functions/isgraph_l.texi: Likewise.
26961         * doc/posix-functions/islower_l.texi: Likewise.
26962         * doc/posix-functions/isprint_l.texi: Likewise.
26963         * doc/posix-functions/ispunct_l.texi: Likewise.
26964         * doc/posix-functions/isspace_l.texi: Likewise.
26965         * doc/posix-functions/isupper_l.texi: Likewise.
26966         * doc/posix-functions/iswalnum_l.texi: Likewise.
26967         * doc/posix-functions/iswalpha_l.texi: Likewise.
26968         * doc/posix-functions/iswblank_l.texi: Likewise.
26969         * doc/posix-functions/iswcntrl_l.texi: Likewise.
26970         * doc/posix-functions/iswctype_l.texi: Likewise.
26971         * doc/posix-functions/iswdigit_l.texi: Likewise.
26972         * doc/posix-functions/iswgraph_l.texi: Likewise.
26973         * doc/posix-functions/iswlower_l.texi: Likewise.
26974         * doc/posix-functions/iswprint_l.texi: Likewise.
26975         * doc/posix-functions/iswpunct_l.texi: Likewise.
26976         * doc/posix-functions/iswspace_l.texi: Likewise.
26977         * doc/posix-functions/iswupper_l.texi: Likewise.
26978         * doc/posix-functions/iswxdigit_l.texi: Likewise.
26979         * doc/posix-functions/isxdigit_l.texi: Likewise.
26980         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
26981         * doc/posix-functions/strcasecmp_l.texi: Likewise.
26982         * doc/posix-functions/strcoll_l.texi: Likewise.
26983         * doc/posix-functions/strfmon_l.texi: Likewise.
26984         * doc/posix-functions/strftime_l.texi: Likewise.
26985         * doc/posix-functions/strncasecmp_l.texi: Likewise.
26986         * doc/posix-functions/strxfrm_l.texi: Likewise.
26987         * doc/posix-functions/tolower_l.texi: Likewise.
26988         * doc/posix-functions/toupper_l.texi: Likewise.
26989         * doc/posix-functions/towctrans_l.texi: Likewise.
26990         * doc/posix-functions/towlower_l.texi: Likewise.
26991         * doc/posix-functions/towupper_l.texi: Likewise.
26992         * doc/posix-functions/wcscoll_l.texi: Likewise.
26993         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
26994         * doc/posix-functions/wctrans_l.texi: Likewise.
26995         * doc/posix-functions/wctype_l.texi: Likewise.
26996         * doc/glibc-functions/strptime_l.texi: Likewise.
26997         * doc/glibc-functions/strtod_l.texi: Likewise.
26998         * doc/glibc-functions/strtof_l.texi: Likewise.
26999         * doc/glibc-functions/strtol_l.texi: Likewise.
27000         * doc/glibc-functions/strtold_l.texi: Likewise.
27001         * doc/glibc-functions/strtoll_l.texi: Likewise.
27002         * doc/glibc-functions/strtoul_l.texi: Likewise.
27003         * doc/glibc-functions/strtoull_l.texi: Likewise.
27004         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27005         * doc/glibc-functions/wcstod_l.texi: Likewise.
27006         * doc/glibc-functions/wcstof_l.texi: Likewise.
27007         * doc/glibc-functions/wcstol_l.texi: Likewise.
27008         * doc/glibc-functions/wcstold_l.texi: Likewise.
27009         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27010         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27011         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27012
27013 2009-11-24  Bruno Haible  <bruno@clisp.org>
27014
27015         duplocale: Fix logic bug.
27016         * lib/duplocale.c: Don't include <langinfo.h>.
27017         (_NL_LOCALE_NAME): Remove macro.
27018         (rpl_duplocale): Use setlocale instead of nl_langinfo.
27019         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
27020
27021 2009-11-23  Jim Meyering  <meyering@redhat.com>
27022
27023         test-update-copyright: don't hard-code /usr/bin/perl
27024         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
27025         perl to print the current year.  Gilles Espinasse reported that
27026         the replaced use of perl was hard-coded as /usr/bin/perl.
27027
27028 2009-11-23  Bruno Haible  <bruno@clisp.org>
27029
27030         duplocale: Add support for glibc 2.3.x.
27031         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
27032
27033 2009-11-22  Bruno Haible  <bruno@clisp.org>
27034
27035         vasnprintf: Tiny optimization.
27036         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
27037         MacOS X.
27038
27039 2009-11-22  Bruno Haible  <bruno@clisp.org>
27040
27041         Tests for module 'duplocale'.
27042         * modules/duplocale-tests: New file.
27043         * tests/test-duplocale.c: New file.
27044
27045         New module 'duplocale'.
27046         * m4/duplocale.m4: New file.
27047         * lib/locale.in.h (duplocale): New declaration.
27048         * lib/duplocale.c: New file.
27049         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
27050         gl_LOCALE_H_DEFAULTS): New macros.
27051         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
27052         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
27053         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
27054         REPLACE_DUPLOCALE.
27055         * modules/duplocale: New file.
27056         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
27057
27058 2009-11-22  Bruno Haible  <bruno@clisp.org>
27059
27060         * modules/locale-tests (configure.ac): Test for newlocale function.
27061         * tests/test-locale.c: When the system has extended locale functions,
27062         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
27063
27064         locale: Make locale_t available when possible.
27065         * lib/locale.in.h: Include <xlocale.h> when it exists.
27066         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
27067         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
27068         * modules/locale (Depends-on): Add extensions.
27069         (Makefile.am): Also substitute HAVE_XLOCALE_H.
27070         * doc/posix-headers/locale.texi: Document the problem with locale_t.
27071
27072 2009-11-22  Bruno Haible  <bruno@clisp.org>
27073
27074         Add comments.
27075         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
27076         invocation.
27077         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27078         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27079         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27080
27081 2009-11-22  Bruno Haible  <bruno@clisp.org>
27082
27083         error: account for the possibility of freopen (stdout).
27084         * lib/error.c: Include <unistd.h>.
27085         (flush_stdout): New function, extracted from error and error_at_line.
27086         Determine stdout's fd dynamically.
27087         (error, error_at_line): Invoke flush_stdout.
27088         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
27089         * modules/error (Depends-on): Add unistd.
27090
27091 2009-11-22  Bruno Haible  <bruno@clisp.org>
27092
27093         diffseq: Add comment.
27094         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
27095
27096 2009-11-22  Jim Meyering  <meyering@redhat.com>
27097
27098         c-stack: avoid defining an unused static function
27099         * lib/c-stack.c (find_stack_direction): Do not define this function
27100         when it will not be used.
27101
27102         diffseq: avoid spurious gcc warnings
27103         * lib/diffseq.h (IF_LINT2): Define.
27104         (compareseq): Use it to initialize two members of "part".
27105         This avoids two used-uninitialized warnings.
27106
27107 2009-11-21  Jim Meyering  <meyering@redhat.com>
27108
27109         c-stack: avoid "ignoring return value of `write'" warning
27110         * lib/c-stack.c: Include "ignore-value.h".
27111         (die): Explicitly ignore each write return value.
27112         * modules/c-stack (Depends-on): Add ignore-value.
27113
27114 2009-11-21  Bruno Haible  <bruno@clisp.org>
27115
27116         diffseq: reduce scope of variable 'best'.
27117         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
27118         variable, earlier used for two different purposes.
27119
27120 2009-11-21  Jim Meyering  <meyering@redhat.com>
27121
27122         diffseq: remove useless assignment to "best"
27123         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
27124         assignment.  At that point "best" is already guaranteed to be zero.
27125
27126 2009-11-20  Eric Blake  <ebb9@byu.net>
27127
27128         build: mention ftp redirector in release announcements
27129         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
27130         values that used to come from cfg.mk; mention FTP redirect URL.
27131         * build-aux/announce-gen: Mention the mirror list.
27132         Suggested by Karl Berry.
27133
27134         nanosleep: improve port to mingw
27135         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
27136         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
27137         LIB_NANOSLEEP, but only when needed.
27138         * modules/select (Link): Document LIBSOCKET.
27139         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
27140         enough.
27141
27142         nanosleep: work around cygwin bug
27143         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
27144         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
27145         bug.
27146         (getnow): Delete, not needed.
27147         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
27148         LIB_CLOCK_GETTIME.
27149         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
27150         clock-time, gettime.
27151         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
27152         bug.
27153         * modules/nanosleep-tests: New test.
27154         * tests/test-nanosleep.c: New file.
27155
27156         sleep: work around cygwin bug
27157         * lib/sleep.c (rpl_sleep): Work around the bug.
27158         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
27159         (gl_PREREQ_SLEEP): Delete unused macro.
27160         * modules/sleep (Depends-on): Add verify.
27161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27162         * modules/unistd (Makefile.am): Substitute witness.
27163         * lib/unistd.in.h (sleep): Update prototype.
27164         * doc/posix-functions/sleep.texi (sleep): Document the bug.
27165         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
27166         * modules/sleep-tests (Depends-on): Check for alarm.
27167
27168 2009-11-20  Jim Meyering  <meyering@redhat.com>
27169
27170         maint.mk: improve sc_prohibit_magic_number_exit
27171         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
27172         so it does not match uses like System.exit(1).
27173         Add comments showing how to correct all offenders.
27174
27175 2009-11-19  Eric Blake  <ebb9@byu.net>
27176
27177         xalloc-die-tests: add missing library
27178         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
27179
27180         test-xvasprintf: silence compiler warnings
27181         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
27182         empty string from gcc.
27183
27184 2009-11-19  Jim Meyering  <meyering@redhat.com>
27185
27186         xfreopen: new module, from coreutils
27187         * modules/xfreopen: New module.
27188         * lib/xfreopen.c: New file.
27189         * lib/xfreopen.h: New file.
27190         * MODULES.html.sh (File stream based Input/Output"): Add it.
27191
27192 2009-11-19  Eric Blake  <ebb9@byu.net>
27193
27194         manywarnings: depend on warnings
27195         * modules/manywarnings (Depends-on): Add warnings.
27196
27197         build: avoid compiler warnings
27198         * lib/select.c (rpl_select): Delete unused variable.
27199         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
27200
27201 2009-11-18  Eric Blake  <ebb9@byu.net>
27202
27203         tests: avoid false negative with --with-packager
27204         * tests/test-version-etc.sh: Discard packager information.
27205         * tests/test-argp-version-etc-1.sh: Likewise.
27206         Reported by Mike Frysinger.
27207
27208         utimens: fix regression on Solaris
27209         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
27210         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
27211         can only change fd timestamps via futimesat.  Instead, use an
27212         additional witness macro to avoid BSD bug.
27213         Reported by Jim Meyering.
27214
27215 2009-11-17  Eric Blake  <ebb9@byu.net>
27216
27217         usleep: use it to simplify tests
27218         * modules/stat-time-tests (Depends-on): Add usleep.
27219         (configure.ac): Drop usleep check.
27220         * modules/chown-tests (Depends-on, configure.ac): Likewise.
27221         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
27222         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
27223         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
27224         * modules/openat-tests (Depends-on, configure.ac): Likewise.
27225         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
27226         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
27227         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
27228         Likewise.
27229         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
27230         * tests/test-lchown.h (nap): Likewise.
27231         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
27232         * tests/test-stat-time.c (nap): Likewise.
27233         * tests/test-utimens-common.h (nap): Update comments.
27234
27235         usleep: new module
27236         * modules/usleep: New file.
27237         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
27238         * lib/usleep.c (usleep): Likewise.
27239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27240         * modules/unistd (Makefile.am): Substitute witnesses.
27241         * lib/unistd.in.h (usleep): Add declaration.
27242         * doc/pastposix-functions/usleep.texi (usleep): Document this.
27243         * MODULES.html.sh (Date and time): Likewise.
27244         * modules/usleep-tests (Depends-on): New test.
27245         * tests/test-usleep.c: New file.
27246
27247         chown: work around OpenBSD bug
27248         * lib/chown.c (rpl_chown): Work around the bug.
27249         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
27250         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
27251         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
27252         * modules/chown (Depends-on): Add stdbool.
27253         * modules/lchown (Depends-on): Likewise.
27254         * doc/posix-functions/chown.texi (chown): Document the bug.
27255         * doc/posix-functions/lchown.texi (lchown): Likewise.
27256         * tests/test-lchown.h (test_chown): Relax test.
27257
27258         mkstemp: avoid conflict with C++ keyword template
27259         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27260         * lib/mkostemp.c (mkostemp): Likewise.
27261         * lib/mkostemps.c (mkostemps): Likewise.
27262         * lib/mkstemp.c (mkstemp): Likewise.
27263         * lib/mkstemps.c (mkstemps): Likewise.
27264
27265         xalloc-die-tests: optimize
27266         * tests/test-xalloc-die.sh: Reduce number of processes.
27267
27268 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27269
27270         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27271         patch from ludo@gnu.org (Ludovic Courtès).
27272
27273 2009-11-17  Jim Meyering  <meyering@redhat.com>
27274
27275         version-etc: use proper license string
27276         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27277         * modules/version-etc-fsf: Likewise.
27278
27279 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27280
27281         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27282         printed to stdout.  Deal with EOL differences.
27283
27284 2009-11-17  Eric Blake  <ebb9@byu.net>
27285
27286         unsetenv: work around Solaris bug
27287         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27288         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27289         Reported by Jim Meyering.
27290
27291         vasnprintf: avoid compiler warnings
27292         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27293         variables.
27294         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27295
27296 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27297
27298         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27299         settings since xalloc-die is no longer the self test,
27300         xalloc-die.sh is.
27301
27302 2009-11-17  Jim Meyering  <meyering@redhat.com>
27303
27304         test-xalloc-die.sh: make the code agree with the commit log
27305         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27306         at the end, just in case you happen to have a test-xalloc-die
27307         program in some other PATH directory.
27308
27309         test-xalloc-die.sh: fix a portability bug
27310         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27311         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27312         Otherwise, argv[0] (as often seen in diagnostics) would be too
27313         system-dependent, sometimes with, and sometimes without the leading "./".
27314
27315         version-etc-fsf: relax license to LGPLv3+
27316         * modules/version-etc-fsf (License): Relax license.
27317
27318 2009-11-16  Eric Blake  <ebb9@byu.net>
27319
27320         xalloc-die-tests: avoid printing null pointer
27321         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27322         shell script.
27323         * tests/test-xalloc-die.c (program_name): Declare.
27324         * tests/test-xalloc-die.sh (tmpfiles): New file.
27325
27326         setenv, unsetenv: work around various bugs
27327         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27328         (setenv) [HAVE_SETENV]: Work around bugs.
27329         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27330         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27331         for bugs.
27332         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27333         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27335         * modules/stdlib (Makefile.am): Update substitutions.
27336         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27337         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27338         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27339         * modules/setenv-tests: New test.
27340         * modules/unsetenv-tests: Likewise.
27341         * tests/test-setenv.c: New file.
27342         * tests/test-unsetenv.c: Likewise.
27343
27344 2009-11-16  Jim Meyering  <meyering@redhat.com>
27345
27346         version-etc: relax license to LGPLv3+
27347         * modules/version-etc (License): Relax license.
27348
27349         better AC_REQUIRE expanded-before-required-warning avoidance
27350         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27351         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27352         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27353         which is no longer needed.
27354
27355 2009-11-16  Eric Blake  <ebb9@byu.net>
27356
27357         test-freading: clean up temporary file
27358         * tests/test-freading.c (main): Remove file on success, and use
27359         ASSERT more liberally.
27360         Reported by Jim Meyering.
27361
27362 2009-11-16  Jim Meyering  <meyering@redhat.com>
27363
27364         avoid new AC_REQUIRE expanded-before-required warnings
27365         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27366         merely using it.
27367         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27368         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27369
27370 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27371
27372         * tests/test-xalloc-die.c: New file.
27373         * modules/xalloc-die-tests: New file.
27374         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27375         XFAIL_TESTS so it can be appended by modules.
27376
27377 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27378
27379         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27380         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27381
27382 2009-11-14  Eric Blake  <ebb9@byu.net>
27383
27384         fnmatch: avoid compiler warning
27385         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27386         to silence compiler warning about mismatch signedness in ?:.
27387         Reported by Robert Millan.
27388
27389         intprops: add double-inclusion guard
27390         * lib/intprops.h: Allow idempotent includes.
27391         Suggested by Bruce Korb.
27392
27393         openat: detect Solaris fchownat bug
27394         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27395         penalizing glibc chownat when only lchownat is broken.
27396         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27397         trailing slash bugs.
27398         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27399         * modules/openat-tests (Files): Include more files.
27400         (Depends-on): Add mgetgroups, sleep, stat-time.
27401         (configure.ac): Add additional checks.
27402         (Makefile.am): Build new test.
27403         * tests/test-fchownat.c: New file.
27404
27405         lchown: detect Solaris and FreeBSD bug
27406         * lib/lchown.c (rpl_lchown): Work around bug.
27407         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27409         * modules/unistd (Makefile.am): Populate it.
27410         * lib/unistd.in.h (lchown): Update declaration.
27411         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27412         * modules/lchown-tests: New file.
27413         * tests/test-lchown.h (test_lchown): Likewise.
27414         * tests/test-lchown.c (main): Likewise.
27415
27416         chown: detect Solaris and FreeBSD bug
27417         * lib/chown.c (rpl_chown): Work around bug.
27418         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27419         (gl_PREREQ_CHOWN): Delete.
27420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27421         * modules/unistd (Makefile.am): Populate it.
27422         * lib/unistd.in.h (chown): Update declaration.
27423         * lib/lchown.c (chown): Update client.
27424         * modules/lchown (Depends-on): Add lstat.
27425         * doc/posix-functions/chown.texi (chown): Document the bug.
27426         * doc/posix-functions/getgroups.texi (getgroups): Document
27427         getgroups pitfall.
27428         * modules/chown-tests: New file.
27429         * tests/test-chown.h (test_chown): Likewise.
27430         * tests/test-chown.c (main): Likewise.
27431
27432 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27433
27434         gnulib-tool: correctly detect absence of m4 directories
27435         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27436
27437 2009-11-14  Jim Meyering  <meyering@redhat.com>
27438
27439         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27440         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27441
27442 2009-11-14  John W. Eaton  <jwe@gnu.org>
27443
27444         strftime.h: wrap funtion declaration in extern "C" block
27445         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27446
27447 2009-11-13  Eric Blake  <ebb9@byu.net>
27448
27449         getgroups: avoid compiler warning
27450         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27451
27452         getgroups: work around FreeBSD bug
27453         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27454         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27455         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27456         * tests/test-getgroups.c (main): Fix buffer overrun.
27457
27458         getgroups: avoid compilation failure
27459         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27460         * modules/getgroups (Depends-on): Add stdint.
27461
27462 2009-11-13  Jim Meyering  <meyering@redhat.com>
27463
27464         test-getgroups: avoid compilation failure
27465         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27466
27467 2009-11-13  Eric Blake  <ebb9@byu.net>
27468
27469         mgetgroups: new module, taken from coreutils
27470         * modules/mgetgroups: New file.
27471         * lib/mgetgroups.h: Likewise.
27472         * lib/mgetgroups.c (mgetgroups): Likewise.
27473         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
27474         * MODULES.html.sh (Users and groups): Mention it.
27475
27476         getgroups: don't expose GETGROUPS_T to user
27477         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
27478         an element at a time if GETGROUPS_T is wrong size.
27479         * lib/getugroups.h (getugroups): Change signature.
27480         * lib/unistd.in.h (getgroups): Likewise.
27481         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
27482         signature needs fixing.
27483         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
27484         AC_TYPE_GETGROUPS.
27485         * modules/group-member (Depends-on): Add getgroups.
27486         * lib/group-member.c (group_info, get_group_info): Use gid_t.
27487         (group_member): Rely on getgroups replacement.
27488         * lib/getugroups.c (getugroups): Use gid_t.
27489         * tests/test-getgroups.c (main): Likewise.
27490         * NEWS: Mention the signature change.
27491         * doc/posix-functions/getgroups.texi (getgroups): Mention the
27492         problem with signature.
27493         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
27494         GETGROUPS_T is still useful for setgroups.
27495
27496         getgroups, getugroups: provide stubs for mingw
27497         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
27498         * lib/getugroups.c (getugroups): Likewise.
27499         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
27500         function.  Modernize replacement scheme.
27501         (gl_PREREQ_GETGROUPS): Delete.
27502         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
27503         * modules/getgroups (configure.ac): Declare witness.
27504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27505         * modules/unistd (Depends-on): Substitute witness.
27506         * lib/unistd.in.h (getgroups): Declare replacement.
27507
27508         getgroups: avoid calling exit
27509         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
27510         drop xalloc.
27511         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
27512         dependencies.
27513         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
27514         exiting, in the rare case of malloc failure.
27515
27516         getgroups: fix logic error
27517         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
27518         has more than 20 groups.
27519         * modules/getgroups-tests: New test.
27520         * tests/test-getgroups.c: New file.
27521
27522 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27523
27524         * tests/test-base64.c: Improve.
27525
27526 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27527
27528         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
27529         Blake <ebb9@byu.net>.
27530
27531 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27532
27533         * tests/test-xvasprintf.c: Add %s%s related checks.
27534
27535 2009-11-12  Eric Blake  <ebb9@byu.net>
27536
27537         version-etc: match standards.texi style
27538         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
27539         and use <> only for URLs.
27540
27541 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
27542
27543         fts: do not fail on a submount during traversal
27544         * lib/fts.c (fts_build): Read the stat info again after opening
27545         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
27546         Original report at http://bugzilla.redhat.com/501848.
27547
27548 2009-11-12  Jim Meyering  <meyering@redhat.com>
27549
27550         bootstrap: sync from coreutils
27551         * build-aux/bootstrap (bootstrap_epilogue): New function.
27552         Use git_modules_config in one more place.  This make bootstrap's
27553         --gnulib-srcdir option more useful for testing.
27554
27555         bootstrap: generalize autoheader check
27556         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
27557         AC_CONFIG_HEADERS.
27558
27559 2009-11-11  Eric Blake  <ebb9@byu.net>
27560
27561         mkfifoat: use new modules for Solaris and BSD bugs
27562         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27563         * lib/mkfifoat.c (mknodat): Split...
27564         * lib/mknodat.c (mknodat): ...into new file.
27565         * modules/mkfifoat (Files): Ship new file.
27566         (Depends-on): Add mkfifo, mknod.
27567         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27568         (Depends-on): Add symlink.
27569         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27570         redundant with test_mkfifo.h.
27571         (do_mkfifoat, do_mknodat): New helpers.
27572
27573         mknod: new module
27574         * modules/mknod: New file.
27575         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27576         * lib/mknod.c (mknod): Likewise.
27577         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27578         defaults.
27579         * modules/sys_stat (Makefile.am): Substitute them.
27580         * lib/sys_stat.in.h (mknod): Declare replacement.
27581         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27582         Document it.
27583         * doc/posix-functions/mknod.texi (mknod): Likewise.
27584         * modules/mknod-tests: New test.
27585         * tests/test-mknod.c: Likewise.
27586
27587         mkfifo: new module
27588         * modules/mkfifo: New file.
27589         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27590         * lib/mkfifo.c (mkfifo): Likewise.
27591         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27592         defaults.
27593         * modules/sys_stat (Makefile.am): Substitute them.
27594         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27595         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27596         Document it.
27597         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27598         * modules/mkfifo-tests: New test.
27599         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27600         from test-mkfifoat.c.
27601         * tests/test-mkfifo.c: New file.
27602
27603         readlink: detect FreeBSD bug
27604         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27605         slash on symlink.
27606         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27607         * tests/test-readlink.h (test_readlink): Enhance test.
27608
27609         symlink: detect FreeBSD bug
27610         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27611         slash on symlink.
27612         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27613         * tests/test-symlink.h (test_symlink): Enhance test.
27614
27615 2009-11-10  Eric Blake  <ebb9@byu.net>
27616
27617         link: detect FreeBSD bug
27618         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27619         symlink.
27620         * doc/posix-functions/link.texi (link): Document the bug.
27621         * tests/test-link.h (test_link): Enhance test.
27622         * tests/test-linkat.c (main): Update caller.
27623
27624         unlink, remove: detect FreeBSD bug
27625         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27626         slash on symlink.
27627         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27628         * doc/posix-functions/remove.texi (remove): Likewise.
27629         * tests/test-unlink.h (test_unlink): Enhance test.
27630         * tests/test-remove.c (main): Likewise.
27631
27632 2009-11-09  Eric Blake  <ebb9@byu.net>
27633
27634         rename: detect FreeBSD bug
27635         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
27636         slash on symlink.
27637         * modules/renameat-tests (Depends-on): Add filenamecat.
27638         * tests/test-rename.h (test_rename): Allow one more errno.
27639         * tests/test-renameat.c (main): Likewise.
27640         * doc/posix-functions/rename.texi (rename): Document the bug.
27641
27642         open: detect FreeBSD bug
27643         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
27644         symlink.
27645         * doc/posix-functions/open.texi (open): Document the bug.
27646         * doc/posix-functions/utimes.texi (utimes): Likewise.
27647         * tests/test-open.h (test_open): Add parameters, and test symlink
27648         handling.
27649         * tests/test-open.c (main): Adjust caller.
27650         * tests/test-fcntl-safer.c (main): Likewise.
27651         * modules/open-tests (Depends-on): Add stdbool, symlink.
27652         * modules/fcntl-safer-tests (Depends-on): Likewise.
27653         * tests/test-openat.c (main): Add test-open tests.
27654
27655         stat: detect FreeBSD bug
27656         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
27657         symlink.
27658         * doc/posix-functions/stat.texi (stat): Document the bug.
27659         * tests/test-stat.h (test_stat_func): Add argument.
27660         * tests/test-stat.c (main): Adjust caller.
27661         * tests/test-fstatat.c (main): Likewise.
27662         * modules/stat-tests (Depends-on): Add stdbool, symlink.
27663         Reported by Jim Meyering.
27664
27665 2009-11-09  James Youngman  <jay@gnu.org>
27666
27667         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
27668         * lib/strftime.c: Correct placement of #include "ignore-value.h".
27669
27670 2009-11-08  Jim Meyering  <meyering@redhat.com>
27671
27672         utimens: remove invalid futimesat call
27673         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
27674         It used the file descriptor of the target file as the DIR_FD
27675         parameter and NULL as the file name.  That caused failure with
27676         errno == EFAULT on FreeBSD-8.0-rc2
27677
27678 2009-11-07  Eric Blake  <ebb9@byu.net>
27679
27680         fflush, freadseek: use fseeko, not fseek
27681         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
27682         (clear_ungetc_buffer): Avoid potential problems on large files.
27683         * lib/freadseek.c (freadseek): Likewise.
27684         * modules/freadseek (Depends-on): Add fseeko.
27685         * modules/fseek (configure.ac): Set a witness.
27686         * tests/test-fflush.c (main): Use fseeko.
27687         * tests/test-fpurge.c (fseek): Disable link warning.
27688         * tests/test-freadable.c (fseek): Likewise.
27689         * tests/test-freading.c (fseek): Likewise.
27690         * tests/test-fseeko.c (fseek): Likewise.
27691         * tests/test-ftell.c (fseek): Likewise.
27692         * tests/test-ftello.c (fseek): Likewise.
27693         * tests/test-fwritable.c (fseek): Likewise.
27694         * tests/test-fwriting.c (fseek): Likewise.
27695
27696 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27697
27698         * modules/memchr (Depends-on): Drop getpagesize dependency.
27699
27700 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27701
27702         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
27703         Reported by Ludovic Courtès.
27704         * build-aux/pmccabe2html: Improve example usage.
27705         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
27706
27707 2009-11-06  Jim Meyering  <meyering@redhat.com>
27708
27709         do-release-commit-and-tag: New module.
27710         Automate the release-commit and tag process.
27711         * build-aux/do-release-commit-and-tag: New script, from coreutils.
27712         * modules/do-release-commit-and-tag: New file.
27713         * MODULES.html.sh (Support for maintaining and releasing): Add it.
27714
27715 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27716
27717         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
27718         because test-select.c uses inet_pton.
27719
27720 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27721
27722         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
27723         GETADDRINFO_LIB.  Bump serial number.
27724         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
27725         Suggested by Eric Blake <ebb9@byu.net>.
27726
27727 2009-11-05  Eric Blake  <ebb9@byu.net>
27728
27729         strtod: detect darwin bug
27730         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
27731         Reported by Leo Davis.
27732
27733         freopen-safer: new module
27734         * modules/freopen-safer: New module.
27735         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
27736         * lib/freopen-safer.c (freopen_safer): New file.
27737         * lib/stdio-safer.h (freopen_safer): New declaration.
27738         * lib/stdio--.h (freopen): New override.
27739         * MODULES.html.sh (File stream based Input/Output): Mention it.
27740         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
27741         freopen-safer module.
27742         * doc/posix-functions/stderr.texi (stderr): Likewise.
27743         * doc/posix-functions/stdin.texi (stdin): Likewise.
27744         * doc/posix-functions/stdout.texi (stdout): Likewise.
27745         * modules/freopen-safer-tests: New test.
27746         * tests/test-reopen-safer.c: New file.
27747
27748 2009-11-05  Jim Meyering  <meyering@redhat.com>
27749
27750         maint.mk: Prohibit inclusion of "close-stream.h" without use.
27751         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27752
27753 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27754
27755         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
27756
27757 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27758
27759         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
27760
27761 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27762
27763         Fix link error.
27764         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27765         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27766
27767 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27768
27769         * tests/test-func.c: Also test value of __func__.
27770
27771 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27772
27773         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
27774         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
27775
27776 2009-11-05  Bruno Haible  <bruno@clisp.org>
27777
27778         Fix link error.
27779         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27780         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27781         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
27782
27783 2009-11-05  Bruno Haible  <bruno@clisp.org>
27784
27785         Tests for module 'inet_pton'.
27786         * modules/inet_pton-tests: New file.
27787         * tests/test-inet_pton.c: New file.
27788
27789 2009-11-05  Bruno Haible  <bruno@clisp.org>
27790
27791         Tests for module 'inet_ntop'.
27792         * modules/inet_ntop-tests: New file.
27793         * tests/test-inet_ntop.c: New file.
27794
27795 2009-11-04  Eric Blake  <ebb9@byu.net>
27796
27797         stdlib-safer: wrap all mkstemp variants
27798         * modules/mkostemp (configure.ac): Set witness.
27799         * modules/mkostemps (configure.ac): Likewise.
27800         * modules/mkstemps (configure.ac): Likewise.
27801         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
27802         (mkstemps_safer): Wrap more functions.
27803         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
27804         wrapping.
27805         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
27806         (mkstemps_safer): Implement the wrappers.
27807
27808         mkstemps, mkostemps: new modules
27809         * modules/mkostemps: New module.
27810         * modules/mkstemps: Likewise.
27811         * lib/mkostemps.c (mkostemps): New file.
27812         * lib/mkstemps.c (mkstemps): Likewise.
27813         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
27814         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
27815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
27816         * modules/stdlib (Makefile.am): Substitute them.
27817         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
27818         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
27819         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27820         * doc/gnulib.texi (Glibc stdlib.h): Include them.
27821         * MODULES.html.sh (File system functions): Mention them.
27822
27823         tempname: resync from glibc
27824         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
27825         same values for __GT_FILE as glibc.  Abort even when assertions
27826         are disabled.
27827         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
27828         match its value otherwise.  Allow idempotent inclusion.
27829         * lib/mkdtemp.c (mkdtemp): Adjust caller.
27830         * lib/mkostemp.c (mkostemp): Likewise.
27831         * lib/mkstemp.c (mkstemp): Likewise.
27832         * lib/tmpfile.c (tmpfile): Likewise.
27833         * NEWS: Document this.
27834
27835         utimens: fix use of futimens on older Linux
27836         * lib/utimens.c (fdutimens): Use updated, rather than original,
27837         timespec to avoid bug in older Linux kernel.
27838         Reported by Simon Josefsson.
27839
27840 2009-11-04  Bruno Haible  <bruno@clisp.org>
27841
27842         Make num_processors more flexible and consistent.
27843         * lib/nproc.h (enum nproc_query): New type.
27844         (num_processors): Add a 'query' argument.
27845         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
27846         (num_processors): Add a 'query' argument. Test the value of the
27847         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
27848         mingw, count the number of CPUs available for the current process.
27849         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
27850         Check for sched_getaffinity and sched_getaffinity_np.
27851         * modules/nproc (Depends-on): Add c-ctype, extensions.
27852         * NEWS: Mention the change.
27853
27854 2009-11-03  Bruno Haible  <bruno@clisp.org>
27855
27856         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
27857
27858 2009-11-03  Jim Meyering  <meyering@redhat.com>
27859
27860         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
27861         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
27862         if it is defined.
27863
27864 2009-11-02  Eric Blake  <ebb9@byu.net>
27865
27866         mktime, timegm: share common declaration
27867         * lib/mktime-internal.h: New file.
27868         * lib/mktime.c: Use it rather than open-coding a declaration.
27869         * lib/timegm.c: Likewise.
27870         * modules/mktime (Files): Ship it.
27871         * modules/timegm (Files): Likewise.
27872         Suggested by Bruno Haible.
27873
27874         test-update-copyright: update test to match script changes
27875         * tests/test-update-copyright.sh: Avoid hard-coding perl
27876         location.  Don't update *.bak created by earlier runs.
27877
27878 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27879             Simon Josefsson  <simon@josefsson.org>
27880             Bruno Haible  <bruno@clisp.org>
27881
27882         Fix link error on Solaris 8.
27883         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
27884         also in libnsl. Define also INET_PTON_LIB.
27885         * modules/inet_pton (Link): New section.
27886
27887 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27888             Bruno Haible  <bruno@clisp.org>
27889
27890         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
27891         * modules/inet_ntop (Link): New section.
27892         Reported by Boyan Kasarov <bkasarov@gmail.com>.
27893
27894 2009-11-02  Eric Blake  <ebb9@byu.net>
27895
27896         maint: avoid compiler warnings in m4 macros
27897         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
27898         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
27899
27900 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27901
27902         * m4/pmccabe2html.m4: Remove file.
27903         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
27904         function.  Change maintainer.
27905         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
27906         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
27907         Courtès).
27908
27909 2009-10-31  Eric Blake  <ebb9@byu.net>
27910
27911         fseeko: fix m4 regression
27912         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
27913         regression from 2009-10-27.
27914         Reported by Ralf Wildenhues.
27915
27916 2009-10-31  Jim Meyering  <meyering@redhat.com>
27917
27918         inttostr: aesthetics and improved (compile-time) safety
27919         Define inttype_is_signed rather than inttype_is_unsigned,
27920         since the sole use is via "#if inttype_is_signed".
27921         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
27922         inttype_is_unsigned.
27923         * lib/offtostr.c (inttype_is_signed): Likewise.
27924         * lib/uinttostr.c (inttype_is_signed): Likewise.
27925         * lib/umaxtostr.c (inttype_is_signed): Likewise.
27926         * lib/inttostr.c (inttostr): Use verify to cross-check the
27927         inttype_is_signed value and the signedness of the actual type.
27928         * modules/inttostr (Depends-on): Add verify.
27929
27930 2009-10-30  Eric Blake  <ebb9@byu.net>
27931
27932         build: avoid compiler warnings
27933         * lib/fchmodat.c (lchmod): Mark unused variables.
27934         * lib/getopt.c (_getopt_initialize): Likewise.
27935         * lib/mktime.c (__mktime_internal): Provide prototype.
27936         * lib/inttostr.c (inttostr): Avoid compiler warning even with
27937         older gcc that do not understand #pragma GCC diagnostic.
27938         * lib/uinttostr.c (inttype_is_unsigned): Define.
27939         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
27940
27941 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27942
27943         stat: fix compilation on AIX
27944         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
27945         only see struct stat64.
27946
27947 2009-10-30  Eric Blake  <ebb9@byu.net>
27948
27949         exclude: make more robust
27950         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
27951         rather than masking a coding bug.
27952         Suggested by Bruno Haible.
27953
27954 2009-10-30  Jim Meyering  <meyering@redhat.com>
27955
27956         perl scripts: remove #!/usr/bin/perl in favor of more portable...
27957         Rather than putting #!/usr/bin/perl on the first line,
27958         start with a variant of what's recommended by "man perlrun" that
27959         invokes the first "perl" program from your shell's search path.
27960         * build-aux/gitlog-to-changelog: Replace #!... as above.
27961         Add a "Local Variables" perl mode setting.
27962         Prompted by a patch from Ludovic Courtès.
27963         Improved by Eric Blake.
27964         * build-aux/useless-if-before-free: Likewise.
27965         * build-aux/announce-gen: Likewise.
27966         * build-aux/update-copyright: Likewise.
27967
27968 2009-10-29  Eric Blake  <ebb9@byu.net>
27969
27970         filenamecat-lgpl: adjust clients
27971         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
27972         filenamecat.
27973         * modules/renameat (Depends-on): Likewise.
27974
27975         filenamecat: split into filenamecat-lgpl
27976         * modules/filenamecat-lgpl: New module.
27977         * modules/filenamecat (Files): Move library-safe files into
27978         filenamecat-lgpl.
27979         (Depends-on): Add filenamecat-lgpl.
27980         (configure.ac): Declare witness.
27981         * lib/filenamecat.h (file_name_concat): Only declare when using
27982         GPL module.
27983         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
27984         Move...
27985         * lib/filenamecat-lgpl.c: ...into new file.
27986         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
27987         (gl_FILE_NAME_CONCAT): Use it.
27988         * MODULES.html.sh (File system functions): Mention new module.
27989
27990         argp: avoid memory leak
27991         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
27992         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
27993         base_name, since the latter malloc()s and can call exit().
27994         Leak introduced 2006-07-03.
27995
27996         dirname-lgpl: adjust clients that don't need full dirname
27997         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
27998         * modules/filenamecat (Depends-on): Likewise.
27999         * modules/linkat (Depends-on): Likewise.
28000         * modules/mkancesdirs (Depends-on): Likewise.
28001         * modules/mkdir (Depends-on): Likewise.
28002         * modules/openat (Depends-on): Likewise.
28003         * modules/savewd (Depends-on): Likewise.
28004         * modules/rename (Depends-on): Likewise.
28005         (License): Relax license.
28006         * modules/mkdir-tests (Depends-on): Drop progname.
28007         (Makefile.am): Delete unneeded LDADD.
28008         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
28009
28010         dirname: split into dirname-lgpl
28011         * modules/dirname-lgpl: New module.
28012         * modules/dirname (Files): Move library-safe files into
28013         dirname-lgpl.
28014         (Depends-on): Add dirname-lgpl.
28015         (configure.ac): Declare witness.
28016         * modules/double-slash-root (License): Relax license.
28017         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
28018         module.
28019         * lib/dirname.c (dir_len, mdir_name): Move...
28020         * lib/dirname-lgpl.c: ...into new file.
28021         * lib/basename.c (last_component, base_len): Move...
28022         * lib/basename-lgpl.c: ...into new file.
28023         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
28024         (gl_DIRNAME): Use it.
28025         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
28026         Mention new module.
28027         * modules/dirname-tests (Depends-on): Add progname.
28028         * tests/test-dirname.c (program_name): Delete.
28029
28030         mkdir: make safe for libraries
28031         * modules/mkdir (Depends-on): Drop xalloc.
28032         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
28033         exit.
28034
28035         tests: avoid some compiler warnings
28036         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
28037         literals.
28038         * tests/test-memchr.c (main): Avoid type mismatch.
28039         * tests/test-arpa_inet.c (main): Avoid unused parameters.
28040         * tests/test-base64.c (main): Likewise.
28041         * tests/test-getdelim.c (main): Likewise.
28042         * tests/test-gethostname.c (main): Likewise.
28043         * tests/test-getline.c (main): Likewise.
28044         * tests/test-netinet_in.c (main): Likewise.
28045         * tests/test-select.c (open_server_socket, main): Likewise.
28046         * tests/test-select-stdin.c (main): Likewise.
28047         * tests/test-sockets.c (main): Likewise.
28048         * tests/test-strsignal.c (main): Likewise.
28049         * tests/test-sys_select.c (main): Likewise.
28050         * tests/test-sys_socket.c (main): Likewise.
28051         * tests/test-u64.c (main): Likewise.
28052         * tests/test-xfprintf-posix.c (main): Likewise.
28053         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
28054
28055         sockets: avoid compiler warning
28056         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
28057
28058         maint: detect usage(1) and other suspicious exits
28059         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
28060
28061 2009-10-29  Jim Meyering  <meyering@redhat.com>
28062
28063         timespec: long-to-int truncation could make timespec_cmp malfunction
28064         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
28065         a multiple of 2^32 nanoseconds as no difference.
28066
28067 2009-10-28  Jim Meyering  <meyering@redhat.com>
28068
28069         fprintftime: wrap macro code argument in "do {...} while(0)"
28070         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
28071         cpy macro must be a statement that can be followed by a semicolon.
28072         Now that the else clause contains a comment and is hence longer
28073         than one line, I require curly braces.  That in turn requires
28074         that we wrap this code block in the standard do...while(0).
28075
28076         fprintftime: remove stray semicolon from previous change
28077         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
28078
28079         fprintftime: avoid a warning about ignored fwrite return value
28080         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
28081         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
28082         that is unsafe.
28083         * modules/fprintftime (Depends-on): Add ignore-value.
28084
28085         exclude: avoid an unwarranted warning
28086         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
28087
28088 2009-10-27  Eric Blake  <ebb9@byu.net>
28089
28090         fseek: avoid compilation failure when fflush is replaced
28091         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
28092         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
28093         module is in use.
28094         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
28095         module is not in use; since REPLACE_FSEEK worked otherwise.
28096         (GNULIB_FTELLO): Likewise for ftell.
28097         Reported by Ian Beckwith and others.
28098
28099 2009-10-27  Bruno Haible  <bruno@clisp.org>
28100
28101         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
28102         Reported by Jim Meyering.
28103
28104 2009-10-27  Jim Meyering  <jim@meyering.net>
28105             Bruno Haible  <bruno@clisp.org>
28106
28107         Avoid warning despite dropping the return value of fwrite.
28108         * lib/unicodeio.c: Include ignore-value.h.
28109         (fwrite_success_callback): Explicitly ignore fwrite's return value.
28110         * modules/unicodeio (Depends-on): Add ignore-value.
28111
28112 2009-10-26  Eric Blake  <ebb9@byu.net>
28113
28114         areadlinkat: fix fallback path
28115         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
28116         pointer and zero.
28117
28118 2009-10-22  Pádraig Brady  <P@draigBrady.com>
28119
28120         Use a better IO block size for modern systems
28121         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
28122         * lib/md2.c: Likewise.
28123         * lib/md4.c: Likewise.
28124         * lib/md5.c: Likewise.
28125         * lib/sha1.c: Likewise.
28126         * lib/sha256.c: Likewise.
28127         * lib/sha512.c: Likewise.
28128
28129 2009-10-22  Eric Blake  <ebb9@byu.net>
28130
28131         tests: avoid several compiler warnings
28132         * tests/test-getcwd.c (main): Avoid buffer underflow.
28133         * tests/test-getdate.c (main): String literals are not safe with
28134         putenv, so use setenv.  Declare unused argument.
28135         * modules/getdate-tests (Depends-on): Add setenv.
28136         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
28137         problems with string literals in char *.
28138         * tests/test-hash.c (main): Avoid shadowing declaration.
28139         (insert_new): Treat string literals as char const *.
28140         * tests/test-getopt.h (test_getopt): Likewise.
28141         (getopt_loop): Alter types to minimize casting elsewhere.
28142         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
28143         (test_getopt_long_posix): Likewise.
28144         (do_getopt_long): Add wrapper to minimize casting.
28145         * tests/test-atexit.c (clear_temp_file): Use void.
28146         * tests/test-areadlink-with-size.c (main): Declare unused
28147         arguments.
28148         * tests/test-areadlink.c (main): Likewise.
28149         * tests/test-areadlinkat-with-size.c (main): Likewise.
28150         * tests/test-areadlinkat.c (main): Likewise.
28151         * tests/test-canonicalize-lgpl.c (main): Likewise.
28152         * tests/test-canonicalize.c (main): Likewise.
28153         * tests/test-dirent-safer.c (main): Likewise.
28154         * tests/test-dirname.c (main): Likewise.
28155         * tests/test-dup2.c (main): Likewise.
28156         * tests/test-fchdir.c (main): Likewise.
28157         * tests/test-fcntl-h.c (main): Likewise.
28158         * tests/test-fcntl-safer.c (main): Likewise.
28159         * tests/test-fdopendir.c (main): Likewise.
28160         * tests/test-fdutimensat.c (main): Likewise.
28161         * tests/test-fflush.c (main): Likewise.
28162         * tests/test-filenamecat.c (main): Likewise.
28163         * tests/test-filevercmp.c (main): Likewise.
28164         * tests/test-fopen-safer.c (main): Likewise.
28165         * tests/test-fopen.c (main): Likewise.
28166         * tests/test-fpending.c (main): Likewise.
28167         * tests/test-fpurge.c (main): Likewise.
28168         * tests/test-freading.c (main): Likewise.
28169         * tests/test-fstatat.c (main): Likewise.
28170         * tests/test-fsync.c (main): Likewise.
28171         * tests/test-futimens.c (main): Likewise.
28172         * tests/test-getndelim2.c (main): Likewise.
28173         * tests/test-gettimeofday.c (main): Likewise.
28174         * tests/test-getopt.c (main): Likewise.
28175         * tests/test-i-ring.c (main): Likewise.
28176         * tests/test-inttypes.c (main): Likewise.
28177         * tests/test-link.c (main): Likewise.
28178         * tests/test-lstat.c (main): Likewise.
28179         * tests/test-math.c (main): Likewise.
28180         * tests/test-md5.c (main): Likewise.
28181         * tests/test-memchr2.c (main): Likewise.
28182         * tests/test-memrchr.c (main): Likewise.
28183         * tests/test-mkdir.c (main): Likewise.
28184         * tests/test-mkdirat.c (main): Likewise.
28185         * tests/test-mkfifoat.c (main): Likewise.
28186         * tests/test-open.c (main): Likewise.
28187         * tests/test-openat-safer.c (main): Likewise.
28188         * tests/test-openat.c (main): Likewise.
28189         * tests/test-quotearg.c (main): Likewise.
28190         * tests/test-rawmemchr.c (main): Likewise.
28191         * tests/test-readlink.c (main): Likewise.
28192         * tests/test-remove.c (main): Likewise.
28193         * tests/test-rename.c (main): Likewise.
28194         * tests/test-renameat.c (main): Likewise.
28195         * tests/test-rmdir.c (main): Likewise.
28196         * tests/test-sha1.c (main): Likewise.
28197         * tests/test-signal.c (main): Likewise.
28198         * tests/test-sigaction.c (main): Likewise.
28199         * tests/test-stat.c (main): Likewise.
28200         * tests/test-stat-time.c (main): Likewise.
28201         * tests/test-stddef.c (main): Likewise.
28202         * tests/test-stdint.c (main): Likewise.
28203         * tests/test-stdio.c (main): Likewise.
28204         * tests/test-stdlib.c (main): Likewise.
28205         * tests/test-strchrnul.c (main): Likewise.
28206         * tests/test-strerror.c (main): Likewise.
28207         * tests/test-string.c (main): Likewise.
28208         * tests/test-strtod.c (main): Likewise.
28209         * tests/test-strverscmp.c (main): Likewise.
28210         * tests/test-symlink.c (main): Likewise.
28211         * tests/test-symlinkat.c (main): Likewise.
28212         * tests/test-sys_stat.c (main): Likewise.
28213         * tests/test-sys_time.c (main): Likewise.
28214         * tests/test-time.c (main): Likewise.
28215         * tests/test-unistd.c (main): Likewise.
28216         * tests/test-unlink.c (main): Likewise.
28217         * tests/test-unlinkat.c (main): Likewise.
28218         * tests/test-utimens.c (main): Likewise.
28219         * tests/test-utimensat.c (main): Likewise.
28220         * tests/test-version-etc.c (main): Likewise.
28221         * tests/test-wchar.c (main): Likewise.
28222         * tests/test-wctype.c (main): Likewise.
28223         * tests/test-xprintf-posix.c (main): Likewise.
28224         * tests/test-posixtm.c (main): Likewise.
28225         (STREQ): Delete unused macro.
28226         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
28227         shadowed variables.
28228         * tests/test-memchr.c (main): Likewise.
28229
28230 2009-10-21  Eric Blake  <ebb9@byu.net>
28231
28232         areadlinkat: avoid failure on older glibc
28233         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
28234         rather than mis-comparing 0 against FUNC_RESULT of char*.
28235
28236 2009-10-21  Bruno Haible  <bruno@clisp.org>
28237
28238         * modules/stpncpy (License): Relicense under LGPLv2+.
28239         Reported by David Lutterkort <lutter@redhat.com>.
28240
28241 2009-10-20  Eric Blake  <ebb9@byu.net>
28242
28243         utimensat: work around Solaris 9 bug
28244         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
28245         has trailing slash bugs.
28246         * tests/test-lutimens.h (test_lutimens): Enhance test.
28247         * tests/test-utimens.h (test_utimens): Likewise.
28248         * doc/posix-functions/utime.texi (utime): Enhance documentation.
28249         * doc/posix-functions/utimes.texi (utimes): Likewise.
28250         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28251         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
28252         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28253         * doc/posix-functions/futimens.texi (futimens): Likewise.
28254
28255         fdutimensat: new module
28256         * modules/fdutimensat: New file.
28257         * lib/fdutimensat.c (fdutimensat): Likewise.
28258         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28259         * MODULES.html.sh (File system functions): Mention module.
28260         * modules/fdutimensat-tests: New test.
28261         * tests/test-fdutimensat.c: Likewise.
28262
28263         doc: regenerate INSTALL
28264         * doc/INSTALL: Reflect recent autoconf update.
28265         * doc/INSTALL.ISO: Likewise.
28266         * doc/INSTALL.UTF-8: Likewise.
28267
28268 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28269
28270         acl: warn if ACL support is not detected
28271         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28272
28273 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28274
28275         * lib/nproc.h: Add extern "C" block for C++.
28276
28277 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28278             Bruno Haible  <bruno@clisp.org>
28279
28280         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28281         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28282         * doc/posix-functions/isalpha.texi: Likewise.
28283         * doc/posix-functions/isblank.texi: Likewise.
28284         * doc/posix-functions/iscntrl.texi: Likewise.
28285         * doc/posix-functions/isdigit.texi: Likewise.
28286         * doc/posix-functions/isgraph.texi: Likewise.
28287         * doc/posix-functions/islower.texi: Likewise.
28288         * doc/posix-functions/isprint.texi: Likewise.
28289         * doc/posix-functions/ispunct.texi: Likewise.
28290         * doc/posix-functions/isspace.texi: Likewise.
28291         * doc/posix-functions/isupper.texi: Likewise.
28292         * doc/posix-functions/isxdigit.texi: Likewise.
28293
28294 2009-10-18  Bruno Haible  <bruno@clisp.org>
28295
28296         Tests for module 'isblank'.
28297         * modules/isblank-tests: New file.
28298         * tests/test-isblank.c: New file.
28299
28300         New module 'isblank'.
28301         * lib/isblank.c: New file.
28302         * m4/isblank.m4: New file.
28303         * modules/isblank: New file.
28304         * doc/posix-functions/isblank.texi: Mention the new module.
28305
28306 2009-10-18  Bruno Haible  <bruno@clisp.org>
28307
28308         New module 'ctype'.
28309         * lib/ctype.in.h: New file.
28310         * m4/ctype.m4: New file.
28311         * modules/ctype: New file.
28312         * doc/posix-headers/ctype.texi: Mention the new module.
28313
28314 2009-10-18  Jim Meyering  <meyering@redhat.com>
28315
28316         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28317         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28318         right after its initialization, rather than farther down.
28319         Keeping these in close proximity makes it easier to ensure
28320         that each such variable is initialized.  E.g.,
28321
28322             LIB_CLOCK_GETTIME=
28323             AC_SUBST([LIB_CLOCK_GETTIME])
28324
28325         This change also increments these serial numbers.
28326         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28327         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28328         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28329
28330 2009-10-18  Bruno Haible  <bruno@clisp.org>
28331
28332         Don't let environment variables perturb build.
28333         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28334         (gl_PREREQ_GETHRXTIME): ... not here.
28335
28336 2009-10-18  Bruno Haible  <bruno@clisp.org>
28337
28338         Avoid symlink attack in localcharset module.
28339         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28340         (O_NOFOLLOW): Define fallback.
28341         (get_charset_aliases): Don't open the file if it is a symbolic link.
28342         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28343         gl_FCNTL_H.
28344         (gl_FCNTL_H): Require it.
28345         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28346         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28347         Reported by Fergal Glynn <fglynn@veracode.com>.
28348
28349 2009-10-18  Bruno Haible  <bruno@clisp.org>
28350
28351         Implement nproc for mingw.
28352         * lib/nproc.c: Include <windows.h>
28353         (num_processors): On native Windows platforms, try GetSystemInfo.
28354
28355 2009-10-18  Bruno Haible  <bruno@clisp.org>
28356
28357         Implement nproc for IRIX.
28358         * lib/nproc.c: Include <sys/sysmp.h>.
28359         (num_processors): On IRIX systems, try sysmp.
28360         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28361
28362 2009-10-18  Bruno Haible  <bruno@clisp.org>
28363
28364         Implement nproc for HP-UX.
28365         * lib/nproc.c: Include <sys/pstat.h>
28366         (num_processors): On HP-UX systems, try pstat_getdynamic.
28367         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28368         pstat_getdynamic.
28369
28370 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28371             Bruno Haible  <bruno@clisp.org>
28372
28373         Implement nproc for NetBSD, OpenBSD.
28374         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28375         (ARRAY_SIZE): New macro.
28376         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28377         * m4/nproc.m4: New file.
28378         * modules/nproc (Files): Add m4/nproc.m4.
28379         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28380         (Makefile.am): Instead, augment lib_SOURCES.
28381
28382 2009-10-18  Bruno Haible  <bruno@clisp.org>
28383
28384         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28385         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28386         sys/param.h.
28387
28388 2009-10-16  Eric Blake  <ebb9@byu.net>
28389
28390         utimensat: new module
28391         * modules/utimensat: New file.
28392         * lib/utimensat.c (utimensat): Likewise.
28393         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28394         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28395         so we can work around Linux bugs.
28396         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28397         * modules/sys_stat (Makefile.am): Substitute them.
28398         * lib/sys_stat.in.h (utimensat): Declare it.
28399         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28400         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28401         * modules/utimensat-tests: New test.
28402         * tests/test-utimensat.c: Likewise.
28403
28404         utimens: let lutimens work on non-symlinks
28405         * lib/utimens.c (lutimens): Fall back to utimens rather than
28406         failing with ENOSYS, when file is not a symlink.
28407         (utimens): Reduce redirection.
28408         * tests/test-lutimens.h (test_lutimens): Update test to cover
28409         non-symlinks.
28410         * tests/test-utimens.h (test_utimens): Update test to cover
28411         symlinks.
28412         * tests/test-utimens.c (main): Update caller.
28413
28414         utimens: cache whether utimensat syscall works
28415         * lib/utimens.c (utimensat_works_really): New cache variable.
28416         (fdutimens, lutimens): Use it to avoid failing syscall.
28417
28418         test-stat-time, test-utimens: improve portability
28419         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28420         ext4 on alpha, and for cygwin.
28421         * tests/test-utimens-common.h: New file.
28422         (nap): Factor delays into single function.
28423         * tests/test-lutimens.h (test_lutimens): Use new header.
28424         * tests/test-futimens.h (test_futimens): Likewise.
28425         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28426         timestamps to occur from same machine, as was done previously for
28427         test_utimens.
28428         * modules/utimens-tests (Files): Ship new file.
28429         * modules/futimens-tests (Files): Likewise.
28430         Reported in part by Jim Meyering.
28431
28432         sys_stat: sort replacement declarations
28433         * lib/sys_stat.in.h: Sort declarations.
28434         * lib/futimens.c (futimens): Fix typo.
28435
28436 2009-10-15  Jim Meyering  <meyering@redhat.com>
28437
28438         don't let environment settings perturb build
28439         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28440         could cause a configure-time and/or build-time malfunction.
28441         Typically, a configure-time function-in-library test is performed
28442         via code like this:
28443
28444           LIB_VAR=
28445           AC_SUBST([LIB_VAR])
28446           prefix_saved_LIBS=$LIBS
28447             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28448                        [test "$ac_cv_search_FUNC" = "none required" ||
28449                         LIB_VAR=$ac_cv_search_FUNC])
28450           LIBS=$prefix_saved_LIBS
28451
28452         However, in each of the files affected by this change, the LIB_VAR=
28453         initialization was omitted.  Thus, when set in the environment, its
28454         value would propagate into generated Makefiles when FUNC is not found
28455         in LIB_NAME.
28456         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28457         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28458         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28459
28460 2009-10-14  Eric Blake  <ebb9@byu.net>
28461
28462         fchdir: avoid infinite recursion in mingw
28463         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28464         recursing.
28465
28466         test-stat-time: port to mingw
28467         * tests/test-stat-time.c (force_unlink): Return a value.
28468         (test_ctime) [W32]: Fix compilation error.
28469         (nap): Don't call usleep with too large an argument.  Use
28470         force_unlink.
28471         * doc/pastposix-functions/usleep.texi (usleep): Document the
28472         portability issue.
28473
28474 2009-10-13  Jim Meyering  <meyering@redhat.com>
28475
28476         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
28477         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
28478         * modules/pipe-filter-ii: Likewise.
28479         * modules/sys_socket-tests: Likewise.
28480         * modules/tsearch-tests: Likewise.
28481         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
28482         (check): Depend on it.
28483
28484 2009-10-12  Eric Blake  <ebb9@byu.net>
28485
28486         utimens-tests: port to NFS file systems
28487         * tests/test-utimens.h (test_utimens): Refactor utimecmp
28488         comparisons to avoid spurious failures from timestamp drift
28489         between NFS machines.
28490
28491 2009-10-12  Eric Blake  <ebb9@byu.net>
28492
28493         stat-time-tests: minor cleanups
28494         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
28495         * tests/test-stat-time.c (nap): Separate assignment from call.
28496         Suggested by Paolo Bonzini and Bruno Haible.
28497
28498         sys_stat: guarantee struct timespec
28499         * lib/sys_stat.in.h (includes): Always include <time.h>
28500         * modules/sys_stat (Depends-on): Add time.
28501         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
28502         mode_t permission values.
28503         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
28504         get at subsecond timestamps.
28505
28506 2009-10-10  Eric Blake  <ebb9@byu.net>
28507
28508         futimens: new module
28509         * modules/futimens: New file.
28510         * lib/futimens.c (futimens): Likewise.
28511         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
28512         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
28513         we can work around Linux bugs.
28514         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28515         * modules/sys_stat (Makefile.am): Substitute them.
28516         * lib/sys_stat.in.h (futimens): Declare it.
28517         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28518         * doc/posix-functions/futimens.texi (futimens): Likewise.
28519         * modules/futimens-tests: New test.
28520         * tests/test-futimens.c: Likewise.
28521
28522         utimens: introduce fdutimens
28523         * lib/utimens.h (fdutimens): New prototype.
28524         * lib/utimens.c (gl_futimens): Move guts...
28525         (fdutimens): ...to new interface.
28526         * tests/test-utimens.c (do_fdutimens): Use it.
28527
28528         utimens: add UTIME_NOW and UTIME_OMIT support
28529         * lib/utimens.c (validate_timespec, update_timespec): New helper
28530         functions.
28531         (gl_futimens, lutimens): Use them.
28532         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
28533         stdbool, sys_stat.
28534         (Link): Mention resulting library dependency.
28535         * modules/utimecmp (Link): Likewise.
28536         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
28537         (Makefile.am): Pick up library dependency.
28538         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
28539         definition.
28540         * tests/test-sys_stat.c: Test the definitions.
28541         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
28542         * NEWS: Document library dependency.
28543
28544         utimecmp: support symlink timestamps
28545         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
28546         hashing when possible.  Use pathconf when available.
28547         (SYSCALL_RESOLUTION): Recognize tighter resolution.
28548         * modules/utimecmp (Depends-on): Add lstat.
28549
28550         utimens: add lutimens interface
28551         * lib/utimens.c (lutimens): New function.
28552         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
28553         * lib/utimens.h (lutimens): Declare new interface.
28554         * tests/test-utimens.c (main): Enhance test.
28555         * tests/test-lutimens.h (test_lutimens): New file.
28556         * modules/utimens-tests (Files): Distribute it.
28557         (Depends-on): Add symlink.
28558         (configure.ac): Check for usleep.
28559
28560         utimens: validate futimens usage
28561         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28562         fewer syscalls on failure later on.  Avoid compiler warning on
28563         mingw.
28564         * modules/utimens (Depends-on): Add dup2.
28565
28566         utimens: add test
28567         * modules/utimens-tests: New test.
28568         * tests/test-utimens.h: New file.
28569         * tests/test-futimens.h: Likewise.
28570         * tests/test-utimens.c: Likewise.
28571
28572         doc: mention timestamp portability issues
28573         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28574         instead.
28575         * doc/posix-functions/utime.texi (utime): Likewise.
28576         * doc/posix-functions/utimes.texi (utimes): Likewise.
28577         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28578         instead.
28579         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28580         module.
28581         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28582         Mention weakness with symlink timestamps.
28583         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28584         to utimensat/futimens instead.
28585         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28586
28587         test-dup2: enhance test
28588         * tests/test-dup2.c (main): Also check AT_FDCWD.
28589
28590         test-stat-time: avoid more spurious failures
28591         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28592         xfs; and avoid race if the two timestamps cross quantization edge.
28593
28594         relocatable: prefer 'file system' over 'filesystem'
28595         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28596         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28597         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28598         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28599         * lib/relocatable.c (compute_curr_prefix): Likewise.
28600
28601 2009-10-10  Jim Meyering  <meyering@redhat.com>
28602
28603         stat-time-tests: check for the usleep function
28604         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28605
28606 2009-10-10  Bruno Haible  <bruno@clisp.org>
28607
28608         * modules/xnanosleep: Put the Link section after the Include section.
28609
28610 2009-10-09  Eric Blake  <ebb9@byu.net>
28611
28612         dup2: work around FreeBSD 6.1 bug
28613         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28614         * doc/posix-functions/dup2.texi (dup2): Document it.
28615         Reported by Nelson H. F. Beebe and Jim Meyering.
28616
28617         test-stat-time: port to buggy NFS clients
28618         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28619         (test_ctime): Also skip test if mtime and ctime are skewed.
28620
28621         maint: prefer 'file system' over 'filesystem'
28622         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28623         * doc/posix-functions/lstat.texi (lstat): Likewise.
28624         * lib/file-has-acl.c (file_has_acl): Likewise.
28625         * lib/fwriteerror.c [TEST]: Likewise.
28626         * tests/test-areadlink.h (test_areadlink): Likewise.
28627         * tests/test-areadlinkat-with-size.c (main): Likewise.
28628         * tests/test-areadlinkat.c (main): Likewise.
28629         * tests/test-canonicalize-lgpl.c (main): Likewise.
28630         * tests/test-canonicalize.c (main): Likewise.
28631         * tests/test-fstatat.c (main): Likewise.
28632         * tests/test-linkat.c (main): Likewise.
28633         * tests/test-lstat.h (test_lstat_func): Likewise.
28634         * tests/test-mkdir.h (test_mkdir): Likewise.
28635         * tests/test-readlink.h (test_readlink): Likewise.
28636         * tests/test-remove.c (main): Likewise.
28637         * tests/test-rename.h (test_rename): Likewise.
28638         * tests/test-renameat.c (main): Likewise.
28639         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28640         * tests/test-symlink.h (test_symlink): Likewise.
28641         * tests/test-symlinkat.c (main): Likewise.
28642         * tests/test-unlink.h (test_unlink_func): Likewise.
28643         * tests/test-unlinkat.c (main): Likewise.
28644
28645         maint: make realtime library usage explicit
28646         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
28647         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
28648         * modules/settime (Link): Likewise.
28649         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
28650
28651         test-stat-time: speed up execution
28652         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
28653         warning on mingw.
28654         (nap): New helper function.
28655         (prepare_test): Use it to reduce sleep time.
28656         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
28657         execution.
28658         * modules/stat-time-tests (configure.ac): Check for usleep.
28659
28660 2009-10-09  Jim Meyering  <meyering@redhat.com>
28661
28662         selinux-h: always use getfilecon wrappers
28663         * lib/getfilecon.c: New file.
28664         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
28665         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
28666         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
28667         (fgetfilecon): Provide a stub.
28668         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
28669         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
28670         file unconditionally.
28671         When <selinux/selinux.h> is found, arrange to use wrappers.
28672         * modules/selinux-h (Files): Add getfilecon.c.
28673         (Makefile.am): Substitute include-next-related bits
28674         into the now-always-generated selinux/selinux.h file.
28675         * doc/glibc-functions/lgetfilecon.texi: New file.
28676         * doc/glibc-functions/fgetfilecon.texi: New file.
28677         * doc/glibc-functions/getfilecon.texi: New file.
28678         * doc/glibc-functions/getfilecon-desc.texi: New file.
28679         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
28680         which to pull in the new files.
28681         * MODULES.html.sh (Misc): Add selinux-h.
28682
28683 2009-10-08  Jim Meyering  <meyering@redhat.com>
28684
28685         unistd: fix comment typo
28686         * lib/unistd.in.h (euidaccess): Fix a comment typo.
28687
28688 2009-10-08  Eric Blake  <ebb9@byu.net>
28689
28690         areadlink: use SIZE_MAX consistently
28691         * modules/areadlink (Depends-on): Add stdint.
28692         * modules/areadlink-with-size (Depends-on): Likewise.
28693         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
28694         gives NULL; drop sys/types, since unistd gives size_t; and add
28695         stdint for SIZE_MAX.
28696         (SIZE_MAX): Rely on headers.
28697         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
28698         and add stdint.
28699         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
28700         (SIZE_MAX): Likewise.
28701         (INITIAL_BUF_SIZE): Turn into enum.
28702         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
28703
28704 2009-10-08  Jim Meyering  <meyering@redhat.com>
28705
28706         areadlinkat: avoid compilation failure
28707         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
28708         Fix typo in comment.
28709
28710 2009-10-07  Eric Blake  <ebb9@byu.net>
28711
28712         areadlinkat-with-size: new module
28713         * modules/areadlinkat-with-size: New module.
28714         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
28715         * lib/areadlink.h (areadlinkat): Declare it.
28716         * MODULES.html.sh (File system functions): Mention it.
28717         * modules/areadlinkat-with-size-tests: New test.
28718         * tests/test-areadlinkat-with-size.c: New file.
28719
28720         xreadlinkat: new module
28721         * modules/xreadlinkat: New module.
28722         * lib/xreadlinkat.c (xreadlinkat): New file.
28723         * lib/xreadlink.h (xreadlinkat): Declare it.
28724         * MODULES.html.sh (File system functions): Mention it.
28725
28726         areadlinkat: new module
28727         * lib/at-func.c (FUNC_FAIL): New define.
28728         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
28729         * modules/areadlinkat: New module.
28730         * lib/linkat.c (areadlinkat): Move...
28731         * lib/areadlinkat.c (areadlinkat): ...to new file.
28732         * lib/areadlink.h (areadlinkat): Declare it.
28733         * modules/linkat (Depends-on): Add areadlinkat.
28734         * MODULES.html.sh (File system functions): Mention it.
28735         * modules/areadlinkat-tests: New test.
28736         * tests/test-areadlinkat.c: New file.
28737
28738         areadlink, areadlink-with-size: add tests
28739         * modules/areadlink-tests: New test.
28740         * modules/areadlink-with-size-tests: Likewise.
28741         * tests/test-areadlink.h: New file.
28742         * tests/test-areadlink.c: Likewise.
28743         * tests/test-areadlink-with-size.c: Likewise.
28744
28745         maint: minor cleanups
28746         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
28747         _UNUSED_PARAMETER_ instead.
28748         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
28749         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
28750         * modules/linkat-tests (Files): Distribute test-link.h.
28751
28752         openat, utimens: whitespace cleanup
28753         * lib/openat.c: Prefer space throughout, rather than mix of 8
28754         spaces vs. tabs.
28755         * lib/at-func.c: Likewise.
28756         * lib/utimens.c: Likewise.
28757
28758         openat: avoid using wrong fd
28759         * lib/openat.c (openat_permissive): Reject user's fd if saving the
28760         working directory chooses same fd.
28761         * lib/at-func.c (AT_FUNC_NAME): Likewise.
28762
28763         mkdir, mkdirat: fix cygwin 1.5.x bug
28764         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
28765         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
28766         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
28767         bug.
28768         (gl_PREREQ_MKDIR): Delete unused macro.
28769         * modules/mkdir (Files): Track file rename.
28770         (configure.ac): Update macro name.
28771         * modules/openat (Depends-on): Add mkdir.
28772         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
28773
28774         mkdir, mkdirat: add tests
28775         * modules/mkdir-tests: New test.
28776         * tests/test-mkdir.h: New file.
28777         * tests/test-mkdir.c: Likewise.
28778         * tests/test-mkdirat.c: Likewise.
28779         * modules/openat-tests (Files): Add new files.
28780         (Makefile.am): Run new test.
28781
28782 2009-10-06  Eric Blake  <ebb9@byu.net>
28783
28784         doc: tweak *at function documentation
28785         * doc/posix-functions/faccessat.texi (faccessat): Mention
28786         known issue with replacement.
28787         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
28788         * doc/posix-functions/linkat.texi (linkat): Likewise.
28789         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28790         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28791         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28792         * doc/posix-functions/renameat.texi (renameat): Likewise.
28793         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28794
28795         openat: fix GNU/Hurd bug in unlinkat
28796         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
28797         broken.
28798         * doc/posix-functions/unlink.texi (unlink): Document this.
28799         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
28800
28801         fdopendir: fix GNU/Hurd bug
28802         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
28803         allowing non-directory fds.
28804         * lib/fdopendir.c (rpl_fdopendir): Work around it.
28805         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28806         * modules/dirent (Makefile.am): Substitute it.
28807         * lib/dirent.in.h (fdopendir): Declare replacement.
28808         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
28809         * tests/test-fdopendir.c (main): Test something other than
28810         /dev/null, since on Hurd that behaves like a directory.
28811
28812         test-symlink: port to GNU/Hurd
28813         * tests/test-symlink.h (test_symlink): Relax expected errno.
28814
28815         doc: tweak more cygwin information
28816         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
28817         now compatible with glibc.
28818         * doc/posix-functions/getopt.texi (getopt): Likewise.
28819
28820         getopt-gnu: add another test
28821         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
28822         guarantee behavior relied on by m4.
28823         * tests/test-getopt.c (main): Use it.
28824         * modules/getopt-posix-tests (Depends-on): Add setenv.
28825         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
28826
28827         getopt: fix compilation on darwin
28828         * lib/getopt.in.h (includes): Leave breadcrumbs during system
28829         include.
28830         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
28831         Reported by Ludovic Courtès.
28832
28833 2009-10-06  Bruno Haible  <bruno@clisp.org>
28834
28835         * modules/size_max (Description): Discourage its use.
28836         Reported by Simon Josefsson.
28837
28838 2009-10-06  Jim Meyering  <meyering@redhat.com>
28839
28840         linkat: avoid compilation failure
28841         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
28842
28843 2009-10-05  Eric Blake  <ebb9@byu.net>
28844
28845         linkat: support Linux 2.6.17
28846         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
28847         linkat on Linux, but allow cache variable override.
28848         * lib/linkat.c (rpl_linkat): Define override.
28849         * modules/linkat (Depends-on): Add symlinkat.
28850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
28851         * modules/unistd (Makefile.am): Substitute it.
28852         * lib/unistd.in.h (linkat): Declare replacement.
28853         Reported by Pádraig Brady.
28854
28855         quotearg: port test to systems with C.UTF-8 locale
28856         * tests/test-quotearg.c (struct result_strings): Add another
28857         member, differentiating between C.ASCII and C.UTF-8 handling.
28858         (compare_strings): Add parameter.
28859         (main): Adjust all callers.
28860
28861         getopt: avoid clash with FreeBSD _getopt_internal
28862         * lib/getopt.in.h (_getopt_internal): Override the name.
28863         * lib/getopt_int.h (includes): Pick up any overrides.
28864         Reported by Reuben Thomas.
28865
28866         hash: allow C89 compilation
28867         * lib/hash.c (check_tuning): Move declaration before statement.
28868         Reported by Reuben Thomas.
28869
28870 2009-10-05  Karl Berry  <karl@gnu.org>
28871
28872         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
28873
28874 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
28875             Bruno Haible  <bruno@clisp.org>
28876
28877         * lib/uname.c (uname): Use a table-driven algorithm to compute
28878         Windows NT versions.
28879
28880 2009-10-04  Bruno Haible  <bruno@clisp.org>
28881
28882         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
28883         program_invocation_short_name.
28884         * modules/progname (configure.ac): Test for presence of
28885         program_invocation_short_name.
28886         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28887
28888 2009-10-04  Bruno Haible  <bruno@clisp.org>
28889
28890         * lib/progname.c (set_program_name): Fix comment.
28891         Reported by Jim Meyering.
28892
28893 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28894             Bruno Haible  <bruno@clisp.org>
28895
28896         * lib/uname.c: Include <string.h>.
28897         (uname): Do only one call to GetVersionEx in the common case.
28898
28899 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28900             Bruno Haible  <bruno@clisp.org>
28901
28902         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
28903         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
28904         (uname): Add support for Windows CE and various non-x86 CPU types.
28905
28906 2009-10-03  Bruno Haible  <bruno@clisp.org>
28907
28908         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
28909         invocation to tests/configure.ac.
28910         Reported by Ian Beckwith <ianb@erislabs.net>.
28911
28912 2009-10-02  Eric Blake  <ebb9@byu.net>
28913
28914         fchdir: avoid compiler warning
28915         * lib/fchdir.c (canonicalize_file_name)
28916         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
28917
28918         test-open: support mingw errno values
28919         * tests/test-open.h (test_open): Relax test.
28920         * tests/test-fopen.h (test_fopen): Likewise.
28921         * tests/test-openat-safer.c (main): Likewise.
28922
28923         open: fix opening directory on mingw
28924         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
28925
28926         test-open: on GNU/Hurd, /dev/null is a directory
28927         * tests/test-fopen.h (main): Rename...
28928         (test_fopen): ...to this.  Use a guaranteed non-directory when
28929         confirming open behavior on trailing slash.
28930         * tests/test-openat-safer.c (main): Likewise.
28931         * tests/test-open.h (main): Likewise....
28932         (test_open): ...to this.
28933         * tests/test-fopen.c (main): Adjust caller.
28934         * tests/test-fopen-safer.c (main): Likewise.
28935         * tests/test-open.c (main): Likewise.
28936         * tests/test-fcntl-safer.c (main): Likewise.
28937         Reported by Samuel Thibault.
28938
28939         rename, fchdir: don't ignore chdir failure
28940         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
28941         * lib/rename.c (rpl_rename) [W32]: Likewise.
28942         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
28943         an empty destination directory if source cannot be renamed,
28944         although there is still possibility for failure.
28945         * doc/posix-functions/rename.texi (rename): Document the race.
28946         Reported by Jim Meyering.
28947
28948         maint: cleanup whitespace in recent commits
28949         * lib/rename.c (rpl_rename): Remove tabs.
28950         * tests/test-link.h (test_link): Likewise.
28951         * lib/fchdir.c (get_name): Likewise.
28952         Reported by Jim Meyering.
28953
28954 2009-10-02  Ben Pfaff  <blp@gnu.org>
28955
28956         relocatable-prog-wrapper: Add missing dependency on
28957         double-slash-root.
28958         * modules/relocatable-prog-wrapper: Add dependency.
28959         Reported by Ian Beckwith <ianb@erislabs.net>.
28960
28961 2009-10-02  Eric Blake  <ebb9@byu.net>
28962
28963         renameat: fix Solaris bugs
28964         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
28965         needed fixing.
28966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
28967         * modules/stdio (Makefile.am): Substitute it.
28968         * lib/stdio.in.h (renameat): Declare replacement.
28969         * lib/renameat.c (rpl_renameat): Implement fix.
28970
28971         renameat: new module
28972         * modules/renameat: New file.
28973         * lib/renameat.c (renameat): Likewise.
28974         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
28975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28976         * modules/stdio (Makefile.am): Substitute them.
28977         * lib/stdio.in.h (renameat): Declare it.
28978         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28979         * doc/posix-functions/renameat.texi (renameat): Likewise.
28980         * modules/renameat-tests: New test.
28981         * tests/test-renameat.c: Likewise.
28982
28983         rename: fix mingw bugs
28984         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
28985         directory overwrite bugs.
28986
28987         rename: fix another cygwin 1.5 bug
28988         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
28989         checks.
28990         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
28991         unnecessary cygwin workarounds.  Also work around bug with moving
28992         full directory onto an empty one.
28993         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
28994
28995         rename-dest-slash: merge into rename module
28996         * modules/rename-dest-slash (Status): Mark obsolete.
28997         (Depends-on): Add rename.
28998         (Files): Let rename do it all.
28999         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
29000         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
29001         * m4/rename-dest-slash.m4: ...so this file can be deleted.
29002         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
29003         * lib/rename.c (rpl_rename): Update comments.
29004
29005         rename: fix cygwin 1.5.x bugs
29006         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
29007         * lib/rename.c (rpl_rename): Work around them.
29008         * modules/rename (Depends-on): Add same-inode.
29009
29010         rename: fix Solaris 10 bug
29011         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29012         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
29013         was the only bug.
29014
29015         rename: fix Solaris 9 bug
29016         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
29017         on non-directory.  Avoid calling exit.
29018         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
29019         strdup.
29020         * modules/rename-tests (Depends-on): Drop lstat.
29021         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29022         (gl_PREREQ_RENAME): Delete unused macro.
29023
29024         rename-dest-slash: fix NetBSD bug
29025         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
29026         links.
29027         * modules/rename-dest-slash (Depends-on): Add same-inode.
29028
29029         rename-tests: new test, exposes several platform bugs
29030         * modules/rename-tests: New file.
29031         * tests/test-rename.h: Likewise.
29032         * tests/test-rename.c: Likewise.
29033         * doc/posix-functions/rename.texi (rename): Improve documentation,
29034         including bugs that will eventually be fixed in gnulib.
29035
29036 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
29037
29038         * lib/uname.c: Include <stdlib.h>
29039         (uname): Assume version info is available.
29040
29041 2009-10-02  Jim Meyering  <meyering@redhat.com>
29042
29043         gnu-web-doc-update: correct --help output
29044         * build-aux/gnu-web-doc-update: Make --help output relevant.
29045
29046         gnu-web-doc-update: add standard options
29047         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
29048
29049         gnu-web-doc-update: New module.
29050         Use this script to automatically update the on-line web documentation
29051         for your GNU project at http://www.gnu.org/software/$pkg/manual/
29052         * modules/gnu-web-doc-update: New file, from coreutils.
29053         * build-aux/gnu-web-doc-update: New script.
29054
29055 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
29056
29057         link: LoadLibrary is not needed.
29058         * lib/link.c: Use GetModuleHandle.
29059
29060 2009-10-01  Eric Blake  <ebb9@byu.net>
29061
29062         getopt: bump serial number
29063         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
29064         change.
29065
29066         tests: tighten link, rmdir, and remove tests
29067         * tests/test-link.h (includes): No need to use <config.h> here.
29068         Clean up if directory hard link was created, otherwise test for
29069         trailing '.'.
29070         * tests/test-linkat.c (main): Simplify.
29071         * tests/test-remove.c (main): Enhance test for trailing '.'.
29072         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29073
29074 2009-10-01  Jim Meyering  <meyering@redhat.com>
29075
29076         maint.mk: requiring "make major" was annoying, for a "minor" release.
29077         What is intended is "stable", to contrast with alpha and beta,
29078         so require "make stable", not "make major".
29079         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
29080         (get_tool_versions): Likewise.
29081         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
29082
29083 2009-09-30  Ben Pfaff  <blp@gnu.org>
29084
29085         Fix broken build of replacement for Windows tmpfile().
29086         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
29087         flags argument added along with the 'mkostemp' module.
29088
29089 2009-09-28  Bruno Haible  <bruno@clisp.org>
29090
29091         Avoid identifier clash with POSIX function 'remove' defined as a macro.
29092         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
29093         to 'remove_elt'.
29094         (gl_list_remove): Update.
29095         * lib/gl_list.c (gl_list_remove): Update.
29096         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
29097         to 'remove_elt'.
29098         (gl_oset_remove): Update.
29099         * lib/gl_list.c (gl_oset_remove): Update.
29100         Reported by Eric Blake.
29101
29102 2009-09-28  Eric Blake  <ebb9@byu.net>
29103
29104         doc: mention yet more cygwin 1.7 status
29105         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
29106         cygwin.
29107         * doc/glibc-functions/execvpe.texi (execvpe): New file.
29108         * doc/gnulib.texi (Glibc unistd.h): Mention it.
29109
29110         argp: fix test failure
29111         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
29112         that are not upper-case.  Pass correct range to tolower.
29113
29114 2009-09-27  Jim Meyering  <meyering@redhat.com>
29115
29116         test-yesno: work around sparc-dash here-document infelicity
29117         Without this change, the literal \177 byte in a here document
29118         would make dash 0.5.5.1-3 access uninitialized memory.
29119         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
29120         Instead, use a marker, "@", and filter through tr to create the desired
29121         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
29122
29123 2009-09-27  Bruno Haible  <bruno@clisp.org>
29124
29125         Disable untested support for new flavours of ACLs on AIX.
29126         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
29127         progress.
29128         * lib/set-mode-acl.c (qset_acl): Likewise.
29129
29130 2008-12-07  Bruno Haible  <bruno@clisp.org>
29131
29132         Add support for new flavours of ACLs on AIX. (Untested.)
29133         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
29134         (file_has_acl): Add support for newer AIX.
29135         * lib/set-mode-acl.c (qset_acl): Likewise.
29136         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
29137         Rainer Tammer <tammer@tammer.net>.
29138
29139 2009-09-26  Eric Blake  <ebb9@byu.net>
29140
29141         argp: fix compilation of getopt
29142         * lib/getopt.in.h (includes): Use different guard than glibc.
29143         Reported by Sergey Poznyakoff.
29144
29145         doc: mention more cygwin 1.7 status
29146         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
29147         bug.
29148         * doc/posix-functions/execl.texi (execl): Likewise.
29149         * doc/posix-functions/execle.texi (execle): Likewise.
29150         * doc/posix-functions/execlp.texi (execlp): Likewise.
29151         * doc/posix-functions/execv.texi (execv): Likewise.
29152         * doc/posix-functions/execve.texi (execve): Likewise.
29153         * doc/posix-functions/execvp.texi (execvp): Likewise.
29154         * doc/glibc-functions/canonicalize_file_name.texi
29155         (canonicalize_file_name): Cygwin 1.7 now provides this.
29156         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
29157         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
29158         on AT_SYMLINK_NOFOLLOW.
29159
29160 2009-09-24  Eric Blake  <ebb9@byu.net>
29161
29162         test-linkat: make test more robust
29163         * tests/test-linkat.c (main): Avoid collision with EEXIST.
29164
29165         getopt: fix inclusion guards for cygwin
29166         * modules/getopt-posix (Depends-on): Add include-next.
29167         (Makefile.am): Substitute more items in replacement header.
29168         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
29169         <getopt.h>.
29170         * lib/getopt.in.h (includes): Use split inclusion guard, and
29171         prefer <getopt.h> over include <unistd.h> when one is present.
29172         (option): Also override name of 'struct option'.
29173
29174         same-inode: revert prior change; it is not yet ready
29175         * NEWS: Undo mention of this change.
29176         * lib/same-inode.h (same-inode.h): Undo tri-state change.
29177         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29178         * lib/cycle-check.c (cycle_check): Likewise.
29179         * lib/same.c (same_name): Likewise.
29180         * lib/at-func2.c (at_func2): Likewise.
29181
29182 2009-09-23  Eric Blake  <ebb9@byu.net>
29183
29184         linkat: new module
29185         * modules/linkat: New file.
29186         * lib/at-func2.c (at_func2): Likewise.
29187         * lib/linkat.c (linkat): Likewise.
29188         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29189         * lib/openat-priv.h (at_func2): Add declaration.
29190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29191         * modules/unistd (Makefile.am): Substitute them.
29192         * lib/unistd.in.h (linkat): Declare it.
29193         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29194         * doc/posix-functions/linkat.texi (linkat): Likewise.
29195         * doc/posix-functions/link.texi (link): Tweak wording.
29196         * tests/test-link.c (main): Move guts...
29197         * tests/test-link.h (test_link): ...into new file.
29198         * modules/linkat-tests: New test.
29199         * tests/test-linkat.c: Likewise.
29200         * modules/link-tests (Files): Ship new file.
29201         (Depends-on): Add stdbool.
29202
29203         dirname: add library-safe mdir_name
29204         * lib/dirname.h (mdir_name): New prototype.
29205         * lib/dirname.c (dir_name): Move guts...
29206         (mdir_name): ...to new function that avoids xalloc_die.
29207
29208         fchdir: another mingw fix
29209         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
29210         * lib/fchdir.c (get_name): New helper method; skips canonicalize
29211         on mingw (where it has not yet been ported), and make it optional
29212         elsewhere.
29213         (_gl_register_fd): Use it.
29214
29215         same-inode: make SAME_INODE tri-state, to port to mingw
29216         * NEWS: Mention this change.
29217         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
29218         st_ino always being 0.
29219         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29220         * lib/cycle-check.c (cycle_check): Likewise.
29221         * lib/same.c (same_name): Likewise.
29222
29223         lstat: avoid mingw compilation error
29224         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
29225         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
29226         lstat ourselves.
29227         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
29228         was adequate.
29229         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
29230         the checks for lstat.
29231         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
29232
29233         link: fix test failure on Solaris 9
29234         * lib/link.c (rpl_link): Don't assume link will catch bogus
29235         trailing slash on source.
29236
29237         test-symlinkat: enhance test
29238         * tests/test-readlink.c (main): Move guts...
29239         * tests/test-readlink.h (test_readlink): ...into new file.
29240         * tests/test-symlink.c (main): Move guts...
29241         * tests/test-symlink.h (test_symlink): ...into new file.
29242         * tests/test-symlinkat.c (main): Use new files for further
29243         coverage.
29244         (do_symlink, do_readlink): New helper functions.
29245         * modules/symlink-tests (Files): Ship new file.
29246         (Depends-on): Add stdbool.
29247         * modules/readlink-tests (Files): Ship new file.
29248         (Depends-on): Add stdbool.
29249         * modules/symlinkat-tests (Files): Use new files.
29250
29251 2009-09-23  Eric Blake  <ebb9@byu.net>
29252
29253         readlink: document portability issue with symlink length
29254         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29255         systems have bogus st_size on symlinks, and mention the
29256         areadlink-with-size module.
29257         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29258         * doc/posix-functions/readlink.texi (readlink): Mention the
29259         areadlink module, and ERANGE failure.
29260         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29261         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29262
29263         readlink: fix Solaris 9 bug with trailing slash
29264         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29265         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29266         * doc/posix-functions/readlink.texi (readlink): Document this.
29267         * modules/readlink-tests: New test.
29268         * tests/test-readlink.c: Likewise.
29269
29270         readlink: fix cygwin 1.5.x bug with return type
29271         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29272         * lib/unistd.in.h (readlink): Use ssize_t.
29273         * lib/readlink.c (readlink): Likewise.
29274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29275         * modules/unistd (Makefile.am): Substitute it.
29276         * lib/unistd.in.h (readlink): Declare replacement.
29277         * doc/posix-functions/readlink.texi (readlink): Document this.
29278
29279         symlink: use throughout gnulib
29280         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29281         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29282         symlink is not used.
29283         * modules/symlinkat (Depends-on): Add symlink.
29284         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29285         * modules/canonicalize-tests (Depends-on): Likewise.
29286         * modules/lstat-tests (Depends-on): Likewise.
29287         * modules/openat-tests (Depends-on): Likewise.
29288         * modules/remove-tests (Depends-on): Likewise.
29289         * modules/rmdir-tests (Depends-on): Likewise.
29290         * modules/unlink-tests (Depends-on): Likewise.
29291         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29292         * tests/test-canonicalize.c (symlink): Likewise.
29293         * tests/test-fstatat.c (symlink): Likewise.
29294         * tests/test-lstat.c (symlink): Likewise.
29295         * tests/test-remove.c (symlink): Likewise.
29296         * tests/test-rmdir.c (symlink): Likewise.
29297         * tests/test-unlink.c (symlink): Likewise.
29298         * tests/test-unlinkat.c (symlink): Likewise.
29299
29300         symlink: new module, for Solaris 9 bug
29301         * modules/symlink: New file.
29302         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29303         * lib/symlink.c: Likewise.
29304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29305         * modules/unistd (Makefile.am): Substitute them.
29306         * lib/unistd.in.h (symlink): Declare replacement.
29307         * MODULES.html.sh (File system functions): Mention it.
29308         * doc/posix-functions/symlink.texi (symlink): Likewise.
29309         * modules/symlink-tests: New test.
29310         * tests/test-symlink.c: Likewise.
29311
29312 2009-09-23  Bruno Haible  <bruno@clisp.org>
29313
29314         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29315         when needed.
29316         Test case: gnulib-tool --import --with-tests atexit inttypes.
29317         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29318
29319 2009-09-23  Bruno Haible  <bruno@clisp.org>
29320
29321         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29322         subcommand, not in a subshell.
29323
29324 2009-09-22  Eric Blake  <ebb9@byu.net>
29325
29326         unistd: sort replacement declarations
29327         * lib/unistd.in.h: Sort declarations.
29328
29329         open, openat: minor optimization
29330         * lib/open.c (open): If open succeeded, len is non-zero.
29331         * lib/openat.c (rpl_openat): Likewise.
29332
29333         link-follow: ensure correct result
29334         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29335         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29336         distinguish between possible failures.
29337
29338 2009-09-21  Eric Blake  <ebb9@byu.net>
29339
29340         fts: avoid compiler warning
29341         * lib/fts.c (dirent_inode_sort_may_be_useful)
29342         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29343
29344 2009-09-19  Bruno Haible  <bruno@clisp.org>
29345
29346         * lib/progreloc.c (canonicalize_file_name): New declaration.
29347
29348 2009-09-19  Eric Blake  <ebb9@byu.net>
29349
29350         link: fix quoting
29351         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29352
29353         openat: fix openat bugs on Solaris 9
29354         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29355         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29356         * modules/openat (Depends-on): Add open.
29357         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29358         * modules/fcntl-h (Makefile.am): Substitute it.
29359         * lib/fcntl.in.h (openat): Declare replacement.
29360         * doc/posix-functions/openat.texi (openat): Document this.
29361
29362         openat: move fstatat and unlinkat into correct files
29363         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29364         compiled.
29365         * lib/openat.c (fstatat, unlinkat): Move...
29366         * lib/fstatat.c (fstatat): ...into correct files.
29367         * lib/unlinkat.c (unlinkat): Likewise.
29368
29369         openat: fix unlinkat bugs on Solaris 9
29370         * lib/unlinkat.c (unlinkat): New file.
29371         * modules/openat (Depends-on): Add unlink.
29372         (Files): Distribute it.
29373         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29374         trailing slash behavior is broken.
29375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29376         * modules/unistd (Makefile.am): Substitute it.
29377         * lib/unistd.in.h (unlinkat): Declare replacement.
29378         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29379
29380         openat: fix fstatat bugs on Solaris 9
29381         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29382         stat.
29383         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29384
29385         test-unlinkat: enhance test, to expose Solaris 9 bug
29386         * tests/test-unlink.c (main): Factor guts...
29387         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29388         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29389         * tests/test-rmdir.c (main): Adjust caller.
29390         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29391         (unlinker): New helper function.
29392         (rmdirat): Enhance check.
29393         * modules/rmdir-tests (Depends-on): Add stdbool.
29394         * modules/unlink-tests (Depends-on): Likewise.
29395         (Files): Add test-unlink.h.
29396         * modules/openat-tests (Files): Likewise.
29397         (Depends-on): Add unlinkdir.
29398
29399         test-fstatat: new test, to expose Solaris 9 bugs
29400         * tests/test-stat.c (main): Factor guts...
29401         * tests/test-stat.h (test_stat_func): ...into new file.
29402         * tests/test-lstat.c (main): Factor guts...
29403         * tests/test-lstat.h (test_lstat_func): ...into new file.
29404         * tests/test-fstatat.c: New file.
29405         * modules/stat-tests (Files): Add test-stat.h.
29406         * modules/lstat-tests (Files): Add test-lstat.h.
29407         (Depends-on): Add stdbool.
29408         * modules/openat-tests (Depends-on): Add pathmax.
29409         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29410         (Makefile.am): Run new test.
29411
29412         remove: new module, for mingw and Solaris 9 bugs
29413         * modules/remove: New file.
29414         * lib/remove.c: Likewise.
29415         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29417         * modules/stdio (Makefile.am): Use them.
29418         * lib/stdio.in.h (remove): Declare replacement.
29419         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29420         * doc/posix-functions/remove.texi (remove): Likewise.
29421         * modules/remove-tests: New test.
29422         * tests/test-remove.c: Likewise.
29423
29424         unlink: new module, for Solaris 9 bug
29425         * modules/unlink: New file.
29426         * lib/unlink.c: Likewise.
29427         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29429         * modules/unistd (Makefile.am): Use them.
29430         * lib/unistd.in.h (stat): Declare replacement.
29431         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29432         * doc/posix-functions/unlink.texi (unlink): Likewise.
29433         * modules/unlink-tests: New test.
29434         * tests/test-unlink.c: Likewise.
29435
29436         lstat: fix Solaris 9 bug
29437         * lib/lstat.c (lstat): Also check for trailing slash on
29438         non-symlink, non-directories.  Use stat module to simplify logic.
29439         * doc/posix-functions/lstat.texi (lstat): Document it.
29440         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29441         (configure.ac): Check for symlink.
29442         * tests/test-lstat.c (main): Add more tests.
29443
29444         stat: add as dependency to other modules
29445         * modules/chown (Depends-on): Add stat.
29446         * modules/euidaccess (Depends-on): Likewise.
29447         * modules/fchdir (Depends-on): Likewise.
29448         * modules/isdir (Depends-on): Likewise.
29449         * modules/link (Depends-on): Likewise.
29450         * modules/lstat (Depends-on): Likewise.
29451         * modules/mkdir-p (Depends-on): Likewise.
29452         * modules/modechange (Depends-on): Likewise.
29453         * modules/open (Depends-on): Likewise.
29454         * modules/readlink (Depends-on): Likewise.
29455         * modules/same (Depends-on): Likewise.
29456
29457         stat: fix Solaris 9 bug
29458         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29459         slash.
29460         * lib/stat.c (rpl_stat): Work around it.
29461         * doc/posix-functions/stat.texi (stat): Update documentation.
29462
29463         stat: new module, for mingw bug
29464         * modules/stat: New file.
29465         * lib/stat.c: Likewise.
29466         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29467         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29468         * modules/sys_stat (Makefile.am): Use them.
29469         * lib/sys_stat.in.h (stat): Declare replacement.
29470         * lib/openat.c (fstatat): Deal with lstat and stat being function
29471         macros.
29472         * modules/openat (Depends-on): Add inline.
29473         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29474         * doc/posix-functions/stat.texi (stat): Likewise.
29475         * modules/stat-tests: New test.
29476         * tests/test-stat.c: Likewise.
29477
29478 2009-09-19  Jim Meyering  <meyering@redhat.com>
29479
29480         syntax-check: detect unnecessary inclusion of canonicalize.h
29481         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
29482
29483 2009-09-19  Eric Blake  <ebb9@byu.net>
29484
29485         canonicalize-lgpl: adjust clients to use correct header
29486         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29487         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
29488         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
29489         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
29490         * lib/progreloc.c (includes): Likewise.
29491
29492 2009-09-19  Jim Meyering  <meyering@redhat.com>
29493
29494         test-posixtm.c: correct a comment
29495         * tests/test-posixtm.c: Correct first-line comment.
29496         Spotted by Eric Blake.
29497
29498 2009-09-16  Jim Meyering  <meyering@redhat.com>
29499
29500         posixtm-tests: make T const-correct; add a test case
29501         * tests/test-posixtm.c (T): Declare const.
29502         Add a test for -(2^31+1).
29503         Remove useless can-succeed-only-in-2002 test.
29504
29505         posixtm-tests: adjust the sole failing test
29506         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
29507         expected output matches what mktime now produces.  Cross-checked via
29508         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
29509
29510         posixtm: move #ifdef'd tests into a new module
29511         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
29512         * tests/test-posixtm.c: ... this new file.
29513         * modules/posixtm-tests: New module.
29514
29515 2009-09-19  Eric Blake  <ebb9@byu.net>
29516
29517         openat: simplify use of at-func.c
29518         * lib/at-func.c (includes): Include prerequisites here, to
29519         simplify requirements on client files.
29520         * lib/openat-priv.h: Add double-inclusion guard.
29521         * lib/faccessat.c (includes): Simplify.
29522         * lib/fchmodat.c (includes): Likewise.
29523         * lib/fchownat.c (includes): Likewise.
29524         * lib/mkdirat.c (includes): Likewise.
29525         * lib/mkfifoat.c (includes): Likewise.
29526         * lib/symlinkat.c (includes): Likewise.
29527
29528         openat: allow return of fd 0
29529         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
29530         * modules/save-cwd (Depends-on): Replace fcntl-safer with
29531         unistd-safer.
29532         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
29533         <fcntl.h>; this module does not leak fds.
29534         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
29535         must be allowed to return 0, leaving openat_safer to add the
29536         safety.
29537         (openat_permissive): Avoid writing to just-opened fd 2 if
29538         restoring the current directory fails.
29539         * lib/openat-die.c (openat_restore_fail): Add comment.
29540         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
29541         (save_cwd): Guarantee safe fd, but without use of open_safer.
29542         * tests/test-openat.c: New test.
29543         * modules/openat-tests (Files, Makefile.am): Distribute and build
29544         new file.
29545
29546         relocatable-prog-wrapper: fix build
29547         * modules/relocatable-prog-wrapper (Files): Update name of
29548         canonicalize m4 file, broken on 2009-09-17.
29549         Reported by emad hajjar <aleppos@hotmail.com>.
29550
29551 2009-09-19  Bruno Haible  <bruno@clisp.org>
29552
29553         * lib/safe-alloc.h: Use the standard header with GPL copyright.
29554         * lib/safe-alloc.c: Likewise.
29555         Reported by Ian Beckwith <ianb@erislabs.net>.
29556
29557 2009-09-18  Bruno Haible  <bruno@clisp.org>
29558
29559         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
29560         Reported by <erobles@sensacd.com.mx>.
29561
29562 2009-09-17  Eric Blake  <ebb9@byu.net>
29563
29564         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29565         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29566         slashes when checking if last component is missing.
29567         * tests/test-canonicalize.c (main): Test this.
29568
29569         canonicalize, canonicalize-lgpl: honor // if distinct from /
29570         * modules/canonicalize (Files): Add double-slash-root.m4.
29571         * modules/canonicalize-lgpl (Files): Likewise.
29572         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29573         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29574         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29575         fallback definition.
29576         (canonicalize_filename_mode): Use it to protect //.
29577         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29578         (__realpath): Likewise.
29579         * tests/test-canonicalize.c (main): Test this.
29580         * tests/test-canonicalize-lgpl.c (main): Likewise.
29581         * modules/canonicalize-tests (Depends-on): Add same-inode.
29582         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29583
29584         canonicalize-lgpl: fix glibc bug with trailing slash
29585         * m4/canonicalize-lgpl.m4: Move contents...
29586         * m4/canonicalize.m4: ...here.
29587         (gl_CANONICALIZE_LGPL): Factor realpath check...
29588         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29589         glibc 2.3.5 bug, fixed 2005-04-27.
29590         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29591         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29592         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29593         * modules/canonicalize-lgpl (Files): Manage file rename.
29594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29595         * modules/stdlib (Makefile.am): Substitute witness.
29596         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29597         is needed.
29598         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29599         replacement is required.
29600         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29601         * doc/glibc-functions/canonicalize_file_name.texi
29602         (canonicalize_file_name): Document this.
29603         * doc/posix-functions/realpath.texi (realpath): Likewise.
29604
29605         canonicalize-lgpl: reject non-directory with trailing slash
29606         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29607         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29608         catches failures in glibc 2.3.5.
29609         * tests/test-canonicalize.c (main): Likewise.
29610
29611         canonicalize-lgpl: use native realpath if it works
29612         * lib/canonicalize-lgpl.c (realpath): Guard with
29613         FUNC_REALPATH_WORKS.
29614         * lib/stdlib.in.h (realpath): Make declaration optional based on
29615         HAVE_REALPATH.
29616         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29617         native realpath works.
29618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29619         * modules/stdlib (Makefile.am): Substitute witness.
29620
29621         canonicalize, canonicalize-lgpl: use <stdlib.h>
29622         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29623         (Include): Mention <stdlib.h>.
29624         (configure.ac): Mention functions we provide.
29625         * modules/canonicalize (configure.ac): Likewise.
29626         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29627         realpath if canonicalize_file_name is missing.
29628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29629         * modules/stdlib (Makefile.am): Substitute witnesses.
29630         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29631         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29632         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29633         * NEWS: Document this.
29634         * doc/glibc-functions/canonicalize_file_name.texi
29635         (canonicalize_file_name): Likewise.
29636         * doc/posix-functions/realpath.texi (realpath): Likewise.
29637         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
29638
29639         test-canonicalize: consolidate into single C program
29640         * tests/test-canonicalize.sh: Delete; move setup into...
29641         * tests/test-canonicalize.c (main): ...the program, making it
29642         easier to run in debugger.  Add some tests.
29643         * modules/canonicalize-tests (Files): Remove unused file.
29644         (Depends-on): Add progname.
29645         (configure.ac, Makefile.am): Simplify.
29646
29647         test-canonicalize-lgpl: consolidate into single C program
29648         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
29649         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
29650         easier to run in debugger.  Add some tests.
29651         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
29652         (configure.ac, Makefile.am): Simplify.
29653
29654         canonicalize: avoid resolvepath
29655         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
29656         unnecessary checks.
29657         * lib/canonicalize.c (includes): Simplify.
29658         (canonicalize_file_name): Drop resolvepath implementation.
29659         * modules/canonicalize (Depends-on): Drop filenamecat.
29660
29661         canonicalize: don't lose errno
29662         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
29663         over calls to free.
29664
29665         canonicalize: simplify errno handling
29666         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
29667         assignment.
29668
29669         canonicalize, canonicalize-lgpl: update module dependencies
29670         * modules/canonicalize (Depends-on): Add extensions, lstat,
29671         pathmax, stdlib.
29672         (Files): Drop pathmax.h.
29673         (configure.ac): Adjust macro name.
29674         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
29675         lstat, stdlib, sys_stat.
29676         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
29677         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
29678         extensions.
29679         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
29680         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
29681         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
29682         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
29683         declaration, if available.
29684         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
29685         we can rely on the readlink module.
29686         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
29687         (includes): Use <unistd.h> unconditionally.
29688
29689 2009-09-17  Eric Blake  <ebb9@byu.net>
29690
29691         maint: make Include sections of modules consistent
29692         * modules/alloca: Use only header name; no need to list #include.
29693         * modules/alloca-opt: Likewise.
29694         * modules/arpa_inet: Likewise.
29695         * modules/canon-host: Likewise.
29696         * modules/configmake: Likewise.
29697         * modules/dirent: Likewise.
29698         * modules/eealloc: Likewise.
29699         * modules/environ: Likewise.
29700         * modules/fchdir: Likewise.
29701         * modules/fcntl: Likewise.
29702         * modules/fcntl-h: Likewise.
29703         * modules/gethrxtime: Likewise.
29704         * modules/gettime: Likewise.
29705         * modules/ignore-value: Likewise.
29706         * modules/inet_ntop: Likewise.
29707         * modules/inet_pton: Likewise.
29708         * modules/inttypes: Likewise.
29709         * modules/isnand-nolibm: Likewise.
29710         * modules/isnanf-nolibm: Likewise.
29711         * modules/mbchar: Likewise.
29712         * modules/mbfile: Likewise.
29713         * modules/mbiter: Likewise.
29714         * modules/mbuiter: Likewise.
29715         * modules/netdb: Likewise.
29716         * modules/netinet_in: Likewise.
29717         * modules/nproc: Likewise.
29718         * modules/pagealign_alloc: Likewise.
29719         * modules/poll: Likewise.
29720         * modules/printf-frexp: Likewise.
29721         * modules/pthread: Likewise.
29722         * modules/putenv: Likewise.
29723         * modules/random_r: Likewise.
29724         * modules/relocatable-prog: Likewise.
29725         * modules/search: Likewise.
29726         * modules/select: Likewise.
29727         * modules/selinux-h: Likewise.
29728         * modules/settime: Likewise.
29729         * modules/signal: Likewise.
29730         * modules/size_max: Likewise.
29731         * modules/socklen: Likewise.
29732         * modules/ssize_t: Likewise.
29733         * modules/stdarg: Likewise.
29734         * modules/stdbool: Likewise.
29735         * modules/stddef: Likewise.
29736         * modules/stdint: Likewise.
29737         * modules/stdio: Likewise.
29738         * modules/stdlib: Likewise.
29739         * modules/string: Likewise.
29740         * modules/strings: Likewise.
29741         * modules/sys_file: Likewise.
29742         * modules/sys_ioctl: Likewise.
29743         * modules/sys_select: Likewise.
29744         * modules/sys_socket: Likewise.
29745         * modules/sys_stat: Likewise.
29746         * modules/sys_time: Likewise.
29747         * modules/sys_times: Likewise.
29748         * modules/sys_utsname: Likewise.
29749         * modules/sys_wait: Likewise.
29750         * modules/sysexits: Likewise.
29751         * modules/time: Likewise.
29752         * modules/times: Likewise.
29753         * modules/tmpfile: Likewise.
29754         * modules/trim: Likewise.
29755         * modules/unistd: Likewise.
29756         * modules/wchar: Likewise.
29757         * modules/wctype: Likewise.
29758
29759 2009-09-17  Bruno Haible  <bruno@clisp.org>
29760
29761         Make getdate.y compile on QNX and NetBSD 5 / i386.
29762         * m4/getdate.m4 (gl_GETDATE): Conditionally define
29763         TIME_T_FITS_IN_LONG_INT.
29764         * lib/getdate.y (long_time_t): New type.
29765         (relative_time): Change type of 'seconds' field to long_time_t.
29766         (get_date): Update types of local variables. Check against overflow
29767         during conversion from long_time_t to time_t.
29768         Reported by Matt Kraai <kraai@ftbfs.org>
29769         and Hasso Tepper <hasso@netbsd.org>.
29770
29771 2009-09-17  Bruno Haible  <bruno@clisp.org>
29772
29773         * modules/COPYING: Update copyright years.
29774         * modules/README: Likeiwse.
29775         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
29776         Reported by Ian Beckwith <ianb@erislabs.net>.
29777
29778 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29779
29780         * users.txt: Update references for gnuit package.
29781
29782 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29783
29784         * m4/getdelim.m4: Fix typo in copyright line.
29785
29786 2009-09-17  Bruno Haible  <bruno@clisp.org>
29787
29788         * lib/atoll.c: Use the standard header with GPL copyright.
29789         * lib/argz.in.h: Likewise.
29790         * lib/glob.c: Likewise.
29791         * lib/glob-libc.h: Likewise.
29792         * lib/random_r.c: Likewise.
29793         * lib/siglist.h: Likewise.
29794         * lib/strsignal.c: Likewise.
29795         Reported by Ian Beckwith <ianb@erislabs.net>.
29796
29797 2009-09-17  Eric Blake  <ebb9@byu.net>
29798
29799         rmdir: ensure correct dependency order
29800         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
29801
29802 2009-09-17  Bruno Haible  <bruno@clisp.org>
29803
29804         Disable assertion that fails on NetBSD 5 / i386.
29805         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
29806         Reported by Sam Steingold <sds@gnu.org>
29807         and Hasso Tepper <hasso@netbsd.org>.
29808
29809 2009-09-16  Eric Blake  <ebb9@byu.net>
29810
29811         unlinkdir: port to mingw
29812         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
29813         on which no one can unlink a directory.
29814
29815         stdlib: sort witness names
29816         * modules/stdlib (Makefile.am): Sort replacements.
29817         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29818         * lib/stdlib.in.h: Likewise.
29819
29820         parse-duration-tests: avoid link failure
29821         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
29822         LIBINTL.
29823         Reported by Tom G. Christensen.
29824
29825         openat-tests: ensure unlinkat behaves like rmdir
29826         * tests/test-rmdir.c (main): Factor guts...
29827         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
29828         * modules/rmdir-tests (Files): Ship new file.
29829         * modules/openat-tests: New test.
29830         * tests/test-unlinkat.c: Likewise.
29831
29832         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
29833         * modules/rmdir-errno (Status, Notice): Now obsolete.
29834
29835         rmdir: work around cygwin 1.5.x and mingw bugs
29836         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
29837         * lib/rmdir.c (rmdir): Work around it.
29838         * modules/rmdir (Status, Notice): No longer obsolete.
29839         (Files): Add dos.m4.
29840         (Depends-on): Add unistd.
29841         (configure.ac): Set witnesses.
29842         (License): Relax to LGPLv2+.
29843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
29844         * modules/unistd (Makefile.am): Substitute witnesses.
29845         * lib/unistd.in.h (rmdir): Declare replacement.
29846         * doc/posix-functions/rmdir.texi (rmdir): Document this.
29847         * modules/rmdir-tests: New tests.
29848         * tests/test-rmdir.c: Likewise.
29849
29850 2009-09-15  Eric Blake  <ebb9@byu.net>
29851
29852         fchdir: improve use of replacement functions
29853         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
29854         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
29855         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
29856         REPLACE_CLOSEDIR.
29857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
29858         * modules/sys_stat (Makefile.am): Substitute correct witness.
29859         * modules/dirent (Makefile.am): Likewise.
29860         * modules/unistd (Makefile.am): Likewise.
29861         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
29862         * lib/unistd.in.h (dup): Likewise.
29863         * lib/sys_stat.in.h (fstat): Likewise.
29864
29865         maint: ignore gnulib-tool temp files
29866         * .gitignore: Ignore files created during gnulib-tool --test.
29867
29868 2009-09-13  Jim Meyering  <meyering@redhat.com>
29869
29870         posixtm: don't reject a time that specify "60" as the number of seconds
29871         * lib/posixtm.c (posixtime): The code to reject invalid dates
29872         would also reject a time specified with the .60 suffix.
29873         But POSIX allows that, in order to accommodate leap seconds.
29874         So don't reject it.
29875         (main): Adjust tests accordingly.
29876         * modules/posixtm (Depends-on): Add stpcpy.
29877
29878 2009-09-11  Jim Meyering  <meyering@redhat.com>
29879
29880         announce-gen: include [$release_type] in emitted Subject:
29881         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
29882         e.g., [stable] in the emitted Subject: line.
29883
29884 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29885
29886         Remove obsolete macros from several modules.
29887         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
29888         obsolete Autoconf macros with their modern counterparts.
29889         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
29890         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
29891         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
29892         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
29893         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
29894         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29895         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29896         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29897         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29898         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
29899         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29900         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29901         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
29902         * m4/sockets.m4 (gl_SOCKETS): Likewise.
29903         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
29904         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
29905         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29906         * m4/time_r.m4 (gl_TIME_R): Likewise.
29907         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29908         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
29909         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29910
29911         Fix copyright header in build-aux scripts.
29912         * build-aux/git-version-gen: Fix copyright header to match GPLv3
29913         recommendation.
29914         * build-aux/ncftpput-ftp: Likewise.
29915         * build-aux/update-copyright: Likewise.
29916
29917 2009-09-09  Eric Blake  <ebb9@byu.net>
29918
29919         test-link: allow Linux choice of errno
29920         * tests/test-link.c (main): Relax test for alternate error.
29921
29922         strndup: fix improper m4 caching
29923         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
29924         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
29925         (gl_PREREQ_STRNDUP): Delete.
29926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
29927         * modules/string (Makefile.am): Substitute it.
29928         * lib/string.in.h (strndup): Modernize prototype.
29929
29930         getcwd: port to mingw
29931         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
29932         different from the POSIX assumptions made throughout the getcwd
29933         module; fortunately, the mingw getcwd does not need replacement.
29934         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
29935         * modules/getcwd-tests: New test.
29936         * tests/test-getcwd.c: Likewise.
29937
29938         link: fix platform bugs
29939         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
29940         * lib/link.c (link): Work around them.  Fix related mingw bug.
29941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
29942         * modules/unistd (Makefile.am): Substitute it.
29943         * lib/unistd.in.h (link): Declare replacement.
29944         * doc/posix-functions/link.texi (link): Document this.
29945         * modules/link (Depends-on): Add strdup-posix, sys_stat.
29946
29947         test-link: consolidate into single C program, test more cases
29948         * tests/test-link.sh: Delete.
29949         * tests/test-link.c: Test more error conditions.  Exposes bugs on
29950         at least Cygwin and Solaris.
29951         * modules/link-tests (Files): Remove unused file.
29952         (Depends-on): Add errno, sys_stat.
29953         (Makefile.am): Simplify.
29954
29955 2009-09-08  Bruno Haible  <bruno@clisp.org>
29956
29957         Work around towlower, towupper bug on mingw.
29958         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
29959         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
29960         * doc/posix-functions/towlower.texi: Mention the mingw bug.
29961         * doc/posix-functions/towupper.texi: Likewise.
29962         Reported by Eric Blake.
29963
29964 2009-09-08  Jim Meyering  <meyering@redhat.com>
29965
29966         build: don't try to run autoheader if we don't use it
29967         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
29968         is not used in configure.ac.
29969
29970 2009-09-08  Eric Blake  <ebb9@byu.net>
29971
29972         euidaccess: fix compilation error
29973         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
29974
29975         rawmemchr: relax license
29976         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
29977         okay.
29978         Reported by Jim Meyering.
29979
29980         mkfifoat: new module
29981         * modules/mkfifoat: New file.
29982         * lib/mkfifoat.c: Likewise.
29983         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
29984         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29985         * modules/sys_stat (Makefile.am): Use them.
29986         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
29987         * MODULES.html.sh (File system functions): Mention module.
29988         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29989         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29990         * modules/mkfifoat-tests: New test.
29991         * tests/test-mkfifoat.c: Likewise.
29992
29993         strchrnul: relax license
29994         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
29995         okay.
29996         Reported by Jim Meyering.
29997
29998 2009-09-08  Eric Blake  <ebb9@byu.net>
29999
30000         fstatat: fix compilation on Solaris
30001         * lib/fstatat.c (includes): Add fcntl.h.
30002         Reported by Pádraig Brady.
30003
30004 2009-09-07  Eric Blake  <ebb9@byu.net>
30005
30006         rename: modernize replacement
30007         * modules/rename (Depends-on): Add stdio.
30008         (configure.ac): Declare witness.
30009         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
30010         stdio take care of replacement.
30011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30012         * modules/stdio (Makefile.am): Substitute them.
30013         * lib/stdio.in.h (rename): Declare replacement.
30014         * lib/rename.c (includes): Allow cross-compilation to non-windows
30015         machines.
30016         * doc/posix-functions/rename.texi (rename): Improve
30017         documentation.
30018
30019         stdio: sort witness names
30020         * modules/stdio (Makefile.am): Sort replacements.
30021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30022         * lib/stdio.in.h: Likewise.
30023
30024         getcwd: minor cleanups
30025         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
30026         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
30027
30028         openat: provide more convenience names
30029         * modules/faccessat (configure.ac): Add C witness.
30030         * lib/unistd.in.h (readlinkat): Fix typo.
30031         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
30032         convenience wrappers.
30033         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
30034         wrappers in syntax checks.
30035
30036 2009-09-06  Eric Blake  <ebb9@byu.net>
30037
30038         doc: fix comments in recent patches
30039         * lib/faccessat.c: Mention correct function.
30040         * lib/fchmodat.c: Likewise.
30041         * lib/fchownat.c: Likewise.
30042         * lib/symlinkat.c: Likewise.
30043         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
30044         constants.
30045
30046         faccessat, symlinkat: continue cleanup of previous patch
30047         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
30048         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30049         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
30050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
30051         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
30052         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
30053         set.
30054
30055 2009-09-06  Bruno Haible  <bruno@clisp.org>
30056
30057         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
30058         (fstatat): Declare if GNULIB_FSTATAT is set.
30059         (mkdirat): Declare if GNULIB_MKDIRAT is set.
30060         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
30061         (unlinkat): Declare if GNULIB_UNLINKAT is set.
30062         * modules/fcntl-h (Files): Remove m4/openat.m4.
30063         * modules/sys_stat (Files): Remove m4/openat.m4.
30064         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
30065         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
30066         * modules/unistd (Files): Remove m4/openat.m4.
30067         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
30068         GNULIB_OPENAT.
30069         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
30070         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
30071         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
30072         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
30073         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
30074         gl_OPENAT_DEFAULTS.
30075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
30076         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
30077         Don't require gl_OPENAT_DEFAULTS.
30078         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
30079         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
30080         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
30081         (gl_OPENAT_DEFAULTS): Remove macro.
30082
30083 2009-09-06  Bruno Haible  <bruno@clisp.org>
30084
30085         * modules/openat (configure.ac): Remove unneeded witness.
30086
30087 2009-09-06  Bruno Haible  <bruno@clisp.org>
30088
30089         Set errno to ENOSYS when a function is entirely unsupported.
30090         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
30091         EOPNOTSUPP.
30092         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30093         * modules/chown (Depends-on): Remove errno.
30094
30095 2009-09-06  Bruno Haible  <bruno@clisp.org>
30096
30097         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
30098
30099 2009-09-06  Bruno Haible  <bruno@clisp.org>
30100
30101         * lib/sys_stat.in.h: Fix preprocessor command indentation.
30102
30103 2009-09-06  Ben Pfaff  <blp@gnu.org>
30104             Bruno Haible  <bruno@clisp.org>
30105
30106         Work around a glibc bug in strtok_r.
30107         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
30108         Undefine if UNDEFINE_STRTOK_R is set.
30109         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
30110         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30111         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
30112         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
30113         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
30114         UNDEFINE_STRTOK_R.
30115         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
30116
30117 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30118
30119         exclude: minor fix
30120         * lib/exclude.c: Include wctype.h
30121
30122 2009-09-06  Akim Demaille  <demaille@gostai.com>
30123
30124         bootstrap: improve error message
30125         * build-aux/bootstrap (find_tool): Upon failure, report the list
30126         of candidates.
30127         Honor the initial value of the envvar.
30128
30129 2009-09-05  Eric Blake  <ebb9@byu.net>
30130
30131         symlinkat: new module
30132         * modules/symlinkat: New file.
30133         * lib/symlinkat.c: Likewise.
30134         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
30135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30136         * modules/unistd (Makefile.am): Use them.
30137         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
30138         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
30139         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
30140         * MODULES.html.sh (File system functions): Mention module.
30141         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30142         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30143         * modules/symlinkat-tests: New test.
30144         * tests/test-symlinkat.c: Likewise.
30145
30146         test-openat-safer: add more checks
30147         * tests/test-openat-safer.c (main): Check more code paths.
30148
30149 2009-09-05  Jim Meyering  <meyering@redhat.com>
30150
30151         syntax-check: detect unnecessary inclusion of openat.h
30152         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
30153
30154 2009-09-05  Bruno Haible  <bruno@clisp.org>
30155
30156         Support towlower, towupper.
30157         * doc/posix-functions/towlower.texi: Mention module wctype.
30158         * doc/posix-functions/towupper.texi: Likewise.
30159         * lib/wctype.in.h (towlower, towupper): New functions.
30160         * tests/test-wctype.c: Include stdio.h, stdlib.h.
30161         (ASSERT): New macro.
30162         (e): New variable.
30163         (main): Test also towlower, towupper. Test WEOF argument.
30164         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30165
30166 2009-09-05  Bruno Haible  <bruno@clisp.org>
30167
30168         Fix conversion behaviour when the input is invalid.
30169         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
30170         mark occurring in first pass of indirect conversion.
30171         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
30172         input.
30173         Found by clang's static analyzer.
30174
30175 2009-09-05  Bruno Haible  <bruno@clisp.org>
30176
30177         * tests/test-striconveh.c (main): Test indirect conversion on platforms
30178         where direct conversion is possible.
30179
30180 2009-09-04  Eric Blake  <ebb9@byu.net>
30181
30182         openat: fail with ENOENT on empty name
30183         * lib/openat-proc.c (openat_proc_name): Special-case the empty
30184         buffer.
30185
30186         link-follow: fix logic bug in prior patch
30187         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
30188         reversed sense of yes and no in prior patch.  Avoid confusing
30189         compilation failure with desired semantics.
30190
30191         link-follow: accomodate mingw and cross-compilation
30192         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
30193         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
30194         cross-compilation results to -1, to make linkat easier to
30195         implement when cross-compiling.  Trivially support mingw.
30196         * modules/link-follow (configure.ac): Call new name.
30197         * NEWS: Mention this.
30198
30199 2009-09-03  Eric Blake  <ebb9@byu.net>
30200
30201         faccessat: compile replacement
30202         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
30203         needed.
30204
30205         fts: fix compilation error
30206         * lib/fts.c (includes): Re-add "openat.h", for
30207         openat_needs_fchdir.
30208
30209         faccessat: new module
30210         * modules/faccessat: New file.
30211         * lib/faccessat.c: Likewise.
30212         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30214         * modules/unistd (Makefile.am): Use it.
30215         * lib/unistd.in.h (faccessat): Declare it.
30216         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
30217         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
30218         * MODULES.html.sh (File system functions): Mention it.
30219         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
30220         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30221
30222         euidaccess: prefer POSIX over non-standard implementation
30223         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
30224         * lib/euidaccess.c (euidaccess): Use it if available.
30225
30226         openat: make template easier to use
30227         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
30228         AT_FUNC_F2 to be undefined.
30229         (VALIDATE_FLAG): New macro; use it to reject bad flags.
30230         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
30231         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
30232         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
30233         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
30234         Likewise.
30235         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
30236         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
30237         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
30238         Likewise.
30239
30240         openat: declare in POSIX headers
30241         * NEWS: Mention this.
30242         * modules/openat (configure.ac): Declare witnesses.
30243         (Depends-on): Add fcntl-h, sys_stat, unistd.
30244         (Include): Mention correct headers.
30245         * modules/fcntl-h (Depends-on): Add link-warning.
30246         (Files): Add openat.m4.
30247         (Makefile.am): Substitute witnesses.
30248         * modules/sys_stat (Files, Makefile.am): Likewise.
30249         * modules/unistd (Files, Makefile.am): Likewise.
30250         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
30251         (gl_OPENAT_DEFAULTS): New macro.
30252         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30254         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30255         (SYS_STAT_H): Remove unused variable.
30256         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30257         * lib/fcntl--.h (includes): Remove unneeded header.
30258         * lib/openat-safer.c (includes): Likewise.
30259         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30260         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30261         appropriate headers.
30262         (__OPENAT_PREFIX): Delete.
30263         * lib/fcntl.in.h (openat): Provide declaration.
30264         (AT_FDCWD): Fix Solaris bug.
30265         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30266         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30267         * lib/fchmodat.c (includes):  Adjust to find declaration.
30268         * lib/fchownat.c (includes): Likewise.
30269         * lib/mkdirat.c (includes): Likewise.
30270         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30271         still visible.
30272
30273 2009-09-02  Eric Blake  <ebb9@byu.net>
30274
30275         errno: use consistently
30276         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30277         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30278         * lib/canonicalize.c (ELOOP): Likewise.
30279         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30280         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30281         * lib/lchown.c (EOPNOTSUPP): Likewise.
30282         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30283         * lib/savewd.c (ESTALE): Likewise.
30284         * lib/settime.c (ENOSYS): Likewise.
30285         * lib/utimens.c (ENOSYS): Likewise.
30286         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30287         * lib/chdir-safer.c (ELOOP): Likewise.
30288         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30289         * modules/c-stack (Depends-on): Add errno.
30290         * modules/canonicalize (Depends-on): Likewise.
30291         * modules/chdir-safer (Depends-on): Likewise.
30292         * modules/fdopendir (Depends-on): Likewise.
30293         * modules/inet_ntop (Depends-on): Likewise.
30294         * modules/inet_pton (Depends-on): Likewise.
30295         * modules/lchown (Depends-on): Likewise.
30296         * modules/openat (Depends-on): Likewise.
30297         * modules/savewd (Depends-on): Likewise.
30298         * modules/settime (Depends-on): Likewise.
30299         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30300
30301         fts: avoid leaking fds
30302         * modules/fts (Depends-on): Add cloexec.
30303         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30304         flag.
30305
30306         fts: make directory fds more robust
30307         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30308         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30309
30310         backupfile, chdir-long, fts, savedir: make safer
30311         * lib/backupfile.c (includes): Use "dirent--.h", since
30312         numbered_backup can write to stderr during readdir.
30313         * lib/savedir.c (includes): Likewise.
30314         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30315         emulation can write to stderr on failure.
30316         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30317         * lib/getcwd.c: Document why opendir_safer is unused.
30318         * lib/glob.c: Likewise.
30319         * lib/scandir.c: Likewise.
30320         * lib/openat-proc.c: Likewise, for open_safer.
30321         * modules/backupfile (Depends-on): Add dirent-safer.
30322         * modules/savedir (Depends-on): Likewise.
30323         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30324         * modules/chdir-long (Depends-on): Add openat-safer.
30325
30326         openat-safer: new module
30327         * modules/openat-safer: New file.
30328         * lib/openat-safer.c: Likewise.
30329         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30330         * lib/fcntl-safer.h (openat_safer): Declare.
30331         * lib/fcntl--.h (openat): Override.
30332         * MODULES.html.sh (File descriptor based I/O): Mention it.
30333         * lib/openat.h: Add double-inclusion guards.
30334         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30335         "fcntl--.h", so we can implement openat.
30336         * modules/openat-safer-tests: New test.
30337         * tests/test-openat-safer.c: New file.
30338
30339         dirent-safer: new module
30340         * modules/dirent-safer: New file.
30341         * lib/dirent--.h: Likewise.
30342         * lib/dirent-safer.h: Likewise.
30343         * lib/opendir-safer.c: Likewise.
30344         * m4/dirent-safer.m4: Likewise.
30345         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30346         * modules/dirent-safer-tests: New test.
30347         * tests/test-dirent-safer.c: New file.
30348         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30349
30350         fdopendir: optimize on mingw
30351         * lib/unistd.in.h (_gl_directory_name): New prototype.
30352         * lib/fchdir.c (_gl_directory_name): Implement it.
30353         (fchdir): Use it to simplify implementation.
30354         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30355         fchdir, when available, to avoid calling [f]chdir().
30356
30357         fdopendir: split into its own module
30358         * lib/openat.c (fdopendir): Move...
30359         * lib/fdopendir.c: ...into new file.
30360         * modules/fdopendir: New module.
30361         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30362         * modules/openat (Depends-on): Add fdopendir.
30363         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30364         fdopendir here.
30365         * modules/savedir (Depends-on): Only need fdopendir, not full
30366         openat.
30367         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30368         * lib/openat.h (fdopendir): Drop prototype.
30369         * lib/dirent.in.h (fdopendir): Provide prototype.
30370         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30371         * modules/dirent (Makefile.am): Substitute them.
30372         * MODULES.html.sh (File system functions): Mention it.
30373         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30374         * modules/fdopendir-tests: New file.
30375         * tests/test-fdopendir.c: Likewise.
30376
30377         fchdir: use more consistent macro convention
30378         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30379         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30380         REPLACE_FCHDIR, rather than relying on config.h macros.
30381         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30382         inside a single make-time REPLACE_FCHDIR block, rather than using
30383         the config.h FCHDIR_REPLACEMENT.
30384         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30385         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30386         Manage fstat replacement.
30387         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30388         REPLACE_FCHDIR.
30389         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30390         (Makefile.am): Substitute REPLACE_FCHDIR.
30391         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30392         FCHDIR_REPLACEMENT.
30393         * lib/dup-safer.c (dup_safer): Likewise.
30394         * lib/dup2.c (rpl_dup2): Likewise.
30395         * lib/dup3.c (rpl_dup3): Likewise.
30396         * lib/open.c (rpl_open): Likewise.
30397
30398         fchdir: simplify error handling, and support dup3
30399         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30400         stdbool, malloc-posix, realloc-posix.
30401         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30402         (ensure_dirs_slot): Return false on allocation failure.
30403         (rpl_dup2): Delete.
30404         (_gl_register_dup): New function.
30405         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30406         (_gl_register_fd): Close fd on allocation failure.
30407         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30408         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30409         prototype.
30410         (rpl_dup2_fchdir): Delete prototype.
30411         * lib/open.c (open): Update caller.
30412         * lib/dup2.c (dup2): Track fchdir metadata.
30413         * lib/dup3.c (dup3): Likewise.
30414         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30415         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30416
30417 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30418
30419         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30420         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30421         don't pass arguments to AC_OUTPUT.
30422
30423 2009-09-02  Bruno Haible  <bruno@clisp.org>
30424
30425         * modules/mkdtemp (License): Relicense under LGPLv2+.
30426         Reported by Paolo Bonzini.
30427
30428 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30429
30430         Replace uses of obsolete autoconf macros in Jim's modules.
30431         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30432         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30433         can evoke a warning from autoconf when run with -Wobsolete
30434         enabled.  They were declared obsolete for good reasons (see
30435         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30436         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30437         should not continue using the deprecated macros.
30438         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30439         obsolete Autoconf macros with modern counterparts.
30440         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30441         * m4/dos.m4 (gl_AC_DOS): Likewise.
30442         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30443         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30444         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30445         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30446         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30447         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30448         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30449         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30450         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30451         Likewise.
30452         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30453         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30454         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30455         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30456         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30457         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30458
30459 2009-09-01  Eric Blake  <ebb9@byu.net>
30460
30461         fchdir: fix off-by-one bug in previous patch
30462         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30463         (_gl_unregister_fd): Delete useless if.
30464
30465 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30466
30467         maint.mk: sort the list of syntax-check rules
30468         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30469         easier to get a sense of progress when the rules are run sequentially
30470         and take a long time.
30471
30472 2009-09-01  Simon Josefsson  <simon@josefsson.org>
30473
30474         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
30475         * modules/netinet_in: Likewise.
30476         * modules/sys_file: Likewise.
30477         * modules/sys_ioctl: Likewise.
30478         * modules/sys_select: Likewise.
30479         * modules/sys_socket: Likewise.
30480         * modules/sys_stat: Likewise.
30481         * modules/sys_time: Likewise.
30482         * modules/sys_times: Likewise.
30483         * modules/sys_utsname: Likewise.
30484         * modules/sys_wait: Likewise.
30485
30486 2009-09-01  Jim Meyering  <meyering@redhat.com>
30487
30488         fts: help ensure that return values are not ignored
30489         * lib/fts_.h (__GNUC_PREREQ): Define.
30490         (__attribute_warn_unused_result__): Define.
30491         (fts_children, fts_close, fts_open, fts_read): Declare with
30492         __attribute_warn_unused_result__.
30493
30494         fts: fts_close now fails also when closing a dir file descriptor fails
30495         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
30496         and propagate to caller, along with errno.
30497
30498         announce-gen: correct formatting in --help output
30499         * build-aux/announce-gen (usage): Move the one-line description in
30500         --help output "up", to where it belongs, just after Usage:.
30501
30502 2009-08-31  Eric Blake  <ebb9@byu.net>
30503
30504         fchdir: port to mingw
30505         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
30506         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
30507         opened, then use a substitute.
30508         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
30509         replacement.
30510         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
30511         (_gl_register_fd): No need to check stat if open already filters
30512         all directories.
30513         (fchdir): Fix error condition to match POSIX.
30514         * modules/fchdir (Depends-on): Add sys_stat.
30515         * doc/posix-functions/open.texi (open): Document the limitation.
30516         * modules/fchdir-tests: New file.
30517         * tests/test-fchdir.c: Likewise.
30518
30519         canonicalize: allow cross-testing from cygwin to mingw
30520         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
30521         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
30522         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
30523         Likewise.
30524         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
30525         target does not support symlinks.
30526         * tests/test-canonicalize-lgpl.sh: Likewise.
30527
30528         chown: avoid compilation warning on mingw
30529         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
30530         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
30531         mingw.
30532         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30533         * modules/chown (Depends-on): Add errno.
30534
30535 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30536
30537         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
30538         command.
30539
30540 2009-08-31  Jim Meyering  <meyering@redhat.com>
30541
30542         canonicalize: remove useless initialization
30543         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
30544         initialization of local, "end".
30545
30546 2009-08-30  Bruno Haible  <bruno@clisp.org>
30547
30548         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
30549         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
30550         ENOSYS.
30551
30552 2009-08-30  Bruno Haible  <bruno@clisp.org>
30553
30554         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
30555         /usr/xpg4/bin/tr when it exists.
30556         * tests/test-pipe-filter-gi1.sh: Likewise.
30557
30558 2009-08-30  Bruno Haible  <bruno@clisp.org>
30559
30560         Work around deficient /usr/bin/id program on Solaris.
30561         * tests/test-file-has-acl.sh (ID): New variable.
30562         * tests/test-set-mode-acl.sh (ID): Likewise.
30563         * tests/test-copy-acl.sh (ID): Likewise.
30564         * tests/test-copy-file.sh (ID): Likewise.
30565
30566 2009-08-30  Bruno Haible  <bruno@clisp.org>
30567
30568         New module 'xstriconveh'.
30569         * lib/xstriconveh.h: New file.
30570         * lib/xstriconveh.c: New file.
30571         * modules/xstriconveh: New file.
30572
30573 2009-08-30  Bruno Haible  <bruno@clisp.org>
30574
30575         Make it easier to use mem_cd_iconveh.
30576         * lib/striconveh.h (iconveh_t): New type.
30577         (iconveh_open, iconveh_close): New declarations.
30578         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30579         with a single 'const iconveh_t *' argument.
30580         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30581         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30582         with a single 'const iconveh_t *' argument.
30583         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30584         * tests/test-striconveh.c (main): Update.
30585         * NEWS: Mention the change.
30586
30587 2009-08-30  Bruno Haible  <bruno@clisp.org>
30588
30589         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30590         problem.
30591
30592 2009-08-30  Bruno Haible  <bruno@clisp.org>
30593
30594         Work around iconv_open problem on Solaris.
30595         * lib/iconv_open-solaris.gperf: New file.
30596         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30597         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30598         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30599         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30600         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30601         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30602
30603 2009-08-29  Jim Meyering  <meyering@redhat.com>
30604
30605         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30606         * top/maint.mk (cvs-check): Remove target; it was just an alias
30607         to the better-named vc-diff-check.
30608         (maintainer-distcheck): Remove rule.  It was used only from
30609         the (alpha/beta/major) target, and all of its commands but one
30610         were coreutils-specific.
30611         (vc-dist): Remove rule.
30612         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30613         Run vc-diff-check, not vc-dist.
30614         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30615
30616 2009-08-27  Bruno Haible  <bruno@clisp.org>
30617
30618         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30619         of 0.
30620
30621 2009-08-27  Bruno Haible  <bruno@clisp.org>
30622
30623         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30624         compilers.
30625         * doc/func.texi: Document the SunPRO C bug.
30626
30627 2009-08-27  Bruno Haible  <bruno@clisp.org>
30628
30629         Fix link error on Solaris.
30630         * tests/test-parse-duration.c (xstrdup): Remove function.
30631
30632 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30633
30634         ignore-value: handle pointer types, too
30635         * lib/ignore-value.h (__attribute__): Remove definition.
30636         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
30637         of a more concise and more-often effective "(void) i" statement.
30638         (ignore_ptr): New function to suppress warnings from functions that
30639         return pointers, and to make it explicit that one function doesn't
30640         handle all cases.
30641
30642 2009-08-25  Bruno Haible  <bruno@clisp.org>
30643
30644         dup2: work around a Linux bug.
30645         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
30646         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
30647         * doc/posix-functions/dup2.texi: Mention the Linux bug.
30648         Reported by Simon Josefsson.
30649
30650 2009-08-25  Jim Meyering  <meyering@redhat.com>
30651
30652         libguestfs uses gnulib
30653         * users.txt: Add libguestfs.
30654
30655 2009-08-24  Eric Blake  <ebb9@byu.net>
30656
30657         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
30658         * lib/pipe2.c (includes): Add binary-io.h.
30659         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
30660
30661 2009-08-24  Bruno Haible  <bruno@clisp.org>
30662
30663         Tolerate declared but missing accept4 syscall.
30664         * lib/accept4.c (accept4): Invoke original accept4 function first, if
30665         available.
30666         * lib/sys_socket.in.h (accept4): If the function is already present,
30667         override it.
30668         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
30669         * modules/accept4 (Makefile.am): Compile accept4.c always.
30670         Reported by Paolo Bonzini and Eric Blake.
30671
30672 2009-08-23  Bruno Haible  <bruno@clisp.org>
30673
30674         New module 'accept4'.
30675         * lib/sys_socket.in.h (accept4): New declaration.
30676         * lib/accept4.c: New file.
30677         * m4/accept4.m4: New file.
30678         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30679         GNULIB_ACCEPT4, HAVE_ACCEPT4.
30680         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
30681         HAVE_ACCEPT4.
30682         * modules/accept4: New file.
30683         * doc/glibc-functions/accept4.texi: Mention the new module.
30684
30685 2009-08-24  Jim Meyering  <meyering@redhat.com>
30686
30687         progname: also set global program_invocation_name, when possible
30688         Before this change, a libtool-enabled program that calls glibc's
30689         error function would report the program name as
30690         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
30691         * modules/progname (configure.ac): Check for a declaration of
30692         program_invocation_name.
30693         * lib/progname.c:  Include <errno.h>.
30694         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
30695         Set program_invocation_name.
30696
30697 2009-08-23  Bruno Haible  <bruno@clisp.org>
30698
30699         * lib/dup3.c: Include <string.h>.
30700
30701 2009-08-23  Bruno Haible  <bruno@clisp.org>
30702
30703         * lib/dup3.c (dup3): Test only once whether the system actually exists.
30704         * lib/pipe2.c (pipe2): Likewise.
30705         Suggested by Eric Blake.
30706
30707 2009-08-23  Bruno Haible  <bruno@clisp.org>
30708
30709         Tolerate declared but missing dup3 syscall.
30710         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
30711         * lib/unistd.in.h (dup3): If the function is already present,
30712         override it.
30713         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
30714         * modules/dup3 (Makefile.am): Compile dup3.c always.
30715         Reported by Paolo Bonzini.
30716
30717 2009-08-23  Bruno Haible  <bruno@clisp.org>
30718
30719         Tolerate declared but missing pipe2 syscall.
30720         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
30721         available.
30722         * lib/unistd.in.h (pipe2): If the function is already present,
30723         override it.
30724         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
30725         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
30726         Reported by Paolo Bonzini.
30727
30728 2009-08-23  Bruno Haible  <bruno@clisp.org>
30729
30730         * lib/pipe2.c (pipe2): Move #ifs inside function.
30731
30732 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30733
30734         quotearg: document limitations of quote_these_too
30735         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
30736         those limitations are created.
30737         * lib/quotearg.h (set_char_quoting): Document that digits and
30738         letters that are special after backslash are not permitted.
30739         (quotearg_char): Cross-reference set_char_quoting documentation.
30740
30741 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
30742
30743         quotearg: implement custom_quoting_style
30744         * lib/quotearg.c: (struct quoting_options): Add left_quote and
30745         right_quote fields.
30746         (set_custom_quoting): New public function.
30747         (quotearg_buffer_restyled): Add left_quote and right_quote
30748         arguments, handle them very much like locale quoting, and update
30749         all uses.
30750         (quotearg_n_custom): New public function.
30751         (quotearg_n_custom_mem): New public function.
30752         (quotearg_custom): New public function.
30753         (quotearg_custom_mem): New public function.
30754         * lib/quotearg.h: Prototype and document new public functions.
30755         (enum quoting_style): For escape_quoting_style and
30756         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
30757         ignored even though they're otherwise like c_quoting_style.
30758         Add custom_quoting_style member and document with comparison to
30759         clocale_quoting_style.
30760         * tests/test-quotearg.c (custom_quotes): New array.
30761         (custom_results): New array.
30762         (main): Extend to test custom quoting.
30763
30764 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30765
30766         quotearg: fix right quote escaping when it's in quote_these_too
30767         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
30768         quote, be sure to prepend only one backslash.
30769         * tests/test-quotearg.c (use_quote_double_quotes): New function.
30770         (main): Test it.
30771
30772 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30773
30774         quotearg-tests: test escaping of embedded locale quotes
30775         * tests/test-quotearg.c (struct result_strings): Add member for
30776         new input.
30777         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
30778         (inputs): Add new input.
30779         (results_g): Add expected results.
30780         (flag_results): Likewise.
30781         (locale_results): Likewise.
30782         (compare_strings): Check those.
30783
30784 2009-08-23  Bruno Haible  <bruno@clisp.org>
30785
30786         Tests for module 'dup3'.
30787         * modules/dup3-tests: New file.
30788         * tests/test-dup3.c: New file.
30789
30790         New module 'dup3'.
30791         * lib/unistd.in.h (dup3): New declaration.
30792         * lib/dup3.c: New file.
30793         * m4/dup3.m4: New file.
30794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
30795         HAVE_DUP3.
30796         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
30797         * modules/dup3: New file.
30798         * doc/glibc-functions/dup3.texi: Mention the new module.
30799
30800 2009-08-23  Bruno Haible  <bruno@clisp.org>
30801
30802         Tweak the dup2 test.
30803         * tests/test-dup2.c (main): Create the test file empty. Verify that an
30804         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
30805         the test file is still empty. Fix argument order of lseek.
30806
30807 2009-08-23  Bruno Haible  <bruno@clisp.org>
30808
30809         Avoid test link errors when the modules getopt-gnu, gettext are used.
30810         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
30811         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30812
30813 2009-08-23  Bruno Haible  <bruno@clisp.org>
30814
30815         Fix getdtablesize() on mingw.
30816         * lib/getdtablesize.c (getdtablesize): Implement differently.
30817         * lib/unistd.in.h (getdtablesize): Improve comment.
30818
30819 2009-08-23  Bruno Haible  <bruno@clisp.org>
30820
30821         New module 'mkostemp'.
30822         Based on Ulrich Drepper's 2007-08-10 change in glibc.
30823         * lib/stdlib.in.h (mksotemp): New declaration.
30824         * lib/mkostemp.c: New file, from glibc with modifications.
30825         * lib/tempname.h (GT_FILE): Remove outdated comment.
30826         (gen_tempname): Add flags argument.
30827         * lib/tempname.c (__GT_BIGFILE): Remove macro.
30828         (__GT_FILE): Map to 1.
30829         (small_open, large_open): Remove macros.
30830         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
30831         * lib/mkstemp.c (mkstemp): Update.
30832         * lib/mkdtemp.c (mkdtemp): Likewise.
30833         * m4/mkostemp.m4: New file.
30834         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
30835         HAVE_MKOSTEMP.
30836         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
30837         HAVE_MKOSTEMP.
30838         * modules/mkostemp: New file, based on modules/mkstemp.
30839         * doc/glibc-functions/mkostemp.texi: Mention the new module.
30840         * NEWS: Mention the change.
30841
30842 2009-08-23  Bruno Haible  <bruno@clisp.org>
30843
30844         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
30845         Reported by Eric Blake.
30846
30847 2009-08-23  Bruno Haible  <bruno@clisp.org>
30848
30849         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
30850         Reported by Eric Blake.
30851
30852 2009-08-23  Bruno Haible  <bruno@clisp.org>
30853
30854         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
30855         * modules/pipe2 (Depends-on): Likewise.
30856
30857 2009-08-23  Eric Blake  <ebb9@byu.net>
30858
30859         fcntl-h: add O_TTY_INIT support
30860         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
30861         * tests/test-fcntl-h.c (o): Test it.
30862         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30863
30864         fcntl-h: rename from fcntl, in preparation for fcntl(2)
30865         * modules/fcntl: Move <fcntl.h> header replacement...
30866         * modules/fcntl-h: ...to new name, so as not to collide with
30867         like-named function.
30868         * tests/test-fcntl.c: Rename...
30869         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
30870         * modules/fcntl-tests: Rename...
30871         * modules/fcntl-h-tests: ...to this.  Update test file name.
30872         * modules/chdir-long (Depends-on): Update clients.
30873         * modules/chdir-safer (Depends-on): Likewise.
30874         * modules/fcntl-safer (Depends-on): Likewise.
30875         * modules/fts (Depends-on): Likewise.
30876         * modules/mkancesdirs (Depends-on): Likewise.
30877         * modules/mkdir-p (Depends-on): Likewise.
30878         * modules/open (Depends-on): Likewise.
30879         * modules/savewd (Depends-on): Likewise.
30880         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
30881         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30882
30883 2009-08-22  Bruno Haible  <bruno@clisp.org>
30884
30885         * modules/binary-io (License): Relicense under LGPL.
30886         * modules/pipe2 (License): Likewise.
30887
30888 2009-08-22  Bruno Haible  <bruno@clisp.org>
30889
30890         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
30891         return value.
30892         * lib/pipe-filter-gi.c (filter_init): Likewise.
30893         Reported by Eric Blake.
30894
30895 2009-08-22  Bruno Haible  <bruno@clisp.org>
30896
30897         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
30898         * modules/pipe (Depends-on): Add pipe2.
30899
30900 2009-08-22  Bruno Haible  <bruno@clisp.org>
30901
30902         Tests for module 'pipe2'.
30903         * modules/pipe2-tests: New file.
30904         * tests/test-pipe2.c: New file.
30905
30906         New module 'pipe2'.
30907         * lib/unistd.in.h (pipe2): New declaration.
30908         * lib/pipe2.c: New file.
30909         * m4/pipe2.m4: New file.
30910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
30911         HAVE_PIPE2.
30912         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
30913         * modules/pipe2: New file.
30914         * doc/glibc-functions/pipe2.texi: Mention the new module.
30915
30916 2009-08-22  Bruno Haible  <bruno@clisp.org>
30917
30918         Reference some new glibc functions.
30919         * doc/glibc-functions/accept4.texi: New file.
30920         * doc/glibc-functions/dup3.texi: New file.
30921         * doc/glibc-functions/mkostemp.texi: New file.
30922         * doc/glibc-functions/pipe2.texi: New file.
30923         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
30924         (Glibc sys/socket.h): Refer to accept4.
30925         (Glibc unistd.h): Refer to dup3, pipe2.
30926         Reported by Eric Blake.
30927
30928 2009-08-22  Jim Meyering  <meyering@redhat.com>
30929             Bruno Haible  <bruno@clisp.org>
30930
30931         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
30932         This makes it so packages using automake-1.11's silent-rules option
30933         can print e.g., a single "GEN    configmake.h" line, rather than
30934         the 30+ statements that perform the job.  If you want to see the
30935         actual commands, you can still run "make V=1".
30936         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
30937         so that make output is abbreviated when those variables are defined
30938         appropriately.
30939         * modules/argz: Likewise.
30940         * modules/arpa_inet: Likewise.
30941         * modules/byteswap: Likewise.
30942         * modules/configmake: Likewise.
30943         * modules/dirent: Likewise.
30944         * modules/errno: Likewise.
30945         * modules/fcntl: Likewise.
30946         * modules/float: Likewise.
30947         * modules/fnmatch: Likewise.
30948         * modules/getopt-posix: Likewise.
30949         * modules/glob: Likewise.
30950         * modules/iconv_open: Likewise.
30951         * modules/inttypes: Likewise.
30952         * modules/localcharset: Likewise.
30953         * modules/locale: Likewise.
30954         * modules/math: Likewise.
30955         * modules/netdb: Likewise.
30956         * modules/netinet_in: Likewise.
30957         * modules/poll: Likewise.
30958         * modules/posix_spawnp-tests: Likewise.
30959         * modules/sched: Likewise.
30960         * modules/search: Likewise.
30961         * modules/selinux-h: Likewise.
30962         * modules/signal: Likewise.
30963         * modules/spawn: Likewise.
30964         * modules/stdarg: Likewise.
30965         * modules/stdbool: Likewise.
30966         * modules/stddef: Likewise.
30967         * modules/stdint: Likewise.
30968         * modules/stdio: Likewise.
30969         * modules/stdlib: Likewise.
30970         * modules/string: Likewise.
30971         * modules/strings: Likewise.
30972         * modules/sys_file: Likewise.
30973         * modules/sys_ioctl: Likewise.
30974         * modules/sys_select: Likewise.
30975         * modules/sys_socket: Likewise.
30976         * modules/sys_stat: Likewise.
30977         * modules/sys_time: Likewise.
30978         * modules/sys_times: Likewise.
30979         * modules/sys_utsname: Likewise.
30980         * modules/sys_wait: Likewise.
30981         * modules/sysexits: Likewise.
30982         * modules/time: Likewise.
30983         * modules/unistd: Likewise.
30984         * modules/wchar: Likewise.
30985         * modules/wctype: Likewise.
30986
30987 2009-08-22  Jim Meyering  <meyering@redhat.com>
30988
30989         announce-gen: detect write failure
30990         * build-aux/announce-gen: Add Coda at end.
30991         Remove equivalent-but-more-verbose block at top.
30992
30993 2009-08-19  Akim Demaille  <demaille@gostai.com>
30994
30995         bootstrap: --help to stdout.
30996         * bootstrap (usage): Don't send --help to stderr.
30997         Use a here doc instead of a long string.
30998
30999 2009-08-21  Eric Blake  <ebb9@byu.net>
31000
31001         test-popen-safer: split from test-popen
31002         * tests/test-popen.c (main): Move...
31003         * tests/test-popen.h: ...into new file.
31004         * tests/test-popen-safer2.c: New file.
31005         * modules/popen-tests (Files): Add test-popen.h.
31006         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
31007         Suggested by Bruno Haible.
31008
31009         test-fcntl-safer: split from test-open
31010         * tests/test-open.c (main): Move...
31011         * tests/test-open.h: ...into new file.
31012         * tests/test-fcntl-safer.c: New file.
31013         * modules/open-tests (Files): Add test-open.h.
31014         * modules/fcntl-safer-tests: New file.
31015         Suggested by Bruno Haible.
31016
31017         test-fopen-safer: split from test-fopen
31018         * tests/test-fopen.c (main): Move...
31019         * tests/test-fopen.h: ...into new file.
31020         * tests/test-fopen-safer.c: New file.
31021         * modules/fopen-tests (Files): Add test-fopen.h.
31022         * modules/fopen-safer-tests: New file.
31023         Suggested by Bruno Haible.
31024
31025 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31026
31027         popen-safer: test O_CLOEXEC at run-time.
31028         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
31029
31030 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31031
31032         fcntl: move more flags to the header
31033         * lib/cloexec.c: Do not define FD_CLOEXEC here.
31034         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
31035         * lib/fcntl.in.h: Do both things here.
31036
31037 2009-08-21  Jim Meyering  <meyering@redhat.com>
31038
31039         consistently remove $@-t before redirecting to it
31040         * modules/argz: Remove $@-t and $@ before redirecting to the former.
31041         * modules/alloca-opt: Likewise.
31042         * modules/byteswap: Likewise.
31043         * modules/fnmatch: Likewise.
31044         * modules/getopt-posix: Likewise.
31045         * modules/glob: Likewise.
31046         * modules/poll: Likewise.
31047         * modules/posix_spawnp-tests: Likewise.
31048         * modules/sys_socket: Likewise.
31049         * modules/sysexits: Likewise.
31050
31051 2009-08-21  Eric Blake  <ebb9@byu.net>
31052
31053         popen: simplify access to original popen
31054         * lib/popen.c (rpl_popen): No need to worry about popen being a
31055         macro.
31056         Reported by Bruno Haible.
31057
31058 2009-08-20  Eric Blake  <ebb9@byu.net>
31059
31060         build: avoid some compiler warnings
31061         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
31062         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
31063         type.
31064         (new_exclude_segment, excluded_file_pattern_p)
31065         (excluded_file_name_p): Reduce scope.
31066         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
31067         old-style declaration.
31068
31069 2009-08-20  Simon Josefsson  <simon@josefsson.org>
31070
31071         * tests/test-exclude1.sh: Handle Windows EOL.
31072         * tests/test-exclude2.sh: Likewise.
31073         * tests/test-exclude3.sh: Likewise.
31074         * tests/test-exclude4.sh: Likewise.
31075         * tests/test-exclude5.sh: Likewise.
31076         * tests/test-exclude6.sh: Likewise.
31077         * tests/test-exclude7.sh: Likewise.
31078
31079 2009-08-19  Akim Demaille  <demaille@gostai.com>
31080
31081         bootstrap: find sha1sum when named gsha1sum.
31082         * bootstrap (find_tool): New.
31083         ($SHA1SUM): New.
31084         Use it.
31085
31086 2009-08-20  Jim Meyering  <meyering@redhat.com>
31087
31088         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
31089         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
31090         expression that converts "." in a file name to "\." in the resulting
31091         regexp.  Start with a dummy statement, so that prior shell variable
31092         definitions are expanded portably.  Reported by Simon Josefsson.
31093
31094 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
31095
31096         Fix polling for writeability of a screen buffer.
31097         * lib/poll.c: Distinguish input and screen buffers for the
31098         Win32 implementation.
31099         * lib/select.c: Likewise.
31100
31101 2009-08-19  Eric Blake  <ebb9@byu.net>
31102
31103         popen-safer: prevent popen from clobbering std descriptors
31104         * modules/popen-safer: New file.
31105         * lib/popen-safer.c: Likewise.
31106         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
31107         * lib/stdio--.h (popen): Provide override.
31108         * lib/stdio-safer.h (popen_safer): Provide declaration.
31109         * tests/test-popen.c (includes): Partially test this.
31110         * modules/popen-safer-tests: New file, for more tests.
31111         * tests/test-popen-safer.c: Likewise.
31112         * MODULES.html.sh (file stream based Input/Output): Mention it.
31113
31114         tests: test some of the *-safer modules
31115         * modules/fopen-safer (Depends-on): Add fopen.
31116         * modules/fcntl-safer (Depends-on): Add fcntl.
31117         * modules/stdlib-safer (Depends-on): Add stdlib.
31118         (configure.ac): Set indicator.
31119         * modules/unistd-safer (configure.ac): Likewise.
31120         * modules/tmpfile-safer (configure.ac): Likewise.
31121         (Depends-on): Add tmpfile.
31122         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
31123         active.
31124         * tests/test-fopen.c (includes): Test safer versions when they are
31125         in use.
31126         * tests/test-open.c (includes): Likewise.
31127
31128         popen: fix cygwin 1.5 bug when stdin closed
31129         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
31130         * modules/popen: New file.
31131         * modules/popen-tests: Likewise.
31132         * tests/test-popen.c: Likewise.
31133         * m4/popen.m4: Likewise.
31134         * lib/popen.c: Likewise.
31135         * lib/stdio.in.h (popen): New declaration.
31136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
31137         * modules/stdio (Makefile.am): Likewise.
31138         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
31139
31140 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
31141
31142         maint.mk: give full control over update-copyright exclusions
31143         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
31144         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
31145         (update-copyright): Don't force inclusion of top-level
31146         ChangeLog.  Don't force exclusion of all COPYING files, but make
31147         them the default exclusion instead.
31148
31149 2009-08-16  Bruno Haible  <bruno@clisp.org>
31150
31151         Fix test failures on Solaris 10.
31152         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
31153         tests when Solaris iconv() is used.
31154         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
31155         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
31156         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
31157         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
31158         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
31159
31160 2009-08-16  Bruno Haible  <bruno@clisp.org>
31161
31162         Fix test failures on Solaris 10.
31163         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
31164         'tr' program and pass it as first argument.
31165         * tests/test-pipe-filter-gi1.sh: Likewise.
31166         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
31167         program as first argument.
31168         * tests/test-pipe-filter-gi1.c (main): Likewise.
31169
31170 2009-08-16  Eric Blake  <ebb9@byu.net>
31171
31172         fpurge: fix previous commits
31173         * modules/fpurge (Makefile.am): Make replacement conditional,
31174         partially reverting 2007-04-29 change; missed in previous
31175         attempt.
31176         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
31177         is missing.
31178
31179 2009-08-16  Bruno Haible  <bruno@clisp.org>
31180
31181         Clarify fpurge's effect on the file position.
31182         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
31183         * tests/test-fpurge.c (main): Make a second pass for checking the file
31184         position.
31185
31186 2009-08-16  Bruno Haible  <bruno@clisp.org>
31187
31188         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
31189         declaration of fpurge is missing.
31190         * tests/test-fpurge.c (main): Check that the file has not more contents
31191         than expected. Close the file before removing it.
31192
31193 2009-08-15  Eric Blake  <ebb9@byu.net>
31194
31195         fpurge: don't wrap working cygwin implementation
31196         * lib/fpurge.c (fpurge): Fix comment typo.
31197         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
31198         1.7 to avoid replacement.
31199         * tests/test-fpurge.c (main): Enhance test.
31200
31201 2009-08-15  Eric Blake  <ebb9@byu.net>
31202         and Jim Meyering  <meyering@redhat.com>
31203
31204         test-update-copyright: skip if perl is insufficient
31205         * tests/test-update-copyright.sh: Failure to run maintainer tool
31206         should not cause testsuite failure on cygwin 1.5.
31207
31208 2009-08-14  Eric Blake  <ebb9@byu.net>
31209
31210         doc: mention more functions added in cygwin 1.7.0
31211         * doc/posix-headers/limits.texi (limits.h): Update for recent
31212         cygwin additions.
31213         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
31214         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
31215         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
31216         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
31217         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
31218
31219 2009-08-14  Eric Blake  <ebb9@byu.net>
31220
31221         maint.mk: simplify update-copyright rule
31222         * top/maint.mk (update-copyright-local): Delete, and document how
31223         to do it in cfg.mk instead.
31224         (update-copyright-exclude-regexp): Delete, and document how to do
31225         it in .x-update-copyright instead.
31226         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
31227         exclude ChangeLog.
31228
31229 2009-08-14  Bruno Haible  <bruno@clisp.org>
31230
31231         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
31232
31233 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31234
31235         maint.mk: support update-copyright-env
31236         * top/maint.mk (update-copyright-env): Define place-holder.
31237         (update-copyright): Expand $(update-copyright-env) before
31238         invoking update-copyright.
31239
31240 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31241
31242         update-copyright: implement forced reformatting
31243         * build-aux/update-copyright: Implement and document
31244         UPDATE_COPYRIGHT_FORCE.
31245         * tests/test-update-copyright.sh: Test it.
31246
31247 2009-08-14  Eric Blake  <ebb9@byu.net>
31248         and Bruno Haible  <bruno@clisp.org>
31249
31250         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
31251         * tests/test-locale.c: Revert previous patch related to NULL.
31252         * tests/test-stdio.c: Likewise.
31253         * tests/test-stdlib.c: Likewise.
31254         * tests/test-string.c: Likewise.
31255         * tests/test-unistd.c: Likewise.
31256         * modules/time-tests (Depends-on): Add verify.
31257         * modules/wchar-tests (Depends-on): Likewise.
31258         * tests/test-time.c: Test for NULL compliance.
31259         * tests/test-wchar.c: Likewise.
31260         * modules/locale (Depends-on): Add stddef.
31261         * modules/stdio (Depends-on): Likewise.
31262         * modules/stdlib (Depends-on): Likewise.
31263         * modules/string (Depends-on): Likewise.
31264         * modules/time (Depends-on): Likewise.
31265         * modules/unistd (Depends-on): Likewise.
31266         * modules/wchar (Depends-on): Likewise.
31267         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31268         * lib/stdlib.in.h (includes): Likewise.
31269         * lib/string.in.h (includes): Likewise.
31270         * lib/time.in.h (includes): Likewise.
31271         * lib/unistd.in.h (includes): Likewise.
31272         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31273         replaced.
31274         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31275         * m4/stddef_h.m4: New file.
31276         * modules/stddef: Likewise.
31277         * lib/stddef.in.h: Likewise.
31278         * modules/stddef-tests: Likewise.
31279         * tests/test-stddef.c: Likewise.
31280         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31281         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31282         * doc/posix-headers/locale.texi (locale.h): Likewise.
31283         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31284         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31285         * doc/posix-headers/string.texi (string.h): Likewise.
31286         * doc/posix-headers/time.texi (time.h): Likewise.
31287         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31288         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31289
31290 2009-08-14  Eric Blake  <ebb9@byu.net>
31291
31292         doc: improve git diff of texinfo files
31293         * .gitattributes: Add rule for *.texi files, with hint on how to
31294         use it.
31295         Copied from m4, and based on a report by Bruno Haible.
31296
31297 2009-08-14  Bruno Haible  <bruno@clisp.org>
31298
31299         Disable multithread support by default on Cygwin 1.5.x for real.
31300         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31301
31302 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31303
31304         update-copyright: much ado about intervals
31305         * build-aux/update-copyright: Implement and document
31306         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31307         of copyright year intervals.
31308         Also, document UPDATE_COPYRIGHT_YEAR.
31309         * tests/test-update-copyright.sh: Test it.
31310
31311         update-copyright: convert 2-digit to 4-digit years
31312         * build-aux/update-copyright: Implement and document.
31313         * tests/test-update-copyright.sh: Update.
31314
31315 2009-08-14  Jim Meyering  <meyering@redhat.com>
31316
31317         test-exclude: avoid coreutils "make check" failure
31318         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31319         just as in test-argmatch.c.
31320
31321 2009-08-13  Eric Blake  <ebb9@byu.net>
31322
31323         test-dup2: fix bad assumption
31324         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31325         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31326
31327         test-version-etc: fix CRLF portability issue
31328         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31329         recognize \r.
31330         * tests/test-argp-version-etc-1.sh: Likewise.
31331
31332         getopt: update client modules
31333         * modules/argp (Depends-on): Use getopt-gnu.
31334         * modules/git-merge-changelog (Depends-on): Likewise.
31335         * modules/long-options (Depends-on): Likewise.
31336         * modules/xstrtol (Depends-on): Likewise.
31337
31338 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31339
31340         * tests/test-version-etc.sh: Don't fail on different
31341         project/version.  Don't fail on CRLF differences.  Rewrite to use
31342         multiple -e instead of multiple sed forks, suggested by Eric Blake
31343         <ebb9@byu.net>.
31344         * tests/test-argp-version-etc-1.sh: Likewise.
31345
31346 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31347
31348         * tests/test-version-etc.sh: Don't fail on different
31349         project/version.
31350
31351 2009-08-12  Bruno Haible  <bruno@clisp.org>
31352
31353         Tests for modules 'getopt-posix', 'getopt-gnu'.
31354         * modules/getopt-posix-tests: New file.
31355         * tests/test-getopt.c: New file.
31356         * tests/test-getopt.h: New file.
31357         * tests/test-getopt_long.h: New file.
31358
31359         New modules 'getopt-posix', 'getopt-gnu'.
31360         * modules/getopt-gnu: New file, renamed from modules/getopt.
31361         * modules/getopt-posix: New file.
31362         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31363         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31364         (gl_GETOPT): Remove macro.
31365         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31366         Disable the test against BSD systems that declare optreset. Test
31367         against mingw bug. Test against lack of support of optional arguments
31368         on many platforms.
31369         * doc/glibc-headers/getopt.texi: Update module name and list of
31370         relevant platforms.
31371         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31372         'getopt-gnu' and more portability problems.
31373         * NEWS: Mention the changes.
31374
31375 2009-08-12  Bruno Haible  <bruno@clisp.org>
31376
31377         Ensure that optarg etc. get declared by <unistd.h>.
31378         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31379         AC_USE_SYSTEM_EXTENSIONS.
31380         * modules/getopt (Depends-on): Add 'extensions'.
31381
31382 2009-08-12  Bruno Haible  <bruno@clisp.org>
31383
31384         Avoid test link errors.
31385         * modules/pipe-filter-ii-tests (Makefile.am): Define
31386         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31387         * modules/pipe-filter-gi-tests (Makefile.am): Define
31388         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31389         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31390
31391 2009-08-12  Bruno Haible  <bruno@clisp.org>
31392
31393         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31394         gl_GETOPT_SUBSTITUTE before.
31395         (gl_GETOPT): Use it.
31396         * m4/argp.m4 (gl_ARGP): Update.
31397         Reported by Sergey Poznyakoff.
31398
31399         * m4/getopt.m4: Reorder macros.
31400         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31401         (gl_GETOPT_SUBSTITUTE): Remove macro.
31402
31403 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31404
31405         Minor improvement in gitlog-to-changelog
31406
31407         * build-aux/gitlog-to-changelog: New option `--format' makes
31408         output format string configurable.
31409
31410 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31411
31412         Optimize exclude: use hash tables for non-wildcard patterns.
31413
31414         * lib/exclude.c: Include hash.h and mbuiter.h
31415         (struct exclude_pattern, exclude_segment): New data types.
31416         (struct exclude): Rewrite.
31417         (fnmatch_pattern_has_wildcards): New function.
31418         (new_exclude_segment, free_exclude_segment): New functions.
31419         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31420         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31421         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31422         * modules/exclude: Depend on hash and mbuiter.
31423
31424         * modules/exclude-tests: New file.
31425         * tests/test-exclude.c: New file.
31426         * tests/test-exclude1.sh: New file.
31427         * tests/test-exclude2.sh: New file.
31428         * tests/test-exclude3.sh: New file.
31429         * tests/test-exclude4.sh: New file.
31430         * tests/test-exclude5.sh: New file.
31431         * tests/test-exclude6.sh: New file.
31432         * tests/test-exclude7.sh: New file.
31433
31434 2009-08-12  Bruno Haible  <bruno@clisp.org>
31435
31436         Ensure that getopt() gets declared by <unistd.h>.
31437         * lib/unistd.in.h: Conditionally include getopt.h.
31438         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31439         Set GNULIB_UNISTD_H_GETOPT.
31440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31441         GNULIB_UNISTD_H_GETOPT.
31442         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31443
31444 2009-08-12  Bruno Haible  <bruno@clisp.org>
31445
31446         Clarify logic.
31447         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31448         gl_replace_getopt instead of GETOPT_H.
31449
31450 2009-08-12  Bruno Haible  <bruno@clisp.org>
31451
31452         * m4/getopt.m4: Add comments.
31453
31454 2009-08-12  Bruno Haible  <bruno@clisp.org>
31455
31456         Disable multithread support by default on Cygwin 1.5.x.
31457         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31458         set gl_use_threads=no if not specified otherwise.
31459
31460 2009-08-11  Bruno Haible  <bruno@clisp.org>
31461
31462         Avoid compilation error on NetBSD 5.0.
31463         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
31464         * tests/test-stdio.c: Likewise.
31465         * tests/test-stdlib.c: Likewise.
31466         * tests/test-string.c: Likewise.
31467         * tests/test-unistd.c: Likewise.
31468         Reported by Greg Troxel <gdt@ir.bbn.com>
31469         at <https://savannah.gnu.org/support/?106973>.
31470
31471 2009-08-11  Bruno Haible  <bruno@clisp.org>
31472
31473         * modules/dup2-tests (Depends-on): Remove close.
31474
31475         Undo 2009-07-19 commit.
31476         * modules/acl-tests (Depends-on): Remove close.
31477         * modules/binary-io-tests (Depends-on): Likewise.
31478         * modules/closein-tests (Depends-on): Likewise.
31479         * modules/flock-tests (Depends-on): Likewise.
31480         * modules/fsync-tests (Depends-on): Likewise.
31481         * modules/lseek-tests (Depends-on): Likewise.
31482         * modules/pipe-tests (Depends-on): Likewise.
31483         * modules/posix_spawn-tests (Depends-on): Likewise.
31484         * modules/posix_spawnp-tests (Depends-on): Likewise.
31485         * modules/stat-time-tests (Depends-on): Likewise.
31486         * modules/yesno-tests (Depends-on): Likewise.
31487
31488 2009-08-10  Bruno Haible  <bruno@clisp.org>
31489
31490         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
31491
31492 2009-08-10  Bruno Haible  <bruno@clisp.org>
31493
31494         Fix a gcc warning.
31495         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
31496
31497 2009-08-10  Bruno Haible  <bruno@clisp.org>
31498
31499         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
31500         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
31501         not only the first time.
31502         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
31503         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
31504         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
31505         is 1, not only the the first time.
31506
31507 2009-08-10  Bruno Haible  <bruno@clisp.org>
31508
31509         Make it possible to use module 'gethostname' without module 'close'.
31510         * lib/unistd.in.h (close): Evoke a link error only if
31511         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31513         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31514         * modules/unistd (Makefile.am): Substitute
31515         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31516         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
31517         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31518         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31519         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31520         * modules/sys_ioctl (Makefile.am): Substitute
31521         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31522         * modules/socket (configure.ac): On native Windows, set
31523         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
31524         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31525         Reported by Sam Steingold <sds@gnu.org>.
31526
31527 2009-08-10  Bruno Haible  <bruno@clisp.org>
31528
31529         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
31530         * modules/ioctl (configure.ac): Likewise.
31531
31532 2009-08-10  Bruno Haible  <bruno@clisp.org>
31533
31534         Avoid collision between gnulib wrapper and libintl wrapper.
31535         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
31536         already defined in intl/printf.c.
31537         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
31538         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
31539
31540 2009-08-09  Bruno Haible  <bruno@clisp.org>
31541
31542         Make <sys/select.h> really self-contained, also on Solaris 10.
31543         * lib/sys_select.in.h: Include <string.h>.
31544         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
31545         Solaris 10 problem.
31546         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
31547         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
31548         Reported by Jim Meyering.
31549
31550 2009-08-09  Bruno Haible  <bruno@clisp.org>
31551
31552         Avoid warnings from 'aclocal' that are due to a use of macro name
31553         AM_XGETTEXT_OPTION that is not defined in automake.
31554         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
31555         automake.
31556         * modules/error (configure.ac): Likewise.
31557         * modules/propername (configure.ac): Likewise.
31558         * modules/vasprintf (configure.ac): Likewise.
31559         * modules/verror (configure.ac): Likewise.
31560         * modules/xprintf (configure.ac): Likewise.
31561         * modules/xvasprintf (configure.ac): Likewise.
31562
31563 2009-08-08  Bruno Haible  <bruno@clisp.org>
31564
31565         Avoid compilation error in C++ mode.
31566         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31567         Reported by Sam Steingold <sds@gnu.org>.
31568
31569 2009-08-08  Bruno Haible  <bruno@clisp.org>
31570
31571         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31572         for the various Unix platforms.
31573         * doc/posix-headers/limits.texi: Update platforms list regarding
31574         HOST_NAME_MAX.
31575         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31576
31577 2009-08-07  Jim Meyering  <meyering@redhat.com>
31578
31579         selinux-at: fix typo in a comment
31580         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31581         Spotted by Paolo Bonzini.
31582
31583         selinux-at: remove redundant m4 code, add documentation
31584         * modules/selinux-at (configure.ac): Remove redundant code.
31585         LIB_SELINUX is already set via the dependent module, selinux-h.
31586         (Include): Add quotes around selinux-at.h.
31587         * lib/selinux-at.h: Add documentation.
31588         Reported by Bruno Haible in
31589         http://marc.info/?l=gnulib-bug&m=124958988300749
31590
31591 2009-08-07  Bruno Haible  <bruno@clisp.org>
31592
31593         Avoid link error on MacOS X 10.3 and 10.4.
31594         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31595         on non-ELF systems.
31596         * lib/argp-pv.c (argp_program_version): Likewise.
31597         Reported by Simon Josefsson.
31598
31599 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31600
31601         * tests/test-version-etc.sh: Use $EXEEXT.
31602
31603 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31604
31605         update-copyright: update documentation to point to maint.mk
31606         * build-aux/update-copyright: Here.
31607
31608 2009-08-06  Jim Meyering  <meyering@redhat.com>
31609
31610         maint.mk: support update-copyright-local
31611         * top/maint.mk (update-copyright-local): Define place-holder.
31612         (update-copyright): Depend on $(update-copyright-local).
31613
31614 2009-08-06  Jim Meyering  <meyering@redhat.com>
31615
31616         selinux-at: new module
31617         Initially written for coreutils, this module will soon be
31618         used by findutils, too.
31619         * MODULES.html.sh [Misc]: Add selinux-at.
31620         * lib/selinux-at.h: New file, from coreutils.
31621         * lib/selinux-at.c: Likewise.
31622         * modules/selinux-at: Likewise.
31623         (License): Change from LGPL to GPL, since it depends
31624         on the GPL'd openat module.
31625
31626         doc: update README
31627         * README: Remove references to cogito.
31628         Remove cvs-repo-updating instructions from 2007.
31629         Don't imply that CVS is better if you have limited disk space.
31630
31631 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31632
31633         update-copyright: support C-style comments
31634         * build-aux/update-copyright: Implement and document.
31635         * tests/test-update-copyright.sh: Test.
31636
31637 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31638
31639         update-copyright: support omitted "(C)"
31640         * build-aux/update-copyright: Implement and document.  Also,
31641         allow variable whitespace before "(C)".
31642         * tests/test-update-copyright.sh: Test.
31643
31644 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31645
31646         update-copyright: don't trip on non-FSF copyright statements
31647         * build-aux/update-copyright: Fix so that the first correctly
31648         formatted FSF copyright statement is recognized no matter what
31649         appears before it.  Update documentation.
31650         * tests/test-update-copyright.sh: Test that.
31651
31652 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31653
31654         update-copyright: clean up code a little
31655         * build-aux/update-copyright: Append "_re" to the name of any
31656         variable holding a regular expression.
31657         Replace "old" and "new" with "stmt" in variable names.
31658         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
31659         handled correctly.
31660         Format code more consistently.
31661
31662 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31663
31664         update-copyright-tests: improve portability
31665         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
31666         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
31667
31668 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31669
31670         update-copyright: support @copyright{} and &copy;
31671         * build-aux/update-copyright: Implement and document.
31672         * tests/test-update-copyright.sh: Test.
31673
31674 2009-08-04  Jim Meyering  <meyering@redhat.com>
31675
31676         update-copyright-tests: correctly test EOL=\r\n handling
31677         * tests/test-update-copyright.sh: Put \r at the end of some lines
31678         for the dos-eol tests.  Based on a patch by Joel E. Denny.
31679
31680         maint.mk: make update-copyright exclusion list more configurable
31681         * top/maint.mk (update-copyright): Default to excluding COPYING,
31682         but allow an override, in case someone does want to update that file.
31683
31684         maint.mk: don't update copyright date in COPYING
31685         * top/maint.mk (update-copyright): Exclude COPYING.
31686
31687         maint.mk: add a copyright-updating rule
31688         * top/maint.mk (update-copyright): New rule.
31689         Derived from coreutils/Makefile.am.
31690
31691         update-copyright: rename some variables
31692         * build-aux/update-copyright: Rename a few variables for clarity.
31693         Tweak syntax.  List Joel E. Denny as coauthor.
31694
31695 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31696
31697         update-copyright: fix bug for 2-digit last year and add tests
31698         * build-aux/update-copyright: Fix bug.
31699         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
31700         specified.
31701         * modules/update-copyright-tests: New
31702         * tests/test-update-copyright.sh: New.
31703
31704 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31705
31706         update-copyright: handle leading tabs in line prefix
31707         * build-aux/update-copyright: Count leading tabs as 8 spaces
31708         when computing margin.  This helps with the formatting of
31709         ChangeLogs, for example.
31710         Fix documentation a little.
31711
31712 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31713
31714         update-copyright: support EOL=\r\n
31715         * build-aux/update-copyright: Implement that.
31716
31717 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31718
31719         update-copyright: automatically format copyright statements
31720         * build-aux/update-copyright: Implement that.
31721         Also, be a little more predictable and safer by always failing
31722         when the full copyright format is not perfectly recognized as an
31723         unbroken whole.  Discussed at
31724         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
31725         Rewrite documentation.
31726
31727 2009-08-03  Bruno Haible  <bruno@clisp.org>
31728
31729         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
31730
31731 2009-08-02  Bruno Haible  <bruno@clisp.org>
31732
31733         Tests for module 'uname'.
31734         * modules/uname-tests: New file.
31735         * tests/test-uname.c: New file.
31736
31737         New module 'uname'.
31738         * lib/uname.c: New file.
31739         * m4/uname.m4: New file.
31740         * modules/uname: New file.
31741         * doc/posix-functions/uname.texi: Mention the new module.
31742
31743 2009-08-02  Bruno Haible  <bruno@clisp.org>
31744
31745         Tests for module 'sys_utsname'.
31746         * modules/sys_utsname-tests: New file.
31747         * tests/test-sys_utsname.c: New file.
31748
31749         New module 'sys_utsname'.
31750         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
31751         * m4/sys_utsname_h.m4: New file.
31752         * modules/sys_utsname: New file.
31753         * doc/posix-headers/sys_utsname.texi: Mention the new module.
31754
31755 2009-08-02  Bruno Haible  <bruno@clisp.org>
31756
31757         Implicitly initialize the sockets library.
31758         * lib/gethostname.c: Include sockets.h.
31759         (rpl_gethostname): Invoke gl_sockets_startup.
31760         * lib/socket.c: Include sockets.h.
31761         (rpl_socket): Invoke gl_sockets_startup.
31762         * modules/gethostname (Depends-on): Add sockets.
31763         * modules/socket (Depends-on): Likewise.
31764         * tests/test-poll.c: Don't include sockets.h.
31765         (main): Don't invoke gl_sockets_startup.
31766         * tests/test-select.c: Don't include sockets.h.
31767         (main): Don't invoke gl_sockets_startup.
31768
31769 2009-08-02  Bruno Haible  <bruno@clisp.org>
31770
31771         Allow multiple calls to gl_sockets_startup.
31772         * lib/sockets.c (initialized_sockets_version): New variable.
31773         (gl_sockets_startup): Do nothing if already called for this or a higher
31774         version.
31775         (gl_sockets_cleanup): Reset initialized_sockets_version.
31776
31777 2009-08-03  Simon Josefsson  <simon@josefsson.org>
31778
31779         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
31780         different project/version.
31781
31782 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
31783             Bruno Haible  <bruno@clisp.org>
31784
31785         Tests for module 'pipe-filter-gi'.
31786         * modules/pipe-filter-gi-tests: New file.
31787         * tests/test-pipe-filter-gi1.sh: New file.
31788         * tests/test-pipe-filter-gi1.c: New file.
31789         * tests/test-pipe-filter-gi2.sh: New file.
31790         * tests/test-pipe-filter-gi2-main.c: New file.
31791         * tests/test-pipe-filter-gi2-child.c: New file.
31792
31793         New module 'pipe-filter-gi'.
31794         * lib/pipe-filter-gi.c: New file.
31795         * modules/pipe-filter-gi: New file.
31796
31797 2009-08-02  Bruno Haible  <bruno@clisp.org>
31798             Paolo Bonzini  <bonzini@gnu.org>
31799
31800         Tests for module 'pipe-filter-ii'.
31801         * modules/pipe-filter-ii-tests: New file.
31802         * tests/test-pipe-filter-ii1.sh: New file.
31803         * tests/test-pipe-filter-ii1.c: New file.
31804         * tests/test-pipe-filter-ii2.sh: New file.
31805         * tests/test-pipe-filter-ii2-main.c: New file.
31806         * tests/test-pipe-filter-ii2-child.c: New file.
31807
31808         New module 'pipe-filter-ii'.
31809         * lib/pipe-filter.h: New file.
31810         * lib/pipe-filter-ii.c: New file.
31811         * lib/pipe-filter-aux.h: New file.
31812         * modules/pipe-filter-ii: New file.
31813
31814 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31815
31816         * lib/gc-libgcrypt.c: Change copyright to FSF.
31817         * lib/gc-gnulib.c: Likewise.
31818
31819 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
31820
31821         * lib/gethostname.c: Include limits.h.
31822
31823 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31824             Bruno Haible  <bruno@clisp.org>
31825
31826         Ensure HOST_NAME_MAX as part of the gethostname module.
31827         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
31828         define also HOST_NAME_MAX.
31829         * tests/test-gethostname.c: Include <limits.h>.
31830         (main): Check also HOST_NAME_MAX.
31831         * doc/posix-headers/limits.texi: Document the mingw problem.
31832
31833 2009-08-02  Bruno Haible  <bruno@clisp.org>
31834
31835         * lib/gethostname.c (gethostname): Fix handling of large len argument.
31836         Add comments.
31837
31838 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31839
31840         * lib/gethostname.c: Add Windows wrapper.
31841         * m4/gethostname.m4: Look for gethostname in -lws2_32.
31842         * modules/gethostname: Depend on sys_socket & errno, for also
31843         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
31844         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
31845
31846 2009-07-31  Jim Meyering  <meyering@redhat.com>
31847
31848         getloadavg: fix symbol name in comment
31849         * lib/getloadavg.c: Correct a typo I introduced when adding
31850         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
31851         Matt Kraai spotted the problem.
31852
31853 2009-07-29  Matt Kraai  <mkraai@beckman.com>
31854
31855         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
31856         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
31857         code also if ! defined N_NAME_POINTER.
31858         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
31859         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
31860         but the n_name member is a 12-byte array.
31861
31862 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
31863
31864         update-copyright: generalize comment handling
31865         * build-aux/update-copyright: Handle copyright statements
31866         within more comment styles.
31867         Document usage.
31868         Report any file with an external copyright holder or parse failure.
31869
31870 2009-07-29  Jim Meyering  <meyering@redhat.com>
31871
31872         mktime: correct setting of REPLACE_MKTIME
31873         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
31874
31875         update-copyright: new module
31876         * modules/update-copyright: New file.
31877         * build-aux/update-copyright: New file.
31878         * MODULES.html.sh (maint+release support): Add update-copyright.
31879
31880 2009-07-27  Bruno Haible  <bruno@clisp.org>
31881
31882         Fix compilation error when <ctime> is used and mktime is replaced.
31883         * lib/time.in.h (mktime): New declaration.
31884         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
31885         REPLACE_MKTIME instead of defining mktime in config.h.
31886         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
31887         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
31888         Reported by Ross McFarland <rwmcfa1@neces.com>.
31889
31890 2009-07-27  Bruno Haible  <bruno@clisp.org>
31891
31892         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
31893         Reported by Matt Kraai <mkraai@beckman.com>.
31894
31895 2009-07-25  Jim Meyering  <meyering@redhat.com>
31896
31897         maint.mk: avoid warnings about missing files
31898         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
31899         diagnostic when .prev-version does not exist.
31900         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
31901         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
31902         nonexistent cfg.mk.
31903         Suggestions from Simon Josefsson.
31904
31905 2009-07-25  Bruno Haible  <bruno@clisp.org>
31906
31907         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
31908         defined as macros. Needed on QNX 6.4.1.
31909         Reported by Matt Kraai <mkraai@beckman.com>.
31910
31911 2009-07-23  Jim Meyering  <meyering@redhat.com>
31912
31913         maint.mk: invoke "make dist" with a working value of XZ_OPT
31914         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
31915
31916 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
31917
31918         Make fseeko.c compile on QNX.
31919         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
31920
31921 2009-07-22  Peter Simons  <simons@cryp.to>
31922
31923         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
31924         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
31925         * lib/md4.h: Likewise.
31926         * lib/md5.h: Likewise.
31927         * lib/sha1.h: Likewise.
31928         * lib/sha256.h: Likewise.
31929         * lib/sha512.h: Likewise.
31930
31931         tests-sha1: don't assign literal string to 'char *' variable
31932         * tests/test-sha1.c (main): Declare locals with "const" to match
31933         attributes of the right hand side.
31934
31935 2009-07-21  Eric Blake  <ebb9@byu.net>
31936
31937         dup2: fix more mingw problems
31938         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
31939         fd to itself.
31940         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31941         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
31942         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
31943         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
31944         care of mingw bugs.
31945
31946 2009-07-21  Jim Meyering  <meyering@redhat.com>
31947
31948         vc-list-files: avoid failure when /bin/sh is dash
31949         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
31950         On some Debian based systems, /bin/sh is a symlink to dash, and running
31951         this command would omit the "/" following each 'tests' prefix:
31952           dash -x build-aux/vc-list-files -C . tests
31953         That is because bash and dash work differently:
31954           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
31955           bash ok
31956           dash odd
31957
31958 2009-07-21  Eric Blake  <ebb9@byu.net>
31959
31960         dup2-tests: test previous patch
31961         * modules/dup2-tests: New file.
31962         * tests/test-dup2.c: Likewise.
31963         * tests/test-open.c (main): Avoid unspecified behavior.
31964         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
31965         test.
31966
31967         dup2: work around mingw and cygwin 1.5 bug
31968         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
31969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31970         * modules/unistd (Makefile.am): Substitute it.
31971         * lib/unistd.in.h (dup2): Declare the replacement.
31972         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
31973         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
31974         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
31975         * modules/execute (Depends-on): Add dup2.
31976         * modules/fseterr (Depends-on): Likewise.
31977         * modules/pipe (Depends-on): Likewise.
31978         * modules/posix_spawn-internal (Depends-on): Likewise.
31979
31980 2009-07-21  Bruno Haible  <bruno@clisp.org>
31981
31982         * modules/.gitattributes: New file.
31983
31984 2009-07-20  Bruno Haible  <bruno@clisp.org>
31985
31986         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
31987         (main): Use it.
31988
31989 2009-07-20  Eric Blake  <ebb9@byu.net>
31990
31991         test-pipe: make a bit more robust.
31992         * tests/test-pipe.c (myerr): Allow error messages regardless of
31993         what we do to stderr.
31994         (test_pipe): Rearrange to avoid deadlock.
31995         (child_main): Try a larger read, to ensure we avoided deadlock.
31996         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
31997         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
31998         if misused.
31999
32000 2009-07-19  Jim Meyering  <meyering@redhat.com>
32001
32002         fts: avoid false-positive cycle-detection
32003         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
32004         for each new command line argument.
32005
32006 2009-07-19  Bruno Haible  <bruno@clisp.org>
32007
32008         Fix build error on mingw with the modules sys_select and unistd.
32009         * modules/acl-tests (Depends-on): Add close.
32010         * modules/binary-io-tests (Depends-on): Likewise.
32011         * modules/closein-tests (Depends-on): Likewise.
32012         * modules/flock-tests (Depends-on): Likewise.
32013         * modules/fsync-tests (Depends-on): Likewise.
32014         * modules/lseek-tests (Depends-on): Likewise.
32015         * modules/pipe-tests (Depends-on): Likewise.
32016         * modules/posix_spawn-tests (Depends-on): Likewise.
32017         * modules/posix_spawnp-tests (Depends-on): Likewise.
32018         * modules/stat-time-tests (Depends-on): Likewise.
32019         * modules/yesno-tests (Depends-on): Likewise.
32020
32021 2009-07-19  Bruno Haible  <bruno@clisp.org>
32022
32023         Unify conditionals.
32024         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
32025         macros, not at the compiler macros.
32026         * lib/pipe.c: Likewise.
32027         * lib/execute.c: Likewise.
32028         * lib/spawni.c: Likewise.
32029
32030 2009-07-19  Bruno Haible  <bruno@clisp.org>
32031
32032         Fix handling of closed stdin/stdout/stderr on mingw.
32033         * lib/w32spawn.h: Include unistd.h.
32034         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
32035         file descriptor with O_NOINHERIT flag.
32036         (fd_safer_noinherit): New function, based on fd-safer.c.
32037         (dup_safer_noinherit): New function, based on dup-safer.c.
32038         (undup_safer_noinherit): New function.
32039         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
32040         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
32041         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
32042         instead of fd_safer.
32043         * tests/test-pipe.c: Include <windows.h>.
32044         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
32045         result.
32046
32047         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
32048         from main.
32049         (test_pipe): Pass an extra argument for disambiguation.
32050         (main): Invoke parent_main or child_main.
32051
32052         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
32053         consistently.
32054
32055 2009-07-18  Eric Blake  <ebb9@byu.net>
32056
32057         test-pipe: fix mingw build
32058         * tests/test-pipe.c (main): Avoid fcntl on mingw.
32059
32060 2009-07-18  Bruno Haible  <bruno@clisp.org>
32061
32062         * modules/pipe-tests (Makefile.am): Fix typo.
32063
32064 2009-07-18  Eric Blake  <ebb9@byu.net>
32065
32066         error: fix mingw build
32067         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
32068         Reported by Bruno Haible.
32069
32070         error: avoid undefined use of stdout
32071         * lib/error.c (error, error_at_line): Check that fd 1 is open
32072         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
32073         is handling faults and the close_stdout module wants to report the
32074         detection of closed stdout as an error.
32075
32076 2009-07-17  Eric Blake  <ebb9@byu.net>
32077
32078         pipe: be robust in face of closed fds
32079         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
32080         should cause child to misbehave.
32081         * modules/pipe-tests: New module.
32082         * tests/test-pipe.c: New file.
32083         * tests/test-pipe.sh: New file.
32084         Reported by Akim Demaille.
32085
32086 2009-07-14  Bruno Haible  <bruno@clisp.org>
32087
32088         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
32089         Reported by anonymous kc.
32090
32091 2009-07-07  Jim Meyering  <meyering@redhat.com>
32092
32093         maint.mk: don't look for translatable strings in *.m4 or *.mk
32094         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
32095         when searching for translatable strings.
32096
32097 2009-07-05  Jim Meyering  <meyering@redhat.com>
32098
32099         remove superfluous parentheses in STREQ definition
32100         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
32101         * lib/getugroups.c (STREQ): Likewise.
32102         * lib/fnmatch.c (STREQ): Likewise.
32103         Spotted by Bruno Haible.
32104
32105 2009-07-04  Jim Meyering  <meyering@redhat.com>
32106
32107         argv-iter: new module
32108         * MODULES.html.sh: Add argv-iter.
32109         * lib/argv-iter.c, lib/argv-iter.h: New files.
32110         * modules/argv-iter: New file.
32111         * modules/argv-iter-tests: New file.
32112         * tests/test-argv-iter.c: Test it.
32113
32114 2009-07-04  Bruno Haible  <bruno@clisp.org>
32115
32116         Fix assertion.
32117         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
32118         contains more exact copies of a given entry than file2, leave the extra
32119         copies unpaired rather than aborting.
32120         Reported by Eric Blake.
32121
32122 2009-07-02  Bruno Haible  <bruno@clisp.org>
32123
32124         Speedup git-merge-changelog for git cherry-pick.
32125         * lib/git-merge-changelog.c (struct entries_mapping): New type.
32126         (entries_mapping_get): New function, extracted from compute_mapping.
32127         (entries_mapping_reverse_get): New function.
32128         (compute_mapping): Add a 'full' argument. Return the result in a
32129         'struct entries_mapping'.
32130         (main): Update. Access the mappings through entries_mapping_get.
32131         Reported by Eric Blake.
32132
32133 2009-07-02  Bruno Haible  <bruno@clisp.org>
32134
32135         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
32136         best_i.
32137
32138 2009-07-02  Bruno Haible  <bruno@clisp.org>
32139
32140         Speed up approximate search for matching ChangeLog entries.
32141         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
32142         argument. Call fstrcmp_bounded instead of fstrcmp.
32143         (compute_mapping, try_split_merged_entry, main): Update callers.
32144
32145 2009-07-02  Bruno Haible  <bruno@clisp.org>
32146
32147         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
32148
32149 2009-06-30  Bruno Haible  <bruno@clisp.org>
32150
32151         Reduce the number of uc_is_cased calls.
32152         * lib/unicase.h (casing_suffix_context_t): Add
32153         'first_char_except_ignorable' field.
32154         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
32155         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
32156         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
32157         Update initializer.
32158         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
32159         case-ignorable characters.
32160         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
32161         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
32162         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
32163         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
32164         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
32165
32166 2009-06-30  Bruno Haible  <bruno@clisp.org>
32167
32168         Tests for module 'unicase/ignorable'.
32169         * modules/unicase/ignorable-tests: New file.
32170         * tests/unicase/test-ignorable.c: New file, generated by
32171         gen-uni-tables.
32172
32173         Tests for module 'unicase/cased'.
32174         * modules/unicase/cased-tests: New file.
32175         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
32176         * tests/unicase/test-predicate-part1.h: New file, derived from
32177         tests/unictype/test-predicate-part1.h.
32178         * tests/unicase/test-predicate-part2.h: New file, same as
32179         tests/unictype/test-predicate-part2.h.
32180
32181         Fix evaluation of "Before C" condition of FINAL_SIGMA.
32182         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
32183         (output_casing_properties): New function.
32184         (main): Call it.
32185         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
32186         * lib/unicase/cased.c: Include unictype/bitmap.h.
32187         (uc_is_cased): Define through a bitmap lookup.
32188         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
32189         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
32190         (uc_is_case_ignorable): Define through a bitmap lookup.
32191         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
32192         lib/unictype/bitmap.h.
32193         (Depends-on): Add inline. Clean up.
32194         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
32195         lib/unictype/bitmap.h.
32196         (Depends-on): Add inline. Clean up.
32197         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
32198         recognition.
32199         * tests/unicase/test-u16-tolower.c (main): Likewise.
32200         * tests/unicase/test-u32-tolower.c (main): Likewise.
32201
32202 2009-06-30  Bruno Haible  <bruno@clisp.org>
32203
32204         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
32205         * lib/unicase/u16-casemap.c: Likewise.
32206         * lib/unicase/u32-casemap.c: Likewise.
32207
32208 2009-06-29  Bruno Haible  <bruno@clisp.org>
32209
32210         Define u32_casefold as a wrapper around u32_ct_casefold.
32211         * lib/unicase/u32-casefold.c: Update.
32212         * modules/unicase/u32-casefold (Depends-on): Add
32213         unicase/u32-ct-casefold, unicase/empty-prefix-context,
32214         unicase/empty-suffix-context. Clean up.
32215
32216         Define u16_casefold as a wrapper around u16_ct_casefold.
32217         * lib/unicase/u16-casefold.c: Update.
32218         * modules/unicase/u16-casefold (Depends-on): Add
32219         unicase/u16-ct-casefold, unicase/empty-prefix-context,
32220         unicase/empty-suffix-context. Clean up.
32221
32222         Define u8_casefold as a wrapper around u8_ct_casefold.
32223         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
32224         * lib/unicase/u8-casefold.c: Update.
32225         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
32226         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32227
32228         Define u32_totitle as a wrapper around u32_ct_totitle.
32229         * lib/unicase/u32-totitle.c: Update.
32230         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
32231         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32232
32233         Define u16_totitle as a wrapper around u16_ct_totitle.
32234         * lib/unicase/u16-totitle.c: Update.
32235         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
32236         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32237
32238         Define u8_totitle as a wrapper around u8_ct_totitle.
32239         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
32240         functions.
32241         (FUNC): Delegate to U_CT_TOTITLE.
32242         * lib/unicase/u8-totitle.c: Update.
32243         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
32244         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32245
32246         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
32247         invocation.
32248         * modules/unicase/u32-tolower (Depends-on): Add
32249         unicase/empty-prefix-context, unicase/empty-suffix-context.
32250
32251         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
32252         invocation.
32253         * modules/unicase/u16-tolower (Depends-on): Add
32254         unicase/empty-prefix-context, unicase/empty-suffix-context.
32255
32256         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32257         * modules/unicase/u8-tolower (Depends-on): Add
32258         unicase/empty-prefix-context, unicase/empty-suffix-context.
32259
32260         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32261         invocation.
32262         * modules/unicase/u32-toupper (Depends-on): Add
32263         unicase/empty-prefix-context, unicase/empty-suffix-context.
32264
32265         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32266         invocation.
32267         * modules/unicase/u16-toupper (Depends-on): Add
32268         unicase/empty-prefix-context, unicase/empty-suffix-context.
32269
32270         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32271         * modules/unicase/u8-toupper (Depends-on): Add
32272         unicase/empty-prefix-context, unicase/empty-suffix-context.
32273
32274         New module 'unicase/u32-ct-casefold'.
32275         * lib/unicase/u32-ct-casefold.c: New file.
32276         * modules/unicase/u32-ct-casefold: New file.
32277
32278         New module 'unicase/u16-ct-casefold'.
32279         * lib/unicase/u16-ct-casefold.c: New file.
32280         * modules/unicase/u16-ct-casefold: New file.
32281
32282         New module 'unicase/u8-ct-casefold'.
32283         * lib/unicase/u8-ct-casefold.c: New file.
32284         * lib/unicase/u-ct-casefold.h: New file, derived from
32285         lib/unicase/u-casefold.h.
32286         * modules/unicase/u8-ct-casefold: New file.
32287
32288         New module 'unicase/u32-ct-totitle'.
32289         * lib/unicase/u32-ct-totitle.c: New file.
32290         * modules/unicase/u32-ct-totitle: New file.
32291
32292         New module 'unicase/u16-ct-totitle'.
32293         * lib/unicase/u16-ct-totitle.c: New file.
32294         * modules/unicase/u16-ct-totitle: New file.
32295
32296         New module 'unicase/u8-ct-totitle'.
32297         * lib/unicase/u8-ct-totitle.c: New file.
32298         * lib/unicase/u-ct-totitle.h: New file, derived from
32299         lib/unicase/u-totitle.h.
32300         * modules/unicase/u8-ct-totitle: New file.
32301
32302         New module 'unicase/u32-ct-tolower'.
32303         * lib/unicase/u32-ct-tolower.c: New file.
32304         * modules/unicase/u32-ct-tolower: New file.
32305
32306         New module 'unicase/u16-ct-tolower'.
32307         * lib/unicase/u16-ct-tolower.c: New file.
32308         * modules/unicase/u16-ct-tolower: New file.
32309
32310         New module 'unicase/u8-ct-tolower'.
32311         * lib/unicase/u8-ct-tolower.c: New file.
32312         * modules/unicase/u8-ct-tolower: New file.
32313
32314         New module 'unicase/u32-ct-toupper'.
32315         * lib/unicase/u32-ct-toupper.c: New file.
32316         * modules/unicase/u32-ct-toupper: New file.
32317
32318         New module 'unicase/u16-ct-toupper'.
32319         * lib/unicase/u16-ct-toupper.c: New file.
32320         * modules/unicase/u16-ct-toupper: New file.
32321
32322         New module 'unicase/u8-ct-toupper'.
32323         * lib/unicase/u8-ct-toupper.c: New file.
32324         * modules/unicase/u8-ct-toupper: New file.
32325
32326         Add context arguments to u*_casemap functions.
32327         * lib/unicase/unicasemap.h: Include unicase.h.
32328         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32329         suffix_context arguments.
32330         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32331         functions.
32332         (FUNC): Add prefix_context and suffix_context arguments. Use
32333         uc_is_cased and uc_is_case_ignorable.
32334         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32335         * lib/unicase/u16-casemap.c: Likewise.
32336         * lib/unicase/u32-casemap.c: Likewise.
32337         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32338         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32339         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32340         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32341         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32342         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32343
32344         New module 'unicase/u32-suffix-context'.
32345         * lib/unicase/u32-suffix-context.c: New file.
32346         * modules/unicase/u32-suffix-context: New file.
32347
32348         New module 'unicase/u16-suffix-context'.
32349         * lib/unicase/u16-suffix-context.c: New file.
32350         * modules/unicase/u16-suffix-context: New file.
32351
32352         New module 'unicase/u8-suffix-context'.
32353         * lib/unicase/u8-suffix-context.c: New file.
32354         * lib/unicase/u-suffix-context.h: New file.
32355         * modules/unicase/u8-suffix-context: New file.
32356
32357         New module 'unicase/empty-suffix-context'.
32358         * lib/unicase/empty-suffix-context.c: New file.
32359         * modules/unicase/empty-suffix-context: New file.
32360
32361         New module 'unicase/u32-prefix-context'.
32362         * lib/unicase/u32-prefix-context.c: New file.
32363         * modules/unicase/u32-prefix-context: New file.
32364
32365         New module 'unicase/u16-prefix-context'.
32366         * lib/unicase/u16-prefix-context.c: New file.
32367         * modules/unicase/u16-prefix-context: New file.
32368
32369         New module 'unicase/u8-prefix-context'.
32370         * lib/unicase/u8-prefix-context.c: New file.
32371         * lib/unicase/u-prefix-context.h: New file.
32372         * lib/unicase/context.h: New file.
32373         * modules/unicase/u8-prefix-context: New file.
32374
32375         New module 'unicase/empty-prefix-context'.
32376         * lib/unicase/empty-prefix-context.c: New file.
32377         * modules/unicase/empty-prefix-context: New file.
32378
32379         New module 'unicase/ignorable'.
32380         * lib/unicase/ignorable.c: New file.
32381         * modules/unicase/ignorable: New file.
32382
32383         New module 'unicase/cased'.
32384         * lib/unicase/caseprop.h: New file.
32385         * lib/unicase/cased.c: New file.
32386         * modules/unicase/cased: New file.
32387
32388         New functions for case mapping of substrings.
32389         * lib/unicase.h (casing_prefix_context_t): New type.
32390         (unicase_empty_prefix_context): New variable.
32391         (u8_casing_prefix_context, u16_casing_prefix_context,
32392         u32_casing_prefix_context, u8_casing_prefixes_context,
32393         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32394         declarations.
32395         (casing_suffix_context_t): New type.
32396         (unicase_empty_suffix_context): New variable.
32397         (u8_casing_suffix_context, u16_casing_suffix_context,
32398         u32_casing_suffix_context, u8_casing_suffixes_context,
32399         u16_casing_suffixes_context, u32_casing_suffixes_context,
32400         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32401         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32402         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32403         declarations.
32404
32405 2009-06-28  Jim Meyering  <meyering@redhat.com>
32406
32407         boostrap: indent only with spaces
32408         * build-aux/bootstrap: Indent only with spaces, never TABs.
32409
32410         bootstrap: split long lines
32411         * build-aux/bootstrap: Keep line length < 80.
32412
32413         bootstrap: sync from coreutils
32414         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32415         just as autoreconf does.  Verify a list of prerequisite
32416         package-name,version-number pairs if defined in bootstrap.conf.
32417         Refer to README-prereq, if prerequisites are not satisfied.
32418
32419 2009-06-27  Eric Blake  <ebb9@byu.net>
32420
32421         tests: add test for bogus NULL definition
32422         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32423         * tests/test-stdlib.c: Likewise.
32424         * tests/test-string.c: Likewise.
32425         * tests/test-locale.c: Likewise.
32426         * tests/test-unistd.c: Likewise.
32427         * modules/stdio-tests (Depends-on): Add verify.
32428         * modules/stdlib-tests (Depends-on): Likewise.
32429         * modules/string-tests (Depends-on): Likewise.
32430         * modules/locale-tests (Depends-on): Likewise.
32431         * modules/unistd-tests (Depends-on): Likewise.
32432
32433 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32434
32435         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32436         self-explaining comment.
32437         * m4/selinux-selinux-h: Update serial.
32438         (gl_LIBSELINUX): New macro, adding a warning for missing development
32439         packages to code extracted from...
32440         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32441         Add warning for missing development packages here, too.
32442
32443 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32444
32445         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32446
32447 2009-06-25  Eric Blake  <ebb9@byu.net>
32448
32449         version-etc: fix regression
32450         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32451         gcc.
32452         (version_etc): Use it, to catch bugs with trailing NULL.
32453         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32454         (version_etc_va): Fix logic bug.
32455         * modules/version-etc-tests: Add test.
32456         * tests/test-version-etc.c: New file.
32457         * tests/test-version-etc.sh: Likewise.
32458
32459 2009-06-25  Sam Steingold  <sds@gnu.org>
32460
32461         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32462         mbtowc declaration.
32463
32464 2009-06-25  Eric Blake  <ebb9@byu.net>
32465
32466         fpurge: migrate into <stdio.h>
32467         * lib/fpurge.h: Delete...
32468         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32469         * lib/fpurge.c (fpurge): Change declaring header.
32470         * modules/fpurge (Files): Drop deleted file.
32471         (Depends-on): Add stdio.
32472         (configure.ac): Set witness.
32473         * modules/stdio (Makefile.am): Support fpurge macros.
32474         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32475         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
32476         * lib/fflush.c: Update client.
32477         * tests/test-fpurge.c: Likewise.
32478         * NEWS: Mention the change.
32479
32480 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32481
32482         * lib/argp-version-etc.c (program_authors): Add const
32483         qualifier.
32484         * lib/version-etc.c: Fix typos in the comments.
32485         * modules/argp-version-etc: Depends on version-etc.
32486
32487 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32488
32489         argp-version-etc: new module.
32490
32491         * lib/argp-version-etc.c: New file.
32492         * lib/argp-version-etc.h: New file.
32493         * modules/argp-version-etc: New file.
32494         * modules/argp-version-etc-tests: New file.
32495         * tests/test-argp-version-etc.c: New test.
32496         * tests/test-argp-version-etc-1.sh: New test.
32497
32498 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32499
32500         Provide additional interfaces and documentation for version-etc
32501         module.
32502
32503         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
32504         interfaces.
32505         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
32506         prototypes.
32507
32508 2009-06-24  Bruno Haible  <bruno@clisp.org>
32509
32510         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
32511         HAVE_LIB${NAME} macro.
32512         Reported by Sam Steingold <sds@gnu.org>.
32513
32514 2009-06-23  Simon Josefsson  <simon@josefsson.org>
32515
32516         * modules/hash-tests (test_hash_LDADD): Link to libintl when
32517         needed.
32518
32519 2009-06-21  Bruno Haible  <bruno@clisp.org>
32520
32521         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
32522         work.
32523         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
32524         together with LIB${NAME}, LTLIB${NAME}.
32525         Reported by Sam Steingold <sds@gnu.org>.
32526
32527 2009-06-20  Jim Meyering  <meyering@redhat.com>
32528
32529         tests: make sc_require_test_exit_idiom more generic
32530         * top/maint.mk (Exit_witness_file): New overridable variable.
32531         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
32532         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
32533
32534 2009-06-19  Jim Meyering  <meyering@redhat.com>
32535
32536         hash: reverse order of src/dst parameters in an internal interface
32537         * lib/hash.c (transfer_entries): Reverse order of parameters to
32538         put DST before SRC.  Adjust callers.
32539
32540         tests: test-hash: avoid wholesale duplication
32541         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
32542         Instead, use a loop and add a single conditional.
32543
32544         tests: test-hash: allow seed selection via a command line argument
32545         * tests/test-hash.c (get_seed): New function.
32546         (main): Use it.
32547
32548 2009-06-19  Eric Blake  <ebb9@byu.net>
32549
32550         hash: avoid memory leak on allocation failure
32551         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
32552         failure.  Factor repeated algorithm...
32553         (transfer_entries): ...into new helper routine.
32554         (hash_delete): React to hash_rehash return value.
32555
32556         hash: reduce memory pressure in hash_rehash no-op case
32557         * lib/hash.c (next_prime): Avoid overflow.
32558         (hash_initialize): Factor bucket size computation...
32559         (compute_bucket_size): ...into new helper function.
32560         (hash_rehash): Use new function and open coding to reduce memory
32561         pressure, and avoid a memory leak in USE_OBSTACK code.
32562         Reported by Jim Meyering.
32563
32564 2009-06-18  Eric Blake  <ebb9@byu.net>
32565
32566         hash: make rotation more obvious
32567         * modules/hash (Depends-on): Add bitrotate and stdint.
32568         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32569         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32570         (SIZE_MAX): Rely on headers for definition.
32571         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32572         (raw_hasher): Use rotr_sz.
32573         Suggested by Jim Meyering.
32574
32575         hash: fix memory leak in last patch
32576         * lib/hash.c (hash_rehash): Avoid memory leak.
32577
32578         hash: avoid no-op rehashing
32579         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32580
32581         hash: provide default callback functions
32582         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32583         (hash_initialize): Use them as defaults.
32584         * tests/test-hash.c (main): Test this.
32585
32586         hash: minor optimization
32587         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32588         when possible.
32589         (hash_initialize): Document this promise.
32590         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32591         * tests/test-hash.c (hash_compare_strings): Test this.
32592
32593 2009-06-18  Bruno Haible  <bruno@clisp.org>
32594
32595         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32596         going to be replaced anyway.
32597
32598 2009-06-18  Bruno Haible  <bruno@clisp.org>
32599
32600         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32601         in one place.
32602         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32603         be replaced anyway.
32604
32605 2009-06-18  Eric Blake  <ebb9@byu.net>
32606
32607         hash: check for resize before insertion
32608         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32609         threshold before insertion, so that a pathological hash_rehash
32610         that fills every bucket can still trigger another rehash.
32611
32612 2009-06-18  Jim Meyering  <meyering@redhat.com>
32613
32614         hash-tests: add a loop around the small tests
32615         * tests/test-hash.c (main): Repeat small tests with selected
32616         small initial table sizes.
32617
32618 2009-06-17  Eric Blake  <ebb9@byu.net>
32619
32620         hash: minor cleanups
32621         * lib/hash.h (hash_entry): Make opaque, by moving...
32622         * lib/hash.c (hash_entry): ...here.
32623         (hash_insert): Clarify restrictions on what can be inserted.
32624         (hash_get_next): Clarify when it is safe to remove an element
32625         during traversal.
32626         (check_tuning): Skip verification when tuning is known safe.
32627         (hash_initialize): Clarify restrictions on tuning.
32628
32629 2009-06-17  Jim Meyering  <jim@meyering.net>
32630         and Eric Blake  <ebb9@byu.net>
32631
32632         hash-tests: new module
32633         * modules/hash-tests: New file.
32634         * tests/test-hash.c: New file.
32635
32636 2009-06-17  Eric Blake  <ebb9@byu.net>
32637
32638         strstr-simple: document new module
32639         * MODULES.html.sh: Document new module.
32640
32641         strstr, strcasestr: replace on platforms with broken memchr
32642         * modules/strstr: Split into...
32643         * modules/strstr-simple: ...new module that does not care about
32644         performance, but does care about glibc bug.
32645         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
32646         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
32647         if platform memchr is broken, per Debian bug 521737.
32648         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
32649         memchr.
32650         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
32651         * doc/posix-functions/strstr.texi (strstr): Document the fix.
32652         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32653         * modules/mountlist (Depends-on): Add strstr-simple.
32654         * modules/gen-uni-tables (Depends-on): Likewise.
32655         * modules/argz (Depends-on): Add strstr.
32656
32657 2009-06-17  Bruno Haible  <bruno@clisp.org>
32658
32659         * modules/posix_spawn-internal (Depends-on): Add errno.
32660
32661 2009-06-17  Bruno Haible  <bruno@clisp.org>
32662
32663         Define missing ESTALE on Interix 3.5.
32664         * lib/errno.in.h (ESTALE): Assign a value if missing.
32665         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
32666         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
32667         missing.
32668         * doc/posix-headers/errno.texi: Mention the Interix bug.
32669         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
32670
32671 2009-06-15  Eric Blake  <ebb9@byu.net>
32672
32673         memchr, memchr2: add valgrind exception
32674         * lib/memchr.valgrind: New file.
32675         * lib/memchr2.valgrind: New file.
32676         * modules/memchr (Files): Distribute valgrind file.
32677         * modules/memchr2 (Files): Likewise.
32678
32679         docs: memchr is no longer obsolete
32680         * MODULES.html.sh: Move memchr from obsolete to string.h section.
32681         * lib/string.in.h (memchr): Simplify logic.
32682
32683 2009-06-14  Jim Meyering  <meyering@redhat.com>
32684
32685         link-follow: fix the "checking..." message to not mention trailing slash
32686         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
32687         never considered trailing slashes.
32688
32689 2009-06-14  Bruno Haible  <bruno@clisp.org>
32690
32691         * m4/memchr.m4: Mention also the bug on IA-64.
32692         * doc/posix-functions/memchr.texi: Likewise.
32693
32694 2009-06-12  Eric Blake  <ebb9@byu.net>
32695
32696         memchr: detect broken x86_64 and alpha implementations
32697         * modules/memchr-tests (Depends-on): Move mmap detection...
32698         * modules/memchr (Depends-on): ...here.
32699         (configure.ac): Set indicator.
32700         * lib/string.in.h (memchr): Declare replacement.
32701         * modules/string (Makefile.am): Trigger replacement.
32702         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32703         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
32704         bugs.
32705         * doc/posix-functions/memchr.texi (memchr): Document the bug.
32706         * modules/getpagesize (License): Relax license.
32707
32708 2009-06-11  Bruno Haible  <bruno@clisp.org>
32709
32710         * lib/idpriv.h: Add more references.
32711
32712 2009-06-08  Bruno Haible  <bruno@clisp.org>
32713
32714         Tests for module 'idpriv-droptemp'.
32715         * modules/idpriv-droptemp-tests: New file.
32716         * tests/test-idpriv-droptemp.sh: New file.
32717         * tests/test-idpriv-droptemp.su.sh: New file.
32718         * tests/test-idpriv-droptemp.c: New file.
32719
32720         New module 'idpriv-droptemp'.
32721         * lib/idpriv-droptemp.c: New file.
32722         * modules/idpriv-droptemp: New file.
32723
32724 2009-06-08  Bruno Haible  <bruno@clisp.org>
32725
32726         Tests for module 'idpriv-drop'.
32727         * modules/idpriv-drop-tests: New file.
32728         * tests/test-idpriv-drop.sh: New file.
32729         * tests/test-idpriv-drop.su.sh: New file.
32730         * tests/test-idpriv-drop.c: New file.
32731
32732         New module 'idpriv-drop'.
32733         * lib/idpriv.h: New file.
32734         * lib-idpriv-drop.c: New file.
32735         * m4/idpriv.m4: New file.
32736         * modules/idpriv-drop: New file.
32737
32738 2009-06-08  Bruno Haible  <bruno@clisp.org>
32739
32740         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
32741         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32742         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32743         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32744         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32745         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32746         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32747
32748 2009-06-08  Eric Blake  <ebb9@byu.net>
32749
32750         test-strstr: use memory fence, when possible
32751         * tests/test-strstr.c (main): Use memory fence, in order to be
32752         more likely to trigger Debian bug 521737.
32753         * modules/strstr-tests (Files): Pull in additional files.
32754
32755         memchr: no longer obsolete, for wider field testing
32756         * modules/memchr (Status, Notice): Delete, this module is no
32757         longer obsolete.
32758         * modules/vasnprintf (Depends-on): Add memchr.
32759
32760 2009-06-07  Jim Meyering  <meyering@redhat.com>
32761
32762         hash: declare some functions with the warn_unused_result attribute
32763         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
32764
32765 2009-06-07  Bruno Haible  <bruno@clisp.org>
32766
32767         * tests/test-alignof.c: Don't test int64_t if it does not exist.
32768         Reported by Eric Blake.
32769
32770 2009-06-06  Eric Blake  <ebb9@byu.net>
32771
32772         test-alignof: fix typo with long double
32773         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
32774         compiler error.
32775
32776 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
32777
32778         Escape non-texinfo { and }s.
32779         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
32780         markup error.
32781
32782 2009-06-04  Jim Meyering  <meyering@redhat.com>
32783
32784         gitlog-to-changelog: don't infloop on an empty commit log
32785         * build-aux/gitlog-to-changelog: Warn about an empty log message.
32786         Reported by Boris Petersen <transacid@centerim.org>.
32787
32788 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
32789
32790         version-etc: extend for packagers
32791         Add three new configure options, intended for packagers:
32792           --with-packager="packager name"
32793           --with-packager-version="packager-specific version"
32794           --with-packager-bug-reports="packager bug reporting"
32795         An example with coreutils:
32796           $ ./configure \
32797             --with-packager=Gentoo \
32798             --with-packager-bug-report=http://bugs.gentoo.org/ \
32799             --with-packager-version="patchset 1.6"
32800           $ ./src/ls --version | head -n2
32801           ls (GNU coreutils) 7.1-dirty
32802           Packaged by Gentoo (patchset 1.6)
32803         Note that the bug reporting info via --help doesn't show up because
32804         coreutils uses its own custom emit_bug_reporting_address() implementation
32805         in src/system.h.  If it didn't, it'd look like:
32806           $ ./src/ls --help | tail -n4
32807           Report bugs to <bug-coreutils@gnu.org>.
32808           Report Gentoo bugs to <http://bugs.gentoo.org/>.
32809           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
32810           General help using GNU software: <http://www.gnu.org/gethelp/>.
32811         * lib/version-etc.c: Print new information, if provided.
32812         * m4/version-etc.m4: New file.
32813         * modules/version-etc (Files): Add m4/version-etc.m4.
32814         (configure.ac): Add gl_VERSION_ETC.
32815
32816 2009-05-31  Bruno Haible  <bruno@clisp.org>
32817
32818         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
32819         and 'int64_t'.
32820         * modules/alignof-tests (Dependencies): Add stdint.
32821         Reported by Eric Blake.
32822
32823 2009-05-31  Bruno Haible  <bruno@clisp.org>
32824
32825         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
32826         restriction due to compiler bugs.
32827         Reported by Eric Blake.
32828
32829 2009-05-31  Simon Josefsson  <simon@josefsson.org>
32830             Bruno Haible  <bruno@clisp.org>
32831
32832         Fix test-alignof failure.
32833         * lib/alignof.h (alignof_slot): New macro.
32834         (alignof_type): New macro, with the same semantics as the previous
32835         'alignof'.
32836         (alignof): Alias to alignof_slot.
32837         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
32838         check that the results are usable as constant expressions.
32839
32840 2009-05-31  Bruno Haible  <bruno@clisp.org>
32841
32842         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
32843         * tests/test-memchr.c (main): Check that memchr does not read past the
32844         first occurrence of the byte.
32845         * tests/test-strstr.c (main): Update comment.
32846         Suggested by Eric Blake.
32847
32848 2009-05-30  Bruno Haible  <bruno@clisp.org>
32849
32850         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
32851         detail how to use dumpbin.
32852         Reported by David Byron <dbyron@dbyron.com>.
32853
32854 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32855
32856         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
32857
32858 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32859
32860         * m4/manywarnings.m4: Add GCC 4.4 warnings.
32861
32862 2009-05-28  Bruno Haible  <bruno@clisp.org>
32863
32864         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
32865         build-aux/ files.
32866
32867 2009-05-28  Simon Josefsson  <simon@josefsson.org>
32868
32869         * gnulib-tool (func_import): Transform license on build-aux/ files too.
32870
32871 2009-05-27  Simon Josefsson  <simon@josefsson.org>
32872
32873         * gnulib-tool (sed_transform_main_lib_file)
32874         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
32875         regexps.
32876
32877 2009-05-26  Simon Josefsson  <simon@josefsson.org>
32878
32879         * tests/test-strstr.c: Add another self-test.
32880         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
32881         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
32882
32883 2009-05-23  Bruno Haible  <bruno@clisp.org>
32884
32885         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
32886         change.
32887
32888 2009-05-21  Bruno Haible  <bruno@clisp.org>
32889
32890         Simplify use of mode_t varargs.
32891         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
32892         uses 'mode_t' or 'int'.
32893         * lib/openat.c (openat): Likewise.
32894         * lib/open-safer.c (open_safer): Likewise.
32895         * m4/mode_t.m4: New file.
32896         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
32897         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
32898         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
32899         * modules/open (Files): Add m4/mode_t.m4.
32900         * modules/openat (Files): Likewise.
32901         * modules/fcntl-safer (Files): Likewise.
32902         Suggested by Eric Blake.
32903
32904 2009-05-21  Pádraig Brady  <P@draigbrady.com>
32905
32906         * doc/glibc-functions/fallocate.texi: New file.
32907         * doc/gnulib.texi: Include it.
32908
32909 2009-05-21  Eric Blake  <ebb9@byu.net>
32910             Bruno Haible  <bruno@clisp.org>
32911
32912         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
32913         invocations.
32914         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32915
32916 2009-05-21  Eric Blake  <ebb9@byu.net>
32917             Bruno Haible  <bruno@clisp.org>
32918
32919         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
32920         include_next. Fix of 2008-11-20 commit.
32921         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
32922         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
32923         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
32924         NEXT_MATH_H.
32925         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
32926         instead of NEXT_MATH_H.
32927
32928 2009-05-21  Bruno Haible  <bruno@clisp.org>
32929
32930         Avoid redefinition warnings for SIZE_MAX.
32931         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
32932         Reported by Simon Josefsson.
32933
32934 2009-05-21  Bruno Haible  <bruno@clisp.org>
32935
32936         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
32937         AC_CACHE_VAL.
32938
32939 2009-05-20  Bruno Haible  <bruno@clisp.org>
32940
32941         Make zeroptr.h work on mingw.
32942         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
32943         mprotect.
32944         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
32945         * modules/memchr2-tests (configure.ac): Likewise.
32946         * modules/memcmp-tests (configure.ac): Likewise.
32947         * modules/memmem-tests (configure.ac): Likewise.
32948         * modules/memrchr-tests (configure.ac): Likewise.
32949         Reported by Simon Josefsson.
32950
32951 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32952
32953         * tests/test-glob.c: Include string.h for strcmp prototype.
32954
32955 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32956
32957         * modules/getdelim (Depends-on): Add explicit stdint, although it
32958         was implicitly already pulled in via realloc-posix.
32959         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
32960
32961 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32962
32963         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
32964         G. Christensen" <tgc@jupiterrise.com>.
32965         * m4/sys_socket_h.m4: Check for sa_family_t.
32966         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
32967         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
32968         * tests/test-sys_socket.c: Check that sa_family_t works.
32969
32970 2009-05-18  Eric Blake  <ebb9@byu.net>
32971
32972         maint.mk: allow gnulib_dir in VPATH build
32973         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
32974
32975 2009-05-15  Jim Meyering  <meyering@redhat.com>
32976
32977         maint.mk: Give gnulib_dir a default definition.
32978         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
32979         Thus, most packages no longer need to specify this variable in cfg.mk
32980
32981 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
32982
32983         rename.m4: fix typos that would make non-mingw cross-configure fail
32984         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
32985
32986 2009-05-13  Eric Blake  <ebb9@byu.net>
32987
32988         mmap-anon: avoid out-of-order autoconf expansion
32989         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
32990         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
32991         * modules/memchr-tests (Depends-on): Add extensions.
32992         * modules/memchr2-tests (Depends-on): Add extensions.
32993         * modules/memcmp-tests (Depends-on): Add extensions.
32994         * modules/memmem-tests (Depends-on): Add extensions.
32995         * modules/memrchr-tests (Depends-on): Add extensions.
32996
32997 2009-05-13  Bruno Haible  <bruno@clisp.org>
32998
32999         Make some tests ISO C 99 compliant.
33000         * tests/zerosize-ptr.h: New file.
33001         * tests/test-memchr.c: Include zerosize-ptr.h.
33002         (main): Use a zero-size object pointer instead of NULL.
33003         * tests/test-memchr2.c: Include zerosize-ptr.h.
33004         (main): Use a zero-size object pointer instead of NULL.
33005         * tests/test-memcmp.c: Include zerosize-ptr.h.
33006         (main): Use a zero-size object pointer instead of NULL.
33007         * tests/test-memmem.c: Include zerosize-ptr.h.
33008         (main): Use a zero-size object pointer instead of NULL.
33009         * tests/test-memrchr.c: Include zerosize-ptr.h.
33010         (main): Use a zero-size object pointer instead of NULL.
33011         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
33012         m4/mmap-anon.m4.
33013         (Depends-on): Add getpagesize.
33014         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33015         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
33016         m4/mmap-anon.m4.
33017         (Depends-on): Add getpagesize.
33018         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33019         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
33020         m4/mmap-anon.m4.
33021         (Depends-on): Add getpagesize.
33022         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33023         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
33024         m4/mmap-anon.m4.
33025         (Depends-on): Add getpagesize.
33026         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33027         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
33028         m4/mmap-anon.m4.
33029         (Depends-on): Add getpagesize.
33030         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33031
33032 2009-05-12  Bruno Haible  <bruno@clisp.org>
33033
33034         Tests for module 'alignof'.
33035         * modules/alignof-tests: New file.
33036         * tests/test-alignof.c: New file.
33037
33038 2009-05-12  Bruno Haible  <bruno@clisp.org>
33039
33040         Fix alignof macro.
33041         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
33042         vendor compilers that are always correct.
33043
33044 2009-05-12  Bruno Haible  <bruno@clisp.org>
33045
33046         Make the MAP_ANONYMOUS detection work on HP-UX 11.
33047         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
33048         not whether its fully works.
33049
33050 2009-05-12  Bruno Haible  <bruno@clisp.org>
33051
33052         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
33053
33054 2009-05-12  Jim Meyering  <meyering@redhat.com>
33055
33056         * top/maint.mk: Adjust backslash alignment.
33057
33058 2009-05-11  Simon Josefsson  <simon@josefsson.org>
33059
33060         * top/maint.mk: Make $(srcdir)/build-aux configurable.
33061
33062 2009-05-11  Eric Blake  <ebb9@byu.net>
33063
33064         argp: avoid undefined behavior
33065         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
33066         macros.
33067
33068 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33069
33070         * tests/test-vc-list-files-git.sh: Do git config of user.email and
33071         user.name to prevent git commit from complaining.
33072
33073 2009-05-10  Bruno Haible  <bruno@clisp.org>
33074
33075         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
33076         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
33077         it rewrites every file name only once.
33078         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
33079
33080 2009-05-08  Bruno Haible  <bruno@clisp.org>
33081
33082         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
33083         instead of 'max'.
33084
33085 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33086
33087         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
33088         sockaddr_storage test.
33089
33090 2009-05-07  Simon Josefsson  <simon@josefsson.org>
33091
33092         * modules/sys_socket (Makefile.am): Substitute
33093         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
33094         * m4/sys_socket_h.m4: Check for sockaddr_storage.
33095         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
33096         * tests/test-sys_socket.c: Check sockaddr_storage.
33097
33098 2009-05-08  Bruno Haible  <bruno@clisp.org>
33099
33100         New module 'alignof'.
33101         * lib/alignof.h: New file.
33102         * modules/alignof: New file.
33103
33104 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33105             Bruno Haible  <bruno@clisp.org>
33106
33107         Fix test-file-has-acl on FreeBSD.
33108         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
33109         mask is implicitly added.
33110         * tests/test-file-has-acl.c: Include <signal.h>.
33111         (main): Terminate the test after 5 seconds.
33112         * modules/acl-tests (configure.ac): Check for alarm function.
33113
33114 2009-05-04  Bruno Haible  <bruno@clisp.org>
33115
33116         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
33117         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
33118         * modules/errno (configure.ac): Drop AC_REQUIRE.
33119         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
33120         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
33121
33122 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33123
33124         * modules/glob-tests: New module.
33125         * tests/test-glob.c: Add.
33126
33127 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33128
33129         * modules/fnmatch-tests: New module.
33130         * tests/test-fnmatch.c: Add.
33131
33132 2009-05-04  Eric Blake  <ebb9@byu.net>
33133
33134         maint: make the new no-submodule-changes rule VPATH-safe
33135         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
33136
33137 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33138             Bruno Haible  <bruno@clisp.org>
33139
33140         acl: Fix infinite loop on FreeBSD.
33141         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
33142         of return value from acl_get_entry.
33143         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
33144         Likewise.
33145
33146 2009-05-03  Bruno Haible  <bruno@clisp.org>
33147
33148         * lib/acl-internal.h (acl_entries): Clarify return value.
33149         * lib/acl_entries.c (acl_entries): Likewise.
33150
33151 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33152
33153         Bug fix in acl module.
33154         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
33155
33156 2009-05-03  Bruno Haible  <bruno@clisp.org>
33157
33158         Create gperf-generated file in the source dir, not in the build dir.
33159         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
33160         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
33161         * modules/unicase/locale-language (unicase/locale-languages.h):
33162         Likewise.
33163         * modules/unicase/special-casing (unicase/special-casing-table.h):
33164         Likewise.
33165         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
33166         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
33167         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
33168         Reported by Ralf Wildenhues.
33169
33170 2009-05-03  Bruno Haible  <bruno@clisp.org>
33171
33172         * modules/fnmatch (Description, configure.ac): Taken from
33173         fnmatch-posix.
33174         * modules/fnmatch-posix: Turn into a symbolic reference to the
33175         'fnmatch' module, and deprecate.
33176         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
33177
33178 2009-05-03  Bruno Haible  <bruno@clisp.org>
33179
33180         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
33181         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
33182         Reported by Ralf Wildenhues.
33183
33184 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33185
33186         * m4/fnmatch.m4: Fix fnmatch re-define.
33187
33188 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33189
33190         priv-set: new module and tests; adapt write-any-file
33191         * lib/priv-set.c: New file.
33192         * lib/priv-set.h: New file.
33193         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
33194         * lib/write-any-file.c: Simplify by using priv-set module.
33195         * m4/priv-set.m4: New file.
33196         * modules/priv-set: New file.
33197         * modules/unlinkdir: Add dependency on priv-set module.
33198         * modules/write-any-file: Likewise.
33199
33200         Tests for module 'priv-set'.
33201         * modules/priv-set-tests: New file.
33202         * tests/test-priv-set.c: New file.
33203
33204 2009-05-03  Jim Meyering  <meyering@redhat.com>
33205             Bruno Haible  <bruno@clisp.org>
33206
33207         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
33208         use the converted UTF-8 variant of the name instead.
33209
33210 2009-05-03  Jim Meyering  <meyering@redhat.com>
33211
33212         tests: tighten some getdate tests
33213         * tests/test-getdate.c (main): Tighten tests: require equality,
33214         not just greater than.  Set TZ envvar to UTC0.
33215
33216 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33217
33218         getdate: correctly interpret "next monday" when run on a Monday
33219         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
33220         that e.g., "next tues" (when run on a tuesday) results in a date
33221         that is one week in the future, and not today's date.
33222         I.e., add a week when the wday is the same as the current one.
33223         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
33224         and earlier by Martin Bernreuther and Jan Minář.
33225         * tests/test-getdate.c (main): Check that "next DAY" is always in
33226         the future and that "last DAY" is always in the past.
33227
33228 2009-05-02  Jim Meyering  <meyering@redhat.com>
33229
33230         build: ensure that a release build fails when a submodule is unclean
33231         * top/maint.mk (no-submodule-changes): New rule.
33232         (alpha beta major): Depend on it.
33233
33234 2009-05-02  Bruno Haible  <bruno@clisp.org>
33235
33236         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
33237         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
33238         shell variable gl_fnmatch_required to detect which variant is
33239         requested.
33240         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
33241         gl_FUNC_FNMATCH_POSIX.
33242         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
33243         exclude fnmatch-posix.
33244
33245 2009-05-02  Bruno Haible  <bruno@clisp.org>
33246
33247         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
33248         * modules/mbsrtowcs (License): Change to LGPLv2+.
33249         * modules/strnlen1 (License): Likewise.
33250         Reported by Simon Josefsson.
33251
33252 2009-05-02  Bruno Haible  <bruno@clisp.org>
33253
33254         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33255         "cross".
33256         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33257         gnulib-tool was called with option --source-base=lib.
33258
33259 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33260
33261         Use automake *-local hooks without commands, for extensibility.
33262         * modules/localcharset (Makefile.am): Rename install-exec-local
33263         rule to install-exec-localcharset, and make it a prerequisite of
33264         install-exec-local.  Likewise, rename the uninstall-local rule to
33265         uninstall-localcharset, and make it a prerequisite of the former.
33266
33267 2009-05-01  Bruno Haible  <bruno@clisp.org>
33268
33269         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33270         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33271         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33272         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33273         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33274         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33275         m4/locale-zh.m4, m4/codeset.m4.
33276
33277         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33278         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33279         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33280         m4/locale-zh.m4.
33281
33282         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33283         REPLACE_WCRTOMB if mbstate_t must be replaced.
33284         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33285         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33286
33287 2009-05-01  Bruno Haible  <bruno@clisp.org>
33288
33289         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33290         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33291         dngettext, dcngettext, textdomain, bindtextdomain,
33292         bind_textdomain_codeset): Undefine before redefining.
33293
33294 2009-04-30  Bruno Haible  <bruno@clisp.org>
33295
33296         Fix bug introduced on 2009-04-25.
33297         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33298         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33299         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33300         is defined.
33301         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33302         is defined.
33303         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33304         is defined.
33305         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33306
33307 2009-04-28  Bruno Haible  <bruno@clisp.org>
33308
33309         Comment tweaks.
33310         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33311         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33312         * lib/unicase.h (u*_casexfrm): Likewise.
33313         Reported by Paolo Bonzini.
33314
33315 2009-04-28  Bruno Haible  <bruno@clisp.org>
33316
33317         Fix a compilation error.
33318         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33319         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33320         Reported by Jim Meyering.
33321
33322 2009-04-27  Bruno Haible  <bruno@clisp.org>
33323
33324         New module 'libunistring'.
33325         * modules/libunistring: New file.
33326         * m4/libunistring.m4: New file.
33327         * MODULES.html.sh (Unicode string functions): Add it.
33328
33329 2009-04-27  Eric Blake  <ebb9@byu.net>
33330
33331         maint.mk: allow package-specific header to provide <config.h>
33332         * top/maint.mk (sc_require_config_h): New variable.
33333         (sc_require_config_h, sc_require_config_h_first): Use it.
33334
33335 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33336
33337         * top/maint.mk (sc_avoid_if_before_free): Except
33338         useless-if-before-free script.
33339
33340 2009-04-27  Eric Blake  <ebb9@byu.net>
33341
33342         maintainer-makefile: depend on all required helper scripts
33343         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33344         useless-if-before-free.
33345         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33346         version, rather than assuming gnulib checkout is available.
33347         Reported by Simen Josefsson.
33348
33349 2009-04-26  Bruno Haible  <bruno@clisp.org>
33350
33351         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33352         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33353         "../" or "..".
33354
33355 2009-04-26  Bruno Haible  <bruno@clisp.org>
33356
33357         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33358         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33359         AC_LIB_HAVE_LINKFLAGS.
33360
33361 2009-04-26  Bruno Haible  <bruno@clisp.org>
33362
33363         Simplify calling convention of u*_conv_from_encoding.
33364         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33365         u32_conv_from_encoding): Expect a resultbuf argument and return the
33366         result directly as a pointer.
33367         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33368         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33369         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33370         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33371         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33372         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33373         Update.
33374         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33375         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33376         * lib/vasnprintf.c (VASNPRINTF): Update.
33377         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33378         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33379         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33380         * NEWS: Mention the change.
33381
33382 2009-04-26  Bruno Haible  <bruno@clisp.org>
33383
33384         Simplify calling convention of u*_conv_to_encoding.
33385         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33386         u32_conv_to_encoding): Expect a resultbuf argument and return the
33387         result directly as a pointer.
33388         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33389         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33390         freeing scaled_offsets if mem_iconveha failed.
33391         * lib/unicase/u-casexfrm.h (FUNC): Update.
33392         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33393         * lib/vasnprintf.c (VASNPRINTF): Update.
33394         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33395         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33396         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33397         * NEWS: Mention the change.
33398
33399 2009-04-26  Bruno Haible  <bruno@clisp.org>
33400
33401         Avoid test failures on AIX and OSF/1.
33402         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33403         malloc(0).
33404         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33405         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33406         Likewise.
33407         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33408         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33409         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33410         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33411         * doc/posix-functions/malloc.texi: Document the portability problem
33412         related to malloc(0).
33413
33414 2009-04-26  Bruno Haible  <bruno@clisp.org>
33415
33416         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33417         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33418         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33419
33420 2009-04-25  Bruno Haible  <bruno@clisp.org>
33421
33422         Avoid link error when creating a namespace clean library.
33423         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33424         as macro with arguments if already defined as an alias.
33425         * lib/signbitf.c (gl_signbitf): Don't undefine.
33426         * lib/signbitd.c (gl_signbitd): Don't undefine.
33427         * lib/signbitl.c (gl_signbitl): Don't undefine.
33428
33429 2009-04-25  Jim Meyering  <meyering@redhat.com>
33430
33431         vc-list-files: fix another quoting bug
33432         * build-aux/vc-list-files: Avoid sed backslash expansion
33433         of pathological directory names.
33434
33435 2009-04-25  Eric Blake  <ebb9@byu.net>
33436
33437         vc-list-files: fix shell quoting error
33438         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33439         timestamp.
33440
33441 2009-04-25  Jim Meyering  <meyering@redhat.com>
33442
33443         vc-list-files: restore lost functionality with subdir argument
33444         * build-aux/vc-list-files: When given a non-"." sub-directory
33445         argument, substitute the $dir/ prefix back onto each resulting name.
33446         Otherwise, coreutils' root_tests check would fail.
33447
33448 2009-04-24  Eric Blake  <ebb9@byu.net>
33449
33450         vc-list-files: ignore git symlinks
33451         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33452         than ls-files, to ignore git symlinks.
33453
33454         maint.mk: import improvements from m4
33455         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33456         (move_if_change): Delete unused macro.
33457         (news-date-check, vc-diff-check): Support VPATH builds.
33458         (announcement): Likewise.  Split --bootstrap-tools list...
33459         (boostrap-tools): ...into separate list, which can be overridden
33460         in cfg.mk.
33461         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33462         requiring dependency on useless-if-before-free module.
33463         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33464         Support VPATH builds.
33465
33466 2009-04-24  Jim Meyering  <meyering@redhat.com>
33467
33468         maint.mk: remove coreutils-specific rules and variables
33469         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33470         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
33471         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
33472
33473         maint.mk: remove obsolete rule
33474         * top/maint.mk (rel-check): Remove rule.
33475         (WGET, WGETFLAGS): Remove now-unused variables.
33476
33477 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33478
33479         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
33480         consistency.
33481
33482         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
33483         '$(PATH_SEPARATOR)' instead of ':'.
33484
33485 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33486
33487         * lib/getopt1.c (main): Use 'const' for static array.
33488
33489 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33490
33491         * top/maint.mk: Sync with coreutils.
33492         * NEWS: Explain incompatibilities.
33493
33494 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33495             Bruno Haible  <bruno@clisp.org>
33496
33497         Fix cross-compilation results.
33498         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
33499         statement, as third argument of AC_TRY_RUN.
33500         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
33501         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
33502         Likewise.
33503         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
33504         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
33505         Likewise.
33506         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33507         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
33508         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
33509
33510 2009-04-20  Bruno Haible  <bruno@clisp.org>
33511
33512         Avoid test failure on mingw.
33513         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
33514
33515 2009-04-20  Bruno Haible  <bruno@clisp.org>
33516
33517         Avoid compilation error on mingw.
33518         * modules/localename-tests (Depends-on): Add locale.
33519
33520 2009-04-19  Bruno Haible  <bruno@clisp.org>
33521
33522         Support for building a shared library on Windows platforms.
33523         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
33524         (main): Test the presence of UNINORM_NFC here.
33525         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
33526         (main): Test the presence of UNINORM_NFD here.
33527         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
33528         (main): Test the presence of UNINORM_NFKC here.
33529         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
33530         (main): Test the presence of UNINORM_NFKD here.
33531
33532 2009-04-19  Bruno Haible  <bruno@clisp.org>
33533
33534         Avoid a compiler warning.
33535         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
33536         Change type of variable 'sequence'.
33537
33538 2009-04-19  Bruno Haible  <bruno@clisp.org>
33539
33540         * modules/configmake (Makefile.am): When the contents of configmake.h
33541         does not change, arrange to preserve its modification time.
33542
33543 2009-04-17  Simon Josefsson  <simon@josefsson.org>
33544
33545         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
33546         gettext domain.
33547
33548 2009-04-16  Jim Meyering  <meyering@redhat.com>
33549
33550         useless-if-before-free: improve conversion code
33551         * build-aux/useless-if-before-free: Adjust code-in-comment to match
33552         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
33553
33554 2009-04-14  Bruno Haible  <bruno@clisp.org>
33555
33556         * modules/fcntl (Depends-on): Add extensions.
33557         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
33558
33559 2009-04-12  Ben Pfaff  <blp@gnu.org>
33560
33561         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33562         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33563
33564 2009-03-20  Ben Pfaff  <blp@gnu.org>
33565
33566         Make rename replace existing destinations on Windows.
33567         * m4/rename.m4: Add test for Mingw.
33568         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33569         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33570         * doc/posix-functions/rename.texi: Document.
33571
33572 2009-04-10  Bruno Haible  <bruno@clisp.org>
33573
33574         New include file "iconveh.h".
33575         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33576         * lib/striconveh.h: Include it.
33577         (enum iconv_ilseq_handler): Remove definition.
33578         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33579         striconveh.h.
33580         * lib/striconveha.c: Include striconveh.h.
33581         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33582         * modules/striconveh (Files): Add lib/iconveh.h.
33583         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33584         lib/striconveh.h.
33585
33586 2009-04-10  Bruno Haible  <bruno@clisp.org>
33587
33588         * lib/uniconv.h: Update comment.
33589
33590 2009-04-10  Bruno Haible  <bruno@clisp.org>
33591
33592         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33593         always.
33594         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33595         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33596         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33597         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33598         "unistring-notinline.h", so that the function gets defined always.
33599         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33600         * lib/unistr/u8-uctomb.c: Likewise.
33601         * lib/unistr/u16-mbtouc.c: Likewise.
33602         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33603         * lib/unistr/u16-uctomb.c: Likewise.
33604         * lib/unistr/u32-mbtouc.c: Likewise.
33605         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33606         * lib/unistr/u32-uctomb.c: Likewise.
33607
33608 2009-04-10  Bruno Haible  <bruno@clisp.org>
33609
33610         Mark 'utime' obsolete.
33611         * modules/utime (Status, Notice): New sections.
33612         Suggested by Jim Meyering.
33613
33614         Fix cross-compile guess for utime test.
33615         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33616         autoconf.
33617         * doc/posix-functions/utime.texi: Give more precisions.
33618         Reported by Jan <ipif@ymail.com>.
33619
33620 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33621
33622         filevercmp: correct today's change
33623         * lib/filevercmp.c: Also handle coreutils' test inputs.
33624         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33625
33626         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33627         for reporting it.
33628         * lib/filevercmp.c: Special handle for "", "." and "..".
33629         * tests/test-filevercmp.c: Enlarge the set suite.
33630
33631 2009-04-07  Jim Meyering  <meyering@redhat.com>
33632
33633         useless-if-before-free: show how to remove braced useless free, too
33634         * build-aux/useless-if-before-free: still only in a comment, though.
33635
33636 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
33637
33638         maint.mk: import changes to syntax-check macros from coreutils
33639         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
33640         Use them in the relevant macros.
33641
33642 2009-04-06  Bruno Haible  <bruno@clisp.org>
33643
33644         Fix unportable use of bit-fields.
33645         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
33646         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
33647         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
33648
33649 2009-04-06  Bruno Haible  <bruno@clisp.org>
33650
33651         Avoid test failures on AIX and OSF/1.
33652         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
33653         that malloc(0) = NULL.
33654         * tests/unicase/test-u8-tolower.c (check): Likewise.
33655         * tests/unicase/test-u8-totitle.c (check): Likewise.
33656         * tests/unicase/test-u8-toupper.c (check): Likewise.
33657         * tests/unicase/test-u16-casefold.c (check): Likewise.
33658         * tests/unicase/test-u16-tolower.c (check): Likewise.
33659         * tests/unicase/test-u16-totitle.c (check): Likewise.
33660         * tests/unicase/test-u16-toupper.c (check): Likewise.
33661         * tests/unicase/test-u32-casefold.c (check): Likewise.
33662         * tests/unicase/test-u32-tolower.c (check): Likewise.
33663         * tests/unicase/test-u32-totitle.c (check): Likewise.
33664         * tests/unicase/test-u32-toupper.c (check): Likewise.
33665         * tests/uninorm/test-u8-nfc.c (check): Likewise.
33666         * tests/uninorm/test-u8-nfd.c (check): Likewise.
33667         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
33668         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
33669         * tests/uninorm/test-u16-nfc.c (check): Likewise.
33670         * tests/uninorm/test-u16-nfd.c (check): Likewise.
33671         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
33672         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
33673         * tests/uninorm/test-u32-nfc.c (check): Likewise.
33674         * tests/uninorm/test-u32-nfd.c (check): Likewise.
33675         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
33676         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
33677
33678 2009-04-05  Bruno Haible  <bruno@clisp.org>
33679
33680         Work around an autoconf limitation.
33681         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
33682         comment line if it would be longer than 3 KB.
33683
33684 2009-04-05  Bruno Haible  <bruno@clisp.org>
33685
33686         Avoid test failure with libiconv-1.13.
33687         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
33688         of the expected test results.
33689
33690 2009-04-05  Bruno Haible  <bruno@clisp.org>
33691
33692         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
33693         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
33694         that it should be installed.
33695
33696 2009-04-05  Bruno Haible  <bruno@clisp.org>
33697
33698         * gnulib-tool: New option --copy-file.
33699         (func_usage): Document it.
33700         (func_dest_tmpfilename): Moved out of func_import.
33701         (func_add_file, func_update_file): New functions, extracted from
33702         func_import.
33703         (func_import): Update.
33704
33705 2009-04-05  Karl Berry  <karl@gnu.org>
33706
33707         * README: prominently mention gnulib-tool.
33708         Rearrange sections so getting the code is near the top.
33709
33710 2009-04-05  Bruno Haible  <bruno@clisp.org>
33711
33712         * lib/unicase.h: Mention u*_cmp2.
33713         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33714         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
33715         * lib/unicase/ulc-casecmp.c: Likewise.
33716         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
33717         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
33718         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
33719         unistr/u8-cmp.
33720         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
33721         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
33722         unistr/u16-cmp.
33723         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
33724         unistr/u32-cmp.
33725
33726         * lib/uninorm.h: Mention u*_cmp2.
33727         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33728         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
33729         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
33730         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
33731         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
33732         unistr/u8-cmp.
33733         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
33734         unistr/u16-cmp.
33735         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
33736         unistr/u32-cmp.
33737
33738         New module 'unistr/u32-cmp2'.
33739         * lib/unistr/u32-cmp2.c: New file.
33740         * modules/unistr/u32-cmp2: New file.
33741
33742         New module 'unistr/u16-cmp2'.
33743         * lib/unistr/u16-cmp2.c: New file.
33744         * modules/unistr/u16-cmp2: New file.
33745
33746         New module 'unistr/u8-cmp2'.
33747         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
33748         * lib/unistr/u8-cmp2.c: New file.
33749         * lib/unistr/u-cmp2.h: New file.
33750         * modules/unistr/u8-cmp2: New file.
33751
33752 2009-04-05  Bruno Haible  <bruno@clisp.org>
33753
33754         * lib/unictype.h (uc_property_is_valid): New macro.
33755         * tests/unictype/test-pr_byname.c (main): Use it.
33756
33757         * lib/unistr.h: Doc fixes.
33758         * lib/uniconv.h: Doc fixes.
33759         * lib/unictype.h: Doc fixes.
33760
33761 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
33762
33763         Port coreutils 7.2 to Solaris 8.
33764
33765         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
33766         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
33767         for Solaris 8.  This is a bit of a hack, as it means it's the
33768         caller's responsibility to add -lnsl if needed, but most likely it
33769         won't be needed since only getaddrinfo uses this and getaddrinfo
33770         isn't needed on Solaris 8.
33771
33772         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
33773         problem to Solaris 8 encountered with coreutils 7.2, which
33774         resulted in a message "fnmatch.c:292: warning: passing argument 4
33775         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
33776         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
33777
33778 2009-04-03  Simon Josefsson  <simon@josefsson.org>
33779
33780         * m4/ld-version-script.m4: Add FIXME comment.
33781
33782 2009-04-02  Simon Josefsson  <simon@josefsson.org>
33783
33784         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
33785         SOVERSION variable.
33786
33787 2009-04-02  Bruno Haible  <bruno@clisp.org>
33788
33789         * Makefile (info, html, dvi, pdf): Combine the rules.
33790         Suggested by Jim Meyering.
33791
33792 2009-04-01  Bruno Haible  <bruno@clisp.org>
33793
33794         * Makefile (info, html, dvi, pdf): New targets.
33795         Reported by Reuben Thomas <rrt@sc3d.org>.
33796
33797 2009-04-01  Bruno Haible  <bruno@clisp.org>
33798
33799         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
33800         can be put into PATH.
33801         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
33802
33803 2009-04-01  Bruno Haible  <bruno@clisp.org>
33804
33805         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
33806
33807 2009-04-01  Bruno Haible  <bruno@clisp.org>
33808
33809         Rename module 'visibility'.
33810         * modules/lib-symbol-visibility: Renamed from modules/visibility.
33811         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
33812         * doc/gnulib.texi: Update.
33813         * MODULES.html.sh (Misc): Update.
33814         * NEWS: Mention the change.
33815
33816 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33817
33818         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
33819         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
33820         Eric Blake <ebb9@byu.net> for review.
33821         * MODULES.html.sh: Add lib-msvc-compat.
33822         * doc/gnulib.texi: Link to new section.
33823         * m4/ld-output-def.m4: New file.
33824         * doc/ld-output-def.texi: New file.
33825
33826 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33827
33828         Rename ld-version-script to lib-symbol-versions.  Suggested by
33829         Bruno Haible <bruno@clisp.org>.
33830         * modules/ld-version-script: Renamed to lib-symbol-versions.
33831         * doc/ld-version-script.texi: Fix module name.
33832         * MODULES.html.sh: Add lib-symbol-versions.
33833
33834 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33835
33836         * modules/u64-tests: New file.
33837         * tests/test-u64.c: New file.
33838
33839 2009-03-04  Simon Josefsson  <simon@josefsson.org>
33840
33841         * MODULES.html.sh: Mention u64.
33842         * modules/u64: New module.
33843         * modules/crypto/sha512: Depend on u64 module instead of providing
33844         u64.h.
33845
33846 2009-03-27  Eric Blake  <ebb9@byu.net>
33847
33848         test-strerror: make debugging EAI_SYSTEM easier
33849         * modules/getaddrinfo-tests (Depends-on): Add strerror.
33850         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
33851         failure was EAI_SYSTEM.
33852
33853 2009-03-25  Bruno Haible  <bruno@clisp.org>
33854
33855         Fix a problem with --enable-relocatable on Solaris 7.
33856         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
33857         since 2008-02-24.
33858
33859 2009-03-25  Eric Blake  <ebb9@byu.net>
33860
33861         test-sockets: avoid gcc warning
33862         * tests/test-sockets.c (main): Silence compiler warning.
33863
33864 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33865
33866         New modules nproc, pthread, contributed by Glen Lenker.
33867
33868         * MODULES.html.sh: Add pthread, nproc.
33869         * lib/nproc.c: New file.
33870         * lib/nproc.h: New file.
33871         * lib/pthread.in.h: New file.
33872         * m4/pthread.m4: New file.
33873         * modules/nproc: New file.
33874         * modules/pthread: New file.
33875
33876 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33877
33878         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
33879         New variable.
33880
33881 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
33882
33883         filevercmp: handle simple~ and numbered.~3~ backup suffixes
33884         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
33885         * tests/test-filevercmp.c: Add tests for backup suffixes.
33886
33887 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33888
33889         * modules/stdlib (Depends-on): Add stdint, needed when defining
33890         struct random_data on, for example, HP-UX 10.20.  Reported by
33891         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33892
33893 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33894
33895         * lib/readline.c (readline): Call fflush on stdout after printing
33896         prompt.
33897
33898 2009-03-20  Bruno Haible  <bruno@clisp.org>
33899
33900         Remove dependency from 'close' module to -lws2_32 on native Windows.
33901         * lib/close-hook.h: New file.
33902         * lib/close-hook.c: New file.
33903         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
33904         w32sock.h.
33905         (_gl_close_fd_maybe_socket): Remove function.
33906         (rpl_close): Invoke execute_all_close_hooks instead of
33907         _gl_close_fd_maybe_socket.
33908         * lib/sockets.c: Include close-hook.h, w32sock.h.
33909         (close_fd_maybe_socket): New function, essentially from lib/close.c.
33910         (close_sockets_hook): New variable.
33911         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
33912         (gl_sockets_cleanup): Unregister it.
33913         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
33914         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
33915         * modules/close-hook: New file.
33916         * modules/close (Files): Remove lib/w32sock.h.
33917         (Depends-on): Add close-hook.
33918         (Link): Remove section.
33919         * modules/sockets (Files): Add lib/w32sock.h.
33920         (Depends-on): Add close-hook.
33921         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
33922         invocation.
33923         * NEWS: Mention that LIB_CLOSE is gone.
33924
33925 2009-03-23  Eric Blake  <ebb9@byu.net>
33926
33927         signal-tests: test previous patch
33928         * tests/test-signal.c: New file.
33929         * modules/signal-tests: Likewise.
33930
33931         signal.h: always support 'volatile sig_atomic_t'
33932         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
33933         (gl_SIGNAL_H_DEFAULTS): Add a default.
33934         * modules/signal (Makefile.am): Substitute if needed.
33935         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
33936         users can blindly add volatile.
33937         * doc/posix-headers/signal.texi (signal.h): Document it.
33938         Reported by Matthew Woehlke.
33939
33940 2009-03-23  Jim Meyering  <meyering@redhat.com>
33941
33942         pathmax: PATH_MAX: use pathconf only when available
33943         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
33944         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
33945         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
33946         This avoids a link failure in a PSP cross-compilation environment
33947         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
33948
33949         * lib/vasnprintf.c (divide): Fix typo in comment.
33950
33951 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33952
33953         * gnulib-tool (func_filter_filelist): Fix comment.
33954
33955 2009-03-20  Bruno Haible  <bruno@clisp.org>
33956
33957         Make sockets.h self-contained.
33958         * lib/sockets.c: Include sockets.h first.
33959         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
33960
33961 2009-03-19  Eric Blake  <ebb9@byu.net>
33962
33963         doc: mention more functions added in cygwin 1.7.0
33964         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
33965         addition.
33966         * doc/posix-functions/log2f.texi: Likewise.
33967
33968 2009-03-19  Jim Meyering  <meyering@redhat.com>
33969
33970         fsusage: avoid syntax error due to statement-before-declaration
33971         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
33972         after all declarations.  Reported by Matthew Woehlke in
33973         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
33974
33975 2009-03-18  Eric Blake  <ebb9@byu.net>
33976
33977         build-aux/compile: sync from automake
33978         * build-aux/compile: New file, from automake.
33979         * config/srclist.txt: Mention build-aux/compile.
33980
33981 2009-03-17  Bruno Haible  <bruno@clisp.org>
33982
33983         * lib/git-merge-changelog.c: Fix typo in comment.
33984         Reported by Reuben Thomas <rrt@sc3d.org>.
33985
33986 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
33987
33988         * m4/regex.m4: update and improve help for
33989         --without-included-regex.
33990
33991 2009-03-17  Simon Josefsson  <simon@josefsson.org>
33992
33993         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
33994         failure on missing include files.
33995
33996 2009-03-17  Eric Blake  <ebb9@byu.net>
33997
33998         doc: mention more functions added in cygwin 1.7.0
33999         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
34000         addition.
34001         * doc/posix-functions/fwscanf.texi: Likewise.
34002         * doc/posix-functions/swprintf.texi: Likewise.
34003         * doc/posix-functions/swscanf.texi: Likewise.
34004         * doc/posix-functions/vfwprintf.texi: Likewise.
34005         * doc/posix-functions/vfwscanf.texi: Likewise.
34006         * doc/posix-functions/vswprintf.texi: Likewise.
34007         * doc/posix-functions/vswscanf.texi: Likewise.
34008         * doc/posix-functions/vwprintf.texi: Likewise.
34009         * doc/posix-functions/vwscanf.texi: Likewise.
34010         * doc/posix-functions/wcscasecmp.texi: Likewise.
34011         * doc/posix-functions/wcsdup.texi: Likewise.
34012         * doc/posix-functions/wcsftime.texi: Likewise.
34013         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34014         * doc/posix-functions/wprintf.texi: Likewise.
34015         * doc/posix-functions/wscanf.texi: Likewise.
34016         * doc/glibc-functions/gethostbyname2.texi: Likewise.
34017
34018 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34019
34020         maint.mk: really add $(AM_MAKEFLAGS)
34021         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
34022         was inadvertently omitted in the last commit.
34023         Spotted by Bruno Haible.
34024
34025         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
34026         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
34027         $(AM_MAKEFLAGS)' rather than plain `make'.
34028
34029         gnulib-tool: execute $MAKE not make
34030         * gnulib-tool: Default $MAKE to 'make'.
34031         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
34032         than make.  Initialize $MAKE in the do-autobuild script.
34033
34034         gnulib-tool: use $MAKE not make in generated files
34035         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
34036         make, in generated files.  Initialize $MAKE in the do-autobuild
34037         script.
34038
34039         * top/GNUmakefile (_have-git-version-gen): Fix typo.
34040
34041         GNUmakefile: disable parallelism only for multiple, recursive targets
34042         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
34043         additions in the Makefile.
34044         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
34045         by Automake.
34046         (.NOTPARALLEL): Only disable parallel builds if multiple targets
34047         are listed on the command line and at least one of them is
34048         listed in $(ALL_RECURSIVE_TARGETS).
34049
34050 2009-03-14  Bruno Haible  <bruno@clisp.org>
34051
34052         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
34053         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
34054         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
34055         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
34056         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
34057         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
34058         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
34059         unistr/u8-uctomb.
34060         * modules/unistr/u8-strchr (Depends-on): Likewise.
34061         * modules/unistr/u8-strrchr (Depends-on): Likewise.
34062         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
34063         unistr/u16-uctomb.
34064         * modules/unistr/u16-strchr (Depends-on): Likewise.
34065         * modules/unistr/u16-strrchr (Depends-on): Likewise.
34066
34067 2009-03-12  Bruno Haible  <bruno@clisp.org>
34068
34069         Work around select() bug on Interix 3.5.
34070         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
34071         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
34072         * m4/select.m4: New file.
34073         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
34074         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
34075         * modules/select (Files): Add m4/select.m4.
34076         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
34077         * modules/nanosleep (Depends-on): Add select.
34078         * modules/poll (Depends-on): Likewise.
34079         * doc/posix-functions/select.texi: Mention the Interix bug.
34080         Reported by Markus Duft <mduft@gentoo.org>.
34081
34082         * lib/select.c: Renamed from lib/winsock-select.c.
34083         * modules/select (Files): Add lib/select.c, remove
34084         lib/winsock-select.c.
34085         (configure.ac): Update.
34086
34087 2009-03-12  Jim Meyering  <meyering@redhat.com>
34088
34089         avoid gcc warnings about unused macro definitions
34090         * lib/readtokens.c (STREQ): Remove unused definition.
34091         * lib/xmalloc.c (SIZE_MAX): Likewise.
34092         * lib/openat-die.c (N_): Likewise.
34093         * lib/mountlist.c (SIZE_MAX): Remove definition.
34094         Instead, include <stdint.h>.
34095         * lib/readutmp.c: Likewise.
34096         * modules/readutmp (Depends-on): Add stdint.
34097         * modules/mountlist (Depends-on): Add stdint.
34098         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
34099
34100 2009-03-10  Bruno Haible  <bruno@clisp.org>
34101
34102         Tests for module 'mbmemcasecoll'.
34103         * modules/mbmemcasecoll-tests: New file.
34104         * tests/test-mbmemcasecoll1.sh: New file.
34105         * tests/test-mbmemcasecoll2.sh: New file.
34106         * tests/test-mbmemcasecoll3.sh: New file.
34107         * tests/test-mbmemcasecoll.c: New file.
34108
34109         New module 'mbmemcasecoll'.
34110         * lib/mbmemcasecoll.h: New file.
34111         * lib/mbmemcasecoll.c: New file.
34112         * modules/mbmemcasecoll: New file.
34113
34114         * tests/test-mbmemcasecmp.h: New file, extracted from
34115         tests/test-mbmemcasecmp.c.
34116         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
34117         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
34118         (main): Update.
34119         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
34120
34121 2009-03-09  Bruno Haible  <bruno@clisp.org>
34122
34123         Tests for module 'mbmemcasecmp'.
34124         * modules/mbmemcasecmp-tests: New file.
34125         * tests/test-mbmemcasecmp1.sh: New file.
34126         * tests/test-mbmemcasecmp2.sh: New file.
34127         * tests/test-mbmemcasecmp3.sh: New file.
34128         * tests/test-mbmemcasecmp.c: New file.
34129
34130         New module 'mbmemcasecmp'.
34131         * lib/mbmemcasecmp.h: New file.
34132         * lib/mbmemcasecmp.c: New file.
34133         * modules/mbmemcasecmp: New file.
34134
34135 2009-03-09  Bruno Haible  <bruno@clisp.org>
34136
34137         Tests for module 'unicase/ulc-casecoll'.
34138         * modules/unicase/ulc-casecoll-tests: New file.
34139         * tests/unicase/test-ulc-casecoll1.sh: New file.
34140         * tests/unicase/test-ulc-casecoll2.sh: New file.
34141         * tests/unicase/test-ulc-casecoll.c: New file.
34142
34143         New module 'unicase/ulc-casecoll'.
34144         * lib/unicase.h (ulc_casecoll): New declaration.
34145         * lib/unicase/ulc-casecoll.c: New file.
34146         * modules/unicase/ulc-casecoll: New file.
34147
34148         New module 'unicase/ulc-casexfrm'.
34149         * lib/unicase.h (ulc_casexfrm): New declaration.
34150         * lib/unicase/ulc-casexfrm.c: New file.
34151         * modules/unicase/ulc-casexfrm: New file.
34152
34153 2009-03-09  Bruno Haible  <bruno@clisp.org>
34154
34155         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
34156         invocations.
34157
34158         * m4/mbscasecmp.m4: Remove file.
34159         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
34160         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
34161
34162         * m4/mbscasestr.m4: Remove file.
34163         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
34164         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
34165
34166         * m4/mbschr.m4: Remove file.
34167         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
34168         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
34169
34170         * m4/mbscspn.m4: Remove file.
34171         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
34172         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
34173
34174         * m4/mbslen.m4: Remove file.
34175         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
34176         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
34177
34178         * m4/mbsncasecmp.m4: Remove file.
34179         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
34180         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
34181
34182         * m4/mbsnlen.m4: Remove file.
34183         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
34184         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
34185
34186         * m4/mbspbrk.m4: Remove file.
34187         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
34188         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
34189
34190         * m4/mbspcasecmp.m4: Remove file.
34191         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
34192         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
34193
34194         * m4/mbsrchr.m4: Remove file.
34195         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
34196         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
34197
34198         * m4/mbssep.m4: Remove file.
34199         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
34200         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
34201
34202         * m4/mbsspn.m4: Remove file.
34203         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
34204         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
34205
34206         * m4/mbsstr.m4: Remove file.
34207         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
34208         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
34209
34210         * m4/mbstok_r.m4: Remove file.
34211         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
34212         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
34213
34214         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
34215
34216         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
34217         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
34218
34219         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
34220
34221 2009-03-08  Bruno Haible  <bruno@clisp.org>
34222
34223         Tests for module 'unicase/ulc-casecmp'.
34224         * modules/unicase/ulc-casecmp-tests: New file.
34225         * tests/unicase/test-ulc-casecmp1.sh: New file.
34226         * tests/unicase/test-ulc-casecmp2.sh: New file.
34227         * tests/unicase/test-ulc-casecmp.c: New file.
34228
34229         New module 'unicase/ulc-casecmp'.
34230         * lib/unicase.h (ulc_casecmp): New declaration.
34231         * lib/unicase/ulc-casecmp.c: New file.
34232         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
34233         'const SRC_UNIT *'.
34234         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
34235         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
34236         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
34237         * modules/unicase/ulc-casecmp: New file.
34238
34239         Tests for module 'unicase/u32-is-cased'.
34240         * modules/unicase/u32-is-cased-tests: New file.
34241         * tests/unicase/test-u32-is-cased.c: New file.
34242
34243         Tests for module 'unicase/u16-is-cased'.
34244         * modules/unicase/u16-is-cased-tests: New file.
34245         * tests/unicase/test-u16-is-cased.c: New file.
34246
34247         Tests for module 'unicase/u8-is-cased'.
34248         * modules/unicase/u8-is-cased-tests: New file.
34249         * tests/unicase/test-u8-is-cased.c: New file.
34250         * tests/unicase/test-is-cased.h: New file.
34251
34252         New module 'unicase/u32-is-cased'.
34253         * lib/unicase/u32-is-cased.c: New file.
34254         * modules/unicase/u32-is-cased: New file.
34255
34256         New module 'unicase/u16-is-cased'.
34257         * lib/unicase/u16-is-cased.c: New file.
34258         * modules/unicase/u16-is-cased: New file.
34259
34260         New module 'unicase/u8-is-cased'.
34261         * lib/unicase/u8-is-cased.c: New file.
34262         * lib/unicase/u-is-cased.h: New file.
34263         * modules/unicase/u8-is-cased: New file.
34264
34265         Tests for module 'unicase/u32-is-casefolded'.
34266         * modules/unicase/u32-is-casefolded-tests: New file.
34267         * tests/unicase/test-u32-is-casefolded.c: New file.
34268
34269         Tests for module 'unicase/u16-is-casefolded'.
34270         * modules/unicase/u16-is-casefolded-tests: New file.
34271         * tests/unicase/test-u16-is-casefolded.c: New file.
34272
34273         Tests for module 'unicase/u8-is-casefolded'.
34274         * modules/unicase/u8-is-casefolded-tests: New file.
34275         * tests/unicase/test-u8-is-casefolded.c: New file.
34276         * tests/unicase/test-is-casefolded.h: New file.
34277
34278         New module 'unicase/u32-is-casefolded'.
34279         * lib/unicase/u32-is-casefolded.c: New file.
34280         * modules/unicase/u32-is-casefolded: New file.
34281
34282         New module 'unicase/u16-is-casefolded'.
34283         * lib/unicase/u16-is-casefolded.c: New file.
34284         * modules/unicase/u16-is-casefolded: New file.
34285
34286         New module 'unicase/u8-is-casefolded'.
34287         * lib/unicase/u8-is-casefolded.c: New file.
34288         * modules/unicase/u8-is-casefolded: New file.
34289
34290         Tests for module 'unicase/u32-is-titlecase'.
34291         * modules/unicase/u32-is-titlecase-tests: New file.
34292         * tests/unicase/test-u32-is-titlecase.c: New file.
34293
34294         Tests for module 'unicase/u16-is-titlecase'.
34295         * modules/unicase/u16-is-titlecase-tests: New file.
34296         * tests/unicase/test-u16-is-titlecase.c: New file.
34297
34298         Tests for module 'unicase/u8-is-titlecase'.
34299         * modules/unicase/u8-is-titlecase-tests: New file.
34300         * tests/unicase/test-u8-is-titlecase.c: New file.
34301         * tests/unicase/test-is-titlecase.h: New file.
34302
34303         New module 'unicase/u32-is-titlecase'.
34304         * lib/unicase/u32-is-titlecase.c: New file.
34305         * modules/unicase/u32-is-titlecase: New file.
34306
34307         New module 'unicase/u16-is-titlecase'.
34308         * lib/unicase/u16-is-titlecase.c: New file.
34309         * modules/unicase/u16-is-titlecase: New file.
34310
34311         New module 'unicase/u8-is-titlecase'.
34312         * lib/unicase/u8-is-titlecase.c: New file.
34313         * modules/unicase/u8-is-titlecase: New file.
34314
34315         Tests for module 'unicase/u32-is-lowercase'.
34316         * modules/unicase/u32-is-lowercase-tests: New file.
34317         * tests/unicase/test-u32-is-lowercase.c: New file.
34318
34319         Tests for module 'unicase/u16-is-lowercase'.
34320         * modules/unicase/u16-is-lowercase-tests: New file.
34321         * tests/unicase/test-u16-is-lowercase.c: New file.
34322
34323         Tests for module 'unicase/u8-is-lowercase'.
34324         * modules/unicase/u8-is-lowercase-tests: New file.
34325         * tests/unicase/test-u8-is-lowercase.c: New file.
34326         * tests/unicase/test-is-lowercase.h: New file.
34327
34328         New module 'unicase/u32-is-lowercase'.
34329         * lib/unicase/u32-is-lowercase.c: New file.
34330         * modules/unicase/u32-is-lowercase: New file.
34331
34332         New module 'unicase/u16-is-lowercase'.
34333         * lib/unicase/u16-is-lowercase.c: New file.
34334         * modules/unicase/u16-is-lowercase: New file.
34335
34336         New module 'unicase/u8-is-lowercase'.
34337         * lib/unicase/u8-is-lowercase.c: New file.
34338         * modules/unicase/u8-is-lowercase: New file.
34339
34340         Tests for module 'unicase/u32-is-uppercase'.
34341         * modules/unicase/u32-is-uppercase-tests: New file.
34342         * tests/unicase/test-u32-is-uppercase.c: New file.
34343
34344         Tests for module 'unicase/u16-is-uppercase'.
34345         * modules/unicase/u16-is-uppercase-tests: New file.
34346         * tests/unicase/test-u16-is-uppercase.c: New file.
34347
34348         Tests for module 'unicase/u8-is-uppercase'.
34349         * modules/unicase/u8-is-uppercase-tests: New file.
34350         * tests/unicase/test-u8-is-uppercase.c: New file.
34351         * tests/unicase/test-is-uppercase.h: New file.
34352
34353         New module 'unicase/u32-is-uppercase'.
34354         * lib/unicase/u32-is-uppercase.c: New file.
34355         * modules/unicase/u32-is-uppercase: New file.
34356
34357         New module 'unicase/u16-is-uppercase'.
34358         * lib/unicase/u16-is-uppercase.c: New file.
34359         * modules/unicase/u16-is-uppercase: New file.
34360
34361         New module 'unicase/u8-is-uppercase'.
34362         * lib/unicase/u8-is-uppercase.c: New file.
34363         * modules/unicase/u8-is-uppercase: New file.
34364
34365         New module 'unicase/u32-is-invariant'.
34366         * lib/unicase/u32-is-invariant.c: New file.
34367         * modules/unicase/u32-is-invariant: New file.
34368
34369         New module 'unicase/u16-is-invariant'.
34370         * lib/unicase/u16-is-invariant.c: New file.
34371         * modules/unicase/u16-is-invariant: New file.
34372
34373         New module 'unicase/u8-is-invariant'.
34374         * lib/unicase/u8-is-invariant.c: New file.
34375         * lib/unicase/invariant.h: New file.
34376         * lib/unicase/u-is-invariant.h: New file.
34377         * modules/unicase/u8-is-invariant: New file.
34378
34379         Tests for module 'unicase/u32-casecoll'.
34380         * modules/unicase/u32-casecoll-tests: New file.
34381         * tests/unicase/test-u32-casecoll.c: New file.
34382
34383         Tests for module 'unicase/u16-casecoll'.
34384         * modules/unicase/u16-casecoll-tests: New file.
34385         * tests/unicase/test-u16-casecoll.c: New file.
34386
34387         Tests for module 'unicase/u8-casecoll'.
34388         * modules/unicase/u8-casecoll-tests: New file.
34389         * tests/unicase/test-u8-casecoll.c: New file.
34390
34391         New module 'unicase/u32-casecoll'.
34392         * lib/unicase/u32-casecoll.c: New file.
34393         * modules/unicase/u32-casecoll: New file.
34394
34395         New module 'unicase/u16-casecoll'.
34396         * lib/unicase/u16-casecoll.c: New file.
34397         * modules/unicase/u16-casecoll: New file.
34398
34399         New module 'unicase/u8-casecoll'.
34400         * lib/unicase/u8-casecoll.c: New file.
34401         * lib/unicase/u-casecoll.h: New file.
34402         * modules/unicase/u8-casecoll: New file.
34403
34404         New module 'unicase/u32-casexfrm'.
34405         * lib/unicase/u32-casexfrm.c: New file.
34406         * modules/unicase/u32-casexfrm: New file.
34407
34408         New module 'unicase/u16-casexfrm'.
34409         * lib/unicase/u16-casexfrm.c: New file.
34410         * modules/unicase/u16-casexfrm: New file.
34411
34412         New module 'unicase/u8-casexfrm'.
34413         * lib/unicase/u8-casexfrm.c: New file.
34414         * lib/unicase/u-casexfrm.h: New file.
34415         * modules/unicase/u8-casexfrm: New file.
34416
34417         Tests for module 'unicase/u32-casecmp'.
34418         * modules/unicase/u32-casecmp-tests: New file.
34419         * tests/unicase/test-u32-casecmp.c: New file.
34420
34421         Tests for module 'unicase/u16-casecmp'.
34422         * modules/unicase/u16-casecmp-tests: New file.
34423         * tests/unicase/test-u16-casecmp.c: New file.
34424
34425         Tests for module 'unicase/u8-casecmp'.
34426         * modules/unicase/u8-casecmp-tests: New file.
34427         * tests/unicase/test-u8-casecmp.c: New file.
34428         * tests/unicase/test-casecmp.h: New file.
34429
34430         New module 'unicase/u32-casecmp'.
34431         * lib/unicase/u32-casecmp.c: New file.
34432         * modules/unicase/u32-casecmp: New file.
34433
34434         New module 'unicase/u16-casecmp'.
34435         * lib/unicase/u16-casecmp.c: New file.
34436         * modules/unicase/u16-casecmp: New file.
34437
34438         New module 'unicase/u8-casecmp'.
34439         * lib/unicase/u8-casecmp.c: New file.
34440         * lib/unicase/u-casecmp.h: New file.
34441         * modules/unicase/u8-casecmp: New file.
34442
34443         Tests for module 'unicase/u32-casefold'.
34444         * modules/unicase/u32-casefold-tests: New file.
34445         * tests/unicase/test-u32-casefold.c: New file.
34446
34447         Tests for module 'unicase/u16-casefold'.
34448         * modules/unicase/u16-casefold-tests: New file.
34449         * tests/unicase/test-u16-casefold.c: New file.
34450
34451         Tests for module 'unicase/u8-casefold'.
34452         * modules/unicase/u8-casefold-tests: New file.
34453         * tests/unicase/test-u8-casefold.c: New file.
34454
34455         New module 'unicase/u32-casefold'.
34456         * lib/unicase/u32-casefold.c: New file.
34457         * modules/unicase/u32-casefold: New file.
34458
34459         New module 'unicase/u16-casefold'.
34460         * lib/unicase/u16-casefold.c: New file.
34461         * modules/unicase/u16-casefold: New file.
34462
34463         New module 'unicase/u8-casefold'.
34464         * lib/unicase/u8-casefold.c: New file.
34465         * lib/unicase/u-casefold.h: New file.
34466         * modules/unicase/u8-casefold: New file.
34467
34468         New module 'unicase/tocasefold'.
34469         * lib/unicase/casefold.h: New file.
34470         * lib/unicase/tocasefold.c: New file.
34471         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
34472         * modules/unicase/tocasefold: New file.
34473
34474         Tests for module 'unicase/u32-totitle'.
34475         * modules/unicase/u32-totitle-tests: New file.
34476         * tests/unicase/test-u32-totitle.c: New file.
34477
34478         Tests for module 'unicase/u16-totitle'.
34479         * modules/unicase/u16-totitle-tests: New file.
34480         * tests/unicase/test-u16-totitle.c: New file.
34481
34482         Tests for module 'unicase/u8-totitle'.
34483         * modules/unicase/u8-totitle-tests: New file.
34484         * tests/unicase/test-u8-totitle.c: New file.
34485
34486         New module 'unicase/u32-totitle'.
34487         * lib/unicase/u32-totitle.c: New file.
34488         * modules/unicase/u32-totitle: New file.
34489
34490         New module 'unicase/u16-totitle'.
34491         * lib/unicase/u16-totitle.c: New file.
34492         * modules/unicase/u16-totitle: New file.
34493
34494         New module 'unicase/u8-totitle'.
34495         * lib/unicase/u8-totitle.c: New file.
34496         * lib/unicase/u-totitle.h: New file.
34497         * modules/unicase/u8-totitle: New file.
34498
34499         Tests for module 'unicase/u32-tolower'.
34500         * modules/unicase/u32-tolower-tests: New file.
34501         * tests/unicase/test-u32-tolower.c: New file.
34502
34503         Tests for module 'unicase/u16-tolower'.
34504         * modules/unicase/u16-tolower-tests: New file.
34505         * tests/unicase/test-u16-tolower.c: New file.
34506
34507         Tests for module 'unicase/u8-tolower'.
34508         * modules/unicase/u8-tolower-tests: New file.
34509         * tests/unicase/test-u8-tolower.c: New file.
34510
34511         New module 'unicase/u32-tolower'.
34512         * lib/unicase/u32-tolower.c: New file.
34513         * modules/unicase/u32-tolower: New file.
34514
34515         New module 'unicase/u16-tolower'.
34516         * lib/unicase/u16-tolower.c: New file.
34517         * modules/unicase/u16-tolower: New file.
34518
34519         New module 'unicase/u8-tolower'.
34520         * lib/unicase/u8-tolower.c: New file.
34521         * modules/unicase/u8-tolower: New file.
34522
34523         Tests for module 'unicase/u32-toupper'.
34524         * modules/unicase/u32-toupper-tests: New file.
34525         * tests/unicase/test-u32-toupper.c: New file.
34526
34527         Tests for module 'unicase/u16-toupper'.
34528         * modules/unicase/u16-toupper-tests: New file.
34529         * tests/unicase/test-u16-toupper.c: New file.
34530
34531         Tests for module 'unicase/u8-toupper'.
34532         * modules/unicase/u8-toupper-tests: New file.
34533         * tests/unicase/test-u8-toupper.c: New file.
34534
34535         New module 'unicase/u32-toupper'.
34536         * lib/unicase/u32-toupper.c: New file.
34537         * modules/unicase/u32-toupper: New file.
34538
34539         New module 'unicase/u16-toupper'.
34540         * lib/unicase/u16-toupper.c: New file.
34541         * modules/unicase/u16-toupper: New file.
34542
34543         New module 'unicase/u8-toupper'.
34544         * lib/unicase/u8-toupper.c: New file.
34545         * modules/unicase/u8-toupper: New file.
34546
34547         New module 'unicase/u32-casemap'.
34548         * lib/unicase/u32-casemap.c: New file.
34549         * modules/unicase/u32-casemap: New file.
34550
34551         New module 'unicase/u16-casemap'.
34552         * lib/unicase/u16-casemap.c: New file.
34553         * modules/unicase/u16-casemap: New file.
34554
34555         New module 'unicase/u8-casemap'.
34556         * lib/unicase/unicasemap.h: New file.
34557         * lib/unicase/u8-casemap.c: New file.
34558         * lib/unicase/u-casemap.h: New file.
34559         * modules/unicase/u8-casemap: New file.
34560
34561         New module 'unicase/special-casing'.
34562         * lib/unicase/special-casing.h: New file.
34563         * lib/unicase/special-casing.c: New file.
34564         * lib/unicase/special-casing-table.gperf: New file, generated by
34565         gen-uni-tables.c.
34566         * modules/unicase/special-casing: New file.
34567
34568         Tests for module 'unicase/locale-language'.
34569         * modules/unicase/locale-language-tests: New file.
34570         * tests/unicase/test-locale-language.sh: New file.
34571         * tests/unicase/test-locale-language.c: New file.
34572
34573         New module 'unicase/locale-language'.
34574         * lib/unicase/locale-language.c: New file.
34575         * lib/unicase/locale-languages.gperf: New file.
34576         * modules/unicase/locale-language: New file.
34577
34578         Generate more tables for case conversion and case folding.
34579         * lib/gen-uni-tables.c (SCC_*): New enum items.
34580         (struct special_casing_rule): New type.
34581         (casing_rules, num_casing_rules, allocated_casing_rules): New
34582         variables.
34583         (add_casing_rule, fill_casing_rules): New functions.
34584         (struct casefold_rule): New type.
34585         (casefolding_rules, num_casefolding_rules,
34586         allocated_casefolding_rules): New variables.
34587         (fill_casefolding_rules): New function.
34588         (unicode_casefold): New variable.
34589         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34590         sort_casing_rules, output_casing_rules): New functions.
34591         (main): Accept to more arguments: SpecialCasing.txt and
34592         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34593         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34594         Output mapping for casefolding.
34595
34596         * lib/unicase.h: Include stdbool.h, uninorm.h.
34597         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34598         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34599         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34600         arguments.
34601         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34602         resultp arguments.
34603         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34604         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34605         resultp arguments.
34606         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34607         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34608         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34609         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34610         declarations.
34611         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34612
34613 2009-03-08  Bruno Haible  <bruno@clisp.org>
34614
34615         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34616         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34617         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34618         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34619
34620 2009-03-07  Bruno Haible  <bruno@clisp.org>
34621
34622         Adjust u*_normcmp, u*_normcoll API.
34623         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34624         u16_normcoll, u32_normcoll): Change failure conventions.
34625         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34626         errno and return -1.
34627         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34628
34629 2009-03-07  Bruno Haible  <bruno@clisp.org>
34630
34631         Tests for module 'uninorm/u32-normcoll'.
34632         * modules/uninorm/u32-normcoll-tests: New file.
34633         * tests/uninorm/test-u32-normcoll.c: New file.
34634
34635         Tests for module 'uninorm/u16-normcoll'.
34636         * modules/uninorm/u16-normcoll-tests: New file.
34637         * tests/uninorm/test-u16-normcoll.c: New file.
34638
34639         Tests for module 'uninorm/u8-normcoll'.
34640         * modules/uninorm/u8-normcoll-tests: New file.
34641         * tests/uninorm/test-u8-normcoll.c: New file.
34642
34643 2009-03-07  Bruno Haible  <bruno@clisp.org>
34644
34645         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
34646         tests/uninorm/test-u32-normcmp.c.
34647         * tests/uninorm/test-u32-normcmp.c: Include it.
34648         (test_nonascii): New function, extracted from main. Add some more
34649         tests.
34650         (main): Invoke test_ascii and test_nonascii.
34651         * modules/uninorm/u32-normcmp-tests (Files): Add
34652         tests/uninorm/test-u32-normcmp.h.
34653         (Depends-on): Remove uninorm/u32-normcmp.
34654
34655         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
34656         tests/uninorm/test-u16-normcmp.c.
34657         * tests/uninorm/test-u16-normcmp.c: Include it.
34658         (test_nonascii): New function, extracted from main. Add some more
34659         tests.
34660         (main): Invoke test_ascii and test_nonascii.
34661         * modules/uninorm/u16-normcmp-tests (Files): Add
34662         tests/uninorm/test-u16-normcmp.h.
34663         (Depends-on): Remove uninorm/u16-normcmp.
34664
34665         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
34666         tests/uninorm/test-u8-normcmp.c.
34667         * tests/uninorm/test-u8-normcmp.c: Include it.
34668         (test_nonascii): New function, extracted from main. Add some more
34669         tests.
34670         (main): Invoke test_ascii and test_nonascii.
34671         * modules/uninorm/u8-normcmp-tests (Files): Add
34672         tests/uninorm/test-u8-normcmp.h.
34673         (Depends-on): Remove uninorm/u8-normcmp.
34674
34675 2009-03-07  Bruno Haible  <bruno@clisp.org>
34676
34677         New module 'uninorm/u32-normcoll'.
34678         * lib/uninorm/u32-normcoll.c: New file.
34679         * modules/uninorm/u32-normcoll: New file.
34680
34681         New module 'uninorm/u16-normcoll'.
34682         * lib/uninorm/u16-normcoll.c: New file.
34683         * modules/uninorm/u16-normcoll: New file.
34684
34685         New module 'uninorm/u8-normcoll'.
34686         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
34687         declarations.
34688         * lib/uninorm/u8-normcoll.c: New file.
34689         * lib/uninorm/u-normcoll.h: New file.
34690         * modules/uninorm/u8-normcoll: New file.
34691
34692         New module 'uninorm/u32-normxfrm'.
34693         * lib/uninorm/u32-normxfrm.c: New file.
34694         * modules/uninorm/u32-normxfrm: New file.
34695
34696         New module 'uninorm/u16-normxfrm'.
34697         * lib/uninorm/u16-normxfrm.c: New file.
34698         * modules/uninorm/u16-normxfrm: New file.
34699
34700         New module 'uninorm/u8-normxfrm'.
34701         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
34702         declarations.
34703         * lib/uninorm/u8-normxfrm.c: New file.
34704         * lib/uninorm/u-normxfrm.h: New file.
34705         * modules/uninorm/u8-normxfrm: New file.
34706
34707 2009-03-07  Bruno Haible  <bruno@clisp.org>
34708
34709         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
34710         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
34711         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
34712
34713 2009-03-07  Bruno Haible  <bruno@clisp.org>
34714
34715         New module 'memxfrm'.
34716         * lib/memxfrm.h: New file.
34717         * lib/memxfrm.c: New file.
34718         * modules/memxfrm: New file.
34719
34720 2009-03-07  Bruno Haible  <bruno@clisp.org>
34721
34722         New module 'memcmp2'.
34723         * lib/memcmp2.h: New file.
34724         * lib/memcmp2.c: New file.
34725         * modules/memcmp2: New file.
34726
34727 2009-03-07  Bruno Haible  <bruno@clisp.org>
34728
34729         Tests for module 'uninorm/decomposing-form'.
34730         * modules/uninorm/decomposing-form-tests: New file.
34731         * tests/uninorm/test-decomposing-form.c: New file.
34732
34733         New module 'uninorm/decomposing-form'.
34734         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
34735         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
34736         Add 'decomposing_variant' field.
34737         * lib/uninorm/decomposing-form.c: New file.
34738         * lib/uninorm/nfc.c (uninorm_nfc): Update.
34739         * lib/uninorm/nfd.c (uninorm_nfd): Update.
34740         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
34741         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
34742         * modules/uninorm/decomposing-form: New file.
34743         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
34744         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
34745
34746 2009-03-07  Bruno Haible  <bruno@clisp.org>
34747
34748         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
34749         strings.
34750
34751 2009-03-06  Bruno Haible  <bruno@clisp.org>
34752
34753         Tests for module 'uninorm/u32-normcmp'.
34754         * tests/uninorm/test-u32-normcmp.c: New file.
34755         * modules/uninorm/u32-normcmp-tests: New file.
34756
34757         Tests for module 'uninorm/u16-normcmp'.
34758         * tests/uninorm/test-u16-normcmp.c: New file.
34759         * modules/uninorm/u16-normcmp-tests: New file.
34760
34761         Tests for module 'uninorm/u8-normcmp'.
34762         * tests/uninorm/test-u8-normcmp.c: New file.
34763         * modules/uninorm/u8-normcmp-tests: New file.
34764
34765         New module 'uninorm/u32-normcmp'.
34766         * lib/uninorm/u32-normcmp.c: New file.
34767         * modules/uninorm/u32-normcmp: New file.
34768
34769         New module 'uninorm/u16-normcmp'.
34770         * lib/uninorm/u16-normcmp.c: New file.
34771         * modules/uninorm/u16-normcmp: New file.
34772
34773         New module 'uninorm/u8-normcmp'.
34774         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
34775         declarations.
34776         * lib/uninorm/u8-normcmp.c: New file.
34777         * lib/uninorm/u-normcmp.h: New file.
34778         * modules/uninorm/u8-normcmp: New file.
34779
34780 2009-03-06  Bruno Haible  <bruno@clisp.org>
34781
34782         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
34783         Reported by Eric Blake.
34784
34785 2009-03-06  Eric Blake  <ebb9@byu.net>
34786             Bruno Haible  <bruno@clisp.org>
34787
34788         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
34789         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
34790         condition.
34791         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34792         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
34793         condition.
34794         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34795
34796 2009-03-06  Eric Blake  <ebb9@byu.net>
34797
34798         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
34799         to avoid compiler warnings.
34800         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
34801
34802 2009-03-05  Bruno Haible  <bruno@clisp.org>
34803
34804         * tests/test-ftell.c (main): Disable test beyond end of file on
34805         FreeMiNT.
34806         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34807
34808 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
34809
34810         * lib/filevercmp.c: Move hidden files up in ordering.
34811         * tests/test-filevercmp.c: Add tests for hidden files.
34812
34813 2009-03-04  Bruno Haible  <bruno@clisp.org>
34814
34815         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
34816         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
34817         AM_CFLAGS.
34818         Reported by Simon Josefsson.
34819
34820 2009-03-03  Bruno Haible  <bruno@clisp.org>
34821
34822         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
34823         Reported by Simon Josefsson.
34824
34825         * doc/ld-version-script.texi: Update node reference.
34826
34827 2009-03-03  Bruno Haible  <bruno@clisp.org>
34828
34829         * modules/visibility (License): Change to 'unlimited'.
34830         Suggested by Simon Josefsson.
34831
34832 2009-03-03  Jim Meyering  <meyering@redhat.com>
34833
34834         unlinkdir: cannot_unlink_dir may modify process state
34835         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
34836         it's neither thread-safe nor appropriate for use in a library.
34837
34838 2009-03-03  Eric Blake  <ebb9@byu.net>
34839
34840         test-closein: silence test under Darwin
34841         * tests/test-closein.sh: Ignore stderr from cat, since we don't
34842         care if it dies from EPIPE or EBADF.
34843
34844 2009-03-03  Bruno Haible  <bruno@clisp.org>
34845
34846         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
34847         earlier.
34848         * doc/visibility.texi: Fix @node and @section.
34849
34850 2009-03-03  Simon Josefsson  <simon@josefsson.org>
34851
34852         * doc/gnulib.texi: Link to sections for ld version script and
34853         visibility.
34854         * doc/visibility.texi: Add @node and @section.
34855         * modules/ld-version-script: New module.
34856         * m4/ld-version-script.m4: New file.
34857         * doc/ld-version-script.texi: New file.
34858
34859 2009-03-02  David Lutterkort  <lutter@redhat.com>
34860
34861         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
34862         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34863
34864 2009-03-02  Bruno Haible  <bruno@clisp.org>
34865
34866         * doc/visibility.texi: Mention libtool's -export-symbols option.
34867
34868 2009-03-02  Jim Meyering  <meyering@redhat.com>
34869
34870         announce-gen: new option: --no-print-checksums
34871         * build-aux/announce-gen (usage): Describe it.
34872         (print_checksums): Print a newline here, not in the [*] footnote.
34873         (main): Honor it.
34874
34875 2009-03-01  Bruno Haible  <bruno@clisp.org>
34876
34877         Use socklen_t in the native Windows replacements prototypes.
34878         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
34879         instead of 'int'.
34880         * lib/getsockopt.c (rpl_getsockopt): Likewise.
34881         * lib/setsockopt.c (rpl_setsockopt): Likewise.
34882         * modules/getsockopt (Depends-on): Add socklen.
34883         * modules/setsockopt (Depends-on): Add socklen.
34884
34885 2009-03-01  Bruno Haible  <bruno@clisp.org>
34886
34887         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
34888         least 4.2.
34889
34890 2009-03-01  Eric Blake  <ebb9@byu.net>
34891             Bruno Haible  <bruno@clisp.org>
34892
34893         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
34894         error messages.
34895         * lib/wait-process.c (wait_subprocess): Omit error message about
34896         deadly signal sent to the child of termsigp != NULL.
34897
34898 2009-03-01  Eric Blake  <ebb9@byu.net>
34899
34900         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
34901
34902 2009-03-01  Bruno Haible  <bruno@clisp.org>
34903
34904         Avoid a gcc warning.
34905         * tests/test-sched.c (b): Make global.
34906         Reported by Eric Blake.
34907
34908 2009-01-19  Martin Lambers  <marlam@marlam.de>
34909
34910         Provide POSIX semantics for socket timeout options on W32.
34911         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
34912         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
34913         * modules/setsockopt: Depend on sys_time module for struct timeval.
34914         * modules/getsockopt: Depend on sys_time module for struct timeval.
34915
34916 2009-03-01  Simon Josefsson  <simon@josefsson.org>
34917
34918         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
34919         __USE_GNU, for consistency with netdb.in.h.
34920         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34921
34922 2009-03-01  Bruno Haible  <bruno@clisp.org>
34923
34924         More support for FreeMiNT.
34925         * lib/fseeko.c (rpl_fseeko): Complete last commit.
34926         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34927
34928 2009-03-01  Bruno Haible  <bruno@clisp.org>
34929
34930         More support for FreeMiNT.
34931         * lib/fpurge.c (fpurge): Correct last commit.
34932         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34933
34934 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34935
34936         Fix unportable awk script in vc-list-files.
34937         * build-aux/vc-list-files: In the replacement awk script, use
34938         substr with a second argument of 1, not zero.
34939         Report by Simon Josefsson.
34940
34941 2009-02-28  Bruno Haible  <bruno@clisp.org>
34942
34943         More support for FreeMiNT.
34944         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
34945         to FreeMiNT today.
34946         * lib/fwriting.c (fwriting): Likewise.
34947         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
34948
34949 2009-02-28  Bruno Haible  <bruno@clisp.org>
34950
34951         * tests/test-freadseek.c (main): Disable test beyond end of file on
34952         FreeMiNT.
34953         * tests/test-ftello.c (main): Likewise.
34954         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34955
34956 2009-02-28  Bruno Haible  <bruno@clisp.org>
34957
34958         Add tentative support for FreeMiNT.
34959         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
34960         * lib/fpurge.c (fpurge): Likewise.
34961         * lib/freadable.c (freadable): Likewise.
34962         * lib/freading.c (freading): Likewise.
34963         * lib/freadptr.c (freadptr): Likewise.
34964         * lib/freadseek.c (freadptrinc): Likewise.
34965         * lib/fseeko.c (rpl_fseeko): Likewise.
34966         * lib/fseterr.c (fseterr): Likewise.
34967         * lib/fwritable.c (fwritable): Likewise.
34968         * lib/fwriting.c (fwriting): Likewise.
34969         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
34970         Hourihane.
34971         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34972
34973 2009-02-28  Bruno Haible  <bruno@clisp.org>
34974
34975         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
34976         SIGCHLD.
34977         Reported by Jim Meyering.
34978
34979 2009-02-28  Bruno Haible  <bruno@clisp.org>
34980
34981         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
34982         Mention the results of these tests on various platforms.
34983         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
34984         order.
34985         * doc/posix-functions/printf.texi: Likewise.
34986         * doc/posix-functions/snprintf.texi: Likewise.
34987         * doc/posix-functions/sprintf.texi: Likewise.
34988         * doc/posix-functions/vfprintf.texi: Likewise.
34989         * doc/posix-functions/vprintf.texi: Likewise.
34990         * doc/posix-functions/vsnprintf.texi: Likewise.
34991         * doc/posix-functions/vsprintf.texi: Likewise.
34992         * doc/glibc-functions/obstack_printf.texi: Likewise.
34993         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
34994
34995 2009-02-28  Bruno Haible  <bruno@clisp.org>
34996
34997         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
34998         Reported by Loïc Minier <lool@dooz.org>.
34999
35000 2009-02-27  Bruno Haible  <bruno@clisp.org>
35001
35002         * gnulib-tool (func_import): Make the sed expression used to create the
35003         sed script for updating the .gitignore file POSIX compliant.
35004         Reported by Eric Blake.
35005
35006 2009-02-27  Bruno Haible  <bruno@clisp.org>
35007
35008         * gnulib-tool (sed): Don't alias as "sed --posix".
35009         Reported by Eric Blake.
35010
35011 2009-02-27  Bruno Haible  <bruno@clisp.org>
35012
35013         Avoid test link errors.
35014         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
35015         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
35016         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
35017         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
35018         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35019
35020 2009-02-27  Bruno Haible  <bruno@clisp.org>
35021
35022         Avoid spurious "(cached)" in configure output.
35023         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
35024         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
35025         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35026         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35027         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35028         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
35029         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35030         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
35031         Reported by Eric Blake.
35032
35033 2009-02-27  Eric Blake  <ebb9@byu.net>
35034
35035         printf: fix regression in previous patch
35036         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
35037
35038 2009-02-27  Bruno Haible  <bruno@clisp.org>
35039
35040         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
35041         value.
35042         * lib/stdint.in.h: Likewise.
35043         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
35044
35045 2009-02-27  Eric Blake  <ebb9@byu.net>
35046
35047         doc: mention more functions added in cygwin 1.7.0
35048         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
35049         addition.
35050         * doc/posix-functions/open_wmemstream.texi: Likewise.
35051         * doc/posix-functions/wcsnlen.texi: Likewise.
35052         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35053         * doc/posix-functions/wcstod.texi: Likewise.
35054         * doc/posix-functions/wcstof.texi: Likewise.
35055         * doc/posix-functions/wcstoimax.texi: Likewise.
35056         * doc/posix-functions/wcstok.texi: Likewise.
35057         * doc/posix-functions/wcstoumax.texi: Likewise.
35058
35059         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
35060         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
35061         * doc/posix-functions/fprintf.texi: Update.
35062         * doc/posix-functions/printf.texi: Update.
35063         * doc/posix-functions/snprintf.texi: Update.
35064         * doc/posix-functions/sprintf.texi: Update.
35065         * doc/posix-functions/vfprintf.texi: Update.
35066         * doc/posix-functions/vprintf.texi: Update.
35067         * doc/posix-functions/vsnprintf.texi: Update.
35068         * doc/posix-functions/vsprintf.texi: Update.
35069         * doc/glibc-functions/obstack_printf.texi: Update.
35070         * doc/glibc-functions/obstack_vprintf.texi: Update.
35071
35072 2009-02-26  Eric Blake  <ebb9@byu.net>
35073
35074         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
35075         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
35076         compilation bug by using runtime conversion.
35077         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35078         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
35079         * modules/ceill-tests (Files): Use nan.h.
35080         * modules/floorl-tests (Files): Likewise.
35081         * modules/frexpl-tests (Files): Likewise.
35082         * modules/isnanl-tests (Files): Likewise.
35083         * modules/ldexpl-tests (Files): Likewise.
35084         * modules/roundl-tests (Files): Likewise.
35085         * modules/truncl-tests (Files): Likewise.
35086         * tests/test-ceill.c (main): Use a working NaN.
35087         * tests/test-floorl.c (main): Likewise.
35088         * tests/test-frexpl.c (main): Likewise.
35089         * tests/test-isnan.c (test_long_double): Likewise.
35090         * tests/test-isnanl.h (main): Likewise.
35091         * tests/test-ldexpl.h (main): Likewise.
35092         * tests/test-roundl.h (main): Likewise.
35093         * tests/test-truncl.h (main): Likewise.
35094         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
35095
35096 2009-02-26  Eric Blake  <ebb9@byu.net>
35097             Bruno Haible  <bruno@clisp.org>
35098
35099         Work around a *printf bug with %ls on Solaris.
35100         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
35101         precision is specified, sprintf stops converting the wide string
35102         argument when the number of bytes that have been produced by this
35103         conversion equals or exceeds the precision.
35104         * doc/posix-functions/fprintf.texi: Update.
35105         * doc/posix-functions/printf.texi: Update.
35106         * doc/posix-functions/snprintf.texi: Update.
35107         * doc/posix-functions/sprintf.texi: Update.
35108         * doc/posix-functions/vfprintf.texi: Update.
35109         * doc/posix-functions/vprintf.texi: Update.
35110         * doc/posix-functions/vsnprintf.texi: Update.
35111         * doc/posix-functions/vsprintf.texi: Update.
35112         * doc/glibc-functions/obstack_printf.texi: Update.
35113         * doc/glibc-functions/obstack_vprintf.texi: Update.
35114
35115 2009-02-26  Eric Blake  <ebb9@byu.net>
35116
35117         stdlib: favor compiler check of random.h
35118         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
35119         to avoid an ObjC random.h installed by Swarm.
35120
35121 2009-02-26  Bruno Haible  <bruno@clisp.org>
35122
35123         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
35124         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
35125         Reported by Gary V. Vaughan <gary@gnu.org>.
35126
35127 2009-02-26  Bruno Haible  <bruno@clisp.org>
35128
35129         Fix *printf behaviour regarding the %ls directive.
35130         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
35131         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
35132         NEED_PRINTF_DIRECTIVE_LS.
35133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
35134         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35135         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35136         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
35137         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
35138         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
35139         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35140         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35141         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35142         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35143         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35144         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
35145         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35146         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35147         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35148         * doc/posix-functions/fprintf.texi: Update.
35149         * doc/posix-functions/printf.texi: Update.
35150         * doc/posix-functions/snprintf.texi: Update.
35151         * doc/posix-functions/sprintf.texi: Update.
35152         * doc/posix-functions/vfprintf.texi: Update.
35153         * doc/posix-functions/vprintf.texi: Update.
35154         * doc/posix-functions/vsnprintf.texi: Update.
35155         * doc/posix-functions/vsprintf.texi: Update.
35156         * doc/glibc-functions/obstack_printf.texi: Update.
35157         * doc/glibc-functions/obstack_vprintf.texi: Update.
35158         Reported by Eric Blake.
35159
35160 2009-02-25  Bruno Haible  <bruno@clisp.org>
35161
35162         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
35163         with known value.
35164         Reported by Gary V. Vaughan <gary@gnu.org>.
35165
35166 2009-02-25  Bruno Haible  <bruno@clisp.org>
35167
35168         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
35169         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
35170         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
35171         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
35172         Reported by Gary V. Vaughan <gary@gnu.org>.
35173
35174 2009-02-25  Bruno Haible  <bruno@clisp.org>
35175
35176         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
35177         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
35178         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
35179         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
35180         Reported by Gary V. Vaughan <gary@gnu.org>.
35181
35182 2009-02-25  Eric Blake  <ebb9@byu.net>
35183
35184         tests: skip fseek/ftell tests if ungetc is broken
35185         * m4/ungetc.m4: New file.
35186         * modules/fseek-tests: Split test, so ungetc dependency is
35187         separate from rest of test.
35188         * modules/fseeko-tests: Likewise.
35189         * modules/ftell-tests: Likewise.
35190         * modules/ftello-tests: Likewise.
35191         * tests/test-fseek.c (main): Isolate ungetc dependency.
35192         * tests/test-fseeko.c (main): Likewise.
35193         * tests/test-ftell.c (main): Likewise.
35194         * tests/test-ftello.c (main): Likewise.
35195         * tests/test-fseek2.sh: New file.
35196         * tests/test-fseeko2.sh: Likewise.
35197         * tests/test-ftell2.sh: Likewise.
35198         * tests/test-ftello2.sh: Likewise.
35199
35200 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
35201
35202         test-getaddrinfo: fix usage of skip return code 77
35203         * tests/test-gettaddrinfo.c: Return skip code 77 only
35204         for first occurance of skip (4x77 is not 77)
35205
35206 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
35207
35208         strtod: avoid C99 decl-after-statement
35209         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
35210
35211 2009-02-24  Eric Blake  <ebb9@byu.net>
35212
35213         strtod: detect HP-UX 11.31 bug
35214         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
35215         Reported by Gary V. Vaughan.
35216
35217 2009-02-23  Bruno Haible  <bruno@clisp.org>
35218
35219         Fix invalid read past end of memory block.
35220         * lib/vasnprintf.c (DCHAR_SET): Define.
35221         (local_wcslen): Define only when needed.
35222         (local_strnlen, local_wcsnlen): New functions.
35223         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
35224         directives that involve a conversion ourselves.
35225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
35226         wcsnlen, mbrtowc, wcrtomb.
35227         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
35228         * tests/test-vasprintf-posix.c (test_function): Likewise.
35229         * tests/test-snprintf-posix.h (test_function): Likewise.
35230         * tests/test-sprintf-posix.h (test_function): Likewise.
35231         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35232
35233 2009-02-22  Bruno Haible  <bruno@clisp.org>
35234
35235         Implement new clarified decomposition of Hangul syllables.
35236         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
35237         of type LTV, return only a pairwise decomposition.
35238         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
35239         Likewise.
35240         * tests/uninorm/test-decomposition.c (main): Updated expected result.
35241         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
35242         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
35243
35244 2009-02-22  Bruno Haible  <bruno@clisp.org>
35245
35246         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
35247         zero-length results and shrink excess allocated memory.
35248         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
35249         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
35250         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
35251         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
35252         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35253         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35254         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35255         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35256         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35257         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35258         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35259         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35260
35261 2009-02-21  Bruno Haible  <bruno@clisp.org>
35262
35263         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35264         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35265         spaces after a period. Put a space between a macro name and its
35266         argument list. Trivial rewordings.
35267         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35268         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35269         (main): Return 0 explicitly.
35270
35271 2009-02-21  Bruno Haible  <bruno@clisp.org>
35272
35273         Tests for module 'uninorm/filter'.
35274         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35275         * modules/uninorm/filter-tests: New file.
35276
35277         New module 'uninorm/filter'.
35278         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35279         uninorm_filter_flush, uninorm_filter_free): New declarations.
35280         * lib/uninorm/uninorm-filter.c: New file.
35281         * modules/uninorm/filter: New file.
35282
35283 2009-02-21  Bruno Haible  <bruno@clisp.org>
35284
35285         Tests for module 'uninorm/nfkc'.
35286         * tests/uninorm/test-nfkc.c: New file.
35287         * tests/uninorm/test-u8-nfkc.c: New file.
35288         * tests/uninorm/test-u16-nfkc.c: New file.
35289         * tests/uninorm/test-u32-nfkc.c: New file.
35290         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35291         * tests/uninorm/test-u32-nfkc-big.c: New file.
35292         * modules/uninorm/nfkc-tests: New file.
35293
35294         New module 'uninorm/nfkc'.
35295         * lib/uninorm/nfkc.c: New file.
35296         * modules/uninorm/nfkc: New file.
35297
35298         Tests for module 'uninorm/nfkd'.
35299         * tests/uninorm/test-nfkd.c: New file.
35300         * tests/uninorm/test-u8-nfkd.c: New file.
35301         * tests/uninorm/test-u16-nfkd.c: New file.
35302         * tests/uninorm/test-u32-nfkd.c: New file.
35303         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35304         * tests/uninorm/test-u32-nfkd-big.c: New file.
35305         * modules/uninorm/nfkd-tests: New file.
35306
35307         New module 'uninorm/nfkd'.
35308         * lib/uninorm/nfkd.c: New file.
35309         * modules/uninorm/nfkd: New file.
35310
35311         Tests for module 'uninorm/nfc'.
35312         * tests/uninorm/test-nfc.c: New file.
35313         * tests/uninorm/test-u8-nfc.c: New file.
35314         * tests/uninorm/test-u16-nfc.c: New file.
35315         * tests/uninorm/test-u32-nfc.c: New file.
35316         * tests/uninorm/test-u32-nfc-big.sh: New file.
35317         * tests/uninorm/test-u32-nfc-big.c: New file.
35318         * modules/uninorm/nfc-tests: New file.
35319
35320         New module 'uninorm/nfc'.
35321         * lib/uninorm/nfc.c: New file.
35322         * modules/uninorm/nfc: New file.
35323
35324         Tests for module 'uninorm/nfd'.
35325         * tests/uninorm/test-nfd.c: New file.
35326         * tests/uninorm/test-u8-nfd.c: New file.
35327         * tests/uninorm/test-u16-nfd.c: New file.
35328         * tests/uninorm/test-u32-nfd.c: New file.
35329         * tests/uninorm/test-u32-nfd-big.sh: New file.
35330         * tests/uninorm/test-u32-nfd-big.c: New file.
35331         * tests/uninorm/test-u32-normalize-big.h: New file.
35332         * tests/uninorm/test-u32-normalize-big.c: New file.
35333         * tests/uninorm/NormalizationTest.txt: New file, created from
35334         Unicode 5.1.0 NormalizationTest.txt.
35335         * modules/uninorm/nfd-tests: New file.
35336
35337         New module 'uninorm/nfd'.
35338         * lib/uninorm/nfd.c: New file.
35339         * modules/uninorm/nfd: New file.
35340
35341         New module 'uninorm/u32-normalize'.
35342         * lib/uninorm/u32-normalize.c: New file.
35343         * modules/uninorm/u32-normalize: New file.
35344
35345         New module 'uninorm/u16-normalize'.
35346         * lib/uninorm/u16-normalize.c: New file.
35347         * modules/uninorm/u16-normalize: New file.
35348
35349         New module 'uninorm/u8-normalize'.
35350         * lib/uninorm/u8-normalize.c: New file.
35351         * lib/uninorm/normalize-internal.h: New file.
35352         * lib/uninorm/u-normalize-internal.h: New file.
35353         * modules/uninorm/u8-normalize: New file.
35354
35355         New module 'uninorm/decompose-internal'.
35356         * lib/uninorm/decompose-internal.c: New file.
35357         * modules/uninorm/decompose-internal: New file.
35358
35359         Tests for module 'uninorm/composition'.
35360         * tests/uninorm/test-composition.c: New file.
35361         * modules/uninorm/composition-tests: New file.
35362
35363         New module 'uninorm/composition'.
35364         * lib/uninorm/composition.c: New file.
35365         * lib/uninorm/composition-table.gperf: New file, generated by
35366         gen-uni-tables.
35367         * modules/uninorm/composition: New file.
35368
35369         Tests for module 'uninorm/compat-decomposition'.
35370         * tests/uninorm/test-compat-decomposition.c: New file.
35371         * modules/uninorm/compat-decomposition-tests: New file.
35372
35373         New module 'uninorm/compat-decomposition'.
35374         * lib/uninorm/decompose-internal.h: New file.
35375         * lib/uninorm/compat-decomposition.c: New file.
35376         * modules/uninorm/compat-decomposition: New file.
35377
35378         Tests for module 'uninorm/canonical-decomposition'.
35379         * tests/uninorm/test-canonical-decomposition.c: New file.
35380         * modules/uninorm/canonical-decomposition-tests: New file.
35381
35382         New module 'uninorm/canonical-decomposition'.
35383         * lib/uninorm/canonical-decomposition.c: New file.
35384         * modules/uninorm/canonical-decomposition: New file.
35385
35386         Tests for module 'uninorm/decomposition'.
35387         * tests/uninorm/test-decomposition.c: New file.
35388         * modules/uninorm/decomposition-tests: New file.
35389
35390         New module 'uninorm/decomposition'.
35391         * lib/uninorm/decomposition.c: New file.
35392         * modules/uninorm/decomposition: New file.
35393
35394         New module 'uninorm/decomposition-table'.
35395         * lib/uninorm/decomposition-table.h: New file.
35396         * lib/uninorm/decomposition-table.c: New file.
35397         * lib/uninorm/decomposition-table1.h: New file, generated by
35398         gen-uni-tables.
35399         * lib/uninorm/decomposition-table2.h: New file, generated by
35400         gen-uni-tables.
35401         * modules/uninorm/decomposition-table: New file.
35402
35403         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35404         (UC_DECOMP_*): New enumeration items.
35405         (get_decomposition): New function.
35406         (struct decomp_table): New type.
35407         (output_decomposition, output_decomposition_tables): New functions.
35408         (unicode_composition_exclusions): New variable.
35409         (fill_composition_exclusions, debug_output_composition_tables): New
35410         functions.
35411         (main): Accept one more argument. Invoke fill_composition_exclusions.
35412         Output decomposition and composition tables.
35413
35414         New module 'uninorm/base'.
35415         * lib/uninorm.h: New file.
35416         * lib/unictype.h: Update comment.
35417         * modules/uninorm/base: New file.
35418
35419 2009-02-21  David Lutterkort  <lutter@redhat.com>
35420
35421         Tests for module 'safe-alloc'.
35422         * tests/test-safe-alloc.c: New file.
35423         * modules/safe-alloc-tests: New file.
35424
35425         New module 'safe-alloc'.
35426         * lib/safe-alloc.h: New file.
35427         * lib/safe-alloc.c: New file.
35428         * m4/safe-alloc.m4: New file.
35429         * modules/safe-alloc: New file.
35430         * doc/safe-alloc.texi: New file.
35431         * doc/gnulib.texi: Include it.
35432         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35433         safe-alloc.
35434
35435 2009-02-18  Bruno Haible  <bruno@clisp.org>
35436
35437         Fix link error on non-glibc systems.
35438         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35439         variable.
35440         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35441
35442 2009-02-18  Jim Meyering  <meyering@redhat.com>
35443
35444         fts: avoid used-uninitialized error due to recent change
35445         * lib/fts.c (fts_read): Guard uses of the new member,
35446         parent->fts_n_dirs_remaining, since it's not relevant for
35447         the parent of a directory specified on the command-line.
35448
35449 2009-02-17  James Youngman  <jay@gnu.org>
35450             Bruno Haible  <bruno@clisp.org>
35451
35452         * m4/include_next.m4: Reformulate comment.
35453
35454 2009-02-16  Jim Meyering  <meyering@redhat.com>
35455
35456         fts: add #if guards so that the fts_lgpl module still builds
35457         * lib/fts.c: Guard just-added hash-table-using parts with
35458         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35459         Reported by Simon Josefsson.
35460
35461 2009-02-15  Bruno Haible  <bruno@clisp.org>
35462
35463         * modules/array-mergesort-tests: New file.
35464         * tests/test-array-mergesort.c: New file.
35465
35466         New module 'array-mergesort'.
35467         * modules/array-mergesort: New file.
35468         * lib/array-mergesort.h: New file.
35469
35470 2009-02-15  Bruno Haible  <bruno@clisp.org>
35471
35472         Fix 2009-02-07 commit.
35473         * lib/gen-uni-tables.c (output_predicate, output_category,
35474         output_combclass, output_bidi_category, output_decimal_digit,
35475         output_digit, output_numeric, output_mirror, output_scripts,
35476         output_ident_category, output_simple_mapping): Fix format directives.
35477         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
35478
35479 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
35480
35481         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
35482         fixes are available from IBM.
35483
35484 2009-02-13  Jim Meyering  <meyering@redhat.com>
35485
35486         fts: arrange not to stat non-directories in more cases
35487         This makes GNU find (when it doesn't need to stat each file)
35488         *much* more efficient at traversing reiserfs file systems.
35489         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
35490         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
35491         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
35492         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
35493         (leaf_optimization_applies): New function.
35494         (LCO_hash, LCO_compare): New helper functions.
35495         (link_count_optimize_ok): New function.
35496         (fts_stat): Initialize new member (if dir).
35497         (fts_read): Decrement parent's fts_n_dirs_remaining count if
35498         we've just stat'ed a directory.  Skip the stat call when possible.
35499         ---
35500         Note this AFS-related exchange:
35501         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
35502         and note find's pioctl call in find/fstype.c.
35503         But that is necessary only if you want to enable the
35504         optimization for AFS, and for now, I don't.
35505
35506         fts: move a function definition "up" (no semantic change)
35507         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
35508         "up" to precede upcoming use of a related function.
35509
35510 2009-02-11  Jim Meyering  <meyering@redhat.com>
35511
35512         fts: correct internal computation of nlinks (optimization-related)
35513         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
35514         whether the current entry is a directory, so don't test it.
35515
35516 2009-02-10  Bruno Haible  <bruno@clisp.org>
35517
35518         Tests for module 'uniwbrk/ulc-wordbreaks'.
35519         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
35520         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
35521         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
35522
35523         Tests for module 'uniwbrk/u32-wordbreaks'.
35524         * modules/uniwbrk/u32-wordbreaks-tests: New file.
35525         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
35526
35527         Tests for module 'uniwbrk/u16-wordbreaks'.
35528         * modules/uniwbrk/u16-wordbreaks-tests: New file.
35529         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
35530
35531         Tests for module 'uniwbrk/u8-wordbreaks'.
35532         * modules/uniwbrk/u8-wordbreaks-tests: New file.
35533         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
35534
35535 2009-02-10  Bruno Haible  <bruno@clisp.org>
35536
35537         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
35538         property.
35539         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
35540         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
35541         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
35542
35543 2009-02-10  Simon Josefsson  <simon@josefsson.org>
35544
35545         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
35546         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
35547
35548 2009-02-10  Bruno Haible  <bruno@clisp.org>
35549
35550         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
35551         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
35552         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
35553         * lib/unilbrk/u8-possible-linebreaks.c: Update.
35554         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
35555         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
35556
35557 2009-02-09  Simon Josefsson  <simon@josefsson.org>
35558
35559         * lib/sockets.h (gl_fd_to_handle): New function.
35560
35561         * tests/test-sockets.c: Call gl_fd_to_handle.
35562
35563 2009-02-09  Bruno Haible  <bruno@clisp.org>
35564
35565         * doc/havelib.texi: Document the conventions on bi-arch systems.
35566
35567 2009-02-08  Bruno Haible  <bruno@clisp.org>
35568
35569         Document the AC_LIB_LINKFLAGS macro.
35570         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35571         * doc/gnulib.texi: Include it.
35572
35573 2009-02-08  Bruno Haible  <bruno@clisp.org>
35574
35575         Fix wrong order of sections, compared to TOC.
35576         * doc/gnulib.texi: Include relocatable-maint.texi after the
35577         "Regular expressions" node, not before.
35578
35579 2009-02-08  Bruno Haible  <bruno@clisp.org>
35580
35581         Tests for module 'unicase/totitle'.
35582         * modules/unicase/totitle-tests: New file.
35583
35584         Tests for module 'unicase/tolower'.
35585         * modules/unicase/tolower-tests: New file.
35586
35587         Tests for module 'unicase/toupper'.
35588         * modules/unicase/toupper-tests: New file.
35589         * tests/unicase/test-mapping-part1.h: New file.
35590         * tests/unicase/test-mapping-part2.h: New file.
35591
35592         New module 'unicase/totitle'.
35593         * modules/unicase/totitle: New file.
35594         * lib/unicase/totitle.c: New file.
35595
35596         New module 'unicase/tolower'.
35597         * modules/unicase/tolower: New file.
35598         * lib/unicase/tolower.c: New file.
35599
35600         New module 'unicase/toupper'.
35601         * modules/unicase/toupper: New file.
35602         * lib/unicase/toupper.c: New file.
35603         * lib/unicase/simple-mapping.h: New file.
35604
35605         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35606         (mapping_table): New structure.
35607         (output_simple_mapping): New function.
35608         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35609         * modules/gen-uni-tables (Description): Update.
35610         * lib/unicase/toupper.h: New file, automatically generated by
35611         gen-uni-tables.
35612         * lib/unicase/tolower.h: New file, automatically generated by
35613         gen-uni-tables.
35614         * lib/unicase/totitle.h: New file, automatically generated by
35615         gen-uni-tables.
35616         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35617         gen-uni-tables.
35618         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35619         gen-uni-tables.
35620         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35621         gen-uni-tables.
35622
35623         New module 'unicase/base'.
35624         * modules/unicase/base: New file.
35625         * lib/unicase.h: New file.
35626
35627 2009-02-08  Bruno Haible  <bruno@clisp.org>
35628
35629         New module 'uniwbrk/ulc-wordbreaks'.
35630         * modules/uniwbrk/ulc-wordbreaks: New file.
35631         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35632
35633         New module 'uniwbrk/u32-wordbreaks'.
35634         * modules/uniwbrk/u32-wordbreaks: New file.
35635         * lib/uniwbrk/u32-wordbreaks.c: New file.
35636
35637         New module 'uniwbrk/u16-wordbreaks'.
35638         * modules/uniwbrk/u16-wordbreaks: New file.
35639         * lib/uniwbrk/u16-wordbreaks.c: New file.
35640
35641         New module 'uniwbrk/u8-wordbreaks'.
35642         * modules/uniwbrk/u8-wordbreaks: New file.
35643         * lib/uniwbrk/u8-wordbreaks.c: New file.
35644         * lib/uniwbrk/u-wordbreaks.h: New file.
35645
35646         New module 'uniwbrk/table'.
35647         * modules/uniwbrk/table: New file.
35648         * lib/uniwbrk/wbrktable.h: New file.
35649         * lib/uniwbrk/wbrktable.c: New file.
35650
35651         New module 'uniwbrk/wordbreak-property'.
35652         * modules/uniwbrk/wordbreak-property: New file.
35653         * lib/uniwbrk/wordbreak-property.c: New file.
35654
35655         * lib/gen-uni-tables.c (WBP_*): New enum items.
35656         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
35657         (unicode_org_wbp): New variable.
35658         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
35659         New functions.
35660         (wbp_table): New structure.
35661         (output_wbp, output_wbrk_tables): New functions.
35662         (main): Accept additional argument. Invoke fill_org_wbp,
35663         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
35664         output_wbrk_tables.
35665         * modules/gen-uni-tables (Description): Update.
35666         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
35667         gen-uni-tables.
35668
35669         New module 'uniwbrk/base'.
35670         * modules/uniwbrk/base: New file.
35671         * lib/uniwbrk.h: New file.
35672
35673 2009-02-08  Bruno Haible  <bruno@clisp.org>
35674
35675         Update to Unicode 5.1.0.
35676         * lib/gen-uni-tables.c (is_property_alphabetic): Include
35677         U+2185..U+2188.
35678         (is_property_default_ignorable_code_point): Don't include characters
35679         of category Cc or Cs and not-a-characters.
35680         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
35681         U+0D79, U+109E, U+109F, U+A60C.
35682         * lib/unictype/bidi_of.h: Regenerated.
35683         * lib/unictype/blocks.h: Regenerated.
35684         * lib/unictype/categ_C.h: Regenerated.
35685         * lib/unictype/categ_Cf.h: Regenerated.
35686         * lib/unictype/categ_Cn.h: Regenerated.
35687         * lib/unictype/categ_L.h: Regenerated.
35688         * lib/unictype/categ_Ll.h: Regenerated.
35689         * lib/unictype/categ_Lm.h: Regenerated.
35690         * lib/unictype/categ_Lo.h: Regenerated.
35691         * lib/unictype/categ_Lu.h: Regenerated.
35692         * lib/unictype/categ_M.h: Regenerated.
35693         * lib/unictype/categ_Mc.h: Regenerated.
35694         * lib/unictype/categ_Me.h: Regenerated.
35695         * lib/unictype/categ_Mn.h: Regenerated.
35696         * lib/unictype/categ_N.h: Regenerated.
35697         * lib/unictype/categ_Nd.h: Regenerated.
35698         * lib/unictype/categ_Nl.h: Regenerated.
35699         * lib/unictype/categ_No.h: Regenerated.
35700         * lib/unictype/categ_P.h: Regenerated.
35701         * lib/unictype/categ_Pd.h: Regenerated.
35702         * lib/unictype/categ_Pe.h: Regenerated.
35703         * lib/unictype/categ_Pf.h: Regenerated.
35704         * lib/unictype/categ_Pi.h: Regenerated.
35705         * lib/unictype/categ_Po.h: Regenerated.
35706         * lib/unictype/categ_Ps.h: Regenerated.
35707         * lib/unictype/categ_S.h: Regenerated.
35708         * lib/unictype/categ_Sk.h: Regenerated.
35709         * lib/unictype/categ_Sm.h: Regenerated.
35710         * lib/unictype/categ_So.h: Regenerated.
35711         * lib/unictype/categ_of.h: Regenerated.
35712         * lib/unictype/combining.h: Regenerated.
35713         * lib/unictype/ctype_alnum.h: Regenerated.
35714         * lib/unictype/ctype_alpha.h: Regenerated.
35715         * lib/unictype/ctype_graph.h: Regenerated.
35716         * lib/unictype/ctype_lower.h: Regenerated.
35717         * lib/unictype/ctype_print.h: Regenerated.
35718         * lib/unictype/ctype_punct.h: Regenerated.
35719         * lib/unictype/ctype_upper.h: Regenerated.
35720         * lib/unictype/decdigit.h: Regenerated.
35721         * lib/unictype/digit.h: Regenerated.
35722         * lib/unictype/mirror.h: Regenerated.
35723         * lib/unictype/numeric.h: Regenerated.
35724         * lib/unictype/pr_alphabetic.h: Regenerated.
35725         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
35726         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
35727         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
35728         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
35729         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
35730         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
35731         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
35732         * lib/unictype/pr_combining.h: Regenerated.
35733         * lib/unictype/pr_dash.h: Regenerated.
35734         * lib/unictype/pr_decimal_digit.h: Regenerated.
35735         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
35736         * lib/unictype/pr_deprecated.h: Regenerated.
35737         * lib/unictype/pr_diacritic.h: Regenerated.
35738         * lib/unictype/pr_extender.h: Regenerated.
35739         * lib/unictype/pr_format_control.h: Regenerated.
35740         * lib/unictype/pr_grapheme_base.h: Regenerated.
35741         * lib/unictype/pr_grapheme_extend.h: Regenerated.
35742         * lib/unictype/pr_grapheme_link.h: Regenerated.
35743         * lib/unictype/pr_id_continue.h: Regenerated.
35744         * lib/unictype/pr_id_start.h: Regenerated.
35745         * lib/unictype/pr_ideographic.h: Regenerated.
35746         * lib/unictype/pr_ignorable_control.h: Regenerated.
35747         * lib/unictype/pr_lowercase.h: Regenerated.
35748         * lib/unictype/pr_math.h: Regenerated.
35749         * lib/unictype/pr_numeric.h: Regenerated.
35750         * lib/unictype/pr_other_alphabetic.h: Regenerated.
35751         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
35752         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
35753         * lib/unictype/pr_other_id_continue.h: Regenerated.
35754         * lib/unictype/pr_other_lowercase.h: Regenerated.
35755         * lib/unictype/pr_other_math.h: Regenerated.
35756         * lib/unictype/pr_punctuation.h: Regenerated.
35757         * lib/unictype/pr_sentence_terminal.h: Regenerated.
35758         * lib/unictype/pr_soft_dotted.h: Regenerated.
35759         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
35760         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
35761         * lib/unictype/pr_unified_ideograph.h: Regenerated.
35762         * lib/unictype/pr_uppercase.h: Regenerated.
35763         * lib/unictype/pr_xid_continue.h: Regenerated.
35764         * lib/unictype/pr_xid_start.h: Regenerated.
35765         * lib/unictype/pr_zero_width.h: Regenerated.
35766         * lib/unictype/scripts.h: Regenerated.
35767         * lib/unictype/scripts_byname.gperf: Regenerated.
35768         * lib/unictype/sy_java_ident.h: Regenerated.
35769         * lib/unilbrk/lbrkprop1.h: Regenerated.
35770         * lib/unilbrk/lbrkprop2.h: Regenerated.
35771         * tests/unictype/test-categ_C.c: Regenerated.
35772         * tests/unictype/test-categ_Cf.c: Regenerated.
35773         * tests/unictype/test-categ_Cn.c: Regenerated.
35774         * tests/unictype/test-categ_L.c: Regenerated.
35775         * tests/unictype/test-categ_Ll.c: Regenerated.
35776         * tests/unictype/test-categ_Lm.c: Regenerated.
35777         * tests/unictype/test-categ_Lo.c: Regenerated.
35778         * tests/unictype/test-categ_Lu.c: Regenerated.
35779         * tests/unictype/test-categ_M.c: Regenerated.
35780         * tests/unictype/test-categ_Mc.c: Regenerated.
35781         * tests/unictype/test-categ_Me.c: Regenerated.
35782         * tests/unictype/test-categ_Mn.c: Regenerated.
35783         * tests/unictype/test-categ_N.c: Regenerated.
35784         * tests/unictype/test-categ_Nd.c: Regenerated.
35785         * tests/unictype/test-categ_Nl.c: Regenerated.
35786         * tests/unictype/test-categ_No.c: Regenerated.
35787         * tests/unictype/test-categ_P.c: Regenerated.
35788         * tests/unictype/test-categ_Pd.c: Regenerated.
35789         * tests/unictype/test-categ_Pe.c: Regenerated.
35790         * tests/unictype/test-categ_Pf.c: Regenerated.
35791         * tests/unictype/test-categ_Pi.c: Regenerated.
35792         * tests/unictype/test-categ_Po.c: Regenerated.
35793         * tests/unictype/test-categ_Ps.c: Regenerated.
35794         * tests/unictype/test-categ_S.c: Regenerated.
35795         * tests/unictype/test-categ_Sk.c: Regenerated.
35796         * tests/unictype/test-categ_Sm.c: Regenerated.
35797         * tests/unictype/test-categ_So.c: Regenerated.
35798         * tests/unictype/test-ctype_alnum.c: Regenerated.
35799         * tests/unictype/test-ctype_alpha.c: Regenerated.
35800         * tests/unictype/test-ctype_graph.c: Regenerated.
35801         * tests/unictype/test-ctype_lower.c: Regenerated.
35802         * tests/unictype/test-ctype_print.c: Regenerated.
35803         * tests/unictype/test-ctype_punct.c: Regenerated.
35804         * tests/unictype/test-ctype_upper.c: Regenerated.
35805         * tests/unictype/test-decdigit.h: Regenerated.
35806         * tests/unictype/test-digit.h: Regenerated.
35807         * tests/unictype/test-numeric.h: Regenerated.
35808         * tests/unictype/test-pr_alphabetic.c: Regenerated.
35809         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
35810         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
35811         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
35812         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
35813         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
35814         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
35815         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
35816         * tests/unictype/test-pr_combining.c: Regenerated.
35817         * tests/unictype/test-pr_dash.c: Regenerated.
35818         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
35819         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
35820         * tests/unictype/test-pr_deprecated.c: Regenerated.
35821         * tests/unictype/test-pr_diacritic.c: Regenerated.
35822         * tests/unictype/test-pr_extender.c: Regenerated.
35823         * tests/unictype/test-pr_format_control.c: Regenerated.
35824         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
35825         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
35826         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
35827         * tests/unictype/test-pr_id_continue.c: Regenerated.
35828         * tests/unictype/test-pr_id_start.c: Regenerated.
35829         * tests/unictype/test-pr_ideographic.c: Regenerated.
35830         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
35831         * tests/unictype/test-pr_lowercase.c: Regenerated.
35832         * tests/unictype/test-pr_math.c: Regenerated.
35833         * tests/unictype/test-pr_numeric.c: Regenerated.
35834         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
35835         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
35836         Regenerated.
35837         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
35838         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
35839         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
35840         * tests/unictype/test-pr_other_math.c: Regenerated.
35841         * tests/unictype/test-pr_punctuation.c: Regenerated.
35842         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
35843         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
35844         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
35845         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
35846         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
35847         * tests/unictype/test-pr_uppercase.c: Regenerated.
35848         * tests/unictype/test-pr_xid_continue.c: Regenerated.
35849         * tests/unictype/test-pr_xid_start.c: Regenerated.
35850         * tests/unictype/test-pr_zero_width.c: Regenerated.
35851
35852         Update to Unicode 5.1.0.
35853         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
35854         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
35855         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
35856         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
35857         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
35858         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
35859         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
35860         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
35861         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
35862         (nonspacing_table_ind): Update.
35863         * tests/uniwidth/test-uc_width2.sh: Update expected result.
35864
35865         Update to Unicode 5.1.0.
35866         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
35867         code transform.
35868         * lib/uniname/uniname.c (unicode_character_name,
35869         unicode_name_character): Add the range 0x1Fxxx to the code transform.
35870         * lib/uniname/uninames.h: Regenerated.
35871         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
35872
35873 2009-02-07  Bruno Haible  <bruno@clisp.org>
35874
35875         Merge gen-ctype and gen-lbrk into a single program.
35876         * lib/gen-uni-tables.c: New file, incorporating
35877         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
35878         Add directory prefixes to the names of the generated files.
35879         * lib/unictype/gen-ctype.c: Remove file.
35880         * lib/unilbrk/gen-lbrk.c: Remove file.
35881         * modules/gen-uni-tables: New file.
35882         * modules/unictype/gen-ctype: Remove file.
35883         * modules/unilbrk/gen-lbrk: Remove file.
35884
35885 2009-02-07  Bruno Haible  <bruno@clisp.org>
35886
35887         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
35888
35889         New module 'unistr/u32-strcoll'.
35890         * modules/unistr/u32-strcoll: New file.
35891         * lib/unistr/u32-strcoll.c: New file.
35892
35893         New module 'unistr/u16-strcoll'.
35894         * modules/unistr/u16-strcoll: New file.
35895         * lib/unistr/u16-strcoll.c: New file.
35896
35897         New module 'unistr/u8-strcoll'.
35898         * modules/unistr/u8-strcoll: New file.
35899         * lib/unistr/u8-strcoll.c: New file.
35900         * lib/unistr/u-strcoll.h: New file.
35901
35902 2009-02-07  Bruno Haible  <bruno@clisp.org>
35903
35904         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
35905         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35906         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35907         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
35908         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
35909         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
35910
35911 2009-02-07  Bruno Haible  <bruno@clisp.org>
35912
35913         Make 64-bit clean.
35914         * lib/unictype/gen-ctype.c (output_predicate, output_category,
35915         output_combclass, output_bidi_category, output_decimal_digit,
35916         output_digit, output_numeric, output_mirror, output_scripts,
35917         output_ident_category): Use proper width specifier in format strings.
35918
35919 2009-02-07  Bruno Haible  <bruno@clisp.org>
35920
35921         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
35922         failure behaviour.
35923
35924 2009-02-07  Jim Meyering  <meyering@redhat.com>
35925
35926         regex: avoid compilation failure with upcoming gcc-4.4
35927         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
35928         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
35929         "... error: integer overflow in preprocessor expression".
35930
35931 2009-02-05  Ben Pfaff  <blp@gnu.org>
35932
35933         Fix link errors on Windows when close module is used.
35934         * modules/close: Add $(LIB_CLOSE) to Link section.
35935         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
35936         $(LIB_CLOSE) on Windows.
35937
35938 2009-02-05  Jim Meyering  <meyering@redhat.com>
35939
35940         still avoid unused-parameter warnings, but do it cleanly
35941         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
35942         (get_fs_usage): Cast to void instead.
35943         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
35944         (dev_from_mount_options, read_file_system_list): Cast to void.
35945         Prompted by Bruno Haible.
35946
35947 2009-02-04  Jim Meyering  <meyering@redhat.com>
35948
35949         fsusage.c: correct copyright year
35950         * lib/fsusage.c: Reflect year in which the change is pushed into
35951
35952         avoid misc. warnings
35953         * lib/fsusage.c (UNUSED_PARAM): Define.
35954         (get_fs_usage): Mark parameter "disk" as unused.
35955         * lib/getugroups.c (getgrent): Use "void" in prototype.
35956         * lib/mountlist.c: Mark unused parameters.
35957         (read_file_system_list): Declare a local with "const".
35958         * lib/nanosleep.c (getnow): Declare static.
35959         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
35960
35961         dirfd: set errno upon failure
35962         * lib/dirfd.c: Include <errno.h>.
35963         Set errno to ENOTSUP when returning -1.
35964         * modules/dirfd (Depends-on): Add errno.
35965         Suggested by John Kodis <kodis@comcast.net>.
35966
35967 2009-02-01  Bruno Haible  <bruno@clisp.org>
35968
35969         Don't assume sizeof (long) >= sizeof (void *).
35970         * lib/memcmp.c: Include stdint.h.
35971         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
35972         srcp2 to 'const byte *'.
35973         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
35974         types to uintptr_t.
35975         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
35976         * modules/memcmp (Depends-on): Add stdint.
35977         Reported by Ozkan Sezer <sezeroz@gmail.com>.
35978
35979 2009-01-30  Eric Blake  <ebb9@byu.net>
35980
35981         fix more require-before-expand issues
35982         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
35983         expand, AC_PROG_AWK.
35984         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
35985
35986 2009-01-28  Eric Blake  <ebb9@byu.net>
35987
35988         version-etc: use consistent URL formatting
35989         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
35990         Improve formatting.  Use fputs for string without %.
35991
35992 2009-01-28  Jim Meyering  <meyering@redhat.com>
35993
35994         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
35995         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
35996         "underquoted definition of NAME" from autoconf-2.59.
35997
35998 2009-01-28  Bruno Haible  <bruno@clisp.org>
35999
36000         * doc/gnulib.texi: Add "Obsolete modules" to index.
36001
36002 2009-01-28  Jim Meyering  <meyering@redhat.com>
36003
36004         useless-if-before-free: recognize more variants
36005         * build-aux/useless-if-before-free: Also recognize e.g.,
36006         if (NULL != p) free (p);
36007
36008 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
36009
36010         test-getaddrinfo: skip (don't fail) this test when there's no network
36011         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
36012         on the presumption that it means you lack network access.
36013
36014 2009-01-26  Jim Meyering  <meyering@redhat.com>
36015
36016         fflush: avoid warnings on modern systems
36017         * lib/fflush.c (rpl_fflush): Move declarations of locals,
36018         pos and result, into scopes where they're used.
36019
36020 2009-01-26  Eric Blake  <ebb9@byu.net>
36021
36022         Silence warning reintroduced by recent extensions patch.
36023         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
36024         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
36025         autoconf.
36026
36027         Backport improved autoconf semantics of AC_DEFUN_ONCE.
36028         * m4/00gnulib.m4: New file.
36029         * gnulib-tool (func_get_filelist): Always use it.
36030         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
36031         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
36032
36033 2009-01-25  Bruno Haible  <bruno@clisp.org>
36034
36035         Make test-quotearg work on MacOS X and AIX.
36036         * tests/test-quotearg.sh: New file.
36037         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
36038         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
36039         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
36040         include <libintl.h>.
36041         (fake_locale): Remove variable.
36042         (gettext, dgettext, dcgettext): Remove functions.
36043         (main): Instead of setting a fake locale, set a real locale. Call
36044         textdomain and bindtextdomain.
36045         * modules/quotearg-tests (Files): Add the new files.
36046         (Depends-on): Add gettext, setenv, unsetenv.
36047         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36048         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
36049         Augment TESTS_ENVIRONMENT.
36050
36051 2009-01-25  Bruno Haible  <bruno@clisp.org>
36052
36053         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
36054         fr_FR.ISO8859-1 locale on MacOS X.
36055         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
36056         ja_JP.eucJP locale on MacOS X.
36057         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
36058         zh_CN.GB18030 locale on MacOS X.
36059
36060 2009-01-25  Bruno Haible  <bruno@clisp.org>
36061
36062         Avoid link errors on MacOS X 10.3.
36063         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
36064         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36065
36066 2009-01-25  Bruno Haible  <bruno@clisp.org>
36067
36068         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36069         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
36070         * modules/pipe (Files): Remove m4/posix_spawn.m4.
36071         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36072         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
36073         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36074         posix_spawnattr_init, posix_spawnattr_setsigmask,
36075         posix_spawnattr_setflags, posix_spawnattr_destroy.
36076
36077         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36078         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
36079         * modules/execute (Files): Remove m4/posix_spawn.m4.
36080         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36081         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36082         posix_spawnattr_init, posix_spawnattr_setsigmask,
36083         posix_spawnattr_setflags, posix_spawnattr_destroy.
36084
36085 2009-01-25  Bruno Haible  <bruno@clisp.org>
36086
36087         * lib/glthread/threadlib.c: Include <stdlib.h>.
36088
36089 2009-01-25  Bruno Haible  <bruno@clisp.org>
36090
36091         * lib/glthread/threadlib.c (dummy): New declaration.
36092
36093 2009-01-25  Bruno Haible  <bruno@clisp.org>
36094
36095         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
36096         multibyte characters also for the GB18030 encoding. Don't crash when
36097         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
36098
36099 2009-01-25  Bruno Haible  <bruno@clisp.org>
36100
36101         Avoid redefining 'struct random_data' on OSF/1 5.1.
36102         * lib/stdlib.in.h: Include <random.h> if it exists.
36103         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
36104         HAVE_RANDOM_H. Include <random.h> when testing whether
36105         'struct random_data' exists.
36106         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
36107
36108 2009-01-25  Bruno Haible  <bruno@clisp.org>
36109
36110         Don't install charset.alias on MacOS X >= 10.3.
36111         * lib/localcharset.c (DARWIN7): New macro.
36112         (get_charset_aliases): Hardcode the result for Darwin7.
36113         * modules/localcharset (install-exec-local): Don't install
36114         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
36115
36116 2009-01-25  Bruno Haible  <bruno@clisp.org>
36117
36118         Don't install charset.alias on mingw and Cygwin.
36119         * modules/localcharset (install-exec-local): Don't install
36120         charset.alias on mingw and Cygwin, if the file does not yet exist.
36121         The result for these platforms is hardcoded in localcharset.c.
36122
36123 2009-01-25  Bruno Haible  <bruno@clisp.org>
36124
36125         Make it possible again to use AC_GNU_SOURCE together with gnulib.
36126         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
36127         before requiring AC_USE_SYSTEM_EXTENSIONS.
36128
36129 2009-01-25  Jim Meyering  <meyering@redhat.com>
36130
36131         c-strtod: avoid warnings
36132         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
36133         "assignment discards qualifiers from pointer target type" warnings.
36134
36135 2009-01-24  Bruno Haible  <bruno@clisp.org>
36136
36137         Add support for non-UTF-8 locales on MacOS X.
36138         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
36139         canonical encodings. For Darwin 7 and newer, don't map traditional
36140         encodings to UTF-8.
36141         Reported by Vincent Lefevre <vincent@vinc17.org>
36142         at <http://savannah.gnu.org/bugs/?25235>.
36143
36144 2009-01-24  Bruno Haible  <bruno@clisp.org>
36145
36146         * doc/gnulib.texi (Obsolete modules): New section.
36147         Reported by Mike Frysinger <vapier@gentoo.org>.
36148
36149 2009-01-24  Bruno Haible  <bruno@clisp.org>
36150
36151         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
36152         (%.dvi): New rule.
36153
36154 2009-01-24  Bruno Haible  <bruno@clisp.org>
36155
36156         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
36157         Reported by Eric Blake.
36158
36159 2009-01-24  Bruno Haible  <bruno@clisp.org>
36160
36161         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
36162         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
36163         Reported by Gary V. Vaughan <gary@gnu.org>.
36164
36165 2009-01-24  Bruno Haible  <bruno@clisp.org>
36166
36167         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
36168
36169 2009-01-23  Bruno Haible  <bruno@clisp.org>
36170
36171         Make c-strtod, c-strtold usable in libraries.
36172         * lib/c-strtod.c: Include string.h instead of xalloc.h.
36173         (C_STRTOD): Call strdup instead of xstrdup.
36174         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
36175         * modules/c-strtold (Depends-on): Likewise.
36176         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
36177         * NEWS: Mention the change.
36178         Reported by Michael Gold <mgold@ncf.ca>.
36179
36180 2009-01-23  Jim Meyering  <meyering@redhat.com>
36181
36182         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
36183         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
36184         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
36185
36186 2009-01-23  Simon Josefsson  <simon@josefsson.org>
36187
36188         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
36189         GNU CoreUtils.
36190         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
36191         * modules/version-etc (Description): Update.
36192
36193 2009-01-22  Bruno Haible  <bruno@clisp.org>
36194
36195         Cache the C locale object.
36196         * lib/c-strtod.c (c_locale_cache): New variable.
36197         (c_locale): New function.
36198         (C_STRTOD): Use it, and don't call freelocale.
36199         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
36200         Suggested by Paolo Bonzini.
36201
36202 2009-01-21  Bruno Haible  <bruno@clisp.org>
36203
36204         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
36205         conditions other than overflow.
36206
36207 2009-01-21  Bruno Haible  <bruno@clisp.org>
36208
36209         * lib/c-strtod.c: Include errno.h.
36210         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
36211         value from STRTOD_L and STRTOD.
36212
36213 2009-01-21  Bruno Haible  <bruno@clisp.org>
36214         and Jim Meyering  <meyering@redhat.com>
36215
36216         nanosleep: skip configure test (fail it) for apple universal builds
36217         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
36218         universal builds, assume that nanosleep does not work.
36219         * modules/nanosleep (Depends-on): Add multiarch.
36220
36221         mktime: skip configure test (fail it) for apple universal builds
36222         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
36223         universal builds, assume that mktime does not work.
36224         * modules/mktime (Depends-on): Add multiarch.
36225
36226 2009-01-21  Eric Blake  <ebb9@byu.net>
36227
36228         multiarch: avoid expand-before-require warning
36229         * modules/multiarch (configure.ac): Require, rather than expand,
36230         gl_MULTIARCH.
36231         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
36232         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
36233         enforce that all clients require it.  Partial reversion of
36234         2008-12-29 patch.
36235
36236         error: avoid expand-before-require warning
36237         * modules/errno (configure.ac): Require, rather than expand,
36238         gl_HEADER_ERRNO_H.
36239         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
36240         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
36241         enforce that all clients require it.
36242
36243         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
36244         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
36245         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
36246         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
36247
36248 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
36249
36250         Revert:
36251         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36252
36253         regex: do not depend on obsolete modules.
36254         * modules/regex: Remove memcmp and memmove.
36255
36256 2009-01-20  Bruno Haible  <bruno@clisp.org>
36257
36258         Make the 'link' module link on Windows NT 4.
36259         * lib/link.c (_WIN32_WINNT): Don't define.
36260         (CreateHardLinkFuncType): New type.
36261         (CreateHardLinkFunc, initialized): New variables.
36262         (initialize): New function.
36263         (link): Invoke CreateHardLink indirectly through the function pointer.
36264
36265 2009-01-20  Bruno Haible  <bruno@clisp.org>
36266
36267         Fix compilation failure on mingw.
36268         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36269
36270 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36271
36272         * doc/c-strtod.texi: Mention a couple of restrictions.
36273
36274 2009-01-20  Jim Meyering  <meyering@redhat.com>
36275
36276         gettimeofday: move more declarations out of functions
36277         * lib/gettimeofday.c: Move extern declarations of tzset and
36278         gmtime out of containing functions.  Prompted by Bruno Haible.
36279
36280 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36281
36282         regex: do not depend on obsolete modules.
36283         * modules/regex: Remove memcmp and memmove.
36284
36285 2009-01-19  Bruno Haible  <bruno@clisp.org>
36286
36287         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36288         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36289         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36290         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36291         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36292
36293 2009-01-19  Bruno Haible  <bruno@clisp.org>
36294
36295         * tests/test-link.c: Include <errno.h>.
36296         (main): Exit with code 77 when a hard link cannot be created due to
36297         the file system.
36298         * tests/test-link.sh: Skip test when a hard link cannot be created due
36299         to the file system.
36300         Suggested by Eric Blake.
36301
36302 2009-01-19  Martin Lambers  <marlam@marlam.de>
36303
36304         * modules/link-tests: New file.
36305         * tests/test-link.sh: New file.
36306         * tests/test-link.c: New file.
36307
36308 2009-01-19  Eric Blake  <ebb9@byu.net>
36309
36310         doc: mention another function added in cygwin 1.7.0
36311         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36312         Another new function in cygwin 1.7.
36313
36314 2009-01-19  Bruno Haible  <bruno@clisp.org>
36315
36316         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36317         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36318         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36319         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36320         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36321         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36322         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36323         * m4/md4.m4 (gl_MD4): Likewise.
36324         * m4/md5.m4 (gl_MD5): Likewise.
36325         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36326         * m4/sha1.m4 (gl_SHA1): Likewise.
36327         * m4/sha256.m4 (gl_SHA256): Likewise.
36328         * m4/sha512.m4 (gl_SHA512): Likewise.
36329
36330 2009-01-19  Bruno Haible  <bruno@clisp.org>
36331
36332         * modules/uniname/uniname-tests (Depends-on): Add progname.
36333         * tests/uniname/test-uninames.c: Include progname.h.
36334         (main): Call set_program_name.
36335
36336         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36337         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36338         (main): Call set_program_name.
36339
36340         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36341         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36342         (main): Call set_program_name.
36343
36344         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36345         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36346         (main): Call set_program_name.
36347
36348         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36349         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36350         (main): Call set_program_name.
36351
36352         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36353         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36354         (main): Call set_program_name.
36355
36356         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36357         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36358         (main): Call set_program_name.
36359
36360         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36361         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36362         (main): Call set_program_name.
36363
36364         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36365         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36366         (main): Call set_program_name.
36367
36368 2009-01-19  Eric Blake  <ebb9@byu.net>
36369
36370         test-unistd: test previous patch
36371         * tests/test-unistd.c: Test *_FILENO macros.
36372
36373         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36374         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36375         Guarantee a definition.
36376         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36377         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36378         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36379         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36380         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36381         Likewise.
36382         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36383         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36384         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36385         Likewise.
36386         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36387         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36388         (STDERR_FILENO): Likewise.
36389         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36390         (STDERR_FILENO): Likewise.
36391         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36392         (STDERR_FILENO): Likewise.
36393         Reported by Elbert Pol.
36394
36395 2009-01-19  Eric Blake  <ebb9@byu.net>
36396
36397         doc: mention more functions added in cygwin 1.7.0
36398         * doc/posix-functions/abort.texi (abort): Update wording related
36399         to cygwin.
36400         * doc/posix-functions/daylight.texi (daylight): Likewise.
36401         * doc/posix-functions/optarg.texi (optarg): Likewise.
36402         * doc/posix-functions/optarg.texi (opterr): Likewise.
36403         * doc/posix-functions/optarg.texi (optind): Likewise.
36404         * doc/posix-functions/optarg.texi (optopt): Likewise.
36405         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36406         worked in 1.5.x, and was withdrawn in 1.7.
36407         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36408         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36409         cygwin versions.
36410         * doc/posix-functions/perror.texi (perror): Likewise.
36411         * doc/posix-functions/printf.texi (printf): Likewise.
36412         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36413         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36414         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36415         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36416         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36417         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36418         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36419         Likewise.
36420         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36421         Likewise.
36422         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36423         this function.
36424         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36425         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36426         Likewise.
36427         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36428         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36429         * doc/posix-functions/confstr.texi (confstr): Likewise.
36430         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36431         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36432         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36433         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36434         * doc/posix-functions/fputws.texi (fputws): Likewise.
36435         * doc/posix-functions/fwide.texi (fwide): Likewise.
36436         * doc/posix-functions/getwc.texi (getwc): Likewise.
36437         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36438         * doc/posix-functions/putwc.texi (putwc): Likewise.
36439         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36440         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36441         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36442         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36443         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36444         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36445         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36446         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36447         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36448         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36449         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36450
36451 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36452
36453         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36454         * lib/ioctl.c: Include <sys/ioctl.h>.
36455
36456 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36457
36458         * modules/getdate-tests (Depends-on): Add progname.
36459         * tests/test-getdate.c: Use progname module, to avoid link errors
36460         on non-glibc systems.
36461
36462 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36463
36464         * modules/filenamecat-tests (Depends-on): Add progname.
36465         * modules/fstrcmp-tests (Depends-on): Likewise.
36466
36467         * tests/test-filenamecat.c: Use progname module, to avoid link
36468         errors on non-glibc systems.
36469         * tests/test-fstrcmp.c: Likewise.
36470
36471 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36472
36473         gettimeofday: avoid warning: nested extern declaration of 'localtime'
36474         * lib/gettimeofday.c: Move extern declaration out of function.
36475
36476 2009-01-18  Bruno Haible  <bruno@clisp.org>
36477
36478         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
36479         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
36480         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
36481
36482 2009-01-18  Bruno Haible  <bruno@clisp.org>
36483
36484         * lib/strftime.c (MEMPCPY): Remove unused macro.
36485         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
36486
36487 2009-01-18  Martin Lambers  <marlam@marlam.de>
36488
36489         New module 'link'.
36490         * lib/unistd.in.h (link): New declaration.
36491         * lib/link.c: New file.
36492         * m4/link.m4: New file.
36493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
36494         HAVE_LINK.
36495         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
36496         * modules/link: New file.
36497         * doc/posix-functions/link.texi: Mention the new module.
36498
36499 2009-01-18  Bruno Haible  <bruno@clisp.org>
36500
36501         * tests/test-avltree_list.c (main): Call set_program_name.
36502         * tests/test-avltree_oset.c (main): Likewise.
36503         * tests/test-obstack-printf.c: Include progname.h.
36504         (main): Call set_program_name.
36505         * tests/test-quotearg.c: Include progname.h.
36506         (main): Call set_program_name.
36507         * tests/test-xmemdup0.c: Include progname.h.
36508         (main): Call set_program_name.
36509
36510 2009-01-18  Bruno Haible  <bruno@clisp.org>
36511
36512         New module 'alphasort'.
36513         * lib/dirent.in.h (alphasort): New declaration.
36514         * lib/alphasort.c: New file, from glibc with modifications.
36515         * m4/alphasort.m4: New file.
36516         * modules/alphasort: New file.
36517         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
36518         HAVE_ALPHASORT.
36519         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
36520         HAVE_ALPHASORT.
36521         * doc/posix-functions/alphasort.texi: Mention the new module and the
36522         portability problems.
36523
36524 2009-01-18  Bruno Haible  <bruno@clisp.org>
36525
36526         New module 'scandir'.
36527         * lib/dirent.in.h (scandir): New declaration.
36528         * lib/scandir.c: New file, from glibc with modifications.
36529         * m4/scandir.m4: New file.
36530         * modules/scandir: New file.
36531         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
36532         HAVE_SCANDIR.
36533         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
36534         HAVE_SCANDIR.
36535         * doc/posix-functions/scandir.texi: Mention the new module and the
36536         portability problems.
36537
36538 2009-01-17  Bruno Haible  <bruno@clisp.org>
36539
36540         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
36541         Update documentation.
36542         (func_remove_suffix): Escape all dots in the suffix. Update
36543         documentation.
36544         (func_filter_filelist): Update documentation.
36545         Reported by Ralf Wildenhues.
36546
36547 2009-01-17  Bruno Haible  <bruno@clisp.org>
36548
36549         * modules/dprintf-posix-tests: New file.
36550         * tests/test-dprintf-posix.sh: New file.
36551         * tests/test-dprintf-posix.c: New file.
36552
36553         New modules 'dprintf', 'dprintf-posix'.
36554         * lib/stdio.in.h (dprintf): New declaration.
36555         * lib/dprintf.c: New file.
36556         * m4/dprintf.m4: New file.
36557         * m4/dprintf-posix.m4: New file.
36558         * modules/dprintf: New file.
36559         * modules/dprintf-posix: New file.
36560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
36561         HAVE_DPRINTF, REPLACE_DPRINTF.
36562         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36563         HAVE_DPRINTF, REPLACE_DPRINTF.
36564         * doc/posix-functions/dprintf.texi: Mention the new modules.
36565
36566 2009-01-17  Bruno Haible  <bruno@clisp.org>
36567
36568         * modules/vdprintf-posix-tests: New file.
36569         * tests/test-vdprintf-posix.sh: New file.
36570         * tests/test-vdprintf-posix.c: New file.
36571
36572         New modules 'vdprintf', 'vdprintf-posix'.
36573         * lib/stdio.in.h (vdprintf): New declaration.
36574         * lib/vdprintf.c: New file.
36575         * m4/vdprintf.m4: New file.
36576         * m4/vdprintf-posix.m4: New file.
36577         * modules/vdprintf: New file.
36578         * modules/vdprintf-posix: New file.
36579         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36580         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36581         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36582         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36583         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36584
36585 2009-01-17  Bruno Haible  <bruno@clisp.org>
36586
36587         Fix replacement of fopen on mingw.
36588         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36589         mingw.
36590
36591 2009-01-17  Bruno Haible  <bruno@clisp.org>
36592
36593         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36594         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36595
36596 2009-01-17  Bruno Haible  <bruno@clisp.org>
36597
36598         Avoid test-fflush2.sh failure on mingw.
36599         * tests/test-fflush2.c: Include binary-io.h.
36600         (main): Put standard input into binary mode.
36601         * modules/fflush-tests (Depends-on): Add binary-io.
36602
36603 2009-01-17  Bruno Haible  <bruno@clisp.org>
36604
36605         * lib/wchar.in.h: In another particular situation, include only the
36606         system's <wchar.h> file.
36607         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36608         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36609         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36610
36611 2009-01-17  Bruno Haible  <bruno@clisp.org>
36612
36613         Support for stripping executables in --enable-relocatable.
36614         * build-aux/install-reloc: Expect one more argument, or an environment
36615         variable RELOC_STRIP_PROG. If set, strip the destination program and
36616         its wrapper.
36617         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36618         RELOC_STRIP_PROG.
36619         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36620         to set RELOCATABLE_STRIP.
36621         * NEWS: Mention the new Makefile requirement.
36622
36623 2009-01-17  Bruno Haible  <bruno@clisp.org>
36624
36625         * build-aux/install-reloc: Remove debugging information left over by
36626         C compiler on MacOS X.
36627
36628 2009-01-17  Bruno Haible  <bruno@clisp.org>
36629
36630         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36631         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36632         _NSGetExecutablePath.
36633
36634 2009-01-16  Jim Meyering  <meyering@redhat.com>
36635
36636         strerror: avoid warnings about discarding "const"
36637         * lib/strerror.c (rpl_strerror): Instead of returning a const
36638         string from each and every "case", use a variable, and add a single
36639         cast after the switch.
36640
36641 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
36642
36643         * lib/arpa_inet.in.h: Add extern "C" block for C++.
36644
36645 2009-01-16  Bruno Haible  <bruno@clisp.org>
36646
36647         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
36648         array initializer syntax that also works in C++ mode.
36649         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36650
36651 2009-01-16  Jim Meyering  <meyering@redhat.com>
36652
36653         poll: suppress a warning
36654         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
36655         to ignore "...unsigned expression < 0 is always false" warnings.
36656
36657 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
36658
36659         poll: remove declarations of unused variables
36660         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
36661         sockbuf and optlen.
36662
36663 2009-01-15  Bruno Haible  <bruno@clisp.org>
36664
36665         Make fflush-after-ungetc POSIX compliant on BSD systems.
36666         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
36667         (clear_ungetc_buffer): Implement also for other systems.
36668         (rpl_fflush): On glibc systems, invoke
36669         clear_ungetc_buffer_preserving_position. Otherwise, invoke
36670         clear_ungetc_buffer after fetching the stream's position, not before.
36671
36672 2009-01-15  Bruno Haible  <bruno@clisp.org>
36673
36674         Make fflush-after-ungetc POSIX compliant on glibc systems.
36675         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
36676         after ungetc.
36677         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
36678         (rpl_fflush): On glibc systems, simply call the system's fflush
36679         function after clearing the ungetc buffer.
36680         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
36681         Instead, lseek only to the end of file, then use the system's fseeko
36682         for the rest. On glibc systems, reset the EOF indicator bit.
36683
36684 2009-01-15  Jim Meyering  <meyering@redhat.com>
36685
36686         openmp.m4: revert quote-adding change, for portability to older autoconf
36687         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
36688         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
36689         Simon Josefsson noticed the problem when using autoconf-2.61.
36690
36691 2009-01-15  Bruno Haible  <bruno@clisp.org>
36692
36693         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
36694         * tests/test-fflush2.c (ASSERT): Always fail.
36695         (main): Add two tests for fflush() after ungetc(), taking into account
36696         the Austin Group's clarification.
36697         Suggested by Eric Blake.
36698
36699 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
36700
36701         mktime.m4: remove K&R-style function prototypes
36702         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
36703         for the Sun C++ compiler.
36704
36705 2009-01-14  Bruno Haible  <bruno@clisp.org>
36706
36707         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
36708         while including <wchar.h>.
36709         * lib/wchar.in.h: In two particular situations on HP-UX, include only
36710         the system's <wchar.h> file.
36711         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36712
36713 2009-01-14  Bruno Haible  <bruno@clisp.org>
36714
36715         * m4/csharp.m4: Don't mention gettext on the serial number line.
36716         * m4/csharpexec.m4: Likewise.
36717         * m4/eaccess.m4: Likewise.
36718         * m4/javaexec.m4: Likewise.
36719         * m4/sig_atomic_t.m4: Likewise.
36720         * m4/tmpdir.m4: Likewise.
36721         * m4/intldir.m4: Bump gettext version.
36722         * m4/lib-ld.m4: Likewise.
36723
36724 2009-01-14  Bruno Haible  <bruno@clisp.org>
36725
36726         * lib/progname.c (set_program_name): Add more comments.
36727         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36728
36729 2009-01-14  Simon Josefsson  <simon@josefsson.org>
36730
36731         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
36732         were sys/stat.h does not define it.
36733
36734 2009-01-14  Jim Meyering  <meyering@redhat.com>
36735
36736         many *.m4 files: improve m4 quoting
36737         99% of this change was performed by running the following commands:
36738         git ls-files | grep '\.m4$' | xargs perl -pi \
36739           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
36740           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36741           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36742           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
36743         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
36744         The remainder were to add Copyright dates, increment serial numbers,
36745         undo some changes in comments, exclude m4/intl.m4, and add quotes
36746         around the "1" in ",1" where the unusual spacing prohibited the
36747         above regexps from doing the job.  For more details, see
36748         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
36749         * m4/acl.m4: Modified.
36750         * m4/afs.m4: Likewise.
36751         * m4/alloca.m4: Likewise.
36752         * m4/argp.m4: Likewise.
36753         * m4/argz.m4: Likewise.
36754         * m4/atexit.m4: Likewise.
36755         * m4/bison-i18n.m4: Likewise.
36756         * m4/bison.m4: Likewise.
36757         * m4/byteswap.m4: Likewise.
36758         * m4/c-stack.m4: Likewise.
36759         * m4/c-strtod.m4: Likewise.
36760         * m4/calloc.m4: Likewise.
36761         * m4/canonicalize-lgpl.m4: Likewise.
36762         * m4/chown.m4: Likewise.
36763         * m4/clock_time.m4: Likewise.
36764         * m4/codeset.m4: Likewise.
36765         * m4/copy-file.m4: Likewise.
36766         * m4/csharp.m4: Likewise.
36767         * m4/csharpcomp.m4: Likewise.
36768         * m4/csharpexec.m4: Likewise.
36769         * m4/d-ino.m4: Likewise.
36770         * m4/d-type.m4: Likewise.
36771         * m4/dirfd.m4: Likewise.
36772         * m4/double-slash-root.m4: Likewise.
36773         * m4/eaccess.m4: Likewise.
36774         * m4/eealloc.m4: Likewise.
36775         * m4/environ.m4: Likewise.
36776         * m4/errno_h.m4: Likewise.
36777         * m4/euidaccess.m4: Likewise.
36778         * m4/execute.m4: Likewise.
36779         * m4/fatal-signal.m4: Likewise.
36780         * m4/fchdir.m4: Likewise.
36781         * m4/fcntl_h.m4: Likewise.
36782         * m4/fileblocks.m4: Likewise.
36783         * m4/filenamecat.m4: Likewise.
36784         * m4/findprog.m4: Likewise.
36785         * m4/flexmember.m4: Likewise.
36786         * m4/fnmatch.m4: Likewise.
36787         * m4/fopen.m4: Likewise.
36788         * m4/fpending.m4: Likewise.
36789         * m4/fprintf-posix.m4: Likewise.
36790         * m4/free.m4: Likewise.
36791         * m4/frexp.m4: Likewise.
36792         * m4/frexpl.m4: Likewise.
36793         * m4/fsusage.m4: Likewise.
36794         * m4/ftruncate.m4: Likewise.
36795         * m4/gc-camellia.m4: Likewise.
36796         * m4/gc-random.m4: Likewise.
36797         * m4/gc.m4: Likewise.
36798         * m4/getaddrinfo.m4: Likewise.
36799         * m4/getcwd-abort-bug.m4: Likewise.
36800         * m4/getcwd-path-max.m4: Likewise.
36801         * m4/getdate.m4: Likewise.
36802         * m4/getdomainname.m4: Likewise.
36803         * m4/getgroups.m4: Likewise.
36804         * m4/gethostname.m4: Likewise.
36805         * m4/gethrxtime.m4: Likewise.
36806         * m4/getline.m4: Likewise.
36807         * m4/getloadavg.m4: Likewise.
36808         * m4/getndelim2.m4: Likewise.
36809         * m4/getpass.m4: Likewise.
36810         * m4/gettext.m4: Likewise.
36811         * m4/gettime.m4: Likewise.
36812         * m4/gettimeofday.m4: Likewise.
36813         * m4/gnulib-common.m4: Likewise.
36814         * m4/group-member.m4: Likewise.
36815         * m4/host-os.m4: Likewise.
36816         * m4/iconv.m4: Likewise.
36817         * m4/iconv_open.m4: Likewise.
36818         * m4/inet_ntop.m4: Likewise.
36819         * m4/inet_pton.m4: Likewise.
36820         * m4/inline.m4: Likewise.
36821         * m4/intldir.m4: Likewise.
36822         * m4/intlmacosx.m4: Likewise.
36823         * m4/intmax.m4: Likewise.
36824         * m4/intmax_t.m4: Likewise.
36825         * m4/inttypes.m4: Likewise.
36826         * m4/inttypes_h.m4: Likewise.
36827         * m4/inttypes-pri.m4: Likewise.
36828         * m4/isapipe.m4: Likewise.
36829         * m4/isnand.m4: Likewise.
36830         * m4/isnanf.m4: Likewise.
36831         * m4/isnanl.m4: Likewise.
36832         * m4/javacomp.m4: Likewise.
36833         * m4/javaexec.m4: Likewise.
36834         * m4/jm-winsz1.m4: Likewise.
36835         * m4/jm-winsz2.m4: Likewise.
36836         * m4/lchown.m4: Likewise.
36837         * m4/lcmessage.m4: Likewise.
36838         * m4/ldexpl.m4: Likewise.
36839         * m4/lib-ld.m4: Likewise.
36840         * m4/lib-link.m4: Likewise.
36841         * m4/libsigsegv.m4: Likewise.
36842         * m4/link-follow.m4: Likewise.
36843         * m4/localcharset.m4: Likewise.
36844         * m4/locale-fr.m4: Likewise.
36845         * m4/locale-ja.m4: Likewise.
36846         * m4/locale-tr.m4: Likewise.
36847         * m4/locale-zh.m4: Likewise.
36848         * m4/lock.m4: Likewise.
36849         * m4/longlong.m4: Likewise.
36850         * m4/ls-mntd-fs.m4: Likewise.
36851         * m4/lstat.m4: Likewise.
36852         * m4/malloc.m4: Likewise.
36853         * m4/mathl.m4: Likewise.
36854         * m4/mbrtowc.m4: Likewise.
36855         * m4/mbstate_t.m4: Likewise.
36856         * m4/mbswidth.m4: Likewise.
36857         * m4/memchr.m4: Likewise.
36858         * m4/memcmp.m4: Likewise.
36859         * m4/memcpy.m4: Likewise.
36860         * m4/memmem.m4: Likewise.
36861         * m4/memmove.m4: Likewise.
36862         * m4/mempcpy.m4: Likewise.
36863         * m4/memrchr.m4: Likewise.
36864         * m4/memset.m4: Likewise.
36865         * m4/minmax.m4: Likewise.
36866         * m4/mkdir-slash.m4: Likewise.
36867         * m4/mkdtemp.m4: Likewise.
36868         * m4/mktime.m4: Likewise.
36869         * m4/mmap-anon.m4: Likewise.
36870         * m4/mountlist.m4: Likewise.
36871         * m4/nanosleep.m4: Likewise.
36872         * m4/nls.m4: Likewise.
36873         * m4/nocrash.m4: Likewise.
36874         * m4/open.m4: Likewise.
36875         * m4/openat.m4: Likewise.
36876         * m4/openmp.m4: Likewise.
36877         * m4/pathmax.m4: Likewise.
36878         * m4/perl.m4: Likewise.
36879         * m4/physmem.m4: Likewise.
36880         * m4/pipe.m4: Likewise.
36881         * m4/po.m4: Likewise.
36882         * m4/poll.m4: Likewise.
36883         * m4/posixtm.m4: Likewise.
36884         * m4/posixver.m4: Likewise.
36885         * m4/printf-frexp.m4: Likewise.
36886         * m4/printf-frexpl.m4: Likewise.
36887         * m4/printf-posix.m4: Likewise.
36888         * m4/printf-posix-rpl.m4: Likewise.
36889         * m4/printf.m4: Likewise.
36890         * m4/progtest.m4: Likewise.
36891         * m4/putenv.m4: Likewise.
36892         * m4/readline.m4: Likewise.
36893         * m4/readlink.m4: Likewise.
36894         * m4/readutmp.m4: Likewise.
36895         * m4/realloc.m4: Likewise.
36896         * m4/regex.m4: Likewise.
36897         * m4/relocatable.m4: Likewise.
36898         * m4/relocatable-lib.m4: Likewise.
36899         * m4/rename-dest-slash.m4: Likewise.
36900         * m4/rename.m4: Likewise.
36901         * m4/rmdir-errno.m4: Likewise.
36902         * m4/rmdir.m4: Likewise.
36903         * m4/roundf.m4: Likewise.
36904         * m4/roundl.m4: Likewise.
36905         * m4/rpmatch.m4: Likewise.
36906         * m4/save-cwd.m4: Likewise.
36907         * m4/selinux-selinux-h.m4: Likewise.
36908         * m4/setenv.m4: Likewise.
36909         * m4/settime.m4: Likewise.
36910         * m4/sig2str.m4: Likewise.
36911         * m4/sig_atomic_t.m4: Likewise.
36912         * m4/signalblocking.m4: Likewise.
36913         * m4/signbit.m4: Likewise.
36914         * m4/sigpipe.m4: Likewise.
36915         * m4/sockets.m4: Likewise.
36916         * m4/sockpfaf.m4: Likewise.
36917         * m4/st_dm_mode.m4: Likewise.
36918         * m4/stat-time.m4: Likewise.
36919         * m4/stdbool.m4: Likewise.
36920         * m4/stdint.m4: Likewise.
36921         * m4/stdint_h.m4: Likewise.
36922         * m4/stpcpy.m4: Likewise.
36923         * m4/stpncpy.m4: Likewise.
36924         * m4/strcase.m4: Likewise.
36925         * m4/strchrnul.m4: Likewise.
36926         * m4/strcspn.m4: Likewise.
36927         * m4/strdup.m4: Likewise.
36928         * m4/strftime.m4: Likewise.
36929         * m4/strndup.m4: Likewise.
36930         * m4/strnlen.m4: Likewise.
36931         * m4/strpbrk.m4: Likewise.
36932         * m4/strptime.m4: Likewise.
36933         * m4/strsep.m4: Likewise.
36934         * m4/strtod.m4: Likewise.
36935         * m4/strtoimax.m4: Likewise.
36936         * m4/strtok_r.m4: Likewise.
36937         * m4/strtol.m4: Likewise.
36938         * m4/strtoll.m4: Likewise.
36939         * m4/strtoul.m4: Likewise.
36940         * m4/strtoull.m4: Likewise.
36941         * m4/strtoumax.m4: Likewise.
36942         * m4/strverscmp.m4: Likewise.
36943         * m4/threadlib.m4: Likewise.
36944         * m4/timegm.m4: Likewise.
36945         * m4/tm_gmtoff.m4: Likewise.
36946         * m4/tmpdir.m4: Likewise.
36947         * m4/tmpfile.m4: Likewise.
36948         * m4/tzset.m4: Likewise.
36949         * m4/uintmax_t.m4: Likewise.
36950         * m4/unlinkdir.m4: Likewise.
36951         * m4/unlocked-io.m4: Likewise.
36952         * m4/uptime.m4: Likewise.
36953         * m4/userspec.m4: Likewise.
36954         * m4/utimbuf.m4: Likewise.
36955         * m4/utime.m4: Likewise.
36956         * m4/utimes-null.m4: Likewise.
36957         * m4/utimes.m4: Likewise.
36958         * m4/vararrays.m4: Likewise.
36959         * m4/vasnprintf.m4: Likewise.
36960         * m4/vfprintf-posix.m4: Likewise.
36961         * m4/vprintf-posix.m4: Likewise.
36962         * m4/wait-process.m4: Likewise.
36963         * m4/wchar_t.m4: Likewise.
36964         * m4/wint_t.m4: Likewise.
36965         * m4/write-any-file.m4: Likewise.
36966         * m4/yield.m4: Likewise.
36967
36968 2009-01-13  Bruno Haible  <bruno@clisp.org>
36969
36970         Avoid test-copy-file.sh failures when ACL support insufficient.
36971         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
36972         TESTS_ENVIRONMENT.
36973         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
36974         Reported by Jim Meyering.
36975
36976 2009-01-13  Bruno Haible  <bruno@clisp.org>
36977
36978         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
36979         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
36980         * modules/unistdio/u8-printf-parse (Files): Likewise.
36981         * modules/unistdio/u32-printf-parse (Files): Likewise.
36982         * modules/unistdio/ulc-printf-parse (Files): Likewise.
36983
36984 2009-01-13  Simon Josefsson  <simon@josefsson.org>
36985
36986         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
36987         and m4/inttypes_h.m4 too.
36988
36989 2009-01-12  Eric Blake  <ebb9@byu.net>
36990
36991         tests: IRIX 6.2 cc can't compile -0.0 into .data
36992         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
36993         rather than at compile-time.
36994         * tests/test-floorl.c (minus_zero): Likewise.
36995         * tests/test-frexpl.c (minus_zero): Likewise.
36996         * tests/test-isnan.c (minus_zerol): Likewise.
36997         * tests/test-isnanl.h (minus_zero): Likewise.
36998         * tests/test-ldexpl.c (minus_zero): Likewise.
36999         * tests/test-roundl.c (minus_zero): Likewise.
37000         * tests/test-signbit.c (minus_zerol): Likewise.
37001         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37002         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37003         * tests/test-truncl.c (minus_zero): Likewise.
37004         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37005         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37006         Reported by Tom G. Christensen and Nelson H. F. Beebe.
37007
37008 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37009
37010         regex: fix glibc bug 9697
37011         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
37012         handling.
37013
37014 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37015
37016         regex: fix glibc bug 697
37017         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
37018         being NULL also if there are no backreferences.
37019
37020 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37021
37022         regex: merge glibc changes
37023         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
37024         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
37025         re_string_skip_chars, re_string_reconstruct): Likewise.
37026         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
37027
37028 2009-01-07  Jim Meyering  <meyering@redhat.com>
37029
37030         poll: filter through cppi
37031         * lib/poll.c: Indent cpp directives to reflect nesting.
37032
37033 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
37034
37035         poll: don't return uninitialized
37036         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
37037
37038 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
37039
37040         avoid compile failure on AIX 6.1
37041         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
37042         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
37043
37044 2009-01-04  Jim Meyering  <meyering@redhat.com>
37045
37046         remove duplicate inclusion of <stdio.h>
37047         * tests/test-fprintf-posix.c: Likewise.
37048         * tests/test-printf-posix.c: Likewise.
37049         * tests/test-snprintf-posix.c: Likewise.
37050         * tests/test-sprintf-posix.c: Likewise.
37051         * tests/test-vasprintf-posix.c: Likewise.
37052         * tests/test-vfprintf-posix.c: Likewise.
37053         * tests/test-vprintf-posix.c: Likewise.
37054         * tests/test-vsnprintf-posix.c: Likewise.
37055         * tests/test-vsprintf-posix.c: Likewise.
37056
37057 2009-01-03  Jim Meyering  <meyering@redhat.com>
37058
37059         gnulib-tool: fix sed-based filtering
37060         * gnulib-tool (func_filter_filelist): Remove extra backslash
37061         in sed_fff_filter definition.
37062
37063 2009-01-02  Jim Meyering  <meyering@redhat.com>
37064
37065         strftime: avoid compilation failure on Solaris 2.6
37066         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
37067         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
37068         Don't #define mbrlen or mbsinit, since now they're guaranteed to
37069         be available.  Reported by Tom G. Christensen.  Details in
37070         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
37071
37072 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37073             Bruno Haible  <bruno@clisp.org>
37074
37075         Speed up gnulib-tool by doing more string processing through shell
37076         built-ins.
37077         * gnulib-tool (fast_func_append): New variable.
37078         (func_remove_prefix, func_remove_suffix): New functions.
37079         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
37080         (func_filter_filelist): New function.
37081         (func_get_dependencies): Use func_remove_suffix instead of sed.
37082         (func_get_automake_snippet): Use func_filter_filelist instead of a
37083         subshell and sed invocation.
37084
37085 2009-01-01  Bruno Haible  <bruno@clisp.org>
37086
37087         Fix a security bug.
37088         * gnulib-tool (func_import, import, update): Don't allow the characters
37089         '"', '$', '`', '\' in macro arguments that become part of commands that
37090         are evaluated.
37091
37092 2009-01-01  Bruno Haible  <bruno@clisp.org>
37093
37094         * gnulib-tool (func_reset_sigpipe): Add more comments.
37095
37096 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37097
37098         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
37099         func_emit_tests_Makefile_am, func_import): Abort loops early if we
37100         already know the answer.
37101
37102 2009-01-01  Jim Meyering  <meyering@redhat.com>
37103
37104         * lib/version-etc.c (version_etc_va): Update copyright year.
37105
37106 2008-12-30  Bruno Haible  <bruno@clisp.org>
37107
37108         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
37109         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
37110         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
37111
37112 2008-12-29  Eric Blake  <ebb9@byu.net>
37113
37114         multiarch: avoid autoconf AC_REQUIRE bug
37115         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
37116         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
37117         2.63 and older.
37118         Reported by Bruno Haible, and analyzed in
37119         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
37120
37121 2008-12-29  Bruno Haible  <bruno@clisp.org>
37122
37123         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
37124         files in subdirectories correctly.
37125         Reported by Ralf Wildenhues.
37126
37127 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37128
37129         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
37130         rather than 'join FILE -', for Solaris join.
37131
37132 2008-12-29  Bruno Haible  <bruno@clisp.org>
37133
37134         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
37135         quoting.
37136         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
37137         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
37138         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
37139         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
37140         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
37141         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
37142         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
37143         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
37144         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
37145         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
37146         * m4/nls.m4 (AM_NLS): Likewise.
37147         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
37148         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
37149         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
37150         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
37151         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
37152         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
37153         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
37154         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
37155         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
37156         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37157         * m4/xsize.m4 (gl_XSIZE): Likewise.
37158         Suggested by Jim Meyering.
37159
37160 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37161
37162         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
37163         * lib/parse-duration.c: use a switch instead of cascading if's.
37164
37165 2008-12-29  Eric Blake  <ebb9@byu.net>
37166
37167         wchar.h: supply WEOF on Irix 5.3
37168         * lib/wchar.in.h (wint_t): Also supply WEOF.
37169         * lib/wctype.in.h (wint_t): Likewise.
37170         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
37171         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
37172         Reported by Tom G. Christensen.
37173
37174 2008-12-26  Bruno Haible  <bruno@clisp.org>
37175
37176         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
37177         i486, i586, i686.
37178
37179 2008-12-26  Bruno Haible  <bruno@clisp.org>
37180
37181         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
37182
37183 2008-12-26  Bruno Haible  <bruno@clisp.org>
37184
37185         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
37186         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
37187         not __STDC_CONSTANT_MACROS.
37188         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37189
37190 2008-12-25  Bruno Haible  <bruno@clisp.org>
37191
37192         Add support for universal builds to vasnprintf.
37193         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
37194         universal builds, guess no.
37195         * modules/vasnprintf-posix (Depends-on): Add multiarch.
37196         * modules/vasprintf-posix (Depends-on): Likewise.
37197         * modules/fprintf-posix (Depends-on): Likewise.
37198         * modules/vfprintf-posix (Depends-on): Likewise.
37199         * modules/snprintf-posix (Depends-on): Likewise.
37200         * modules/vsnprintf-posix (Depends-on): Likewise.
37201         * modules/sprintf-posix (Depends-on): Likewise.
37202         * modules/vsprintf-posix (Depends-on): Likewise.
37203         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37204         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37205         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37206         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37207         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37208         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37209         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37210
37211         Add support for universal builds to <inttypes.h>.
37212         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
37213         _SCNu64_PREFIX): In Apple
37214         universal builds, define directly, using _LP64.
37215         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
37216         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
37217         * modules/inttypes (Depends-on): Add multiarch.
37218         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37219
37220         Add support for universal builds to <stdint.h>.
37221         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
37222         universal builds, define directly, using _LP64.
37223         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
37224         Apple universal builds, don't test for the size and suffix of ptrdiff_t
37225         and size_t.
37226         * modules/stdint (Depends-on): Add multiarch.
37227         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37228
37229         New module 'multiarch'.
37230         * modules/multiarch: New file.
37231         * m4/multiarch.m4: New file.
37232
37233 2008-12-25  Bruno Haible  <bruno@clisp.org>
37234
37235         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
37236
37237 2008-12-25  Bruno Haible  <bruno@clisp.org>
37238
37239         * modules/btowc (License): Relicense under LGPLv2+.
37240         * modules/mbsinit (License): Likewise.
37241         * modules/mbrtowc (License): Likewise.
37242         * modules/wcrtomb (License): Likewise.
37243         * modules/streq (License): Likewise.
37244         Reported by David Lutterkort <lutter@redhat.com>.
37245
37246 2008-12-23  Bruno Haible  <bruno@clisp.org>
37247
37248         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
37249
37250 2008-12-23  Bruno Haible  <bruno@clisp.org>
37251
37252         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37253         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37254         GETADDRINFO_LIB, not in LIBS.
37255         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37256         * modules/canon-host (Link): Likewise.
37257         * NEWS: Mention the change.
37258         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37259         GETADDRINFO_LIB.
37260
37261 2008-12-22  Bruno Haible  <bruno@clisp.org>
37262
37263         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37264         * doc/posix-functions/iswalpha_l.texi: Likewise.
37265         * doc/posix-functions/iswblank_l.texi: Likewise.
37266         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37267         * doc/posix-functions/iswctype_l.texi: Likewise.
37268         * doc/posix-functions/iswdigit_l.texi: Likewise.
37269         * doc/posix-functions/iswgraph_l.texi: Likewise.
37270         * doc/posix-functions/iswlower_l.texi: Likewise.
37271         * doc/posix-functions/iswprint_l.texi: Likewise.
37272         * doc/posix-functions/iswpunct_l.texi: Likewise.
37273         * doc/posix-functions/iswspace_l.texi: Likewise.
37274         * doc/posix-functions/iswupper_l.texi: Likewise.
37275         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37276         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37277         * doc/posix-functions/open_wmemstream.texi: Likewise.
37278         * doc/posix-functions/swscanf.texi: Likewise.
37279         * doc/posix-functions/towctrans_l.texi: Likewise.
37280         * doc/posix-functions/towlower.texi: Likewise.
37281         * doc/posix-functions/towlower_l.texi: Likewise.
37282         * doc/posix-functions/towupper.texi: Likewise.
37283         * doc/posix-functions/towupper_l.texi: Likewise.
37284         * doc/posix-functions/vfwprintf.texi: Likewise.
37285         * doc/posix-functions/vfwscanf.texi: Likewise.
37286         * doc/posix-functions/vswscanf.texi: Likewise.
37287         * doc/posix-functions/vwprintf.texi: Likewise.
37288         * doc/posix-functions/vwscanf.texi: Likewise.
37289         * doc/posix-functions/wcpcpy.texi: Likewise.
37290         * doc/posix-functions/wcpncpy.texi: Likewise.
37291         * doc/posix-functions/wcscasecmp.texi: Likewise.
37292         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37293         * doc/posix-functions/wcscoll_l.texi: Likewise.
37294         * doc/posix-functions/wcsdup.texi: Likewise.
37295         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37296         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37297         * doc/posix-functions/wcsnlen.texi: Likewise.
37298         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37299         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37300         * doc/posix-functions/wctrans_l.texi: Likewise.
37301         * doc/posix-functions/wctype_l.texi: Likewise.
37302         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37303         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37304         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37305         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37306         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37307         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37308         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37309         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37310         * doc/glibc-functions/wcschrnul.texi: Likewise.
37311         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37312         * doc/glibc-functions/wcstod_l.texi: Likewise.
37313         * doc/glibc-functions/wcstof_l.texi: Likewise.
37314         * doc/glibc-functions/wcstol_l.texi: Likewise.
37315         * doc/glibc-functions/wcstold_l.texi: Likewise.
37316         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37317         * doc/glibc-functions/wcstoq.texi: Likewise.
37318         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37319         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37320         * doc/glibc-functions/wcstouq.texi: Likewise.
37321         * doc/glibc-functions/wmempcpy.texi: Likewise.
37322
37323 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37324             Eric Blake  <ebb9@byu.net>
37325             Paolo Bonzini  <bonzini@gnu.org>
37326             Bruno Haible  <bruno@clisp.org>
37327
37328         Make c-stack work on Haiku.
37329         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37330         (c_stack_action): Use SA_ONSTACK flag.
37331
37332 2008-12-22  Bruno Haible  <bruno@clisp.org>
37333
37334         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37335
37336 2008-12-22  Bruno Haible  <bruno@clisp.org>
37337
37338         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37339         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37340         being overridden.
37341         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37342         New macros.
37343         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37344         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37345         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37346         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37347
37348 2008-12-22  Bruno Haible  <bruno@clisp.org>
37349
37350         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37351         from test code.
37352
37353 2008-12-22  Eric Blake  <ebb9@byu.net>
37354
37355         Avoid gcc warnings on cygwin.
37356         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37357         Avoid unused variable.
37358         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37359         Likewise.
37360
37361 2008-12-22  Bruno Haible  <bruno@clisp.org>
37362
37363         Remove HAVE_MBRTOWC conditionals.
37364         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37365         (mbscasecmp): Assume mbrtowc function.
37366         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37367         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37368         * lib/mbschr.c: Include mbuiter.h unconditionally.
37369         (mbschr): Assume mbrtowc function.
37370         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37371         (mbscspn): Assume mbrtowc function.
37372         * lib/mbslen.c: Include mbuiter.h unconditionally.
37373         (mbslen): Assume mbrtowc function.
37374         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37375         (mbsncasecmp): Assume mbrtowc function.
37376         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37377         (mbsnlen): Assume mbrtowc function.
37378         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37379         (mbspbrk): Assume mbrtowc function.
37380         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37381         (mbspcasecmp): Assume mbrtowc function.
37382         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37383         (mbsrchr): Assume mbrtowc function.
37384         * lib/mbssep.c: Include mbuiter.h unconditionally.
37385         (mbssep): Assume mbrtowc function.
37386         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37387         (mbsspn): Assume mbrtowc function.
37388         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37389         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37390         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37391         (mbstok_r): Assume mbrtowc function.
37392         * lib/propername.c: Include mbuiter.h unconditionally.
37393         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37394         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37395         (trim2): Assume mbrtowc function.
37396         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37397         (mbsnwidth): Assume mbrtowc function.
37398         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37399         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37400         fallback definitions.
37401         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37402
37403 2008-12-22  Bruno Haible  <bruno@clisp.org>
37404
37405         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37406
37407 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37408
37409         * modules/regex: Request emulations for the mb*/wc* functions we need.
37410         * m4/regex.m4: Don't look for those functions here.
37411         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37412
37413 2008-12-22  Bruno Haible  <bruno@clisp.org>
37414
37415         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37416
37417 2008-12-21  Bruno Haible  <bruno@clisp.org>
37418
37419         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37420         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37421         (Include): Remove conditionalization.
37422         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37423         (Include): Remove conditionalization.
37424         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37425         (Include): Remove conditionalization.
37426         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37427         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37428         * NEWS: Mention the change.
37429         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37430         via Sergey Poznyakoff <gray@gnu.org.ua>.
37431
37432 2008-12-21  Bruno Haible  <bruno@clisp.org>
37433
37434         * MODULES.html.sh (Extended multibyte and wide character utilities
37435         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37436         wcrtomb, wcsrtombs.
37437         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37438         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37439         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37440         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37441
37442 2008-12-21  Bruno Haible  <bruno@clisp.org>
37443
37444         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37445
37446 2008-12-21  Bruno Haible  <bruno@clisp.org>
37447
37448         * modules/wcsnrtombs-tests: New file.
37449         * tests/test-wcsnrtombs1.sh: New file.
37450         * tests/test-wcsnrtombs2.sh: New file.
37451         * tests/test-wcsnrtombs3.sh: New file.
37452         * tests/test-wcsnrtombs4.sh: New file.
37453         * tests/test-wcsnrtombs.c: New file.
37454
37455         New module 'wcsnrtombs'.
37456         * lib/wchar.in.h (wcsnrtombs): New declaration.
37457         * lib/wcsnrtombs.c: New file.
37458         * lib/wcsrtombs-state.c: New file.
37459         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37460         (internal_state): Remove variable.
37461         * m4/wcsnrtombs.m4: New file.
37462         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37463         compilation units.
37464         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37465         HAVE_WCSNRTOMBS.
37466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37467         HAVE_WCSNRTOMBS.
37468         * modules/wcsnrtombs: New file.
37469         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37470         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
37471
37472 2008-12-21  Bruno Haible  <bruno@clisp.org>
37473
37474         * modules/wcsrtombs-tests: New file.
37475         * tests/test-wcsrtombs1.sh: New file.
37476         * tests/test-wcsrtombs2.sh: New file.
37477         * tests/test-wcsrtombs3.sh: New file.
37478         * tests/test-wcsrtombs4.sh: New file.
37479         * tests/test-wcsrtombs.c: New file.
37480
37481         New module 'wcsrtombs'.
37482         * lib/wchar.in.h (wcsrtombs): New declaration.
37483         * lib/wcsrtombs.c: New file.
37484         * m4/wcsrtombs.m4: New file.
37485         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
37486         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37487         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
37488         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37489         * modules/wcsrtombs: New file.
37490         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
37491         bugs.
37492
37493 2008-12-21  Bruno Haible  <bruno@clisp.org>
37494
37495         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
37496         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
37497         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
37498         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
37499         if not correct.
37500         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
37501         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
37502         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37503         m4/locale-zh.m4, m4/codeset.m4.
37504         * doc/posix-functions/wcrtomb.texi: Document the bug.
37505
37506 2008-12-21  Bruno Haible  <bruno@clisp.org>
37507
37508         Work around a btowc() bug on IRIX 6.5.
37509         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
37510         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
37511         REPLACE_WTOBC if not.
37512         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
37513         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
37514         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
37515
37516 2008-12-21  Bruno Haible  <bruno@clisp.org>
37517
37518         * modules/wcrtomb-tests: New file.
37519         * tests/test-wcrtomb.sh: New file.
37520         * tests/test-wcrtomb.c: New file.
37521
37522         New module 'wcrtomb'.
37523         * lib/wchar.in.h (wcrtomb): New declaration.
37524         * lib/wcrtomb.c: New file.
37525         * m4/wcrtomb.m4: New file.
37526         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
37527         HAVE_WCRTOMB.
37528         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
37529         HAVE_WCRTOMB.
37530         * modules/wcrtomb: New file.
37531         * doc/posix-functions/wcrtomb.texi: Mention the new module.
37532
37533 2008-12-21  Bruno Haible  <bruno@clisp.org>
37534
37535         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
37536         * modules/mbsrtowcs (Files): Likewise.
37537         * modules/wctob (Files): Likewise.
37538         * modules/c-strcase-tests (Files): Likewise.
37539         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37540         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37541         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37542         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37543         * modules/vasnprintf-posix-tests (Files): Likewise.
37544
37545 2008-12-21  William Pursell  <bill.pursell@gmail.com>
37546
37547         gitlog-to-changelog: pass all command-line arguments to git-log
37548         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
37549         it is sometimes convenient to filter the commits in various ways.
37550         gitlog-to-changelog only allows --since to specify a start date,
37551         but git-log itself supports many other filtering mechanisms.
37552         At the moment, I want to filter by branch name.  Rather than
37553         adding a --branch option to gitlog-to-changelog, it seems more
37554         flexible to simply pass all options directly to git-log and let
37555         git do the work.  Notice that this effectively makes --since a
37556         redundant option for gitlog-to-changelog, but removing it would
37557         require current usage to change since calls would then require
37558         an additional '--'.
37559
37560 2008-12-21  Bruno Haible  <bruno@clisp.org>
37561
37562         * modules/mbsnrtowcs-tests: New file.
37563         * tests/test-mbsnrtowcs1.sh: New file.
37564         * tests/test-mbsnrtowcs2.sh: New file.
37565         * tests/test-mbsnrtowcs3.sh: New file.
37566         * tests/test-mbsnrtowcs4.sh: New file.
37567         * tests/test-mbsnrtowcs.c: New file.
37568
37569         New module 'mbsnrtowcs'.
37570         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37571         * lib/mbsnrtowcs.c: New file.
37572         * lib/mbsrtowcs-state.c: New file.
37573         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37574         (internal_state): Remove variable.
37575         * m4/mbsnrtowcs.m4: New file.
37576         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37577         compilation units.
37578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37579         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37580         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37581         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37582         * modules/mbsnrtowcs: New file.
37583         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37584         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37585         portability problem.
37586
37587 2008-12-21  Bruno Haible  <bruno@clisp.org>
37588
37589         Work around mbsrtowcs bug.
37590         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37591         (gl_FUNC_MBSRTOWCS): Invoke it.
37592         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37593         m4/locale-zh.m4.
37594         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37595
37596 2008-12-21  Bruno Haible  <bruno@clisp.org>
37597
37598         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37599
37600 2008-12-21  Bruno Haible  <bruno@clisp.org>
37601
37602         Update doc for AIX.
37603         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37604         16-bit wchar_t type.
37605         * doc/posix-functions/btowc.texi: Likewise.
37606         * doc/posix-functions/fgetwc.texi: Likewise.
37607         * doc/posix-functions/fgetws.texi: Likewise.
37608         * doc/posix-functions/fputwc.texi: Likewise.
37609         * doc/posix-functions/fputws.texi: Likewise.
37610         * doc/posix-functions/fwide.texi: Likewise.
37611         * doc/posix-functions/fwprintf.texi: Likewise.
37612         * doc/posix-functions/fwscanf.texi: Likewise.
37613         * doc/posix-functions/getwchar.texi: Likewise.
37614         * doc/posix-functions/getwc.texi: Likewise.
37615         * doc/posix-functions/iswalnum.texi: Likewise.
37616         * doc/posix-functions/iswalpha.texi: Likewise.
37617         * doc/posix-functions/iswblank.texi: Likewise.
37618         * doc/posix-functions/iswcntrl.texi: Likewise.
37619         * doc/posix-functions/iswctype.texi: Likewise.
37620         * doc/posix-functions/iswdigit.texi: Likewise.
37621         * doc/posix-functions/iswgraph.texi: Likewise.
37622         * doc/posix-functions/iswlower.texi: Likewise.
37623         * doc/posix-functions/iswprint.texi: Likewise.
37624         * doc/posix-functions/iswpunct.texi: Likewise.
37625         * doc/posix-functions/iswspace.texi: Likewise.
37626         * doc/posix-functions/iswupper.texi: Likewise.
37627         * doc/posix-functions/iswxdigit.texi: Likewise.
37628         * doc/posix-functions/mbrtowc.texi: Likewise.
37629         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37630         * doc/posix-functions/mbstowcs.texi: Likewise.
37631         * doc/posix-functions/mbtowc.texi: Likewise.
37632         * doc/posix-functions/putwchar.texi: Likewise.
37633         * doc/posix-functions/putwc.texi: Likewise.
37634         * doc/posix-functions/swprintf.texi: Likewise.
37635         * doc/posix-functions/tolower.texi: Likewise.
37636         * doc/posix-functions/toupper.texi: Likewise.
37637         * doc/posix-functions/towctrans.texi: Likewise.
37638         * doc/posix-functions/ungetwc.texi: Likewise.
37639         * doc/posix-functions/vswprintf.texi: Likewise.
37640         * doc/posix-functions/wcrtomb.texi: Likewise.
37641         * doc/posix-functions/wcscat.texi: Likewise.
37642         * doc/posix-functions/wcschr.texi: Likewise.
37643         * doc/posix-functions/wcscmp.texi: Likewise.
37644         * doc/posix-functions/wcscoll.texi: Likewise.
37645         * doc/posix-functions/wcscpy.texi: Likewise.
37646         * doc/posix-functions/wcscspn.texi: Likewise.
37647         * doc/posix-functions/wcsftime.texi: Likewise.
37648         * doc/posix-functions/wcslen.texi: Likewise.
37649         * doc/posix-functions/wcsncat.texi: Likewise.
37650         * doc/posix-functions/wcsncmp.texi: Likewise.
37651         * doc/posix-functions/wcsncpy.texi: Likewise.
37652         * doc/posix-functions/wcspbrk.texi: Likewise.
37653         * doc/posix-functions/wcsrchr.texi: Likewise.
37654         * doc/posix-functions/wcsrtombs.texi: Likewise.
37655         * doc/posix-functions/wcsspn.texi: Likewise.
37656         * doc/posix-functions/wcsstr.texi: Likewise.
37657         * doc/posix-functions/wcstod.texi: Likewise.
37658         * doc/posix-functions/wcstof.texi: Likewise.
37659         * doc/posix-functions/wcstoimax.texi: Likewise.
37660         * doc/posix-functions/wcstok.texi: Likewise.
37661         * doc/posix-functions/wcstold.texi: Likewise.
37662         * doc/posix-functions/wcstoll.texi: Likewise.
37663         * doc/posix-functions/wcstol.texi: Likewise.
37664         * doc/posix-functions/wcstombs.texi: Likewise.
37665         * doc/posix-functions/wcstoull.texi: Likewise.
37666         * doc/posix-functions/wcstoul.texi: Likewise.
37667         * doc/posix-functions/wcstoumax.texi: Likewise.
37668         * doc/posix-functions/wcswidth.texi: Likewise.
37669         * doc/posix-functions/wcsxfrm.texi: Likewise.
37670         * doc/posix-functions/wctob.texi: Likewise.
37671         * doc/posix-functions/wctomb.texi: Likewise.
37672         * doc/posix-functions/wctrans.texi: Likewise.
37673         * doc/posix-functions/wctype.texi: Likewise.
37674         * doc/posix-functions/wcwidth.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         Update doc for HP-UX 11.11.
37686         * doc/posix-functions/btowc.texi: Clarify that the function is missing
37687         in HP-UX version 11.00, not in all versions of HP-UX 11.
37688         * doc/posix-functions/fwide.texi: Likewise.
37689         * doc/posix-functions/fwprintf.texi: Likewise.
37690         * doc/posix-functions/fwscanf.texi: Likewise.
37691         * doc/posix-functions/inet_ntop.texi: Likewise.
37692         * doc/posix-functions/inet_pton.texi: Likewise.
37693         * doc/posix-functions/mbrlen.texi: Likewise.
37694         * doc/posix-functions/mbrtowc.texi: Likewise.
37695         * doc/posix-functions/mbsinit.texi: Likewise.
37696         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37697         * doc/posix-functions/swprintf.texi: Likewise.
37698         * doc/posix-functions/swscanf.texi: Likewise.
37699         * doc/posix-functions/towctrans.texi: Likewise.
37700         * doc/posix-functions/vfwprintf.texi: Likewise.
37701         * doc/posix-functions/vswprintf.texi: Likewise.
37702         * doc/posix-functions/vwprintf.texi: Likewise.
37703         * doc/posix-functions/wcrtomb.texi: Likewise.
37704         * doc/posix-functions/wcsrtombs.texi: Likewise.
37705         * doc/posix-functions/wcsstr.texi: Likewise.
37706         * doc/posix-functions/wctob.texi: Likewise.
37707         * doc/posix-functions/wctrans.texi: Likewise.
37708         * doc/posix-functions/wmemchr.texi: Likewise.
37709         * doc/posix-functions/wmemcmp.texi: Likewise.
37710         * doc/posix-functions/wmemcpy.texi: Likewise.
37711         * doc/posix-functions/wmemmove.texi: Likewise.
37712         * doc/posix-functions/wmemset.texi: Likewise.
37713         * doc/posix-functions/wprintf.texi: Likewise.
37714         * doc/posix-functions/wscanf.texi: Likewise.
37715
37716 2008-12-21  Bruno Haible  <bruno@clisp.org>
37717
37718         Work around a portability problem.
37719         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
37720         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
37721
37722 2008-12-20  Bruno Haible  <bruno@clisp.org>
37723
37724         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
37725         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
37726         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
37727         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
37728         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
37729
37730         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
37731         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
37732         set.
37733         (GNULIB_defined_mbstate_t): New macro.
37734         (mbsinit): Redefine if REPLACE_MBSINIT is set.
37735         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
37736         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
37737         reuses the system's mbrtowc function but works around the bugs.
37738         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
37739         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
37740         macros.
37741         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
37742         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
37743         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
37744         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
37745         REPLACE_MBSINIT if mbsinit needs to be overridden.
37746         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
37747         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37748         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
37749         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37750         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37751         m4/locale-zh.m4.
37752         (Depends): Add mbsinit.
37753         * modules/mbsinit (Depends): Add mbrtowc.
37754         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
37755
37756 2008-12-20  Bruno Haible  <bruno@clisp.org>
37757
37758         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
37759         so that there are no conversion errors on AIX.
37760         * tests/test-mbsrtowcs.c (main): LIkewise.
37761
37762 2008-12-20  Bruno Haible  <bruno@clisp.org>
37763
37764         Work around wctob bug on Solaris <= 9.
37765         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
37766         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
37767         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
37768         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
37769         * modules/wctob (Files): Add m4/locale-fr.m4.
37770         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
37771
37772 2008-12-20  Bruno Haible  <bruno@clisp.org>
37773
37774         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
37775         /dev/null.
37776         * tests/test-select-in.sh: Likewise.
37777         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37778
37779 2008-12-20  Bruno Haible  <bruno@clisp.org>
37780
37781         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
37782         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
37783         Cygwin 1.5.x.
37784
37785 2008-12-20  Bruno Haible  <bruno@clisp.org>
37786
37787         Ensure mbstate_t is defined on HP-UX 11.11.
37788         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
37789         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
37790         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
37791         AC_USE_SYSTEM_EXTENSIONS.
37792         * modules/fnmatch (Depends-on): Add extensions.
37793         * modules/mbrlen (Depends-on): Likewise.
37794         * modules/mbrtowc (Depends-on): Likewise.
37795         * modules/mbsinit (Depends-on): Likewise.
37796         * modules/mbsrtowcs (Depends-on): Likewise.
37797         * modules/mbswidth (Depends-on): Likewise.
37798         * modules/quotearg (Depends-on): Likewise.
37799         * modules/strftime (Depends-on): Likewise.
37800
37801 2008-12-20  Bruno Haible  <bruno@clisp.org>
37802
37803         Ensure wctob is declared on IRIX 6.5.
37804         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
37805         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
37806         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
37807         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
37808         of HAVE_WCTOB.
37809         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
37810         HAVE_WCTOB.
37811         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
37812
37813 2008-12-19  Bruno Haible  <bruno@clisp.org>
37814
37815         * modules/mbsrtowcs-tests: New file.
37816         * tests/test-mbsrtowcs1.sh: New file.
37817         * tests/test-mbsrtowcs2.sh: New file.
37818         * tests/test-mbsrtowcs3.sh: New file.
37819         * tests/test-mbsrtowcs4.sh: New file.
37820         * tests/test-mbsrtowcs.c: New file.
37821
37822         New module 'mbsrtowcs'.
37823         * lib/wchar.in.h (mbsrtowcs): New declaration.
37824         * lib/mbsrtowcs.c: New file.
37825         * m4/mbsrtowcs.m4: New file.
37826         * modules/mbsrtowcs: New file.
37827         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
37828         HAVE_MBSRTOWCS.
37829         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
37830         HAVE_MBSRTOWCS.
37831         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
37832
37833 2008-12-19  Bruno Haible  <bruno@clisp.org>
37834
37835         New module 'mbrlen'.
37836         * lib/wchar.in.h (mbrlen): New declaration.
37837         * lib/mbrlen.c: New file.
37838         * m4/mbrlen.m4: New file.
37839         * modules/mbrlen: New file.
37840         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
37841         HAVE_MBRLEN.
37842         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
37843         HAVE_MBRLEN.
37844         * doc/posix-functions/mbrlen.texi: Document the new module.
37845
37846 2008-12-19  Bruno Haible  <bruno@clisp.org>
37847
37848         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
37849         * modules/mbrtowc (Depends-on): Add verify.
37850         Suggested by Paul Eggert.
37851
37852 2008-12-18  Bruno Haible  <bruno@clisp.org>
37853
37854         * modules/mbsinit-tests: New file.
37855         * tests/test-mbsinit.sh: New file.
37856         * tests/test-mbsinit.c: New file.
37857
37858 2008-12-18  Bruno Haible  <bruno@clisp.org>
37859
37860         * modules/mbrtowc-tests: New file.
37861         * tests/test-mbrtowc1.sh: New file.
37862         * tests/test-mbrtowc2.sh: New file.
37863         * tests/test-mbrtowc3.sh: New file.
37864         * tests/test-mbrtowc4.sh: New file.
37865         * tests/test-mbrtowc.c: New file.
37866
37867         New module 'mbrtowc'.
37868         * lib/wchar.in.h (mbstate_t): Override when the system does not have
37869         mbsinit and mbrtowc.
37870         (mbrtowc): New declaration.
37871         * lib/mbrtowc.c: New file.
37872         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
37873         * modules/mbrtowc: New file.
37874         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
37875         HAVE_MBRTOWC.
37876         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
37877         HAVE_MBRTOWC.
37878         * doc/posix-functions/mbrtowc.texi: Document the new module.
37879
37880 2008-12-18  Bruno Haible  <bruno@clisp.org>
37881
37882         New module 'wctob'.
37883         * lib/wchar.in.h (wctob): New declaration.
37884         * lib/wctob.c: New file.
37885         * m4/wctob.m4: New file.
37886         * modules/wctob: New file.
37887         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
37888         HAVE_WCTOB.
37889         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
37890         * doc/posix-functions/wctob.texi: Document the new module.
37891
37892 2008-12-18  Bruno Haible  <bruno@clisp.org>
37893
37894         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
37895         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
37896
37897 2008-12-18  Simon Josefsson  <simon@josefsson.org>
37898
37899         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
37900         G. Christensen" <tgc@jupiterrise.com>.
37901
37902         * lib/flock.c: Need to include errno.h.  Reported by "Tom
37903         G. Christensen" <tgc@jupiterrise.com>.
37904
37905         * lib/flock.c: Need to include string.h.  Reported by "Tom
37906         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
37907         <ebb9@byu.net>.
37908
37909 2008-12-18  Bruno Haible  <bruno@clisp.org>
37910
37911         * m4/locale-ja.m4: New file, from GNU gettext.
37912
37913 2008-12-17  Bruno Haible  <bruno@clisp.org>
37914
37915         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
37916         Suggested by Eric Blake.
37917
37918 2008-12-17  Bruno Haible  <bruno@clisp.org>
37919
37920         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
37921
37922 2008-12-17  Bruno Haible  <bruno@clisp.org>
37923
37924         * lib/mbsinit.c: Include verify.h. Verify an assumption.
37925         * modules/mbsinit (Depends-on): Add verify.
37926         Suggested by Paul Eggert.
37927
37928 2008-12-17  Bruno Haible  <bruno@clisp.org>
37929
37930         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
37931         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
37932         gl_FUNC_MBRTOWC.
37933         * m4/mbiter.m4 (gl_MBITER): LIkewise.
37934         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
37935         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
37936         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
37937         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
37938         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
37939         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
37940         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
37941         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
37942         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
37943         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
37944         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
37945         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
37946         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
37947         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
37948         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37949         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
37950         * modules/trim (configure.ac): Likewise.
37951
37952 2008-12-17  Bruno Haible  <bruno@clisp.org>
37953
37954         * modules/btowc-tests: New file.
37955         * tests/test-btowc1.sh: New file.
37956         * tests/test-btowc2.sh: New file.
37957         * tests/test-btowc.c: New file.
37958
37959         New module 'btowc'.
37960         * lib/wchar.in.h (btowc): New declaration.
37961         * lib/btowc.c: New file.
37962         * m4/btowc.m4: New file.
37963         * modules/btowc: New file.
37964         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
37965         HAVE_BTOWC.
37966         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
37967         * doc/posix-functions/btowc.texi: Document the new module.
37968
37969 2008-12-17  Bruno Haible  <bruno@clisp.org>
37970
37971         New module 'mbsinit'.
37972         * lib/wchar.in.h (mbsinit): New declaration.
37973         * lib/mbsinit.c: New file.
37974         * m4/mbsinit.m4: New file.
37975         * modules/mbsinit: New file.
37976         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
37977         HAVE_MBSINIT.
37978         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
37979         HAVE_MBSINIT.
37980         * doc/posix-functions/mbsinit.texi: Document the new module.
37981
37982 2008-12-16  Bruno Haible  <bruno@clisp.org>
37983
37984         * lib/unistd.in.h: Add comment.
37985         * tests/test-environ.c: Don't include <stdlib.h>.
37986
37987 2008-12-16  Bruno Haible  <bruno@clisp.org>
37988
37989         * lib/parse-duration.h (parse_duration): Document return value
37990         convention.
37991         * lib/parse-duration.c: Include specification header first. Add
37992         comments.
37993         (_): Remove macro.
37994         (parse_year_month_day, parse_hour_minute_second): Move side effects
37995         outside of strchr call.
37996         (parse_non_iso8601): Move side effects outside of isspace call.
37997         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
37998         call.
37999
38000 2008-12-16  Bruno Haible  <bruno@clisp.org>
38001
38002         * tests/test-parse-duration.sh: Produce no output when the test
38003         succeeds.
38004
38005 2008-12-16  Bruno Haible  <bruno@clisp.org>
38006
38007         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
38008         expressions.
38009
38010 2008-12-15  Bruno Haible  <bruno@clisp.org>
38011
38012         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
38013         * doc/glibc-functions/flistxattr.texi: Likewise.
38014         * doc/glibc-functions/fopencookie.texi: Likewise.
38015         * doc/glibc-functions/fremovexattr.texi: Likewise.
38016         * doc/glibc-functions/fsetxattr.texi: Likewise.
38017         * doc/glibc-functions/getxattr.texi: Likewise.
38018         * doc/glibc-functions/lgetxattr.texi: Likewise.
38019         * doc/glibc-functions/listxattr.texi: Likewise.
38020         * doc/glibc-functions/llistxattr.texi: Likewise.
38021         * doc/glibc-functions/lremovexattr.texi: Likewise.
38022         * doc/glibc-functions/lsetxattr.texi: Likewise.
38023         * doc/glibc-functions/removexattr.texi: Likewise.
38024         * doc/glibc-functions/setxattr.texi: Likewise.
38025         * doc/posix-functions/open_memstream.texi: Likewise.
38026
38027 2008-12-15  Eric Blake  <ebb9@byu.net>
38028
38029         Update doc for cygwin 1.7.
38030         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
38031         functions.
38032         * doc/posix-functions/fchmodat.texi: Likewise.
38033         * doc/posix-functions/fchownat.texi: Likewise.
38034         * doc/posix-functions/fdopendir.texi: Likewise.
38035         * doc/posix-functions/fmemopen.texi: Likewise.
38036         * doc/posix-functions/freeaddrinfo.texi: Likewise.
38037         * doc/posix-functions/fstatat.texi: Likewise.
38038         * doc/posix-functions/futimens.texi: Likewise.
38039         * doc/posix-functions/gai_strerror.texi: Likewise.
38040         * doc/posix-functions/getaddrinfo.texi: Likewise.
38041         * doc/posix-functions/getnameinfo.texi: Likewise.
38042         * doc/posix-functions/if_freenameindex.texi: Likewise.
38043         * doc/posix-functions/if_indextoname.texi: Likewise.
38044         * doc/posix-functions/if_nameindex.texi: Likewise.
38045         * doc/posix-functions/if_nametoindex.texi: Likewise.
38046         * doc/posix-functions/insque.texi: Likewise.
38047         * doc/posix-functions/linkat.texi: Likewise.
38048         * doc/posix-functions/llrint.texi: Likewise.
38049         * doc/posix-functions/llrintf.texi: Likewise.
38050         * doc/posix-functions/llrintl.texi: Likewise.
38051         * doc/posix-functions/lockf.texi: Likewise.
38052         * doc/posix-functions/lrintl.texi: Likewise.
38053         * doc/posix-functions/mkdirat.texi: Likewise.
38054         * doc/posix-functions/mkfifoat.texi: Likewise.
38055         * doc/posix-functions/mknodat.texi: Likewise.
38056         * doc/posix-functions/mq_close.texi: Likewise.
38057         * doc/posix-functions/mq_getattr.texi: Likewise.
38058         * doc/posix-functions/mq_notify.texi: Likewise.
38059         * doc/posix-functions/mq_open.texi: Likewise.
38060         * doc/posix-functions/mq_receive.texi: Likewise.
38061         * doc/posix-functions/mq_send.texi: Likewise.
38062         * doc/posix-functions/mq_setattr.texi: Likewise.
38063         * doc/posix-functions/mq_timedreceive.texi: Likewise.
38064         * doc/posix-functions/mq_timedsend.texi: Likewise.
38065         * doc/posix-functions/mq_unlink.texi: Likewise.
38066         * doc/posix-functions/open_memstream.texi: Likewise.
38067         * doc/posix-functions/openat.texi: Likewise.
38068         * doc/posix-functions/posix_fadvise.texi: Likewise.
38069         * doc/posix-functions/posix_fallocate.texi: Likewise.
38070         * doc/posix-functions/posix_madvise.texi: Likewise.
38071         * doc/posix-functions/posix_memalign.texi: Likewise.
38072         * doc/posix-functions/posix_openpt.texi: Likewise.
38073         * doc/posix-functions/readlinkat.texi: Likewise.
38074         * doc/posix-functions/remque.texi: Likewise.
38075         * doc/posix-functions/renameat.texi: Likewise.
38076         * doc/posix-functions/rintl.texi: Likewise.
38077         * doc/posix-functions/sem_unlink.texi: Likewise.
38078         * doc/posix-functions/shm_open.texi: Likewise.
38079         * doc/posix-functions/shm_unlink.texi: Likewise.
38080         * doc/posix-functions/signgam.texi: Likewise.
38081         * doc/posix-functions/sigset.texi: Likewise.
38082         * doc/posix-functions/stpcpy.texi: Likewise.
38083         * doc/posix-functions/stpncpy.texi: Likewise.
38084         * doc/posix-functions/strerror.texi: Likewise.
38085         * doc/posix-functions/strtod.texi: Likewise.
38086         * doc/posix-functions/symlinkat.texi: Likewise.
38087         * doc/posix-functions/unlinkat.texi: Likewise.
38088         * doc/posix-functions/utimensat.texi: Likewise.
38089         * doc/glibc-functions/bindresvport.texi: Likewise.
38090         * doc/glibc-functions/dn_expand.texi: Likewise.
38091         * doc/glibc-functions/exp10.texi: Likewise.
38092         * doc/glibc-functions/exp10f.texi: Likewise.
38093         * doc/glibc-functions/fgetxattr.texi: Likewise.
38094         * doc/glibc-functions/flistxattr.texi: Likewise.
38095         * doc/glibc-functions/fopencookie.texi: Likewise.
38096         * doc/glibc-functions/freeifaddrs.texi: Likewise.
38097         * doc/glibc-functions/fremovexattr.texi: Likewise.
38098         * doc/glibc-functions/fsetxattr.texi: Likewise.
38099         * doc/glibc-functions/getifaddrs.texi: Likewise.
38100         * doc/glibc-functions/getxattr.texi: Likewise.
38101         * doc/glibc-functions/lgetxattr.texi: Likewise.
38102         * doc/glibc-functions/listxattr.texi: Likewise.
38103         * doc/glibc-functions/llistxattr.texi: Likewise.
38104         * doc/glibc-functions/lremovexattr.texi: Likewise.
38105         * doc/glibc-functions/lsetxattr.texi: Likewise.
38106         * doc/glibc-functions/pow10.texi: Likewise.
38107         * doc/glibc-functions/pow10f.texi: Likewise.
38108         * doc/glibc-functions/rcmd_af.texi: Likewise.
38109         * doc/glibc-functions/removexattr.texi: Likewise.
38110         * doc/glibc-functions/res_init.texi: Likewise.
38111         * doc/glibc-functions/res_mkquery.texi: Likewise.
38112         * doc/glibc-functions/res_query.texi: Likewise.
38113         * doc/glibc-functions/res_querydomain.texi: Likewise.
38114         * doc/glibc-functions/res_send.texi: Likewise.
38115         * doc/glibc-functions/rresvport_af.texi: Likewise.
38116         * doc/glibc-functions/setxattr.texi: Likewise.
38117         * doc/glibc-functions/strcasestr.texi: Likewise.
38118
38119 2008-12-15  Bruno Haible  <bruno@clisp.org>
38120
38121         Fix compilation error on OSF/1 4.0.
38122         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
38123         <sys/time.h>, simply delegate to the system header.
38124         Reported by Daniel Richard G. <oss@teragram.com>.
38125
38126 2008-12-15  Bruno Haible  <bruno@clisp.org>
38127
38128         * doc/posix-functions/openat.texi: Mention the 'openat' module.
38129         * doc/posix-functions/fchmodat.texi: Likewise.
38130         * doc/posix-functions/fchownat.texi: Likewise.
38131         * doc/posix-functions/fdopendir.texi: Likewise.
38132         * doc/posix-functions/fstatat.texi: Likewise.
38133         * doc/posix-functions/mkdirat.texi: Likewise.
38134         * doc/posix-functions/unlinkat.texi: Likewise.
38135
38136 2008-12-14  Bruno Haible  <bruno@clisp.org>
38137
38138         Update doc for POSIX:2008.
38139         * doc/posix-functions/faccessat.texi: New file.
38140         * doc/posix-functions/fchmodat.texi: New file.
38141         * doc/posix-functions/fchownat.texi: New file.
38142         * doc/posix-functions/fdopendir.texi: New file.
38143         * doc/posix-functions/fstatat.texi: New file.
38144         * doc/posix-functions/futimens.texi: New file.
38145         * doc/posix-functions/linkat.texi: New file.
38146         * doc/posix-functions/mkdirat.texi: New file.
38147         * doc/posix-functions/mkfifoat.texi: New file.
38148         * doc/posix-functions/mknodat.texi: New file.
38149         * doc/posix-functions/open_wmemstream.texi: New file.
38150         * doc/posix-functions/openat.texi: New file.
38151         * doc/posix-functions/psiginfo.texi: New file.
38152         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
38153         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
38154         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
38155         * doc/posix-functions/readlinkat.texi: New file.
38156         * doc/posix-functions/renameat.texi: New file.
38157         * doc/posix-functions/strerror_l.texi: New file.
38158         * doc/posix-functions/symlinkat.texi: New file.
38159         * doc/posix-functions/unlinkat.texi: New file.
38160         * doc/posix-functions/utimensat.texi: New file.
38161         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38162
38163 2008-12-14  Bruno Haible  <bruno@clisp.org>
38164
38165         Update doc for POSIX:2008.
38166         * doc/posix-functions/alphasort.texi: Renamed from
38167         doc/glibc-functions/alphasort.texi.
38168         * doc/posix-functions/dirfd.texi: Renamed from
38169         doc/glibc-functions/dirfd.texi.
38170         * doc/posix-functions/dprintf.texi: Renamed from
38171         doc/glibc-functions/dprintf.texi.
38172         * doc/posix-functions/duplocale.texi: Renamed from
38173         doc/glibc-functions/duplocale.texi.
38174         * doc/posix-functions/fexecve.texi: Renamed from
38175         doc/glibc-functions/fexecve.texi.
38176         * doc/posix-functions/fmemopen.texi: Renamed from
38177         doc/glibc-functions/fmemopen.texi.
38178         * doc/posix-functions/freelocale.texi: Renamed from
38179         doc/glibc-functions/freelocale.texi.
38180         * doc/posix-functions/getdate_err.texi: Renamed from
38181         doc/glibc-functions/getdate_err.texi.
38182         * doc/posix-functions/isalnum_l.texi: Renamed from
38183         doc/glibc-functions/isalnum_l.texi.
38184         * doc/posix-functions/isalpha_l.texi: Renamed from
38185         doc/glibc-functions/isalpha_l.texi.
38186         * doc/posix-functions/isblank_l.texi: Renamed from
38187         doc/glibc-functions/isblank_l.texi.
38188         * doc/posix-functions/iscntrl_l.texi: Renamed from
38189         doc/glibc-functions/iscntrl_l.texi.
38190         * doc/posix-functions/isdigit_l.texi: Renamed from
38191         doc/glibc-functions/isdigit_l.texi.
38192         * doc/posix-functions/isgraph_l.texi: Renamed from
38193         doc/glibc-functions/isgraph_l.texi.
38194         * doc/posix-functions/islower_l.texi: Renamed from
38195         doc/glibc-functions/islower_l.texi.
38196         * doc/posix-functions/isprint_l.texi: Renamed from
38197         doc/glibc-functions/isprint_l.texi.
38198         * doc/posix-functions/ispunct_l.texi: Renamed from
38199         doc/glibc-functions/ispunct_l.texi.
38200         * doc/posix-functions/isspace_l.texi: Renamed from
38201         doc/glibc-functions/isspace_l.texi.
38202         * doc/posix-functions/isupper_l.texi: Renamed from
38203         doc/glibc-functions/isupper_l.texi.
38204         * doc/posix-functions/iswalnum_l.texi: Renamed from
38205         doc/glibc-functions/iswalnum_l.texi.
38206         * doc/posix-functions/iswalpha_l.texi: Renamed from
38207         doc/glibc-functions/iswalpha_l.texi.
38208         * doc/posix-functions/iswblank_l.texi: Renamed from
38209         doc/glibc-functions/iswblank_l.texi.
38210         * doc/posix-functions/iswcntrl_l.texi: Renamed from
38211         doc/glibc-functions/iswcntrl_l.texi.
38212         * doc/posix-functions/iswctype_l.texi: Renamed from
38213         doc/glibc-functions/iswctype_l.texi.
38214         * doc/posix-functions/iswdigit_l.texi: Renamed from
38215         doc/glibc-functions/iswdigit_l.texi.
38216         * doc/posix-functions/iswgraph_l.texi: Renamed from
38217         doc/glibc-functions/iswgraph_l.texi.
38218         * doc/posix-functions/iswlower_l.texi: Renamed from
38219         doc/glibc-functions/iswlower_l.texi.
38220         * doc/posix-functions/iswprint_l.texi: Renamed from
38221         doc/glibc-functions/iswprint_l.texi.
38222         * doc/posix-functions/iswpunct_l.texi: Renamed from
38223         doc/glibc-functions/iswpunct_l.texi.
38224         * doc/posix-functions/iswspace_l.texi: Renamed from
38225         doc/glibc-functions/iswspace_l.texi.
38226         * doc/posix-functions/iswupper_l.texi: Renamed from
38227         doc/glibc-functions/iswupper_l.texi.
38228         * doc/posix-functions/iswxdigit_l.texi: Renamed from
38229         doc/glibc-functions/iswxdigit_l.texi.
38230         * doc/posix-functions/isxdigit_l.texi: Renamed from
38231         doc/glibc-functions/isxdigit_l.texi.
38232         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
38233         doc/glibc-functions/mbsnrtowcs.texi.
38234         * doc/posix-functions/mkdtemp.texi: Renamed from
38235         doc/glibc-functions/mkdtemp.texi.
38236         * doc/posix-functions/newlocale.texi: Renamed from
38237         doc/glibc-functions/newlocale.texi.
38238         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
38239         doc/glibc-functions/nl_langinfo_l.texi.
38240         * doc/posix-functions/open_memstream.texi: Renamed from
38241         doc/glibc-functions/open_memstream.texi.
38242         * doc/posix-functions/opterr.texi: Renamed from
38243         doc/glibc-functions/opterr.texi.
38244         * doc/posix-functions/optind.texi: Renamed from
38245         doc/glibc-functions/optind.texi.
38246         * doc/posix-functions/optopt.texi: Renamed from
38247         doc/glibc-functions/optopt.texi.
38248         * doc/posix-functions/psignal.texi: Renamed from
38249         doc/glibc-functions/psignal.texi.
38250         * doc/posix-functions/scandir.texi: Renamed from
38251         doc/glibc-functions/scandir.texi.
38252         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38253         doc/glibc-functions/sched_get_priority_min.texi.
38254         * doc/posix-functions/signgam.texi: Renamed from
38255         doc/glibc-functions/signgam.texi.
38256         * doc/posix-functions/stpcpy.texi: Renamed from
38257         doc/glibc-functions/stpcpy.texi.
38258         * doc/posix-functions/stpncpy.texi: Renamed from
38259         doc/glibc-functions/stpncpy.texi.
38260         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38261         doc/glibc-functions/strcasecmp_l.texi.
38262         * doc/posix-functions/strcoll_l.texi: Renamed from
38263         doc/glibc-functions/strcoll_l.texi.
38264         * doc/posix-functions/strfmon_l.texi: Renamed from
38265         doc/glibc-functions/strfmon_l.texi.
38266         * doc/posix-functions/strftime_l.texi: Renamed from
38267         doc/glibc-functions/strftime_l.texi.
38268         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38269         doc/glibc-functions/strncasecmp_l.texi.
38270         * doc/posix-functions/strndup.texi: Renamed from
38271         doc/glibc-functions/strndup.texi.
38272         * doc/posix-functions/strnlen.texi: Renamed from
38273         doc/glibc-functions/strnlen.texi.
38274         * doc/posix-functions/strsignal.texi: Renamed from
38275         doc/glibc-functions/strsignal.texi.
38276         * doc/posix-functions/strxfrm_l.texi: Renamed from
38277         doc/glibc-functions/strxfrm_l.texi.
38278         * doc/posix-functions/timer_gettime.texi: Renamed from
38279         doc/glibc-functions/timer_gettime.texi.
38280         * doc/posix-functions/tolower_l.texi: Renamed from
38281         doc/glibc-functions/tolower_l.texi.
38282         * doc/posix-functions/toupper_l.texi: Renamed from
38283         doc/glibc-functions/toupper_l.texi.
38284         * doc/posix-functions/towctrans_l.texi: Renamed from
38285         doc/glibc-functions/towctrans_l.texi.
38286         * doc/posix-functions/towlower_l.texi: Renamed from
38287         doc/glibc-functions/towlower_l.texi.
38288         * doc/posix-functions/towupper_l.texi: Renamed from
38289         doc/glibc-functions/towupper_l.texi.
38290         * doc/posix-functions/uselocale.texi: Renamed from
38291         doc/glibc-functions/uselocale.texi.
38292         * doc/posix-functions/vdprintf.texi: Renamed from
38293         doc/glibc-functions/vdprintf.texi.
38294         * doc/posix-functions/wcpcpy.texi:
38295         Renamed from doc/glibc-functions/wcpcpy.texi.
38296         * doc/posix-functions/wcpncpy.texi: Renamed from
38297         doc/glibc-functions/wcpncpy.texi.
38298         * doc/posix-functions/wcscasecmp.texi: Renamed from
38299         doc/glibc-functions/wcscasecmp.texi.
38300         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38301         doc/glibc-functions/wcscasecmp_l.texi.
38302         * doc/posix-functions/wcscoll_l.texi: Renamed from
38303         doc/glibc-functions/wcscoll_l.texi.
38304         * doc/posix-functions/wcsdup.texi: Renamed from
38305         doc/glibc-functions/wcsdup.texi.
38306         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38307         doc/glibc-functions/wcsncasecmp.texi.
38308         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38309         doc/glibc-functions/wcsncasecmp_l.texi.
38310         * doc/posix-functions/wcsnlen.texi: Renamed from
38311         doc/glibc-functions/wcsnlen.texi.
38312         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38313         doc/glibc-functions/wcsnrtombs.texi.
38314         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38315         doc/glibc-functions/wcsxfrm_l.texi.
38316         * doc/posix-functions/wctrans_l.texi: Renamed from
38317         doc/glibc-functions/wctrans_l.texi.
38318         * doc/posix-functions/wctype_l.texi: Renamed from
38319         doc/glibc-functions/wctype_l.texi.
38320         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38321         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38322         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38323         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38324         these subsections.
38325         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38326         Remove sections.
38327
38328 2008-12-14  Bruno Haible  <bruno@clisp.org>
38329
38330         Update doc for POSIX:2008.
38331         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38332
38333 2008-12-14  Bruno Haible  <bruno@clisp.org>
38334
38335         Update doc for POSIX:2008.
38336         * doc/pastposix-functions/bcmp.texi: Renamed from
38337         doc/posix-functions/bcmp.texi.
38338         * doc/pastposix-functions/bcopy.texi: Renamed from
38339         doc/posix-functions/bcopy.texi.
38340         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38341         doc/posix-functions/bsd_signal.texi.
38342         * doc/pastposix-functions/bzero.texi: Renamed from
38343         doc/posix-functions/bzero.texi.
38344         * doc/pastposix-functions/ecvt.texi: Renamed from
38345         doc/posix-functions/ecvt.texi.
38346         * doc/pastposix-functions/fcvt.texi: Renamed from
38347         doc/posix-functions/fcvt.texi.
38348         * doc/pastposix-functions/ftime.texi: Renamed from
38349         doc/posix-functions/ftime.texi.
38350         * doc/pastposix-functions/gcvt.texi: Renamed from
38351         doc/posix-functions/gcvt.texi.
38352         * doc/pastposix-functions/getcontext.texi: Renamed from
38353         doc/posix-functions/getcontext.texi.
38354         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38355         doc/posix-functions/gethostbyaddr.texi.
38356         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38357         doc/posix-functions/gethostbyname.texi.
38358         * doc/pastposix-functions/getwd.texi: Renamed from
38359         doc/posix-functions/getwd.texi.
38360         * doc/pastposix-functions/h_errno.texi: Renamed from
38361         doc/posix-functions/h_errno.texi.
38362         * doc/pastposix-functions/index.texi: Renamed from
38363         doc/posix-functions/index.texi.
38364         * doc/pastposix-functions/makecontext.texi: Renamed from
38365         doc/posix-functions/makecontext.texi.
38366         * doc/pastposix-functions/mktemp.texi: Renamed from
38367         doc/posix-functions/mktemp.texi.
38368         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38369         doc/posix-functions/pthread_attr_getstackaddr.texi.
38370         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38371         doc/posix-functions/pthread_attr_setstackaddr.texi.
38372         * doc/pastposix-functions/rindex.texi: Renamed from
38373         doc/posix-functions/rindex.texi.
38374         * doc/pastposix-functions/scalb.texi: Renamed from
38375         doc/posix-functions/scalb.texi.
38376         * doc/pastposix-functions/setcontext.texi: Renamed from
38377         doc/posix-functions/setcontext.texi.
38378         * doc/pastposix-functions/swapcontext.texi: Renamed from
38379         doc/posix-functions/swapcontext.texi.
38380         * doc/pastposix-functions/ualarm.texi: Renamed from
38381         doc/posix-functions/ualarm.texi.
38382         * doc/pastposix-functions/usleep.texi: Renamed from
38383         doc/posix-functions/usleep.texi.
38384         * doc/pastposix-functions/vfork.texi: Renamed from
38385         doc/posix-functions/vfork.texi.
38386         * doc/pastposix-functions/wcswcs.texi: Renamed from
38387         doc/posix-functions/wcswcs.texi.
38388         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38389         (Function Substitutes): Update.
38390
38391 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38392
38393         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38394         m4/strerror.m4.
38395
38396 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38397             Bruno Haible  <bruno@clisp.org>
38398
38399         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38400
38401 2008-12-13  Bruno Haible  <bruno@clisp.org>
38402
38403         * modules/strtoull (Depends-on): Remove unistd.
38404
38405 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38406
38407         * modules/strtoull (Depends-on): Add stdlib.
38408
38409 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38410
38411         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38412
38413 2008-12-10  Jim Meyering  <meyering@redhat.com>
38414
38415         gl_ASSERT: don't say assertions are disabled when they're not
38416         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38417         "checking whether to enable assertions... no", when they are in
38418         fact enabled.  This is solely a bug in the output of configure.
38419         In spite of saying "no", NDEBUG was not defined in that case.
38420         Also, as noted by Eric Blake, leave assertions enabled upon
38421         --enable-assert=INVALID.
38422
38423 2008-12-10  Bruno Haible  <bruno@clisp.org>
38424
38425         Change MODULES.html to refer to POSIX:2008 where possible.
38426         * MODULES.html.sh (POSIX2008_URL): New variable.
38427         (posix_headers): Remove sys/timeb, ucontext.
38428         (posix2001_headers): New variable.
38429         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38430         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38431         index, makecontext, mktemp, pthread_attr_getstackaddr,
38432         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38433         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38434         (posix2001_functions): New variable.
38435         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38436         otherwise.
38437
38438 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38439
38440         add missing include to parse-duration.c
38441         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38442         * modules/parse-duration (Depends-on): Add xalloc.
38443
38444         fix sed script reading maint.mk
38445         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38446         (syntax-check-rules): Use it.
38447
38448 2008-12-09  Bruno Haible  <bruno@clisp.org>
38449
38450         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38451         MacOS X 10.4/PowerPC.
38452         Reported by Simon Josefsson.
38453
38454 2008-12-08  Jim Meyering  <meyering@redhat.com>
38455
38456         work around mingw's lack of some S_IF definitions
38457         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38458         Reported by Simon Josefsson.
38459
38460 2008-12-08  Bruno Haible  <bruno@clisp.org>
38461
38462         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38463         applied to variables. Needed on MacOS X 10.4/PowerPC.
38464         Reported by Simon Josefsson.
38465
38466 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38467         and Eric Blake  <ebb9@byu.net>
38468
38469         assert: honor --enable-assert
38470         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
38471         order to honor --enable-assert, rather than treating it as a
38472         synonym for --disable-assert.
38473
38474 2008-12-08  Jim Meyering  <meyering@redhat.com>
38475
38476         * lib/posixtm.c: Remove now-useless declaration of mktime.
38477
38478         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
38479
38480 2008-12-07  Bruno Haible  <bruno@clisp.org>
38481
38482         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
38483         test_once): Mark functions as static.
38484         * tests/test-tls.c (test_tls): Likewise.
38485
38486 2008-12-07  Bruno Haible  <bruno@clisp.org>
38487
38488         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
38489         iconv_register_autodetect.
38490
38491 2008-12-07  Jim Meyering  <meyering@redhat.com>
38492
38493         posixtm.c: avoid a warning
38494         * lib/posixtm.c (posixtime): Don't initialize tm0.
38495         It's no longer needed to placate gcc4's -Wuninitialized,
38496         and the attempt to placate would elicit a new warning.
38497
38498         unicodeio.c: mark unused parameters
38499         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38500         (fallback_failure_callback): Likewise.
38501
38502 2008-12-07  Bruno Haible  <bruno@clisp.org>
38503
38504         * gnulib-tool (func_create_testdir): When building the tests
38505         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
38506         Reported by Simon Josefsson.
38507
38508 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38509
38510         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
38511
38512 2008-12-06  Bruno Haible  <bruno@clisp.org>
38513
38514         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
38515         Suggested by Eric Blake.
38516
38517 2008-12-06  Bruno Haible  <bruno@clisp.org>
38518
38519         Fix a c-stack test failure on MacOS X.
38520         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
38521         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
38522         handler for SIGBUS as well.
38523         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
38524         install a signal handler for SIGBUS as well.
38525         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
38526
38527 2008-12-06  Bruno Haible  <bruno@clisp.org>
38528
38529         Advocacy documentation.
38530         * doc/gnulib-intro.texi (Benefits): New section.
38531         * doc/gnulib.texi: Update.
38532
38533 2008-12-06  Bruno Haible  <bruno@clisp.org>
38534
38535         Document the 'manywarnings' module.
38536         * doc/manywarnings.texi: New file.
38537         * doc/gnulib.texi: Include it.
38538
38539 2008-12-05  Eric Blake  <ebb9@byu.net>
38540
38541         tests: silence some gcc warnings
38542         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
38543         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
38544         type mismatches.
38545
38546 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38547             Bruno Haible  <bruno@clisp.org>
38548
38549         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
38550
38551 2008-11-29  Jim Meyering  <meyering@redhat.com>
38552
38553         unicodeio.c: mark unused parameters
38554         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38555         (fallback_failure_callback): Likewise.
38556
38557         fts: fix a thinko
38558         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
38559         (set_stat_type): Return S_IF*-valued "type" directly.
38560         Prompted by James Youngman's spotting a related bug.
38561         Confirmed by further testing through find.
38562
38563         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38564         * lib/fts.c (D_TYPE): Define.
38565         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38566         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38567         (s_ifmt_shift_bits): New function.
38568         (set_stat_type): New function.
38569         (fts_build): When not calling fts_stat, call set_stat_type
38570         to propagate dirent.d_type info to fts_read caller.
38571         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38572         fts_statp->st_mode type information may be valid.
38573
38574 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38575
38576         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38577         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38578         <sds@gnu.org>.
38579
38580 2008-11-20  Bruno Haible  <bruno@clisp.org>
38581
38582         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38583         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38584         INCLUDE_NEXT.
38585         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38586         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38587         * modules/math (Makefile.am): Substitute
38588         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38589         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38590
38591 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38592             Bruno Haible  <bruno@clisp.org>
38593
38594         * lib/stdint.in.h: Define all type macros so that their expansion is
38595         a single typedef'ed token. Fixes a compilation failure in Boost which
38596         does "using ::int8_t;".
38597
38598 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38599
38600         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38601         gl_MANYWARN_ALL_GCC.
38602         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38603         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38604         * modules/manywarnings: New file.
38605         * MODULES.html.sh: Mention manywarnings module.
38606
38607 2008-11-18  Bruno Haible  <bruno@clisp.org>
38608
38609         * doc/gnulib-tool.texi (Unit tests): New section.
38610
38611 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38612
38613         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38614         paths like 'lib/po/foo.po'.
38615
38616 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38617
38618         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38619         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38620
38621 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38622
38623         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38624         parameter works.
38625
38626 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38627
38628         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38629
38630 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38631
38632         * modules/parse-duration-tests: New file.
38633         * tests/test-parse-duration.sh: New file.
38634         * tests/test-parse-duration.c: New file.
38635
38636         New module 'parse-duration'.
38637         * lib/parse-duration.h: New file.
38638         * lib/parse-duration.c: New file.
38639         * modules/parse-duration: New file.
38640
38641 2008-11-17  Bruno Haible  <bruno@clisp.org>
38642
38643         * tests/test-select-out.sh: Comment out the first pipe test.
38644         Reported by Simon Josefsson.
38645
38646 2008-11-17  Bruno Haible  <bruno@clisp.org>
38647
38648         * modules/getaddrinfo (Depends-on): Add servent, hostent.
38649         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
38650         gl_HOSTENT.
38651
38652 2008-11-17  Bruno Haible  <bruno@clisp.org>
38653
38654         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
38655         -lnetwork and -lnet. Needed for Haiku and BeOS.
38656
38657 2008-11-16  Bruno Haible  <bruno@clisp.org>
38658
38659         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
38660
38661 2008-11-16  Bruno Haible  <bruno@clisp.org>
38662
38663         Avoid test failure on Haiku.
38664         * tests/test-fsync.c: Include <errno.h>.
38665         (main): Don't require that fsync (0) fails.
38666
38667 2008-11-15  Bruno Haible  <bruno@clisp.org>
38668
38669         New module 'hostent'.
38670         * modules/hostent: New file.
38671         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
38672
38673 2008-11-15  Bruno Haible  <bruno@clisp.org>
38674
38675         New module 'servent'.
38676         * modules/servent: New file.
38677         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
38678
38679 2008-11-15  Bruno Haible  <bruno@clisp.org>
38680
38681         Avoid generating same test program with two different rules.
38682         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
38683         test-frexp to test-frexp-nolibm.
38684         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
38685         test-frexpl to test-frexpl-nolibm.
38686
38687 2008-11-15  Bruno Haible  <bruno@clisp.org>
38688
38689         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
38690         $(FREXPL_LIBM).
38691
38692 2008-11-15  Bruno Haible  <bruno@clisp.org>
38693
38694         * lib/netdb.in.h: Activate the definitions also when the system's
38695         <netdb.h> has 'struct addrinfo'.
38696         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
38697         EAI_OVERFLOW or AI_NUMERICSERV.
38698         * doc/posix-headers/netdb.texi: Document the problem.
38699
38700 2008-11-15  Bruno Haible  <bruno@clisp.org>
38701
38702         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
38703
38704         Make the 'sched' module work on platforms where <sched.h> exists but
38705         is incomplete (such as Haiku).
38706         * lib/sched.in.h; Include the system's <sched.h> if it exists.
38707         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
38708         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
38709         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
38710         HAVE_STRUCT_SCHED_PARAM.
38711         * modules/sched (Depends-on): Add include_next.
38712         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
38713         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
38714         * doc/posix-headers/sched.texi: Document the issue.
38715
38716 2008-11-13  Jim Meyering  <meyering@redhat.com>
38717
38718         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
38719         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
38720         test would fail due to the difference in the Report bugs to ...
38721         line.  The expected address is empty, "<>", while the actual
38722         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
38723
38724 2008-11-12  Bruno Haible  <bruno@clisp.org>
38725
38726         lstat: don't compile lstat.c on systems lacking lstat
38727         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
38728         which don't have lstat; this is handled by lib/sys_stat.in.h already.
38729         Reported by Daniel P. Berrange via Jim Meyering.
38730
38731 2008-11-12  Jim Meyering  <meyering@redhat.com>
38732
38733         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
38734
38735 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38736
38737         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
38738         instead.
38739
38740 2008-11-12  Bruno Haible  <bruno@clisp.org>
38741
38742         * lib/unicodeio.c: Include unistr.h.
38743         (utf8_wctomb): Remove function.
38744         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
38745
38746 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38747
38748         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
38749         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
38750         <bruno@clisp.org>.
38751         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
38752
38753 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38754
38755         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
38756         * doc/gnulib.texi: Add section for warnings.
38757
38758 2008-11-11  Bruno Haible  <bruno@clisp.org>
38759
38760         * lib/sockets.h: Add a comment.
38761
38762 2008-11-11  Karl Berry  <karl@gnu.org>
38763
38764         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
38765
38766 2008-11-11  Eric Blake  <ebb9@byu.net>
38767
38768         fdl.texi: avoid git symlinks
38769         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
38770
38771 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38772
38773         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
38774
38775 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38776
38777         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
38778         (gl_WARN_ADD): Substitute $2 if literal.
38779
38780 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38781
38782         * m4/warning.m4: Remove.
38783
38784 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38785
38786         * m4/warnings.m4: Almost complete rewrite. :-)
38787
38788 2008-11-10  Simon Josefsson  <simon@josefsson.org>
38789
38790         * modules/warnings: New module.
38791         * m4/warnings.m4: New file.
38792         * MODULES.html.sh: Mention warnings module.
38793         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
38794         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38795
38796 2008-11-10  Eric Blake  <ebb9@byu.net>
38797
38798         fdl.texi: make a symlink to the latest version
38799         * doc/standards.texi: Revert today's earlier change.
38800         * doc/fdl-1.2.texi: Rename from old fdl.texi...
38801         * doc/fdl.texi: ...and replace this with a symlink to the newer
38802         fdl-1.3.texi.
38803
38804 2008-11-10  Bruno Haible  <bruno@clisp.org>
38805
38806         * tests/test-select-fd.c (main): Accept the result file name as fourth
38807         argument.
38808         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
38809         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
38810
38811 2008-11-10  Bruno Haible  <bruno@clisp.org>
38812
38813         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
38814         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
38815         as autoconf-substituted macros.
38816         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
38817         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
38818         gl_NETDB_H_DEFAULTS. Set these variables.
38819         * modules/netdb (Makefile.am): Substitute these variables.
38820
38821 2008-11-10  Eric Blake  <ebb9@byu.net>
38822
38823         standards.texi: include correct file for FDL 1.3
38824         * doc/standards.texi (GNU Free Documentation License): Change
38825         include file to pull in FDL 1.3, not 1.2.
38826
38827         fdl.texi: revert accidental change to license
38828         * doc/fdl.texi: This is FDL 1.2, not 1.3.
38829
38830 2008-11-10  Bruno Haible  <bruno@clisp.org>
38831
38832         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
38833         cross-compiling guesses also when the native compile gives no result.
38834
38835 2008-11-10  Bruno Haible  <bruno@clisp.org>
38836
38837         * lib/spawni.c (__spawni): Force variable into the stack.
38838
38839 2008-11-10  Bruno Haible  <bruno@clisp.org>
38840
38841         Add support for Haiku.
38842         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
38843         glibc and BeOS, but also on Haiku.
38844         * lib/fpurge.c (fpurge): Likewise.
38845         * lib/freadable.c (freadable): Likewise.
38846         * lib/freadahead.c (freadahead): Likewise.
38847         * lib/freading.c (freading): Likewise.
38848         * lib/freadptr.c (freadptr): Likewise.
38849         * lib/freadseek.c (freadptrinc): Likewise.
38850         * lib/fseeko.c (rpl_fseeko): Likewise.
38851         * lib/fseterr.c (fseterr): Likewise.
38852         * lib/fwritable.c (fwritable): Likewise.
38853         * lib/fwriting.c (fwriting): Likewise.
38854         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
38855
38856 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38857
38858         * lib/config.charset: Treat Haiku like BeOS.
38859
38860 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38861
38862         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
38863         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
38864
38865 2008-11-08  Bruno Haible  <bruno@clisp.org>
38866
38867         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
38868         AC_CACHE_CHECK.
38869
38870 2008-11-08  Bruno Haible  <bruno@clisp.org>
38871
38872         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
38873
38874 2008-11-08  Bruno Haible  <bruno@clisp.org>
38875
38876         * tests/test-select-fd.c: New file.
38877         * tests/test-select-in.sh: New file.
38878         * tests/test-select-out.sh: New file.
38879         * tests/test-select-stdin.c: New file.
38880         * modules/select-tests (Files): Add the new files.
38881         (Depends-on): Add gettimeofday.
38882         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
38883         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
38884         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
38885
38886 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
38887             Bruno Haible  <bruno@clisp.org>
38888
38889         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
38890
38891 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
38892
38893         * build-aux/pmccabe2html: Added support for C++ source files.
38894
38895 2008-11-05  Ben Pfaff  <blp@gnu.org>
38896
38897         Fix lib/close.c build on Windows.
38898         * modules/close (Files): Add lib/w32sock.h.
38899
38900 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
38901
38902         Accept Bison's NEWS format.
38903         * build-aux/announce-gen (print_news_deltas): Tweak
38904         $re_prefix.
38905
38906 2008-11-04  Bruno Haible  <bruno@clisp.org>
38907
38908         * modules/random_r (Maintainer): Add glibc.
38909
38910 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38911
38912         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
38913         by karl@freefriends.org (Karl Berry).
38914         * doc/alloca.texi: Likewise.
38915         * doc/c-ctype.texi: Likewise.
38916         * doc/c-strcase.texi: Likewise.
38917         * doc/c-strcaseeq.texi: Likewise.
38918         * doc/c-strcasestr.texi: Likewise.
38919         * doc/c-strstr.texi: Likewise.
38920         * doc/c-strtod.texi: Likewise.
38921         * doc/c-strtold.texi: Likewise.
38922         * doc/ctime.texi: Likewise.
38923         * doc/error.texi: Likewise.
38924         * doc/fdl.texi: Likewise.
38925         * doc/gcd.texi: Likewise.
38926         * doc/getdate.texi: Likewise.
38927         * doc/gnulib-intro.texi: Likewise.
38928         * doc/gnulib-tool.texi: Likewise.
38929         * doc/gnulib.texi: Likewise.
38930         * doc/inet_ntoa.texi: Likewise.
38931         * doc/maintain.texi: Likewise.
38932         * doc/make-stds.texi: Likewise.
38933         * doc/quote.texi: Likewise.
38934         * doc/regexprops-generic.texi: Likewise.
38935         * doc/standards.texi: Likewise.
38936         * doc/verify.texi: Likewise.
38937         * doc/visibility.texi: Likewise.
38938         * doc/gnulib.texi (GNU Free Documentation License): Include
38939         fdl-1.3.texi instead of fdl.texi.
38940
38941 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38942
38943         * doc/fdl-1.3.texi: New file, from
38944         <http://www.gnu.org/licenses/fdl-1.3.texi>.
38945         * modules/fdl-1.3: Add.
38946         * MODULES.html.sh: Add fdl-1.3.
38947
38948 2008-11-03  Bruno Haible  <bruno@clisp.org>
38949
38950         Make determination of absolute name of header file work with AIX xlc.
38951         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
38952         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
38953         preprocessing.
38954         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38955         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
38956
38957 2008-11-03  Simon Josefsson  <simon@josefsson.org>
38958
38959         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
38960         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
38961         <ludo@gnu.org>.
38962
38963 2008-11-02  Bruno Haible  <bruno@clisp.org>
38964
38965         Mark 'strpbrk' obsolete.
38966         * modules/strpbrk (Status, Notice): New sections.
38967         * modules/strtok_r (Depends-on): Add strpbrk.
38968
38969 2008-11-02  Bruno Haible  <bruno@clisp.org>
38970
38971         Mark 'strdup' obsolete.
38972         * modules/strdup (Status, Notice): New sections.
38973         * modules/findprog (Depends-on): Add strdup.
38974         * modules/getaddrinfo (Depends-on): Likewise.
38975         * modules/localename (Depends-on): Likewise.
38976         * modules/relocatable-lib (Depends-on): Likewise.
38977         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
38978         * modules/relocatable-prog (Depends-on): Likewise.
38979         * modules/trim (Depends-on): Likewise.
38980         * modules/unictype/gen-ctype (Depends-on): Likewise.
38981         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38982
38983 2008-11-02  Bruno Haible  <bruno@clisp.org>
38984
38985         Mark 'strcspn' obsolete.
38986         * modules/strcspn (Status, Notice): New sections.
38987
38988 2008-11-02  Bruno Haible  <bruno@clisp.org>
38989
38990         Mark 'rmdir' obsolete.
38991         * modules/rmdir (Status, Notice): New sections.
38992         * modules/clean-temp (Depends-on): Add rmdir.
38993         * modules/openat (Depends-on): Likewise.
38994
38995 2008-11-02  Bruno Haible  <bruno@clisp.org>
38996
38997         Mark 'raise' obsolete.
38998         * modules/raise (Status, Notice): New sections.
38999         (Include): Specify <signal.h>.
39000         * modules/stdio (Depends-on): Add raise.
39001         * modules/write (Depends-on): Likewise.
39002
39003 2008-11-02  Bruno Haible  <bruno@clisp.org>
39004
39005         Mark 'memset' obsolete.
39006         * modules/memset (Status, Notice): New sections.
39007
39008 2008-11-02  Bruno Haible  <bruno@clisp.org>
39009
39010         Mark 'memmove' obsolete.
39011         * modules/memmove (Status, Notice): New sections.
39012         * modules/argp (Depends-on): Add memmove.
39013         * modules/argz (Depends-on): Likewise.
39014         * modules/canonicalize (Depends-on): Likewise.
39015         * modules/canonicalize-lgpl (Depends-on): Likewise.
39016         * modules/fts (Depends-on): Likewise.
39017         * modules/getcwd (Depends-on): Likewise.
39018         * modules/human (Depends-on): Likewise.
39019         * modules/regex (Depends-on): Likewise.
39020         * modules/striconveh (Depends-on): Likewise.
39021         * modules/trim (Depends-on): Likewise.
39022         * modules/unistr/u8-move (Depends-on): Likewise.
39023         * modules/unistr/u16-move (Depends-on): Likewise.
39024         * modules/unistr/u32-move (Depends-on): Likewise.
39025
39026 2008-11-02  Bruno Haible  <bruno@clisp.org>
39027
39028         Mark 'memcpy' obsolete.
39029         * modules/memcpy (Status, Notice): New sections.
39030
39031 2008-11-02  Bruno Haible  <bruno@clisp.org>
39032
39033         Mark 'memcmp' obsolete.
39034         * modules/memcmp (Status, Notice): New sections.
39035         * modules/argmatch (Depends-on): Add memchr.
39036         * modules/backupfile (Depends-on): Likewise.
39037         * modules/c-strcasestr (Depends-on): Likewise.
39038         * modules/crypto/des (Depends-on): Likewise.
39039         * modules/csharpcomp (Depends-on): Likewise.
39040         * modules/fnmatch (Depends-on): Likewise.
39041         * modules/git-merge-changelog (Depends-on): Likewise.
39042         * modules/isnand (Depends-on): Likewise.
39043         * modules/isnand-nolibm (Depends-on): Likewise.
39044         * modules/isnanf (Depends-on): Likewise.
39045         * modules/isnanf-nolibm (Depends-on): Likewise.
39046         * modules/isnanl (Depends-on): Likewise.
39047         * modules/isnanl-nolibm (Depends-on): Likewise.
39048         * modules/mbchar (Depends-on): Likewise.
39049         * modules/memcoll (Depends-on): Likewise.
39050         * modules/quotearg (Depends-on): Likewise.
39051         * modules/regex (Depends-on): Likewise.
39052         * modules/relocatable-prog (Depends-on): Likewise.
39053         * modules/same (Depends-on): Likewise.
39054         * modules/signbit (Depends-on): Likewise.
39055         * modules/strcasestr-simple (Depends-on): Likewise.
39056         * modules/unictype/gen-ctype (Depends-on): Likewise.
39057         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39058         * modules/uniname/uniname (Depends-on): Likewise.
39059         * modules/unistr/u8-cmp (Depends-on): Likewise.
39060
39061 2008-11-02  Bruno Haible  <bruno@clisp.org>
39062
39063         Mark 'memchr' obsolete.
39064         * modules/memchr (Status, Notice): New sections.
39065         * modules/argp (Depends-on): Add memchr.
39066         * modules/base64 (Depends-on): Likewise.
39067         * modules/c-strcasestr (Depends-on): Likewise.
39068         * modules/chdir-long (Depends-on): Likewise.
39069         * modules/fnmatch (Depends-on): Likewise.
39070         * modules/getsubopt (Depends-on): Likewise.
39071         * modules/git-merge-changelog (Depends-on): Likewise.
39072         * modules/glob (Depends-on): Likewise.
39073         * modules/strcasestr-simple (Depends-on): Likewise.
39074         * modules/strnlen (Depends-on): Likewise.
39075
39076 2008-11-02  Bruno Haible  <bruno@clisp.org>
39077
39078         Mark 'atexit' obsolete.
39079         * modules/atexit (Status, Notice): New sections.
39080         * modules/chdir-long (Depends-on): Add atexit.
39081         * modules/wait-process (Depends-on): Likewise.
39082
39083 2008-11-02  Bruno Haible  <bruno@clisp.org>
39084
39085         * gnulib-tool: New option --with-obsolete.
39086         (func_usage): Document it.
39087         (func_modules_transitive_closure): Drop obsolete dependencies if
39088         incobsolete is not true.
39089         (func_import): Read and save the incobsolete variable to the cache.
39090
39091 2008-11-02  Bruno Haible  <bruno@clisp.org>
39092
39093         * modules/TEMPLATE-EXTENDED: New field 'Status'.
39094         * gnulib-tool: New option --extract-status.
39095         (func_usage): Document it.
39096         (sed_extract_prog): Recognize it.
39097         (func_get_status): New function.
39098
39099 2008-10-30  Simon Josefsson  <simon@josefsson.org>
39100
39101         * modules/sockets (License): Change from LGPL to LGPLv2+.
39102
39103 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39104
39105         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
39106
39107 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39108
39109         * MODULES.html.sh (Support for systems lacking POSIX:2001):
39110         Mention times and sys_times.
39111         * modules/sys_times, modules/sys_times-tests: New modules.
39112         * modules/times, modules/times-tests: Likewise
39113         * m4/sys_times_h.m4: New file.
39114         * lib/sys_times.in.h: Likewise
39115         * lib/times.c: Likewise.
39116         * tests/test-sys_times.c: Likewise.
39117         * tests/test-times.c: Likewise.
39118         * doc/posix-headers/sys_times.texi: Update.
39119         * doc/posix-functions/times.texi: Update.
39120
39121 2008-10-28  Jim Meyering  <meyering@redhat.com>
39122
39123         * modules/tempname (Depends-on): Add lstat.
39124
39125         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
39126
39127 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39128
39129         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
39130         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
39131         using idiom used elsewhere in gnulib.
39132
39133 2008-10-27  Jim Meyering  <meyering@redhat.com>
39134
39135         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
39136
39137 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39138
39139         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
39140         TESTS_ENVIRONMENT, for shell scripts that needs to call built
39141         programs.
39142         * tests/test-argp-2.sh: Use $EXEEXT when needed.
39143
39144 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39145
39146         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
39147
39148 2008-10-27  Bruno Haible  <bruno@clisp.org>
39149
39150         * tests/test-lstat.c: Include <stdio.h>.
39151
39152 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39153
39154         * modules/lstat-tests: New module.
39155         * tests/test-lstat.c: New file.
39156
39157 2008-10-26  Jim Meyering  <meyering@redhat.com>
39158
39159         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
39160
39161 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39162             Bruno Haible  <bruno@clisp.org>
39163
39164         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
39165         * modules/configmake (Include): Add a note that the include must come
39166         after all system headers.
39167         * lib/javaversion.c: Include configmake.h after all other includes.
39168
39169 2008-10-26  Bruno Haible  <bruno@clisp.org>
39170
39171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
39172         HAVE_STRUCT_RANDOM_DATA to 1.
39173         (gl_STDLIB_H): Simplify.
39174
39175 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39176
39177         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
39178         substitute HAVE_STRUCT_RANDOM_DATA.
39179         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
39180         random_data.
39181         * modules/stdlib (Makefile.am): Substitute
39182         HAVE_STRUCT_RANDOM_DATA.
39183
39184 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39185
39186         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
39187         * doc/gnulib-intro.texi (Copyright): Likewise.
39188
39189 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39190
39191         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
39192         findings.
39193
39194 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
39195             Bruno Haible  <bruno@clisp.org>
39196
39197         * lib/unistd.in.h: Include <winsock2.h>.
39198         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
39199         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
39200         Provide dummy declarations.
39201         (gethostname): Override.
39202         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
39203         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
39204         gl_PREREQ_SYS_H_WINSOCK2.
39205         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
39206         * doc/posix-functions/gethostname.texi: More details.
39207
39208 2008-10-25  Bruno Haible  <bruno@clisp.org>
39209
39210         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39211         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
39212         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
39213
39214         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
39215         here ...
39216         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
39217         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
39218         gl_UNISTD_H_DEFAULTS.
39219
39220 2008-10-25  Eric Blake  <ebb9@byu.net>
39221
39222         signbit: avoid spurious compiler failure
39223         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
39224         declarations inside function.
39225
39226 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39227             Bruno Haible  <bruno@clisp.org>
39228
39229         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
39230         * modules/random_r (Depends-on): Add stdint.
39231
39232 2008-10-24  Bruno Haible  <bruno@clisp.org>
39233
39234         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
39235         Eggert.
39236         * modules/strerror (License): Likewise.
39237
39238 2008-10-24  Jim Meyering  <meyering@redhat.com>
39239
39240         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
39241         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
39242
39243 2008-10-24  Eric Blake  <ebb9@byu.net>
39244
39245         getgroups: fix compilation when getgroups is available
39246         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
39247         but with <config.h> override of getgroups disabled.
39248
39249 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39250
39251         * doc/gnulib.texi (Header files): Add note about C++ problems.
39252         Explained by Bruno Haible <bruno@clisp.org>.
39253
39254 2008-10-23  Bruno Haible  <bruno@clisp.org>
39255
39256         Define a dummy SA_NODEFER macro on Interix.
39257         * lib/signal.in.h (SA_NODEFER): Define fallback.
39258         Reported by Aleksey Cheusov <cheusov@tut.by> via
39259         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39260
39261 2008-10-23  Bruno Haible  <bruno@clisp.org>
39262
39263         * modules/freadahead (License): Change to LGPLv2+.
39264         Suggested by Simon Josefsson.
39265
39266 2008-10-23  Jim Meyering  <meyering@redhat.com>
39267
39268         random_r: new module
39269         * modules/random_r: New file.
39270         * m4/random_r.m4: New file.
39271         * lib/random_r.c: New file, from glibc.
39272         * modules/random_r-tests: New file.
39273         * tests/test-random_r.c: New file.
39274         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39275          Declare.
39276         (RAND_MAX): Define.
39277         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39278         * modules/stdlib: Substitute them, too.
39279         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39280         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39281         * doc/glibc-functions/random_r.texi: Likewise.
39282         * doc/glibc-functions/setstate_r.texi: Likewise.
39283         * doc/glibc-functions/srandom_r.texi: Likewise.
39284         * config/srclist.txt: Mention it.
39285
39286 2008-10-23  David Lutterkort  <lutter@redhat.com>
39287
39288         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39289         link requirement
39290
39291 2008-10-23  Jim Meyering  <meyering@redhat.com>
39292
39293         selinux-h: mark parameters of stub functions as intentionally unused
39294         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39295         * lib/se-context.in.h: Likewise.
39296
39297 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39298
39299         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39300
39301 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39302
39303         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39304
39305 2008-10-22  Eric Blake  <ebb9@byu.net>
39306
39307         glthread/thread: avoid compiler warning
39308         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39309         Add unreachable abort to silence compiler.
39310
39311 2008-10-22  Eric Blake  <ebb9@byu.net>
39312
39313         netdb: also supply struct addrinfo for cygwin 1.5.x
39314         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39315         older cygwin.
39316         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39317         cygwin.
39318         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39319
39320 2008-10-22  Bruno Haible  <bruno@clisp.org>
39321
39322         * users.txt: Update entry about pspp.
39323
39324 2008-10-21  Bruno Haible  <bruno@clisp.org>
39325
39326         Simplification.
39327         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39328         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39329
39330         Simplification.
39331         * lib/ioctl.c (ioctl): Don't undefine.
39332         * lib/socket.c (socket): Don't undefine.
39333
39334         Remove unused module indicator macros.
39335         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39336         GNULIB_$1 as a C macro.
39337
39338         * doc/posix-functions/close.texi: Undo last change.
39339         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39340         Windows platforms.
39341
39342 2008-10-21  Bruno Haible  <bruno@clisp.org>
39343
39344         Add gethostname() declaration to <unistd.h>.
39345         * lib/unistd.in.h (gethostname): New declaration.
39346         * lib/gethostname.c: Include <unistd.h>.
39347         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39348         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39350         and HAVE_GETHOSTNAME.
39351         * modules/gethostname (Depends-on): Add unistd.
39352         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39353         (Include): Specify <unistd.h>.
39354         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39355         HAVE_GETHOSTNAME.
39356         * tests/test-gethostname.c: Include <unistd.h> first.
39357
39358 2008-10-21  Bruno Haible  <bruno@clisp.org>
39359
39360         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39361         * modules/select-tests (Depends-on): Likewise.
39362         Reported by Simon Josefsson.
39363
39364 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39365
39366         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39367         * lib/accept.c: New file, based on winsock.c.
39368         * lib/bind.c: New file, based on winsock.c.
39369         * lib/connect.c: New file, based on winsock.c.
39370         * lib/getpeername.c: New file, based on winsock.c.
39371         * lib/getsockname.c: New file, based on winsock.c.
39372         * lib/getsockopt.c: New file, based on winsock.c.
39373         * lib/ioctl.c: New file, based on winsock.c.
39374         * lib/listen.c: New file, based on winsock.c.
39375         * lib/recv.c: New file, based on winsock.c.
39376         * lib/recvfrom.c: New file, based on winsock.c.
39377         * lib/send.c: New file, based on winsock.c.
39378         * lib/sendto.c: New file, based on winsock.c.
39379         * lib/setsockopt.c: New file, based on winsock.c.
39380         * lib/shutdown.c: New file, based on winsock.c.
39381         * lib/socket.c: New file, based on winsock.c.
39382         * lib/w32sock.h: New file, based on winsock.c.
39383         * lib/winsock.c: Remove file.
39384         * modules/accept: Likewise.
39385         * modules/bind: Likewise.
39386         * modules/connect: Likewise.
39387         * modules/getpeername: Likewise.
39388         * modules/getsockname: Likewise.
39389         * modules/getsockopt: Likewise.
39390         * modules/ioctl: Likewise.
39391         * modules/listen: Likewise.
39392         * modules/recv: Likewise.
39393         * modules/recvfrom: Likewise.
39394         * modules/send: Likewise.
39395         * modules/sendto: Likewise.
39396         * modules/setsockopt: Likewise.
39397         * modules/shutdown: Likewise.
39398         * modules/socket: Use socket.c instead of winsock.c.
39399         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39400         * doc/posix-functions/accept.texi: Doc fix.
39401         * doc/posix-functions/bind.texi: Doc fix.
39402         * doc/posix-functions/close.texi: Doc fix.
39403         * doc/posix-functions/connect.texi: Doc fix.
39404         * doc/posix-functions/getpeername.texi: Doc fix.
39405         * doc/posix-functions/getsockname.texi: Doc fix.
39406         * doc/posix-functions/getsockopt.texi: Doc fix.
39407         * doc/posix-functions/ioctl.texi: Doc fix.
39408         * doc/posix-functions/listen.texi: Doc fix.
39409         * doc/posix-functions/recv.texi: Doc fix.
39410         * doc/posix-functions/recvfrom.texi: Doc fix.
39411         * doc/posix-functions/send.texi: Doc fix.
39412         * doc/posix-functions/sendto.texi: Doc fix.
39413         * doc/posix-functions/setsockopt.texi: Doc fix.
39414         * doc/posix-functions/shutdown.texi: Doc fix.
39415         * doc/posix-functions/socket.texi: Doc fix.
39416
39417 2008-10-20  Bruno Haible  <bruno@clisp.org>
39418
39419         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39420         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39421         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39422         as an alias for SIGABRT.
39423         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39424         (sigaction): Map it to SIGABRT.
39425         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39426
39427 2008-10-20  Bruno Haible  <bruno@clisp.org>
39428
39429         * lib/fts.c: Don't include lstat.h.
39430         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39431
39432         Move the lstat() declaration to <sys/stat.h>.
39433         * lib/lstat.h: Remove file.
39434         * lib/sys_stat.in.h: Add special invocation convention.
39435         (lstat): New declaration.
39436         * lib/lstat.c (orig_lstat): New function.
39437         (rpl_lstat): Use orig_lstat instead of lstat.
39438         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39439         AC_C_INLINE. Set REPLACE_LSTAT.
39440         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39441         and REPLACE_LSTAT.
39442         * modules/lstat (Files): Remove lib/lstat.h.
39443         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39444         (Include): Specify <sys/stat.h> instead of lstat.h.
39445         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39446         REPLACE_LSTAT.
39447         * NEWS: Mention the change.
39448
39449 2008-10-20  Bruno Haible  <bruno@clisp.org>
39450
39451         * modules/posix_spawn-tests: New file.
39452         * tests/test-posix_spawn3.c: New file.
39453
39454 2008-10-20  Bruno Haible  <bruno@clisp.org>
39455
39456         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39457         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39458         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39459         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39460         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39461
39462 2008-10-20  Bruno Haible  <bruno@clisp.org>
39463
39464         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39465         of posix_spawn on AIX 5.3.
39466
39467 2008-10-20  Bruno Haible  <bruno@clisp.org>
39468
39469         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39470
39471 2008-10-20  Bruno Haible  <bruno@clisp.org>
39472
39473         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
39474         of AC_LANG_PROGRAM.
39475
39476 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39477
39478         * lib/netdb.in.h: Don't define GNU specific constants until they
39479         are supported or needed.  Reported by Bruno Haible
39480         <bruno@clisp.org>.
39481
39482 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39483
39484         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
39485
39486 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39487
39488         * lib/getaddrinfo.h: Remove file.
39489         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
39490         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
39491         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
39492         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
39493         * modules/netdb: Substitute GNULIB_GETADDRINFO.
39494         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
39495         * tests/test-getaddrinfo.c: Likewise.
39496         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
39497         * NEWS: Mention change.
39498
39499 2008-10-19  Bruno Haible  <bruno@clisp.org>
39500
39501         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
39502
39503 2008-10-19  Bruno Haible  <bruno@clisp.org>
39504
39505         * lib/wait-process.c: Include simply <sys/wait.h>.
39506         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
39507         WIFSTOPPED): Remove fallback definitions.
39508         * modules/wait-process (Depends-on): Add sys_wait.
39509
39510         New module 'sys_wait'.
39511         * modules/sys_wait: New file.
39512         * lib/sys_wait.in.h: New file, partially copied from
39513         lib/wait-process.c.
39514         * m4/sys_wait_h.m4: New file.
39515         * doc/posix-headers/sys_wait.texi: Mention the new module.
39516
39517 2008-10-19  Bruno Haible  <bruno@clisp.org>
39518
39519         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
39520
39521 2008-10-19  Bruno Haible  <bruno@clisp.org>
39522
39523         Assume that waitpid() fills an 'int' status, not a 'union wait'.
39524         * lib/wait-process.c (WAIT_T): Remove type.
39525         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
39526         (wait_subprocess): Update.
39527
39528 2008-10-19  Bruno Haible  <bruno@clisp.org>
39529
39530         New module 'atoll'.
39531         * modules/atoll: New file.
39532         * lib/stdlib.in.h (atoll): New declaration.
39533         * lib/atoll.c: New file, from glibc with modifications.
39534         * m4/atoll.m4: New file.
39535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
39536         HAVE_ATOLL.
39537         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
39538         * doc/posix-functions/atoll.texi: Mention the new module.
39539
39540 2008-10-19  Bruno Haible  <bruno@clisp.org>
39541
39542         Add strtoull() declaration to <stdlib.h>.
39543         * lib/stdlib.in.h (strtoull): New declaration.
39544         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39545         Set HAVE_STRTOULL.
39546         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
39547         HAVE_STRTOULL.
39548         * modules/strtoull (Depends-on): Add stdlib.
39549         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39550         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
39551         HAVE_STRTOULL.
39552
39553 2008-10-19  Bruno Haible  <bruno@clisp.org>
39554
39555         Add strtoll() declaration to <stdlib.h>.
39556         * lib/stdlib.in.h (strtoll): New declaration.
39557         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39558         Set HAVE_STRTOLL.
39559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
39560         HAVE_STRTOLL.
39561         * modules/strtoll (Depends-on): Add stdlib.
39562         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39563         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39564
39565 2008-10-19  Bruno Haible  <bruno@clisp.org>
39566
39567         * modules/bcopy (Depends-on): Add strings.
39568         (Include): Specify <strings.h>.
39569
39570 2008-10-19  Bruno Haible  <bruno@clisp.org>
39571
39572         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39573
39574 2008-10-19  Bruno Haible  <bruno@clisp.org>
39575
39576         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39577         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39578         mingw.
39579
39580 2008-10-19  Bruno Haible  <bruno@clisp.org>
39581
39582         * lib/atanl.c: Don't include isnanl.h.
39583         * lib/cosl.c: Likewise.
39584         * lib/ldexpl.c: Likewise.
39585         * lib/logl.c: Likewise.
39586         * lib/sinl.c: Likewise.
39587         * lib/sqrtl.c: Likewise.
39588         * lib/tanl.c: Likewise.
39589
39590         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39591         * lib/isnanf.h: Remove file.
39592         * lib/isnand.h: Remove file.
39593         * lib/isnanl.h: Remove file.
39594         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39595         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39596         macros.
39597         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39598         HAVE_ISNANF, don't define it as a C macro.
39599         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39600         HAVE_ISNAND, don't define it as a C macro.
39601         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39602         HAVE_ISNANL, don't define it as a C macro.
39603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39604         HAVE_ISNAN[FDL].
39605         * modules/isnanf (Files): Remove lib/isnanf.h.
39606         (Depends-on): Add math.
39607         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39608         (Include): Specify <math.h> instead of isnanf.h.
39609         * modules/isnand (Files): Remove lib/isnand.h.
39610         (Depends-on): Add math.
39611         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39612         (Include): Specify <math.h> instead of isnand.h.
39613         * modules/isnanl (Files): Remove lib/isnanl.h.
39614         (Depends-on): Add math.
39615         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39616         (Include): Specify <math.h> instead of isnanl.h.
39617         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39618         HAVE_ISNAN[FDL].
39619         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39620         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39621         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39622         * NEWS: Mention the change.
39623
39624 2008-10-18  Bruno Haible  <bruno@clisp.org>
39625
39626         Add getusershell(), setusershell(), endusershell() declarations to
39627         <unistd.h>.
39628         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39629         declarations.
39630         * lib/getusershell.c: Include unistd.h.
39631         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39632         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39633         HAVE_GETUSERSHELL.
39634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39635         and HAVE_GETUSERSHELL.
39636         * modules/getusershell (Depends-on): Add unistd, extensions.
39637         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39638         (Include): Specify <unistd.h>.
39639         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
39640         HAVE_GETUSERSHELL.
39641
39642 2008-10-18  Bruno Haible  <bruno@clisp.org>
39643
39644         Add a getloadavg() declaration to <stdlib.h>.
39645         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
39646         getloadavg declaration.
39647         (getloadavg): New declaration.
39648         * lib/getloadavg.c: Include <stdlib.h> first.
39649         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
39650         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
39651         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
39652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
39653         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39654         * modules/getloadavg (Depends-on): Add stdlib, extensions.
39655         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39656         (Include): Specify <stdlib.h>.
39657         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
39658         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39659
39660 2008-10-18  Bruno Haible  <bruno@clisp.org>
39661
39662         * lib/dirchownmod.c: Don't include lchmod.h.
39663
39664         Move the lchmod() declaration to <sys/stat.h>.
39665         * lib/lchmod.h: Remove file.
39666         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
39667         (lchmod): New declaration, moved here from lib/lchown.h.
39668         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
39669         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
39670         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
39671         and HAVE_LCHMOD.
39672         * modules/lchmod (Files): Remove lib/lchmod.h.
39673         (Depends-on): Add sys_stat, extensions.
39674         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39675         (Include): Specify <sys/stat.h> instead of lchmod.h.
39676         * modules/sys_stat (Depends-on): Add link-warning.
39677         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
39678         definition of GL_LINK_WARNING.
39679         * NEWS: Mention the change.
39680
39681 2008-10-18  Bruno Haible  <bruno@clisp.org>
39682
39683         * lib/fchdir.c: Don't include dirfd.h.
39684         * lib/fts.c: Likewise.
39685         * lib/getcwd.c: Likewise.
39686         * lib/glob.c: Likewise.
39687
39688         Move the dirfd() declaration to <dirent.h>.
39689         * lib/dirfd.h: Remove file.
39690         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
39691         (dirfd): New declaration.
39692         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
39693         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
39694         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
39695         HAVE_DECL_DIRFD.
39696         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
39697         HAVE_DECL_DIRFD.
39698         * modules/dirfd (Files): Remove lib/dirfd.h.
39699         (Depends-on): Add dirent, extensions.
39700         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
39701         (Include): Specify <dirent.h> instead of dirfd.h.
39702         * modules/dirent (Depends-on): Add link-warning.
39703         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
39704         definition of GL_LINK_WARNING.
39705         * NEWS: Mention the change.
39706
39707 2008-10-18  Bruno Haible  <bruno@clisp.org>
39708
39709         Move the euidaccess() declaration to <unistd.h>.
39710         * lib/euidaccess.h: Remove file.
39711         * lib/unistd.in.h (euidaccess): New declaration.
39712         * lib/euidaccess.c: Don't include euidaccess.h.
39713         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
39714         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
39715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
39716         and HAVE_EUIDACCESS.
39717         * modules/euidaccess (Files): Remove lib/euidaccess.h.
39718         (Depends-on): Add unistd.
39719         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39720         (Include): Specify <unistd.h> instead of euidaccess.h.
39721         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
39722         HAVE_EUIDACCESS.
39723         * NEWS: Mention the change.
39724
39725 2008-10-18  Bruno Haible  <bruno@clisp.org>
39726
39727         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
39728
39729         Move the getdomainname() declaration to <unistd.h>.
39730         * lib/getdomainname.h: Remove file.
39731         * lib/unistd.in.h (getdomainname): New declaration.
39732         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
39733         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39734         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39735         HAVE_GETDOMAINNAME.
39736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39737         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
39738         * modules/getdomainname (Files): Remove lib/getdomainname.h.
39739         (Depends-on): Add unistd, extensions.
39740         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39741         (Includes): Specify <unistd.h> instead of getdomainname.h.
39742         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
39743         HAVE_GETDOMAINNAME.
39744         * NEWS: Mention the change.
39745
39746 2008-10-18  Bruno Haible  <bruno@clisp.org>
39747
39748         * modules/dirent: New file.
39749         * m4/dirent_h.m4: New file.
39750         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
39751         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
39752         * modules/fchdir (Files): Remove lib/dirent.in.h.
39753         (Depends-on): Add dirent.
39754         (Makefile.am): Move rules to modules/dirent.
39755         * doc/posix-headers/dirent.texi: Mention the new module.
39756
39757 2008-10-18  Bruno Haible  <bruno@clisp.org>
39758
39759         Avoid -Wunused-parameter warnings in public gnulib header files.
39760         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
39761         macro.
39762         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
39763
39764 2008-10-18  Bruno Haible  <bruno@clisp.org>
39765
39766         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
39767         * doc/glibc-functions/error.texi: Mention the module 'error'.
39768         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
39769         * doc/glibc-functions/getdomainname.texi: Mention the module
39770         'getdomainname'.
39771         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
39772         * doc/glibc-functions/getpagesize.texi: Mention the module
39773         'getpagesize'.
39774         * doc/glibc-functions/getusershell.texi: Mention the module
39775         'getusershell'.
39776         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
39777         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
39778         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
39779         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
39780         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
39781         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
39782         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
39783         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
39784         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
39785         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
39786         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
39787         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
39788         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
39789         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
39790
39791 2008-10-17  Bruno Haible  <bruno@clisp.org>
39792
39793         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
39794         HP-UX and IRIX, use -0.0L.
39795         * tests/test-ceill.c (minus_zero): Likewise.
39796         * tests/test-floorl.c (minus_zero): Likewise.
39797         * tests/test-frexpl.c (minus_zero): Likewise.
39798         * tests/test-isnan.c (minus_zerol): Likewise.
39799         * tests/test-isnanl.h (minus_zero): Likewise.
39800         * tests/test-ldexpl.c (minus_zero): Likewise.
39801         * tests/test-roundl.c (minus_zero): Likewise.
39802         * tests/test-signbit.c (minus_zerol): Likewise.
39803         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39804         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39805         * tests/test-truncl.c (minus_zero): Likewise.
39806         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39807         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39808         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
39809         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39810
39811 2008-10-17  Bruno Haible  <bruno@clisp.org>
39812
39813         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
39814         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
39815         that it gets activated only for gcc >= 3.0.
39816         * lib/dirent.in.h: Likewise.
39817         * lib/errno.in.h: Likewise.
39818         * lib/fcntl.in.h: Likewise.
39819         * lib/float.in.h: Likewise.
39820         * lib/iconv.in.h: Likewise.
39821         * lib/inttypes.in.h: Likewise.
39822         * lib/locale.in.h: Likewise.
39823         * lib/math.in.h: Likewise.
39824         * lib/netdb.in.h: Likewise.
39825         * lib/netinet_in.in.h: Likewise.
39826         * lib/search.in.h: Likewise.
39827         * lib/signal.in.h: Likewise.
39828         * lib/spawn.in.h: Likewise.
39829         * lib/stdarg.in.h: Likewise.
39830         * lib/stdint.in.h: Likewise.
39831         * lib/stdio.in.h: Likewise.
39832         * lib/stdlib.in.h: Likewise.
39833         * lib/string.in.h: Likewise.
39834         * lib/strings.in.h: Likewise.
39835         * lib/sys_file.in.h: Likewise.
39836         * lib/sys_ioctl.in.h: Likewise.
39837         * lib/sys_select.in.h: Likewise.
39838         * lib/sys_socket.in.h: Likewise.
39839         * lib/sys_stat.in.h: Likewise.
39840         * lib/sys_time.in.h: Likewise.
39841         * lib/sysexits.in.h: Likewise.
39842         * lib/time.in.h: Likewise.
39843         * lib/unistd.in.h: Likewise.
39844         * lib/wchar.in.h: Likewise.
39845         * lib/wctype.in.h: Likewise.
39846         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39847
39848 2008-10-17  Jim Meyering  <meyering@redhat.com>
39849
39850         ignore-value: don't depend on inline module
39851         * modules/ignore-value (Depends-on): Remove 'inline'.
39852         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
39853         Suggestion from Bruno Haible.
39854
39855 2008-10-17  Bruno Haible  <bruno@clisp.org>
39856
39857         New implementation of condition variables for Win32.
39858         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
39859         (gl_linked_waitqueue_t): New type.
39860         (gl_cond_t): Use it.
39861         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
39862         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
39863         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
39864         (glthread_cond_init_func, glthread_cond_wait_func,
39865         glthread_cond_timedwait_func, glthread_cond_signal_func,
39866         glthread_cond_broadcast_func, glthread_cond_destroy_func):
39867         Reimplemented on the basis of gl_linked_waitqueue_t.
39868         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
39869         gl_waitqueue_t.
39870         (gl_rwlock_t): Update.
39871         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
39872
39873 2008-10-17  Simon Josefsson  <simon@josefsson.org>
39874
39875         * modules/recvfrom (Depends-on): Add dependency on getpeername.
39876         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39877
39878 2008-10-17  Jim Meyering  <meyering@redhat.com>
39879
39880         ignore-value: new module
39881         * modules/ignore-value: New file.
39882         * lib/ignore-value.h: New file.
39883         * MODULES.html.sh (Compiler warning management): New section,
39884         just for this module.  More to come.
39885
39886 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39887
39888         open-safer.c: avoid 'signed and unsigned in conditional...' warning
39889         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
39890         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
39891
39892 2008-10-16  Jim Meyering  <meyering@redhat.com>
39893
39894         openat-die.c: avoid 'no previous prototype' warning
39895         * lib/openat-die.c: Include "openat.h".
39896         Reported by Reuben Thomas <rrt@sc3d.org>.
39897
39898 2008-10-16  Simon Josefsson  <simon@josefsson.org>
39899
39900         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
39901         * lib/netdb.in.h: Fix typo.
39902         Reported by Bruno Haible  <bruno@clisp.org>
39903
39904         * lib/netdb.in.h: Include sys/socket.h for platforms without
39905         netdb.h, to get structures like hostent on MinGW.
39906         * modules/netdb (Depends-on): Add sys_socket.
39907
39908 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39909
39910         * modules/netdb, modules/netdb-tests: New file.
39911         * m4/netdb_h.m4: New file.
39912         * lib/netdb.in.h: Add, currently just an empty file pending
39913         definitions.
39914         * tests/test-netdb.c: New file.
39915         * doc/posix-headers/netdb.texi: Mention that we replace it if
39916         needed.
39917         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39918         netdb.
39919
39920 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39921
39922         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
39923         with code.
39924
39925 2008-10-13  Bruno Haible  <bruno@clisp.org>
39926
39927         * lib/glthread/cond.c (glthread_cond_wait_func,
39928         glthread_cond_timedwait_func): Add a comment.
39929
39930 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39931
39932         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
39933         * tests/test-select.c: Likewise,
39934
39935 2008-10-13  Bruno Haible  <bruno@clisp.org>
39936
39937         * lib/glthread/cond.c (glthread_cond_wait_func,
39938         glthread_cond_timedwait_func): Fix variable name.
39939         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39940
39941 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
39942
39943         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
39944         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
39945         struct sockaddr.sa_len.
39946         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
39947
39948 2008-10-13  Simon Josefsson  <simon@josefsson.org>
39949
39950         * build-aux/pmccabe2html: Add css and css_url parameters.
39951
39952 2008-10-12  Bruno Haible  <bruno@clisp.org>
39953
39954         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
39955         calling aclx_get.
39956         Reported by Rainer Tammer <tammer@tammer.net>.
39957
39958 2008-10-12  Bruno Haible  <bruno@clisp.org>
39959
39960         Use msvcrt aware primitives for creation/termination of Win32 threads.
39961         * lib/glthread/thread.c: Include <process.h>.
39962         (glthread_create_func): Use _beginthreadex instead of CreateThread.
39963         (wrapper_func): Update signature.
39964         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
39965
39966 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39967             Bruno Haible  <bruno@clisp.org>
39968
39969         Provide a Win32 implementation of the 'cond' module.
39970         * lib/glthread/cond.h [USE_WIN32]: New implementation.
39971         * lib/glthread/cond.c (glthread_cond_init_func,
39972         glthread_cond_wait_func, glthread_cond_timedwait_func,
39973         glthread_cond_signal_func, glthread_cond_broadcast_func,
39974         glthread_cond_destroy_func) [USE_WIN32]: New functions.
39975         * modules/cond (Dependencies): Add gettimeofday.
39976
39977 2008-10-11  Bruno Haible  <bruno@clisp.org>
39978
39979         Make sleep work on older versions of mingw.
39980         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
39981         only whether it exists.
39982         * doc/posix-functions/sleep.texi: Mention the problem with older
39983         versions of mingw.
39984
39985 2008-10-11  Bruno Haible  <bruno@clisp.org>
39986
39987         New module 'shutdown'.
39988         * modules/shutdown: New file.
39989         * lib/sys_socket.in.h (shutdown): New declaration.
39990         * lib/winsock.c (shutdown): New function.
39991         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39992         GNULIB_SHUTDOWN.
39993         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
39994         * doc/posix-functions/shutdown.texi: Document the new module.
39995
39996 2008-10-11  Jim Meyering  <meyering@redhat.com>
39997
39998         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
39999
40000 2008-10-11  Bruno Haible  <bruno@clisp.org>
40001
40002         New module 'fclose'.
40003         * modules/fclose: New file.
40004         * lib/stdio.in.h (fclose): New declaration.
40005         * lib/fclose.c: New file.
40006         * m4/fclose.m4: New file.
40007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
40008         REPLACE_FCLOSE.
40009         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
40010         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
40011         REPLACE_FCLOSE.
40012         * modules/close (Depends-on): fclose.
40013         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
40014
40015 2008-10-11  Bruno Haible  <bruno@clisp.org>
40016
40017         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
40018         set errno and don't call _close.
40019
40020 2008-10-10  Bruno Haible  <bruno@clisp.org>
40021
40022         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
40023         ACL, not afterwards. Fixes test failure on Cygwin.
40024
40025 2008-10-09  Ben Pfaff  <blp@gnu.org>
40026
40027         * build-aux/announce-gen: Fix gnulib version related part of usage
40028         message.  Die with a useful error message if no tarballs are
40029         found.
40030
40031 2008-10-10  Jim Meyering  <meyering@redhat.com>
40032
40033         bootstrap: use git's --depth=N option only if it's supported
40034         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
40035         recognize the --depth option.  Reported by Pádraig Brady.
40036
40037 2008-10-09  Bruno Haible  <bruno@clisp.org>
40038
40039         New module 'ioctl'.
40040         * modules/ioctl: New file.
40041         * lib/sys_socket.in.h (ioctl): Remove declaration.
40042         * lib/winsock.c: Include <sys/ioctl.h>.
40043         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
40044         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40045         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
40046         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
40047         * doc/posix-functions/ioctl.texi: Mention the new module.
40048
40049 2008-10-09  Bruno Haible  <bruno@clisp.org>
40050
40051         New module 'sys_ioctl'.
40052         * lib/sys_ioctl.in.h: New file.
40053         * m4/sys_ioctl_h.m4: New file.
40054         * modules/sys_ioctl: New file.
40055         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
40056
40057 2008-10-09  Bruno Haible  <bruno@clisp.org>
40058
40059         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
40060         * lib/winsock.c: Include <stdarg.h>.
40061         (rpl_ioctl): Change to second argument 'int' and then varargs.
40062
40063 2008-10-09  Bruno Haible  <bruno@clisp.org>
40064
40065         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
40066         when the sys_socket module is present and the system has <winsock2.h>.
40067
40068 2008-10-09  Bruno Haible  <bruno@clisp.org>
40069
40070         * doc/posix-functions/close.texi: Mention module 'close' instead of
40071         module 'sys_socket'.
40072
40073 2008-10-09  Bruno Haible  <bruno@clisp.org>
40074
40075         * doc/glibc-headers/sys_ioctl.texi: New file.
40076         * doc/gnulib.texi: Include it.
40077
40078 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40079             Bruno Haible  <bruno@clisp.org>
40080
40081         Combine the two replacements of 'close'.
40082         * lib/sys_socket.in.h (close): Define to a reminder to include
40083         <unistd.h>.
40084         (_gl_close_fd_maybe_socket): New declaration.
40085         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
40086         * lib/winsock.c (close): Remove undefinition.
40087         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
40088         needed for the gnulib module 'close'.
40089         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
40090         define to an error symbol or to a warning, if suitable.
40091         * lib/close.c: Include <sys/socket.h>.
40092         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
40093         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
40094         UNISTD_H_HAVE_WINSOCK2_H.
40095         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
40096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40097         UNISTD_H_HAVE_WINSOCK2_H.
40098         * modules/sys_socket (Files): Add m4/unistd_h.m4.
40099         (configure.ac): Set a module indicator.
40100         (Makefile.am): Substitute GNULIB_CLOSE.
40101         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
40102         * modules/poll-tests (Depends-on): Add close.
40103         * modules/select-tests (Depends-on): Likewise.
40104
40105 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40106             Bruno Haible  <bruno@clisp.org>
40107
40108         New module 'close'.
40109         * modules/close: New file.
40110         * lib/unistd.in.h (close): Move declaration out of the
40111         FCHDIR_REPLACEMENT scope.
40112         (_gl_unregister_fd): New declaration.
40113         * lib/close.c: New file.
40114         * lib/fchdir.c (rpl_close): Remove function.
40115         * m4/close.m4: New file.
40116         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40117         close.
40118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
40119         REPLACE_CLOSE.
40120         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
40121         REPLACE_CLOSE.
40122         * modules/fchdir (Depends-on): Add close.
40123
40124 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40125             Bruno Haible  <bruno@clisp.org>
40126
40127         * lib/fcntl.in.h (open): Simplify conditionals.
40128         (_gl_register_fd): New declaration.
40129         * lib/fchdir.c (rpl_open): Remove function.
40130         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
40131         also.
40132         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
40133         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40134         open.
40135
40136 2008-10-09  Jim Meyering  <meyering@redhat.com>
40137
40138         GNUmakefile: use the more name-space-friendly "_version"
40139         * top/GNUmakefile (_dummy): Update.
40140         (_version): Rename from "version".
40141
40142 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40143             Bruno Haible  <bruno@clisp.org>
40144
40145         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
40146         rpl_close.
40147         (_gl_register_fd): New function, extracted from rpl_open.
40148         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
40149         (rpl_open, rpl_opendir): Use _gl_register_fd.
40150
40151 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40152
40153         Fix organization of 'open' replacement.
40154         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
40155         (gl_FUNC_OPEN): Use it.
40156         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
40157
40158 2008-10-08  Bruno Haible  <bruno@clisp.org>
40159
40160         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
40161
40162 2008-10-08  Simon Josefsson  <simon@josefsson.org>
40163
40164         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
40165         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
40166         listen).
40167
40168 2008-10-08  Eric Blake  <ebb9@byu.net>
40169
40170         GNUmakefile: add 'make version' target
40171         * top/GNUmakefile (_curr-ver): Split version update rules...
40172         (version): ...into a target.
40173
40174 2008-10-07  Bruno Haible  <bruno@clisp.org>
40175
40176         Use a more portable replacement expression for -0.0L.
40177         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
40178         instead of -0.0L. Fix m4 quotation.
40179
40180         * tests/test-signbit.c: Include <float.h>.
40181         (minus_zero): New variable.
40182         (test_signbitl): Use minus_zero instead of -zero.
40183         * modules/signbit-tests (Depends-on): Add float.
40184
40185         * tests/test-ceill.c: Include <float.h>.
40186         (zero): Remove variable.
40187         (minus_zero): New variable.
40188         (main): Use minus_zero instead of -zero.
40189         * modules/ceill-tests (Depends-on): Add float.
40190
40191         * tests/test-floorl.c: Include <float.h>.
40192         (zero): Remove variable.
40193         (minus_zero): New variable.
40194         (main): Use minus_zero instead of -zero.
40195         * modules/floorl-tests (Depends-on): Add float.
40196
40197         * tests/test-roundl.c: Include <float.h>.
40198         (zero): Remove variable.
40199         (minus_zero): New variable.
40200         (main): Use minus_zero instead of -zero.
40201         * modules/roundl-tests (Depends-on): Add float.
40202
40203         * tests/test-truncl.c: Include <float.h>.
40204         (zero): Remove variable.
40205         (minus_zero): New variable.
40206         (main): Use minus_zero instead of -zero.
40207         * modules/truncl-tests (Depends-on): Add float.
40208
40209         * tests/test-frexpl.c (zero): Remove variable.
40210         (minus_zero): New variable.
40211         (main): Use minus_zero instead of -zero.
40212         * modules/frexpl-tests (Depends-on): Add float.
40213
40214         * tests/test-isnan.c (zerol): Remove variable.
40215         (minus_zerol): New variable.
40216         (test_long_double): Use minus_zerol instead of -zerol.
40217         * modules/isnan-tests (Depends-on): Add float.
40218
40219         * tests/test-isnanl.h (zero): Remove variable.
40220         (minus_zero): New variable.
40221         (main): Use minus_zero instead of -zero.
40222         * modules/isnanl-nolibm-tests (Depends-on): Add float.
40223         * modules/isnanl-tests (Depends-on): Add float.
40224
40225         * tests/test-ldexpl.c (zero): Remove variable.
40226         (minus_zero): New variable.
40227         (main): Use minus_zero instead of -zero.
40228         * modules/ldexpl-tests (Depends-on): Add float.
40229
40230         * tests/test-snprintf-posix.h (zerol): Remove variable.
40231         (minus_zerol): New variable.
40232         (test_function): Use minus_zerol instead of -zerol.
40233         * modules/snprintf-posix-tests (Depends-on): Add float.
40234         * modules/vsnprintf-posix-tests (Depends-on): Add float.
40235
40236         * tests/test-sprintf-posix.h (zerol): Remove variable.
40237         (minus_zerol): New variable.
40238         (test_function): Use minus_zerol instead of -zerol.
40239         * modules/sprintf-posix-tests (Depends-on): Add float.
40240         * modules/vsprintf-posix-tests (Depends-on): Add float.
40241
40242         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
40243         (minus_zerol): New variable.
40244         (test_function): Use minus_zerol instead of -zerol.
40245         * modules/vasnprintf-posix-tests (Depends-on): Add float.
40246
40247         * tests/test-vasprintf-posix.c (zerol): Remove variable.
40248         (minus_zerol): New variable.
40249         (test_function): Use minus_zerol instead of -zerol.
40250         * modules/vasprintf-posix-tests (Depends-on): Add float.
40251
40252 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40253
40254         * MODULES.html.sh (Support for building documentation): Mention
40255         pmccabe2html.  Sort entries.
40256
40257         Add pmccabe2html module, from gnupdf.
40258         * build-aux/pmccabe.css: New file.
40259         * build-aux/pmccabe2html: New file.
40260         * m4/pmccabe2html.m4: New file.
40261         * modules/pmccabe2html: New file.
40262
40263 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40264
40265         flock: new module
40266         * MODULES.html.sh: Add to list of modules.
40267         * lib/flock.c: flock implementation for Windows and Unix systems
40268         which have fcntl.
40269         * doc/glibc-functions/flock.texi: Update documentation.
40270         * lib/sys_file.in.h: <sys/file.h> header file.
40271         * m4/flock.m4: M4 macros.
40272         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40273         * modules/flock: flock module.
40274         * modules/flock-tests: flock tests module.
40275         * modules/sys_file: sys/file.h module.
40276         * tests/test-flock.c: test suite for flock.
40277
40278 2008-10-06  Jim Meyering  <meyering@redhat.com>
40279
40280         bootstrap: check for LT_INIT more portably still ;-)
40281         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40282         Spotted by Bruno Haible.
40283
40284 2008-10-06  Eric Blake  <ebb9@byu.net>
40285
40286         test-signbit: avoid tripping Irix cc bug on -0.0L
40287         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40288         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40289         entire testsuite consistent and avoids an Irix 6.2 bug.
40290
40291 2008-10-05  Bruno Haible  <bruno@clisp.org>
40292             Jim Meyering  <jim@meyering.net>
40293
40294         Add an option for ignoring EPIPE during close_stdout.
40295         * lib/closeout.h: Include <stdbool.h>.
40296         (close_stdout_set_ignore_EPIPE): New declaration.
40297         * lib/closeout.c: Include <stdbool.h>.
40298         (ignore_EPIPE): New variable.
40299         (close_stdout_set_ignore_EPIPE): New function.
40300         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40301         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40302         failure.
40303         * modules/closeout (Depends-on): Add stdbool.
40304
40305 2008-10-05  Bruno Haible  <bruno@clisp.org>
40306
40307         * modules/accept: New file.
40308         * modules/bind: New file.
40309         * modules/connect: New file.
40310         * modules/getpeername: New file.
40311         * modules/getsockname: New file.
40312         * modules/getsockopt: New file.
40313         * modules/listen: New file.
40314         * modules/recv: New file.
40315         * modules/recvfrom: New file.
40316         * modules/send: New file.
40317         * modules/sendto: New file.
40318         * modules/setsockopt: New file.
40319         * modules/socket: New file.
40320         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40321         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40322         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40323         the particular module is requested. Add a link warning when the
40324         particular module is not requested.
40325         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40326         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40327         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40328         the particular module is requested.
40329         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40330         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40331         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40332         * modules/sys_socket (Depends-on): Add link-warning.
40333         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40334         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40335         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40336         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40337         GL_LINK_WARNING.
40338         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40339         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40340         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40341         * doc/posix-functions/getpeername.texi: Mention the new module
40342         'getpeername'.
40343         * doc/posix-functions/getsockname.texi: Mention the new module
40344         'getsockname'.
40345         * doc/posix-functions/getsockopt.texi: Mention the new module
40346         'getsockopt'.
40347         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40348         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40349         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40350         * doc/posix-functions/send.texi: Mention the new module 'send'.
40351         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40352         * doc/posix-functions/setsockopt.texi: Mention the new module
40353         'setsockopt'.
40354         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40355         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40356         listen, connect, accept.
40357         * modules/select-tests (Depends-on): Likewise.
40358
40359 2008-10-05  Bruno Haible  <bruno@clisp.org>
40360
40361         * lib/winsock.c (strerror): Remove unused #undef.
40362         (rpl_close): Remove unused local variable.
40363
40364         * modules/sys_socket (Depends-on); Add errno.
40365
40366 2008-10-05  Bruno Haible  <bruno@clisp.org>
40367
40368         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40369         (select): Add a link warning when the 'select' module is not used.
40370         * modules/sys_select (Depends-on): Add link-warning.
40371         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40372         Suggested by Paolo Bonzini.
40373
40374 2008-10-05  Jim Meyering  <meyering@redhat.com>
40375
40376         bootstrap: check for LT_INIT more portably
40377         * build-aux/bootstrap: Avoid using grep -E, since it's not
40378         portable enough.  Suggestion from Bruno Haible.
40379
40380 2008-10-05  Bruno Haible  <bruno@clisp.org>
40381
40382         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40383         as being fixed by gnulib.
40384
40385 2008-10-05  Bruno Haible  <bruno@clisp.org>
40386
40387         * modules/select-tests: New file, mostly copied from
40388         modules/sys_select-tests.
40389         * tests/test-select.c: New file, mostly copied from
40390         tests/test-sys_select.c.
40391         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40392         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40393         (Makefile.am): Remove test_sys_select_LDADD.
40394
40395         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40396         to an undefined symbol, for an error message.
40397         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40398         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40399         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40400         winsock-select.c here.
40401         * modules/sys_select (Files): Remove lib/winsock-select.c.
40402         (Depends-on): Remove alloca.
40403         (Makefile.am): Substitute GNULIB_SELECT.
40404         * modules/select: New file.
40405         * doc/posix-functions/select.texi: Update.
40406
40407 2008-10-05  Bruno Haible  <bruno@clisp.org>
40408
40409         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40410         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40411         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40412         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40413         getdtablesize.
40414         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40415         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40416
40417 2008-10-05  Bruno Haible  <bruno@clisp.org>
40418
40419         * modules/getdtablesize-tests: New file.
40420         * tests/test-getdtablesize.c: New file.
40421
40422         New module 'getdtablesize'.
40423         * lib/unistd.in.h (getdtablesize): New declaration.
40424         * lib/getdtablesize.c: New file.
40425         * m4/getdtablesize.m4: New file.
40426         * modules/getdtablesize: New file.
40427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40428         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40429         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40430         HAVE_GETDTABLESIZE.
40431         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40432
40433 2008-10-05  Bruno Haible  <bruno@clisp.org>
40434
40435         * modules/sched (Makefile.am): Fix typo.
40436         Reported by Simon Josefsson.
40437
40438 2008-10-05  Jim Meyering  <meyering@redhat.com>
40439
40440         bootstrap: check for LT_INIT, too
40441         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40442         are deprecated.  Suggestion from Ralf Wildenhues.
40443
40444 2008-10-05  Bruno Haible  <bruno@clisp.org>
40445
40446         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40447         overriding them by ours.
40448         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40449
40450 2008-10-05  Jim Meyering  <meyering@redhat.com>
40451
40452         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40453         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40454         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40455
40456 2008-10-04  Bruno Haible  <bruno@clisp.org>
40457
40458         * modules/dup2 (License): Change to LGPLv2+.
40459         * modules/sleep (License): Likewise.
40460         * modules/perror (License): Likewise.
40461         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40462         Blake.
40463         * modules/signal (License): Likewise.
40464         * modules/sigprocmask (License): Likewise.
40465         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40466         Meyering.
40467
40468 2008-10-04  Bruno Haible  <bruno@clisp.org>
40469
40470         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
40471         Reported by Rainer Tammer <tammer@tammer.net>.
40472
40473 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
40474             Bruno Haible  <bruno@clisp.org>
40475
40476         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
40477         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
40478         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
40479
40480 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
40481
40482         filevercmp: new module
40483         * lib/filevercmp.h: New function filevercmp comparing version strings.
40484         * lib/filevercmp.c: Implementation of filevercmp function.
40485         * modules/filevercmp: Module metadata.
40486         * tests/test-filevercmp.c: Unit test for new module.
40487         * modules/filevercmp-tests: Unit test metadata.
40488         * MODULES.html.sh: Add filevercmp module.
40489
40490 2008-10-03  Bruno Haible  <bruno@clisp.org>
40491
40492         * lib/c-ctype.h: Add comment.
40493         Reported by Jim Meyering.
40494
40495 2008-10-02  Bruno Haible  <bruno@clisp.org>
40496
40497         * modules/posix_spawn-internal (Depends-on): Add 'open'.
40498
40499 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40500
40501         * build-aux/bootstrap: Allow renaming bootstrap, and change the
40502         name of bootstrap.conf accordingly.
40503
40504 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40505
40506         * build-aux/bootstrap: Install git-merge-changelog configuration
40507         items into .gitconfig if needed.
40508
40509 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40510
40511         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
40512         git repository, and initialize/update it accordingly.
40513
40514 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
40515
40516         * modules/fsync-tests: New file.
40517         * tests/test-fsync.c: New file.
40518
40519         New module 'fsync'.
40520         * lib/fsync.c: New file.
40521         * m4/fsync.m4: New file.
40522         * modules/fsync: New file.
40523         * lib/unistd.in.h (fsync): New declaration.
40524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
40525         GNULIB_FSYNC and HAVE_FSYNC.
40526         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
40527         * MODULES.html.sh (posix_functions): Add fsync.
40528         * doc/posix-functions/fsync.texi: Mention the new module.
40529
40530 2008-10-02  Jim Meyering  <meyering@redhat.com>
40531
40532         fts.c: sync with similar code from coreutils' remove.c
40533         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
40534         Guard also with "#if defined __linux__", since for now at least,
40535         this code is Linux-kernel-specific.
40536
40537 2008-10-02  Jim Meyering  <meyering@redhat.com>
40538
40539         fts: bug fixes
40540         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
40541         Include <sys/vfs.h>, not <sys/statfs.h>.
40542
40543         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
40544         Include <sys/vfs.h>, not <sys/statfs.h>.
40545
40546 2008-10-01  Bruno Haible  <bruno@clisp.org>
40547
40548         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
40549         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
40550         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
40551         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
40552         * doc/posix-functions/posix_spawnp.texi: Likewise.
40553         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
40554         whether posix_spawn actually works.
40555         * m4/pipe.m4 (gl_PIPE): Likewise.
40556         * modules/execute (Files): Add m4/posix_spawn.m4.
40557         * modules/pipe (Files): Add m4/posix_spawn.m4.
40558         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
40559
40560 2008-10-01  Jim Meyering  <meyering@redhat.com>
40561
40562         remove trailing spaces
40563         * NEWS: Likewise.
40564         * lib/poll.c (poll): Likewise.
40565         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40566         * lib/winsock.c (rpl_close): Likewise.
40567         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40568         * modules/yield: Likewise.
40569         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40570         * tests/test-sys_select.c (connect_to_socket): Likewise.
40571
40572         fts.c: adjust a new interface to be more generally useful
40573         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40574         (fts_build): Adjust caller.
40575
40576 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40577
40578         * modules/cond-tests: New file.
40579         * tests/test-cond.c: New file.
40580
40581 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40582             Bruno Haible  <bruno@clisp.org>
40583
40584         * modules/cond (Dependencies): Add errno, time.
40585         * lib/glthread/cond.h: Include <time.h>.
40586         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40587         across platforms.
40588
40589 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40590             Bruno Haible  <bruno@clisp.org>
40591
40592         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40593
40594 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40595             Bruno Haible  <bruno@clisp.org>
40596
40597         * modules/tls-tests (Depends-on): Add thread, yield.
40598         (configure.ac): Remove all checks.
40599         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40600         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40601         gl_thread_self): Remove definitions. Include glthread/thread.h and
40602         glthread/yield.h instead.
40603         (test_tls): Pass an additional NULL argument to gl_thread_join.
40604
40605 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40606             Bruno Haible  <bruno@clisp.org>
40607
40608         * modules/lock-tests (Depends-on): Add thread, yield.
40609         (configure.ac): Remove all checks.
40610         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40611         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40612         gl_thread_self): Remove definitions. Include glthread/thread.h and
40613         glthread/yield.h instead.
40614         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40615         additional NULL argument to gl_thread_join.
40616
40617 2008-09-30  Bruno Haible  <bruno@clisp.org>
40618
40619         Fix the Win32 implementation of the 'thread' module.
40620         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40621         pointer type.
40622         (gl_thread_self): Invoke gl_thread_self_func.
40623         (gl_thread_self_func): New declaration.
40624         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40625         (do_init_self_key, init_self_key): New functions.
40626         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40627         Remove some fields.
40628         (running_threads, running_lock): Remove variables.
40629         (get_current_thread_handle): New function.
40630         (gl_thread_self_func, wrapper_func, glthread_create_func,
40631         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40632         simplified.
40633
40634 2008-09-30  Bruno Haible  <bruno@clisp.org>
40635
40636         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
40637         files.
40638
40639 2008-09-30  Jim Meyering  <meyering@redhat.com>
40640
40641         fts.m4: correct the test for statfs.f_type
40642         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
40643         when checking for statfs.f_type.
40644
40645 2008-09-15  Simon Josefsson  <simon@josefsson.org>
40646
40647         tests: avoid some compiler warnings
40648         * tests/test-memchr.c (main): Pass NULL indirectly.
40649         * tests/test-getdate.c (main): Remove unused variable 'ret'.
40650
40651 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
40652
40653         getdate.y: disallow countable dayshifts like "4 yesterday ago"
40654         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
40655         exactly specified dayshifts.
40656         (dayshift): New rule.
40657         (rel): Add dayshift.
40658         (relative_time_table) [tomorrow, yesterday, today, now]:
40659         Use tDAY_SHIFT in place of tDAY_UNIT.
40660         * tests/test-getdate.c: Add tests for now-disallowed countable
40661         dayshifts, e.g., "4 yesterday ago".
40662
40663 2008-09-29  Bruno Haible  <bruno@clisp.org>
40664
40665         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
40666         * tests/test-posix_spawn1.in.sh: Renamed from
40667         tests/test-posix_spawn.in.sh.
40668         * tests/test-posix_spawn2.c: New file.
40669         * tests/test-posix_spawn2.in.sh: New file.
40670         * modules/posix_spawnp-tests (Files): Update.
40671         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
40672
40673 2008-09-29  Bruno Haible  <bruno@clisp.org>
40674
40675         Propagate effects of putenv/setenv/unsetenv to child processes.
40676         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
40677         * lib/pipe.c (create_pipe): Likewise.
40678
40679 2008-09-29  Bruno Haible  <bruno@clisp.org>
40680
40681         Enable use of shell scripts as executables in mingw.
40682         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
40683         run the program as a shell script.
40684         * lib/pipe.c (create_pipe): Likewise.
40685         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
40686         resulting array.
40687
40688 2008-09-29  Eric Blake  <ebb9@byu.net>
40689
40690         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
40691
40692 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
40693
40694         * doc/posix-functions/accept.texi: Update mingw problems.
40695         * doc/posix-functions/bind.texi: Update mingw problems.
40696         * doc/posix-functions/close.texi: Update mingw problems.
40697         * doc/posix-functions/connect.texi: Update mingw problems.
40698         * doc/posix-functions/getpeername.texi: Update mingw problems.
40699         * doc/posix-functions/getsockname.texi: Update mingw problems.
40700         * doc/posix-functions/getsockopt.texi: Update mingw problems.
40701         * doc/posix-functions/ioctl.texi: Update mingw problems.
40702         * doc/posix-functions/listen.texi: Update mingw problems.
40703         * doc/posix-functions/recv.texi: Update mingw problems.
40704         * doc/posix-functions/recvfrom.texi: Update mingw problems.
40705         * doc/posix-functions/select.texi: Update mingw problems.
40706         * doc/posix-functions/send.texi: Update mingw problems.
40707         * doc/posix-functions/sendto.texi: Update mingw problems.
40708         * doc/posix-functions/setsockopt.texi: Update mingw problems.
40709         * doc/posix-functions/socket.texi: Update mingw problems.
40710
40711 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
40712             Bruno Haible  <bruno@clisp.org>
40713
40714         * lib/sys_select.in.h: Include sys/time.h.
40715         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
40716         * modules/sys_select: Depend on sys_time.
40717         * tests/test-sys_select.c: Test that sys/select.h defines struct
40718         timeval fully.
40719
40720 2008-09-29  Bruno Haible  <bruno@clisp.org>
40721
40722         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
40723         * lib/sys_select.in.h: Likewise.
40724
40725 2008-09-29  Bruno Haible  <bruno@clisp.org>
40726
40727         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
40728
40729 2008-09-29  Bruno Haible  <bruno@clisp.org>
40730
40731         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
40732         Set LIBSOCKET instead of augmenting LIBS.
40733         * modules/sockets (Link): New section.
40734         * modules/sockets-tests (test_sockets_LDADD): New variable.
40735         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
40736         * modules/poll-tests (test_poll_LDADD): New variable.
40737         * NEWS: Document the change.
40738
40739 2008-09-29  Bruno Haible  <bruno@clisp.org>
40740
40741         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
40742         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
40743         ARPA_INET_H directly.
40744         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40745
40746 2008-09-28  Bruno Haible  <bruno@clisp.org>
40747
40748         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
40749         from gl_HEADER_SYS_SOCKET.
40750         (gl_HEADER_SYS_SOCKET): Invoke it.
40751         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40752
40753 2008-09-28  Bruno Haible  <bruno@clisp.org>
40754
40755         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
40756         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
40757         Needed on OSF/1 4.0.
40758
40759 2008-09-28  Bruno Haible  <bruno@clisp.org>
40760
40761         Override open more carefully.
40762         * lib/open.c (orig_open): New function.
40763         (rpl_open): Use orig_open instead of open.
40764         * lib/fcntl.in.h: Add special invocation convention.
40765         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
40766         (gl_FUNC_OPEN): Invoke it.
40767
40768         Override freopen more carefully.
40769         * lib/freopen.c (orig_freopen): New function.
40770         (rpl_freopen): Use orig_freopen instead of freopen.
40771         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
40772         (gl_FUNC_FREOPEN): Invoke it.
40773
40774         Override fopen more carefully.
40775         * lib/fopen.c (orig_fopen): New function.
40776         (rpl_fopen): Use orig_fopen instead of fopen.
40777         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
40778         (gl_FUNC_FOPEN): Invoke it.
40779         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
40780
40781 2008-09-28  Bruno Haible  <bruno@clisp.org>
40782
40783         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
40784         SIGPIPE.
40785
40786 2008-09-28  Bruno Haible  <bruno@clisp.org>
40787
40788         * tests/test-sigaction.c (handler, main): Disable the check whether
40789         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
40790         glibc systems with LinuxThreads.
40791
40792 2008-09-28  Bruno Haible  <bruno@clisp.org>
40793
40794         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
40795
40796         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
40797         with AIX xlc.
40798         * lib/fcntl.in.h (open): Likewise.
40799         Reported by Rainer Tammer <tammer@tammer.net>.
40800
40801 2008-09-28  Bruno Haible  <bruno@clisp.org>
40802
40803         * modules/posix_spawnp-tests: New file.
40804         * tests/test-posix_spawn.c: New file.
40805         * tests/test-posix_spawn.in.sh: New file.
40806
40807         New module 'posix_spawnp'.
40808         * modules/posix_spawnp: New file.
40809         * lib/spawnp.c: New file, from GNU libc with modifications.
40810         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
40811
40812         New module 'posix_spawn'.
40813         * modules/posix_spawn: New file.
40814         * lib/spawn.c: New file, from GNU libc with modifications.
40815         * doc/posix-functions/posix_spawn.texi: Mention the new module.
40816
40817         New module 'posix_spawnattr_destroy'.
40818         * modules/posix_spawnattr_destroy: New file.
40819         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
40820         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
40821         module.
40822
40823         New module 'posix_spawnattr_setsigmask'.
40824         * modules/posix_spawnattr_setsigmask: New file.
40825         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
40826         modifications.
40827         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
40828         new module.
40829
40830         New module 'posix_spawnattr_getsigmask'.
40831         * modules/posix_spawnattr_getsigmask: New file.
40832         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
40833         modifications.
40834         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
40835         new module.
40836
40837         New module 'posix_spawnattr_setsigdefault'.
40838         * modules/posix_spawnattr_setsigdefault: New file.
40839         * lib/spawnattr_setdefault.c: New file, from GNU libc with
40840         modifications.
40841         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
40842         new module.
40843
40844         New module 'posix_spawnattr_getsigdefault'.
40845         * modules/posix_spawnattr_getsigdefault: New file.
40846         * lib/spawnattr_getdefault.c: New file, from GNU libc with
40847         modifications.
40848         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
40849         new module.
40850
40851         New module 'posix_spawnattr_setschedpolicy'.
40852         * modules/posix_spawnattr_setschedpolicy: New file.
40853         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
40854         modifications.
40855         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
40856         new module.
40857
40858         New module 'posix_spawnattr_getschedpolicy'.
40859         * modules/posix_spawnattr_getschedpolicy: New file.
40860         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
40861         modifications.
40862         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
40863         new module.
40864
40865         New module 'posix_spawnattr_setschedparam'.
40866         * modules/posix_spawnattr_setschedparam: New file.
40867         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
40868         modifications.
40869         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
40870         new module.
40871
40872         New module 'posix_spawnattr_getschedparam'.
40873         * modules/posix_spawnattr_getschedparam: New file.
40874         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
40875         modifications.
40876         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
40877         new module.
40878
40879         New module 'posix_spawnattr_setpgroup'.
40880         * modules/posix_spawnattr_setpgroup: New file.
40881         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
40882         modifications.
40883         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
40884         module.
40885
40886         New module 'posix_spawnattr_getpgroup'.
40887         * modules/posix_spawnattr_getpgroup: New file.
40888         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
40889         modifications.
40890         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
40891         module.
40892
40893         New module 'posix_spawnattr_setflags'.
40894         * modules/posix_spawnattr_setflags: New file.
40895         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
40896         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
40897         module.
40898
40899         New module 'posix_spawnattr_getflags'.
40900         * modules/posix_spawnattr_getflags: New file.
40901         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
40902         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
40903         module.
40904
40905         New module 'posix_spawnattr_init'.
40906         * modules/posix_spawnattr_init: New file.
40907         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
40908         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
40909         module.
40910
40911         New module 'posix_spawn_file_actions_destroy'.
40912         * modules/posix_spawn_file_actions_destroy: New file.
40913         * lib/spawn_faction_destroy.c: New file, from GNU libc with
40914         modifications.
40915         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
40916         the new module.
40917
40918         New module 'posix_spawn_file_actions_addopen'.
40919         * modules/posix_spawn_file_actions_addopen: New file.
40920         * lib/spawn_faction_addopen.c: New file, from GNU libc with
40921         modifications.
40922         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40923         the new module.
40924
40925         New module 'posix_spawn_file_actions_adddup2'.
40926         * modules/posix_spawn_file_actions_adddup2: New file.
40927         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
40928         modifications.
40929         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40930         the new module.
40931
40932         New module 'posix_spawn_file_actions_addclose'.
40933         * modules/posix_spawn_file_actions_addclose: New file.
40934         * lib/spawn_faction_addclose.c: New file, from GNU libc with
40935         modifications.
40936         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40937         the new module.
40938
40939         New module 'posix_spawn_file_actions_init'.
40940         * modules/posix_spawn_file_actions_init: New file.
40941         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
40942         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
40943         new module.
40944
40945         New module 'posix_spawn-internal'.
40946         * modules/posix_spawn-internal: New file.
40947         * lib/spawn_int.h: New file, from GNU libc with modifications.
40948         * lib/spawni.c: New file, from GNU libc with modifications.
40949         * m4/posix_spawn.m4: New file.
40950
40951         New module 'spawn'.
40952         * modules/spawn: New file.
40953         * lib/spawn.in.h: New file, from GNU libc with modifications.
40954         * m4/spawn_h.m4: New file.
40955         * doc/posix-headers/spawn.texi: Mention the new module.
40956
40957 2008-09-28  Bruno Haible  <bruno@clisp.org>
40958
40959         * modules/sched-tests: New file.
40960         * tests/test-sched.c: New file.
40961
40962         New module 'sched'.
40963         * modules/sched: New file.
40964         * lib/sched.in.h: New file.
40965         * m4/sched_h.m4: New file.
40966         * doc/posix-headers/sched.texi: Mention the new module.
40967
40968 2008-09-27  Eric Blake  <ebb9@byu.net>
40969
40970         Fix previous patch, and tweak references to $0.
40971         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
40972         (func_version, func_gnulib_dir): Don't call this program
40973         gnulib-tool.
40974         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
40975         with using $0 in function.
40976         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
40977         (func_fatal_error): Reuse the name the user invoked us with.
40978
40979 2008-09-27  Bruno Haible  <bruno@clisp.org>
40980
40981         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
40982         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
40983         (gl_ICONV_H): Not here.
40984         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
40985         instead of assigning ICONV_H directly.
40986
40987         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
40988         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
40989         WCHAR_H directly.
40990
40991 2008-09-27  Bruno Haible  <bruno@clisp.org>
40992
40993         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
40994         * modules/arpa_inet (Depends-on): Add link-warning.
40995         (Makefile.am): Insert the definition of GL_LINK-WARNING.
40996         * modules/unistd (Makefile.am): Likewise.
40997
40998 2008-09-26  Bruno Haible  <bruno@clisp.org>
40999
41000         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
41001         variables.
41002         (func_version): Essentially copied from gnulib-tool.
41003         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
41004         func_readlink): Copied from gnulib-tool.
41005
41006 2008-09-26  Bruno Haible  <bruno@clisp.org>
41007
41008         * gnulib-tool (func_version): Change directory to $gnulib_dir before
41009         invoking git-version-gen.
41010
41011 2008-09-26  Bruno Haible  <bruno@clisp.org>
41012
41013         * posix-modules: Update to directory names changed on 2008-01-19.
41014         Remove commas in output before splitting into words. No more need to
41015         avoid 'ftruncate' since 2007-02-19.
41016
41017 2008-09-26  Bruno Haible  <bruno@clisp.org>
41018
41019         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
41020
41021 2008-09-26  Bruno Haible  <bruno@clisp.org>
41022
41023         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
41024         * modules/fwriteerror (Depends-on): Add errno.
41025
41026 2008-09-26  Bruno Haible  <bruno@clisp.org>
41027
41028         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
41029         * tests/test-vc-list-files-cvs.sh: Likewise.
41030
41031 2008-09-26  Bruno Haible  <bruno@clisp.org>
41032
41033         * doc/posix-headers/sys_resource.texi: Reorder items.
41034
41035 2008-09-26  Jim Meyering  <meyering@redhat.com>
41036
41037         fts: tweak inode comparison function
41038         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
41039         inode numbers, as documented.
41040
41041         fts: sort dirent entries on inode number before traversing
41042         This avoids a quadratic, seek-related performance penalty when
41043         operating on a directory containing many entries (measurable at 10k;
41044         3.5 hours at 2 million entries with a cold cache) on certain types
41045         of file systems, including ext3 and ext4, but not tmpfs.
41046         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
41047         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
41048         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
41049         (fs_handles_readdir_ordered_dirents_efficiently): New function.
41050         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
41051         (fts_build): Set the stat.st_ino member from D_INO.
41052         If it is likely to be useful, sort dirent entries on inode number.
41053
41054         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
41055         and the struct statfs.f_type member.
41056         * modules/fts (Depends-on): Add d-ino.
41057
41058 2008-09-26  Bruno Haible  <bruno@clisp.org>
41059
41060         * modules/sigpipe-die (Depends-on): Add sigpipe.
41061
41062         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
41063         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
41064         and GNULIB_STDIO_H_SIGPIPE are set.
41065         * lib/stdio-write.c: New file.
41066         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
41067         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41068         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41069         REPLACE_STDIO_WRITE_FUNCS.
41070         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
41071         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41072         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41073         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41074         * modules/stdio (Files): Add lib/stdio-write.c.
41075         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
41076         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41077         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41078         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41079         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
41080         REPLACE_FPRINTF_POSIX.
41081         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
41082         REPLACE_PRINTF_POSIX.
41083         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
41084         REPLACE_VFPRINTF_POSIX.
41085         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
41086         REPLACE_VPRINTF_POSIX.
41087         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
41088         SIGPIPE issue.
41089         * doc/posix-functions/fputc.texi: Likewise.
41090         * doc/posix-functions/fputs.texi: Likewise.
41091         * doc/posix-functions/fwrite.texi: Likewise.
41092         * doc/posix-functions/printf.texi: Likewise.
41093         * doc/posix-functions/putc.texi: Likewise.
41094         * doc/posix-functions/putchar.texi: Likewise.
41095         * doc/posix-functions/puts.texi: Likewise.
41096         * doc/posix-functions/vfprintf.texi: Likewise.
41097         * doc/posix-functions/vprintf.texi: Likewise.
41098
41099         * modules/safe-write (Depends-on): Add write.
41100
41101         * modules/sigpipe-tests: New file.
41102         * tests/test-sigpipe.c: New file.
41103         * tests/test-sigpipe.sh: New file.
41104
41105         * modules/write: New file.
41106         * lib/unistd.in.h: Include <sys/types.h>.
41107         (write): New declaration.
41108         * lib/write.c: New file.
41109         * m4/write.m4: New file.
41110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41111         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
41112         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
41113         GNULIB_WRITE, REPLACE_WRITE.
41114         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
41115         and the SIGPIPE issue.
41116
41117         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
41118         (raise): New declaration.
41119         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
41120         (ext_signal): New function.
41121         (rpl_raise): New function.
41122         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
41123         GNULIB_SIGNAL_H_SIGPIPE.
41124         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
41125         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
41126
41127         * modules/sigpipe: New file.
41128         * m4/sigpipe.m4: New file.
41129
41130 2008-09-25  Derek Price  <derek@ximbiot.com>
41131             Bruno Haible  <bruno@clisp.org>
41132
41133         * gnulib-tool (func_import): Report all license incompatibilities, not
41134         just the first one.
41135
41136 2008-09-25  Bruno Haible  <bruno@clisp.org>
41137
41138         * gnulib-tool (func_import): When computing the edits, consider not
41139         only the Makefile.ams that exist but also those that will be generated.
41140
41141 2008-09-25  Simon Josefsson  <simon@josefsson.org>
41142
41143         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
41144         fixes gnulib-tool --test warning about duplicate dependency.
41145
41146 2008-09-25  Bruno Haible  <bruno@clisp.org>
41147
41148         * gnulib-tool: Don't ask the user to perform edits in the generated
41149         Makefile.ams.
41150         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
41151         apply to the Makefile.am being generated.
41152         (func_emit_tests_Makefile_am): Execute edits that apply to the
41153         Makefile.am being generated.
41154         (func_import): Setup list of Makefile.am edits before emitting the
41155         Makefile.ams, not at the end.
41156         (func_create_testdir): Update.
41157         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41158
41159 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41160
41161         * gnulib-tool (func_import): Store the --tests-base option in the
41162         comment in gnulib-cache.m4.
41163
41164 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
41165
41166         * NEWS: Document increased portability that sys_select now provides.
41167
41168         * lib/sys_select.in.h: Install select wrapper.
41169         * lib/sys_socket.in.h: Use more descriptive name when there is no
41170         select wrapper.
41171         * lib/winsock-select.c: New.
41172         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
41173         Require gl_HEADER_SYS_SOCKET.
41174         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
41175         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
41176         * tests/test-sys_select.c: Add functional tests.
41177
41178 2008-09-24  Eric Blake  <ebb9@byu.net>
41179
41180         open, fopen: close fd leak in last patch
41181         * lib/open.c (rpl_open): Close fd before returning error.
41182         * lib/fopen.c (rpl_fopen): Close fd before returning error.
41183         * doc/posix-functions/open.texi (open): Document that Irix also
41184         has the bug.
41185         * doc/posix-functions/fopen.texi (fopen): Likewise.
41186         Reported by Paolo Bonzini.
41187
41188 2008-09-24  Bruno Haible  <bruno@clisp.org>
41189
41190         Ensure that a filename ending in a slash cannot be used to access a
41191         non-directory.
41192         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
41193         to check whether it's really a directory.
41194         * lib/fopen.c: Include fcntl.h, unistd.h.
41195         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
41196         and fdopen().
41197         * modules/fopen (Depends-on): Add unistd.
41198         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
41199         * tests/test-fopen.c (main): Likewise.
41200         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
41201         * doc/posix-functions/fopen.texi: Likewise.
41202         Reported by Eric Blake.
41203
41204 2008-09-23  Eric Blake  <ebb9@byu.net>
41205
41206         c-stack: avoid compiler optimizations when provoking overflow
41207         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
41208         recursion harder to optimize, to ensure a stack overflow occurs.
41209         * tests/test-c-stack.c (recurse): Likewise.
41210         Borrowed from libsigsegv.
41211
41212         c-stack: work around Irix sigaltstack bug
41213         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
41214         whether sigaltstack uses wrong end of stack_t (copied in part from
41215         libsigsegv).
41216         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
41217         Irix bug, without requiring an over-allocation.
41218         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
41219         bug.
41220
41221         fopen: document mingw bug on directories
41222         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
41223         not allowing a stream visiting a directory, even though reading
41224         from such a stream is not portable.
41225
41226 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41227
41228         * lib/poll.c: Rewrite.
41229         * modules/poll: Depend on alloca.
41230
41231 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41232
41233         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
41234         instead define prototypes for a full set of wrappers.  Ensure
41235         that Cygwin does not use the compatibility code, which is only
41236         for MinGW.
41237         * lib/winsock.c: New.
41238         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
41239         * modules/sys_socket: Add lib/winsock.c.
41240
41241         * modules/poll-tests: Add errno and perror.
41242         * tests/test-poll.c: Use ioctl, not ioctlsocket.
41243
41244 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41245
41246         * tests/test-poll.c: Downgrade minimum needed Winsock version.
41247
41248 2008-09-23  Bruno Haible  <bruno@clisp.org>
41249
41250         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
41251         * doc/glibc-functions/*: Likewise.
41252
41253 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41254
41255         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41256         success.
41257
41258 2008-09-22  Eric Blake  <ebb9@byu.net>
41259             Bruno Haible  <bruno@clisp.org>
41260
41261         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41262         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41263         supply %A but mishandle pseudo-NaN.
41264         Reported by Simon Josefsson.
41265
41266 2008-09-21  Bruno Haible  <bruno@clisp.org>
41267
41268         * tests/test-lock.c (main): Tweak skip message.
41269         * tests/test-tls.c (main): Likewise.
41270
41271 2008-09-21  Bruno Haible  <bruno@clisp.org>
41272
41273         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41274         whether 'struct sigaction' has sa_sigaction here...
41275         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41276         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41277
41278 2008-09-21  Bruno Haible  <bruno@clisp.org>
41279
41280         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41281         section.
41282         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41283         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41284         the new section.
41285         (Support for obsolete systems lacking POSIX:2001): New section.
41286         (String handling <string.h>): Move strdup to the new section.
41287         Suggested by Simon Josefsson and Paolo Bonzini.
41288
41289 2008-09-21  Bruno Haible  <bruno@clisp.org>
41290
41291         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41292         exponents in %e and %g results on 'long double'. Needed for mingw's
41293         improved *printf functions.
41294         * tests/test-vasprintf-posix.c (test_function): Likewise.
41295         * tests/test-snprintf-posix.h (test_function): Likewise.
41296         * tests/test-sprintf-posix.h (test_function): Likewise.
41297         Reported by Eric Blake.
41298
41299 2008-09-21  Bruno Haible  <bruno@clisp.org>
41300
41301         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41302         * tests/test-sprintf-posix.h (test_function): Likewise.
41303
41304 2008-09-21  Bruno Haible  <bruno@clisp.org>
41305
41306         * modules/getpass (Depends-on): Add strdup-posix.
41307
41308         New module 'strdup-posix'.
41309         * modules/strdup-posix: New file.
41310         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41311         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41312         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41313         REPLACE_STRDUP.
41314         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41315         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41316         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41317         strdup-posix.
41318
41319         * modules/strdup (Depends-on): Remove malloc-posix.
41320
41321 2008-09-20  Bruno Haible  <bruno@clisp.org>
41322
41323         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41324         Wildenhues.
41325
41326 2008-09-20  Bruno Haible  <bruno@clisp.org>
41327
41328         Ensure that wint_t gets defined on IRIX 5.3.
41329         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41330         * lib/wctype.in.h (wint_t): Likewise.
41331         (__wctype_wint_t): Remove type.
41332         (isw*): Use wint_t instead of __wctype_wint_t.
41333         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41334         * modules/wchar (Files): Add m4/wint_t.m4.
41335         (Makefile.am): Substitute HAVE_WINT_T.
41336         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41337         * tests/test-wctype.c: Check that wint_t is defined.
41338         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41339         * doc/posix-headers/wctype.texi: Likewise.
41340         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41341
41342 2008-09-18  Bruno Haible  <bruno@clisp.org>
41343
41344         * gnulib-tool (func_exit): Update comment.
41345
41346 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41347
41348         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41349         assumes strdup exists and does not depend on strdup to return
41350         ENOMEM on out of memory conditions.
41351
41352 2008-09-18  Bruno Haible  <bruno@clisp.org>
41353
41354         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
41355         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41356         digits for the exponent.
41357
41358 2008-09-18  Jim Meyering  <meyering@redhat.com>
41359             Bruno Haible  <bruno@clisp.org>
41360
41361         * lib/vasnprintf.c (decimal_point_char): Define also if
41362         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41363
41364 2008-09-16  Bruno Haible  <bruno@clisp.org>
41365         and Eric Blake  <ebb9@byu.net>
41366
41367         vasnprintf: support Irix 5.3
41368         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41369         that mishandle long double infinity.
41370         Reported by Tom G. Christensen.
41371
41372 2008-09-16  Bruno Haible  <bruno@clisp.org>
41373
41374         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41375         Solaris 9.
41376         * doc/glibc-functions/alphasort.texi: Likewise.
41377         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41378
41379 2008-09-16  Jim Meyering  <meyering@redhat.com>
41380
41381         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41382         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41383         a umask modification leak out of a subshell.  Otherwise, the
41384         opensolaris /bin/sh would be accepted and thus cause unwarranted
41385         failures in the coreutils test suite.
41386
41387 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41388
41389         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41390         to succeed.
41391
41392 2008-09-16  Jim Meyering  <meyering@redhat.com>
41393
41394         avoid spurious test failure when library is built without ACL support
41395         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41396         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41397         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41398         * tests/test-copy-acl.sh: Likewise.
41399
41400 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41401
41402         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41403         based on character occurrence counts.
41404
41405 2008-09-15  Eric Blake  <ebb9@byu.net>
41406
41407         tests: avoid some compiler warnings
41408         * tests/test-memchr.c (main): Pass NULL indirectly.
41409         * tests/test-closein.c (main): Avoid unused variable.
41410
41411 2008-09-15  Bruno Haible  <bruno@clisp.org>
41412
41413         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41414         are missing on OpenBSD 4.0 individually.
41415         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41416
41417 2008-09-15  Bruno Haible  <bruno@clisp.org>
41418
41419         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41420         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41421         * doc/posix-functions/perror.texi: Likewise.
41422         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41423         is missing.
41424         Reported by Eric Blake.
41425
41426         * lib/errno.in.h: Use replacement values >= 2000.
41427         Reported by Eric Blake.
41428
41429 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41430
41431         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41432         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41433         limit.
41434         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41435         compareseq was aborted.
41436
41437 2008-09-14  Bruno Haible  <bruno@clisp.org>
41438
41439         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41440         yvec_edit_count.
41441         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41442         (fstrcmp_bounded): Simplify result computation accordingly.
41443
41444 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41445
41446         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41447         (fstrcmp): Define in terms of fstrcmp_bounded.
41448         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41449         lower_bound argument.
41450         Return quickly if the result is certainly < lower_bound.
41451         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41452
41453 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41454
41455         * lib/diffseq.h (EARLY_ABORT): New macro.
41456         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41457         evaluates to true.
41458
41459 2008-09-14  Bruno Haible  <bruno@clisp.org>
41460
41461         * modules/perror-tests: New file.
41462         * tests/test-perror.sh: New file.
41463         * tests/test-perror.c: New file.
41464
41465         New module 'perror'.
41466         * lib/stdio.in.h (perror): New declaration.
41467         * lib/perror.c: New file.
41468         * m4/perror.m4: New file.
41469         * modules/perror: New file.
41470         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
41471         * doc/posix-functions/perror.texi: Mention the perror module.
41472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
41473         REPLACE_PERROR.
41474         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
41475         REPLACE_PERROR.
41476
41477 2008-09-14  Bruno Haible  <bruno@clisp.org>
41478
41479         * modules/stdio (Makefile.am): Reorder to match the order in
41480         lib/stdio.in.h.
41481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41482
41483 2008-09-13  Bruno Haible  <bruno@clisp.org>
41484
41485         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
41486
41487 2008-09-13  Bruno Haible  <bruno@clisp.org>
41488
41489         Extend strerror to cover the added errno values.
41490         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
41491         (rpl_strerror): Provide error messages for the added errno values and
41492         for the WSA* values.
41493         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
41494         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
41495         strerror.
41496         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
41497         * modules/strerror (Depends-on): Add errno.
41498         * doc/posix-functions/strerror.texi: Document the change.
41499         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
41500         and EOVERFLOW.
41501
41502 2008-09-13  Bruno Haible  <bruno@clisp.org>
41503
41504         * modules/EOVERFLOW: Remove file.
41505         * m4/eoverflow.m4: Remove file.
41506         * modules/EOVERFLOW-tests: Remove file.
41507         * tests/test-EOVERFLOW.c: Remove file.
41508         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
41509         * modules/ftell (Depends-on): Likewise.
41510         * modules/getdelim (Depends-on): Likewise.
41511         * modules/getugroups (Depends-on): Likewise.
41512         * modules/poll (Depends-on): Likewise.
41513         * modules/snprintf (Depends-on): Likewise.
41514         * modules/sprintf-posix (Depends-on): Likewise.
41515         * modules/vasnprintf (Depends-on): Likewise.
41516         * modules/vasprintf (Depends-on): Likewise.
41517         * modules/vfprintf-posix (Depends-on): Likewise.
41518         * modules/vsnprintf (Depends-on): Likewise.
41519         * modules/vsprintf-posix (Depends-on): Likewise.
41520         * modules/xvasprintf (Depends-on): Likewise.
41521         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41522         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
41523         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
41524         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
41525         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41526         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
41527         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
41528         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
41529         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41530         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
41531         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
41532         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
41533         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41534         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
41535         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
41536         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
41537         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41538         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
41539         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
41540         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
41541         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41542         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
41543         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
41544         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
41545         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
41546         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41547         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
41548         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
41549         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
41550         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
41551         * MODULES.html.sh: Remove EOVERFLOW.
41552         * NEWS: Mention the change.
41553
41554 2008-09-13  Bruno Haible  <bruno@clisp.org>
41555
41556         * modules/errno-tests: New file.
41557         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
41558
41559         * lib/errno.in.h: New file.
41560         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
41561         * modules/errno: New file.
41562         * doc/posix-headers/errno.texi: Update documentation.
41563         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41564
41565 2008-09-13  Bruno Haible  <bruno@clisp.org>
41566
41567         * tests/test-poll.c: Use #if for native Windows, rather than testing
41568         __MSVCRT__.
41569
41570 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41571             Bruno Haible  <bruno@clisp.org>
41572
41573         * lib/glob.c: Don't include <pwd.h> on native Windows.
41574         (WINDOWS32): New macro.
41575         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41576
41577 2008-09-13  Bruno Haible  <bruno@clisp.org>
41578
41579         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41580         (ETIMEDOUT): Remove macro.
41581         (glthread_cond_timedwait_multithreaded): New declaration.
41582         (glthread_cond_timedwait): Use it.
41583         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41584         (glthread_cond_timedwait_multithreaded): New function.
41585
41586 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41587
41588         * modules/poll-tests: Do not check for io.h.
41589         * tests/test-poll.c: Check for __MSVCRT__ instead.
41590
41591 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41592
41593         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41594         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41595         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41596
41597 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41598
41599         * modules/poll-tests: New.
41600         * tests/test-poll.c: New.
41601
41602 2008-09-12  Eric Blake  <ebb9@byu.net>
41603
41604         frexp: test for NetBSD failure on -0.0
41605         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41606         not all, bugs from NetBSD 3.0 have been fixed.
41607         * doc/posix-functions/frexp.texi (frexp): Document bug.
41608         Reported by Thomas Klausner.
41609
41610         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41611         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41612         literal -0.0.
41613         Reported by Jonathan C. Patschke <jp@centtech.com>.
41614
41615 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41616
41617         * lib/glthread/cond.h: Use dummy implementation also if
41618         USE_WIN32_THREADS.
41619
41620 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41621
41622         * modules/fnmatch-posix (License): Change to LGPLv2+.
41623         * modules/fnmatch-gnu (License): Likewise.
41624
41625 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41626
41627         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41628
41629 2008-09-11  Jim Meyering  <meyering@redhat.com>
41630
41631         * users.txt: Add gtk-vnc.
41632
41633 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41634
41635         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
41636         rotate amounts.
41637
41638         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
41639         required for 16-bit and 8-bit rotates.
41640         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
41641         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
41642         UINT8_MAX instead of hard-coded constants.
41643         Suggested by Paul Eggert.
41644
41645 2008-09-07  Bruno Haible  <bruno@clisp.org>
41646
41647         * tests/test-striconveh.c (main): Check behaviour when converting from
41648         UTF-7.
41649
41650         Make striconveh work better with stateful encodings.
41651         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
41652         that iconv does not increment the inptr when returning -1/EINVAL.
41653
41654 2008-09-07  Bruno Haible  <bruno@clisp.org>
41655
41656         * build-aux/config.rpath: Update according to libtool-2.2.6.
41657         * build-aux/config.libpath: Likewise.
41658
41659 2008-09-06  Bruno Haible  <bruno@clisp.org>
41660
41661         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
41662         * lib/freadptr.c (freadptr): Likewise.
41663         * lib/freadseek.c (freadptrinc): Likewise.
41664         Reported by Simon Josefsson.
41665
41666 2008-09-06  Bruno Haible  <bruno@clisp.org>
41667
41668         * modules/freadptr (License): Change to LGPLv2+.
41669         * modules/freadseek (License): Likewise.
41670         Suggested by Eric Blake.
41671
41672         * modules/memchr2 (License): Change to LGPLv2+.
41673         Approved by Eric Blake.
41674
41675 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41676             Bruno Haible  <bruno@clisp.org>
41677
41678         Make gnulib-tool work with native 'sed' on AIX.
41679         * gnulib-tool (sed_noop): New variable.
41680         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
41681         func_add_or_update, func_create_testdir): Use it to initialize sed
41682         script variables.
41683         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41684
41685 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
41686             Bruno Haible  <bruno@clisp.org>
41687
41688         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
41689         also works after #include directives.
41690
41691 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
41692
41693         getdate.y: reject an out-of-range timezone value
41694         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
41695         the range [-24...+24].  When specified with only one or two digits,
41696         * tests/test-getdate.c: Tests for the fix.
41697         * doc/getdate.texi: Document this change.
41698
41699 2008-09-03  Bruno Haible  <bruno@clisp.org>
41700
41701         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
41702
41703 2008-09-02  Simon Josefsson  <simon@josefsson.org>
41704
41705         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
41706         <bruce.korb@gmail.com> with ideas from Ben Pfaff
41707         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
41708         Blake <ebb9@byu.net>.
41709
41710         * tests/test-bitrotate.c: Add more test vectors.
41711
41712 2008-09-02  Eric Blake  <ebb9@byu.net>
41713
41714         vasnprintf-posix: handle large precision via %.*d
41715         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
41716         when handling it ourselves.
41717         * tests/test-vasnprintf-posix.c (test_function): Add test.
41718         * tests/test-snprintf-posix.h (test_function): Likewise.
41719         * tests/test-sprintf-posix.h (test_function): Likewise.
41720         * tests/test-vasprintf-posix.c (test_function): Likewise.
41721         Reported by Alain Guibert.
41722
41723 2008-09-01  Eric Blake  <ebb9@byu.net>
41724
41725         c-stack: make configure-time check more robust
41726         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
41727         successful sigaction call.
41728         Reported by Tom G. Christensen.
41729
41730 2008-09-01  Bruno Haible  <bruno@clisp.org>
41731
41732         New module 'findprog-lgpl'.
41733         * modules/findprog-lgpl: New file.
41734         * lib/findprog-lgpl.c: New file.
41735         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
41736         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
41737         to decide whether to use strdup or xstrdup, concatenated_filename or
41738         xconcatenated_filename.
41739
41740 2008-09-01  Bruno Haible  <bruno@clisp.org>
41741
41742         Split module 'concat-filename' into 'concat-filename' (LGPL) and
41743         'xconcat-filename' (GPL).
41744         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
41745         (License): Change to LGPLv2+.
41746         * modules/xconcat-filename: New file.
41747         * lib/concat-filename.h (concatenated_filename): Change specification.
41748         (xconcatenated_filename): New declaration.
41749         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
41750         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
41751         memory situations.
41752         * lib/xconcat-filename.c: New file.
41753         * NEWS: Mention the change.
41754         * lib/findprog.c: Include concat-filename.h, not filename.h.
41755         (find_in_path): Use xconcatenated_filename instead of
41756         concatenated_filename.
41757         * lib/javacomp.c: Include concat-filename.h, not filename.h.
41758         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41759         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41760         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41761         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
41762         instead of concatenated_filename.
41763         * lib/javaexec.c: Include concat-filename.h, not filename.h.
41764         (execute_java_class): Use xconcatenated_filename instead of
41765         concatenated_filename.
41766         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
41767         * modules/javacomp (Depends-on): Likewise.
41768         * modules/javaexec (Depends-on): Likewise.
41769
41770 2008-09-01  Bruno Haible  <bruno@clisp.org>
41771
41772         Split module 'filename' into 'filename' and 'concat-filename'.
41773         * modules/filename: Keep only lib/filename.h.
41774         (License): Change to LGPLv2+.
41775         * modules/concat-filename: New file, extracted from modules/filename.
41776         * lib/filename.h (concatenated_filename): Remove declaration.
41777         * lib/concat-filename.h: New file, extracted from lib/filename.h.
41778         * lib/concat-filename.c: Include concat-filename.h.
41779         * NEWS: Mention the change.
41780
41781 2008-09-01  Simon Josefsson  <simon@josefsson.org>
41782
41783         * lib/bitrotate.h (rotl8, rotr8): Add.
41784
41785         * modules/bitrotate (configure.ac): Need
41786         AC_REQUIRE([AC_C_INLINE]).
41787         (Description): Mention stdint.h.  Reported by Bruno Haible
41788         <bruno@clisp.org>.
41789
41790         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
41791         Paolo Bonzini <bonzini@gnu.org>.
41792
41793 2008-08-31  Bruno Haible  <bruno@clisp.org>
41794
41795         Assume Solaris specific bi-arch conventions on Solaris systems.
41796         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
41797         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
41798         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
41799         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
41800         like acl_libdirstem.
41801         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
41802         acl_libdirstem.
41803         * NEWS: Mention the change.
41804         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
41805
41806 2008-08-31  Jim Meyering  <meyering@redhat.com>
41807
41808         * lib/strftime.h: Add comments describing the two added arguments.
41809
41810         remove duplicate #include directives
41811         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
41812         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
41813
41814 2008-08-31  Bruno Haible  <bruno@clisp.org>
41815
41816         New module 'sigpipe-die'.
41817         * modules/sigpipe-die: New file.
41818         * lib/sigpipe-die.h: New file.
41819         * lib/sigpipe-die.c: New file.
41820         * MODULES.html.sh (Signal handling): Add sigpipe-die.
41821
41822 2008-08-31  Bruno Haible  <bruno@clisp.org>
41823
41824         Don't override previously installed signal handlers.
41825         * lib/fatal-signal.c (saved_sigactions): New variable.
41826         (uninstall_handlers): Reset the signal to the saved handler, not
41827         to SIG_DFL (except when ignored).
41828         (install_handlers): Save the previous handlers.
41829
41830 2008-08-30  Bruno Haible  <bruno@clisp.org>
41831
41832         * gnulib-tool (func_reset_sigpipe): New function.
41833         (func_get_automake_snippet, func_modules_transitive_closure,
41834         func_import): Invoke it before a join command that reads from stdin,
41835         to avoid "echo: write error: Broken pipe" error messages on stderr.
41836         Reported by Sam Steingold <sds@gnu.org>.
41837
41838 2008-08-30  Bruno Haible  <bruno@clisp.org>
41839
41840         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
41841         Code copied from m4/open.m4.
41842         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
41843         access and the filename ends in a slash. Code copied from lib/open.c.
41844         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
41845         * tests/test-fopen.c (main): Check against bug with trailing slash.
41846
41847 2008-08-29  Bruno Haible  <bruno@clisp.org>
41848
41849         Avoid some "gcc -pedantic" warnings.
41850         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
41851         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
41852         * lib/dirent.in.h: Likewise.
41853         * lib/fcntl.in.h: Likewise.
41854         * lib/float.in.h: Likewise.
41855         * lib/iconv.in.h: Likewise.
41856         * lib/inttypes.in.h: Likewise.
41857         * lib/locale.in.h: Likewise.
41858         * lib/math.in.h: Likewise.
41859         * lib/netinet_in.in.h: Likewise.
41860         * lib/search.in.h: Likewise.
41861         * lib/signal.in.h: Likewise.
41862         * lib/stdarg.in.h: Likewise.
41863         * lib/stdint.in.h: Likewise.
41864         * lib/stdio.in.h: Likewise.
41865         * lib/stdlib.in.h: Likewise.
41866         * lib/string.in.h: Likewise.
41867         * lib/strings.in.h: Likewise.
41868         * lib/sys_select.in.h: Likewise.
41869         * lib/sys_socket.in.h: Likewise.
41870         * lib/sys_stat.in.h: Likewise.
41871         * lib/sys_time.in.h: Likewise.
41872         * lib/sysexits.in.h: Likewise.
41873         * lib/time.in.h: Likewise.
41874         * lib/unistd.in.h: Likewise.
41875         * lib/wchar.in.h: Likewise.
41876         * lib/wctype.in.h: Likewise.
41877         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
41878         * modules/fchdir (Makefile.am): Likewise.
41879         * modules/fcntl (Makefile.am): Likewise.
41880         * modules/float (Makefile.am): Likewise.
41881         * modules/iconv_open (Makefile.am): Likewise.
41882         * modules/inttypes (Makefile.am): Likewise.
41883         * modules/locale (Makefile.am): Likewise.
41884         * modules/math (Makefile.am): Likewise.
41885         * modules/netinet_in (Makefile.am): Likewise.
41886         * modules/search (Makefile.am): Likewise.
41887         * modules/signal (Makefile.am): Likewise.
41888         * modules/stdarg (Makefile.am): Likewise.
41889         * modules/stdint (Makefile.am): Likewise.
41890         * modules/stdio (Makefile.am): Likewise.
41891         * modules/stdlib (Makefile.am): Likewise.
41892         * modules/string (Makefile.am): Likewise.
41893         * modules/strings (Makefile.am): Likewise.
41894         * modules/sys_select (Makefile.am): Likewise.
41895         * modules/sys_socket (Makefile.am): Likewise.
41896         * modules/sys_stat (Makefile.am): Likewise.
41897         * modules/sys_time (Makefile.am): Likewise.
41898         * modules/sysexits (Makefile.am): Likewise.
41899         * modules/time (Makefile.am): Likewise.
41900         * modules/unistd (Makefile.am): Likewise.
41901         * modules/wchar (Makefile.am): Likewise.
41902         * modules/wctype (Makefile.am): Likewise.
41903         Reported by Reuben Thomas <rrt@sc3d.org>.
41904
41905 2008-08-29  Bruno Haible  <bruno@clisp.org>
41906
41907         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
41908         any more.
41909
41910 2008-08-29  Simon Josefsson  <simon@josefsson.org>
41911
41912         * MODULES.html.sh (Misc): Add bitrotate.
41913
41914         * modules/bitrotate: New file.
41915
41916         * lib/bitrotate.h: New file.
41917
41918         * modules/bitrotate-tests: New file.
41919
41920         * tests/test-bitrotate.c: New file.
41921
41922         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
41923         on the bitrotate module.
41924
41925         * lib/arctwo.c: Use new bitrotate module.
41926
41927 2008-08-29  Jim Meyering  <meyering@redhat.com>
41928
41929         bootstrap: merge changes from coreutils
41930         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
41931         of copied files.  Remove a kludge, now that this is fixed.
41932         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
41933         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
41934         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
41935
41936 2008-08-29  Bruno Haible  <bruno@clisp.org>
41937
41938         * MODULES.html.sh: Remove --cvs-urls option.
41939
41940 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
41941
41942         maint.mk: adjust to file name change
41943         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
41944
41945 2008-08-28  Jim Meyering  <meyering@redhat.com>
41946
41947         * modules/getndelim2 (License): Relicense to LGPLv2+.
41948         Approved by Richard Stallman for the version of 1995, and by
41949         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
41950
41951 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
41952
41953         * lib/getdelim.c (flockfile, funlockfile): Make all of them
41954         dummy if one is not available.  Do not touch them if
41955         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
41956         (getc_maybe_unlocked): New.
41957         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
41958
41959 2008-08-26  Eric Blake  <ebb9@byu.net>
41960
41961         doc/INSTALL: resync from autoconf
41962         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
41963         (INSTALL_PRELUDE): Delete; this is done more efficiently by
41964         moving...
41965         * install.texi [!autoconf]: ...here.  Resync from autoconf.
41966         * INSTALL: Regenerate.
41967         * INSTALL.ISO: New file.
41968         * INSTALL.UTF-8: Likewise.
41969
41970 2008-08-26  Jim Meyering  <meyering@redhat.com>
41971
41972         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
41973         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
41974         these definitions conditional, so that they may be overridden, too.
41975
41976 2008-08-26  Bruno Haible  <bruno@clisp.org>
41977
41978         Generate INSTALL file variants with prettier quotes.
41979         * doc/Makefile (INSTALL_PRELUDE): New macro.
41980         (INSTALL): Use it.
41981         (INSTALL.ISO, INSTALL.UTF-8): New rules.
41982
41983 2008-08-26  Bruno Haible  <bruno@clisp.org>
41984
41985         Run makeinfo in an English locale.
41986         * doc/Makefile (MAKEINFO): New variable.
41987
41988 2008-08-26  Bruno Haible  <bruno@clisp.org>
41989
41990         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
41991         Suggested by Eric Blake.
41992
41993 2008-08-25  Bruno Haible  <bruno@clisp.org>
41994
41995         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
41996
41997 2008-08-25  Eric Blake  <ebb9@byu.net>
41998
41999         c-stack: test that stack overflow can be caught
42000         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
42001         that platform allows handling stack overflow; at least OS/2 EMX
42002         has sigaltstack, but crashes before transferring control to
42003         handler on stack overflow.
42004         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
42005         check for HAVE_STACK_OVERFLOW_HANDLING.
42006         Reported by Elbert Pol.
42007
42008 2008-08-25  Bruno Haible  <bruno@clisp.org>
42009
42010         * doc/posix-functions/strftime.texi: Fix description of strftime
42011         module.
42012
42013 2008-08-24  Bruno Haible  <bruno@clisp.org>
42014
42015         * tests/uniwidth/test-uc_width2.c: New file.
42016         * tests/uniwidth/test-uc_width2.sh: New file.
42017         * modules/uniwidth/width-tests (Files): Add the new files.
42018         (TESTS): Add uniwidth/test-uc_width2.sh.
42019         (TESTS_ENVIRONMENT): New variable.
42020         (check_PROGRAMS): Add test-uc_width2.
42021         (test_uc_width2_SOURCES): New variable.
42022
42023         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
42024         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
42025         not 0x00AB.
42026         Reported by Alexander V. Lukyanov <lav@netis.ru>.
42027
42028 2008-08-22  Eric Blake  <ebb9@byu.net>
42029
42030         test-lock, test-tls: mention why a test is skipped
42031         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
42032         skipped.
42033         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
42034
42035         count-one-bits: relax license
42036         * modules/count-one-bits (License): Relicense to LGPLv2+.
42037         Suggested by Ludovic Courtès, approved by Ben Pfaff.
42038
42039 2008-08-22  Andreas Schwab  <schwab@suse.de>
42040
42041         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
42042         Remove spurious space in assignment.
42043
42044 2008-08-21  Simon Josefsson  <simon@josefsson.org>
42045
42046         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
42047         Paul Eggert <eggert@CS.UCLA.EDU>.
42048
42049 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
42050
42051         * modules/gettext: Add m4/threadlib.m4.
42052
42053 2008-08-19  Eric Blake  <ebb9@byu.net>
42054
42055         test-c-stack: fix compilation failure on FreeBSD 5.0
42056         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
42057         headers before <sys/resource.h>.
42058         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
42059         the bug.
42060         Reported by Nelson H. F. Beebe.
42061
42062         strverscmp: migrate from "strverscmp.h" to <string.h>
42063         * modules/string (Makefile.am): Add new hooks.
42064         * modules/strverscmp (Files): Remove strverscmp.h.
42065         (Depends-on): Add string.
42066         (configure.ac): Add indicator.
42067         (Include): Mention new header.
42068         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
42069         defaults.
42070         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
42071         results.
42072         * lib/strverscmp.h: Delete.
42073         * lib/string.in.h (strverscmp): Provide declaration, when needed.
42074         * tests/test-strverscmp.c (includes): Adjust client.
42075         * lib/check-version.c (includes): Likewise.
42076         * NEWS: Document the change.
42077
42078         strverscmp: add unit test
42079         * modules/strverscmp-tests: New file.
42080         * tests/test-strverscmp.c: Likewise.
42081
42082 2008-08-19  Simon Josefsson  <simon@josefsson.org>
42083
42084         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
42085         regarding Windows crypto stuff, from Mono.
42086
42087 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
42088
42089         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
42090         if present, for intel RND.  Return error on failures.
42091
42092 2008-08-18  Ben Pfaff  <blp@gnu.org>
42093
42094         gitlog-to-changelog: give better diagnostic for failed pipe-open
42095         * build-aux/gitlog-to-changelog: Improve error message: suggest
42096         that the version of Git may be too old.
42097
42098 2008-08-18  Simon Josefsson  <simon@josefsson.org>
42099
42100         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
42101         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
42102
42103 2008-08-18  Bruno Haible  <bruno@clisp.org>
42104
42105         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
42106         pthread_in_use().
42107
42108 2008-08-18  Bruno Haible  <bruno@clisp.org>
42109
42110         * lib/glthread/threadlib.c: Include <pthread.h>.
42111
42112 2008-08-18  Bruno Haible  <bruno@clisp.org>
42113
42114         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
42115         glthread_recursive_lock_* macros.
42116         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
42117         Fix syntax error.
42118
42119 2008-08-18  Bruno Haible  <bruno@clisp.org>
42120
42121         * lib/glthread/thread.c: Avoid forcing a context switch right after
42122         thread creation.
42123
42124 2008-08-17  Bruno Haible  <bruno@clisp.org>
42125
42126         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
42127         * lib/glthread/thread.h: Provide Win32 specific implementation.
42128         * modules/thread (Files): Add lib/glthread/thread.c.
42129         (Depends-on): Add lock.
42130         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
42131
42132 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42133
42134         New module 'yield'.
42135         * modules/yield: New file.
42136         * lib/glthread/yield.h: New file.
42137         * m4/yield.m4: New file.
42138         * MODULES.html.sh (Multithreading): Add yield.
42139
42140 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42141
42142         New module 'thread'.
42143         * modules/thread: New file.
42144         * lib/glthread/thread.h: New file.
42145         * m4/thread.m4: New file.
42146         * MODULES.html.sh (Multithreading): Add thread.
42147
42148 2008-08-17  Bruno Haible  <bruno@clisp.org>
42149
42150         * lib/glthread/lock.h: Include <stdlib.h> always.
42151         * lib/glthread/tls.h: Likewise.
42152         * lib/glthread/cond.h: Likewise.
42153
42154 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42155
42156         New module 'cond'.
42157         * modules/cond: New file.
42158         * lib/glthread/cond.h: New file.
42159         * lib/glthread/cond.c: New file.
42160         * m4/cond.m4: New file.
42161         * MODULES.html.sh (Multithreading): Add cond.
42162
42163 2008-08-16  Eric Blake  <ebb9@byu.net>
42164
42165         c-stack: fix regression on Irix 5.3 from 2008-06-21
42166         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
42167         sa_sigaction...
42168         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
42169         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
42170         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
42171         * modules/signal (Makefile.am): Use the value.
42172         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
42173         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
42174         * doc/posix-headers/signal.texi (signal.h): Document this
42175         portability issue.
42176         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
42177         Reported by Tom G. Christensen.
42178
42179 2008-08-17  Bruno Haible  <bruno@clisp.org>
42180
42181         New module 'threadlib'.
42182         * modules/threadlib: New file.
42183         * lib/glthread/threadlib.c: New file, extracted from
42184         lib/glthread/lock.c.
42185         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
42186         functions.
42187         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
42188         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
42189         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
42190         macros.
42191         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
42192         (gl_DISABLE_THREADS): Remove macro.
42193         * modules/lock (Files): Remove build-aux/config.rpath.
42194         (Depends-on): Remove havelib. Add threadlib.
42195         (configure.ac-early): Remove section.
42196         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
42197         * modules/tls (Depends-on): Remove lock. Add threadlib.
42198         (Link): New section, copied from threadlib.
42199         * MODULES.html.sh (Multithreading): Add threadlib.
42200
42201 2008-08-14  Bruno Haible  <bruno@clisp.org>
42202
42203         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
42204         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
42205         glthread_rwlock_unlock, glthread_rwlock_destroy,
42206         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
42207         glthread_recursive_lock_destroy): Define as macros always.
42208         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
42209         glthread_lock_lock.
42210         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
42211         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
42212         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
42213         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
42214         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
42215         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
42216         (glthread_recursive_lock_lock_func): Renamed from
42217         glthread_recursive_lock_lock.
42218         (glthread_recursive_lock_unlock_func): Renamed from
42219         glthread_recursive_lock_unlock.
42220         (glthread_recursive_lock_destroy_func): Renamed from
42221         glthread_recursive_lock_destroy.
42222
42223 2008-08-14  Bruno Haible  <bruno@clisp.org>
42224
42225         * lib/glthread/lock.h: Renamed from lib/lock.h.
42226         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
42227         * lib/glthread/tls.h: Renamed from lib/tls.h.
42228         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
42229         * lib/fstrcmp.c: Update includes.
42230         * lib/strsignal.c: Update includes.
42231         * modules/lock (Files, Makefile.am): Update.
42232         (Include): Change to "glthread/lock.h".
42233         * modules/tls (Files, Makefile.am): Update.
42234         (Include): Change to "glthread/tls.h".
42235         * tests/test-lock.c: Update includes.
42236         * tests/test-tls.c: Update includes.
42237         * NEWS: Mention the renamed header files.
42238
42239 2008-08-11  Jim Meyering  <meyering@redhat.com>
42240
42241         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
42242
42243 2008-08-11  Eric Blake  <ebb9@byu.net>
42244
42245         test-c-stack: avoid C99-ism
42246         * tests/test-c-stack.c (main): Fix whitespace, move declaration
42247         before statement.
42248         Reported by Alain Guibert.
42249
42250 2008-08-10  Jim Meyering  <meyering@redhat.com>
42251
42252         ensure that return value of uinttostr et al are not ignored
42253         * lib/inttostr.h (__GNUC_PREREQ): Define.
42254         (__attribute_warn_unused_result__): Define.
42255         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42256
42257 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42258
42259         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42260         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42261
42262 2008-08-07  Jim Meyering  <meyering@redhat.com>
42263
42264         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42265
42266         * modules/mkstemp (License): Relicense under LGPLv2+.
42267         * modules/tempname (License): Likewise.
42268
42269 2008-08-06  Bruno Haible  <bruno@clisp.org>
42270
42271         * lib/poll.c (poll): Further micro-optimization.
42272
42273 2008-08-06  Jim Meyering  <meyering@redhat.com>
42274
42275         inet_pton.c: use locale-independent tolower
42276         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42277         (inet_pton6): Use c_tolower rather than tolower.
42278         * modules/inet_pton (Depends-on): Add c-ctype.
42279
42280 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42281
42282         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42283         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42284
42285 2008-08-06  Jim Meyering  <meyering@redhat.com>
42286
42287         * modules/inet_pton (License): Relicense under LGPLv2+.
42288
42289 2008-08-03  Bruno Haible  <bruno@clisp.org>
42290
42291         Additional non-aborting API for lock and tls.
42292         * lib/lock.h: Include <errno.h>.
42293         (glthread_lock_init): New macro/function.
42294         (gl_lock_init): Define as wrapper around glthread_lock_init.
42295         (glthread_lock_lock): New macro/function.
42296         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42297         (glthread_lock_unlock): New macro/function.
42298         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42299         (glthread_lock_destroy): New macro/function.
42300         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42301         (glthread_rwlock_init): New macro/function.
42302         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42303         (glthread_rwlock_rdlock): New macro/function.
42304         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42305         (glthread_rwlock_wrlock): New macro/function.
42306         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42307         (glthread_rwlock_unlock): New macro/function.
42308         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42309         (glthread_rwlock_destroy): New macro/function.
42310         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42311         (glthread_recursive_lock_init): New macro/function.
42312         (gl_recursive_lock_init): Define as wrapper around
42313         glthread_recursive_lock_init.
42314         (glthread_recursive_lock_lock): New macro/function.
42315         (gl_recursive_lock_lock): Define as wrapper around
42316         glthread_recursive_lock_lock.
42317         (glthread_recursive_lock_unlock): New macro/function.
42318         (gl_recursive_lock_unlock): Define as wrapper around
42319         glthread_recursive_lock_unlock.
42320         (glthread_recursive_lock_destroy): New macro/function.
42321         (gl_recursive_lock_destroy): Define as wrapper around
42322         glthread_recursive_lock_destroy.
42323         (glthread_once): New macro/function.
42324         (gl_once): Define as wrapper around glthread_once.
42325         Update function declarations.
42326         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42327         glthread_rwlock_init. Return error code.
42328         (glthread_rwlock_rdlock_multithreaded): Renamed from
42329         glthread_rwlock_rdlock. Return error code.
42330         (glthread_rwlock_wrlock_multithreaded): Renamed from
42331         glthread_rwlock_wrlock. Return error code.
42332         (glthread_rwlock_unlock_multithreaded): Renamed from
42333         glthread_rwlock_unlock. Return error code.
42334         (glthread_rwlock_destroy_multithreaded): Renamed from
42335         glthread_rwlock_destroy. Return error code.
42336         (glthread_recursive_lock_init_multithreaded): Renamed from
42337         glthread_recursive_lock_init. Return error code.
42338         (glthread_recursive_lock_lock_multithreaded): Renamed from
42339         glthread_recursive_lock_lock. Return error code.
42340         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42341         glthread_recursive_lock_unlock. Return error code.
42342         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42343         glthread_recursive_lock_destroy. Return error code.
42344         (glthread_once_call): Make static.
42345         (glthread_once_multithreaded): Renamed from glthread_once.
42346         * lib/tls.h: Include <errno.h>.
42347         (glthread_tls_key_init): New macro/function.
42348         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42349         (glthread_tls_set): New macro/function.
42350         (gl_tls_set): Define as wrapper around glthread_tls_set.
42351         (glthread_tls_key_destroy): New macro/function.
42352         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42353         Update function declarations.
42354         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42355         glthread_tls_get.
42356         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42357
42358 2008-08-04  Eric Blake  <ebb9@byu.net>
42359
42360         gnumakefile: use space, not TAB, outside of targets
42361         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42362
42363 2008-08-02  Jim Meyering  <meyering@redhat.com>
42364
42365         getdate.y: avoid locale-dependent date parsing failure
42366         In Turkish locales, getdate would fail to recognize keywords
42367         containing a lowercase "i".  The solution is not to rely on
42368         locale-sensitive case-conversion.
42369         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42370         (lookup_word): Use c_toupper in place of toupper.
42371         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42372         Reported by Vefa Bicakci <bicave@superonline.com> in
42373         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42374         * modules/getdate (Depends-on): Add c-ctype.
42375
42376 2008-08-02  Bruno Haible  <bruno@clisp.org>
42377
42378         * gnulib-tool (func_import): When updating or creating a .gitignore
42379         file, prepend each added line with a slash, and ignore leading slashes
42380         from the existing lines.
42381         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42382
42383 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42384
42385         Portability fix for GNU make 3.79.1.
42386         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42387         versions do not understand.
42388
42389 2008-08-01  Bruno Haible  <bruno@clisp.org>
42390
42391         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42392         * tests/test-isnanf.h (zero): New variable.
42393         (main): Avoid literal -0.0f.
42394         * tests/test-isnand.h (zero): New variable.
42395         (main): Avoid literal -0.0.
42396         * tests/test-isnanl.h (zero): New variable.
42397         (main): Avoid literal -0.0L.
42398         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42399         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42400         -0.0, -0.0L.
42401         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42402         (test_signbitd): Avoid literal -0.0.
42403         (test_signbitl): Avoid literal -0.0L.
42404         * tests/test-ceilf1.c (zero): New variable.
42405         (main): Avoid literal -0.0f.
42406         * tests/test-ceill.c (zero): New variable.
42407         (main): Avoid literal -0.0L.
42408         * tests/test-floorf1.c (zero): New variable.
42409         (main): Avoid literal -0.0f.
42410         * tests/test-floorl.c (zero): New variable.
42411         (main): Avoid literal -0.0L.
42412         * tests/test-roundf1.c (zero): New variable.
42413         (main): Avoid literal -0.0f.
42414         * tests/test-round1.c (zero): New variable.
42415         (main): Avoid literal -0.0.
42416         * tests/test-roundl.c (zero): New variable.
42417         (main): Avoid literal -0.0L.
42418         * tests/test-truncf1.c (zero): New variable.
42419         (main): Avoid literal -0.0f.
42420         * tests/test-trunc1.c (zero): New variable.
42421         (main): Avoid literal -0.0.
42422         * tests/test-truncl.c (zero): New variable.
42423         (main): Avoid literal -0.0L.
42424         * tests/test-frexp.c (zero): New variable.
42425         (main): Avoid literal -0.0.
42426         * tests/test-frexpl.c (zero): New variable.
42427         (main): Avoid literal -0.0L.
42428         * tests/test-ldexpl.c (zero): New variable.
42429         (main): Avoid literal -0.0L.
42430         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42431         (zerod, zerol): New variables.
42432         (test_function): Avoid literals -0.0, -0.0L.
42433         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42434         (zerod, zerol): New variables.
42435         (test_function): Avoid literals -0.0, -0.0L.
42436         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42437         (zerod, zerol): New variables.
42438         (test_function): Avoid literals -0.0, -0.0L.
42439         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42440         (zerod, zerol): New variables.
42441         (test_function): Avoid literals -0.0, -0.0L.
42442         * tests/test-strtod.c (zero): New variable.
42443         (main): Avoid literal -0.0.
42444         Reported by Jonathan C. Patschke <jp@centtech.com>.
42445
42446 2008-07-31  Jim Meyering  <meyering@redhat.com>
42447
42448         sha256.h: correct definition of SHA224_DIGEST_SIZE
42449         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42450         Reported by Paulie Pena IV <paulie4@gmail.com>.
42451         Define as 224 / 8, rather than as a literal.
42452         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42453         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42454         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42455
42456 2008-07-31  Bruno Haible  <bruno@clisp.org>
42457
42458         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42459         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42460         Reported by Jonathan Patschke <jp@centtech.com>.
42461
42462 2008-07-31  Bruno Haible  <bruno@clisp.org>
42463
42464         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42465         Reported by Paolo Bonzini <bonzini@gnu.org>.
42466
42467 2008-07-30  Eric Blake  <ebb9@byu.net>
42468
42469         test-strtod: allow compilation without -lm
42470         * tests/test-strtod.c (main): Avoid link dependence on fabs.
42471         Reported by Dennis Clarke <blastwave@gmail.com>.
42472
42473 2008-07-28  Jim Meyering  <meyering@redhat.com>
42474
42475         bootstrap: work also when there are no .po files in po/
42476         * build-aux/bootstrap (update_po_files): Complete the change
42477         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
42478
42479 2008-07-27  Jim Meyering  <meyering@redhat.com>
42480
42481         * users.txt: Add zile.
42482
42483 2008-07-26  Ben Pfaff  <blp@gnu.org>
42484
42485         Add missing dependencies on new m4/exponent[fdl].m4 files.
42486         * modules/isnanf-nolibm: Add m4/exponentf.m4.
42487         * modules/isnand-nolibm: Add m4/exponentd.m4.
42488         * modules/isnanl-nolibm: Add m4/exponentl.m4.
42489         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
42490         m4/isnan[fdl].m4, because the macros actually used moved.
42491         Reported by Jim Meyering.
42492
42493 2008-07-14  Ben Pfaff  <blp@gnu.org>
42494
42495         Add isinf module.
42496         * lib/isinf.c: New file.
42497         * lib/math.in.h: Define isinf macro if we have decided to replace
42498         it.
42499         * m4/isinf.m4: New file.
42500         * m4/math_h.m4: Initialize and substitute variables for isinf
42501         module.
42502         * modules/isinf: New file.
42503         * modules/isinf-tests: New file.
42504         * modules/math: Add substitutions for new module.
42505         * tests/test-isinf.c: New file.
42506         * doc/posix-functions/isinf.texi: Mention new module.
42507         * MODULES.html.sh: Mention new module.
42508
42509 2008-07-14  Ben Pfaff  <blp@gnu.org>
42510
42511         Factor out some macros for use by additional modules.
42512         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
42513         exponentf.m4.
42514         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
42515         exponentd.m4.
42516         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
42517         file exponentl.m4.
42518         * m4/exponentf.m4: New file.
42519         * m4/exponentd.m4: New file.
42520         * m4/exponentl.m4: New file.
42521         * modules/isnanf: Use new file m4/exponentf.m4.
42522         * modules/isnand: Use new file m4/exponentd.m4.
42523         * modules/isnanl: Use new file m4/exponentl.m4.
42524
42525 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
42526
42527         mktime.c: normalize tp->tm_isdst value to -1/0/1.
42528         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
42529         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
42530         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
42531
42532         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
42533         readlink on platforms without PATH_MAX.
42534
42535 2008-07-21  Eric Blake  <ebb9@byu.net>
42536
42537         Warn, not fail, on stale version.
42538         * top/GNUmakefile (_curr-ver): Tone down previous patch.
42539
42540         Don't allow installation with stale devel version number.
42541         * top/GNUmakefile (_is-install-target): New macro.
42542         (_curr-ver): Forbid installation with stale version number.
42543
42544 2008-07-20  Bruno Haible  <bruno@clisp.org>
42545
42546         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
42547         TESTS_ENVIRONMENT.
42548         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
42549
42550 2008-07-20  Bruno Haible  <bruno@clisp.org>
42551
42552         * lib/c-stack.h (c_stack_action): Add documentation.
42553         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
42554
42555 2008-07-20  Bruno Haible  <bruno@clisp.org>
42556
42557         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
42558         * modules/readlink (License): Likewise.
42559
42560 2008-07-17  Eric Blake  <ebb9@byu.net>
42561
42562         * modules/c-stack (Link): Fix typo.
42563
42564         Make c-stack use libsigsegv, when available.
42565         * modules/c-stack (Depends-on): Add libsigsegv.
42566         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42567         needed.
42568         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42569         (segv_handler, overflow_handler, c_stack_action)
42570         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42571         implementation when libsigsegv is available, but only when using
42572         the library is necessary.
42573         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42574         comment, explaining why XSI check fails on Linux.
42575         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42576         * tests/test-c-stack2.sh: Tweak skip message.
42577         * NEWS: Document new link-time requirements.
42578
42579 2008-07-16  Eric Blake  <ebb9@byu.net>
42580
42581         c-stack: Expose false positives when not using libsigsegv.
42582         * modules/c-stack-tests (Files): Expand test.
42583         * tests/test-c-stack.c (main): Add means to conditionally trigger
42584         non-overflow SIGSEGV.
42585         * tests/test-c-stack2.sh: New file.
42586
42587 2008-07-14  Bruno Haible  <bruno@clisp.org>
42588
42589         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42590         Reported by Eric Blake.
42591
42592 2008-07-14  Sam Steingold  <sds@gnu.org>
42593             Bruno Haible  <bruno@clisp.org>
42594
42595         New module libsigsegv.
42596         * modules/libsigsegv: New file.
42597         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42598         modifications.
42599         * MODULES.html.sh (Signal handling): New section.
42600
42601 2008-07-14  Bruno Haible  <bruno@clisp.org>
42602
42603         * modules/unictype/ctype-* (Description): Add the word "function".
42604         Improves the resulting doc in MODULES.html.
42605
42606 2008-07-12  Ben Pfaff  <blp@gnu.org>
42607
42608         Add longlong module.
42609         * modules/longlong: New file.
42610
42611 2008-07-12  Bruno Haible  <bruno@clisp.org>
42612
42613         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42614         to empty.
42615
42616 2008-07-10  Ben Pfaff  <blp@gnu.org>
42617
42618         Add isnan module.
42619         * doc/posix-functions/isnan.texi: Mention new module.
42620         * lib/math.in.h: Define isnan macro if we have decided to replace
42621         it.
42622         * m4/isnan.m4: New file.
42623         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42624         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42625         also.
42626         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42627         redundancy.
42628         * m4/math_h.m4: Initialize and substitute variables for isnan
42629         module.
42630         * modules/isnan: New file.
42631         * modules/isnan-tests: New file.
42632         * modules/math: Add substitutions for new module.
42633         * tests/test-isnan.c: New file.
42634         * MODULES.html.sh: Mention new module.
42635
42636 2008-07-10  Ben Pfaff  <blp@gnu.org>
42637
42638         Add isnanf module.
42639         * lib/isnanf.m4: New file.
42640         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
42641         (gl_HAVE_ISNANF_IN_LIBM): New macro.
42642         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
42643         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
42644         * modules/isnanf: New file.
42645         * modules/isnanf-tests: New file.
42646         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
42647         files.
42648         * tests/test-isnanf-nolibm.c: factored most of its contents into
42649         new file tests/test-isnanf.h.
42650         * tests/test-isnanf.h: New file.
42651         * tests/test-isnanf.c: New file.
42652         * MODULES.html.sh: Mention new module.
42653         * doc/glibc-functions/isnanf.texi: Mention new module.
42654
42655 2008-07-10  Ben Pfaff  <blp@gnu.org>
42656
42657         Add isnand module.
42658         * lib/isnand.h: New file.
42659         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
42660         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
42661         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
42662         functionality also.
42663         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
42664         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
42665         (gl_HAVE_ISNAND_IN_LIBM): New macro.
42666         * modules/isnand: New file.
42667         * modules/isnand-tests: New file.
42668         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
42669         files.
42670         * tests/test-isnand-nolibm.c: factored most of its contents into
42671         new file tests/test-isnand.h.
42672         * tests/test-isnand.h: New file.
42673         * tests/test-isnand.c: New file.
42674         * MODULES.html.sh: Mention new module.
42675
42676 2008-07-10  Ben Pfaff  <blp@gnu.org>
42677
42678         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
42679         * lib/isnand.h: Rename lib/isnand-nolibm.h.
42680         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
42681         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
42682         * modules/isnanf-nolibm: Update references to renamed files.
42683         * modules/isnand-nolibm: Likewise.
42684         * modules/isnanf-nolibm-tests: Likewise.
42685         * modules/isnand-nolibm-tests: Likewise.
42686         * lib/frexp.c: Likewise.
42687         * lib/isfinite.c: Likewise.
42688         * lib/signbitd.c: Likewise.
42689         * lib/signbitf.c: Likewise.
42690         * lib/vasnprintf.c: Likewise.
42691         * tests/test-ceilf1.c: Likewise.
42692         * tests/test-ceilf2.c: Likewise.
42693         * tests/test-floorf1.c: Likewise.
42694         * tests/test-floorf2.c: Likewise.
42695         * tests/test-frexp.c: Likewise.
42696         * tests/test-round1.c: Likewise.
42697         * tests/test-round2.c: Likewise.
42698         * tests/test-roundf1.c: Likewise.
42699         * tests/test-strtod.c: Likewise.
42700         * tests/test-trunc1.c: Likewise.
42701         * tests/test-trunc2.c: Likewise.
42702         * tests/test-truncf1.c: Likewise.
42703         * tests/test-truncf2.c: Likewise.
42704         * NEWS: Mention the renamed header files.
42705
42706 2008-07-11  Jim Meyering  <meyering@redhat.com>
42707
42708         vc-list-files: make the last-resort awk code more portable
42709         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
42710         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
42711         does not support it.
42712
42713 2008-07-10  Eric Blake  <ebb9@byu.net>
42714
42715         Work with tar's bootstrap.
42716         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
42717         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
42718         an m4 comment.
42719
42720 2008-07-09  Jim Meyering  <meyering@redhat.com>
42721
42722         posix-shell.m4: fix typo that made this test malfunction
42723         * m4/posix-shell.m4: Remove capitalization in variable name.
42724
42725 2008-07-08  Bruno Haible  <bruno@clisp.org>
42726
42727         * m4/onceonly.m4: Update comments.
42728         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42729
42730 2008-07-04  Jim Meyering  <meyering@redhat.com>
42731
42732         * users.txt: Add vc-dwim.
42733         (bison, coreutils): Use the gitweb URL.
42734
42735 2008-07-03  Jim Meyering  <meyering@redhat.com>
42736
42737         * users.txt: Add libffcall.  From Sam Steingold.
42738
42739 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
42740
42741         getdate.y: do not ignore TZ with relative day, month or year offset
42742         * lib/getdate.y (get_date): Move the tz-handling block to follow the
42743         relative-date-handling, since otherwise, the latter would clobber the
42744         sole output (an updated Start value) of the tz-handling block.
42745         * tests/test-getdate.c: Tests for the fix
42746
42747 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42748
42749         Recognize 'foo_LIBRARIES += libgnu.a'.
42750         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
42751         makefile snippet has already specified an installation location,
42752         also using '+='.
42753
42754 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
42755
42756         getdate.y: factor out common actions
42757         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
42758         Use them in place of open-coded actions.
42759
42760 2008-07-01  Simon Josefsson  <simon@josefsson.org>
42761
42762         Add self-test for getdate module.
42763         * modules/getdate-tests: New file.
42764         * tests/test-getdate.c: New file.
42765
42766 2008-06-29  Bruno Haible  <bruno@clisp.org>
42767
42768         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
42769         .gitignore.
42770         Reported by Sylvain Beucler <beuc@beuc.net>.
42771
42772 2008-06-29  Bruno Haible  <bruno@clisp.org>
42773
42774         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
42775         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
42776
42777 2008-06-29  Bruno Haible  <bruno@clisp.org>
42778
42779         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
42780         EXTRA_DIST.
42781         Reported by Sylvain Beucler <beuc@beuc.net>.
42782
42783 2008-06-26  Jim Meyering  <meyering@redhat.com>
42784
42785         make several modules depend on the "open" module
42786         This provides slightly increased consistency when opening-for-write
42787         the name of a non-directory spelled with a trailing slash.
42788         * modules/chdir-safer: Likewise.
42789         * modules/chown: Likewise.
42790         * modules/clean-temp: Likewise.
42791         * modules/copy-file: Likewise.
42792         * modules/fchdir: Likewise.
42793         * modules/fcntl-safer: Likewise.
42794         * modules/pipe: Likewise.
42795         * modules/utime: Likewise.
42796         Prompted by Eric Blake and Bruno Haible.
42797
42798 2008-06-24  Andreas Schwab  <schwab@suse.de>
42799
42800         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
42801         literals can be used as initializers for global variables.
42802
42803 2008-06-23  Eric Blake  <ebb9@byu.net>
42804
42805         Make gnulib-cache.m4 easier to diff.
42806         * gnulib-tool (func_import): Allow newlines when reading cached
42807         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
42808
42809 2008-06-23  Bruno Haible  <bruno@clisp.org>
42810
42811         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
42812         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
42813         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
42814         m4/signalblocking.m4.
42815         (gl_PREREQ_SIGACTION): Don't invoke it.
42816         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
42817         gl_PREREQ_SIG_HANDLER_H.
42818         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42819         Don't check for sigaction here.
42820
42821 2008-06-23  Bruno Haible  <bruno@clisp.org>
42822
42823         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
42824         (install_handlers): Don't set the SA_RESETHAND flag.
42825
42826 2008-06-23  Bruno Haible  <bruno@clisp.org>
42827
42828         * m4/sigaction.m4: Comment fixes.
42829         * lib/signal.in.h: Likewise.
42830
42831 2008-06-23  Eric Blake  <ebb9@byu.net>
42832
42833         Fix typo.
42834         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
42835
42836         Avoid SA_ namespace.
42837         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
42838         Reported by Ralf Wildenhues.
42839
42840         Avoid test failure due to SA_RESTORER.
42841         * tests/test-sigaction.c (SA_MASK): New macro.
42842         (main): Avoid failing due to extension flags being set.
42843         Reported by Jim Meyering.
42844
42845         Revert use of sig-handler.h in sigprocmask.c.
42846         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
42847         it requires the existence of struct sigaction.
42848         * lib/sigprocmask.c (handler_t): Restore typedef.
42849         (rpl_signal, old_handlers): Use local type.
42850
42851 2008-06-22  Bruno Haible  <bruno@clisp.org>
42852
42853         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
42854         conditionally.
42855         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42856
42857 2008-06-22  Bruno Haible  <bruno@clisp.org>
42858
42859         * doc/posix-functions/siginterrupt.texi: Move note.
42860
42861         * lib/signal.in.h (SA_RESTART): New macro.
42862         * lib/sigaction.c: Update comment.
42863
42864         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
42865
42866         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
42867         (gl_PREREQ_SIGPROCMASK): Invoke it.
42868         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
42869
42870         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
42871
42872         * lib/sigprocmask.c: Update a comment.
42873
42874 2008-06-21  Eric Blake  <ebb9@byu.net>
42875
42876         Use sigaction module rather than signal().
42877         * modules/c-stack (Depends-on): Add sigaction.
42878         * modules/fatal-signal (Depends-on): Likewise.
42879         * modules/nanosleep (Depends-on): Likewise.
42880         * modules/sigprocmask (Files): Add sig-handler.h.
42881         * modules/sigaction (Files): Likewise.
42882         * lib/sig-handler.h (get_handler): New file, suggested by Paul
42883         Eggert.
42884         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
42885         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
42886         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42887         (init_fatal_signals): Likewise.
42888         * lib/nanosleep.c (rpl_nanosleep): Likewise.
42889         (siginterrupt): Delete fallback.
42890         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
42891         instead.
42892         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
42893         siginterrupt.
42894
42895         New module sigaction, for mingw.
42896         * modules/sigaction: New module...
42897         * modules/sigaction-tests: ...and its test.
42898         * m4/sigaction.m4: New file.
42899         * lib/sigaction.c: Likewise.
42900         * tests/test-sigaction.c: Likewise.
42901         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
42902         * modules/signal (Makefile.am): Likewise.
42903         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
42904         needed.
42905         * doc/posix-headers/signal.texi (signal.h): Mention provided
42906         types.
42907         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
42908         that sigaction is preferable.
42909         * doc/posix-functions/sigaction.texi (sigaction): Mention new
42910         module.
42911         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42912         sigaction.
42913
42914         Improve robustness of sigprocmask by overriding signal.
42915         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
42916         is in use.
42917         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
42918         (SIGKILL, SIGSTOP): Provide fallbacks.
42919         (rpl_signal): Implement.
42920         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
42921         signal can be called inside handlers.
42922
42923         Fix nanosleep module on mingw.
42924         * modules/nanosleep (Depends-on): Add sys_select.
42925         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
42926
42927         Fix licensing of sigprocmask.
42928         * modules/raise (License): Relicense as LGPL.
42929
42930 2008-06-21  Bruno Haible  <bruno@clisp.org>
42931
42932         * lib/propername.c (proper_name_utf8): Don't use the transliterated
42933         result if it contains question marks.
42934         Reported by Michael Geng <linux@michaelgeng.de>.
42935
42936 2008-06-19  Bruno Haible  <bruno@clisp.org>
42937
42938         Fix CVS-ism.
42939         * doc/gnulib.texi: Include updated-stamp.texi.
42940         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
42941         (updated-stamp.texi): New rule.
42942         (gnulib.info): Depend on it.
42943         * doc/.gitignore: Add updated-stamp.texi.
42944         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
42945
42946 2008-06-19  Bruno Haible  <bruno@clisp.org>
42947
42948         * doc/Makefile (gnulib.info): Update and simplify dependencies.
42949         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42950
42951 2008-06-19  Eric Blake  <ebb9@byu.net>
42952
42953         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
42954         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
42955         Reported by Stepan Kasal.
42956
42957 2008-06-18  Bruno Haible  <bruno@clisp.org>
42958
42959         * lib/fatal-signal.c (init_fatal_signals): Add comment.
42960         Reported by Eric Blake.
42961
42962 2008-06-18  Eric Blake  <ebb9@byu.net>
42963
42964         Work around cygwin 1.5.25 strsignal bug.
42965         * tests/test-strsignal.c: Allow for const char *.
42966         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
42967
42968 2008-06-18  Simon Josefsson  <simon@josefsson.org>
42969
42970         * users.txt: Update URL to article and add author/date
42971         information.
42972
42973 2008-06-17  Bruno Haible  <bruno@clisp.org>
42974
42975         New macro gl_DISABLE_THREADS.
42976         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
42977         if the user did not pass --enable-threads or --disable-threads option.
42978         (gl_DISABLE_THREADS): New macro.
42979         Reported by Eric Blake <ebb9@byu.net>.
42980
42981 2008-06-17  Bruno Haible  <bruno@clisp.org>
42982
42983         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
42984         when the macro ignores it.
42985         Based on a patch by Eric Blake <ebb9@byu.net>.
42986
42987 2008-06-17  Bruno Haible  <bruno@clisp.org>
42988
42989         * modules/tls (License): Change to LGPLv2+.
42990         Reported by Eric Blake.
42991
42992 2008-06-17  Eric Blake  <ebb9@byu.net>
42993
42994         Simplify c-stack prerequisites.
42995         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
42996         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
42997         no longer requires <ucontext.h> to exist.  Optimize setrlimit
42998         check.
42999         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
43000         <sys/resource.h>.
43001
43002         Move c-stack test into testsuite.
43003         * modules/c-stack-tests: New file.
43004         * lib/c-stack.c [DEBUG]: Move test program...
43005         * tests/test-c-stack.c: ...into this new file.  Skip rather than
43006         fail test if sigaltstack is lacking.
43007         * tests/test-c-stack.sh: New driver file.
43008
43009 2008-06-16  Eric Blake  <ebb9@byu.net>
43010
43011         Use raise module consistently.
43012         * modules/fatal-signal (Depends-on): Add raise.
43013         * modules/sigprocmask (Depends-on): Likewise.
43014         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
43015         * lib/sigprocmask.c (sigprocmask): Likewise.
43016         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43017         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
43018
43019         Fix compliance bug in sigpending.
43020         * lib/sigprocmask.c (sigpending): Return pending array via
43021         parameter, not return value.
43022
43023 2008-06-14  Eric Blake  <ebb9@byu.net>
43024
43025         Improve obstack-printf test code.
43026         * tests/test-obstack-printf.c (test_function): Fix comment, and
43027         simplify usage of obstack_* in macros.  Add a test for coverage.
43028         Reported by Bruno Haible.
43029
43030 2008-06-14  Bruno Haible  <bruno@clisp.org>
43031
43032         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
43033         array size as a constant, not as a const variable.
43034         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
43035         AC_USE_SYSTEM_EXTENSIONS.
43036         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43037         Test whether the obstack_printf function actually exists.
43038         * modules/obstack-printf (Depends-on): Add extensions.
43039         (Include): Remove obstack.h.
43040         * modules/obstack-printf-posix (Depends-on): Add extensions.
43041         (Include): Remove obstack.h.
43042
43043 2008-06-13  Eric Blake  <ebb9@byu.net>
43044
43045         Add obstack-printf and obstack-printf-posix modules.
43046         * modules/obstack-printf: New file.
43047         * modules/obstack-printf-posix: Likewise.
43048         * MODULES.html.sh (Misc): Mention them.
43049         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43050         Likewise.
43051         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43052         Likewise.
43053         * modules/stdio (Makefile.am): Accomodate new modules.
43054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43055         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
43056         Declare.
43057         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
43058         functions.
43059         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
43060         (gl_REPLACE_OBSTACK_PRINTF): New macros
43061         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
43062         * tests/test-obstack-printf.c: New file.
43063         * modules/obstack-printf-tests: Likewise.
43064         * modules/obstack-printf-posix-tests: Likewise.
43065
43066 2008-06-11  Bruno Haible  <bruno@clisp.org>
43067
43068         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
43069         * lib/open.c: Include errno.h.
43070         (open): Fail when attempting to write to a file that has a trailing
43071         slash.
43072         * tests/test-open.c (main): Test against trailing slash bug.
43073         * doc/posix-functions/open.texi: Mention the trailing slash bug.
43074
43075 2008-06-10  Bruno Haible  <bruno@clisp.org>
43076
43077         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
43078         for $? to work inside the trap command, with various /bin/sh-s.
43079         * tests/test-vc-list-files-cvs.sh: Likewise.
43080
43081 2008-06-10  Bruno Haible  <bruno@clisp.org>
43082
43083         * lib/acl-internal.h: Don't include gettext.h here.
43084         * lib/set-mode-acl.c: Include gettext.h here.
43085         * lib/copy-acl.c: Likewise.
43086
43087 2008-06-10  Bruno Haible  <bruno@clisp.org>
43088
43089         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
43090         * lib/wait-process.c (wait_subprocess): Likewise.
43091         * lib/execute.h (execute): Add termsigp argument.
43092         * lib/execute.c (execute): Likewise.
43093         * lib/csharpcomp.c (compile_csharp_using_pnet,
43094         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
43095         * lib/csharpexec.c (execute_csharp_using_pnet,
43096         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
43097         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
43098         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
43099         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
43100         is_jikes_present): Update.
43101         * lib/javaexec.c (execute_java_class): Update.
43102         * lib/javaversion.c (execute_and_read_line): Update.
43103         * NEWS: Document the changes.
43104         Reported by Eric Blake.
43105
43106 2008-06-10  Eric Blake  <ebb9@byu.net>
43107
43108         Add missing include.
43109         * tests/test-strstr.c (includes): Add <signal.h>.
43110         * tests/test-strcasestr.c (includes): Likewise.
43111         * tests/test-memmem.c (includes): Likewise.
43112
43113 2008-06-10  Bruno Haible  <bruno@clisp.org>
43114
43115         * lib/wait-process.c (wait_subprocess): Add an assertion.
43116
43117 2008-06-10  Bruno Haible  <bruno@clisp.org>
43118
43119         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
43120
43121 2008-06-10  Bruno Haible  <bruno@clisp.org>
43122
43123         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
43124         using alarm().
43125         * tests/test-strcasestr.c (main): Likewise.
43126         * tests/test-strstr.c (main): Likewise.
43127
43128 2008-06-09  Bruno Haible  <bruno@clisp.org>
43129
43130         Work around the Solaris 10 ACE ACLs ABI change.
43131         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
43132         declare if ACL_NO_TRIVIAL is present.
43133         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
43134         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
43135         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
43136         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
43137         define if ACL_NO_TRIVIAL is present.
43138         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
43139         and use the current ABI.
43140         (file_has_acl): Use same #if condition as elsewhere.
43141         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
43142         in use, and use the current ABI.
43143         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
43144         Reported by Jim Meyering.
43145
43146 2008-06-09  Eric Blake  <ebb9@byu.net>
43147
43148         Work around environments that (stupidly) ignore SIGALRM.
43149         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
43150         before using alarm().
43151         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43152         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43153         Reported by Ian Beckwith <ianb@erislabs.net>.
43154
43155         Produce autobuild blurb earlier in log.
43156         * modules/autobuild (configure.ac-early): Move AB_INIT here.
43157
43158 2008-06-09  Jim Meyering  <meyering@redhat.com>
43159         and OndÅ™ej Vašík  <ovasik@redhat.com>
43160
43161         utimens.c: correct kernel bug work-around
43162         OndÅ™ej Vašík found that the invalid return value of 280 indicates
43163         failure, not success, and the kernel bug we're trying to work
43164         around affects not just the utimensat call, but also the fallback
43165         futimens call.
43166         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
43167         not success.
43168         [HAVE_FUTIMENS]: Use the same work-around, here.
43169
43170 2008-06-09  Jim Meyering  <meyering@redhat.com>
43171
43172         add more guards around definition of ACE_-related code
43173         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
43174         ALLOW and ACE_OWNER are also defined.
43175
43176 2008-06-08  Bruno Haible  <bruno@clisp.org>
43177
43178         * lib/acl-internal.h: Add me as co-author.
43179         * lib/file-has-acl.c: Likewise.
43180         * lib/set-mode-acl.c: Likewise.
43181         * lib/copy-acl.c: Likewise.
43182
43183 2008-06-08  Bruno Haible  <bruno@clisp.org>
43184
43185         Add support for AIX ACLs.
43186         * lib/acl-internal.h (acl_nontrivial): New declaration.
43187         * lib/file-has-acl.c (acl_nontrivial): New function.
43188         (file_has_acl): Add implementation using AIX 4 ACL API.
43189         * lib/set-mode-acl.c (qset_acl): Likewise.
43190         * lib/copy-acl.c (qcopy_acl): Likewise.
43191
43192 2008-06-08  Bruno Haible  <bruno@clisp.org>
43193
43194         Add support for HP-UX ACLs.
43195         * lib/acl-internal.h (acl_nontrivial): New declaration.
43196         * lib/file-has-acl.c (acl_nontrivial): New function.
43197         (file_has_acl): Add implementation using HP-UX 11 ACL API.
43198         * lib/set-mode-acl.c (qset_acl): Likewise.
43199         * lib/copy-acl.c (qcopy_acl): Likewise.
43200
43201 2008-06-08  Bruno Haible  <bruno@clisp.org>
43202
43203         Add support for Cygwin ACLs.
43204         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
43205         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
43206         the chmod_or_fchmod call.
43207         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
43208
43209 2008-06-08  Bruno Haible  <bruno@clisp.org>
43210
43211         Fix bug with setuid modes in Solaris 10+ code.
43212         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
43213         succeeded, when the mode contains some special bits.
43214
43215 2008-06-08  Bruno Haible  <bruno@clisp.org>
43216
43217         Add support for Solaris 7..10 ACLs.
43218         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
43219         declarations.
43220         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
43221         functions.
43222         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
43223         * lib/set-mode-acl.c (qset_acl): Likewise.
43224         * lib/copy-acl.c (qcopy_acl): Likewise.
43225
43226 2008-06-08  Bruno Haible  <bruno@clisp.org>
43227
43228         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
43229         declaration.
43230         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
43231         (acl_access_nontrivial): Remove MacOS X case.
43232         (file_has_acl): Use acl_extended_nontrivial.
43233         * lib/copy-acl.c (qcopy_acl): Likewise.
43234
43235 2008-06-08  Bruno Haible  <bruno@clisp.org>
43236
43237         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
43238
43239 2008-06-08  Jim Meyering  <meyering@redhat.com>
43240
43241         * modules/acl (Maintainer): Add Bruno Haible.
43242
43243 2008-06-07  Bruno Haible  <bruno@clisp.org>
43244
43245         Improve support for Tru64 ACLs.
43246         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
43247         ACL on OSF/1.
43248
43249 2008-06-07  Bruno Haible  <bruno@clisp.org>
43250
43251         Add support for MacOS X ACLs.
43252         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43253         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43254         * lib/set-mode-acl.c (qset_acl): Likewise.
43255         * lib/copy-acl.c (qcopy_acl): Likewise.
43256
43257 2008-06-07  Bruno Haible  <bruno@clisp.org>
43258
43259         Fix memory leak introduced on 2008-05-22.
43260         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43261         use.
43262
43263 2008-06-07  Bruno Haible  <bruno@clisp.org>
43264
43265         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43266         to construct an empty ACL.
43267
43268 2008-06-07  Bruno Haible  <bruno@clisp.org>
43269
43270         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43271         precisely.
43272         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43273
43274 2008-06-07  Bruno Haible  <bruno@clisp.org>
43275
43276         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43277         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43278
43279 2008-06-07  Bruno Haible  <bruno@clisp.org>
43280
43281         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43282         regardless of POSIX.
43283         * doc/posix-functions/_longjmp.texi: Likewise.
43284         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43285         SystemV platform in this case.
43286
43287 2008-06-06  Eric Blake  <ebb9@byu.net>
43288
43289         Document abort() bugs.
43290         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43291
43292         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43293         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43294         sigsetjmp.
43295         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43296         siglongjmp, but only as a macro.
43297         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43298         is obsolete.
43299         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43300
43301         Tweak documentation to cover cygwin argz bugs.
43302         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43303         argz bug fix; no code change needed since no cygwin releases
43304         occurred between the last fix and the bug being tested.
43305         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43306         module and recently fixed cygwin bugs.
43307         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43308         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43309         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43310         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43311         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43312         Likewise.
43313         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43314         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43315         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43316         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43317         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43318         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43319         Likewise.
43320
43321         Avoid gcc warning on cygwin.
43322         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43323         !ACL_NO_TRIVIAL]: Avoid unused variable.
43324
43325 2008-06-05  Eric Blake  <ebb9@byu.net>
43326
43327         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43328         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43329         git-version-gen fails to come up with a version.
43330         Reported by Simon Josefsson.
43331
43332 2008-06-05  Jim Meyering  <meyering@redhat.com>
43333             Paul Eggert  <eggert@cs.ucla.edu>
43334
43335         utimens.c: work around a probable Linux kernel bug
43336         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43337         appears to be a kernel bug that causes utimensat to return 280
43338         instead of 0, indicating success.
43339
43340 2008-06-04  Bruno Haible  <bruno@clisp.org>
43341
43342         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43343         2008-06-01 commit.
43344
43345 2008-06-04  Bruno Haible  <bruno@clisp.org>
43346
43347         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43348         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43349         (file_has_acl): Use it. Save errno afterwards.
43350         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43351
43352 2008-06-03  Bruno Haible  <bruno@clisp.org>
43353
43354         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43355         draft code. Simplify #ifs.
43356         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43357         Put Solaris code after POSIX-draft code. Fix comments regarding
43358         Solaris 10, HP-UX. Mention Cygwin.
43359         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43360
43361 2008-06-03  Eric Blake  <ebb9@byu.net>
43362
43363         Provide fallback for older kernels.
43364         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43365         Provide runtime fallback if kernel lacks support.
43366         Reported by Mike Frysinger.
43367
43368 2008-06-02  Bruno Haible  <bruno@clisp.org>
43369
43370         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43371         it exists.
43372
43373 2008-06-02  Bruno Haible  <bruno@clisp.org>
43374
43375         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43376         * lib/copy-acl.c (qcopy_acl): Update comment.
43377
43378 2008-06-02  Bruno Haible  <bruno@clisp.org>
43379
43380         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43381         like ACL APIs.
43382
43383 2008-06-02  Bruno Haible  <bruno@clisp.org>
43384
43385         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43386         * tests/test-set-mode-acl.sh: Likewise.
43387         * tests/test-copy-acl.sh: Likewise.
43388         * tests/test-copy-file.sh: Likewise.
43389
43390 2008-06-02  Bruno Haible  <bruno@clisp.org>
43391
43392         * tests/test-file-has-acl.sh: Remove unused code.
43393
43394 2008-06-01  Bruno Haible  <bruno@clisp.org>
43395
43396         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43397         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43398         messages.
43399         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43400
43401 2008-06-01  Bruno Haible  <bruno@clisp.org>
43402
43403         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43404         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43405         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43406         APIs.
43407         * modules/acl-tests (configure.ac): Remove tests now contained in
43408         m4/acl.m4.
43409
43410 2008-06-02  Jim Meyering  <meyering@redhat.com>
43411
43412         announce-gen: use a better key-server host name
43413         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43414         it may be more consistently reliable.  Suggested by Werner Koch
43415         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43416
43417 2008-06-01  Bruno Haible  <bruno@clisp.org>
43418
43419         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43420         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43421
43422 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43423
43424         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43425
43426 2008-06-01  Bruno Haible  <bruno@clisp.org>
43427
43428         New ACL tests.
43429         * tests/test-file-has-acl.sh: New file.
43430         * tests/test-file-has-acl.c: New file.
43431         * tests/test-set-mode-acl.sh: New file.
43432         * tests/test-set-mode-acl.c: New file.
43433         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43434         * tests/test-copy-acl.c: New file.
43435         * modules/acl-tests: New file, based on modules/copy-file-tests.
43436         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43437         (Depends-on): Add acl-tests.
43438         (configure.ac): Remove checks.
43439         (Makefile.am): Don't create test-sameacls program here any more.
43440
43441 2008-06-01  Bruno Haible  <bruno@clisp.org>
43442
43443         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43444         * tests/test-sameacls.c: Include progname.h.
43445         (main): Invoke set_program_name. Portability fixes for MacOS X,
43446         Solaris, HP-UX.
43447
43448 2008-06-01  Bruno Haible  <bruno@clisp.org>
43449
43450         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43451         function.
43452         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43453
43454 2008-06-01  Bruno Haible  <bruno@clisp.org>
43455
43456         * modules/rpmatch (Depends-on): Add strdup.
43457
43458 2008-06-01  Bruno Haible  <bruno@clisp.org>
43459
43460         * lib/pipe.c: Include unistd-safer.h.
43461         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43462         * modules/pipe (Depends-on): Add unistd-safer.
43463
43464 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43465
43466         * modules/autobuild (configure.ac): Call AB_INIT.
43467
43468 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43469
43470         * tests/test-getaddrinfo.c: Don't print debug messages by default.
43471         Suggested by Bruno Haible <bruno@clisp.org>.
43472
43473 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43474
43475         * tests/test-base64.c: Cast size_t to unsigned long when invoking
43476         printf.  Use %lu instead of %d.  Reported by Bruno Haible
43477         <bruno@clisp.org>.
43478
43479 2008-05-29  Eric Blake  <ebb9@byu.net>
43480
43481         Prefer new POSIX 200x interfaces over futimesat.
43482         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
43483         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
43484         when available.
43485         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
43486
43487 2008-05-28  Bruno Haible  <bruno@clisp.org>
43488
43489         * modules/stpcpy (License): Change to LGPLv2+.
43490         Requested by David Lutterkort <dlutter@redhat.com>.
43491
43492 2008-05-27  Bruno Haible  <bruno@clisp.org>
43493
43494         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
43495         current mingw.
43496         Reported by Jose E. Marchesi <jemarch@gnu.org>.
43497
43498 2008-05-27  Bruno Haible  <bruno@clisp.org>
43499
43500         * modules/iconv_open (Link): New section, from module 'iconv'.
43501         * modules/striconv (Link): Likewise.
43502         * modules/striconveh (Link): Likewise.
43503         * modules/xstriconv (Link): Likewise.
43504         * modules/unicodeio (Link): Likewise.
43505         * modules/propername (Link): Likewise.
43506         Reported by Jim Meyering.
43507
43508 2008-05-26  Jim Meyering  <meyering@redhat.com>
43509
43510         sha256: do not artificially restrict buffer length to be < 2^32
43511         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
43512         uint32_t to size_t.
43513         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
43514         to match.
43515
43516         avoid unaligned access errors, e.g., on sparc
43517         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
43518         direct access through a possibly-unaligned uint64* pointer.
43519         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
43520         direct access through a possibly-unaligned uint32* pointer.
43521         Prompted by this patch from Tom "spot" Callaway:
43522         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
43523
43524         sha512.c: fix typo in comment
43525         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
43526
43527 2008-05-25  Bruno Haible  <bruno@clisp.org>
43528
43529         * lib/set-mode-acl.c: Renamed from lib/acl.c.
43530         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
43531         (Makefile.am): Update lib_SOURCES.
43532
43533 2008-05-25  Bruno Haible  <bruno@clisp.org>
43534
43535         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
43536
43537 2008-05-25  Jim Meyering  <meyering@redhat.com>
43538
43539         useless-if-before-free: freed expr may have white-space differences
43540         * build-aux/useless-if-before-free: Recognize cases in which the
43541         freed expression differs from the tested one in embedded white
43542         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
43543         $1 was used, so we can't make any regexp shy.  Improved tests now
43544         detect this.
43545
43546         useless-if-before-free: accept white space in the expression.
43547         * build-aux/useless-if-before-free: For now, any white space
43548         in the expression must be identical in the free argument.
43549
43550         useless-if-before-free: efficiency tweak
43551         * build-aux/useless-if-before-free: Make the expression-matching
43552         regexp "shy".
43553         Make the *outer* regexp shy, not the expr-matching one.
43554
43555         update code-in-comment to accept cast of free arg
43556         * build-aux/useless-if-before-free: Update regexp.
43557
43558 2008-05-25  Bruno Haible  <bruno@clisp.org>
43559
43560         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
43561         * modules/copy-file-tests (Files, Makefile.am): Update.
43562         * tests/test-copy-file.c (func_test_copy): Update.
43563
43564 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43565
43566         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43567
43568 2008-05-23  Bruno Haible  <bruno@clisp.org>
43569
43570         Improve support for ACLs on OSF/1.
43571         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43572         Remove fallback for unknown flavors of ACLs.
43573
43574 2008-05-22  Bruno Haible  <bruno@clisp.org>
43575
43576         Add support for ACLs on OSF/1.
43577         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43578         replacements.
43579         (acl_free_text): New macro fallback.
43580         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43581         acl_free.
43582         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43583         acl_free_text function. Require AC_C_INLINE.
43584
43585 2008-05-22  Bruno Haible  <bruno@clisp.org>
43586
43587         Make copy_acl work on MacOS X 10.5.
43588         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43589         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43590         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43591         If MODE_INSIDE_ACL, don't assume that every system has the same text
43592         representation for ACLs as FreeBSD.
43593         * lib/copy-acl.c (copy_acl): Add support for platforms with
43594         !MODE_INSIDE_ACL.
43595         * lib/file-has-acl.c (file_has_acl): Likewise.
43596         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43597         FreeBSD, MacOS X, or IRIX, respectively.
43598
43599 2008-05-22  Bruno Haible  <bruno@clisp.org>
43600
43601         * lib/acl.h: Don't include <sys/acl.h>.
43602         (GETACLCNT): Move fallback to lib/acl-internal.h.
43603         * lib/acl-internal.h: Include <sys/acl.h> here.
43604         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43605
43606 2008-05-22  Bruno Haible  <bruno@clisp.org>
43607
43608         Split off copy_acl function to separate file.
43609         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43610         * lib/acl.c (copy_acl): Moved function to separate file.
43611         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43612         * modules/acl (Files): Add lib/copy-acl.c.
43613         (Makefiles.am): Augment lib_SOURCES.
43614
43615 2008-05-22  Bruno Haible  <bruno@clisp.org>
43616
43617         * modules/copy-file-tests: New file.
43618         * tests/test-copy-file.sh: New file.
43619         * tests/test-copy-file.c: New file.
43620         * tests/test-copy-file-sameacls.c: New file.
43621
43622 2008-05-22  Eric Blake  <ebb9@byu.net>
43623
43624         Avoid gcc warning.
43625         * tests/test-memcmp.c (main): Pass NULL indirectly.
43626
43627 2008-05-21  Bruno Haible  <bruno@clisp.org>
43628
43629         Add reference doc about ACLs.
43630         * doc/acl-resources.txt: New file.
43631         * doc/acl-cygwin.txt: New file.
43632
43633 2008-05-21  Bruno Haible  <bruno@clisp.org>
43634
43635         Avoid one more warning from gcc.
43636         * lib/vasnprintf.c (IF_LINT): Update comments.
43637         (VASNPRINTF): Use it also for the 'prefix' array initializer.
43638
43639 2008-05-21  Jim Meyering  <meyering@redhat.com>
43640
43641         avoid a warning from gcc
43642         * lib/vasnprintf.c (IF_LINT): Define.
43643         (scale10_round_decimal_long_double):
43644         Use it to avoid a "may be used uninitialized" warning.
43645         (scale10_round_decimal_double): Likewise.
43646
43647 2008-05-21  Simon Josefsson  <simon@josefsson.org>
43648
43649         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
43650         declared.
43651
43652 2008-05-20  Bruno Haible  <bruno@clisp.org>
43653
43654         * tests/test-memcmp.c (main): Test also the sign of the result. Test
43655         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
43656
43657 2008-05-20  Simon Josefsson  <simon@josefsson.org>
43658
43659         * modules/memcmp-tests: New file.
43660         * tests/test-memcmp.c: New file.
43661
43662 2008-05-19  Bruno Haible  <bruno@clisp.org>
43663
43664         * modules/propername (Notice, configure.ac): Put quoted "..." into
43665         --keyword option.
43666         * lib/propername.h: Update comments accordingly.
43667         Reported by Eric Blake.
43668
43669 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
43670
43671         * modules/getpass-gnu (Depends-on): Add fseeko.
43672
43673 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43674
43675         * modules/base64-tests: New file.
43676
43677 2008-05-19  Bo Borgerson <gigabo@gmail.com>
43678
43679         * lib/base64.c (base64_decode_ctx): If a decode context structure
43680         was passed in use it to ignore newlines.  If a context structure
43681         was _not_ passed in, continue to treat newlines as garbage (this
43682         is the historical behavior).  Formerly base64_decode.
43683         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43684         takes a decode context structure.
43685         * lib/base64.h (base64_decode): Macro for four-argument calls.
43686         (base64_decode_alloc): Likewise.
43687         * lib/base64.c (base64_decode_ctx): If a decode context structure
43688         was passed in use it to ignore newlines.  If a context structure
43689         was _not_ passed in, continue to treat newlines as garbage (this
43690         is the historical behavior).  Formerly base64_decode.
43691         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43692         takes a decode context structure.
43693         * lib/base64.h (base64_decode): Macro for four-argument calls.
43694         (base64_decode_alloc): Likewise.
43695
43696 2008-05-19  Jim Meyering  <meyering@redhat.com>
43697
43698         avoid a warning from gcc
43699         * lib/trim.c (IF_LINT): Define.
43700         (trim2): Use it to avoid a "may be used uninitialized" warning.
43701
43702         Fix doc typo.
43703         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
43704
43705 2008-05-19  Bruno Haible  <bruno@clisp.org>
43706
43707         * doc/glibc-functions/getpass.texi: Document limits of other
43708         implementations.
43709
43710 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43711             Bruno Haible <bruno@clisp.org>
43712
43713         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
43714
43715 2008-05-18  Bruno Haible  <bruno@clisp.org>
43716
43717         * modules/propername: New file, from GNU gettext.
43718         * lib/propername.h: New file, from GNU gettext.
43719         * lib/propername.c: New file, from GNU gettext.
43720         * MODULES.html.sh (Internationalization functions): Add propername.
43721
43722 2008-05-16  Jim Meyering  <meyering@redhat.com>
43723             Bruno Haible  <bruno@clisp.org>
43724
43725         Avoid some warnings from "gcc -Wshadow".
43726         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
43727
43728 2008-05-15  Eric Blake  <ebb9@byu.net>
43729
43730         Extend previous patch to cygwin 1.7.0.
43731         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
43732         fast implementation in cygwin >= 1.7.0.
43733         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43734         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43735
43736 2008-05-15  Bruno Haible  <bruno@clisp.org>
43737
43738         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
43739         implementation in glibc >= 2.9.
43740         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43741         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43742
43743 2008-05-15  Bruno Haible  <bruno@clisp.org>
43744
43745         * MODULES.html.sh (Internationalization functions): Remove linebreak.
43746         (Unicode string functions): Add unilbrk/*.
43747         Reported by Karl Berry.
43748
43749 2008-05-15  Eric Blake  <ebb9@byu.net>
43750
43751         Fix violation of <stdbool.h> replacement in regex.
43752         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
43753         * lib/regexec.c (re_search_internal): Likewise.
43754         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
43755
43756 2008-05-15  Jim Meyering  <meyering@redhat.com>
43757
43758         avoid distracting test output when git or cvs is not found
43759         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
43760         * tests/test-vc-list-files-git.sh: Likewise.
43761
43762 2008-05-15  Eric Blake  <ebb9@byu.net>
43763
43764         Glibc finally accepted the memmem speedup code, bugzilla #5514.
43765         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
43766         glibc version.
43767         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43768         * doc/posix-functions/strstr.texi (strstr): Likewise.
43769         * lib/str-two-way.h (MAX): Sychronize with glibc.
43770
43771 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
43772
43773         * lib/regcomp.c (optimize_utf8): Add a note on why we test
43774         opr.ctx_type.
43775         (calc_first): Initialize constraint field.
43776         (duplicate_node_closure): Use it instead of special casing ANCHORS.
43777         Fix grammar.
43778         (duplicate_node): Merge constraint field for all node types.
43779         (calc_eclosure_iter): Look at constraint field for all node types.
43780         * lib/regex_internal.c (create_cd_newstate): Don't look at
43781         opr.ctx_type.
43782
43783 2008-05-14  Bruno Haible  <bruno@clisp.org>
43784
43785         Help GCC to do better code generation.
43786         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
43787         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43788         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
43789         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
43790         Declare with attribute 'malloc' if supported.
43791
43792 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
43793
43794         use "echo STR|wc -c" rather than unportable "expr length STR"
43795         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
43796         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
43797
43798 2008-05-14  Jim Meyering  <meyering@redhat.com>
43799
43800         use dd ibs=$n count=1 ... rather than less-portable head -c$n
43801         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
43802         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
43803         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
43804         via Collin Lasse.
43805
43806 2008-05-14  Eric Blake  <ebb9@byu.net>
43807
43808         Avoid quadratic growth in gl_LIBSOURCES.
43809         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
43810         Suggested by Bruno Haible.
43811
43812         Test xmemdup0.
43813         * modules/xmemdup0-tests: New file.
43814         * tests/test-xmemdup0.c: Likewise.
43815
43816 2008-05-13  Eric Blake  <ebb9@byu.net>
43817
43818         Split xmemdup0 into its own module.
43819         * modules/xmemdup0: New file.
43820         * lib/xmemdup0.h: Likewise.
43821         * lib/xmemdup0.c: Likewise.
43822         * MODULES.html.sh (Memory management functions): Add xmemdup0.
43823         * lib/xalloc.h (xmemdup0): Remove.
43824         * lib/xmalloc.c (xmemdup0): Likewise.
43825
43826 2008-05-13  Eric Blake  <ebb9@byu.net>
43827             Bruno Haible  <bruno@clisp.org>
43828
43829         Reduce number of forks required during autoconf.
43830         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
43831         and gl_LIBSOURCES_DIR.
43832         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
43833         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
43834         m4_syscmd per file.
43835         <m4_foreach_w>: Move...
43836         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
43837
43838 2008-05-13  Eric Blake  <ebb9@byu.net>
43839
43840         * gnulib-tool: Fix various comment typos.
43841
43842 2008-05-12  Bruno Haible  <bruno@clisp.org>
43843
43844         Tailor the linebreaking algorithm.
43845         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
43846
43847 2008-05-12  Bruno Haible  <bruno@clisp.org>
43848
43849         Update to Unicode 5.0.0.
43850         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43851         LBP_JV, LBP_JT. Redistribute values.
43852         (unilbrk_table): Change size.
43853         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
43854         Unicode TR#14 rev. 22.
43855         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43856         LBP_JV, LBP_JT. Redistribute values.
43857         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
43858         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
43859         Update.
43860         * lib/unilbrk/lbrkprop1.h: Regenerated.
43861         * lib/unilbrk/lbrkprop2.h: Regenerated.
43862         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
43863         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
43864         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
43865         Likewise.
43866         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
43867         Likewise.
43868         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
43869         result.
43870         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43871         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43872         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
43873         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
43874         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
43875         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
43876
43877 2008-05-11  Bruno Haible  <bruno@clisp.org>
43878
43879         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
43880
43881 2008-05-11  Bruno Haible  <bruno@clisp.org>
43882
43883         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
43884         * modules/unilbrk/gen-lbrk: New file.
43885
43886 2008-05-11  Bruno Haible  <bruno@clisp.org>
43887
43888         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
43889         * m4/sha512.m4 (gl_SHA512): Likewise.
43890
43891 2008-05-11  Jim Meyering  <meyering@redhat.com>
43892
43893         New modules: crypto/sha256, crypto/sha512 (from coreutils)
43894         * modules/crypto/sha256: New file.
43895         * modules/crypto/sha512: Likewise.
43896         * lib/sha256.c: Likewise.
43897         * lib/sha256.h: Likewise.
43898         * lib/sha512.c: Likewise.
43899         * lib/sha512.h: Likewise.
43900         * lib/u64.h: Likewise.
43901         * m4/sha256.m4: Likewise.
43902         * m4/sha512.m4: Likewise.
43903         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
43904
43905 2008-05-10  Bruno Haible  <bruno@clisp.org>
43906
43907         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
43908         (Input/Output <stdio.h>): Add xprintf.
43909         (Signal handling <signal.h>): Add strsignal.
43910         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
43911         (Core language properties): Add func.
43912         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
43913         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
43914         strings.
43915         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
43916         (Input/output): New section.
43917         (File system functions): Add openat-die, stat-macros.
43918         (Networking functions): Add sockets.
43919         (Unicode string functions): Add unictype/*.
43920         (Support for building libraries and executables): Add gperf.
43921         (Support for building documentation): Add agpl-3.0.
43922         (Misc): Add nocrash.
43923
43924 2008-05-10  Bruno Haible  <bruno@clisp.org>
43925
43926         * modules/unictype/gen-ctype: New file.
43927
43928 2008-05-10  Jim Meyering  <meyering@redhat.com>
43929
43930         Make chdir-safer.c more efficient on a system with no symlinks.
43931         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
43932         also if ELOOP is zero.  Suggested by Bruno Haible.
43933
43934         Make chdir-safer.c slightly safer.
43935         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
43936         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
43937
43938         Avoid compile failure on systems without ELOOP (like mingw).
43939         * lib/chdir-safer.c (ELOOP): Define if not already defined.
43940         Reported by Bruno Haible.
43941
43942 2008-05-10  Bruno Haible  <bruno@clisp.org>
43943
43944         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
43945         (is_utf8_encoding): Use a case-insensitive comparison.
43946         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
43947         streq.
43948
43949 2008-05-10  Bruno Haible  <bruno@clisp.org>
43950
43951         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
43952         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
43953         * lib/unilbrk/ulc-common.h (iconv_string_length,
43954         iconv_string_keeping_offsets): Remove declarations.
43955         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
43956         Don't include <iconv.h>, streq.h, xsize.h.
43957         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
43958         conversion.
43959         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
43960         <iconv.h>, streq.h, xsize.h.
43961         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
43962         conversion.
43963         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
43964         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
43965         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
43966         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
43967
43968 2008-05-10  Bruno Haible  <bruno@clisp.org>
43969
43970         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
43971         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
43972
43973         * modules/unilbrk/u32-width-linebreaks-tests: New file.
43974         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
43975
43976         * modules/unilbrk/u16-width-linebreaks-tests: New file.
43977         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
43978
43979         * modules/unilbrk/u8-width-linebreaks-tests: New file.
43980         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
43981
43982         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
43983         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
43984
43985         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
43986         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
43987
43988         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
43989         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
43990
43991         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
43992         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
43993
43994 2008-05-10  Bruno Haible  <bruno@clisp.org>
43995
43996         Split up 'linebreak' module.
43997         * lib/unilbrk.h: New file, based on lib/linebreak.h.
43998         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
43999         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
44000         modifications.
44001         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
44002         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
44003         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
44004         lib/linebreak.c.
44005         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
44006         lib/linebreak.c.
44007         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
44008         lib/linebreak.c.
44009         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
44010         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
44011         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
44012         lib/linebreak.c.
44013         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
44014         lib/linebreak.c.
44015         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
44016         lib/linebreak.c.
44017         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
44018         lib/linebreak.c.
44019         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
44020         lib/linebreak.c.
44021         * modules/unilbrk/base: New file.
44022         * modules/unilbrk/tables: New file.
44023         * modules/unilbrk/u8-possible-linebreaks: New file.
44024         * modules/unilbrk/u16-possible-linebreaks: New file.
44025         * modules/unilbrk/u32-possible-linebreaks: New file.
44026         * modules/unilbrk/ulc-common: New file.
44027         * modules/unilbrk/ulc-possible-linebreaks: New file.
44028         * modules/unilbrk/u8-width-linebreaks: New file.
44029         * modules/unilbrk/u16-width-linebreaks: New file.
44030         * modules/unilbrk/u32-width-linebreaks: New file.
44031         * modules/unilbrk/ulc-width-linebreaks: New file.
44032         * lib/linebreak.h: Remove file.
44033         * lib/linebreak.c: Remove file.
44034         * m4/linebreak.m4: Remove file.
44035         * modules/linebreak: Remove file.
44036         * NEWS: Mention the changes.
44037
44038 2008-05-09  Eric Blake  <ebb9@byu.net>
44039
44040         Add xmemdup0.
44041         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
44042         implementation.
44043         * lib/xmalloc.c (xmemdup0): New C implementation.
44044
44045 2008-05-08  Bruno Haible  <bruno@clisp.org>
44046
44047         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
44048
44049 2008-05-07  Eric Blake  <ebb9@byu.net>
44050
44051         Support cross-compilation of <wctype.h>.
44052         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
44053         AC_CACHE_CHECK.
44054
44055 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
44056
44057         * build-aux/vc-list-files: Add support for bzr.
44058
44059 2008-05-03  Jim Meyering  <meyering@redhat.com>
44060
44061         avoid failed assertion with tight malloc
44062         * tests/test-getndelim2.c: Correct an off-by-one assertion.
44063
44064 2008-05-03  Simon Josefsson  <simon@josefsson.org>
44065
44066         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
44067         are needed from arpa/inet.h.
44068         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
44069         Reported by Bruno Haible.
44070
44071 2008-05-02  Jim Meyering  <meyering@redhat.com>
44072
44073         avoid compilation error on FreeBSD 6
44074         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
44075
44076 2008-05-01  Jim Meyering  <meyering@redhat.com>
44077
44078         useless-if-before-free: correct --help's exit status description
44079         * build-aux/useless-if-before-free (usage): Like grep, exit 0
44080         for one or more matches, etc.  Reported by Bruno Haible.
44081
44082         vc-list-files: make the stand-alone gnulib test work
44083         * modules/vc-list-files-tests (configure.ac):
44084         Define and AC_SUBST abs_aux_dir.
44085         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
44086         $(abs_top_srcdir) to each script and having each of them
44087         duplicate the work of setting PATH, set PATH here, using
44088         the new variable, abs_aux_dir instead.
44089         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
44090         * tests/test-vc-list-files-git.sh: Likewise.
44091         Reported by Bruno Haible.
44092
44093 2008-05-01  Bruno Haible  <bruno@clisp.org>
44094
44095         * lib/getndelim2.c (getndelim2): Fix newsize computation during
44096         reallocation. Rename 'done' to 'found_delimiter'.
44097
44098 2008-05-01  Jim Meyering  <meyering@redhat.com>
44099
44100         vc-list-files: accommodate /bin/sh like the one from Solaris 10
44101         * build-aux/vc-list-files: Use `...`, not $(...).
44102
44103 2008-04-30  Jim Meyering  <meyering@redhat.com>
44104
44105         add tests for vc-list-files
44106         * modules/vc-list-files-tests: New module.
44107         * tests/test-vc-list-files-cvs.sh: New file.
44108         * tests/test-vc-list-files-git.sh: New file.
44109
44110         avoid a warning from gcc
44111         * lib/getndelim2.c (IF_LINT): Define.
44112         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
44113
44114         vc-list-files: work properly with build-aux/cvsu, too
44115         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
44116         to all cvs-based clauses.
44117
44118         vc-list-files: work properly in the CVS+awk case, too
44119         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
44120
44121         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
44122         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
44123         take more than one file argument, so .  Add quotes, just in case $dir
44124         ever contains a shell meta-character.  Prompted by Soren Hansen in
44125         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
44126
44127 2008-04-29  Eric Blake  <ebb9@byu.net>
44128
44129         Optimize getndelim2 to use block operations when possible.
44130         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
44131         freadseek, and memchr2.
44132         * lib/getndelim2.c (getndelim2): Use them for block reads.
44133
44134 2008-04-29  Bruno Haible  <bruno@clisp.org>
44135
44136         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
44137         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44138         * modules/inet_ntop (Depends-on): Add extensions.
44139         * modules/inet_pton (Depends-on): Likewise.
44140         Reported by Simon Josefsson.
44141
44142 2008-04-29  Jim Meyering  <meyering@redhat.com>
44143
44144         When the is more than one match in a block, match all of them.
44145         * build-aux/useless-if-before-free: Iterate through each block
44146         until there are no more matches.
44147
44148         Fix broken useless-if-before-free script.
44149         * build-aux/useless-if-before-free: Fix typo: missing "?" after
44150         the expression to match cast of argument to free-like function.
44151
44152 2008-04-29  Eric Blake  <ebb9@byu.net>
44153
44154         Use new header.
44155         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
44156
44157 2008-04-29  Jim Meyering  <meyering@redhat.com>
44158
44159         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
44160         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
44161         by gnulib to exist and to declare e.g., inet_ntop.
44162         Don't include "inet_ntop.h", now removed.
44163
44164         * m4/arpa_inet_h.m4: Remove trailing blanks.
44165
44166 2008-04-29  Eric Blake  <ebb9@byu.net>
44167
44168         Silence valgrind on safe reads beyond potential array bounds.
44169         * lib/rawmemchr.valgrind: New file.
44170         * lib/strchrnul.valgrind: Likewise.
44171         * modules/rawmemchr (Files): Distribute new file.
44172         * modules/strchrnul (Files): Likewise.
44173         Suggested by Bruno Haible.
44174
44175 2008-04-29  Bruno Haible  <bruno@clisp.org>
44176
44177         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
44178         (inet_ntop, inet_pton): Change portability warning's wording.
44179         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
44180         Invoke gl_CHECK_NEXT_HEADERS.
44181         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
44182         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
44183         set ARPA_INET_H.
44184         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44185         * modules/arpa_inet (Description): No longer only for systems that
44186         lack it.
44187         (Depends-on): Add include_next.
44188         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
44189         HAVE_ARPA_INET_H.
44190
44191 2008-04-29  Jim Meyering  <meyering@redhat.com>
44192
44193         * modules/mkdir (License): Re-license as LGPLv2+.
44194
44195 2008-04-29  Bruno Haible  <bruno@clisp.org>
44196
44197         * modules/rawmemchr (Maintainer): Set to Eric.
44198         * modules/strchrnul (Maintainer): Likewise.
44199
44200 2008-04-29  Simon Josefsson  <simon@josefsson.org>
44201
44202         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
44203         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
44204
44205         * modules/arpa_inet (arpa/inet.h): Use them.
44206
44207 2008-04-28  Eric Blake  <ebb9@byu.net>
44208
44209         Test getndelim2.
44210         * modules/getndelim2-tests: New file.
44211         * tests/test-getndelim2.c: Likewise.
44212         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
44213         stream.
44214         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
44215
44216         * MODULES.html.sh: Document new module.
44217
44218 2008-04-20  Bruno Haible  <bruno@clisp.org>
44219
44220         * lib/c-stack.c (die): Use raise.
44221         * modules/c-stack (Depends-on): Add raise.
44222
44223 2008-04-28  Bruno Haible  <bruno@clisp.org>
44224
44225         Expect rpmatch to be declared.
44226         * lib/yesno.c (rpmatch): Remove declaration.
44227
44228         Declare rpmatch.
44229         * lib/stdlib.in.h (rpmatch): New declaration.
44230         * lib/rpmatch.c: Include <stdlib.h> first.
44231         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
44232         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
44233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
44234         HAVE_RPMATCH.
44235         * modules/rpmatch (Depends-on): Add stdlib, extensions.
44236         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44237         (Include): Set to <stdlib.h>.
44238         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
44239         HAVE_RPMATCH.
44240         * NEWS: Document the change.
44241
44242 2008-04-28  Bruno Haible  <bruno@clisp.org>
44243
44244         Change rpmatch to use nl_langinfo when appropriate.
44245         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
44246         (N_): New macro.
44247         (localized_pattern): New function/macro.
44248         (try): Remove match, nomatch arguments. Copy the pattern into safe
44249         memory before caching it.
44250         (rpmatch): Use localized_pattern. Add translator comments.
44251         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
44252         Suggested by Eric Blake.
44253         * modules/rpmatch (Depends-on): Add stdbool.
44254
44255 2008-04-28  Eric Blake  <ebb9@byu.net>
44256
44257         Add rawmemchr module, matching glibc.
44258         * modules/string (Makefile.am): New indicator.
44259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44260         * lib/string.in.h (rawmemchr): Declare when appropriate.
44261         * modules/rawmemchr: New file.
44262         * m4/rawmemchr.m4: Likewise.
44263         * lib/rawmemchr.c: Likewise.
44264         * modules/rawmemchr-tests: Likewise.
44265         * tests/test-rawmemchr.c: Likewise.
44266         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44267         module.
44268         * modules/strchrnul (Depends-on): Add rawmemchr.
44269         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44270
44271         Whitespace cleanup.
44272         * tests/test-strchrnul.c: Reindent.
44273         * lib/strchrnul.c: Likewise.
44274
44275         Optimize and test strchrnul.
44276         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44277         * modules/strchrnul-tests: New file.
44278         * tests/test-strchrnul.c: Likewise.
44279
44280         Remove intprops dependency.
44281         * modules/memchr (Depends-on): Remove intprops.
44282         * modules/memrchr (Depends-on): Likewise.
44283         * modules/memchr2 (Depends-on): Likewise.
44284         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44285         * lib/memrchr.c (__memrchr): Likewise.
44286         * lib/memrchr2.c (memchr2): Likewise.
44287         Reported by Simon Josefsson.
44288
44289 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44290
44291         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44292         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44293
44294 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44295
44296         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44297
44298         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44299
44300         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44301
44302         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44303         declarations.
44304         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44305
44306         * m4/inet_pton.m4: Don't check for header files.
44307
44308         * m4/inet_ntop.m4: Don't check for header files.
44309
44310 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44311
44312         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44313         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44314         trigger for cygwin).
44315         Reported by Bruno Haible  <bruno@clisp.org>.
44316
44317 2008-04-28  Bruno Haible  <bruno@clisp.org>
44318
44319         * doc/posix-functions/strdup.texi: Mention mingw problem.
44320
44321 2008-04-27  Bruno Haible  <bruno@clisp.org>
44322
44323         * modules/stat-time-tests (Depends-on): Add sleep.
44324         * tests/test-stat-time.c (force_unlink): New function.
44325         (cleanup): Use it.
44326         (test_mtime): Remove the ctime related tests.
44327         (test_ctime): New function, containing the ctime related tests.
44328         (main): Call test_ctime, except on native Windows platforms.
44329
44330 2008-04-27  Bruno Haible  <bruno@clisp.org>
44331
44332         * lib/rpmatch.c (rpmatch): Add some comments.
44333         Reported by James Youngman <jay@gnu.org>.
44334
44335 2008-04-27  Bruno Haible  <bruno@clisp.org>
44336
44337         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44338         quiet NaNs.
44339
44340 2008-04-27  Bruno Haible  <bruno@clisp.org>
44341
44342         Make test-yesno.sh work on mingw.
44343         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44344         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44345         (main): Set stdin to binary mode.
44346         * modules/yesno-tests (Depends-on): Add binary-io.
44347
44348 2008-04-27  Bruno Haible  <bruno@clisp.org>
44349
44350         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44351         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44352         argument that lie outside the IEEE 854 domain.
44353         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44354         (gl_ISFINITE): Use it.
44355         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44356
44357 2008-04-27  Bruno Haible  <bruno@clisp.org>
44358
44359         Allow local renaming in config.h.
44360         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44361
44362 2008-04-27  Bruno Haible  <bruno@clisp.org>
44363
44364         * lib/memchr.c (__memchr): Change type of 'i'.
44365         * lib/memchr2.c (memchr2): Likewise.
44366
44367 2008-04-26  Eric Blake  <ebb9@byu.net>
44368         and Bruno Haible  <bruno@clisp.org>
44369
44370         Optimize and test memrchr.
44371         * modules/memrchr (Depends-on): Add intprops.
44372         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44373         * modules/memrchr-tests: New file.
44374         * tests/test-memrchr.c: New file.
44375
44376 2008-04-26  Bruno Haible  <bruno@clisp.org>
44377
44378         Add tentative support for DragonFly BSD.
44379         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44380         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44381         fp.
44382         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44383         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44384         * lib/fpurge.c (fpurge): Likewise.
44385         * lib/freadable.c (freaadable): Likewise.
44386         * lib/freadahead.c (freadahead): Likewise.
44387         * lib/freading.c (freading): Likewise.
44388         * lib/freadptr.c (freadptr): Likewise.
44389         * lib/freadseek.c (freadptrinc): Likewise.
44390         * lib/fseeko.c (fseeko): Likewise.
44391         * lib/fseterr.c (fseterr): Likewise.
44392         * lib/fwritable.c (fwritable): Likewise.
44393         * lib/fwriting.c (fwriting): Likewise.
44394
44395 2008-04-26  Bruno Haible  <bruno@clisp.org>
44396
44397         * lib/stdio-impl.h: New file.
44398         * lib/fbufmode.c: Include stdio-impl.h.
44399         (fbufmode): Use fp_, remove redundant #defines.
44400         * lib/fflush.c: Include stdio-impl.h.
44401         (clear_ungetc_buffer): Remove redundant #defines.
44402         * lib/fpurge.c: Include stdio-impl.h.
44403         (fpurge): Remove redundant #defines.
44404         * lib/freadable.c: Include stdio-impl.h.
44405         (freadable): Remove redundant #defines.
44406         * lib/freadahead.c: Include stdio-impl.h.
44407         (freadahead): Remove redundant #defines.
44408         * lib/freading.c: Include stdio-impl.h.
44409         (freading): Remove redundant #defines.
44410         * lib/freadptr.c: Include stdio-impl.h.
44411         (freadptr): Remove redundant #defines.
44412         * lib/freadseek.c: Include stdio-impl.h.
44413         (freadptrinc): Remove redundant #defines.
44414         * lib/fseeko.c: Include stdio-impl.h.
44415         (rpl_fseeko): Remove redundant #defines.
44416         * lib/fseterr.c: Include stdio-impl.h.
44417         (fseterr): Remove redundant #defines.
44418         * lib/fwritable.c: Include stdio-impl.h.
44419         (fwritable: Remove redundant #defines.
44420         * lib/fwriting.c: Include stdio-impl.h.
44421         (fwriting): Remove redundant #defines.
44422         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44423         * modules/fflush (Files): Likewise.
44424         * modules/fpurge (Files): Likewise.
44425         * modules/freadable (Files): Likewise.
44426         * modules/freadahead (Files): Likewise.
44427         * modules/freading (Files): Likewise.
44428         * modules/freadptr (Files): Likewise.
44429         * modules/freadseek (Files): Likewise.
44430         * modules/fseeko (Files): Likewise.
44431         * modules/fseterr (Files): Likewise.
44432         * modules/fwritable (Files): Likewise.
44433         * modules/fwriting (Files): Likewise.
44434
44435 2008-04-26  Bruno Haible  <bruno@clisp.org>
44436
44437         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44438         restore_seek_optimization, update_fpos_cache): New functions, extracted
44439         from rpl_fflush.
44440         (rpl_fflush): Use them.
44441         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44442         (gl_REPLACE_FFLUSH): Use it.
44443
44444 2008-04-26  Bruno Haible  <bruno@clisp.org>
44445
44446         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44447         on Solaris.
44448         * tests/test-xstrtoimax.sh: Likewise.
44449         * tests/test-xstrtoumax.sh: Likewise.
44450         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44451
44452 2008-04-26  Bruno Haible  <bruno@clisp.org>
44453
44454         * modules/memchr-tests: New file.
44455         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44456
44457 2008-04-26  Eric Blake  <ebb9@byu.net>
44458             Bruno Haible  <bruno@clisp.org>
44459
44460         * lib/memchr.c: Include intprops.h.
44461         (__memchr): Optimize parallel detection of matching bytes. Rename local
44462         variables. Add explanatory comments.
44463
44464 2008-04-26  Bruno Haible  <bruno@clisp.org>
44465
44466         Fix module 'memchr', broken since 2000-10-28.
44467         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44468
44469 2008-04-26  Bruno Haible  <bruno@clisp.org>
44470
44471         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
44472         comments.
44473
44474 2008-04-25  Eric Blake  <ebb9@byu.net>
44475
44476         Use native fstatat on cygwin 1.7.0.
44477         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
44478         first.
44479
44480 2008-04-23  Eric Blake  <ebb9@byu.net>
44481
44482         Improve memchr2 performance.
44483         * lib/memchr2.c (memchr2): Further optimize parallel detection of
44484         NUL bytes.
44485         * modules/memchr2 (Depends-on): Use intprops.h.
44486
44487 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44488
44489         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
44490         an inline function instead of a CPP macro.  Patch by Ben Pfaff
44491         <blp@cs.stanford.edu>.
44492
44493 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44494
44495         * lib/arpa_inet.in.h: New file.
44496
44497         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
44498         (Makefile.am): Sed in substitute header file.
44499
44500         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
44501         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
44502
44503         * modules/inet_ntop (configure.ac): Use
44504         gl_ARPA_INET_MODULE_INDICATOR.
44505
44506         * modules/inet_pton (configure.ac): Use
44507         gl_ARPA_INET_MODULE_INDICATOR.
44508
44509 2008-04-22  Jim Meyering  <meyering@redhat.com>
44510
44511         * modules/verify (License): Re-license as LGPLv2+.
44512
44513 2008-04-22  Simon Josefsson  <simon@josefsson.org>
44514
44515         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
44516         parameter to void* as per POSIX standard (MinGW uses char*).
44517
44518 2008-04-21  Bruno Haible  <bruno@clisp.org>
44519
44520         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44521         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44522         Define to replacements if REPLACE_ISWCNTRL is 1.
44523         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
44524         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
44525         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
44526         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
44527         what it fixes.
44528         * doc/posix-functions/iswalpha.texi: Likewise.
44529         * doc/posix-functions/iswblank.texi: Likewise.
44530         * doc/posix-functions/iswcntrl.texi: Likewise.
44531         * doc/posix-functions/iswdigit.texi: Likewise.
44532         * doc/posix-functions/iswgraph.texi: Likewise.
44533         * doc/posix-functions/iswlower.texi: Likewise.
44534         * doc/posix-functions/iswprint.texi: Likewise.
44535         * doc/posix-functions/iswpunct.texi: Likewise.
44536         * doc/posix-functions/iswspace.texi: Likewise.
44537         * doc/posix-functions/iswupper.texi: Likewise.
44538         * doc/posix-functions/iswxdigit.texi: Likewise.
44539         Reported by Alain Guibert.
44540
44541 2008-04-21  Bruno Haible  <bruno@clisp.org>
44542
44543         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
44544         Patch by Alain Guibert.
44545
44546 2008-04-21  Bruno Haible  <bruno@clisp.org>
44547
44548         Fix test failures on mingw.
44549         * tests/test-xstrtol.c (print_no_progname): New function.
44550         (main): Install it in error_print_progname hook.
44551         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
44552         * tests/test-xstrtoimax.sh: Likewise.
44553         * tests/test-xstrtoumax.sh: Likewise.
44554
44555 2008-04-21  Bruno Haible  <bruno@clisp.org>
44556
44557         Fix test failure on mingw.
44558         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
44559
44560 2008-04-21  Bruno Haible  <bruno@clisp.org>
44561
44562         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44563         Actually assign a value.
44564
44565 2008-04-20  Bruno Haible  <bruno@clisp.org>
44566
44567         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44568         take 2.
44569         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44570         'canonicalize-lgpl' module is also used.
44571         * lib/canonicalize-lgpl.c: Undo last change.
44572         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44573
44574 2008-04-20  Bruno Haible  <bruno@clisp.org>
44575
44576         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44577         config.h. Provide _mkdir based fallback for mingw.
44578         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44579         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44580         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44581         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44582         rather than defining mkdir in config.h.
44583         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44584         (gl_SYS_STAT_H_DEFAULTS): New macro.
44585         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44586         HAVE_IO_H any more.
44587         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44588         HAVE_DECL_MKDIR and HAVE_IO_H.
44589
44590 2008-04-20  Bruno Haible  <bruno@clisp.org>
44591
44592         * lib/isapipe.c: Port to native Windows platforms.
44593
44594 2008-04-20  Bruno Haible  <bruno@clisp.org>
44595
44596         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44597
44598 2008-04-21  Eric Blake  <ebb9@byu.net>
44599
44600         Work around preprocessors that don't handle UINTMAX_MAX.
44601         * lib/memchr2.c (memchr2): Avoid embedded #if.
44602         Reported by Alain Guibert, fix suggested by Bruno Haible.
44603
44604 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44605
44606         * doc/posix-functions/strftime.texi (strftime): Explain better
44607         Windows incompatibility.  Suggested by Micah Cowan
44608         <micah@cowan.name>.
44609
44610 2008-04-20  Bruno Haible  <bruno@clisp.org>
44611
44612         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44613         unistr/u8-mblen.
44614
44615 2008-04-20  Bruno Haible  <bruno@clisp.org>
44616
44617         Fix test failure on platforms with non-GNU iconv.
44618         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44619         (U_TO_U8): Use it, rather than u16_to_u8.
44620         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44621         units at the end of the input string.
44622         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44623
44624 2008-04-20  Bruno Haible  <bruno@clisp.org>
44625
44626         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44627         when the resulting length is 0.
44628         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44629
44630 2008-04-20  Bruno Haible  <bruno@clisp.org>
44631
44632         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44633         works.
44634         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44635
44636 2008-04-20  Bruno Haible  <bruno@clisp.org>
44637
44638         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
44639         * modules/tsearch-tests (configure.ac): Test for initstate function.
44640
44641 2008-04-20  Bruno Haible  <bruno@clisp.org>
44642
44643         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
44644         for nlink_t if missing.
44645         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
44646
44647 2008-04-19  Bruno Haible  <bruno@clisp.org>
44648
44649         Work around snprintf bug on Linux libc5.
44650         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
44651         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44652         gl_SNPRINTF_SIZE1.
44653         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44654         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
44655         that test failed.
44656         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
44657         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
44658         * modules/snprintf (Files): Add m4/printf.m4.
44659         * modules/vsnprintf (Files): Likewise.
44660         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
44661         * doc/posix-functions/vsnprintf.texi: Likewise.
44662
44663 2008-04-19  Bruno Haible  <bruno@clisp.org>
44664
44665         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
44666         from 0.0058 to less than 10^-7.
44667
44668 2008-04-19  Bruno Haible  <bruno@clisp.org>
44669
44670         Fix rounding when a precision is given.
44671         * lib/vasnprintf.c (is_borderline): New function.
44672         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
44673         9...9x.
44674         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
44675         %e, %g.
44676         * tests/test-vasprintf-posix.c (test_function): Likewise.
44677         * tests/test-snprintf-posix.h (test_function): Likewise.
44678         * tests/test-sprintf-posix.h (test_function): Likewise.
44679         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
44680         * tests/test-printf-posix.h (test_function): Likewise.
44681         * tests/test-printf-posix.output: Update.
44682         Reported by John Darrington <john@darrington.wattle.id.au> via
44683         Ben Pfaff <blp@cs.stanford.edu>.
44684
44685 2008-04-18  Simon Josefsson  <simon@josefsson.org>
44686
44687         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
44688         Suggested by Bruno Haible <bruno@clisp.org>.
44689
44690 2008-04-17  Bruno Haible  <bruno@clisp.org>
44691
44692         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
44693         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
44694         implementation.
44695         Patch by Bruce Merry <bmerry@gmail.com>.
44696
44697 2008-04-17  Simon Josefsson  <simon@josefsson.org>
44698
44699         * doc/posix-functions/strftime.texi (strftime): Mention that %e
44700         doesn't work under Windows.
44701
44702 2008-04-16  Bruno Haible  <bruno@clisp.org>
44703
44704         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
44705         New macros.
44706         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
44707         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
44708         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
44709         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
44710         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
44711         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
44712         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
44713         macros.
44714         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
44715         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
44716         Northern Sotho, Uighur.
44717
44718 2008-04-16  Bruno Haible  <bruno@clisp.org>
44719
44720         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
44721         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
44722         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
44723         Reported by Daniel Bergström <daniel@octocode.com>.
44724
44725 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
44726             Bruno Haible  <bruno@clisp.org>
44727
44728         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
44729         function.
44730         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
44731         New functions, mostly extracted from gl_locale_name_default.
44732         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
44733
44734 2008-04-16  Eric Blake  <ebb9@byu.net>
44735
44736         Adjust strtod detection to catch glibc 2.7 bug.
44737         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
44738         Reported by John Gatewood Ham.
44739
44740 2008-04-16  Bruno Haible  <bruno@clisp.org>
44741
44742         Add tentative support for Linux libc5.
44743         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
44744         * lib/fpurge.c (fpurge): Likewise.
44745         * lib/freadable.c (freadable): Likewise.
44746         * lib/freadahead.c (freadahead): Likewise.
44747         * lib/freading.c (freading): Likewise.
44748         * lib/freadptr.c (freadptr): Likewise.
44749         * lib/freadseek.c (freadptrinc): Likewise.
44750         * lib/fseeko.c (rpl_fseeko): Likewise.
44751         * lib/fseterr.c (fseterr): Likewise.
44752         * lib/fwritable.c (fwritable): Likewise.
44753         * lib/fwriting.c (fwriting): Likewise.
44754         Reported by Alain Guibert <alguibert+bts@free.fr>.
44755
44756 2008-04-15  Bruno Haible  <bruno@clisp.org>
44757
44758         * modules/mathl (configure.ac): Define module indicator.
44759
44760 2008-04-15  Bruno Haible  <bruno@clisp.org>
44761
44762         * lib/logl.c (logl): Remove unused variables.
44763
44764 2008-04-15  Bruno Haible  <bruno@clisp.org>
44765
44766         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
44767         fails.
44768
44769 2008-04-15  Bruno Haible  <bruno@clisp.org>
44770
44771         * lib/trim.c (trim2): Fix argument of isspace() macro.
44772
44773 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
44774
44775         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
44776         to 0.
44777         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
44778
44779 2008-04-14  Bruno Haible  <bruno@clisp.org>
44780
44781         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
44782         AC_LANG_PROGRAM argument.
44783         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
44784         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
44785         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44786         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44787         * m4/math_h.m4 (gl_MATH_H): Likewise.
44788         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44789         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44790         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44791         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
44792         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44793         * m4/regex.m4 (gl_REGEX): Likewise.
44794         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
44795         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
44796         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44797         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
44798         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44799         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44800         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44801         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44802
44803 2008-04-14  Jim Meyering  <meyering@redhat.com>
44804
44805         test-strtod: fix typos: s/abs/fabs/
44806         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
44807
44808 2008-04-13  Bruno Haible  <bruno@clisp.org>
44809
44810         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
44811         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
44812         module is also used and while not building the reloc-wrapper.
44813
44814 2008-04-13  Bruno Haible  <bruno@clisp.org>
44815
44816         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
44817
44818 2008-04-13  Bruno Haible  <bruno@clisp.org>
44819
44820         Fix AIX compilation failure introduced on 2008-04-02.
44821         * tests/test-frexp.c (exp): Undefine before redefining.
44822         * tests/test-frexpl.c (exp): Likewise.
44823
44824 2008-04-13  Bruno Haible  <bruno@clisp.org>
44825
44826         Work around a HP-UX stdio bug.
44827         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
44828         * tests/test-ftello.c (main): Likewise.
44829         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
44830         * doc/posix-functions/ftello.texi: Likewise.
44831
44832 2008-04-13  Bruno Haible  <bruno@clisp.org>
44833
44834         Make test-signbit pass on HP-UX/hppa.
44835         * tests/test-signbit.c (minus_zerol): New variable.
44836         (test_signbitl): Use it.
44837
44838 2008-04-13  Bruno Haible  <bruno@clisp.org>
44839
44840         Make truncl work on OSF/1 4.0.
44841         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
44842         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44843         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
44845         HAVE_DECL_TRUNCL.
44846         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
44847         HAVE_DECL_TRUNCL.
44848         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
44849
44850 2008-04-13  Bruno Haible  <bruno@clisp.org>
44851
44852         * lib/unictype.h: Remove trailing comma from enumeration definitions.
44853
44854 2008-04-13  Bruno Haible  <bruno@clisp.org>
44855
44856         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
44857         expression, so as to avoid HP-UX 11 cc compiler bug.
44858
44859 2008-04-13  Bruno Haible  <bruno@clisp.org>
44860
44861         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
44862
44863 2008-04-13  Bruno Haible  <bruno@clisp.org>
44864
44865         * lib/git-merge-changelog.c: Remove empty declaration outside of
44866         functions.
44867
44868 2008-04-13  Bruno Haible  <bruno@clisp.org>
44869
44870         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
44871
44872 2008-04-13  Bruno Haible  <bruno@clisp.org>
44873
44874         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
44875         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
44876         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
44877         also if it exists but lacks definitions of the SHUT_* macros.
44878         * modules/sys_socket (Description): Update.
44879         Reported by Elbert Pol <e.pol@chello.nl>.
44880
44881 2008-04-13  Bruno Haible  <bruno@clisp.org>
44882
44883         * lib/localcharset.c (OS2): Don't redefine if already defined.
44884         Reported by Elbert Pol <e.pol@chello.nl>.
44885
44886 2008-04-13  Bruno Haible  <bruno@clisp.org>
44887
44888         * lib/binary-io.h [__EMX__]: Include <io.h>.
44889         Reported by Elbert Pol <e.pol@chello.nl>.
44890
44891 2008-04-12  Bruno Haible  <bruno@clisp.org>
44892
44893         * lib/fpucw.h: Enable the definitions also for x86_64.
44894         Needed for NetBSD/x86_64.
44895         Reported by Thomas Klausner <tk@giga.or.at>.
44896
44897 2008-04-12  Bruno Haible  <bruno@clisp.org>
44898
44899         * tests/test-strtod.c: Include isnand.h.
44900         (main): Use isnand instead of isnan.
44901         Reported by Jim Meyering.
44902
44903 2008-04-12  Bruno Haible  <bruno@clisp.org>
44904
44905         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
44906         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44907
44908 2008-04-12  Jim Meyering  <meyering@redhat.com>
44909
44910         * m4/math_h.m4 (gl_MATH_H): Fix typos.
44911
44912 2008-04-12  Bruno Haible  <bruno@clisp.org>
44913
44914         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
44915         Reported by Elbert Pol <e.pol@chello.nl>.
44916
44917 2008-04-12  Eric Blake  <ebb9@byu.net>
44918
44919         Work around Solaris 10 math.h bug.
44920         * m4/math_h.m4 (gl_MATH_H): Check for bug.
44921         (gl_MATH_H_DEFAULTS): Set up default.
44922         * modules/math (Makefile.am): Replace new indicators.
44923         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
44924         * tests/test-math.c (main): Test this.
44925         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
44926         * doc/posix-headers/math.texi (math.h): Mention bug.
44927         Reported by Nelson H. F. Beebe and Jim Meyering.
44928
44929 2008-04-11  Bruno Haible  <bruno@clisp.org>
44930
44931         Adapt to future versions of Apple GCC.
44932         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
44933         Reported by Peter O'Gorman <peter@pogma.com>.
44934
44935 2008-04-11  Bruno Haible  <bruno@clisp.org>
44936
44937         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
44938
44939 2008-04-11  Bruno Haible  <bruno@clisp.org>
44940
44941         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
44942
44943         * modules/getaddrinfo-tests (Makefile.am): Define
44944         test_getaddrinfo_LDADD.
44945
44946 2008-04-11  Bruno Haible  <bruno@clisp.org>
44947
44948         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
44949         (init): Fix syntax error.
44950         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
44951         is declared.
44952
44953 2008-04-11  Bruno Haible  <bruno@clisp.org>
44954
44955         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
44956         * modules/glob (Depends-on): Add stdbool.
44957
44958 2008-04-11  Bruno Haible  <bruno@clisp.org>
44959
44960         * lib/trim.c: Include <string.h>.
44961
44962 2008-04-11  Eric Blake  <ebb9@byu.net>
44963
44964         Avoid compile failure on OS/2.
44965         * lib/regex_internal.h (internal_function): Disable optimization
44966         on OS/2 (__EMX__), where it caused compiler error.
44967         Reported by Elbert Pol.
44968
44969 2008-04-11  Bruno Haible  <bruno@clisp.org>
44970
44971         Flush the standard error stream before aborting. Needed on mingw.
44972         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
44973         * tests/test-array_list.c (ASSERT): Likewise.
44974         * tests/test-array_oset.c (ASSERT): Likewise.
44975         * tests/test-avltree_list.c (ASSERT): Likewise.
44976         * tests/test-avltree_oset.c (ASSERT): Likewise.
44977         * tests/test-avltreehash_list.c (ASSERT): Likewise.
44978         * tests/test-binary-io.c (ASSERT): Likewise.
44979         * tests/test-byteswap.c (ASSERT): Likewise.
44980         * tests/test-c-ctype.c (ASSERT): Likewise.
44981         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
44982         * tests/test-c-strcasestr.c (ASSERT): Likewise.
44983         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
44984         * tests/test-c-strstr.c (ASSERT): Likewise.
44985         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
44986         * tests/test-canonicalize.c (ASSERT): Likewise.
44987         * tests/test-carray_list.c (ASSERT): Likewise.
44988         * tests/test-ceilf1.c (ASSERT): Likewise.
44989         * tests/test-ceilf2.c (ASSERT): Likewise.
44990         * tests/test-ceill.c (ASSERT): Likewise.
44991         * tests/test-count-one-bits.c (ASSERT): Likewise.
44992         * tests/test-fbufmode.c (ASSERT): Likewise.
44993         * tests/test-fflush2.c (ASSERT): Likewise.
44994         * tests/test-floorf1.c (ASSERT): Likewise.
44995         * tests/test-floorf2.c (ASSERT): Likewise.
44996         * tests/test-floorl.c (ASSERT): Likewise.
44997         * tests/test-fopen.c (ASSERT): Likewise.
44998         * tests/test-fpending.c (ASSERT): Likewise.
44999         * tests/test-fprintf-posix.c (ASSERT): Likewise.
45000         * tests/test-fpurge.c (ASSERT): Likewise.
45001         * tests/test-freadable.c (ASSERT): Likewise.
45002         * tests/test-freadahead.c (ASSERT): Likewise.
45003         * tests/test-freading.c (ASSERT): Likewise.
45004         * tests/test-freadptr.c (ASSERT): Likewise.
45005         * tests/test-freadptr2.c (ASSERT): Likewise.
45006         * tests/test-freadseek.c (ASSERT): Likewise.
45007         * tests/test-freopen.c (ASSERT): Likewise.
45008         * tests/test-frexp.c (ASSERT): Likewise.
45009         * tests/test-frexpl.c (ASSERT): Likewise.
45010         * tests/test-fseek.c (ASSERT): Likewise.
45011         * tests/test-fseeko.c (ASSERT): Likewise.
45012         * tests/test-fstrcmp.c (ASSERT): Likewise.
45013         * tests/test-ftell.c (ASSERT): Likewise.
45014         * tests/test-ftello.c (ASSERT): Likewise.
45015         * tests/test-func.c (ASSERT): Likewise.
45016         * tests/test-fwritable.c (ASSERT): Likewise.
45017         * tests/test-fwriting.c (ASSERT): Likewise.
45018         * tests/test-getdelim.c (ASSERT): Likewise.
45019         * tests/test-getline.c (ASSERT): Likewise.
45020         * tests/test-i-ring.c (ASSERT): Likewise.
45021         * tests/test-iconv-utf.c (ASSERT): Likewise.
45022         * tests/test-iconv.c (ASSERT): Likewise.
45023         * tests/test-isfinite.c (ASSERT): Likewise.
45024         * tests/test-isnand.c (ASSERT): Likewise.
45025         * tests/test-isnanf.c (ASSERT): Likewise.
45026         * tests/test-isnanl.h (ASSERT): Likewise.
45027         * tests/test-ldexpl.c (ASSERT): Likewise.
45028         * tests/test-linked_list.c (ASSERT): Likewise.
45029         * tests/test-linkedhash_list.c (ASSERT): Likewise.
45030         * tests/test-localename.c (ASSERT): Likewise.
45031         * tests/test-lseek.c (ASSERT): Likewise.
45032         * tests/test-mbscasecmp.c (ASSERT): Likewise.
45033         * tests/test-mbscasestr1.c (ASSERT): Likewise.
45034         * tests/test-mbscasestr2.c (ASSERT): Likewise.
45035         * tests/test-mbscasestr3.c (ASSERT): Likewise.
45036         * tests/test-mbscasestr4.c (ASSERT): Likewise.
45037         * tests/test-mbschr.c (ASSERT): Likewise.
45038         * tests/test-mbscspn.c (ASSERT): Likewise.
45039         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
45040         * tests/test-mbspbrk.c (ASSERT): Likewise.
45041         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
45042         * tests/test-mbsrchr.c (ASSERT): Likewise.
45043         * tests/test-mbsspn.c (ASSERT): Likewise.
45044         * tests/test-mbsstr1.c (ASSERT): Likewise.
45045         * tests/test-mbsstr2.c (ASSERT): Likewise.
45046         * tests/test-mbsstr3.c (ASSERT): Likewise.
45047         * tests/test-memchr2.c (ASSERT): Likewise.
45048         * tests/test-memmem.c (ASSERT): Likewise.
45049         * tests/test-open.c (ASSERT): Likewise.
45050         * tests/test-printf-frexp.c (ASSERT): Likewise.
45051         * tests/test-printf-frexpl.c (ASSERT): Likewise.
45052         * tests/test-printf-posix.c (ASSERT): Likewise.
45053         * tests/test-quotearg.c (ASSERT): Likewise.
45054         * tests/test-rbtree_list.c (ASSERT): Likewise.
45055         * tests/test-rbtree_oset.c (ASSERT): Likewise.
45056         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
45057         * tests/test-round1.c (ASSERT): Likewise.
45058         * tests/test-roundf1.c (ASSERT): Likewise.
45059         * tests/test-roundl.c (ASSERT): Likewise.
45060         * tests/test-signbit.c (ASSERT): Likewise.
45061         * tests/test-sleep.c (ASSERT): Likewise.
45062         * tests/test-snprintf-posix.c (ASSERT): Likewise.
45063         * tests/test-snprintf.c (ASSERT): Likewise.
45064         * tests/test-sprintf-posix.c (ASSERT): Likewise.
45065         * tests/test-stat-time.c (ASSERT): Likewise.
45066         * tests/test-strcasestr.c (ASSERT): Likewise.
45067         * tests/test-strerror.c (ASSERT): Likewise.
45068         * tests/test-striconv.c (ASSERT): Likewise.
45069         * tests/test-striconveh.c (ASSERT): Likewise.
45070         * tests/test-striconveha.c (ASSERT): Likewise.
45071         * tests/test-strsignal.c (ASSERT): Likewise.
45072         * tests/test-strstr.c (ASSERT): Likewise.
45073         * tests/test-strtod.c (ASSERT): Likewise.
45074         * tests/test-trunc1.c (ASSERT): Likewise.
45075         * tests/test-trunc2.c (ASSERT): Likewise.
45076         * tests/test-truncf1.c (ASSERT): Likewise.
45077         * tests/test-truncf2.c (ASSERT): Likewise.
45078         * tests/test-truncl.c (ASSERT): Likewise.
45079         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
45080         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
45081         * tests/test-vasnprintf.c (ASSERT): Likewise.
45082         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
45083         * tests/test-vasprintf.c (ASSERT): Likewise.
45084         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
45085         * tests/test-vprintf-posix.c (ASSERT): Likewise.
45086         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
45087         * tests/test-vsnprintf.c (ASSERT): Likewise.
45088         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
45089         * tests/test-wcwidth.c (ASSERT): Likewise.
45090         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
45091         * tests/test-xprintf-posix.c (ASSERT): Likewise.
45092         * tests/test-xvasprintf.c (ASSERT): Likewise.
45093         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
45094         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
45095         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
45096         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
45097         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
45098         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
45099         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
45100         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
45101         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
45102         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
45103         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
45104         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
45105         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
45106         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
45107         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
45108         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
45109         * tests/unictype/test-block_list.c (ASSERT): Likewise.
45110         * tests/unictype/test-block_of.c (ASSERT): Likewise.
45111         * tests/unictype/test-block_test.c (ASSERT): Likewise.
45112         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
45113         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
45114         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
45115         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
45116         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
45117         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
45118         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
45119         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
45120         * tests/unictype/test-combining.c (ASSERT): Likewise.
45121         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
45122         * tests/unictype/test-digit.c (ASSERT): Likewise.
45123         * tests/unictype/test-mirror.c (ASSERT): Likewise.
45124         * tests/unictype/test-numeric.c (ASSERT): Likewise.
45125         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
45126         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
45127         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
45128         * tests/unictype/test-scripts.c (ASSERT): Likewise.
45129         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
45130         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
45131         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
45132         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
45133         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
45134         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
45135         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
45136         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
45137         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
45138         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
45139         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
45140         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
45141         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
45142         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
45143         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
45144         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
45145         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
45146         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
45147         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
45148         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
45149         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
45150         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
45151         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
45152         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
45153         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
45154         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
45155         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
45156         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
45157         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
45158         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
45159         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
45160         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
45161         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
45162         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
45163         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
45164         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
45165         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
45166         Reported by Eric Blake.
45167
45168 2008-04-11  Bruno Haible  <bruno@clisp.org>
45169
45170         * lib/wchar.in.h: Tweak comment.
45171
45172 2008-04-11  Bruno Haible  <bruno@clisp.org>
45173
45174         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
45175         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
45176         gl_COMMON.
45177         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
45178
45179 2008-04-11  Bruno Haible  <bruno@clisp.org>
45180
45181         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
45182
45183 2008-04-11  Simon Josefsson  <simon@josefsson.org>
45184
45185         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
45186         of attempting to use non-existing /dev/*random.  Based on patch
45187         from Adam Strzelecki <ono@java.pl> in
45188         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
45189
45190 2008-04-08  Bruno Haible  <bruno@clisp.org>
45191
45192         Add tentative support for emx+gcc.
45193         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
45194         * lib/fpurge.c (fpurge): Likewise.
45195         * lib/freadable.c (freadable): Likewise.
45196         * lib/freadahead.c (freadahead): Likewise.
45197         * lib/freading.c (freading): Likewise.
45198         * lib/freadptr.c (freadptr): Likewise.
45199         * lib/freadseek.c (freadptrinc): Likewise.
45200         * lib/fseeko.c (rpl_fseeko): Likewise.
45201         * lib/fseterr.c (fseterr): Likewise.
45202         * lib/fwritable.c (fwritable): Likewise.
45203         * lib/fwriting.c (fwriting): Likewise.
45204         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
45205
45206 2008-04-09  Eric Blake  <ebb9@byu.net>
45207
45208         Avoid some autoconf warnings.
45209         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
45210         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
45211         * m4/afs.m4 (gl_AFS): Likewise.
45212         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
45213         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
45214         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45215         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
45216         (gl_INTEGER_TYPE_SUFFIX): Likewise.
45217         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
45218         (AC_CHECK_DECLS_ONCE): Likewise.
45219         Rename file...
45220         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
45221         gnulib-tool requires autoconf 2.59 or better.
45222         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
45223
45224 2008-04-08  Eric Blake  <ebb9@byu.net>
45225
45226         Use 'git describe --match' if present (added in git 1.5.5).
45227         * build-aux/git-version-gen: Limit result to tags that match 'v*'
45228         if possible.
45229
45230 2008-04-08  Bruno Haible  <bruno@clisp.org>
45231
45232         Add tentative support for OpenServer.
45233         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
45234         _ptr, _cnt.
45235         * lib/fpurge.c (fpurge): Likewise.
45236         * lib/freadable.c (freadable): Likewise.
45237         * lib/freadahead.c (freadahead): Likewise.
45238         * lib/freading.c (freading): Likewise.
45239         * lib/freadptr.c (freadptr): Likewise.
45240         * lib/freadseek.c (freadptrinc): Likewise.
45241         * lib/fseeko.c (rpl_fseeko): Likewise.
45242         * lib/fseterr.c (fseterr): Likewise.
45243         * lib/fwritable.c (fwritable): Likewise.
45244         * lib/fwriting.c (fwriting): Likewise.
45245         Reported by Roger Cornelius <rac@tenzing.org> and
45246         Brian K. White <brian@aljex.com>.
45247
45248 2008-04-06  Jim Meyering  <meyering@redhat.com>
45249
45250         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
45251
45252 2008-04-06  Bruno Haible  <bruno@clisp.org>
45253
45254         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45255         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45256         * tests/test-printf-posix.sh: Likewise.
45257         * tests/test-vfprintf-posix.sh: Likewise.
45258         * tests/test-vprintf-posix.sh: Likewise.
45259         * tests/test-xprintf-posix.sh: Likewise.
45260
45261 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45262
45263         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45264         hide error from 'ls', needed on OS/2.
45265         Report by Elbert Pol <elbert.pol@gmail.com>.
45266
45267 2008-04-04  Eric Blake  <ebb9@byu.net>
45268
45269         Make test-fseeko.c failures meaningful.
45270         * tests/test-fseeko.c: Print line number on failure.
45271         * tests/test-fseek.c: Likewise.
45272         Reported by Nelson H. F. Beebe.
45273
45274         Improve strtod bug detection check.
45275         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45276         required for Solaris 10.
45277         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45278
45279 2008-04-04  Bruno Haible  <bruno@clisp.org>
45280
45281         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45282         by m4/setenv.m4.
45283
45284 2008-04-03  Eric Blake  <ebb9@byu.net>
45285
45286         Ensure sane .version contents.
45287         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45288         version string.
45289         * build-aux/git-version-gen: Improve documentation.
45290
45291         Make GNU make output nicer.
45292         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45293         MAKECMDGOALS to enforce message for all command line targets.  Set
45294         srcdir for use in maint.mk.
45295
45296         Another maintainer tweak.
45297         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45298         a target that regenerates version.
45299
45300 2008-04-03  Jim Meyering  <meyering@redhat.com>
45301
45302         vc-list-files: don't cause coreutils "make po-check" failure
45303         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45304
45305 2008-04-03  Eric Blake  <ebb9@byu.net>
45306
45307         Allow VPATH usage of vc-list-files.
45308         * build-aux/vc-list-files (scriptversion): Add timestamp.
45309         (options): Add --help, --version, -C.
45310         (CVS): Support installed cvsu.
45311
45312 2008-04-02  Bruno Haible  <bruno@clisp.org>
45313
45314         Avoid some "statement with no effect" warnings from gcc.
45315         * tests/test-wctype.c (main): Explicitly ignore unused values.
45316         Reported by Jim Meyering.
45317
45318 2008-04-02  Jim Meyering  <meyering@redhat.com>
45319
45320         Avoid some warnings from "gcc -Wshadow".
45321         * tests/test-frexp.c (exp): Define to a different identifier.
45322         * tests/test-frexpl.c (exp): Likewise.
45323
45324 2008-04-03  Jim Meyering  <meyering@redhat.com>
45325
45326         bootstrap: remove dangling *.[ch] symlinks from lib
45327         * build-aux/bootstrap [dangling symlink removal]: Move find's
45328         -depth option to precede all others, to avoid a warning.
45329         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45330
45331 2008-04-02  Bruno Haible  <bruno@clisp.org>
45332
45333         Avoid some warnings from "gcc -Wshadow".
45334         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45335         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45336         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45337         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45338         Reported by Jim Meyering.
45339
45340 2008-04-01  Bruno Haible  <bruno@clisp.org>
45341
45342         Fix test to work on IRIX 6.5 with cc.
45343         * tests/test-math.c (numeric_equal): New function.
45344         (main): Use it.
45345
45346 2008-04-01  Bruno Haible  <bruno@clisp.org>
45347
45348         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45349
45350 2008-04-01  Bruno Haible  <bruno@clisp.org>
45351
45352         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
45353         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45354         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
45355         (Depends-on): Remove math.
45356
45357         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45358         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45359         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45360         (Depends-on): Remove math.
45361
45362         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45363         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45364         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45365         (Depends-on): Remove math.
45366         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45367         (Depends-on): Remove math.
45368
45369         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45370         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45371         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45372         (Depends-on): Remove math.
45373         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45374         (Depends-on): Remove math.
45375
45376         * tests/test-round1.c: Include nan.h.
45377         (main): Use NaNd instead of NAN.
45378         * modules/round-tests (Files): Add tests/nan.h.
45379
45380         * tests/test-trunc1.c: Include nan.h.
45381         (main): Use NaNd instead of NAN.
45382         * modules/trunc-tests (Files): Add tests/nan.h.
45383
45384         * tests/test-roundf1.c: Include nan.h.
45385         (main): Use NaNf instead of NAN.
45386         * modules/roundf-tests (Files): Add tests/nan.h.
45387
45388         * tests/test-truncf1.c: Include nan.h.
45389         (main): Use NaNf instead of NAN.
45390         * modules/truncf-tests (Files): Add tests/nan.h.
45391
45392         * tests/test-ceilf1.c: Include nan.h.
45393         (main): Use NaNf instead of NAN.
45394         * modules/ceilf-tests (Files): Add tests/nan.h.
45395
45396         * tests/test-floorf1.c: Include nan.h.
45397         (main): Use NaNf instead of NAN.
45398         * modules/floorf-tests (Files): Add tests/nan.h.
45399
45400         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45401         (main): Use NaNf instead of NAN.
45402         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45403
45404         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45405         (main): Use NaNd instead of NAN.
45406         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45407
45408         * tests/test-frexp.c: Include nan.h.
45409         (main): Use NaNd instead of NAN.
45410         * modules/frexp-tests (Files): Add tests/nan.h.
45411
45412         * lib/isnan.c: Don't include <math.h>.
45413         (FUNC): Don't use NAN macro.
45414         * modules/isnand-nolibm (Depends-on): Remove math.
45415         * modules/isnanf-nolibm (Depends-on): Remove math.
45416         * modules/isnanl (Depends-on): Remove math.
45417         * modules/isnanl-nolibm (Depends-on): Remove math.
45418
45419         * tests/nan.h: New file.
45420
45421 2008-04-01  Eric Blake  <ebb9@byu.net>
45422
45423         Fix typos.
45424         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45425         values to be the right type.
45426
45427         For now, cater to gnulib strtod inaccuracies.
45428         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45429         fractional results.  While not as nice from a QoI perspective, it
45430         is a quicker patch than correctly implementing decimal to binary
45431         rounding.
45432
45433 2008-03-31  Eric Blake  <ebb9@byu.net>
45434
45435         Guarantee a definition of NAN.
45436         * lib/math.in.h (NAN): Define if missing.
45437         * tests/test-math.c (main): Test it.
45438         * doc/posix-headers/math.texi (math.h): Document this.
45439         * lib/isnan.c (rpl_isnand): Use it.
45440         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45441         * tests/test-floorf1.c (NaN): Likewise.
45442         * tests/test-frexp.c (NaN): Likewise.
45443         * tests/test-isnand.c (NaN): Likewise.
45444         * tests/test-isnanf.c (NaN): Likewise.
45445         * tests/test-round1.c (NaN): Likewise.
45446         * tests/test-roundf1.c (NaN): Likewise.
45447         * tests/test-snprintf-posix.h (NaN): Likewise.
45448         * tests/test-sprintf-posix.h (NaN): Likewise.
45449         * tests/test-trunc1.c (NaN): Likewise.
45450         * tests/test-truncf1.c (NaN): Likewise.
45451         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45452         * tests/test-vasprintf-posix.c (NaN): Likewise.
45453         * modules/isnand-nolibm (Depends-on): Add math.
45454         * modules/isnanf-nolibm (Depends-on): Likewise.
45455         * modules/isnanl (Depends-on): Likewise.
45456         * modules/isnanl-nolibm (Depends-on): Likewise.
45457         * modules/snprintf-posix-tests (Depends-on): Likewise.
45458         * modules/sprintf-posix-tests (Depends-on): Likewise.
45459         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45460         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45461         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45462         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45463
45464 2008-03-31  Bruno Haible  <bruno@clisp.org>
45465
45466         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45467         * doc/posix-functions/strtod.texi: Likewise.
45468
45469 2008-03-31  Bruno Haible  <bruno@clisp.org>
45470
45471         * tests/test-strtod.c (main): Don't use C99 syntax.
45472
45473 2008-03-31  Bruno Haible  <bruno@clisp.org>
45474
45475         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
45476         Reported by Eric Blake.
45477
45478 2008-03-31  Jim Meyering  <meyering@redhat.com>
45479
45480         Don't compare actual signbit return values.
45481         * tests/test-strtod.c (main): Rather, compare only their
45482         zero/non-zero nature.
45483
45484 2008-03-31  Eric Blake  <ebb9@byu.net>
45485
45486         More strtod documentation.
45487         * doc/posix-functions/strtod.texi (strtod): Interpret more test
45488         failures as distinct bugs.
45489
45490 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45491
45492         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
45493         Problem reported by Erik Benada in
45494         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
45495
45496 2008-03-30  Bruno Haible  <bruno@clisp.org>
45497
45498         * tests/test-strtod.c: Add comments about which assertion fails on which
45499         platform.
45500         * doc/posix-functions/strtod.texi: Add info about many more platforms.
45501
45502 2008-03-30  Eric Blake  <ebb9@byu.net>
45503
45504         Test signbit behavior on zeros.
45505         * tests/test-signbit.c (test_signbitf): Add tests for zero.
45506         (test_signbitd, test_signbitl): Likewise.
45507
45508         More strtod touchups.
45509         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
45510         sign of negative underflow, for now.  Use .5, not .1.
45511         * doc/posix-functions/strtod.texi (strtod): Mention these
45512         limitations.
45513         Reported by Jim Meyering.
45514
45515 2008-03-30  Bruno Haible  <bruno@clisp.org>
45516
45517         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
45518         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
45519
45520 2008-03-30  Bruno Haible  <bruno@clisp.org>
45521
45522         Avoid failure when attempting to return empty iconv results on some
45523         platforms.
45524         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
45525         allocation, don't report ENOMEM when the resulting string is empty.
45526
45527 2008-03-30  Bruno Haible  <bruno@clisp.org>
45528
45529         Fix buffer overrun.
45530         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
45531         Don't consider the width for tmp_length. Check count against tmp_length
45532         before doing the padding. Ensure enough allocation during padding.
45533
45534 2008-03-30  Eric Blake  <ebb9@byu.net>
45535
45536         strtod touchups.
45537         * lib/strtod.c (strtod): Avoid compiler warnings.
45538         Reported by Jim Meyering.
45539
45540 2008-03-30  Bruno Haible  <bruno@clisp.org>
45541
45542         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
45543         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
45544         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
45545         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
45546         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
45547         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
45548         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
45549         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
45550
45551         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
45552         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
45553         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
45554         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
45555         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
45556         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
45557         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
45558         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45559
45560         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
45561         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45562         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45563         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45564         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45565         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45566         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45567         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45568
45569         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45570         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45571
45572         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45573         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45574
45575         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45576         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45577
45578         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45579         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45580         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45581
45582         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45583         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45584         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45585
45586         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45587         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45588         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45589
45590         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45591         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45592         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45593
45594         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45595         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45596         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45597         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45598         (Depends-on): Add EOVERFLOW.
45599         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45600         (Depends-on): Add EOVERFLOW.
45601         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45602         (Depends-on): Add EOVERFLOW.
45603         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45604         (Depends-on): Add EOVERFLOW.
45605         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45606         (Depends-on): Add EOVERFLOW.
45607         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45608         (Depends-on): Add EOVERFLOW.
45609         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45610         (Depends-on): Add EOVERFLOW.
45611         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45612         (Depends-on): Add EOVERFLOW.
45613
45614         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45615         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45616         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45617
45618         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45619         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45620         * modules/snprintf (Depends-on): Add EOVERFLOW.
45621
45622         * lib/poll.c (EOVERFLOW): Remove fallback.
45623         * modules/poll (Depends-on): Add EOVERFLOW.
45624
45625         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45626         * modules/getugroups (Depends-on): Add EOVERFLOW.
45627
45628         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45629         * modules/getdelim (Depends-on): Add EOVERFLOW.
45630
45631         * lib/ftell.c (EOVERFLOW): Remove fallback.
45632         * modules/ftell (Depends-on): Add EOVERFLOW.
45633
45634         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45635         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
45636         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
45637
45638         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
45639
45640         * modules/EOVERFLOW-tests: New file.
45641         * tests/test-EOVERFLOW.c: New file.
45642
45643         * modules/EOVERFLOW: New file.
45644         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
45645
45646 2008-03-30  Bruno Haible  <bruno@clisp.org>
45647
45648         Fix bug introduced on 2007-06-10.
45649         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
45650         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
45651
45652 2008-03-30  Bruno Haible  <bruno@clisp.org>
45653
45654         Improve freadseek's efficiency after ungetc.
45655         * lib/freadseek.c: Include freadahead.h.
45656         (freadptrinc): New function, extracted from freadseek.
45657         (freadseek): Use it in a loop. Use freadahead to determine the number
45658         of loop iterations.
45659         * modules/freadseek (Depends-on): Add freadahead.
45660         (configure.ac): Require AC_C_INLINE.
45661
45662 2008-03-30  Bruno Haible  <bruno@clisp.org>
45663
45664         * lib/freadseek.c (freadseek): Don't ignore the return value of
45665         freadptr.
45666
45667 2008-03-29  Eric Blake  <ebb9@byu.net>
45668
45669         Add hex float support.
45670         * modules/strtod (Depends-on): Add c-ctype.
45671         (Link): Mention POW_LIB.
45672         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
45673         whitespace between 'e' and exponent.
45674         * tests/test-strtod.c (main): Enable hex float tests.
45675         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
45676         now provides.
45677
45678         Document various strtod bugs, with some fixes.
45679         * doc/posix-functions/strtod.texi (strtod): Document bugs with
45680         "-0x", "inf", "nan", and hex constants.
45681         * doc/posix-functions/atof.texi (atof): Likewise.
45682         * modules/stdlib (Makefile.am): Support strtod.
45683         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45684         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
45685         detect additional strtod bugs.
45686         * lib/stdlib.in.h (rpl_strtod): Add declarations.
45687         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
45688         bool where appropriate.  Parse 'inf' and 'nan'.
45689         * tests/test-strtod.c: New file.
45690         * modules/strtod (Depends-on): Add stdbool, stdlib.
45691         (configure.ac): Turn on module indicator.
45692         * modules/strtod-tests: New module.
45693
45694 2008-03-29  Eric Blake  <ebb9@byu.net>
45695
45696         Fix ftell on mingw.
45697         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
45698         * modules/ftell-tests (Depends-on): Add binary-io.
45699         * modules/ftello-tests (Depends-on): Likewise.
45700         * tests/test-ftell.c (main): Enhance test to cover behavior after
45701         ungetc.  Enforce binary mode.
45702         * tests/test-ftello.c (main): Likewise.
45703
45704         Pass test-freadseek on cygwin.
45705         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
45706         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
45707         ungetc buffer.
45708
45709         * tests/test-fflush2.c (main): Fix typo.
45710
45711 2008-03-29  Bruno Haible  <bruno@clisp.org>
45712
45713         * tests/test-fflush2.c (main): Temporarily disable the contents of
45714         this test.
45715         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
45716         Reported by Eric Blake.
45717
45718 2008-03-28  Simon Josefsson  <simon@josefsson.org>
45719
45720         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
45721         (GC_SHA224_DIGEST_SIZE): Add.
45722
45723         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
45724         (gc_hash_digest_length): Likewise.
45725         (gc_hash_buffer): Likewise.
45726
45727 2008-03-25  Bruno Haible  <bruno@clisp.org>
45728
45729         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
45730         detail which gettext release to use.
45731         Reported by Simon Josefsson.
45732
45733 2008-03-26  Jim Meyering  <meyering@redhat.com>
45734
45735         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
45736         * modules/gnumakefile (clean-GNUmakefile): Also, use
45737         test ... && ... || : syntax rather than if-then ... fi.
45738
45739         gnumakefile: Don't double-quote-expand $(VPATH) value.
45740         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
45741
45742 2008-03-24  Eric Blake  <ebb9@byu.net>
45743
45744         Alter GNUmakefile to install into top directory.
45745         * modules/maintainer-makefile: Split, and add dependency...
45746         * modules/gnumakefile: to this new module.
45747         * build-aux/GNUmakefile: Move...
45748         * top/GNUmakefile: ...here.
45749         * build-aux/maint.mk: Move...
45750         * top/maint.mk: ...here.
45751         * MODULES.html.sh (Support for maintaining...): Document new
45752         module.
45753
45754 2008-03-23  Bruno Haible  <bruno@clisp.org>
45755
45756         * gnulib-tool: New options --vc-files, --no-vc-files.
45757         (func_usage): Document them.
45758         (vc_files): New variable.
45759         (func_import): Consider vc_files.
45760         (func_create_testdir): Set vc_files to empty.
45761         Suggested by Jim Meyering and Karl Berry.
45762
45763 2008-03-23  Bruno Haible  <bruno@clisp.org>
45764
45765         Fix regex compilation error on HP-UX 11.
45766         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
45767         * modules/regex (Files): Add m4/mbstate_t.m4.
45768         Reported by Ton Voon <ton.voon@altinity.com>.
45769
45770 2008-03-23  Bruno Haible  <bruno@clisp.org>
45771
45772         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
45773
45774 2008-03-23  Eric Blake  <ebb9@byu.net>
45775             Bruno Haible  <bruno@clisp.org>
45776
45777         Install files from top/ in the destination directory.
45778         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45779         augmentation also for the files from top/.
45780         (func_import, func_create_testdir): Rewrite file names:
45781         top/filename -> filename.
45782
45783 2008-03-23  Bruno Haible  <bruno@clisp.org>
45784
45785         Tweak "gnulib --version" output.
45786         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
45787
45788 2008-03-23  Bruno Haible  <bruno@clisp.org>
45789
45790         Tweak "gnulib --version" output.
45791         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
45792         rather than contents of ChangeLog, when possible.
45793
45794 2008-03-21  Eric Blake  <ebb9@byu.net>
45795
45796         More --version tweaks.
45797         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
45798         date of last ChangeLog entry.
45799
45800 2008-03-21  Jim Meyering  <meyering@redhat.com>
45801
45802         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
45803
45804 2008-03-20  Eric Blake  <ebb9@byu.net>
45805
45806         VPATH fix.
45807         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
45808
45809 2008-03-20  Simon Josefsson  <simon@josefsson.org>
45810
45811         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
45812         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
45813
45814 2008-03-20  Eric Blake  <ebb9@byu.net>
45815
45816         Sync GNUmakefile with coreutils.
45817         * build-aux/GNUmakefile (have-Makefile): Rename...
45818         (_have-Makefile): ...to this, for namespace consideration.
45819         (GNUmakefile.cfg): Include, if present.
45820         (_autoreconf): Define a default.
45821         (_is-dist-target): New rule for rebuilds to pick up intra-release
45822         version.
45823         (maint-cfg.mk): Rename...
45824         (cfg.mk): ...to this.
45825
45826 2008-03-18  Jim Meyering  <meyering@redhat.com>
45827
45828         New script and module: mktempd
45829         * MODULES.html.sh (maint+release support): Add mktempd.
45830         * build-aux/mktempd: New file.
45831         * modules/mktempd: New file.
45832
45833 2008-03-15  Jim Meyering  <meyering@redhat.com>
45834
45835         Undo last change.
45836         * lib/sha1.c, lib/md5.c: 63 != ~63.
45837         Reported by Andreas Schwab.
45838
45839         sha1.c, md5.c: Hoist a redundant expression.
45840         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
45841         "ctx->buflen" only once, before calling *_process_block.
45842         * lib/md5.c (md5_process_bytes): Likewise.
45843
45844 2008-03-14  Eric Blake  <ebb9@byu.net>
45845
45846         Bump copyright year in files generated by gnulib-tool.
45847         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
45848         gnulib-tool, rather than hard-coding it.
45849
45850         Fix 'gnulib-tool --version' output to work with git.
45851         * gnulib-tool (func_gnulib_dir): New function, extracted from...
45852         (startup): ...here.
45853         (func_version): Use it to invoke git-version-gen, rather than
45854         relying on CVS keyword expansion.  Modernize wording.
45855         (cvsdatestamp, last_checkin_date, version): Kill unused
45856         variables.
45857
45858 2008-03-12  Jim Meyering  <meyering@redhat.com>
45859
45860         Recognize optional cast of the argument to free.
45861         * build-aux/useless-if-before-free: Update regexps.
45862
45863         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
45864
45865 2008-03-11  Bruno Haible  <bruno@clisp.org>
45866
45867         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
45868         by a single package.
45869         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
45870         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
45871         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
45872         Reported by Sam Steingold <sds@gnu.org>.
45873
45874 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45875
45876         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
45877         repositories.
45878
45879 2008-03-11  Bruno Haible  <bruno@clisp.org>
45880
45881         Avoid conflicts between local macro definitions.
45882         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45883         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
45884
45885 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
45886             Bruno Haible  <bruno@clisp.org>
45887
45888         Make va_copy work with some version of xlc on AIX 5.1.
45889         * lib/stdarg.in.h: New file.
45890         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
45891         On AIX, use a <stdarg.h> file substitute.
45892         * modules/stdarg (Files): Add lib/stdarg.in.h.
45893         (Depends-on): Add include_next.
45894         (Makefile.am): Build a stdarg.h substitute if requested.
45895         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
45896
45897 2008-03-10  Bruno Haible  <bruno@clisp.org>
45898
45899         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
45900         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45901         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45902
45903 2008-03-10  Bruno Haible  <bruno@clisp.org>
45904
45905         * modules/stdlib (Depends-on): Add include_next, remove
45906         absolute-header.
45907
45908 2008-03-09  Bruno Haible  <bruno@clisp.org>
45909
45910         * lib/freadahead.h (freadahead): Document more precisely.
45911         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
45912         the sum of both buffer sizes.
45913         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
45914         * NEWS: Document the change.
45915
45916 2008-03-09  Bruno Haible  <bruno@clisp.org>
45917
45918         Extend freadptr to return also the buffer size.
45919         * lib/freadptr.h (freadptr): Add sizep argument.
45920         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
45921         (freadptr): Add sizep argument. Determine buffer size like freadahead
45922         does.
45923         * tests/test-freadptr.c: Don't include freadahead.h.
45924         (main): Adapt for new calling convention of freadptr.
45925         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
45926         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
45927         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
45928         tests/test-freadptr2.sh.
45929         (Depends): Remove freadahead.
45930         (TESTS): Add test-freadptr2.sh.
45931         (check_PROGRAMS): Add test-freadptr2.
45932
45933 2008-03-09  Bruno Haible  <bruno@clisp.org>
45934
45935         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
45936         Report and solution by Simon Josefsson.
45937
45938 2008-03-06  Bruno Haible  <bruno@clisp.org>
45939
45940         Make fflush after ungetc work on BSD platforms.
45941         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
45942         * tests/test-fflush2.c: New file.
45943         * tests/test-fflush2.sh: New file.
45944         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
45945         tests/test-fflush2.c.
45946         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
45947         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
45948
45949 2008-03-06  Eric Blake  <ebb9@byu.net>
45950
45951         Likewise for ftello.
45952         * modules/ftello (Dependencies): Add extensions.
45953         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
45954
45955 2008-03-06  Bruno Haible  <bruno@clisp.org>
45956
45957         * modules/fseeko (Dependencies): Add extensions.
45958         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
45959         Needed on glibc systems.
45960
45961 2008-03-06  Bruno Haible  <bruno@clisp.org>
45962
45963         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
45964         email address.
45965         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45966
45967 2008-03-06  Bruno Haible  <bruno@clisp.org>
45968
45969         * users.txt: Add libgnupdf.
45970
45971 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45972
45973         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
45974         (Header File Substitutes, Function Substitutes,
45975         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
45976         (Build robot for gnulib): Fix typo.
45977
45978 2008-03-06  Bruno Haible  <bruno@clisp.org>
45979
45980         * doc/gnulib-tool.texi (VCS Issues): Small updates.
45981         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45982
45983 2008-03-06  Bruno Haible  <bruno@clisp.org>
45984
45985         * doc/func.texi: New file, extracted from doc/gnulib.texi.
45986         * doc/gnulib.texi: Include it.
45987
45988 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45989
45990         * modules/func (License): Change license to unlimited; there was
45991         no LGPL parts in the module anyway.
45992
45993 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45994
45995         * modules/__func__: Renamed to modules/func.
45996         * modules/__func__-tests: Renamed to modules/func-tests.
45997         * tests/test-__func__.c: Renamed to tests/test-func.c.
45998         * m4/__func__.m4: Renamed to m4/func.m4.
45999         * doc/gnulib.texi (__func__): Section renamed to func.
46000         Suggested by Eric Blake <ebb9@byu.net>.
46001
46002 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46003
46004         * doc/gnulib.texi (__func__): Use C99 terminology when talking
46005         about __func__.  Make example self-contained.  Suggested by Eric
46006         Blake <ebb9@byu.net>.
46007
46008         * tests/test-__func__.c (main): Avoid extraneous () around __func.
46009         Suggested by Eric Blake <ebb9@byu.net>.
46010
46011 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46012
46013         * modules/__func__: New file.
46014         * modules/__func__-tests: New file.
46015         * tests/test-__func__.c: New file.
46016         * m4/__func__.m4: New file.
46017         * doc/gnulib.texi (__func__): Document __func__ module.
46018
46019 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46020
46021         * modules/byteswap (License): Re-license as LGPLv2+.
46022
46023 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46024
46025         * doc/Makefile: Add pdf target.
46026
46027 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46028
46029         * modules/inline (License): Use 'unlimited', since there are only
46030         *.m4 files in this module.
46031
46032 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46033             Bruno Haible  <bruno@clisp.org>
46034
46035         Add support for HP C 7.1 on OpenVMS 8.3.
46036         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
46037
46038 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46039
46040         Update VMS specifics.
46041         * lib/getopt.c [VMS]: Remove include of unixlib.h.
46042
46043 2008-03-02  Jim Meyering  <meyering@redhat.com>
46044
46045         Remove the last dependency on the "free" module.
46046         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
46047         Reported by Bob Proulx.
46048
46049         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
46050
46051         Remove useless "if" tests before free.  Deprecate "free" module.
46052         * doc/posix-functions/free.texi: Mention that this
46053         module is no longer useful.
46054         * modules/free (Notice): Say this module is obsolete.
46055         * modules/readutmp (Depends-on): Remove free.
46056         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
46057         * lib/putenv.c (putenv): Likewise.
46058         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
46059         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
46060         * tests/test-c-strcasestr.c (main): Likewise.
46061         * tests/test-c-strstr.c (main): Likewise.
46062         * tests/test-mbscasestr1.c (main): Likewise.
46063         * tests/test-mbscasestr2.c (main): Likewise.
46064         * tests/test-mbsstr1.c (main): Likewise.
46065         * tests/test-mbsstr2.c (main): Likewise.
46066         * tests/test-memmem.c (main): Likewise.
46067         * tests/test-strcasestr.c (main): Likewise.
46068         * tests/test-striconv.c (main): Likewise.
46069         * tests/test-striconveh.c (main): Likewise.
46070         * tests/test-striconveha.c (main): Likewise.
46071         * tests/test-strstr.c (main): Likewise.
46072
46073         * build-aux/git-version-gen: Adjust a comment and the Usage string.
46074
46075         bootstrap: sync from coreutils again
46076         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
46077
46078 2008-03-01  Jim Meyering  <meyering@redhat.com>
46079
46080         bootstrap: sync from coreutils
46081         * build-aux/bootstrap (update_po_files): Copy a .po file into place
46082         also when the target doesn't exist.
46083
46084 2008-03-01  Eric Blake  <ebb9@byu.net>
46085
46086         Fix bugs in last patch.
46087         * lib/memchr2.c (memchr2): Fix typo.
46088         * tests/test-memchr2.c: Test previous bug, and don't use GNU
46089         extension.
46090         Reported by Bruce Korb.
46091
46092         New module 'memchr2'.
46093         * modules/memchr2: New file.
46094         * modules/memchr2-tests: Likewise.
46095         * lib/memchr2.h: Likewise.
46096         * lib/memchr2.c: Likewise, based on memchr.c.
46097         * tests/test-memchr2.c: New test.
46098         * MODULES.html.sh (String handling): Add memchr2.
46099
46100 2008-02-29  Bruno Haible  <bruno@clisp.org>
46101
46102         * modules/freadseek-tests: New file.
46103         * tests/test-freadseek.sh: New file.
46104         * tests/test-freadseek.c: New file.
46105
46106         New module 'freadseek'.
46107         * modules/freadseek: New file.
46108         * lib/freadseek.h: New file.
46109         * lib/freadseek.c: New file.
46110         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
46111
46112 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
46113
46114         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
46115         wydawca.
46116
46117         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
46118         program_invocation_name and program_invocation_short_name are
46119         present.
46120
46121 2008-02-28  Bruno Haible  <bruno@clisp.org>
46122
46123         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
46124         * tests/test-freadptr.sh: Also test non-seekable stdin.
46125
46126 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
46127
46128         * build-aux/bootstrap (source_base, m4_base)
46129         (doc_base, tests_base): New variables.
46130         (gnulib_tool_options): Do not hardcode base directories, use
46131         the above variables instead.
46132
46133 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
46134
46135         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
46136
46137 2008-02-28  Bruno Haible  <bruno@clisp.org>
46138
46139         * modules/freadptr-tests: New file.
46140         * tests/test-freadptr.sh: New file.
46141         * tests/test-freadptr.c: New file.
46142
46143         New module 'freadptr'.
46144         * modules/freadptr: New file.
46145         * lib/freadptr.h: New file.
46146         * lib/freadptr.c: New file.
46147         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
46148
46149 2008-02-26  Karl Berry  <karl@freefriends.org>
46150
46151         Sync from Libtool:
46152         * libltdl/argz.c (argz_add, argz_count): New functions.
46153         * libltdl/argz.in.h: Declare them.
46154         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
46155
46156 2008-02-22  Bruno Haible  <bruno@clisp.org>
46157
46158         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
46159         is a pointer type.  Needed for HP-UX 10.
46160         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
46161         * doc/posix-functions/gmtime_r.texi: Likewise.
46162         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46163
46164 2008-02-24  Bruno Haible  <bruno@clisp.org>
46165
46166         * modules/environ-tests: New file.
46167         * tests/test-environ.c: New file.
46168
46169         New module 'environ'.
46170         * modules/environ: New file.
46171         * lib/unistd.in.h (environ): New declaration.
46172         * m4/environ.m4: New file.
46173         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
46174         after use.
46175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
46176         HAVE_DECL_ENVIRON.
46177         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
46178         HAVE_DECL_ENVIRON.
46179         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
46180         wrong claim that 'environ' is missing on some systems.
46181         * modules/execute (Depends-on): Add environ.
46182         * lib/execute.c (environ): Remove fallback declaration.
46183         * modules/pipe (Depends-on): Add environ.
46184         * lib/pipe.c (environ): Remove fallback declaration.
46185         * modules/setenv (Depends-on): Add environ.
46186         * lib/setenv.c (environ): Remove fallback declaration.
46187         * modules/unsetenv (Depends-on): Add environ.
46188         * lib/unsetenv.c (environ): Remove fallback declaration.
46189         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
46190         m4/environ.m4.
46191         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
46192         (gl_PREREQ_UNSETENV): Likewise.
46193
46194 2008-02-24  Bruno Haible  <bruno@clisp.org>
46195
46196         * doc/posix-functions/environ.texi: Document the MacOS X problem.
46197
46198 2008-02-20  Bob Proulx  <bob@proulx.com>
46199
46200         Enable use of older two part flavor 'git describe'.
46201         * build-aux/git-version-gen: If using the older two part flavor of
46202         git version then recreate the third part now present in the
46203         newer three part flavor of git describe.
46204
46205 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
46206
46207         * lib/fts.c (fts_build): Typo correction to comment.
46208
46209 2008-02-17  Bruno Haible  <bruno@clisp.org>
46210
46211         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
46212         generating no-op conflicts.
46213
46214 2008-02-17  Bruno Haible  <bruno@clisp.org>
46215
46216         Speed up by 10%.
46217         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
46218         result_entries, rather than an index-based loop.
46219
46220 2008-02-17  Bruno Haible  <bruno@clisp.org>
46221
46222         Speed up by 25%.
46223         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
46224         'hashcode_cached'.
46225         (entry_create): New function.
46226         (entry_hashcode): Use the cached hashcode if possible.
46227         (read_changelog_file, try_split_merged_entry): Use entry_create.
46228
46229 2008-02-17  Bruno Haible  <bruno@clisp.org>
46230
46231         Speed up from O(n^2) to O(n) for long ChangeLog files.
46232         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
46233         (read_changelog_file): Change implementation of entries_reversed list
46234         to rbtreehash.
46235         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
46236
46237 2008-02-17  Bruno Haible  <bruno@clisp.org>
46238
46239         New option --split-merged-entry.
46240         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
46241         (find_paragraph_end, try_split_merged_entry): New functions.
46242         (long_options): Add option --split-merged-entry.
46243         (usage): Document option --split-merged-entry.
46244         (main): Implement option --split-merged-entry.
46245         Reported by Eric Blake.
46246
46247 2008-02-17  Bruno Haible  <bruno@clisp.org>
46248
46249         * lib/git-merge-changelog.c: Include c-strstr.h.
46250         (main): Support the "git pull --rebase" situation.
46251         * modules/git-merge-changelog (Depends-on): Add c-strstr.
46252         Reported by Eric Blake.
46253
46254 2008-02-16  Eric Blake  <ebb9@byu.net>
46255
46256         Avoid doubling \ in common case of "c-maybe" quoting style.
46257         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46258         eliding outer quotes.
46259         * lib/quotearg.h: Document this.
46260         * tests/test-quotearg.c (result_strings, inputs, results_g)
46261         (flag_results, locale_results): Test it by adding a new string to
46262         each test group.
46263         (compare_strings): Test new string.
46264
46265 2008-02-13  Eric Blake  <ebb9@byu.net>
46266
46267         Avoid trigraph quoting in default output.
46268         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46269         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46270         unless explicitly requested.
46271         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46272
46273 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46274
46275         Don't rely on signed integer overflowing to negative value.
46276         * lib/getugroups.c (getugroups): Include <limits.h>.
46277         Instead, compare against INT_MAX, and increment only if the test passes.
46278
46279 2008-02-13  Jim Meyering  <meyering@redhat.com>
46280         and Eric Blake  <ebb9@byu.net>
46281
46282         Avoid shadowing warning and compile errors on Linux.
46283         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46284         forwarding macros on Linux.
46285         (dcgettext): Define a stub, for Linux.
46286         (results_g, main): Avoid warnings.
46287
46288 2008-02-12  Eric Blake  <ebb9@byu.net>
46289
46290         Silence warning in last patch.
46291         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46292
46293         Quotearg part 4: add tests, fix c-maybe colon quoting.
46294         * lib/quotearg.h: Improve documentation.
46295         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46296         escapes when adding outer quotes.  When quoting trigraphs, use
46297         valid C notation.  When quoting NUL, omit extra characters if next
46298         character is not digit.  Alter prototype.
46299         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46300         callers.
46301         * modules/quotearg-tests: New module.
46302         * tests/test-quotearg.c: New test.
46303
46304 2008-02-07  Eric Blake  <ebb9@byu.net>
46305
46306         Quotearg part 3: add flag to control outer quote elision.
46307         * lib/quotearg.h (c_maybe_quoting_style): New style.
46308         (enum quoting_flags): Better documentation of flags.
46309         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46310         c-maybe style.
46311         (quotearg_buffer_restyled): Handle new flag to elide outer
46312         quotes.
46313
46314         Quotearg part 2: add flag that can control NUL elision.
46315         * lib/quotearg.h (set_quoting_flags): New prototype.
46316         * lib/quotearg.c (struct quoting_options): Add flag field.
46317         (set_quoting_flags): New function.
46318         (quotearg_buffer_restyled): Add flags parameter.
46319         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46320         (quotearg_n_options): Set the flag, since length cannot be
46321         returned.
46322         (quoting_options_from_style): Default flags correctly.
46323
46324         Quotearg part 1: more wrappers, restore quotearg_char state.
46325         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46326         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46327         (quotearg_colon_mem): New wrappers.
46328         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46329         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46330         functions.
46331         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46332         (quotearg_colon_mem): New functions.
46333
46334 2008-02-11  Bruno Haible  <bruno@clisp.org>
46335
46336         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46337         library in the current directory: it does not work with parallel make.
46338         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46339
46340 2008-02-11  Bruno Haible  <bruno@clisp.org>
46341
46342         * .gitattributes: New file.
46343
46344 2008-02-11  Jim Meyering  <meyering@redhat.com>
46345
46346         useless-if-before-free: Fix reversed exit values.
46347         * build-aux/useless-if-before-free: Use correct values
46348         for EXIT_MATCH and EXIT_NO_MATCH.
46349
46350         * build-aux/useless-if-before-free: Close stdout carefully.
46351
46352 2008-02-10  Bruno Haible  <bruno@clisp.org>
46353
46354         New module 'git-merge-changelog'.
46355         * modules/git-merge-changelog: New file.
46356         * lib/git-merge-changelog.c: New file.
46357
46358 2008-02-10  Jim Meyering  <meyering@redhat.com>
46359
46360         useless-if-before-free: New option: --list (-l).
46361
46362         useless-if-before-free: Don't exit immediately upon open failure.
46363         * build-aux/useless-if-before-free: Exit 2 for errors.
46364         Upon failure to open a file, don't exit immediately.
46365         Rather, just warn and continue with any remaining files.
46366
46367 2008-02-10  Bruno Haible  <bruno@clisp.org>
46368
46369         New abstract list operation 'node_set_value'.
46370         * lib/gl_list.h (gl_list_node_set_value): New function.
46371         (struct gl_list_implementation): New field node_set_value.
46372         * lib/gl_list.c (gl_list_node_set_value): New function.
46373         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46374         (gl_array_list_implementation): Update.
46375         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46376         (gl_carray_list_implementation): Update.
46377         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46378         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46379         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46380         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46381         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46382         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46383         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46384         Update.
46385         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46386         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46387         (gl_sublist_list_implementation): Update.
46388
46389 2008-02-10  Bruno Haible  <bruno@clisp.org>
46390
46391         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46392         Needed when ELEMENT is #defined to 'some_type *'.
46393
46394 2008-02-10  Jim Meyering  <meyering@redhat.com>
46395
46396         New script and module: useless-if-before-free
46397         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46398         * build-aux/useless-if-before-free: New file.
46399         * modules/useless-if-before-free: New file.
46400
46401         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46402
46403         xstrtol_error: Fix typo.
46404         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46405         s/exit_failure/exit_status/.
46406
46407 2008-02-09  Jim Meyering  <meyering@redhat.com>
46408
46409         New script and module: gitlog-to-changelog
46410         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46411         * modules/gitlog-to-changelog: New file.
46412         * build-aux/gitlog-to-changelog: New file.
46413
46414 2008-02-08  Jim Meyering  <meyering@redhat.com>
46415
46416         Avoid two "parameter unused" warnings.
46417         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46418         Mark "st" as used.
46419
46420         Use "git COMMAND", not "git-COMMAND".
46421         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46422         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46423         * build-aux/git-version-gen: Use "git status", not "git-status".
46424
46425 2008-02-07  Bruno Haible  <bruno@clisp.org>
46426
46427         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46428         Avoids a crash on Windows Vista.
46429         Reported by Adam Strzelecki <ono@java.pl> via
46430         Simon Josefsson <simon@josefsson.org>.
46431
46432 2008-02-06  Bruno Haible  <bruno@clisp.org>
46433
46434         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46435         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46436         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46437         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46438         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46439         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46440         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46441         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46442         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46443         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46444         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46445         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46446         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46447         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46448         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46449         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46450         left-adjust flag.
46451         * tests/test-snprintf-posix.h (test_function): Likewise.
46452         * tests/test-sprintf-posix.h (test_function): Likewise.
46453         * tests/test-vasprintf-posix.c (test_function): Likewise.
46454         * doc/posix-functions/fprintf.texi: Update.
46455         * doc/posix-functions/printf.texi: Update.
46456         * doc/posix-functions/snprintf.texi: Update.
46457         * doc/posix-functions/sprintf.texi: Update.
46458         * doc/posix-functions/vfprintf.texi: Update.
46459         * doc/posix-functions/vprintf.texi: Update.
46460         * doc/posix-functions/vsnprintf.texi: Update.
46461         * doc/posix-functions/vsprintf.texi: Update.
46462         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46463
46464 2008-02-06  Bruno Haible  <bruno@clisp.org>
46465
46466         Fix bug introduced on 2008-01-26.
46467         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46468
46469 2008-02-06  Bruno Haible  <bruno@clisp.org>
46470
46471         Fix bug introduced on 2007-06-10.
46472         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
46473         !NEED_PRINTF_FLAG_ZERO.
46474
46475 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
46476
46477         getloadavg: use libperfstat on AIX5
46478         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
46479
46480 2008-02-03  Bruno Haible  <bruno@clisp.org>
46481
46482         * lib/diffseq.h: Add comments about required #includes.
46483         Reported by Michael Biggs <gnulib@doubleplum.net>.
46484
46485 2008-02-01  Bruno Haible  <bruno@clisp.org>
46486
46487         * users.txt: Add gnuit.
46488
46489 2008-01-31  Bruno Haible  <bruno@clisp.org>
46490
46491         * lib/md4.c (set_uint32): Mark as inline.
46492         * lib/md5.c (set_uint32): Likewise.
46493         * lib/sha1.c (set_uint32): Likewise.
46494         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
46495         * m4/md5.m4 (gl_MD5): Likewise.
46496         * m4/sha1.m4 (gl_SHA1): Likewise.
46497
46498 2008-01-31  Jim Meyering  <meyering@redhat.com>
46499
46500         Use "sizeof VAR", rather than a literal "4".
46501         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
46502         * lib/md4.c (md4_read_ctx): Likewise.
46503         * lib/sha1.c (sha1_read_ctx): Likewise.
46504
46505 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46506
46507         * tests/test-sha1.c: New file, based on test-md5.c.
46508
46509         * modules/crypto/sha1-tests: New file.
46510
46511 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46512
46513         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
46514
46515 2008-01-31  Jim Meyering  <meyering@redhat.com>
46516
46517         Prefer "sizeof v" over the equivalent "4".
46518         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
46519         * lib/md5.c (set_uint32): Likewise.
46520         * lib/sha1.c (set_uint32): Likewise.
46521
46522 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46523
46524         * lib/sha1.c (set_uint32): Mark function as static.
46525
46526 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46527
46528         md2: clarify comments to say that alignment is not required.
46529         * lib/md2.h: Remove warning about alignment in comment.
46530         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
46531         never been required.
46532
46533 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46534
46535         md4: adapt alignment constraint fix from sha1.
46536         * lib/md4.c (set_uint32): New function, from sha1.c
46537         (md4_read_ctx): Use it.
46538         (md4_finish_ctx): Doc fix.
46539         * lib/md4.h: Doc fix.
46540
46541 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46542
46543         md5: adapt alignment constraint fix from sha1.
46544         * lib/md5.c (set_uint32): New function, from sha1.c
46545         (md5_read_ctx): Use it.
46546         (md5_finish_ctx): Doc fix.
46547         * lib/md5.h: Doc fix.
46548
46549 2008-01-30  Peter Palfrader  <weasel@debian.org>
46550
46551         sha1: remove the result buffer alignment constraint
46552         * lib/sha1.c (set_uint32): New function.
46553         (sha1_read_ctx): Rewrite to remove the result buffer alignment
46554         constraint.
46555         (sha1_finish_ctx): Remove comment warning about alignment constraint.
46556         * lib/sha1.h: Likewise.
46557
46558 2008-01-30  Andreas Schwab  <schwab@suse.de>
46559             Bruno Haible  <bruno@clisp.org>
46560
46561         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46562         correct definition of LDBL_MIN_EXP.
46563
46564 2008-01-30  Karl Berry  <karl@gnu.org>
46565
46566         * config/srclist-update: try to preserve x bit on updates.
46567         * config/srclistvars.sh: update for karl.
46568
46569 2008-01-29  Jim Meyering  <meyering@redhat.com>
46570
46571         vasnprintf.c: Avoid warning about unused label
46572         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46573         "overflow" label definition and associated code with the
46574         same cpp condition that guards the sole use of that label.
46575
46576 2008-01-26  Bruno Haible  <bruno@clisp.org>
46577
46578         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46579         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46580         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46581         * lib/isnanl-nolibm.h (isnanl): Likewise.
46582         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46583
46584 2008-01-26  Bruno Haible  <bruno@clisp.org>
46585
46586         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46587         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46588
46589 2008-01-26  Bruno Haible  <bruno@clisp.org>
46590
46591         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46592         GCC >= 4.0 built-in.
46593         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46594
46595 2008-01-26  Bruno Haible  <bruno@clisp.org>
46596
46597         Rename isnan, applicable to 'double' only, to isnand.
46598         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46599         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46600         (configure.ac): Update.
46601         (Include): Replace "isnan.h" with "isnand.h".
46602         * m4/isnand.m4: Renamed from m4/isnan.m4.
46603         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46604         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46605         instead of isnan.c.
46606         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46607         instead of HAVE_ISNAN_IN_LIBC.
46608         (isnand): Renamed from isnan.
46609         * lib/isnand.c: New file.
46610         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46611         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46612         (Makefile.am): Update.
46613         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46614         Include isnand.h instead of isnan.h.
46615         (main): Test isnand instead of isnan.
46616         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46617         isnan-nolibm.
46618         * modules/frexp (Depends-on): Likewise.
46619         * modules/frexp-tests (Depends-on): Likewise.
46620         * modules/frexp-nolibm (Depends-on): Likewise.
46621         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46622         * modules/isfinite (Depends-on): Likewise.
46623         * modules/round-tests (Depends-on): Likewise.
46624         * modules/signbit (Depends-on): Likewise.
46625         * modules/signbit-tests (Depends-on): Likewise.
46626         * modules/snprintf-posix (Depends-on): Likewise.
46627         * modules/sprintf-posix (Depends-on): Likewise.
46628         * modules/trunc-tests (Depends-on): Likewise.
46629         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46630         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46631         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46632         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46633         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46634         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46635         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46636         * modules/vasnprintf-posix (Depends-on): Likewise.
46637         * modules/vasprintf-posix (Depends-on): Likewise.
46638         * modules/vfprintf-posix (Depends-on): Likewise.
46639         * modules/vsnprintf-posix (Depends-on): Likewise.
46640         * modules/vsprintf-posix (Depends-on): Likewise.
46641         * lib/frexp.c: Include isnand.h instead of isnan.h.
46642         (ISNAN): Set to isnand instead of isnan.
46643         * lib/isfinite.c: Include isnand.h instead of isnan.h.
46644         (gl_isfinited): Use isnand instead of isnan.
46645         * lib/signbitd.c: Include isnand.h instead of isnan.h.
46646         (gl_signbitd): Use isnand instead of isnan.
46647         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
46648         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
46649         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
46650         (main): Use isnand instead of isnan.
46651         * tests/test-round1.c: Include isnand.h.
46652         (main): Use isnand instead of isnan.
46653         * tests/test-round2.c: Include isnand.h instead of isnan.h.
46654         (ISNAN): Set to isnand instead of isnan.
46655         * tests/test-trunc1.c: Include isnand.h.
46656         (main): Use isnand instead of isnan.
46657         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
46658         (equal): Use isnand instead of isnan.
46659         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
46660         isnand-nolibm.
46661         * NEWS: Mention the change.
46662
46663 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46664             Bruno Haible  <bruno@clisp.org>
46665
46666         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
46667         the GCC builtins for signbits are present and set
46668         REPLACE_SIGNBIT_USING_GCC if so.
46669         * lib/math.in.h (signbit): Define using GCC builtins if
46670         REPLACE_SIGNBIT_USING_GCC is set.
46671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
46672         REPLACE_SIGNBIT_USING_GCC.
46673         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
46674
46675 2008-01-25  Jim Meyering  <meyering@redhat.com>
46676
46677         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
46678         * lib/poll.c: Include <config.h>, not "config.h".
46679         * tests/test-getaddrinfo.c: Likewise.
46680
46681 2008-01-25  Simon Josefsson  <simon@josefsson.org>
46682
46683         * modules/sockets-tests: New file.
46684
46685 2008-01-24  Simon Josefsson  <simon@josefsson.org>
46686
46687         * modules/sockets: New module, can be used to call WSA_Startup and
46688         WSA_Cleanup when needed.
46689
46690         * lib/sockets.h, lib/sockets.c: New files.
46691
46692         * m4/sockets.m4: New file.
46693
46694         * tests/test-sockets.c: New file.
46695
46696 2008-01-19  Bruno Haible  <bruno@clisp.org>
46697
46698         * doc/posix-headers: Renamed from doc/headers.
46699         * doc/posix-functions: Renamed from doc/functions.
46700         * doc/gnulib.texi: Update.
46701
46702 2008-01-19  Bruno Haible  <bruno@clisp.org>
46703
46704         * doc/glibc-functions/strcasestr.texi: Include contents of
46705         doc/functions/strcasestr.texi, fixing the list of platforms.
46706         * doc/functions/strcasestr.texi: Remove file.
46707
46708 2008-01-19  Bruno Haible  <bruno@clisp.org>
46709
46710         * doc/glibc-functions/memmem.texi: Include contents of
46711         doc/functions/memmem.texi.
46712         * doc/functions/memmem.texi: Remove file.
46713
46714 2008-01-18  Bruno Haible  <bruno@clisp.org>
46715
46716         * doc/glibc-functions/*.texi: New files.
46717         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
46718         to use the new files.
46719
46720 2008-01-17  Bruno Haible  <bruno@clisp.org>
46721
46722         * tests/test-gethostname.c (main): Fix printf statement.
46723
46724 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46725
46726         * modules/gethostname-tests: New file.
46727
46728         * tests/test-gethostname.c: New file.
46729
46730 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46731
46732         * lib/gethostname.c: Include string.h unconditionally, strncpy is
46733         used by the UNAME case.  Reported by Bruno Haible
46734         <bruno@clisp.org>.
46735
46736 2008-01-17  Eric Blake  <ebb9@byu.net>
46737
46738         Convert c-strcasestr to be more efficient.
46739         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
46740         (Depends-on): Add c-strcase, remove malloca, strnlen.
46741         * tests/test-c-strcasestr.c (main): Enhance test.
46742         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
46743
46744 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46745
46746         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
46747         Use it in creating po/Makevars.
46748
46749 2008-01-15  Simon Josefsson  <simon@josefsson.org>
46750
46751         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
46752         Applications that requires it should initialize libgcrypt
46753         manually.
46754
46755 2008-01-16  Simon Josefsson  <simon@josefsson.org>
46756
46757         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
46758
46759 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
46760
46761         Fix problem with getdate on mingw32 reported by Simon Josefsson
46762         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
46763         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
46764         tzname", when deciding whether to declare tzname.
46765         * lib/strftime.c (tzname): Likewise.
46766
46767 2008-01-15  Bruno Haible  <bruno@clisp.org>
46768
46769         Work around a MacOS X 10.5 bug in frexpl().
46770         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
46771         * doc/functions/frexpl.texi: Document the bug.
46772         Reported by Elias Pipping <pipping@gentoo.org>.
46773
46774 2008-01-14  Eric Blake  <ebb9@byu.net>
46775
46776         Touch up previous patch.
46777         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
46778         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
46779
46780         Convert strcasestr module to use Two-Way algorithm.
46781         * modules/strcasestr-simple: New module, based on the old
46782         strcasestr, but with Two-Way rather than KMP.
46783         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
46784         * lib/string.in.h (rpl_strcasestr): Declare.
46785         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
46786         performance.
46787         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
46788         * modules/string (Makefile.am): Support strcasestr.
46789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46790         * modules/strcasestr-tests (Depends-on): Check for alarm.
46791         * tests/test-strcasestr.c: Augment test.
46792         * lib/str-two-way.h: Clean up stray macro.
46793         * NEWS: Document new module.
46794         * MODULES.html.sh (string handling): Likewise.
46795         * doc/functions/strcasestr.texi: New file.
46796         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
46797         here, since it is not a POSIX function.
46798
46799 2008-01-14  Colin Watson  <cjwatson@debian.org>
46800             Bruno Haible  <bruno@clisp.org>
46801
46802         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
46803         works fine; if not, set REPLACE_STRSIGNAL.
46804         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
46805         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46806         REPLACE_STRSIGNAL.
46807         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
46808         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
46809         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
46810
46811 2008-01-14  Bruno Haible  <bruno@clisp.org>
46812
46813         * modules/strsignal (Include): Change to <string.h>.
46814
46815 2008-01-14  Colin Watson  <cjwatson@debian.org>
46816
46817         * modules/argp (Notice): Add a notice recommending to change
46818         XGETTEXT_OPTIONS.
46819         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
46820
46821 2008-01-13  Colin Watson  <cjwatson@debian.org>
46822
46823         * modules/strsignal-tests: New file.
46824         * tests/test-strsignal.c: New file.
46825
46826         * lib/strsignal.c: New file, from glibc with modifications.
46827         * lib/siglist.h: New file, from glibc with modifications.
46828         * lib/string.in.h (strsignal): New declaration.
46829         * m4/strsignal.m4: New file.
46830         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46831         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
46832         * modules/strsignal: New file.
46833         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
46834         HAVE_DECL_STRSIGNAL.
46835
46836 2008-01-13  Bruno Haible  <bruno@clisp.org>
46837
46838         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
46839         locale encoding is not ASCII. Needed for OpenBSD 4.0.
46840         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46841         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46842
46843 2008-01-13  Bruno Haible  <bruno@clisp.org>
46844
46845         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
46846         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
46847         * lib/argp.h (__attribute__): Likewise.
46848         * lib/c-stack.c (__attribute__): Likewise.
46849         * lib/error.h (__attribute__): Likewise.
46850         * lib/fts.c (__attribute__): Likewise.
46851         * lib/openat.h (__attribute__): Likewise.
46852         * lib/stdio.in.h (__attribute__): Likewise.
46853         * lib/string.in.h (__attribute__): Likewise.
46854         * lib/utimens.c (__attribute__): Likewise.
46855         * lib/vasnprintf.h (__attribute__): Likewise.
46856         * lib/xalloc.h (__attribute__): Likewise.
46857         * lib/xprintf.h (__attribute__): Likewise.
46858         * lib/xstrtol.h (__attribute__): Likewise.
46859         * lib/xvasprintf.h (__attribute__): Likewise.
46860
46861 2008-01-12  Bruno Haible  <bruno@clisp.org>
46862
46863         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
46864         * doc/glibc-headers/a.out.texi: New file.
46865         * doc/glibc-headers/aliases.texi: New file.
46866         * doc/glibc-headers/alloca.texi: New file.
46867         * doc/glibc-headers/ar.texi: New file.
46868         * doc/glibc-headers/argp.texi: New file.
46869         * doc/glibc-headers/argz.texi: New file.
46870         * doc/glibc-headers/byteswap.texi: New file.
46871         * doc/glibc-headers/crypt.texi: New file.
46872         * doc/glibc-headers/endian.texi: New file.
46873         * doc/glibc-headers/envz.texi: New file.
46874         * doc/glibc-headers/err.texi: New file.
46875         * doc/glibc-headers/error.texi: New file.
46876         * doc/glibc-headers/execinfo.texi: New file.
46877         * doc/glibc-headers/fpu_control.texi: New file.
46878         * doc/glibc-headers/fstab.texi: New file.
46879         * doc/glibc-headers/fts.texi: New file.
46880         * doc/glibc-headers/getopt.texi: New file.
46881         * doc/glibc-headers/ieee754.texi: New file.
46882         * doc/glibc-headers/ifaddrs.texi: New file.
46883         * doc/glibc-headers/libintl.texi: New file.
46884         * doc/glibc-headers/mcheck.texi: New file.
46885         * doc/glibc-headers/mntent.texi: New file.
46886         * doc/glibc-headers/obstack.texi: New file.
46887         * doc/glibc-headers/paths.texi: New file.
46888         * doc/glibc-headers/printf.texi: New file.
46889         * doc/glibc-headers/pty.texi: New file.
46890         * doc/glibc-headers/resolv.texi: New file.
46891         * doc/glibc-headers/shadow.texi: New file.
46892         * doc/glibc-headers/sysexits.texi: New file.
46893         * doc/glibc-headers/ttyent.texi: New file.
46894
46895 2008-01-12  Jim Meyering  <meyering@redhat.com>
46896
46897         announce-gen: emit Gnulib's git-based version string.
46898         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
46899         New option --gnulib-version=V, where V is expected to be
46900         the output of running git describe in the gnulib directory.
46901         (get_tool_versions): Request feedback on xdelta.  I suspect it's
46902         not useful, and plan to stop publishing an xdelta file with each
46903         coreutils release.
46904
46905         * build-aux/announce-gen: Also check for lzma-compressed files.
46906
46907 2008-01-11  Bruno Haible  <bruno@clisp.org>
46908
46909         * tests/test-memmem.c (main): Increase maximum allowed time.
46910         * tests/test-strstr.c (main): Likewise.
46911
46912 2008-01-11  Bruno Haible  <bruno@clisp.org>
46913
46914         * doc/functions/memmem.texi: Add more precisions about platforms.
46915         * doc/functions/strstr.texi: Likewise.
46916
46917 2008-01-10  Eric Blake  <ebb9@byu.net>
46918
46919         * m4/strstr.m4: Delete cruft from copy-n-paste.
46920         Reported by Bruno Haible.
46921
46922 2008-01-10  Bruno Haible  <bruno@clisp.org>
46923
46924         Make c-strstr rely on strstr.
46925         * lib/c-strstr.c: Don't include str-kmp.h.
46926         (c_strstr): Define in terms of strstr.
46927         * modules/c-strstr (Files): Remove lib/str-kmp.h.
46928         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
46929
46930 2008-01-10  Bruno Haible  <bruno@clisp.org>
46931
46932         * doc/gnulib.texi (String Functions in C Locale): New section.
46933         * doc/c-ctype.texi: New file.
46934         * doc/c-strcase.texi: New file.
46935         * doc/c-strcaseeq.texi: New file.
46936         * doc/c-strcasestr.texi: New file.
46937         * doc/c-strstr.texi: New file.
46938         * doc/c-strtod.texi: New file.
46939         * doc/c-strtold.texi: New file.
46940
46941 2008-01-10  Eric Blake  <ebb9@byu.net>
46942
46943         * lib/relocatable.h: Fix a comment.
46944
46945 2008-01-10  Eric Blake  <ebb9@byu.net>
46946
46947         Share two-way algorithm.
46948         * lib/str-two-way.h: New file, merged from...
46949         * lib/memmem.c: ...here...
46950         * lib/strstr.c: ...and here.
46951         * modules/memmem (Files): Use it.
46952         * modules/strstr (Files): Likewise.
46953
46954         Avoid quadratic strstr implementations.
46955         * lib/strstr.c: New file.
46956         * m4/strstr.m4: Likewise.
46957         * modules/strstr: Likewise.
46958         * modules/strstr-tests: Likewise.
46959         * tests/test-strstr.c: Likewise.
46960         * lib/string.in.h (rpl_strstr): Declare.
46961         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
46962         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
46963         * modules/string (Makefile.am): Likewise.
46964         * MODULES.html.sh (string handling): Mention new module.
46965         * doc/functions/strstr.texi (strstr): Document the bug.
46966
46967 2008-01-10  Bruno Haible  <bruno@clisp.org>
46968
46969         * lib/relocatable.h (relocate): State whether result is freshly
46970         allocated or not.
46971         * lib/relocatable.c (relocate): Return a freshly allocated string
46972         instead of a pointer to a privately held string.
46973         Reported by Sylvain Beucler <beuc@gnu.org>.
46974
46975 2008-01-10  Colin Watson  <cjwatson@debian.org>
46976
46977         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
46978         s/S_ISNLK/S_ISLNK/.
46979
46980 2008-01-09  Bruno Haible  <bruno@clisp.org>
46981
46982         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
46983         and other files.
46984         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
46985         if it's only a guess.
46986         * modules/memmem: Simplify by depending on memmem-simple.
46987
46988 2008-01-09  Bruno Haible  <bruno@clisp.org>
46989
46990         Work around OpenBSD 4.0 tdelete() bug.
46991         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
46992         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
46993         macros and don't redefine the enum values.
46994         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
46995         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
46996         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
46997
46998 2008-01-09  Bruno Haible  <bruno@clisp.org>
46999
47000         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
47001         (main): Don't perform the tests if setlocale did not install a UTF-8
47002         locale. Needed on OpenBSD 4.0.
47003         * modules/wcwidth-tests (Depends-on): Add localcharset.
47004
47005 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47006
47007         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
47008         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
47009         * NEWS: announce this.
47010         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
47011
47012 2008-01-09  Simon Josefsson  <simon@josefsson.org>
47013         and Eric Blake  <ebb9@byu.net>
47014
47015         Add memmem-simple module.
47016         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
47017         (gl_FUNC_MEMMEM): Separate performance from presence checks.
47018         * modules/memmem-simple: New file.
47019         * modules/memmem (Description): Tweak.
47020         * MODULES.html.sh (string handling): Mention new module.
47021         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
47022         addressed by memmem-simple.
47023         * NEWS: Document the difference.
47024
47025 2008-01-09  Eric Blake  <ebb9@byu.net>
47026
47027         Give gcc some memmem optimization hints.
47028         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
47029         (strcasestr): Declare as pure.
47030         * modules/memmem (Maintainer): Claim my implementation.
47031
47032 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47033
47034         Support AIX 6.1 and higher.
47035         * build-aux/config.libpath: Likewise.
47036         * build-aux/config.rpath: Likewise.
47037
47038 2008-01-08  Jim Meyering  <meyering@redhat.com>
47039             Bruno Haible  <bruno@clisp.org>
47040
47041         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
47042         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
47043         Reported by Peter Fales in
47044         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
47045
47046 2008-01-08  Bruno Haible  <bruno@clisp.org>
47047
47048         * modules/unictype/category-of (Depends-on): Add
47049         unictype/category-none.
47050         * modules/unictype/category-and-tests (Depends-on): Add
47051         unictype/category-{L,N,Lu,Nd}.
47052         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
47053         * modules/unictype/category-or-tests (Depends-on): Add
47054         unictype/category-{L,N}.
47055         * modules/unictype/category-name-tests (Depends-on): Add
47056         unictype/category-{Z,Nl}.
47057         Reported by Simon Josefsson.
47058
47059 2008-01-08  Bruno Haible  <bruno@clisp.org>
47060
47061         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
47062         convention better.
47063         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
47064         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
47065         Reported by Peter Miller <millerp@canb.auug.org.au>.
47066
47067 2008-01-08  Eric Blake  <ebb9@byu.net>
47068
47069         Rewrite memmem to guarantee linear complexity without malloc.
47070         * lib/memmem.c (memmem): Use Two-Way rather than
47071         Knuth-Morris-Pratt, to allow O(1) space usage.
47072         (critical_factorization, two_way_short_needle)
47073         (two_way_long_needle): New functions.
47074         (knuth_morris_pratt): Delete.
47075         * modules/memmem (Depends-on): No longer need malloca or stdbool.
47076         Add stdint.
47077         * tests/test-memmem.c (main): Add tests for periodic needle and
47078         sublinear performance.
47079         * doc/functions/memmem.texi (memmem): Document other deficiencies
47080         in cygwin and older glibc.
47081
47082 2008-01-08  Bruno Haible  <bruno@clisp.org>
47083
47084         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
47085         augmentation.
47086
47087 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
47088
47089         Add a configure time option: --disable-acl.
47090         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
47091         AC_ARG_ENABLE(acl).
47092
47093 2008-01-06  Simon Josefsson  <simon@josefsson.org>
47094
47095         * tests/test-localename.c: Don't include obsolete "setenv.h".
47096
47097         * modules/localename-tests (Depends-on): Need unsetenv.
47098
47099 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47100
47101         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
47102
47103 2008-01-06  Colin Watson  <cjwatson@debian.org>
47104
47105         * users.txt: Add man-db.
47106
47107 2008-01-07  Bruno Haible  <bruno@clisp.org>
47108
47109         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
47110         previous section name.
47111
47112 2008-01-07  Bruno Haible  <bruno@clisp.org>
47113
47114         * lib/progname.c (set_program_name): Don't strip off a leading
47115         "lt-" prefix outside a .libs directory.
47116         Suggested by Paul Eggert.
47117
47118 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
47119             Bruno Haible  <bruno@clisp.org>
47120
47121         Improve memory cleanup in 'relocatable' module.
47122         * lib/relocatable.h (compute_curr_prefix): Change return type to
47123         'char *'.
47124         * lib/relocatable.c (compute_curr_prefix): Change return type to
47125         'char *'. Free curr_installdir after use.
47126         (relocate): Free curr_prefix_better after use.
47127         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
47128
47129 2008-01-01  Bruno Haible  <bruno@clisp.org>
47130
47131         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
47132         failure on older glibc systems.
47133         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47134
47135 2008-01-05  Eric Blake  <ebb9@byu.net>
47136
47137         Avoid quadratic system memmem.
47138         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
47139         Reported by Ralf Wildenhues.
47140
47141         Fix memmem test for mingw.
47142         * modules/memmem-tests (configure.ac): Check for alarm.
47143         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
47144         it.
47145         * doc/functions/memmem.texi: New file.
47146         * doc/gnulib.texi (Function Substitutes): Add memmem.
47147         Reported by Bruno Haible.
47148
47149 2008-01-04  Bruno Haible  <bruno@clisp.org>
47150
47151         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
47152         Require gl_HEADER_STRINGS_H_DEFAULTS, not
47153         gl_HEADER_STRING_H_DEFAULTS.
47154
47155 2008-01-04  Eric Blake  <ebb9@byu.net>
47156
47157         Shorten duration of memmem test.
47158         * tests/test-memmem.c (main): Use alarm to declare failure if test
47159         is taking too long.
47160         Reported by Ralf Wildenhues.
47161
47162 2007-12-21  Simon Josefsson  <simon@josefsson.org>
47163
47164         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
47165         string, needed by strerror.
47166
47167 2008-01-03  Colin Watson  <cjwatson@debian.org>
47168             Bruno Haible  <bruno@clisp.org>
47169
47170         * doc/gnulib-tool.texi (Localization): New section.
47171
47172 2008-01-02  Bruno Haible  <bruno@clisp.org>
47173
47174         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
47175         variables to 'unsigned char *' type.
47176         Reported by Paul Eggert.
47177
47178 2008-01-02  Jim Meyering  <jim@meyering.net>
47179
47180         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
47181
47182 2007-12-31  Jim Meyering  <jim@meyering.net>
47183
47184         Avoid use of private FTS type name.
47185         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
47186
47187 2007-12-30  Karl Berry  <karl@gnu.org>
47188
47189         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
47190         work around defect in Texinfo and/or the standalone Info browser.
47191
47192 2007-12-30  Bruno Haible  <bruno@clisp.org>
47193
47194         Unify 5 copies of the KMP code.
47195         * lib/str-kmp.h: New file.
47196         * lib/c-strcasestr.c: Include str-kmp.h.
47197         (knuth_morris_pratt): Remove function.
47198         (c_strcasestr): Update.
47199         * lib/c-strstr.c: Include str-kmp.h.
47200         (knuth_morris_pratt): Remove function.
47201         (c_strcasestr): Update.
47202         * lib/mbscasestr.c: Include str-kmp.h.
47203         (knuth_morris_pratt_unibyte): Remove function.
47204         * lib/mbsstr.c: Include str-kmp.h.
47205         (knuth_morris_pratt_unibyte): Remove function.
47206         * lib/strcasestr.c: Include str-kmp.h.
47207         (knuth_morris_pratt): Remove function.
47208         (strcasestr): Update.
47209         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
47210         * modules/c-strstr (Files): Likewise.
47211         * modules/mbscasestr (Files): Likewise.
47212         * modules/mbsstr (Files): Likewise.
47213         * modules/strcasestr (Files): Likewise.
47214         Suggested by Paul Eggert.
47215
47216 2007-12-30  Bruno Haible  <bruno@clisp.org>
47217
47218         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
47219         defined.
47220
47221 2007-12-30  Bruno Haible  <bruno@clisp.org>
47222
47223         * lib/xmalloca.h: Include xalloc.h.
47224         (xnmalloca): New macro.
47225
47226 2007-12-30  Bruno Haible  <bruno@clisp.org>
47227
47228         * lib/malloca.h (nmalloca): New macro.
47229         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
47230         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
47231         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
47232         knuth_morris_pratt_multibyte): Likewise.
47233         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
47234         knuth_morris_pratt_multibyte): Likewise.
47235         * lib/memmem.c (knuth_morris_pratt): Likewise.
47236         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
47237
47238 2007-12-25  Bruno Haible  <bruno@clisp.org>
47239
47240         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
47241         * lib/glob.c: Don't include openat.h.
47242         (link_exists2_p): Add back the code that deals with the
47243         !GLOB_ALTDIRFUNC case.
47244         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
47245         let it do the filename concatenation.
47246         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
47247         * modules/glob (Depends-on): Remove openat.
47248
47249 2007-12-31  Bruno Haible  <bruno@clisp.org>
47250
47251         * modules/dirfd (License): Change to LGPLv2+.
47252         Approved by Jim Meyering.
47253
47254 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47255
47256         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47257         when multiplying M by sizeof (size_t).
47258
47259 2007-12-10  Martin Lambers  <marlam@marlam.de>
47260
47261         Override getpagesize on mingw.
47262         * lib/getpagesize.c: New file.
47263         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47264         * modules/getpagesize (Files): Add lib/getpagesize.c.
47265         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47267         REPLACE_GETPAGESIZE.
47268         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47269
47270 2007-12-25  Bruno Haible  <bruno@clisp.org>
47271
47272         * modules/localcharset (Notice): New field.
47273         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47274         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47275
47276 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47277             Bruno Haible  <bruno@clisp.org>
47278
47279         Avoid using the syntax symbol() in formatted documentation.
47280         * MODULES.html.sh (func_module): When replacing symbol() with a
47281         hyperlink, remove the parentheses. Show an error if some remain.
47282         Recognize and render the '...' syntax.
47283         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47284         Rework. Add paragraph about GCC's inlining.
47285         * doc/alloca.texi: Likewise.
47286         * doc/error.texi: Remove parentheses from symbol reference.
47287         * doc/gnulib-intro.texi: Likewise.
47288         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47289         * modules/fnmatch (Description): Reword to say "the ... function".
47290         * modules/full-read (Description): Likewise.
47291         * modules/full-write (Description): Likewise.
47292         * modules/safe-read (Description): Likewise.
47293         * modules/safe-write (Description): Likewise.
47294         * modules/strchrnul (Description): Likewise.
47295         * modules/trim (Description): Likewise.
47296         * modules/error (Description): Remove parentheses from symbol
47297         references.
47298         * modules/verror (Description): Likewise.
47299         Reported by Karl Berry.
47300
47301 2007-12-25  Bruno Haible  <bruno@clisp.org>
47302
47303         Fixup after 2007-10-16 commit.
47304         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47305
47306 2007-12-24  Bruno Haible  <bruno@clisp.org>
47307
47308         Make --enable-relocatable work with DESTDIR.
47309         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47310         to compute installdir from destprog.
47311         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47312         also set the RELOC_DESTDIR variable.
47313         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47314
47315 2007-12-24  Bruno Haible  <bruno@clisp.org>
47316
47317         Fix link error due to xalloc_die().
47318         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47319         of xreadlink.
47320         * lib/relocwrapper.c: Update comments.
47321         * build-aux/install-reloc: Remove xreadlink.c from file list.
47322         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47323         xreadlink.c.
47324         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47325
47326 2007-12-24  Bruno Haible  <bruno@clisp.org>
47327
47328         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47329         * lib/setenv.h: Remove file.
47330         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47331         lib/setenv.h.
47332         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47333         (Depends-on): Add stdlib.
47334         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47335         gl_FUNC_UNSETENV.
47336         (Include): Replace setenv.h with <stdlib.h>.
47337         * modules/unsetenv: New file.
47338         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47339         * lib/unsetenv.c: Include <stdlib.h> first.
47340         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47341         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47342         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47343         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47344         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47345         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47347         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47348         * doc/functions/unsetenv.texi: Update.
47349         * modules/xsetenv (Depends-on): Add unsetenv.
47350         * modules/getdate (Depends-on): Likewise.
47351         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47352         * lib/xsetenv.c: Don't include setenv.h.
47353         * lib/getdate.y: Likewise.
47354         * lib/relocwrapper.c: Likewise.
47355         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47356         (Depends-on): Add stdlib.
47357         * NEWS: Mention the changes.
47358         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47359
47360 2007-12-23  Bruno Haible  <bruno@clisp.org>
47361
47362         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47363         indentation.
47364
47365 2007-12-23  Bruno Haible  <bruno@clisp.org>
47366
47367         * lib/c-strcasestr.c: Add more comments.
47368         * lib/c-strstr.c: Likewise.
47369         * lib/mbscasestr.c: Likewise.
47370         * lib/mbsstr.c: Likewise.
47371         * lib/strcasestr.c: Likewise.
47372         * lib/memmem.c: Likewise.
47373
47374 2007-12-23  Bruno Haible  <bruno@clisp.org>
47375
47376         * tests/test-memmem.c: Include <string.h> first.
47377
47378 2007-12-22  Bruno Haible  <bruno@clisp.org>
47379
47380         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47381         the contents of $testsbase.
47382         Reported by Ralf Wildenhues.
47383
47384 2007-12-22  Bruno Haible  <bruno@clisp.org>
47385
47386         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47387         two variables local_ldadd_before, local_ldadd_last.
47388
47389 2007-12-20  Eric Blake  <ebb9@byu.net>
47390
47391         Work around circular library issue when cross-compiling.
47392         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47393         that progname.o does not need to pull in rpl_memcmp.
47394
47395 2007-12-19  Eric Blake  <ebb9@byu.net>
47396
47397         Fix memmem to avoid O(n^2) worst-case complexity.
47398         * lib/memmem.c (knuth_morris_pratt): New function.
47399         (memmem): Use it if first few naive iterations fail.
47400         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47401         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47402         * modules/memchr (License): Likewise.
47403         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47404         malloca.
47405         * tests/test-memmem.c: Rewrite, borrowing ideas from
47406         test-mbsstr1.c; the old version wouldn't even compile!
47407         * modules/memmem-tests: New file.
47408         * lib/string.in.h (rpl_memmem): Add declaration.
47409         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47411         REPLACE_MEMMEM.
47412
47413 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47414
47415         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47416         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47417         before any system include files, and undef after them all.  This
47418         should fix a problem on VMS reported by John E. Malmberg in
47419         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47420
47421 2007-12-17  Eric Blake  <ebb9@byu.net>
47422
47423         Revert addition of verify, for BSD/OS.
47424         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47425         can't handle large files, for the sake of obsolete platforms.
47426         * modules/fseeko (Depends-on): Remove verify.
47427         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47428         * doc/functions/ftello.texi (ftello): Likewise.
47429         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47430         Reported by Larry Jones.
47431
47432 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47433
47434         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47435         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47436
47437 2007-12-17  Jim Meyering  <meyering@redhat.com>
47438
47439         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47440         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47441         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47442         * modules/getcwd (Depends-on): Add openat.
47443         Reported by Petr Salinger.
47444
47445 2007-12-17  Bruno Haible  <bruno@clisp.org>
47446
47447         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47448         avoid a segmentation fault of the configure test on x86_64 systems.
47449
47450 2007-12-15  Jim Meyering  <meyering@redhat.com>
47451
47452         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47453
47454 2007-12-13  Eric Blake  <ebb9@byu.net>
47455
47456         Another fseek test.
47457         * tests/test-fseek.c (main): Also test ungetc handling.
47458         * tests/test-fseeko.c (main): Likewise.
47459         * modules/fseeko (Depends-on): Add verify.
47460         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47461         large.
47462         Reported by Larry Jones.
47463
47464         Fix fseeko on mingw.
47465         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47466         seek.
47467
47468         Beef up fseek tests.
47469         * tests/test-fseek.c (main): Also test eof handling.
47470         * tests/test-fseeko.c (main): Likewise.
47471         Reported by Larry Jones.
47472
47473 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
47474
47475         Fix fseeko on BSD-based platforms.
47476         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
47477         successful seek.
47478
47479 2007-12-12  Eric Blake  <ebb9@byu.net>
47480
47481         Allow circular dependency of separate libtests.a
47482         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
47483         when use_libtests.
47484
47485 2007-12-11  Eric Blake  <ebb9@byu.net>
47486
47487         Fix bug with -0.0L in previous patch.
47488         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
47489         * tests/test-isnan.c (main): Also test on zeroes.
47490         * tests/test-isnanf.c (main): Likewise.
47491         * tests/test-isnanl.h (main): Likewise.
47492
47493         Detect pseudo-denormals on x86 even when cross-compiling.
47494         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
47495         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
47496         invalid bit patterns that happen to satisfy ==.
47497
47498         Avoid link failures with separate libtests.a.
47499         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
47500         last, to satisfy circular dependencies.
47501
47502 2007-12-11  Eric Blake  <ebb9@byu.net>
47503         and Bruno Haible  <bruno@clisp.org>
47504
47505         Fix OpenBSD 4.0 <float.h> handling of long double.
47506         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
47507         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
47508         * doc/headers/float.texi (float.h): Document OpenBSD bug.
47509
47510 2007-12-11  Jim Meyering  <meyering@redhat.com>
47511
47512         * users.txt: Add libvirt.
47513
47514         Support versions of autoconf prior to 2.59c.
47515         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
47516         if it is not already defined.
47517
47518 2007-12-09  Bruno Haible  <bruno@clisp.org>
47519
47520         Let 'gnulib-tool --import' collect sources needed for the tests in
47521         tests/ rather than in lib/.
47522         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
47523         argument. If true, add rules to generate libtests.a, and put libtests.a
47524         into $(LDADD). Consider source files in subdirectories and set
47525         uses_subdirs.
47526         (func_emit_initmacro_start, func_emit_initmacro_end,
47527         func_emit_initmacro_done): Pass all arguments explicitly.
47528         (func_import): Determine two module lists main_modules,
47529         testsrelated_modules. Determine use_libtests. Determine two variables
47530         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
47531         instead of just sed_transform_lib_file. Determine two variables
47532         main_files and testsrelated_files. Compute 'files' as the union of
47533         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
47534         func_add_or_update. In the generated gnulib-comp.m4, collect the
47535         object files for tests/ in different variables than those for lib/.
47536         Substitute LIBTESTS_LIBDEPS.
47537         (func_create_testdir): Combine the uses_subdirs results from
47538         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
47539
47540 2007-12-09  Bruno Haible  <bruno@clisp.org>
47541
47542         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
47543         the build-aux directory.
47544
47545 2007-12-09  Bruno Haible  <bruno@clisp.org>
47546
47547         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
47548         introduced on 2006-09-09.
47549
47550 2007-12-07  Jim Meyering  <meyering@redhat.com>
47551
47552         Let these macros work also with autoconf-2.59.
47553         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
47554         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
47555         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47556
47557 2007-12-06  Jim Meyering  <meyering@redhat.com>
47558
47559         Avoid a configure-time syntax error in gl_FUNC_ACL.
47560         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
47561         function in each branch, before testing the cache variable.
47562
47563 2007-12-04  Eric Blake  <ebb9@byu.net>
47564
47565         Make scripts executable.
47566         * build-aux/config.guess: Add execute permissions.
47567         * build-aux/config.sub: Likewise.
47568         * build-aux/gendocs.sh: Likewise.
47569
47570         Fix frexp on mingw.
47571         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47572         cross-compiling.
47573         * doc/functions/frexp.texi (frexp): Document the bug.
47574
47575         Make cygwin fseeko check more reliable.
47576         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47577         version numbers, rather than unrelated feature check.
47578         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47579         * doc/functions/ftello.texi (ftello): Likewise.
47580         Reported by Bruno Haible.
47581
47582         * m4/strerror.m4: Bump version number.
47583
47584 2007-12-03  Bruno Haible  <bruno@clisp.org>
47585
47586         * doc/functions/mprotect.texi: Mention the mingw problem.
47587
47588 2007-12-03  Eric Blake  <ebb9@byu.net>
47589
47590         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47591         REPLACE_STRERROR is initialized before this macro.
47592
47593 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47594
47595         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47596         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47597         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47598         put -lsec in even for programs other than 'ls'.  This fixes a problem
47599         for gettext reported by Bruno Haible in
47600         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47601         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47602         Add support for Solaris 10.  This isn't efficient, but should get the
47603         job done for now.
47604
47605 2007-12-03  James Youngman  <jay@gnu.org>
47606
47607         * doc/regexprops-generic.texi: change "an close-group" to "a
47608         close-group" and "illegal" to "not allowed".
47609
47610 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47611
47612         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47613         pr_byname.h. Needed for the rare case when the maintainer has done
47614         "make maintainer-clean" in the source directory and then attempts a
47615         build outside the source directory.
47616         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47617         scripts_byname.h.
47618
47619 2007-12-02  Martin Lambers <marlam@marlam.de>
47620             Bruno Haible  <bruno@clisp.org>
47621
47622         * lib/getpagesize.h: Remove file.
47623         * lib/unistd.in.h: Include declaration of getpagesize here.
47624         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47625         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47626         HAVE_SYS_PARAM_H.
47627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47628         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47629         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47630         (Depends-on): Add unistd.
47631         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47632         (Include): Use <unistd.h> instead of getpagesize.h.
47633         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47634         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47635         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
47636         gl_GETPAGESIZE invocation, already handled by module dependency.
47637         * lib/pagealign_alloc.c: Don't include getpagesize.h.
47638
47639 2007-12-02  Bruno Haible  <bruno@clisp.org>
47640
47641         * modules/strings-tests: New file.
47642         * tests/test-strings.c: New file.
47643
47644         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
47645         * lib/strings.in.h: New file.
47646         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
47647         * m4/strings_h.m4: New file.
47648         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
47649         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
47650         * modules/strings: New file.
47651         * modules/string (Makefile.am): Update.
47652         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
47653         Reported by Karl Berry.
47654
47655 2007-12-01  Eric Blake  <ebb9@byu.net>
47656
47657         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
47658         accomodate fix in cygwin 1.5.25.
47659
47660 2007-12-01  Jim Meyering  <meyering@redhat.com>
47661
47662         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
47663         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
47664         that would inhibit utf8-optimization of a regexp containing line-
47665         or buffer-anchors, e.g., `^', `$'.
47666
47667 2007-11-30  Bruno Haible  <bruno@clisp.org>
47668
47669         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
47670         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
47671         glthread_recursive_lock_init.
47672         * lib/lock.c (glthread_recursive_lock_init)
47673         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
47674         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47675
47676 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
47677
47678         New function qset_acl, like set_acl but with syscall semantics.
47679         * lib/acl.h (qset_acl): New decl.
47680         * lib/acl.c (qset_acl): New function.
47681         (set_acl): Use new function.  Use more-consistent diagnostics.
47682
47683 2007-11-28  Jim Meyering  <meyering@redhat.com>
47684
47685         * modules/physmem (License): Change from GPL to LGPLv2+.
47686
47687 2007-11-26  Bruno Haible  <bruno@clisp.org>
47688
47689         * lib/vasnprintf.c (decode_long_double): Don't abort if the
47690         'long double' type has excess precision.
47691         Reported by Jim Meyering in
47692         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
47693
47694 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47695
47696         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
47697         Sync from <http://gnu.org/licenses>.
47698         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
47699         with license text from same location.
47700         * doc/maintain.texi, doc/standards.texi:  Sync from
47701         <http://savannah.gnu.org/projects/gnustandards>.
47702
47703 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
47704         and Jim Meyering  <meyering@redhat.com>
47705
47706         Adjust getdate' grammar to accept a slightly more regular language.
47707         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
47708         Before, the former was rejected.
47709         * lib/getdate.y (digits_to_date_time): New function, factored
47710         out of ...
47711         (number): ...here.  Just call digits_to_date_time.
47712         (hybrid): New non-terminal to handle an <unsigned number,
47713         signed relative offset> sequence consistently.
47714
47715 2007-11-18  Jim Meyering  <meyering@redhat.com>
47716
47717         Pull my changes from coreutils:
47718         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
47719         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
47720         use of $gnulib_tool_option_extras, so that it's separated from the
47721         preceding argument.
47722
47723         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
47724         * build-aux/bootstrap (cp_mark_as_generated): Create any required
47725         parent destination directories before copying a file into place.
47726
47727 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47728
47729         bootstrap: work also with 4-argument variant of AC_INIT
47730         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
47731
47732 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47733
47734         Port test-getaddrinfo to Solaris.
47735         Problem reported by Bruno Haible in
47736         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
47737         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
47738         explanation of setting 'hints'.
47739         Don't reject an implementation merely because it returns EAI_SERVICE.
47740         (EAI_SERVICE): Define to 0 if not defined.
47741
47742 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47743
47744         The license of gnu-make and posix-shell is now "GPLed build tool".
47745         * modules/gnu-make (License): Likewise.
47746         * modules/posix-shell (License): Likewise.
47747
47748         New module posix-shell, for determining a POSIX shell
47749         or perhaps something that is close enough to a POSIX shell.
47750         * m4/posix-shell.m4: New file.
47751         * modules/posix-shell: New file.
47752
47753         * MODULES.html.sh: Mention new module.
47754
47755         New module gnu-make, for determining whether we're using GNU Make.
47756         * m4/gnu-make.m4: New file.
47757         * modules/gnu-make: New file.
47758         * MODULES.html.sh: Mention new module.
47759
47760 2007-11-14  Jim Meyering  <meyering@redhat.com>
47761
47762         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
47763         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
47764         use this macro to create a function _definition_.
47765         Remove useless "#undef ARGMATCH_DIE".
47766
47767 2007-11-14  Bruno Haible  <bruno@clisp.org>
47768
47769         * lib/config.charset: Update for OpenBSD 4.1.
47770         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
47771
47772 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
47773
47774         Document 64-bit #if problems in stdint.texi.
47775         * doc/headers/stdint.texi (stdint.h): Mention problems with
47776         64-bit-#if, and how to work around them.
47777
47778         Don't insist on 'long long int' support in the preprocessor.  It
47779         breaks too many things.  For example, PRIdMAX still uses a 'long
47780         long int' format with the latest Sun compiler, even though
47781         HAVE_LONG_LONG_INT isn't defined due to that compiler's
47782         preprocessor problem.  This causes the latest coreutils to dump
47783         core on Solaris 10 sparc with the Sun C compiler.
47784         Instead, fix the 2007-10-16 problem in a different way, by evaluating
47785         the troublesome expressions at configure-time, not at #if-time.
47786         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
47787         preprocessor.
47788         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
47789         compile-time C checks, done at 'configure'-time.
47790         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
47791         * modules/inttypes (Makefile): Substitute the new symbols that
47792         gl_INTTYPES_H now generates.
47793         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
47794
47795 2007-11-12  Bruno Haible  <bruno@clisp.org>
47796
47797         Tests for Unicode character classification functions.
47798
47799         * modules/unictype/bidicategory-byname-tests: New file.
47800         * modules/unictype/bidicategory-name-tests: New file.
47801         * modules/unictype/bidicategory-of-tests: New file.
47802         * modules/unictype/bidicategory-test-tests: New file.
47803         * modules/unictype/block-list-tests: New file.
47804         * modules/unictype/block-of-tests: New file.
47805         * modules/unictype/block-test-tests: New file.
47806         * modules/unictype/category-C-tests: New file.
47807         * modules/unictype/category-Cc-tests: New file.
47808         * modules/unictype/category-Cf-tests: New file.
47809         * modules/unictype/category-Cn-tests: New file.
47810         * modules/unictype/category-Co-tests: New file.
47811         * modules/unictype/category-Cs-tests: New file.
47812         * modules/unictype/category-L-tests: New file.
47813         * modules/unictype/category-Ll-tests: New file.
47814         * modules/unictype/category-Lm-tests: New file.
47815         * modules/unictype/category-Lo-tests: New file.
47816         * modules/unictype/category-Lt-tests: New file.
47817         * modules/unictype/category-Lu-tests: New file.
47818         * modules/unictype/category-M-tests: New file.
47819         * modules/unictype/category-Mc-tests: New file.
47820         * modules/unictype/category-Me-tests: New file.
47821         * modules/unictype/category-Mn-tests: New file.
47822         * modules/unictype/category-N-tests: New file.
47823         * modules/unictype/category-Nd-tests: New file.
47824         * modules/unictype/category-Nl-tests: New file.
47825         * modules/unictype/category-No-tests: New file.
47826         * modules/unictype/category-P-tests: New file.
47827         * modules/unictype/category-Pc-tests: New file.
47828         * modules/unictype/category-Pd-tests: New file.
47829         * modules/unictype/category-Pe-tests: New file.
47830         * modules/unictype/category-Pf-tests: New file.
47831         * modules/unictype/category-Pi-tests: New file.
47832         * modules/unictype/category-Po-tests: New file.
47833         * modules/unictype/category-Ps-tests: New file.
47834         * modules/unictype/category-S-tests: New file.
47835         * modules/unictype/category-Sc-tests: New file.
47836         * modules/unictype/category-Sk-tests: New file.
47837         * modules/unictype/category-Sm-tests: New file.
47838         * modules/unictype/category-So-tests: New file.
47839         * modules/unictype/category-Z-tests: New file.
47840         * modules/unictype/category-Zl-tests: New file.
47841         * modules/unictype/category-Zp-tests: New file.
47842         * modules/unictype/category-Zs-tests: New file.
47843         * modules/unictype/category-and-not-tests: New file.
47844         * modules/unictype/category-and-tests: New file.
47845         * modules/unictype/category-byname-tests: New file.
47846         * modules/unictype/category-name-tests: New file.
47847         * modules/unictype/category-none-tests: New file.
47848         * modules/unictype/category-of-tests: New file.
47849         * modules/unictype/category-or-tests: New file.
47850         * modules/unictype/category-test-withtable-tests: New file.
47851         * modules/unictype/combining-class-tests: New file.
47852         * modules/unictype/ctype-alnum-tests: New file.
47853         * modules/unictype/ctype-alpha-tests: New file.
47854         * modules/unictype/ctype-blank-tests: New file.
47855         * modules/unictype/ctype-cntrl-tests: New file.
47856         * modules/unictype/ctype-digit-tests: New file.
47857         * modules/unictype/ctype-graph-tests: New file.
47858         * modules/unictype/ctype-lower-tests: New file.
47859         * modules/unictype/ctype-print-tests: New file.
47860         * modules/unictype/ctype-punct-tests: New file.
47861         * modules/unictype/ctype-space-tests: New file.
47862         * modules/unictype/ctype-upper-tests: New file.
47863         * modules/unictype/ctype-xdigit-tests: New file.
47864         * modules/unictype/decimal-digit-tests: New file.
47865         * modules/unictype/digit-tests: New file.
47866         * modules/unictype/mirror-tests: New file.
47867         * modules/unictype/numeric-tests: New file.
47868         * modules/unictype/property-alphabetic-tests: New file.
47869         * modules/unictype/property-ascii-hex-digit-tests: New file.
47870         * modules/unictype/property-bidi-arabic-digit-tests: New file.
47871         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
47872         * modules/unictype/property-bidi-block-separator-tests: New file.
47873         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
47874         * modules/unictype/property-bidi-common-separator-tests: New file.
47875         * modules/unictype/property-bidi-control-tests: New file.
47876         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
47877         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
47878         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
47879         * modules/unictype/property-bidi-european-digit-tests: New file.
47880         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
47881         * modules/unictype/property-bidi-left-to-right-tests: New file.
47882         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
47883         * modules/unictype/property-bidi-other-neutral-tests: New file.
47884         * modules/unictype/property-bidi-pdf-tests: New file.
47885         * modules/unictype/property-bidi-segment-separator-tests: New file.
47886         * modules/unictype/property-bidi-whitespace-tests: New file.
47887         * modules/unictype/property-byname-tests: New file.
47888         * modules/unictype/property-combining-tests: New file.
47889         * modules/unictype/property-composite-tests: New file.
47890         * modules/unictype/property-currency-symbol-tests: New file.
47891         * modules/unictype/property-dash-tests: New file.
47892         * modules/unictype/property-decimal-digit-tests: New file.
47893         * modules/unictype/property-default-ignorable-code-point-tests: New file.
47894         * modules/unictype/property-deprecated-tests: New file.
47895         * modules/unictype/property-diacritic-tests: New file.
47896         * modules/unictype/property-extender-tests: New file.
47897         * modules/unictype/property-format-control-tests: New file.
47898         * modules/unictype/property-grapheme-base-tests: New file.
47899         * modules/unictype/property-grapheme-extend-tests: New file.
47900         * modules/unictype/property-grapheme-link-tests: New file.
47901         * modules/unictype/property-hex-digit-tests: New file.
47902         * modules/unictype/property-hyphen-tests: New file.
47903         * modules/unictype/property-id-continue-tests: New file.
47904         * modules/unictype/property-id-start-tests: New file.
47905         * modules/unictype/property-ideographic-tests: New file.
47906         * modules/unictype/property-ids-binary-operator-tests: New file.
47907         * modules/unictype/property-ids-trinary-operator-tests: New file.
47908         * modules/unictype/property-ignorable-control-tests: New file.
47909         * modules/unictype/property-iso-control-tests: New file.
47910         * modules/unictype/property-join-control-tests: New file.
47911         * modules/unictype/property-left-of-pair-tests: New file.
47912         * modules/unictype/property-line-separator-tests: New file.
47913         * modules/unictype/property-logical-order-exception-tests: New file.
47914         * modules/unictype/property-lowercase-tests: New file.
47915         * modules/unictype/property-math-tests: New file.
47916         * modules/unictype/property-non-break-tests: New file.
47917         * modules/unictype/property-not-a-character-tests: New file.
47918         * modules/unictype/property-numeric-tests: New file.
47919         * modules/unictype/property-other-alphabetic-tests: New file.
47920         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
47921         * modules/unictype/property-other-grapheme-extend-tests: New file.
47922         * modules/unictype/property-other-id-continue-tests: New file.
47923         * modules/unictype/property-other-id-start-tests: New file.
47924         * modules/unictype/property-other-lowercase-tests: New file.
47925         * modules/unictype/property-other-math-tests: New file.
47926         * modules/unictype/property-other-uppercase-tests: New file.
47927         * modules/unictype/property-paired-punctuation-tests: New file.
47928         * modules/unictype/property-paragraph-separator-tests: New file.
47929         * modules/unictype/property-pattern-syntax-tests: New file.
47930         * modules/unictype/property-pattern-white-space-tests: New file.
47931         * modules/unictype/property-private-use-tests: New file.
47932         * modules/unictype/property-punctuation-tests: New file.
47933         * modules/unictype/property-quotation-mark-tests: New file.
47934         * modules/unictype/property-radical-tests: New file.
47935         * modules/unictype/property-sentence-terminal-tests: New file.
47936         * modules/unictype/property-soft-dotted-tests: New file.
47937         * modules/unictype/property-space-tests: New file.
47938         * modules/unictype/property-terminal-punctuation-tests: New file.
47939         * modules/unictype/property-test-tests: New file.
47940         * modules/unictype/property-titlecase-tests: New file.
47941         * modules/unictype/property-unassigned-code-value-tests: New file.
47942         * modules/unictype/property-unified-ideograph-tests: New file.
47943         * modules/unictype/property-uppercase-tests: New file.
47944         * modules/unictype/property-variation-selector-tests: New file.
47945         * modules/unictype/property-white-space-tests: New file.
47946         * modules/unictype/property-xid-continue-tests: New file.
47947         * modules/unictype/property-xid-start-tests: New file.
47948         * modules/unictype/property-zero-width-tests: New file.
47949         * modules/unictype/scripts-tests: New file.
47950         * modules/unictype/syntax-c-ident-tests: New file.
47951         * modules/unictype/syntax-c-whitespace-tests: New file.
47952         * modules/unictype/syntax-java-ident-tests: New file.
47953         * modules/unictype/syntax-java-whitespace-tests: New file.
47954         * tests/unictype/test-bidi_byname.c: New file.
47955         * tests/unictype/test-bidi_name.c: New file.
47956         * tests/unictype/test-bidi_of.c: New file.
47957         * tests/unictype/test-bidi_test.c: New file.
47958         * tests/unictype/test-block_list.c: New file.
47959         * tests/unictype/test-block_of.c: New file.
47960         * tests/unictype/test-block_test.c: New file.
47961         * tests/unictype/test-categ_and.c: New file.
47962         * tests/unictype/test-categ_and_not.c: New file.
47963         * tests/unictype/test-categ_byname.c: New file.
47964         * tests/unictype/test-categ_name.c: New file.
47965         * tests/unictype/test-categ_none.c: New file.
47966         * tests/unictype/test-categ_of.c: New file.
47967         * tests/unictype/test-categ_or.c: New file.
47968         * tests/unictype/test-categ_test_withtable.c: New file.
47969         * tests/unictype/test-combining.c: New file.
47970         * tests/unictype/test-decdigit.c: New file.
47971         * tests/unictype/test-digit.c: New file.
47972         * tests/unictype/test-mirror.c: New file.
47973         * tests/unictype/test-numeric.c: New file.
47974         * tests/unictype/test-pr_byname.c: New file.
47975         * tests/unictype/test-pr_test.c: New file.
47976         * tests/unictype/test-predicate-part1.h: New file.
47977         * tests/unictype/test-predicate-part2.h: New file.
47978         * tests/unictype/test-scripts.c: New file.
47979         * tests/unictype/test-sy_c_ident.c: New file.
47980         * tests/unictype/test-sy_java_ident.c: New file.
47981
47982         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
47983         for Unicode 5.0.0.
47984         * tests/unictype/test-categ_Cc.c: Likewise.
47985         * tests/unictype/test-categ_Cf.c: Likewise.
47986         * tests/unictype/test-categ_Cn.c: Likewise.
47987         * tests/unictype/test-categ_Co.c: Likewise.
47988         * tests/unictype/test-categ_Cs.c: Likewise.
47989         * tests/unictype/test-categ_L.c: Likewise.
47990         * tests/unictype/test-categ_Ll.c: Likewise.
47991         * tests/unictype/test-categ_Lm.c: Likewise.
47992         * tests/unictype/test-categ_Lo.c: Likewise.
47993         * tests/unictype/test-categ_Lt.c: Likewise.
47994         * tests/unictype/test-categ_Lu.c: Likewise.
47995         * tests/unictype/test-categ_M.c: Likewise.
47996         * tests/unictype/test-categ_Mc.c: Likewise.
47997         * tests/unictype/test-categ_Me.c: Likewise.
47998         * tests/unictype/test-categ_Mn.c: Likewise.
47999         * tests/unictype/test-categ_N.c: Likewise.
48000         * tests/unictype/test-categ_Nd.c: Likewise.
48001         * tests/unictype/test-categ_Nl.c: Likewise.
48002         * tests/unictype/test-categ_No.c: Likewise.
48003         * tests/unictype/test-categ_P.c: Likewise.
48004         * tests/unictype/test-categ_Pc.c: Likewise.
48005         * tests/unictype/test-categ_Pd.c: Likewise.
48006         * tests/unictype/test-categ_Pe.c: Likewise.
48007         * tests/unictype/test-categ_Pf.c: Likewise.
48008         * tests/unictype/test-categ_Pi.c: Likewise.
48009         * tests/unictype/test-categ_Po.c: Likewise.
48010         * tests/unictype/test-categ_Ps.c: Likewise.
48011         * tests/unictype/test-categ_S.c: Likewise.
48012         * tests/unictype/test-categ_Sc.c: Likewise.
48013         * tests/unictype/test-categ_Sk.c: Likewise.
48014         * tests/unictype/test-categ_Sm.c: Likewise.
48015         * tests/unictype/test-categ_So.c: Likewise.
48016         * tests/unictype/test-categ_Z.c: Likewise.
48017         * tests/unictype/test-categ_Zl.c: Likewise.
48018         * tests/unictype/test-categ_Zp.c: Likewise.
48019         * tests/unictype/test-categ_Zs.c: Likewise.
48020         * tests/unictype/test-ctype_alnum.c: Likewise.
48021         * tests/unictype/test-ctype_alpha.c: Likewise.
48022         * tests/unictype/test-ctype_blank.c: Likewise.
48023         * tests/unictype/test-ctype_cntrl.c: Likewise.
48024         * tests/unictype/test-ctype_digit.c: Likewise.
48025         * tests/unictype/test-ctype_graph.c: Likewise.
48026         * tests/unictype/test-ctype_lower.c: Likewise.
48027         * tests/unictype/test-ctype_print.c: Likewise.
48028         * tests/unictype/test-ctype_punct.c: Likewise.
48029         * tests/unictype/test-ctype_space.c: Likewise.
48030         * tests/unictype/test-ctype_upper.c: Likewise.
48031         * tests/unictype/test-ctype_xdigit.c: Likewise.
48032         * tests/unictype/test-decdigit.h: Likewise.
48033         * tests/unictype/test-digit.h: Likewise.
48034         * tests/unictype/test-numeric.h: Likewise.
48035         * tests/unictype/test-pr_alphabetic.c: Likewise.
48036         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
48037         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
48038         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
48039         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
48040         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
48041         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
48042         * tests/unictype/test-pr_bidi_control.c: Likewise.
48043         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
48044         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
48045         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
48046         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
48047         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
48048         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
48049         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
48050         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
48051         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
48052         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
48053         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
48054         * tests/unictype/test-pr_combining.c: Likewise.
48055         * tests/unictype/test-pr_composite.c: Likewise.
48056         * tests/unictype/test-pr_currency_symbol.c: Likewise.
48057         * tests/unictype/test-pr_dash.c: Likewise.
48058         * tests/unictype/test-pr_decimal_digit.c: Likewise.
48059         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
48060         * tests/unictype/test-pr_deprecated.c: Likewise.
48061         * tests/unictype/test-pr_diacritic.c: Likewise.
48062         * tests/unictype/test-pr_extender.c: Likewise.
48063         * tests/unictype/test-pr_format_control.c: Likewise.
48064         * tests/unictype/test-pr_grapheme_base.c: Likewise.
48065         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
48066         * tests/unictype/test-pr_grapheme_link.c: Likewise.
48067         * tests/unictype/test-pr_hex_digit.c: Likewise.
48068         * tests/unictype/test-pr_hyphen.c: Likewise.
48069         * tests/unictype/test-pr_id_continue.c: Likewise.
48070         * tests/unictype/test-pr_id_start.c: Likewise.
48071         * tests/unictype/test-pr_ideographic.c: Likewise.
48072         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
48073         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
48074         * tests/unictype/test-pr_ignorable_control.c: Likewise.
48075         * tests/unictype/test-pr_iso_control.c: Likewise.
48076         * tests/unictype/test-pr_join_control.c: Likewise.
48077         * tests/unictype/test-pr_left_of_pair.c: Likewise.
48078         * tests/unictype/test-pr_line_separator.c: Likewise.
48079         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
48080         * tests/unictype/test-pr_lowercase.c: Likewise.
48081         * tests/unictype/test-pr_math.c: Likewise.
48082         * tests/unictype/test-pr_non_break.c: Likewise.
48083         * tests/unictype/test-pr_not_a_character.c: Likewise.
48084         * tests/unictype/test-pr_numeric.c: Likewise.
48085         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
48086         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
48087         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
48088         * tests/unictype/test-pr_other_id_continue.c: Likewise.
48089         * tests/unictype/test-pr_other_id_start.c: Likewise.
48090         * tests/unictype/test-pr_other_lowercase.c: Likewise.
48091         * tests/unictype/test-pr_other_math.c: Likewise.
48092         * tests/unictype/test-pr_other_uppercase.c: Likewise.
48093         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
48094         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
48095         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
48096         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
48097         * tests/unictype/test-pr_private_use.c: Likewise.
48098         * tests/unictype/test-pr_punctuation.c: Likewise.
48099         * tests/unictype/test-pr_quotation_mark.c: Likewise.
48100         * tests/unictype/test-pr_radical.c: Likewise.
48101         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
48102         * tests/unictype/test-pr_soft_dotted.c: Likewise.
48103         * tests/unictype/test-pr_space.c: Likewise.
48104         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
48105         * tests/unictype/test-pr_titlecase.c: Likewise.
48106         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
48107         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
48108         * tests/unictype/test-pr_uppercase.c: Likewise.
48109         * tests/unictype/test-pr_variation_selector.c: Likewise.
48110         * tests/unictype/test-pr_white_space.c: Likewise.
48111         * tests/unictype/test-pr_xid_continue.c: Likewise.
48112         * tests/unictype/test-pr_xid_start.c: Likewise.
48113         * tests/unictype/test-pr_zero_width.c: Likewise.
48114         * tests/unictype/test-sy_c_whitespace.c: Likewise.
48115         * tests/unictype/test-sy_java_whitespace.c: Likewise.
48116
48117 2007-11-12  Bruno Haible  <bruno@clisp.org>
48118
48119         Unicode character classification functions.
48120         * lib/unictype.h: New file.
48121         * modules/unictype/base: New file.
48122         * modules/unictype/category-L: New file.
48123         * modules/unictype/category-Lu: New file.
48124         * modules/unictype/category-Ll: New file.
48125         * modules/unictype/category-Lt: New file.
48126         * modules/unictype/category-Lm: New file.
48127         * modules/unictype/category-Lo: New file.
48128         * modules/unictype/category-M: New file.
48129         * modules/unictype/category-Mn: New file.
48130         * modules/unictype/category-Mc: New file.
48131         * modules/unictype/category-Me: New file.
48132         * modules/unictype/category-N: New file.
48133         * modules/unictype/category-Nd: New file.
48134         * modules/unictype/category-Nl: New file.
48135         * modules/unictype/category-No: New file.
48136         * modules/unictype/category-P: New file.
48137         * modules/unictype/category-Pc: New file.
48138         * modules/unictype/category-Pd: New file.
48139         * modules/unictype/category-Ps: New file.
48140         * modules/unictype/category-Pe: New file.
48141         * modules/unictype/category-Pi: New file.
48142         * modules/unictype/category-Pf: New file.
48143         * modules/unictype/category-Po: New file.
48144         * modules/unictype/category-S: New file.
48145         * modules/unictype/category-Sm: New file.
48146         * modules/unictype/category-Sc: New file.
48147         * modules/unictype/category-Sk: New file.
48148         * modules/unictype/category-So: New file.
48149         * modules/unictype/category-Z: New file.
48150         * modules/unictype/category-Zs: New file.
48151         * modules/unictype/category-Zl: New file.
48152         * modules/unictype/category-Zp: New file.
48153         * modules/unictype/category-C: New file.
48154         * modules/unictype/category-Cc: New file.
48155         * modules/unictype/category-Cf: New file.
48156         * modules/unictype/category-Cs: New file.
48157         * modules/unictype/category-Co: New file.
48158         * modules/unictype/category-Cn: New file.
48159         * modules/unictype/category-or: New file.
48160         * modules/unictype/category-of: New file.
48161         * modules/unictype/category-test: New file.
48162         * modules/unictype/category-test-withtable: New file.
48163         * modules/unictype/category-byname: New file.
48164         * modules/unictype/category-none: New file.
48165         * modules/unictype/category-and: New file.
48166         * modules/unictype/category-and-not: New file.
48167         * modules/unictype/category-name: New file.
48168         * modules/unictype/combining-class: New file.
48169         * modules/unictype/category-all: New file.
48170         * modules/unictype/bidicategory-all: New file.
48171         * modules/unictype/bidicategory-byname: New file.
48172         * modules/unictype/bidicategory-name: New file.
48173         * modules/unictype/bidicategory-of: New file.
48174         * modules/unictype/bidicategory-test: New file.
48175         * modules/unictype/decimal-digit: New file.
48176         * modules/unictype/digit: New file.
48177         * modules/unictype/numeric: New file.
48178         * modules/unictype/mirror: New file.
48179         * modules/unictype/property-white-space: New file.
48180         * modules/unictype/property-alphabetic: New file.
48181         * modules/unictype/property-other-alphabetic: New file.
48182         * modules/unictype/property-not-a-character: New file.
48183         * modules/unictype/property-default-ignorable-code-point: New file.
48184         * modules/unictype/property-other-default-ignorable-code-point: New
48185         file.
48186         * modules/unictype/property-deprecated: New file.
48187         * modules/unictype/property-logical-order-exception: New file.
48188         * modules/unictype/property-variation-selector: New file.
48189         * modules/unictype/property-private-use: New file.
48190         * modules/unictype/property-unassigned-code-value: New file.
48191         * modules/unictype/property-uppercase: New file.
48192         * modules/unictype/property-other-uppercase: New file.
48193         * modules/unictype/property-lowercase: New file.
48194         * modules/unictype/property-other-lowercase: New file.
48195         * modules/unictype/property-titlecase: New file.
48196         * modules/unictype/property-soft-dotted: New file.
48197         * modules/unictype/property-id-start: New file.
48198         * modules/unictype/property-other-id-start: New file.
48199         * modules/unictype/property-id-continue: New file.
48200         * modules/unictype/property-other-id-continue: New file.
48201         * modules/unictype/property-xid-start: New file.
48202         * modules/unictype/property-xid-continue: New file.
48203         * modules/unictype/property-pattern-white-space: New file.
48204         * modules/unictype/property-pattern-syntax: New file.
48205         * modules/unictype/property-join-control: New file.
48206         * modules/unictype/property-grapheme-base: New file.
48207         * modules/unictype/property-grapheme-extend: New file.
48208         * modules/unictype/property-other-grapheme-extend: New file.
48209         * modules/unictype/property-grapheme-link: New file.
48210         * modules/unictype/property-bidi-control: New file.
48211         * modules/unictype/property-bidi-left-to-right: New file.
48212         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
48213         * modules/unictype/property-bidi-arabic-right-to-left: New file.
48214         * modules/unictype/property-bidi-european-digit: New file.
48215         * modules/unictype/property-bidi-eur-num-separator: New file.
48216         * modules/unictype/property-bidi-eur-num-terminator: New file.
48217         * modules/unictype/property-bidi-arabic-digit: New file.
48218         * modules/unictype/property-bidi-common-separator: New file.
48219         * modules/unictype/property-bidi-block-separator: New file.
48220         * modules/unictype/property-bidi-segment-separator: New file.
48221         * modules/unictype/property-bidi-whitespace: New file.
48222         * modules/unictype/property-bidi-non-spacing-mark: New file.
48223         * modules/unictype/property-bidi-boundary-neutral: New file.
48224         * modules/unictype/property-bidi-pdf: New file.
48225         * modules/unictype/property-bidi-embedding-or-override: New file.
48226         * modules/unictype/property-bidi-other-neutral: New file.
48227         * modules/unictype/property-hex-digit: New file.
48228         * modules/unictype/property-ascii-hex-digit: New file.
48229         * modules/unictype/property-ideographic: New file.
48230         * modules/unictype/property-unified-ideograph: New file.
48231         * modules/unictype/property-radical: New file.
48232         * modules/unictype/property-ids-binary-operator: New file.
48233         * modules/unictype/property-ids-trinary-operator: New file.
48234         * modules/unictype/property-zero-width: New file.
48235         * modules/unictype/property-space: New file.
48236         * modules/unictype/property-non-break: New file.
48237         * modules/unictype/property-iso-control: New file.
48238         * modules/unictype/property-format-control: New file.
48239         * modules/unictype/property-dash: New file.
48240         * modules/unictype/property-hyphen: New file.
48241         * modules/unictype/property-punctuation: New file.
48242         * modules/unictype/property-line-separator: New file.
48243         * modules/unictype/property-paragraph-separator: New file.
48244         * modules/unictype/property-quotation-mark: New file.
48245         * modules/unictype/property-sentence-terminal: New file.
48246         * modules/unictype/property-terminal-punctuation: New file.
48247         * modules/unictype/property-currency-symbol: New file.
48248         * modules/unictype/property-math: New file.
48249         * modules/unictype/property-other-math: New file.
48250         * modules/unictype/property-paired-punctuation: New file.
48251         * modules/unictype/property-left-of-pair: New file.
48252         * modules/unictype/property-combining: New file.
48253         * modules/unictype/property-composite: New file.
48254         * modules/unictype/property-decimal-digit: New file.
48255         * modules/unictype/property-numeric: New file.
48256         * modules/unictype/property-diacritic: New file.
48257         * modules/unictype/property-extender: New file.
48258         * modules/unictype/property-ignorable-control: New file.
48259         * modules/unictype/property-test: New file.
48260         * modules/unictype/property-byname: New file.
48261         * modules/unictype/property-all: New file.
48262         * modules/unictype/scripts: New file.
48263         * modules/unictype/scripts-all: New file.
48264         * modules/unictype/block-of: New file.
48265         * modules/unictype/block-test: New file.
48266         * modules/unictype/block-list: New file.
48267         * modules/unictype/block-all: New file.
48268         * modules/unictype/syntax-c-whitespace: New file.
48269         * modules/unictype/syntax-java-whitespace: New file.
48270         * modules/unictype/syntax-c-ident: New file.
48271         * modules/unictype/syntax-java-ident: New file.
48272         * modules/unictype/ctype-alnum: New file.
48273         * modules/unictype/ctype-alpha: New file.
48274         * modules/unictype/ctype-cntrl: New file.
48275         * modules/unictype/ctype-digit: New file.
48276         * modules/unictype/ctype-graph: New file.
48277         * modules/unictype/ctype-lower: New file.
48278         * modules/unictype/ctype-print: New file.
48279         * modules/unictype/ctype-punct: New file.
48280         * modules/unictype/ctype-space: New file.
48281         * modules/unictype/ctype-upper: New file.
48282         * modules/unictype/ctype-xdigit: New file.
48283         * modules/unictype/ctype-blank: New file.
48284         * lib/unictype/bidi_byname.c: New file.
48285         * lib/unictype/bidi_name.c: New file.
48286         * lib/unictype/bidi_of.c: New file.
48287         * lib/unictype/bidi_test.c: New file.
48288         * lib/unictype/bitmap.h: New file.
48289         * lib/unictype/block_test.c: New file.
48290         * lib/unictype/blocks.c: New file.
48291         * lib/unictype/categ_C.c: New file.
48292         * lib/unictype/categ_Cc.c: New file.
48293         * lib/unictype/categ_Cf.c: New file.
48294         * lib/unictype/categ_Cn.c: New file.
48295         * lib/unictype/categ_Co.c: New file.
48296         * lib/unictype/categ_Cs.c: New file.
48297         * lib/unictype/categ_L.c: New file.
48298         * lib/unictype/categ_Ll.c: New file.
48299         * lib/unictype/categ_Lm.c: New file.
48300         * lib/unictype/categ_Lo.c: New file.
48301         * lib/unictype/categ_Lt.c: New file.
48302         * lib/unictype/categ_Lu.c: New file.
48303         * lib/unictype/categ_M.c: New file.
48304         * lib/unictype/categ_Mc.c: New file.
48305         * lib/unictype/categ_Me.c: New file.
48306         * lib/unictype/categ_Mn.c: New file.
48307         * lib/unictype/categ_N.c: New file.
48308         * lib/unictype/categ_Nd.c: New file.
48309         * lib/unictype/categ_Nl.c: New file.
48310         * lib/unictype/categ_No.c: New file.
48311         * lib/unictype/categ_P.c: New file.
48312         * lib/unictype/categ_Pc.c: New file.
48313         * lib/unictype/categ_Pd.c: New file.
48314         * lib/unictype/categ_Pe.c: New file.
48315         * lib/unictype/categ_Pf.c: New file.
48316         * lib/unictype/categ_Pi.c: New file.
48317         * lib/unictype/categ_Po.c: New file.
48318         * lib/unictype/categ_Ps.c: New file.
48319         * lib/unictype/categ_S.c: New file.
48320         * lib/unictype/categ_Sc.c: New file.
48321         * lib/unictype/categ_Sk.c: New file.
48322         * lib/unictype/categ_Sm.c: New file.
48323         * lib/unictype/categ_So.c: New file.
48324         * lib/unictype/categ_Z.c: New file.
48325         * lib/unictype/categ_Zl.c: New file.
48326         * lib/unictype/categ_Zp.c: New file.
48327         * lib/unictype/categ_Zs.c: New file.
48328         * lib/unictype/categ_and.c: New file.
48329         * lib/unictype/categ_and_not.c: New file.
48330         * lib/unictype/categ_byname.c: New file.
48331         * lib/unictype/categ_name.c: New file.
48332         * lib/unictype/categ_none.c: New file.
48333         * lib/unictype/categ_of.c: New file.
48334         * lib/unictype/categ_or.c: New file.
48335         * lib/unictype/categ_test.c: New file.
48336         * lib/unictype/combining.c: New file.
48337         * lib/unictype/ctype_alnum.c: New file.
48338         * lib/unictype/ctype_alpha.c: New file.
48339         * lib/unictype/ctype_blank.c: New file.
48340         * lib/unictype/ctype_cntrl.c: New file.
48341         * lib/unictype/ctype_digit.c: New file.
48342         * lib/unictype/ctype_graph.c: New file.
48343         * lib/unictype/ctype_lower.c: New file.
48344         * lib/unictype/ctype_print.c: New file.
48345         * lib/unictype/ctype_punct.c: New file.
48346         * lib/unictype/ctype_space.c: New file.
48347         * lib/unictype/ctype_upper.c: New file.
48348         * lib/unictype/ctype_xdigit.c: New file.
48349         * lib/unictype/decdigit.c: New file.
48350         * lib/unictype/digit.c: New file.
48351         * lib/unictype/identsyntaxmap.h: New file.
48352         * lib/unictype/mirror.c: New file.
48353         * lib/unictype/numeric.c: New file.
48354         * lib/unictype/pr_alphabetic.c: New file.
48355         * lib/unictype/pr_ascii_hex_digit.c: New file.
48356         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48357         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48358         * lib/unictype/pr_bidi_block_separator.c: New file.
48359         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48360         * lib/unictype/pr_bidi_common_separator.c: New file.
48361         * lib/unictype/pr_bidi_control.c: New file.
48362         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48363         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48364         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48365         * lib/unictype/pr_bidi_european_digit.c: New file.
48366         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48367         * lib/unictype/pr_bidi_left_to_right.c: New file.
48368         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48369         * lib/unictype/pr_bidi_other_neutral.c: New file.
48370         * lib/unictype/pr_bidi_pdf.c: New file.
48371         * lib/unictype/pr_bidi_segment_separator.c: New file.
48372         * lib/unictype/pr_bidi_whitespace.c: New file.
48373         * lib/unictype/pr_byname.c: New file.
48374         * lib/unictype/pr_byname.gperf: New file.
48375         * lib/unictype/pr_combining.c: New file.
48376         * lib/unictype/pr_composite.c: New file.
48377         * lib/unictype/pr_currency_symbol.c: New file.
48378         * lib/unictype/pr_dash.c: New file.
48379         * lib/unictype/pr_decimal_digit.c: New file.
48380         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48381         * lib/unictype/pr_deprecated.c: New file.
48382         * lib/unictype/pr_diacritic.c: New file.
48383         * lib/unictype/pr_extender.c: New file.
48384         * lib/unictype/pr_format_control.c: New file.
48385         * lib/unictype/pr_grapheme_base.c: New file.
48386         * lib/unictype/pr_grapheme_extend.c: New file.
48387         * lib/unictype/pr_grapheme_link.c: New file.
48388         * lib/unictype/pr_hex_digit.c: New file.
48389         * lib/unictype/pr_hyphen.c: New file.
48390         * lib/unictype/pr_id_continue.c: New file.
48391         * lib/unictype/pr_id_start.c: New file.
48392         * lib/unictype/pr_ideographic.c: New file.
48393         * lib/unictype/pr_ids_binary_operator.c: New file.
48394         * lib/unictype/pr_ids_trinary_operator.c: New file.
48395         * lib/unictype/pr_ignorable_control.c: New file.
48396         * lib/unictype/pr_iso_control.c: New file.
48397         * lib/unictype/pr_join_control.c: New file.
48398         * lib/unictype/pr_left_of_pair.c: New file.
48399         * lib/unictype/pr_line_separator.c: New file.
48400         * lib/unictype/pr_logical_order_exception.c: New file.
48401         * lib/unictype/pr_lowercase.c: New file.
48402         * lib/unictype/pr_math.c: New file.
48403         * lib/unictype/pr_non_break.c: New file.
48404         * lib/unictype/pr_not_a_character.c: New file.
48405         * lib/unictype/pr_numeric.c: New file.
48406         * lib/unictype/pr_other_alphabetic.c: New file.
48407         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48408         * lib/unictype/pr_other_grapheme_extend.c: New file.
48409         * lib/unictype/pr_other_id_continue.c: New file.
48410         * lib/unictype/pr_other_id_start.c: New file.
48411         * lib/unictype/pr_other_lowercase.c: New file.
48412         * lib/unictype/pr_other_math.c: New file.
48413         * lib/unictype/pr_other_uppercase.c: New file.
48414         * lib/unictype/pr_paired_punctuation.c: New file.
48415         * lib/unictype/pr_paragraph_separator.c: New file.
48416         * lib/unictype/pr_pattern_syntax.c: New file.
48417         * lib/unictype/pr_pattern_white_space.c: New file.
48418         * lib/unictype/pr_private_use.c: New file.
48419         * lib/unictype/pr_punctuation.c: New file.
48420         * lib/unictype/pr_quotation_mark.c: New file.
48421         * lib/unictype/pr_radical.c: New file.
48422         * lib/unictype/pr_sentence_terminal.c: New file.
48423         * lib/unictype/pr_soft_dotted.c: New file.
48424         * lib/unictype/pr_space.c: New file.
48425         * lib/unictype/pr_terminal_punctuation.c: New file.
48426         * lib/unictype/pr_test.c: New file.
48427         * lib/unictype/pr_titlecase.c: New file.
48428         * lib/unictype/pr_unassigned_code_value.c: New file.
48429         * lib/unictype/pr_unified_ideograph.c: New file.
48430         * lib/unictype/pr_uppercase.c: New file.
48431         * lib/unictype/pr_variation_selector.c: New file.
48432         * lib/unictype/pr_white_space.c: New file.
48433         * lib/unictype/pr_xid_continue.c: New file.
48434         * lib/unictype/pr_xid_start.c: New file.
48435         * lib/unictype/pr_zero_width.c: New file.
48436         * lib/unictype/scripts.c: New file.
48437         * lib/unictype/sy_c_ident.c: New file.
48438         * lib/unictype/sy_c_whitespace.c: New file.
48439         * lib/unictype/sy_java_ident.c: New file.
48440         * lib/unictype/sy_java_whitespace.c: New file.
48441
48442         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48443         Unicode 5.0.0.
48444         * lib/unictype/blocks.h: Likewise.
48445         * lib/unictype/categ_C.h: Likewise.
48446         * lib/unictype/categ_Cc.h: Likewise.
48447         * lib/unictype/categ_Cf.h: Likewise.
48448         * lib/unictype/categ_Cn.h: Likewise.
48449         * lib/unictype/categ_Co.h: Likewise.
48450         * lib/unictype/categ_Cs.h: Likewise.
48451         * lib/unictype/categ_L.h: Likewise.
48452         * lib/unictype/categ_Ll.h: Likewise.
48453         * lib/unictype/categ_Lm.h: Likewise.
48454         * lib/unictype/categ_Lo.h: Likewise.
48455         * lib/unictype/categ_Lt.h: Likewise.
48456         * lib/unictype/categ_Lu.h: Likewise.
48457         * lib/unictype/categ_M.h: Likewise.
48458         * lib/unictype/categ_Mc.h: Likewise.
48459         * lib/unictype/categ_Me.h: Likewise.
48460         * lib/unictype/categ_Mn.h: Likewise.
48461         * lib/unictype/categ_N.h: Likewise.
48462         * lib/unictype/categ_Nd.h: Likewise.
48463         * lib/unictype/categ_Nl.h: Likewise.
48464         * lib/unictype/categ_No.h: Likewise.
48465         * lib/unictype/categ_P.h: Likewise.
48466         * lib/unictype/categ_Pc.h: Likewise.
48467         * lib/unictype/categ_Pd.h: Likewise.
48468         * lib/unictype/categ_Pe.h: Likewise.
48469         * lib/unictype/categ_Pf.h: Likewise.
48470         * lib/unictype/categ_Pi.h: Likewise.
48471         * lib/unictype/categ_Po.h: Likewise.
48472         * lib/unictype/categ_Ps.h: Likewise.
48473         * lib/unictype/categ_S.h: Likewise.
48474         * lib/unictype/categ_Sc.h: Likewise.
48475         * lib/unictype/categ_Sk.h: Likewise.
48476         * lib/unictype/categ_Sm.h: Likewise.
48477         * lib/unictype/categ_So.h: Likewise.
48478         * lib/unictype/categ_Z.h: Likewise.
48479         * lib/unictype/categ_Zl.h: Likewise.
48480         * lib/unictype/categ_Zp.h: Likewise.
48481         * lib/unictype/categ_Zs.h: Likewise.
48482         * lib/unictype/categ_of.h: Likewise.
48483         * lib/unictype/combining.h: Likewise.
48484         * lib/unictype/ctype_alnum.h: Likewise.
48485         * lib/unictype/ctype_alpha.h: Likewise.
48486         * lib/unictype/ctype_blank.h: Likewise.
48487         * lib/unictype/ctype_cntrl.h: Likewise.
48488         * lib/unictype/ctype_digit.h: Likewise.
48489         * lib/unictype/ctype_graph.h: Likewise.
48490         * lib/unictype/ctype_lower.h: Likewise.
48491         * lib/unictype/ctype_print.h: Likewise.
48492         * lib/unictype/ctype_punct.h: Likewise.
48493         * lib/unictype/ctype_space.h: Likewise.
48494         * lib/unictype/ctype_upper.h: Likewise.
48495         * lib/unictype/ctype_xdigit.h: Likewise.
48496         * lib/unictype/decdigit.h: Likewise.
48497         * lib/unictype/digit.h: Likewise.
48498         * lib/unictype/mirror.h: Likewise.
48499         * lib/unictype/numeric.h: Likewise.
48500         * lib/unictype/pr_alphabetic.h: Likewise.
48501         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
48502         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
48503         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
48504         * lib/unictype/pr_bidi_block_separator.h: Likewise.
48505         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
48506         * lib/unictype/pr_bidi_common_separator.h: Likewise.
48507         * lib/unictype/pr_bidi_control.h: Likewise.
48508         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
48509         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
48510         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
48511         * lib/unictype/pr_bidi_european_digit.h: Likewise.
48512         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
48513         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
48514         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
48515         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
48516         * lib/unictype/pr_bidi_pdf.h: Likewise.
48517         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
48518         * lib/unictype/pr_bidi_whitespace.h: Likewise.
48519         * lib/unictype/pr_combining.h: Likewise.
48520         * lib/unictype/pr_composite.h: Likewise.
48521         * lib/unictype/pr_currency_symbol.h: Likewise.
48522         * lib/unictype/pr_dash.h: Likewise.
48523         * lib/unictype/pr_decimal_digit.h: Likewise.
48524         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
48525         * lib/unictype/pr_deprecated.h: Likewise.
48526         * lib/unictype/pr_diacritic.h: Likewise.
48527         * lib/unictype/pr_extender.h: Likewise.
48528         * lib/unictype/pr_format_control.h: Likewise.
48529         * lib/unictype/pr_grapheme_base.h: Likewise.
48530         * lib/unictype/pr_grapheme_extend.h: Likewise.
48531         * lib/unictype/pr_grapheme_link.h: Likewise.
48532         * lib/unictype/pr_hex_digit.h: Likewise.
48533         * lib/unictype/pr_hyphen.h: Likewise.
48534         * lib/unictype/pr_id_continue.h: Likewise.
48535         * lib/unictype/pr_id_start.h: Likewise.
48536         * lib/unictype/pr_ideographic.h: Likewise.
48537         * lib/unictype/pr_ids_binary_operator.h: Likewise.
48538         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
48539         * lib/unictype/pr_ignorable_control.h: Likewise.
48540         * lib/unictype/pr_iso_control.h: Likewise.
48541         * lib/unictype/pr_join_control.h: Likewise.
48542         * lib/unictype/pr_left_of_pair.h: Likewise.
48543         * lib/unictype/pr_line_separator.h: Likewise.
48544         * lib/unictype/pr_logical_order_exception.h: Likewise.
48545         * lib/unictype/pr_lowercase.h: Likewise.
48546         * lib/unictype/pr_math.h: Likewise.
48547         * lib/unictype/pr_non_break.h: Likewise.
48548         * lib/unictype/pr_not_a_character.h: Likewise.
48549         * lib/unictype/pr_numeric.h: Likewise.
48550         * lib/unictype/pr_other_alphabetic.h: Likewise.
48551         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
48552         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
48553         * lib/unictype/pr_other_id_continue.h: Likewise.
48554         * lib/unictype/pr_other_id_start.h: Likewise.
48555         * lib/unictype/pr_other_lowercase.h: Likewise.
48556         * lib/unictype/pr_other_math.h: Likewise.
48557         * lib/unictype/pr_other_uppercase.h: Likewise.
48558         * lib/unictype/pr_paired_punctuation.h: Likewise.
48559         * lib/unictype/pr_paragraph_separator.h: Likewise.
48560         * lib/unictype/pr_pattern_syntax.h: Likewise.
48561         * lib/unictype/pr_pattern_white_space.h: Likewise.
48562         * lib/unictype/pr_private_use.h: Likewise.
48563         * lib/unictype/pr_punctuation.h: Likewise.
48564         * lib/unictype/pr_quotation_mark.h: Likewise.
48565         * lib/unictype/pr_radical.h: Likewise.
48566         * lib/unictype/pr_sentence_terminal.h: Likewise.
48567         * lib/unictype/pr_soft_dotted.h: Likewise.
48568         * lib/unictype/pr_space.h: Likewise.
48569         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48570         * lib/unictype/pr_titlecase.h: Likewise.
48571         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48572         * lib/unictype/pr_unified_ideograph.h: Likewise.
48573         * lib/unictype/pr_uppercase.h: Likewise.
48574         * lib/unictype/pr_variation_selector.h: Likewise.
48575         * lib/unictype/pr_white_space.h: Likewise.
48576         * lib/unictype/pr_xid_continue.h: Likewise.
48577         * lib/unictype/pr_xid_start.h: Likewise.
48578         * lib/unictype/pr_zero_width.h: Likewise.
48579         * lib/unictype/scripts.h: Likewise.
48580         * lib/unictype/scripts_byname.gperf: Likewise.
48581         * lib/unictype/sy_c_ident.h: Likewise.
48582         * lib/unictype/sy_c_whitespace.h: Likewise.
48583         * lib/unictype/sy_java_ident.h: Likewise.
48584         * lib/unictype/sy_java_whitespace.h: Likewise.
48585
48586         * lib/unictype/Makefile: New file.
48587         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48588         glibc.
48589         * lib/unictype/3level.h: New file, copied from glibc.
48590         * lib/unictype/3levelbit.h: New file.
48591
48592 2007-11-11  Bruno Haible  <bruno@clisp.org>
48593
48594         * modules/gperf: New file.
48595         * modules/iconv_open (Depends-on): Add it.
48596         (Makefile.am): Remove the GPERF definition.
48597
48598 2007-11-11  Bruno Haible  <bruno@clisp.org>
48599
48600         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48601         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48602
48603 2007-11-11  Bruno Haible  <bruno@clisp.org>
48604
48605         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48606         (usage): Remove function.
48607
48608 2007-11-11  Bruno Haible  <bruno@clisp.org>
48609
48610         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48611         gl_FUNC_CEILF_LIBS.
48612         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48613         gl_FUNC_CEIL_LIBS.
48614         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48615         gl_FUNC_CEILL_LIBS.
48616         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48617         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48618         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48619
48620 2007-11-11  Bruno Haible  <bruno@clisp.org>
48621
48622         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48623         roundf were declared but do not exist on functions.
48624         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48625         roundl were declared but do not exist on functions.
48626         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48627         HAVE_FLOORL_AND_CEILL, respectively.
48628         Needed for Sun C on Solaris 10.
48629
48630 2007-11-11  Bruno Haible  <bruno@clisp.org>
48631
48632         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48633         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48634         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48635         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
48636         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
48637         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
48638         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48639         HAVE_DECL_ROUNDF.
48640         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
48641         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
48642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
48643         of HAVE_DECL_ROUND*.
48644         * modules/math (Makefile.am): Update.
48645
48646 2007-11-10  Bruno Haible  <bruno@clisp.org>
48647
48648         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
48649         ptrdiff_t as m4/intl.m4.
48650
48651 2007-11-10  Jim Meyering  <meyering@redhat.com>
48652
48653         Avoid link failure for the argmatch test.
48654         * tests/test-argmatch.c (usage): Define function to avoid a link
48655         failure: argmatch_die requires a usage function.
48656
48657 2007-11-09  Bruno Haible  <bruno@clisp.org>
48658
48659         * doc/functions/snprintf.texi: Mention BeOS deficiency.
48660         * doc/functions/vsnprintf.texi: Likewise.
48661         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
48662         with a size argument < 2.
48663
48664 2007-11-09  Bruno Haible  <bruno@clisp.org>
48665
48666         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
48667         buffer. Fixes an inefficiency introduced on 2007-11-03.
48668
48669 2007-11-09  Bruno Haible  <bruno@clisp.org>
48670
48671         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
48672         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
48673
48674 2007-11-08  Jim Meyering  <meyering@redhat.com>
48675
48676         Change cache variable name prefix "jm_" to "gl_" everywhere.
48677         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
48678         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
48679         * m4/uptime.m4: s/gl_/jm_/
48680
48681 2007-11-07  Bruno Haible  <bruno@clisp.org>
48682
48683         Update to GNU gettext 0.17.
48684         * m4/intl.m4: Update to GNU gettext 0.17.
48685         * m4/po.m4: Likewise.
48686         * modules/gettext (Files): Remove m4/ulonglong.m4.
48687         (configure.ac): Require gettext infrastructure from version 0.17.
48688
48689 2007-11-06  Bruno Haible  <bruno@clisp.org>
48690
48691         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
48692         symbolic values are not defined in a public header.
48693         * lib/freadable.c (freadable) [QNX]: Likewise.
48694         * lib/freadahead.c (freadahead) [QNX]: Likewise.
48695         * lib/freading.c (freading) [QNX]: Likewise.
48696         * lib/fseterr.c (fseterr) [QNX]: Likewise.
48697         * lib/fwritable.c (fwritable) [QNX]: Likewise.
48698         * lib/fwriting.c (fwriting) [QNX]: Likewise.
48699         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
48700         Reported by Alain Magloire.
48701
48702         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
48703
48704 2007-11-05  Bruno Haible  <bruno@clisp.org>
48705
48706         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
48707         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
48708         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
48709         Reported by Eric Blake.
48710
48711 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48712             Bruno Haible  <bruno@clisp.org>
48713
48714         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
48715         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
48716         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
48717         (malloc): Undefine also before including <stdlib.h>.
48718         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
48719         Needed on OSF/1 4.0.
48720
48721 2007-11-05  Jim Meyering  <meyering@redhat.com>
48722
48723         git-version-gen: sync from coreutils.
48724         * build-aux/git-version-gen: Add comments.
48725         Change the first '-' to '.' in the snapshot version string,
48726         e.g., 6.9-377-08144 -> 6.9.377-08144
48727         Remove first parameter.
48728         Don't declare a version "-dirty" merely because a time
48729         stamp has changed.
48730
48731 2007-11-04  Bruno Haible  <bruno@clisp.org>
48732
48733         * lib/lock.h: Protect all macro definitions containing an 'if'
48734         statement through a "do { ... } while (0)".
48735         * lib/tls.h: Likewise.
48736
48737 2007-11-04  Bruno Haible  <bruno@clisp.org>
48738
48739         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
48740
48741 2007-11-04  Bruno Haible  <bruno@clisp.org>
48742
48743         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
48744         * modules/fprintf-posix (Depends-on): Add nocrash.
48745         * modules/snprintf-posix (Depends-on): Likewise.
48746         * modules/sprintf-posix (Depends-on): Likewise.
48747         * modules/vasnprintf-posix (Depends-on): Likewise.
48748         * modules/vasprintf-posix (Depends-on): Likewise.
48749         * modules/vfprintf-posix (Depends-on): Likewise.
48750         * modules/vsnprintf-posix (Depends-on): Likewise.
48751         * modules/vsprintf-posix (Depends-on): Likewise.
48752         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48753         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48754         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48755         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48756         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48757         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48758         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48759
48760 2007-11-04  Bruno Haible  <bruno@clisp.org>
48761
48762         * modules/nocrash: New file.
48763         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
48764         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
48765
48766 2007-11-04  Bruno Haible  <bruno@clisp.org>
48767
48768         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
48769         precision handling.
48770         * tests/test-vasprintf-posix.c (test_function): Likewise.
48771         * tests/test-snprintf-posix.h (test_function): Likewise.
48772         * tests/test-sprintf-posix.h (test_function): Likewise.
48773
48774         Fix *printf behaviour for large precisions on mingw and BeOS.
48775         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
48776         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
48777         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
48778         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48779         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48780         gl_PRINTF_PRECISION and test its result. Invoke
48781         gl_PREREQ_VASNPRINTF_PRECISION.
48782         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48783         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48784         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48785         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48786         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48787         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48788         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48789         * doc/functions/fprintf.texi: Update.
48790         * doc/functions/printf.texi: Update.
48791         * doc/functions/snprintf.texi: Update.
48792         * doc/functions/sprintf.texi: Update.
48793         * doc/functions/vfprintf.texi: Update.
48794         * doc/functions/vprintf.texi: Update.
48795         * doc/functions/vsnprintf.texi: Update.
48796         * doc/functions/vsprintf.texi: Update.
48797
48798 2007-11-04  Bruno Haible  <bruno@clisp.org>
48799
48800         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
48801
48802 2007-11-04  Bruno Haible  <bruno@clisp.org>
48803
48804         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
48805         Reported by Sylvain Beucler <beuc@gnu.org>.
48806
48807 2007-11-03  Bruno Haible  <bruno@clisp.org>
48808
48809         * tests/test-fprintf-posix2.sh: New file.
48810         * tests/test-fprintf-posix2.c: New file.
48811         * modules/fprintf-posix-tests (Files): Add them.
48812         (TESTS): Add test-fprintf-posix2.sh.
48813         (configure.ac): Check for getrlimit and setrlimit.
48814         (check_PROGRAMS): Add test-fprintf-posix2.
48815
48816         * tests/test-printf-posix2.sh: New file.
48817         * tests/test-printf-posix2.c: New file.
48818         * modules/printf-posix-tests (Files): Add them.
48819         (TESTS): Add test-printf-posix2.sh.
48820         (configure.ac): Check for getrlimit and setrlimit.
48821         (check_PROGRAMS): Add test-printf-posix2.
48822
48823         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
48824         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
48825         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
48826         (decode_double): New function, copied from decode_long_double.
48827         (scale10_round_decimal_decoded): New function, extracted from
48828         scale10_round_decimal_long_double.
48829         (scale10_round_decimal_long_double): Use it.
48830         (scale10_round_decimal_double): New function.
48831         (floorlog10): New function.
48832         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
48833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
48834         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48835         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48836         gl_PRINTF_ENOMEM and test its result. Invoke
48837         gl_PREREQ_VASNPRINTF_ENOMEM.
48838         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48839         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48840         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48841         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48842         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48843         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48844         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48845         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
48846         * modules/snprintf-posix (Depends-on): Likewise.
48847         * modules/sprintf-posix (Depends-on): Likewise.
48848         * modules/vasnprintf-posix (Depends-on): Likewise.
48849         * modules/vasprintf-posix (Depends-on): Likewise.
48850         * modules/vfprintf-posix (Depends-on): Likewise.
48851         * modules/vsnprintf-posix (Depends-on): Likewise.
48852         * modules/vsprintf-posix (Depends-on): Likewise.
48853         * doc/functions/fprintf.texi: Update.
48854         * doc/functions/printf.texi: Update.
48855         * doc/functions/snprintf.texi: Update.
48856         * doc/functions/sprintf.texi: Update.
48857         * doc/functions/vfprintf.texi: Update.
48858         * doc/functions/vprintf.texi: Update.
48859         * doc/functions/vsnprintf.texi: Update.
48860         * doc/functions/vsprintf.texi: Update.
48861
48862 2007-11-03  Bruno Haible  <bruno@clisp.org>
48863
48864         * modules/frexp-nolibm-tests: New file.
48865
48866         * modules/frexp-nolibm: New file.
48867         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
48868
48869 2007-11-03  Bruno Haible  <bruno@clisp.org>
48870
48871         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
48872         value is C99 compliant.
48873         Needed for OSF/1 5.1.
48874
48875 2007-11-03  Bruno Haible  <bruno@clisp.org>
48876
48877         Fix out-of-memory handling of vasnprintf.
48878         * lib/printf-parse.c: Include <errno.h>.
48879         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
48880         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
48881         is already set.
48882
48883 2007-11-02  Eric Blake  <ebb9@byu.net>
48884
48885         Fix tests on cygwin.
48886         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
48887
48888 2007-11-01  Bruno Haible  <bruno@clisp.org>
48889
48890         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
48891         warning.
48892         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
48893         needed for POSIX compatibility.
48894
48895 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
48896
48897         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
48898         for compatibility with GNU.
48899
48900 2007-11-01  Bruno Haible  <bruno@clisp.org>
48901
48902         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
48903         (putenv): Renamed from rpl_putenv. Change argument type from
48904         'const char *' to 'char *'.
48905         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
48906         of defining putenv in config.h, just set REPLACE_PUTENV.
48907         * modules/putenv (Depends-on): Add stdlib.
48908         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48909         (Include): Use <stdlib.h>.
48910         * lib/stdlib.in.h (putenv): New declaration.
48911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
48912         REPLACE_PUTENV.
48913         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
48914         REPLACE_PUTENV.
48915         Needed for MacOS X 10.5.0.
48916         Reported by Peter O'Gorman <peter@pogma.com>.
48917
48918 2007-11-01  Jim Meyering  <meyering@redhat.com>
48919
48920         Treat an empty date string exactly like "0".
48921         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
48922         if the remaining date string (to be parsed) is empty, use "0".
48923         Reported by Mischa Molhoek and discussed in this thread:
48924         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
48925
48926 2007-10-31  Bruno Haible  <bruno@clisp.org>
48927
48928         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
48929         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
48930         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
48931         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
48932         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
48933         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
48934
48935 2007-10-31  Bruno Haible  <bruno@clisp.org>
48936
48937         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
48938         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
48939         (AC_TYPE_LONG_LONG_INT): Use it.
48940         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
48941         it as well.
48942         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
48943         to m4/longlong.m4.
48944         * modules/stdint (Files): Remove m4/ulonglong.m4.
48945         * modules/strtoull (Files): Use m4/longlong.m4 instead of
48946         m4/ulonglong.m4.
48947         * modules/strtoumax (Files): Likewise.
48948
48949 2007-10-30  Bruno Haible  <bruno@clisp.org>
48950
48951         * modules/xvasprintf-posix: New file.
48952         Suggested by Eric Blake.
48953
48954 2007-10-30  Bruno Haible  <bruno@clisp.org>
48955
48956         * modules/xprintf-posix-tests: New file.
48957         * tests/test-xprintf-posix.sh: New file.
48958         * tests/test-xprintf-posix.c: New file.
48959         * tests/test-xfprintf-posix.c: New file.
48960
48961         * modules/xprintf-posix: New file.
48962
48963 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48964
48965         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
48966         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
48967         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
48968
48969 2007-10-29  Bruno Haible  <bruno@clisp.org>
48970
48971         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
48972         contain the special marker '_cv_'.
48973         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48974         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48975         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48976         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
48977         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48978         Reported by Ralf Wildenhues.
48979
48980 2007-10-29  Bruno Haible  <bruno@clisp.org>
48981
48982         * gnulib-tool (func_import): When --lgpl is not specified, set
48983         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
48984         GPLv3.
48985         Reported by Simon Josefsson.
48986
48987 2007-10-28  Bruno Haible  <bruno@clisp.org>
48988
48989         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
48990         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
48991         HAVE_DECL_ISFINITE.
48992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48993         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
48994         HAVE_DECL_ISFINITE.
48995
48996 2007-10-28  Bruno Haible  <bruno@clisp.org>
48997
48998         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
48999         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
49000
49001 2007-10-28  Bruno Haible  <bruno@clisp.org>
49002
49003         Fix link errors with Sun C 5.0 on Solaris 10.
49004         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
49005         function is declared but not present in the compiler's libm.
49006         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49007         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49008         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
49009         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
49010         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
49011         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
49012         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
49013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49014         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
49015         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
49016         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
49017         HAVE_DECL_FLOORL.
49018
49019 2007-10-28  Bruno Haible  <bruno@clisp.org>
49020
49021         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
49022         gl_FUNC_FLOORL. Cache the result.
49023         (gl_FUNC_FLOORL): Use it.
49024         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
49025         gl_FUNC_CEILL. Cache the result.
49026         (gl_FUNC_CEILL): Use it.
49027
49028         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
49029         gl_FUNC_FLOOR. Cache the result.
49030         (gl_FUNC_FLOOR): Use it.
49031         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
49032         gl_FUNC_CEIL. Cache the result.
49033         (gl_FUNC_CEIL): Use it.
49034
49035         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
49036         gl_FUNC_FLOORF. Cache the result.
49037         (gl_FUNC_FLOORF): Use it.
49038         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
49039         gl_FUNC_CEILF. Cache the result.
49040         (gl_FUNC_CEILF): Use it.
49041
49042 2007-10-28  Bruno Haible  <bruno@clisp.org>
49043
49044         * gnulib-tool: Allow specifying the LGPL version number through
49045         --lgpl=2 or --lgpl=3.
49046         (func_usage): Document --lgpl with argument.
49047         Handle --lgpl=... arguments.
49048         (func_import): Recognize also gl_LGPL calls with an argument. When
49049         --lgpl=2 is used and the module's license is just LGPL, report an
49050         error. Set sed_transform_lib_file according to the lgpl variable. In
49051         the generated files, use --lgpl or gl_LGPL invocations with argument,
49052         if necessary.
49053         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
49054         an LGPv2+ license.
49055         * doc/gnulib-tool.texi (Modified imports): Update explanation of
49056         gl_LGPL macro.
49057
49058 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49059             Bruno Haible  <bruno@clisp.org>
49060
49061         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
49062         (u16_uctomb_aux): Likewise.
49063         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
49064         !HAVE_INLINE.
49065         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
49066
49067 2007-10-28  Bruno Haible  <bruno@clisp.org>
49068
49069         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
49070         Invoke AM_GETTEXT_OPTION if it exists.
49071         * modules/vasprintf: Likewise.
49072         * modules/verror: Likewise.
49073         * modules/xprintf: Likewise.
49074         * modules/xvasprintf: Likewise.
49075
49076 2007-10-27  Ben Pfaff  <blp@gnu.org>
49077
49078         * lib/math.in.h: Define isfinite macro and prototypes for
49079         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
49080         implementations.
49081         * m4/math_h.m4: New substitutions for isfinite module.
49082         * lib/isfinite.c: New file.
49083         * m4/isfinite.m4: New file.
49084         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
49085         * modules/isfinite: New file.
49086         * modules/isfinite-tests: New file.
49087         * tests/tests-isfinite.c: New file.
49088         * doc/functions/isfinite.texi: Mention isfinite module.
49089         * MODULES.html.sh: Mention new module.
49090
49091 2007-10-27  Ben Pfaff  <blp@gnu.org>
49092
49093         Ralf Wildenhues reported that Tru64 4.0D declares the round
49094         functions but does not have definitions.
49095         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
49096         cannot be found in any library, set the output variable to
49097         "missing" instead of "".
49098         * m4/round.m4: Also use our substitute if we cannot find round in
49099         any library, even if it is declared.
49100         * m4/roundf.m4: Likewise for roundf.
49101         * m4/roundl.m4: Likewise for roundl.
49102         * lib/math.in.h: Undefine roundf, round, roundl before defining
49103         their replacements, to allow for hypothetical systems where these
49104         may be defined as macros but not available in libraries.
49105
49106 2007-10-27  Bruno Haible  <bruno@clisp.org>
49107
49108         * doc/gnulib.texi: Invoke @firstparagraphindent.
49109         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
49110         changes in gnulib.
49111         (Source changes): New section.
49112
49113 2007-10-26  Bruno Haible  <bruno@clisp.org>
49114
49115         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
49116         borrowed from autoconf.
49117
49118 2007-10-26  Bruno Haible  <bruno@clisp.org>
49119
49120         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
49121         strerror returned the empty string. Needed on HP-UX 11.00.
49122
49123 2007-10-24  Micah Cowan  <micah@cowan.name>
49124
49125         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
49126         * build-aux/bootstrap: Remove support for now-unnecessary option,
49127         --cvs-user, and envvars CVS_USER, CVS_RSH.
49128
49129 2007-10-24  Jim Meyering  <meyering@redhat.com>
49130
49131         Avoid diagnostics from sha1sum when there is no cached checksum.
49132         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
49133         if the po.s1 file hasn't been created yet.
49134
49135         * build-aux/bootstrap: Sync from coreutils:
49136         2007-10-24  Jim Meyering  <meyering@redhat.com>
49137         Get gnulib from the git repository, not from an obsolete cvs one.
49138         * build-aux/bootstrap: Suggestion from Micah Cowan.
49139         2007-10-04  Jim Meyering  <jim@meyering.net>
49140         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
49141         (update_po_files): Work also when there are no .po files in po/.
49142
49143 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49144
49145         * README: Append ".git" to git and cg examples.
49146         Problem reported by Benoit Sigoure.
49147
49148 2007-10-23  Micah Cowan  <micah@cowan.name>
49149
49150         * users.txt: Add wget.
49151
49152 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49153
49154         Fix linking of some unistdio tests on FreeBSD.
49155         * modules/unistdio/u16-vsnprintf-tests
49156         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
49157         * modules/unistdio/u16-vsprintf-tests
49158         (test_u16_vsnprintf1_LDADD): Likewise.
49159         * modules/unistdio/u32-vsnprintf-tests
49160         (test_u32_vsnprintf1_LDADD): Likewise.
49161         * modules/unistdio/u32-vsprintf-tests
49162         (test_u32_vsprintf1_LDADD): Likewise.
49163         * modules/unistdio/u8-vsnprintf-tests
49164         (test_u8_vsnprintf1_LDADD): Likewise.
49165         * modules/unistdio/u8-vsprintf-tests
49166         (test_u8_vsprintf1_LDADD): Likewise.
49167         * modules/unistdio/ulc-vsnprintf-tests
49168         (test_ulc_vsnprintf1_LDADD): Likewise.
49169         * modules/unistdio/ulc-vsprintf-tests
49170         (test_ulc_vsprintf1_LDADD): Likewise.
49171
49172         Fix linking of some uniconv tests on FreeBSD.
49173         * modules/uniconv/u16-conv-from-enc-tests
49174         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
49175         * modules/uniconv/u16-conv-to-enc-tests
49176         (test_u16_conv_to_enc_LDADD): Likewise.
49177         * modules/uniconv/u16-strconv-from-enc-tests
49178         (test_u16_strconv_from_enc_LDADD): Likewise.
49179         * modules/uniconv/u16-strconv-to-enc-tests
49180         (test_u16_strconv_to_enc_LDADD): Likewise.
49181         * modules/uniconv/u32-conv-from-enc-tests
49182         (test_u32_conv_from_enc_LDADD): Likewise.
49183         * modules/uniconv/u32-conv-to-enc-tests
49184         (test_u32_conv_to_enc_LDADD): Likewise.
49185         * modules/uniconv/u32-strconv-from-enc-tests
49186         (test_u32_strconv_from_enc_LDADD): Likewise.
49187         * modules/uniconv/u32-strconv-to-enc-tests
49188         (test_u32_strconv_to_enc_LDADD): Likewise.
49189         * modules/uniconv/u8-conv-from-enc-tests
49190         (test_u8_conv_from_enc_LDADD): Likewise.
49191         * modules/uniconv/u8-conv-to-enc-tests
49192         (test_u8_conv_to_enc_LDADD): Likewise.
49193         * modules/uniconv/u8-strconv-from-enc-tests
49194         (test_u8_strconv_from_enc_LDADD): Likewise.
49195         * modules/uniconv/u8-strconv-to-enc-tests
49196         (test_u8_strconv_to_enc_LDADD): Likewise.
49197
49198 2007-10-22  Bruno Haible  <bruno@clisp.org>
49199
49200         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
49201         size.
49202
49203 2007-10-22  Eric Blake  <ebb9@byu.net>
49204
49205         Tweak x*printf documentation.
49206         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
49207         variable name and comments.
49208         Suggested by Bruno Haible.
49209
49210 2007-10-22  Bruno Haible  <bruno@clisp.org>
49211
49212         * lib/acl.c (copy_acl): Fix file name in comment.
49213
49214 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49215
49216         Fix Tru64 problem with stdbool.h.
49217         * lib/stdbool.in.h (false, true):
49218         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
49219         Don't declare as an enum in this situation; it runs afoul of Tru64.
49220         Problem reported by Steven M. Schweda in
49221         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
49222
49223 2007-10-22  Eric Blake  <ebb9@byu.net>
49224
49225         Also wrap vf?printf.
49226         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
49227         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
49228         (xvprintf, xvfprintf): New functions.
49229
49230 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49231
49232         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
49233         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
49234
49235         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
49236         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
49237
49238 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49239
49240         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
49241         by Bruno Haible.
49242
49243 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49244
49245         * lib/getloadavg.c
49246         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
49247         Undef `sys' after including sys/table.h, for Tru64 4.0D.
49248
49249         * tests/test-i-ring.c: Work for C89.
49250
49251 2007-10-22  Bruno Haible  <bruno@clisp.org>
49252
49253         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49254         -1u, in preprocessor expression, so that we don't test for the bug
49255         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49256         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49257
49258 2007-10-22  Eric Blake  <ebb9@byu.net>
49259
49260         * tests/test-yesno.sh: Silence stderr during test.
49261
49262 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49263
49264         * modules/crypto/gc-camellia: New file.
49265
49266         * m4/gc-camellia.m4: New file.
49267
49268         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49269
49270         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49271
49272 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49273
49274         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49275         --help to stdout.  Reported by sms@antinode.org (Steven
49276         M. Schweda).
49277
49278 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49279
49280         * users.txt: Fix link to libksba.
49281
49282 2007-10-21  Ben Pfaff  <blp@gnu.org>
49283
49284         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49285         round.c roundf implementation that depends on floorf and ceilf to
49286         be tested unconditionally.
49287
49288 2007-10-21  Ben Pfaff  <blp@gnu.org>
49289
49290         * m4/check-libm-func.m4: Removed.
49291         * m4/check-math-lib.m4: New file.
49292         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49293         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49294         definition and lack of AC_LIBOBJ([roundf]).
49295         * m4/roundl.m4: Ditto, and similarly for roundl.
49296         * modules/round: Reference new m4 file.
49297         * modules/roundf: Ditto.
49298         * modules/roundl: Ditto.
49299         * tests/test-round2.c (main): Use ROUND instead of round.
49300         Bug report from Bruno Haible.
49301
49302 2007-10-21  Bruno Haible  <bruno@clisp.org>
49303
49304         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49305         context.
49306
49307 2007-10-21  Bruno Haible  <bruno@clisp.org>
49308
49309         * tests/test-wcwidth.c (main): Allow negative result for some control
49310         characters.
49311
49312         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49313         Needed on OSF/1 5.1.
49314
49315 2007-10-21  Bruno Haible  <bruno@clisp.org>
49316
49317         * tests/test-floorf1.c: Include isnanf.h.
49318         (main): Use isnanf() instead of isnan().
49319         * tests/test-ceilf1.c: Include isnanf.h.
49320         (main): Use isnanf() instead of isnan().
49321         * tests/test-truncf1.c: Include isnanf.h.
49322         (main): Use isnanf() instead of isnan().
49323         * tests/test-roundf1.c: Include isnanf.h.
49324         (main): Use isnanf() instead of isnan().
49325
49326 2007-10-21  Eric Blake  <ebb9@byu.net>
49327
49328         * users.txt: Update URL for m4.
49329
49330 2007-10-21  Bruno Haible  <bruno@clisp.org>
49331
49332         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49333
49334 2007-10-21  Bruno Haible  <bruno@clisp.org>
49335
49336         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49337         Git's management files if the CVS files are not present.
49338
49339 2007-10-20  Bruno Haible  <bruno@clisp.org>
49340
49341         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49342         gcc-3.4.x.
49343
49344 2007-10-20  Ben Pfaff  <blp@gnu.org>
49345
49346         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49347         implementations.
49348         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49349         * lib/round.c: New file.
49350         * lib/roundf.c: New file.
49351         * lib/roundl.c: New file.
49352         * m4/round.m4: New file.
49353         * m4/roundf.m4: New file.
49354         * m4/roundl.m4: New file.
49355         * m4/check-libm-func-m4: New file.
49356         * modules/math: Replace round, roundf, roundl related @VARS@ in
49357         math.in.h.
49358         * modules/round: New file.
49359         * modules/round-tests: New file.
49360         * modules/roundf: New file.
49361         * modules/roundf-tests: New file.
49362         * modules/roundl: New file.
49363         * modules/roundl-tests: New file.
49364         * tests/test-round1.c: New file.
49365         * tests/test-round2.c: New file.
49366         * tests/test-roundf1.c: New file.
49367         * tests/test-roundf2.c: New file.
49368         * tests/test-roundl.c: New file.
49369         * doc/functions/round.texi: Mention round module.
49370         * doc/functions/roundf.texi: Mention roundf module.
49371         * doc/functions/roundl.texi: Mention roundl module.
49372         * MODULES.html.sh: Mention new modules.
49373         Thanks to Bruno Haible for suggestions.
49374
49375 2007-10-20  Jim Meyering  <meyering@redhat.com>
49376
49377         * lib/xprintf.c: Include <config.h> unconditionally.
49378
49379         Change xprintf's license to GPL.
49380         * modules/xprintf (License): s/LGPL/GPL/, since this module
49381         depends on modules (exit and exitfail) which are GPL.
49382         Suggestion from Bruno Haible.
49383
49384         xprintf fixes.
49385         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49386         Use a clearer diagnostic.
49387         Patch from Bruno Haible.
49388
49389 2007-10-20  Bruno Haible  <bruno@clisp.org>
49390
49391         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49392         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49393         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49394
49395 2007-10-20  Bruno Haible  <bruno@clisp.org>
49396
49397         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49398         precision in the comparison result > x - 1 or similar.
49399         * tests/test-ceilf2.c (correct_result_p): Likewise.
49400         * tests/test-truncf2.c (correct_result_p): Likewise.
49401         * tests/test-trunc2.c (correct_result_p): Likewise.
49402         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49403
49404 2007-10-20  Bruno Haible  <bruno@clisp.org>
49405
49406         * modules/ceil: New file.
49407         * m4/ceil.m4: New file.
49408         * doc/functions/ceil.texi: Mention the 'ceil' module.
49409
49410 2007-10-20  Bruno Haible  <bruno@clisp.org>
49411
49412         * modules/floor: New file.
49413         * m4/floor.m4: New file.
49414         * doc/functions/floor.texi: Mention the 'floor' module.
49415
49416 2007-10-20  Bruno Haible  <bruno@clisp.org>
49417
49418         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49419         of %a.
49420         * modules/floorf-tests (Depends-on): Likewise.
49421         * modules/truncf-tests (Depends-on): Likewise.
49422         * modules/trunc-tests (Depends-on): Likewise.
49423         Reported by Ben Pfaff.
49424
49425 2007-10-19  Jim Meyering  <meyering@redhat.com>
49426
49427         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49428         Don't bother testing specific errno values.  Just test ferror.
49429
49430         New module: xprintf
49431         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49432
49433 2007-10-19  Bruno Haible  <bruno@clisp.org>
49434
49435         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49436         syntax.
49437         * modules/javaexec (Makefile.am): Likewise.
49438         * modules/relocatable-prog (Makefile.am): Likewise.
49439         Suggested by Jim Meyering.
49440
49441 2007-10-18  Bruno Haible  <bruno@clisp.org>
49442
49443         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49444         Reported by Jim Meyering.
49445
49446 2007-10-18  Eric Blake  <ebb9@byu.net>
49447
49448         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49449
49450 2007-10-18  Bruno Haible  <bruno@clisp.org>
49451
49452         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49453         the format string into writable memory. Needed in Fortify conditions.
49454
49455 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49456             Bruno Haible  <bruno@clisp.org>
49457
49458         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49459         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49460         * modules/trim (Depends-on): Add mbchar.
49461         (configure.ac): Add gl_FUNC_MBRTOWC.
49462         (Makefile.am): Augment lib_SOURCES.
49463
49464 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49465
49466         Modify glob.c to use fstatat and dirfd, to simplify it.
49467         Suggested by Eric Blake.
49468         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49469         Don't include <stdbool.h>; not used.
49470         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
49471         (link_exists_p): Simplify implementation, since we can now assume
49472         dirfd and fstatat.
49473         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
49474
49475 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49476
49477         * gnulib-tool (func_get_dependencies): Fix sed script to
49478         match only tests.
49479
49480 2007-10-17  Bruno Haible  <bruno@clisp.org>
49481
49482         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
49483         allow locale names without encoding suffix.
49484         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49485         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49486
49487 2007-10-16  Bruno Haible  <bruno@clisp.org>
49488
49489         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
49490         * lib/getgroups.c (getgroups): Likewise.
49491         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
49492
49493 2007-10-16  Bruno Haible  <bruno@clisp.org>
49494
49495         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
49496         * modules/malloc-posix (License): Likewise.
49497         * modules/realloc-posix (License): Likewise.
49498         * modules/calloc-posix (License): Likewise.
49499         * modules/intprops (License): Change from GPL to LGPL, with
49500         Paul Eggert's approval.
49501
49502 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49503
49504         Merge glibc changes into lib/glob.c.
49505
49506         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
49507         2007-10-15 04:59:03 UTC.  Here are the changes:
49508
49509         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
49510
49511         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
49512
49513         * lib/glob.c: Add some branch prediction throughout.
49514
49515         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
49516
49517         [BZ #5103]
49518         * lib/glob.c (glob): Recognize patterns starting \/.
49519
49520         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
49521
49522         [BZ #3996]
49523         * lib/glob.c (attribute_hidden): Define if not defined.
49524         (glob): Unescape dirname, filename or username when needed and not
49525         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
49526         is NULL.  Handle unescaped [ in pattern without closing ].
49527         Don't pass GLOB_CHECK down to recursive glob for directories.
49528         (__glob_pattern_type): New function.
49529         (__glob_pattern_p): Implement using __glob_pattern_type.
49530         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
49531         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
49532         Remove unreachable code.
49533
49534         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
49535
49536         * lib/glob.c (glob_in_dir): Add some comments and asserts to
49537         explain why there are no leaks.
49538
49539         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
49540
49541         [BZ #3253]
49542         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
49543         time, rather allocate increasingly bigger arrays of pointers, if
49544         possible with alloca, if too large with malloc.
49545
49546 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49547
49548         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
49549         Problem reported by H.Merijn Brand in
49550         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
49551         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
49552         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49553
49554 2007-10-15  Bruno Haible  <bruno@clisp.org>
49555
49556         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
49557         with explicit rpl_ prefix.
49558         * lib/fopen.c (fopen): Likewise.
49559         * lib/freopen.c (freopen): Likewise.
49560         * lib/iconv.c (iconv): Likewise.
49561         * lib/iconv_close.c (iconv_close): Likewise.
49562
49563 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49564
49565         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49566
49567 2007-10-15  Bruno Haible  <bruno@clisp.org>
49568
49569         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49570         <stddef.h> instead of <stdlib.h> since we only need NULL.
49571         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49572
49573 2007-10-15  Bruno Haible  <bruno@clisp.org>
49574
49575         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49576         Replace paragraph talking about LIBOBJS.
49577         Reported by Colin Watson <cjwatson@debian.org>.
49578
49579 2007-10-15  Bruno Haible  <bruno@clisp.org>
49580
49581         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49582         <stdlib.h> before using NULL.
49583
49584 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49585
49586         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49587         Reported by Albert Chin <china@thewrittenword.com>.
49588
49589 2007-10-14  Bruno Haible  <bruno@clisp.org>
49590
49591         * modules/iconv_open-utf-tests: New file.
49592         * tests/test-iconv-utf.c: New file.
49593
49594         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49595         * modules/iconv_open-utf: New file.
49596         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49597         (iconv, iconv_close): New declarations.
49598         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49599         be defined.
49600         (iconv_open): Add special handling of conversion between UTF-8 and
49601         UTF-{16,32}{BE,LE}.
49602         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49603         * lib/iconv_close.c: New file.
49604         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49605         gl_FUNC_ICONV_OPEN.
49606         (gl_FUNC_ICONV_OPEN): Use it.
49607         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49608         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49609         and REPLACE_ICONV_UTF.
49610         * modules/iconv_open (Depends-on): Add c-strcase.
49611         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49612         ICONV_CONST.
49613         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49614
49615 2007-10-13  Albert Chin  <china@thewrittenword.com>
49616             Bruno Haible  <bruno@clisp.org>
49617
49618         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49619         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49620
49621 2007-10-13  Bruno Haible  <bruno@clisp.org>
49622
49623         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49624         defined, use the ISO C99 inline semantics.
49625         * lib/argp.h (ARGP_EI): Likewise.
49626
49627 2007-10-13  Bruno Haible  <bruno@clisp.org>
49628
49629         Handle 'inline' change in gcc 4.3.0.
49630         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49631         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49632         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49633         argp_fmtstream_point): Disable 'extern' declaration if the function
49634         definition is going to be provided inline.
49635         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
49636         semantics, not the ISO C99 inline semantics.
49637         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
49638         'extern' declaration if the function definition is going to be provided
49639         inline.
49640         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
49641         the GNU C inline semantics, not the ISO C99 inline semantics. With
49642         GCC 4.2, avoid a warning.
49643
49644 2007-10-13  Bruno Haible  <bruno@clisp.org>
49645
49646         * lib/freading.h (freading): Enable the use of __freading for
49647         glibc >= 2.7.
49648         * lib/freading.c (freading): Likewise.
49649
49650 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49651
49652         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
49653         "warning: C99 inline functions are not supported; using GNU89".
49654
49655 2007-10-12  Bruno Haible  <bruno@clisp.org>
49656
49657         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
49658         of 2.
49659         * tests/test-ceilf2.c: New file.
49660         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
49661
49662         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
49663         * modules/ceilf-tests: Update.
49664
49665 2007-10-12  Bruno Haible  <bruno@clisp.org>
49666
49667         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
49668         of 2.
49669         * tests/test-floorf2.c: New file.
49670         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
49671
49672         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
49673         * modules/floorf-tests: Update.
49674
49675 2007-10-12  Bruno Haible  <bruno@clisp.org>
49676
49677         * tests/test-trunc2.c: New file.
49678         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
49679
49680         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
49681         * modules/trunc-tests: Update.
49682
49683 2007-10-12  Bruno Haible  <bruno@clisp.org>
49684
49685         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
49686         of 2.
49687         * tests/test-truncf2.c: New file.
49688         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
49689
49690         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
49691         * modules/truncf-tests: Update.
49692
49693 2007-10-11  Eric Blake  <ebb9@byu.net>
49694
49695         Don't claim strerror is broken on Interix.
49696         * doc/functions/strerror.texi (strerror): Known broken systems are
49697         now Solaris 8, and not Interix.
49698         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
49699         Interix on cross-compile.
49700         Reported by Martin Koeppe in
49701         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
49702
49703 2007-10-11  Bruno Haible  <bruno@clisp.org>
49704
49705         * modules/i-ring-tests: New file.
49706         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
49707         instead of assert.
49708
49709 2007-10-11  Bruno Haible  <bruno@clisp.org>
49710
49711         * modules/filenamecat-tests: New file.
49712         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
49713         * lib/filenamecat.c: Remove test code.
49714
49715 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49716
49717         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
49718
49719         * lib/strerror.c: Include <string.h> always, to test interface,
49720         and to remove the need for the dummy.
49721         Include intprops.h to compute width instead of doing it ourselves
49722         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
49723         (strerror): Define it to return NULL if there's no system strerror.
49724         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
49725         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
49726         ancient pre-strerror Unix systems well any more.  Saying "unknown
49727         system error" is enough.
49728         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
49729         simpler strerror.c implementation.
49730         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
49731         Simplify the tests to reflect the simpler strerror implementation.
49732         * modules/strerror (Depends-on): Add intprops.
49733
49734 2007-10-09  Eric Blake  <ebb9@byu.net>
49735
49736         Silence test-fpending.
49737         * modules/fpending-tests (Files): Add wrapper script.
49738         * tests/test-fpending.sh: New file.
49739
49740 2007-10-09  Bruno Haible  <bruno@clisp.org>
49741
49742         * MODULES.html.sh (func_module): Don't create a hyperlink for
49743         function names like 'printf_frexp'.
49744         (Misc): Add crc, memxor.
49745         (Characteristics of floating types): New section.
49746         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
49747         isnanf-nolibm, signbit, trunc, truncf, truncl.
49748         (Enhancements for ISO C 99 functions): New subsection Input/output.
49749         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
49750         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
49751         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
49752         (Compatibility checks for POSIX:2001 functions): Add clock-time.
49753         (Enhancements for POSIX:2001 functions): Add chdir-long.
49754         (File system functions): Add areadlink, chdir-safer, read-file.
49755         Remove cycle-check.
49756         (File system as inode set): New section.
49757         (Date and time): Add gethrxtime.
49758         (Multithreading): Add openmp.
49759         (Internationalization functions): Add localename.
49760         (Unicode string functions): Add unistr/u*-mbsnlen.
49761         (Support for maintaining and releasing projects): Add git-version-gen.
49762         (Lone files): Remove directories.
49763
49764 2007-10-08  Ben Pfaff  <blp@gnu.org>
49765
49766         * lib/xmalloca.h: Fix typo in comment.
49767
49768 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49769
49770         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
49771         when avoiding problems with integer overflow.  Use a portable test
49772         instead.
49773
49774 2007-10-08  Simon Josefsson  <simon@josefsson.org>
49775
49776         * modules/dummy (License): Change to LGPLv2+.
49777         * modules/float (License): Likewise
49778         * modules/realloc (License): Likewise
49779         * modules/stdlib (License): Likewise
49780
49781 2007-10-07  Bruno Haible  <bruno@clisp.org>
49782
49783         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
49784         * floor.c (TWO_MANT_DIG): Likewise.
49785         * ceil.c (TWO_MANT_DIG): Likewise.
49786         Reported by Ben Pfaff.
49787
49788 2007-10-07  Bruno Haible  <bruno@clisp.org>
49789
49790         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
49791         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
49792         * lib/frexp.c (FUNC): Likewise.
49793         * lib/printf-frexp.h (printf_frexp): Likewise.
49794         * lib/printf-frexpl.h (printf_frexpl): Likewise.
49795         * lib/printf-frexp.c (FUNC): Likewise.
49796         Suggested by Jim Meyering.
49797
49798 2007-10-07  Jim Meyering  <meyering@redhat.com>
49799
49800         Make xnanosleep's integer overflow test more robust.
49801         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
49802         so that gcc-4.3.0 doesn't optimize away this test for overflow.
49803
49804 2007-10-07  Bruno Haible  <bruno@clisp.org>
49805
49806         * NEWS: Mention the license change.
49807
49808         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
49809         abbreviations in the modules files.
49810
49811         Change copyright notice from GPLv2+ to GPLv3+.
49812         * README: Change copyright notice.
49813         * MODULES.html.sh: Likewise.
49814         * build-aux/bootstrap.conf: Likewise.
49815         * build-aux/config.libpath: Likewise.
49816         * build-aux/csharpcomp.sh.in: Likewise.
49817         * build-aux/csharpexec.sh.in: Likewise.
49818         * build-aux/install-reloc: Likewise.
49819         * build-aux/javacomp.sh.in: Likewise.
49820         * build-aux/javaexec.sh.in: Likewise.
49821         * build-aux/ldd.sh.in: Likewise.
49822         * build-aux/reloc-ldflags: Likewise.
49823         * build-aux/relocatable.sh.in: Likewise.
49824         * build-aux/x-to-1.in: Likewise.
49825         * check-module: Likewise.
49826         * config/srclistvars.sh: Likewise.
49827         * gnulib-tool: Likewise.
49828         * lib/acl-internal.h: Likewise.
49829         * lib/acl.c: Likewise.
49830         * lib/acl.h: Likewise.
49831         * lib/acl_entries.c: Likewise.
49832         * lib/areadlink-with-size.c: Likewise.
49833         * lib/areadlink.c: Likewise.
49834         * lib/areadlink.h: Likewise.
49835         * lib/argmatch.c: Likewise.
49836         * lib/argmatch.h: Likewise.
49837         * lib/argp-ba.c: Likewise.
49838         * lib/argp-eexst.c: Likewise.
49839         * lib/argp-fmtstream.c: Likewise.
49840         * lib/argp-fmtstream.h: Likewise.
49841         * lib/argp-fs-xinl.c: Likewise.
49842         * lib/argp-help.c: Likewise.
49843         * lib/argp-namefrob.h: Likewise.
49844         * lib/argp-parse.c: Likewise.
49845         * lib/argp-pin.c: Likewise.
49846         * lib/argp-pv.c: Likewise.
49847         * lib/argp-pvh.c: Likewise.
49848         * lib/argp-xinl.c: Likewise.
49849         * lib/argp.h: Likewise.
49850         * lib/at-func.c: Likewise.
49851         * lib/atanl.c: Likewise.
49852         * lib/backupfile.c: Likewise.
49853         * lib/backupfile.h: Likewise.
49854         * lib/basename.c: Likewise.
49855         * lib/binary-io.h: Likewise.
49856         * lib/byteswap.in.h: Likewise.
49857         * lib/c-stack.c: Likewise.
49858         * lib/c-stack.h: Likewise.
49859         * lib/c-strcasestr.c: Likewise.
49860         * lib/c-strcasestr.h: Likewise.
49861         * lib/c-strstr.c: Likewise.
49862         * lib/c-strstr.h: Likewise.
49863         * lib/c-strtod.c: Likewise.
49864         * lib/calloc.c: Likewise.
49865         * lib/canon-host.c: Likewise.
49866         * lib/canon-host.h: Likewise.
49867         * lib/canonicalize-lgpl.c: Likewise.
49868         * lib/canonicalize.c: Likewise.
49869         * lib/canonicalize.h: Likewise.
49870         * lib/ceil.c: Likewise.
49871         * lib/ceilf.c: Likewise.
49872         * lib/ceill.c: Likewise.
49873         * lib/chdir-long.c: Likewise.
49874         * lib/chdir-long.h: Likewise.
49875         * lib/chdir-safer.c: Likewise.
49876         * lib/chdir-safer.h: Likewise.
49877         * lib/chown.c: Likewise.
49878         * lib/classpath.c: Likewise.
49879         * lib/classpath.h: Likewise.
49880         * lib/clean-temp.c: Likewise.
49881         * lib/clean-temp.h: Likewise.
49882         * lib/cloexec.c: Likewise.
49883         * lib/close-stream.c: Likewise.
49884         * lib/closein.c: Likewise.
49885         * lib/closein.h: Likewise.
49886         * lib/closeout.c: Likewise.
49887         * lib/closeout.h: Likewise.
49888         * lib/concat-filename.c: Likewise.
49889         * lib/copy-file.c: Likewise.
49890         * lib/copy-file.h: Likewise.
49891         * lib/count-one-bits.h: Likewise.
49892         * lib/crc.c: Likewise.
49893         * lib/crc.h: Likewise.
49894         * lib/creat-safer.c: Likewise.
49895         * lib/csharpcomp.c: Likewise.
49896         * lib/csharpcomp.h: Likewise.
49897         * lib/csharpexec.c: Likewise.
49898         * lib/csharpexec.h: Likewise.
49899         * lib/cycle-check.c: Likewise.
49900         * lib/cycle-check.h: Likewise.
49901         * lib/diacrit.c: Likewise.
49902         * lib/diacrit.h: Likewise.
49903         * lib/diffseq.h: Likewise.
49904         * lib/dirchownmod.c: Likewise.
49905         * lib/dirent.in.h: Likewise.
49906         * lib/dirfd.c: Likewise.
49907         * lib/dirfd.h: Likewise.
49908         * lib/dirname.c: Likewise.
49909         * lib/dirname.h: Likewise.
49910         * lib/dummy.c: Likewise.
49911         * lib/dup-safer.c: Likewise.
49912         * lib/dup2.c: Likewise.
49913         * lib/eealloc.h: Likewise.
49914         * lib/error.c: Likewise.
49915         * lib/error.h: Likewise.
49916         * lib/euidaccess.c: Likewise.
49917         * lib/exclude.c: Likewise.
49918         * lib/exclude.h: Likewise.
49919         * lib/execute.c: Likewise.
49920         * lib/execute.h: Likewise.
49921         * lib/exitfail.c: Likewise.
49922         * lib/exitfail.h: Likewise.
49923         * lib/expl.c: Likewise.
49924         * lib/fatal-signal.c: Likewise.
49925         * lib/fatal-signal.h: Likewise.
49926         * lib/fbufmode.c: Likewise.
49927         * lib/fbufmode.h: Likewise.
49928         * lib/fchdir.c: Likewise.
49929         * lib/fchmodat.c: Likewise.
49930         * lib/fchownat.c: Likewise.
49931         * lib/fcntl--.h: Likewise.
49932         * lib/fcntl-safer.h: Likewise.
49933         * lib/fcntl.in.h: Likewise.
49934         * lib/fd-safer.c: Likewise.
49935         * lib/fflush.c: Likewise.
49936         * lib/file-has-acl.c: Likewise.
49937         * lib/file-set.c: Likewise.
49938         * lib/file-type.c: Likewise.
49939         * lib/file-type.h: Likewise.
49940         * lib/fileblocks.c: Likewise.
49941         * lib/filemode.c: Likewise.
49942         * lib/filemode.h: Likewise.
49943         * lib/filename.h: Likewise.
49944         * lib/filenamecat.c: Likewise.
49945         * lib/filenamecat.h: Likewise.
49946         * lib/findprog.c: Likewise.
49947         * lib/findprog.h: Likewise.
49948         * lib/float.in.h: Likewise.
49949         * lib/floor.c: Likewise.
49950         * lib/floorf.c: Likewise.
49951         * lib/floorl.c: Likewise.
49952         * lib/fopen-safer.c: Likewise.
49953         * lib/fopen.c: Likewise.
49954         * lib/fpending.c: Likewise.
49955         * lib/fpending.h: Likewise.
49956         * lib/fprintf.c: Likewise.
49957         * lib/fprintftime.h: Likewise.
49958         * lib/fpucw.h: Likewise.
49959         * lib/fpurge.c: Likewise.
49960         * lib/fpurge.h: Likewise.
49961         * lib/freadable.c: Likewise.
49962         * lib/freadable.h: Likewise.
49963         * lib/freadahead.c: Likewise.
49964         * lib/freadahead.h: Likewise.
49965         * lib/freading.c: Likewise.
49966         * lib/freading.h: Likewise.
49967         * lib/free.c: Likewise.
49968         * lib/freopen.c: Likewise.
49969         * lib/frexp.c: Likewise.
49970         * lib/frexpl.c: Likewise.
49971         * lib/fseek.c: Likewise.
49972         * lib/fseterr.c: Likewise.
49973         * lib/fseterr.h: Likewise.
49974         * lib/fstatat.c: Likewise.
49975         * lib/fstrcmp.c: Likewise.
49976         * lib/fstrcmp.h: Likewise.
49977         * lib/fsusage.c: Likewise.
49978         * lib/fsusage.h: Likewise.
49979         * lib/ftell.c: Likewise.
49980         * lib/ftello.c: Likewise.
49981         * lib/fts-cycle.c: Likewise.
49982         * lib/fts.c: Likewise.
49983         * lib/fts_.h: Likewise.
49984         * lib/full-read.c: Likewise.
49985         * lib/full-read.h: Likewise.
49986         * lib/full-write.c: Likewise.
49987         * lib/full-write.h: Likewise.
49988         * lib/fwritable.c: Likewise.
49989         * lib/fwritable.h: Likewise.
49990         * lib/fwriteerror.c: Likewise.
49991         * lib/fwriteerror.h: Likewise.
49992         * lib/fwriting.c: Likewise.
49993         * lib/fwriting.h: Likewise.
49994         * lib/gcd.c: Likewise.
49995         * lib/gcd.h: Likewise.
49996         * lib/getcwd.c: Likewise.
49997         * lib/getdate.h: Likewise.
49998         * lib/getdate.y: Likewise.
49999         * lib/getdomainname.c: Likewise.
50000         * lib/getdomainname.h: Likewise.
50001         * lib/getgroups.c: Likewise.
50002         * lib/gethostname.c: Likewise.
50003         * lib/gethrxtime.c: Likewise.
50004         * lib/gethrxtime.h: Likewise.
50005         * lib/getloadavg.c: Likewise.
50006         * lib/getndelim2.c: Likewise.
50007         * lib/getndelim2.h: Likewise.
50008         * lib/getnline.c: Likewise.
50009         * lib/getnline.h: Likewise.
50010         * lib/getopt.c: Likewise.
50011         * lib/getopt.in.h: Likewise.
50012         * lib/getopt1.c: Likewise.
50013         * lib/getopt_int.h: Likewise.
50014         * lib/getpagesize.h: Likewise.
50015         * lib/getsubopt.c: Likewise.
50016         * lib/gettime.c: Likewise.
50017         * lib/getugroups.c: Likewise.
50018         * lib/getugroups.h: Likewise.
50019         * lib/getusershell.c: Likewise.
50020         * lib/gl_anyavltree_list1.h: Likewise.
50021         * lib/gl_anyavltree_list2.h: Likewise.
50022         * lib/gl_anyhash_list1.h: Likewise.
50023         * lib/gl_anyhash_list2.h: Likewise.
50024         * lib/gl_anylinked_list1.h: Likewise.
50025         * lib/gl_anylinked_list2.h: Likewise.
50026         * lib/gl_anyrbtree_list1.h: Likewise.
50027         * lib/gl_anyrbtree_list2.h: Likewise.
50028         * lib/gl_anytree_list1.h: Likewise.
50029         * lib/gl_anytree_list2.h: Likewise.
50030         * lib/gl_anytree_oset.h: Likewise.
50031         * lib/gl_anytreehash_list1.h: Likewise.
50032         * lib/gl_anytreehash_list2.h: Likewise.
50033         * lib/gl_array_list.c: Likewise.
50034         * lib/gl_array_list.h: Likewise.
50035         * lib/gl_array_oset.c: Likewise.
50036         * lib/gl_array_oset.h: Likewise.
50037         * lib/gl_avltree_list.c: Likewise.
50038         * lib/gl_avltree_list.h: Likewise.
50039         * lib/gl_avltree_oset.c: Likewise.
50040         * lib/gl_avltree_oset.h: Likewise.
50041         * lib/gl_avltreehash_list.c: Likewise.
50042         * lib/gl_avltreehash_list.h: Likewise.
50043         * lib/gl_carray_list.c: Likewise.
50044         * lib/gl_carray_list.h: Likewise.
50045         * lib/gl_linked_list.c: Likewise.
50046         * lib/gl_linked_list.h: Likewise.
50047         * lib/gl_linkedhash_list.c: Likewise.
50048         * lib/gl_linkedhash_list.h: Likewise.
50049         * lib/gl_list.c: Likewise.
50050         * lib/gl_list.h: Likewise.
50051         * lib/gl_oset.c: Likewise.
50052         * lib/gl_oset.h: Likewise.
50053         * lib/gl_rbtree_list.c: Likewise.
50054         * lib/gl_rbtree_list.h: Likewise.
50055         * lib/gl_rbtree_oset.c: Likewise.
50056         * lib/gl_rbtree_oset.h: Likewise.
50057         * lib/gl_rbtreehash_list.c: Likewise.
50058         * lib/gl_rbtreehash_list.h: Likewise.
50059         * lib/gl_sublist.c: Likewise.
50060         * lib/gl_sublist.h: Likewise.
50061         * lib/group-member.c: Likewise.
50062         * lib/group-member.h: Likewise.
50063         * lib/hard-locale.c: Likewise.
50064         * lib/hard-locale.h: Likewise.
50065         * lib/hash-pjw.c: Likewise.
50066         * lib/hash-pjw.h: Likewise.
50067         * lib/hash-triple.c: Likewise.
50068         * lib/hash.c: Likewise.
50069         * lib/hash.h: Likewise.
50070         * lib/human.c: Likewise.
50071         * lib/human.h: Likewise.
50072         * lib/i-ring.c: Likewise.
50073         * lib/i-ring.h: Likewise.
50074         * lib/idcache.c: Likewise.
50075         * lib/imaxabs.c: Likewise.
50076         * lib/imaxdiv.c: Likewise.
50077         * lib/inet_pton.c: Likewise.
50078         * lib/inet_pton.h: Likewise.
50079         * lib/intprops.h: Likewise.
50080         * lib/inttostr.c: Likewise.
50081         * lib/inttostr.h: Likewise.
50082         * lib/inttypes.in.h: Likewise.
50083         * lib/isapipe.c: Likewise.
50084         * lib/isdir.c: Likewise.
50085         * lib/isnan.c: Likewise.
50086         * lib/isnan.h: Likewise.
50087         * lib/isnanf.c: Likewise.
50088         * lib/isnanf.h: Likewise.
50089         * lib/isnanl-nolibm.h: Likewise.
50090         * lib/isnanl.c: Likewise.
50091         * lib/isnanl.h: Likewise.
50092         * lib/javacomp.c: Likewise.
50093         * lib/javacomp.h: Likewise.
50094         * lib/javaexec.c: Likewise.
50095         * lib/javaexec.h: Likewise.
50096         * lib/javaversion.c: Likewise.
50097         * lib/javaversion.h: Likewise.
50098         * lib/javaversion.java: Likewise.
50099         * lib/lbrkprop.h: Likewise.
50100         * lib/lchmod.h: Likewise.
50101         * lib/lchown.c: Likewise.
50102         * lib/ldexpl.c: Likewise.
50103         * lib/linebreak.c: Likewise.
50104         * lib/linebreak.h: Likewise.
50105         * lib/linebuffer.c: Likewise.
50106         * lib/linebuffer.h: Likewise.
50107         * lib/locale.in.h: Likewise.
50108         * lib/logl.c: Likewise.
50109         * lib/long-options.c: Likewise.
50110         * lib/long-options.h: Likewise.
50111         * lib/lstat.c: Likewise.
50112         * lib/lstat.h: Likewise.
50113         * lib/math.in.h: Likewise.
50114         * lib/mbchar.c: Likewise.
50115         * lib/mbchar.h: Likewise.
50116         * lib/mbfile.h: Likewise.
50117         * lib/mbiter.h: Likewise.
50118         * lib/mbscasecmp.c: Likewise.
50119         * lib/mbscasestr.c: Likewise.
50120         * lib/mbschr.c: Likewise.
50121         * lib/mbscspn.c: Likewise.
50122         * lib/mbslen.c: Likewise.
50123         * lib/mbsncasecmp.c: Likewise.
50124         * lib/mbsnlen.c: Likewise.
50125         * lib/mbspbrk.c: Likewise.
50126         * lib/mbspcasecmp.c: Likewise.
50127         * lib/mbsrchr.c: Likewise.
50128         * lib/mbssep.c: Likewise.
50129         * lib/mbsspn.c: Likewise.
50130         * lib/mbsstr.c: Likewise.
50131         * lib/mbstok_r.c: Likewise.
50132         * lib/mbswidth.c: Likewise.
50133         * lib/mbswidth.h: Likewise.
50134         * lib/mbuiter.h: Likewise.
50135         * lib/memcasecmp.c: Likewise.
50136         * lib/memcasecmp.h: Likewise.
50137         * lib/memchr.c: Likewise.
50138         * lib/memcmp.c: Likewise.
50139         * lib/memcoll.c: Likewise.
50140         * lib/memcoll.h: Likewise.
50141         * lib/memcpy.c: Likewise.
50142         * lib/memrchr.c: Likewise.
50143         * lib/mkancesdirs.c: Likewise.
50144         * lib/mkdir-p.c: Likewise.
50145         * lib/mkdir-p.h: Likewise.
50146         * lib/mkdir.c: Likewise.
50147         * lib/mkdirat.c: Likewise.
50148         * lib/mkdtemp.c: Likewise.
50149         * lib/mkstemp-safer.c: Likewise.
50150         * lib/mkstemp.c: Likewise.
50151         * lib/modechange.c: Likewise.
50152         * lib/modechange.h: Likewise.
50153         * lib/mountlist.c: Likewise.
50154         * lib/mountlist.h: Likewise.
50155         * lib/mpsort.c: Likewise.
50156         * lib/nanosleep.c: Likewise.
50157         * lib/obstack.c: Likewise.
50158         * lib/obstack.h: Likewise.
50159         * lib/open-safer.c: Likewise.
50160         * lib/open.c: Likewise.
50161         * lib/openat-die.c: Likewise.
50162         * lib/openat-priv.h: Likewise.
50163         * lib/openat-proc.c: Likewise.
50164         * lib/openat.c: Likewise.
50165         * lib/openat.h: Likewise.
50166         * lib/pagealign_alloc.c: Likewise.
50167         * lib/pagealign_alloc.h: Likewise.
50168         * lib/physmem.c: Likewise.
50169         * lib/physmem.h: Likewise.
50170         * lib/pipe-safer.c: Likewise.
50171         * lib/pipe.c: Likewise.
50172         * lib/pipe.h: Likewise.
50173         * lib/posixtm.c: Likewise.
50174         * lib/posixtm.h: Likewise.
50175         * lib/posixver.c: Likewise.
50176         * lib/printf-frexp.c: Likewise.
50177         * lib/printf-frexp.h: Likewise.
50178         * lib/printf-frexpl.c: Likewise.
50179         * lib/printf-frexpl.h: Likewise.
50180         * lib/printf.c: Likewise.
50181         * lib/progname.c: Likewise.
50182         * lib/progname.h: Likewise.
50183         * lib/progreloc.c: Likewise.
50184         * lib/putenv.c: Likewise.
50185         * lib/quote.c: Likewise.
50186         * lib/quote.h: Likewise.
50187         * lib/quotearg.c: Likewise.
50188         * lib/quotearg.h: Likewise.
50189         * lib/raise.c: Likewise.
50190         * lib/readline.c: Likewise.
50191         * lib/readline.h: Likewise.
50192         * lib/readlink.c: Likewise.
50193         * lib/readtokens.c: Likewise.
50194         * lib/readtokens.h: Likewise.
50195         * lib/readtokens0.c: Likewise.
50196         * lib/readtokens0.h: Likewise.
50197         * lib/readutmp.c: Likewise.
50198         * lib/readutmp.h: Likewise.
50199         * lib/realloc.c: Likewise.
50200         * lib/relocwrapper.c: Likewise.
50201         * lib/rename-dest-slash.c: Likewise.
50202         * lib/rename.c: Likewise.
50203         * lib/rmdir.c: Likewise.
50204         * lib/rpmatch.c: Likewise.
50205         * lib/safe-read.c: Likewise.
50206         * lib/safe-read.h: Likewise.
50207         * lib/safe-write.c: Likewise.
50208         * lib/safe-write.h: Likewise.
50209         * lib/same-inode.h: Likewise.
50210         * lib/same.c: Likewise.
50211         * lib/same.h: Likewise.
50212         * lib/save-cwd.c: Likewise.
50213         * lib/save-cwd.h: Likewise.
50214         * lib/savedir.c: Likewise.
50215         * lib/savedir.h: Likewise.
50216         * lib/savewd.c: Likewise.
50217         * lib/savewd.h: Likewise.
50218         * lib/search.in.h: Likewise.
50219         * lib/setenv.c: Likewise.
50220         * lib/setenv.h: Likewise.
50221         * lib/settime.c: Likewise.
50222         * lib/sh-quote.c: Likewise.
50223         * lib/sh-quote.h: Likewise.
50224         * lib/sig2str.c: Likewise.
50225         * lib/sig2str.h: Likewise.
50226         * lib/signal.in.h: Likewise.
50227         * lib/signbitd.c: Likewise.
50228         * lib/signbitf.c: Likewise.
50229         * lib/signbitl.c: Likewise.
50230         * lib/sigprocmask.c: Likewise.
50231         * lib/sincosl.c: Likewise.
50232         * lib/sleep.c: Likewise.
50233         * lib/sprintf.c: Likewise.
50234         * lib/sqrtl.c: Likewise.
50235         * lib/stat-time.h: Likewise.
50236         * lib/stdio--.h: Likewise.
50237         * lib/stdio-safer.h: Likewise.
50238         * lib/stdlib--.h: Likewise.
50239         * lib/stdlib-safer.h: Likewise.
50240         * lib/stdlib.in.h: Likewise.
50241         * lib/stpcpy.c: Likewise.
50242         * lib/stpncpy.c: Likewise.
50243         * lib/strchrnul.c: Likewise.
50244         * lib/strcspn.c: Likewise.
50245         * lib/strerror.c: Likewise.
50246         * lib/strftime.c: Likewise.
50247         * lib/strftime.h: Likewise.
50248         * lib/striconveh.c: Likewise.
50249         * lib/striconveh.h: Likewise.
50250         * lib/striconveha.c: Likewise.
50251         * lib/striconveha.h: Likewise.
50252         * lib/stripslash.c: Likewise.
50253         * lib/strnlen1.c: Likewise.
50254         * lib/strnlen1.h: Likewise.
50255         * lib/strtod.c: Likewise.
50256         * lib/strtoimax.c: Likewise.
50257         * lib/strtok_r.c: Likewise.
50258         * lib/strtol.c: Likewise.
50259         * lib/strtoll.c: Likewise.
50260         * lib/strtoul.c: Likewise.
50261         * lib/strtoull.c: Likewise.
50262         * lib/sysexits.in.h: Likewise.
50263         * lib/tempname.c: Likewise.
50264         * lib/tempname.h: Likewise.
50265         * lib/timespec.h: Likewise.
50266         * lib/tls.c: Likewise.
50267         * lib/tls.h: Likewise.
50268         * lib/tmpdir.c: Likewise.
50269         * lib/tmpdir.h: Likewise.
50270         * lib/tmpfile-safer.c: Likewise.
50271         * lib/tmpfile.c: Likewise.
50272         * lib/trigl.c: Likewise.
50273         * lib/trigl.h: Likewise.
50274         * lib/trim.c: Likewise.
50275         * lib/trim.h: Likewise.
50276         * lib/trunc.c: Likewise.
50277         * lib/truncf.c: Likewise.
50278         * lib/truncl.c: Likewise.
50279         * lib/tsearch.c: Likewise.
50280         * lib/unicodeio.c: Likewise.
50281         * lib/unicodeio.h: Likewise.
50282         * lib/unistd--.h: Likewise.
50283         * lib/unistd-safer.h: Likewise.
50284         * lib/unistdio/ulc-fprintf.c: Likewise.
50285         * lib/unistdio/ulc-vfprintf.c: Likewise.
50286         * lib/unlinkdir.c: Likewise.
50287         * lib/unlinkdir.h: Likewise.
50288         * lib/unlocked-io.h: Likewise.
50289         * lib/unsetenv.c: Likewise.
50290         * lib/userspec.c: Likewise.
50291         * lib/utime.c: Likewise.
50292         * lib/utimecmp.c: Likewise.
50293         * lib/utimecmp.h: Likewise.
50294         * lib/utimens.c: Likewise.
50295         * lib/verify.h: Likewise.
50296         * lib/verror.c: Likewise.
50297         * lib/verror.h: Likewise.
50298         * lib/version-etc-fsf.c: Likewise.
50299         * lib/version-etc.c: Likewise.
50300         * lib/version-etc.h: Likewise.
50301         * lib/vfprintf.c: Likewise.
50302         * lib/vprintf.c: Likewise.
50303         * lib/vsprintf.c: Likewise.
50304         * lib/w32spawn.h: Likewise.
50305         * lib/wait-process.c: Likewise.
50306         * lib/wait-process.h: Likewise.
50307         * lib/wcwidth.c: Likewise.
50308         * lib/write-any-file.c: Likewise.
50309         * lib/xalloc-die.c: Likewise.
50310         * lib/xalloc.h: Likewise.
50311         * lib/xasprintf.c: Likewise.
50312         * lib/xgetcwd.c: Likewise.
50313         * lib/xgetcwd.h: Likewise.
50314         * lib/xgetdomainname.c: Likewise.
50315         * lib/xgetdomainname.h: Likewise.
50316         * lib/xgethostname.c: Likewise.
50317         * lib/xmalloc.c: Likewise.
50318         * lib/xmalloca.c: Likewise.
50319         * lib/xmalloca.h: Likewise.
50320         * lib/xmemcoll.c: Likewise.
50321         * lib/xnanosleep.c: Likewise.
50322         * lib/xreadlink.c: Likewise.
50323         * lib/xreadlink.h: Likewise.
50324         * lib/xsetenv.c: Likewise.
50325         * lib/xsetenv.h: Likewise.
50326         * lib/xstriconv.c: Likewise.
50327         * lib/xstriconv.h: Likewise.
50328         * lib/xstrndup.c: Likewise.
50329         * lib/xstrndup.h: Likewise.
50330         * lib/xstrtod.c: Likewise.
50331         * lib/xstrtod.h: Likewise.
50332         * lib/xstrtol-error.c: Likewise.
50333         * lib/xstrtol.c: Likewise.
50334         * lib/xstrtol.h: Likewise.
50335         * lib/xtime.h: Likewise.
50336         * lib/xvasprintf.c: Likewise.
50337         * lib/xvasprintf.h: Likewise.
50338         * lib/yesno.c: Likewise.
50339         * lib/yesno.h: Likewise.
50340         * posix-modules: Likewise.
50341         * tests/test-alloca-opt.c: Likewise.
50342         * tests/test-arcfour.c: Likewise.
50343         * tests/test-arctwo.c: Likewise.
50344         * tests/test-argmatch.c: Likewise.
50345         * tests/test-argp-2.sh: Likewise.
50346         * tests/test-argp.c: Likewise.
50347         * tests/test-arpa_inet.c: Likewise.
50348         * tests/test-array_list.c: Likewise.
50349         * tests/test-array_oset.c: Likewise.
50350         * tests/test-atexit.c: Likewise.
50351         * tests/test-avltree_list.c: Likewise.
50352         * tests/test-avltree_oset.c: Likewise.
50353         * tests/test-avltreehash_list.c: Likewise.
50354         * tests/test-base64.c: Likewise.
50355         * tests/test-binary-io.c: Likewise.
50356         * tests/test-byteswap.c: Likewise.
50357         * tests/test-c-ctype.c: Likewise.
50358         * tests/test-c-strcasecmp.c: Likewise.
50359         * tests/test-c-strcasestr.c: Likewise.
50360         * tests/test-c-strncasecmp.c: Likewise.
50361         * tests/test-c-strstr.c: Likewise.
50362         * tests/test-canonicalize-lgpl.c: Likewise.
50363         * tests/test-canonicalize.c: Likewise.
50364         * tests/test-carray_list.c: Likewise.
50365         * tests/test-ceilf.c: Likewise.
50366         * tests/test-ceill.c: Likewise.
50367         * tests/test-count-one-bits.c: Likewise.
50368         * tests/test-crc.c: Likewise.
50369         * tests/test-dirname.c: Likewise.
50370         * tests/test-fbufmode.c: Likewise.
50371         * tests/test-fcntl.c: Likewise.
50372         * tests/test-fflush.c: Likewise.
50373         * tests/test-floorf.c: Likewise.
50374         * tests/test-floorl.c: Likewise.
50375         * tests/test-fopen.c: Likewise.
50376         * tests/test-fprintf-posix.c: Likewise.
50377         * tests/test-fprintf-posix.h: Likewise.
50378         * tests/test-fpurge.c: Likewise.
50379         * tests/test-freadable.c: Likewise.
50380         * tests/test-freadahead.c: Likewise.
50381         * tests/test-freading.c: Likewise.
50382         * tests/test-freopen.c: Likewise.
50383         * tests/test-frexp.c: Likewise.
50384         * tests/test-frexpl.c: Likewise.
50385         * tests/test-fseek.c: Likewise.
50386         * tests/test-fseeko.c: Likewise.
50387         * tests/test-fseterr.c: Likewise.
50388         * tests/test-fstrcmp.c: Likewise.
50389         * tests/test-ftell.c: Likewise.
50390         * tests/test-ftello.c: Likewise.
50391         * tests/test-fwritable.c: Likewise.
50392         * tests/test-fwriting.c: Likewise.
50393         * tests/test-getaddrinfo.c: Likewise.
50394         * tests/test-getpass.c: Likewise.
50395         * tests/test-gettimeofday.c: Likewise.
50396         * tests/test-hmac-md5.c: Likewise.
50397         * tests/test-hmac-sha1.c: Likewise.
50398         * tests/test-iconv.c: Likewise.
50399         * tests/test-iconvme.c: Likewise.
50400         * tests/test-inttypes.c: Likewise.
50401         * tests/test-isnan.c: Likewise.
50402         * tests/test-isnanf.c: Likewise.
50403         * tests/test-isnanl-nolibm.c: Likewise.
50404         * tests/test-isnanl.c: Likewise.
50405         * tests/test-isnanl.h: Likewise.
50406         * tests/test-ldexpl.c: Likewise.
50407         * tests/test-linked_list.c: Likewise.
50408         * tests/test-linkedhash_list.c: Likewise.
50409         * tests/test-locale.c: Likewise.
50410         * tests/test-localename.c: Likewise.
50411         * tests/test-lock.c: Likewise.
50412         * tests/test-lseek.c: Likewise.
50413         * tests/test-malloca.c: Likewise.
50414         * tests/test-math.c: Likewise.
50415         * tests/test-mbscasecmp.c: Likewise.
50416         * tests/test-mbscasestr1.c: Likewise.
50417         * tests/test-mbscasestr2.c: Likewise.
50418         * tests/test-mbscasestr3.c: Likewise.
50419         * tests/test-mbscasestr4.c: Likewise.
50420         * tests/test-mbschr.c: Likewise.
50421         * tests/test-mbscspn.c: Likewise.
50422         * tests/test-mbsncasecmp.c: Likewise.
50423         * tests/test-mbspbrk.c: Likewise.
50424         * tests/test-mbspcasecmp.c: Likewise.
50425         * tests/test-mbsrchr.c: Likewise.
50426         * tests/test-mbsspn.c: Likewise.
50427         * tests/test-mbsstr1.c: Likewise.
50428         * tests/test-mbsstr2.c: Likewise.
50429         * tests/test-mbsstr3.c: Likewise.
50430         * tests/test-md5.c: Likewise.
50431         * tests/test-memmem.c: Likewise.
50432         * tests/test-netinet_in.c: Likewise.
50433         * tests/test-open.c: Likewise.
50434         * tests/test-printf-frexp.c: Likewise.
50435         * tests/test-printf-frexpl.c: Likewise.
50436         * tests/test-printf-posix.c: Likewise.
50437         * tests/test-printf-posix.h: Likewise.
50438         * tests/test-rbtree_list.c: Likewise.
50439         * tests/test-rbtree_oset.c: Likewise.
50440         * tests/test-rbtreehash_list.c: Likewise.
50441         * tests/test-read-file.c: Likewise.
50442         * tests/test-rijndael.c: Likewise.
50443         * tests/test-search.c: Likewise.
50444         * tests/test-signbit.c: Likewise.
50445         * tests/test-sleep.c: Likewise.
50446         * tests/test-snprintf-posix.c: Likewise.
50447         * tests/test-snprintf-posix.h: Likewise.
50448         * tests/test-snprintf.c: Likewise.
50449         * tests/test-sprintf-posix.c: Likewise.
50450         * tests/test-sprintf-posix.h: Likewise.
50451         * tests/test-stat-time.c: Likewise.
50452         * tests/test-stdbool.c: Likewise.
50453         * tests/test-stdint.c: Likewise.
50454         * tests/test-stdio.c: Likewise.
50455         * tests/test-stdlib.c: Likewise.
50456         * tests/test-stpncpy.c: Likewise.
50457         * tests/test-strcasestr.c: Likewise.
50458         * tests/test-striconv.c: Likewise.
50459         * tests/test-striconveh.c: Likewise.
50460         * tests/test-striconveha.c: Likewise.
50461         * tests/test-string.c: Likewise.
50462         * tests/test-sys_select.c: Likewise.
50463         * tests/test-sys_socket.c: Likewise.
50464         * tests/test-sys_stat.c: Likewise.
50465         * tests/test-sys_time.c: Likewise.
50466         * tests/test-sysexits.c: Likewise.
50467         * tests/test-time.c: Likewise.
50468         * tests/test-tls.c: Likewise.
50469         * tests/test-trunc.c: Likewise.
50470         * tests/test-truncf.c: Likewise.
50471         * tests/test-truncl.c: Likewise.
50472         * tests/test-unistd.c: Likewise.
50473         * tests/test-vasnprintf-posix.c: Likewise.
50474         * tests/test-vasnprintf-posix2.c: Likewise.
50475         * tests/test-vasnprintf.c: Likewise.
50476         * tests/test-vasprintf-posix.c: Likewise.
50477         * tests/test-vasprintf.c: Likewise.
50478         * tests/test-verify.c: Likewise.
50479         * tests/test-vfprintf-posix.c: Likewise.
50480         * tests/test-vprintf-posix.c: Likewise.
50481         * tests/test-vsnprintf-posix.c: Likewise.
50482         * tests/test-vsnprintf.c: Likewise.
50483         * tests/test-vsprintf-posix.c: Likewise.
50484         * tests/test-wchar.c: Likewise.
50485         * tests/test-wctype.c: Likewise.
50486         * tests/test-wcwidth.c: Likewise.
50487         * tests/test-xstrtol.c: Likewise.
50488         * tests/test-xvasprintf.c: Likewise.
50489         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50490         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50491         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50492         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50493         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50494         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50495         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50496         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50497         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50498         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50499         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50500         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50501         * tests/uniname/test-uninames.c: Likewise.
50502         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50503         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
50504         * tests/unistdio/test-u16-printf1.h: Likewise.
50505         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50506         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50507         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50508         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50509         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50510         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50511         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50512         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
50513         * tests/unistdio/test-u32-printf1.h: Likewise.
50514         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50515         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50516         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50517         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50518         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50519         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50520         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50521         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
50522         * tests/unistdio/test-u8-printf1.h: Likewise.
50523         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50524         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50525         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50526         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50527         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50528         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50529         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50530         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
50531         * tests/unistdio/test-ulc-printf1.h: Likewise.
50532         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50533         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50534         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50535         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50536         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50537         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50538         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50539         * tests/uniwidth/test-u16-width.c: Likewise.
50540         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50541         * tests/uniwidth/test-u32-width.c: Likewise.
50542         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50543         * tests/uniwidth/test-u8-width.c: Likewise.
50544         * tests/uniwidth/test-uc_width.c: Likewise.
50545         * config/srclist-update: Likewise.
50546         (fixlicense): Update to GPLv3+.
50547
50548         Change copyright notice from LGPLv2.1+ to LGPLv3+.
50549         * tests/test-tsearch.c: Change copyright notice.
50550
50551         Change copyright notice from LGPLv2.0+ to LGPLv3+.
50552         * lib/c-strcaseeq.h: Change copyright notice.
50553         * lib/streq.h: Likewise.
50554         * lib/uniconv.h: Likewise.
50555         * lib/uniconv/u-conv-from-enc.h: Likewise.
50556         * lib/uniconv/u-conv-to-enc.h: Likewise.
50557         * lib/uniconv/u-strconv-from-enc.h: Likewise.
50558         * lib/uniconv/u-strconv-to-enc.h: Likewise.
50559         * lib/uniconv/u16-conv-from-enc.c: Likewise.
50560         * lib/uniconv/u16-conv-to-enc.c: Likewise.
50561         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50562         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50563         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50564         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50565         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50566         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50567         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50568         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50569         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50570         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50571         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50572         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50573         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50574         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50575         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50576         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50577         * lib/uniname.h: Likewise.
50578         * lib/uniname/uniname.c: Likewise.
50579         * lib/unistdio.h: Likewise.
50580         * lib/unistdio/u-asnprintf.h: Likewise.
50581         * lib/unistdio/u-asprintf.h: Likewise.
50582         * lib/unistdio/u-printf-args.c: Likewise.
50583         * lib/unistdio/u-printf-args.h: Likewise.
50584         * lib/unistdio/u-printf-parse.h: Likewise.
50585         * lib/unistdio/u-snprintf.h: Likewise.
50586         * lib/unistdio/u-sprintf.h: Likewise.
50587         * lib/unistdio/u-vasprintf.h: Likewise.
50588         * lib/unistdio/u-vsnprintf.h: Likewise.
50589         * lib/unistdio/u-vsprintf.h: Likewise.
50590         * lib/unistdio/u16-asnprintf.c: Likewise.
50591         * lib/unistdio/u16-asprintf.c: Likewise.
50592         * lib/unistdio/u16-printf-parse.c: Likewise.
50593         * lib/unistdio/u16-snprintf.c: Likewise.
50594         * lib/unistdio/u16-sprintf.c: Likewise.
50595         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50596         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50597         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50598         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50599         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50600         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50601         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50602         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50603         * lib/unistdio/u16-vasnprintf.c: Likewise.
50604         * lib/unistdio/u16-vasprintf.c: Likewise.
50605         * lib/unistdio/u16-vsnprintf.c: Likewise.
50606         * lib/unistdio/u16-vsprintf.c: Likewise.
50607         * lib/unistdio/u32-asnprintf.c: Likewise.
50608         * lib/unistdio/u32-asprintf.c: Likewise.
50609         * lib/unistdio/u32-printf-parse.c: Likewise.
50610         * lib/unistdio/u32-snprintf.c: Likewise.
50611         * lib/unistdio/u32-sprintf.c: Likewise.
50612         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50613         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50614         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50615         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50616         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50617         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50618         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50619         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50620         * lib/unistdio/u32-vasnprintf.c: Likewise.
50621         * lib/unistdio/u32-vasprintf.c: Likewise.
50622         * lib/unistdio/u32-vsnprintf.c: Likewise.
50623         * lib/unistdio/u32-vsprintf.c: Likewise.
50624         * lib/unistdio/u8-asnprintf.c: Likewise.
50625         * lib/unistdio/u8-asprintf.c: Likewise.
50626         * lib/unistdio/u8-printf-parse.c: Likewise.
50627         * lib/unistdio/u8-snprintf.c: Likewise.
50628         * lib/unistdio/u8-sprintf.c: Likewise.
50629         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50630         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50631         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50632         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50633         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50634         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50635         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
50636         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
50637         * lib/unistdio/u8-vasnprintf.c: Likewise.
50638         * lib/unistdio/u8-vasprintf.c: Likewise.
50639         * lib/unistdio/u8-vsnprintf.c: Likewise.
50640         * lib/unistdio/u8-vsprintf.c: Likewise.
50641         * lib/unistdio/ulc-asnprintf.c: Likewise.
50642         * lib/unistdio/ulc-asprintf.c: Likewise.
50643         * lib/unistdio/ulc-printf-parse.c: Likewise.
50644         * lib/unistdio/ulc-snprintf.c: Likewise.
50645         * lib/unistdio/ulc-sprintf.c: Likewise.
50646         * lib/unistdio/ulc-vasnprintf.c: Likewise.
50647         * lib/unistdio/ulc-vasprintf.c: Likewise.
50648         * lib/unistdio/ulc-vsnprintf.c: Likewise.
50649         * lib/unistdio/ulc-vsprintf.c: Likewise.
50650         * lib/unistr.h: Likewise.
50651         * lib/unistr/u-cpy-alloc.h: Likewise.
50652         * lib/unistr/u-cpy.h: Likewise.
50653         * lib/unistr/u-endswith.h: Likewise.
50654         * lib/unistr/u-move.h: Likewise.
50655         * lib/unistr/u-set.h: Likewise.
50656         * lib/unistr/u-startswith.h: Likewise.
50657         * lib/unistr/u-stpcpy.h: Likewise.
50658         * lib/unistr/u-stpncpy.h: Likewise.
50659         * lib/unistr/u-strcat.h: Likewise.
50660         * lib/unistr/u-strcpy.h: Likewise.
50661         * lib/unistr/u-strcspn.h: Likewise.
50662         * lib/unistr/u-strdup.h: Likewise.
50663         * lib/unistr/u-strlen.h: Likewise.
50664         * lib/unistr/u-strncat.h: Likewise.
50665         * lib/unistr/u-strncpy.h: Likewise.
50666         * lib/unistr/u-strnlen.h: Likewise.
50667         * lib/unistr/u-strpbrk.h: Likewise.
50668         * lib/unistr/u-strspn.h: Likewise.
50669         * lib/unistr/u-strstr.h: Likewise.
50670         * lib/unistr/u-strtok.h: Likewise.
50671         * lib/unistr/u16-check.c: Likewise.
50672         * lib/unistr/u16-chr.c: Likewise.
50673         * lib/unistr/u16-cmp.c: Likewise.
50674         * lib/unistr/u16-cpy-alloc.c: Likewise.
50675         * lib/unistr/u16-cpy.c: Likewise.
50676         * lib/unistr/u16-endswith.c: Likewise.
50677         * lib/unistr/u16-mblen.c: Likewise.
50678         * lib/unistr/u16-mbsnlen.c: Likewise.
50679         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50680         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50681         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50682         * lib/unistr/u16-mbtouc.c: Likewise.
50683         * lib/unistr/u16-mbtoucr.c: Likewise.
50684         * lib/unistr/u16-move.c: Likewise.
50685         * lib/unistr/u16-next.c: Likewise.
50686         * lib/unistr/u16-prev.c: Likewise.
50687         * lib/unistr/u16-set.c: Likewise.
50688         * lib/unistr/u16-startswith.c: Likewise.
50689         * lib/unistr/u16-stpcpy.c: Likewise.
50690         * lib/unistr/u16-stpncpy.c: Likewise.
50691         * lib/unistr/u16-strcat.c: Likewise.
50692         * lib/unistr/u16-strchr.c: Likewise.
50693         * lib/unistr/u16-strcmp.c: Likewise.
50694         * lib/unistr/u16-strcpy.c: Likewise.
50695         * lib/unistr/u16-strcspn.c: Likewise.
50696         * lib/unistr/u16-strdup.c: Likewise.
50697         * lib/unistr/u16-strlen.c: Likewise.
50698         * lib/unistr/u16-strmblen.c: Likewise.
50699         * lib/unistr/u16-strmbtouc.c: Likewise.
50700         * lib/unistr/u16-strncat.c: Likewise.
50701         * lib/unistr/u16-strncmp.c: Likewise.
50702         * lib/unistr/u16-strncpy.c: Likewise.
50703         * lib/unistr/u16-strnlen.c: Likewise.
50704         * lib/unistr/u16-strpbrk.c: Likewise.
50705         * lib/unistr/u16-strrchr.c: Likewise.
50706         * lib/unistr/u16-strspn.c: Likewise.
50707         * lib/unistr/u16-strstr.c: Likewise.
50708         * lib/unistr/u16-strtok.c: Likewise.
50709         * lib/unistr/u16-to-u32.c: Likewise.
50710         * lib/unistr/u16-to-u8.c: Likewise.
50711         * lib/unistr/u16-uctomb-aux.c: Likewise.
50712         * lib/unistr/u16-uctomb.c: Likewise.
50713         * lib/unistr/u32-check.c: Likewise.
50714         * lib/unistr/u32-chr.c: Likewise.
50715         * lib/unistr/u32-cmp.c: Likewise.
50716         * lib/unistr/u32-cpy-alloc.c: Likewise.
50717         * lib/unistr/u32-cpy.c: Likewise.
50718         * lib/unistr/u32-endswith.c: Likewise.
50719         * lib/unistr/u32-mblen.c: Likewise.
50720         * lib/unistr/u32-mbsnlen.c: Likewise.
50721         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50722         * lib/unistr/u32-mbtouc.c: Likewise.
50723         * lib/unistr/u32-mbtoucr.c: Likewise.
50724         * lib/unistr/u32-move.c: Likewise.
50725         * lib/unistr/u32-next.c: Likewise.
50726         * lib/unistr/u32-prev.c: Likewise.
50727         * lib/unistr/u32-set.c: Likewise.
50728         * lib/unistr/u32-startswith.c: Likewise.
50729         * lib/unistr/u32-stpcpy.c: Likewise.
50730         * lib/unistr/u32-stpncpy.c: Likewise.
50731         * lib/unistr/u32-strcat.c: Likewise.
50732         * lib/unistr/u32-strchr.c: Likewise.
50733         * lib/unistr/u32-strcmp.c: Likewise.
50734         * lib/unistr/u32-strcpy.c: Likewise.
50735         * lib/unistr/u32-strcspn.c: Likewise.
50736         * lib/unistr/u32-strdup.c: Likewise.
50737         * lib/unistr/u32-strlen.c: Likewise.
50738         * lib/unistr/u32-strmblen.c: Likewise.
50739         * lib/unistr/u32-strmbtouc.c: Likewise.
50740         * lib/unistr/u32-strncat.c: Likewise.
50741         * lib/unistr/u32-strncmp.c: Likewise.
50742         * lib/unistr/u32-strncpy.c: Likewise.
50743         * lib/unistr/u32-strnlen.c: Likewise.
50744         * lib/unistr/u32-strpbrk.c: Likewise.
50745         * lib/unistr/u32-strrchr.c: Likewise.
50746         * lib/unistr/u32-strspn.c: Likewise.
50747         * lib/unistr/u32-strstr.c: Likewise.
50748         * lib/unistr/u32-strtok.c: Likewise.
50749         * lib/unistr/u32-to-u16.c: Likewise.
50750         * lib/unistr/u32-to-u8.c: Likewise.
50751         * lib/unistr/u32-uctomb.c: Likewise.
50752         * lib/unistr/u8-check.c: Likewise.
50753         * lib/unistr/u8-chr.c: Likewise.
50754         * lib/unistr/u8-cmp.c: Likewise.
50755         * lib/unistr/u8-cpy-alloc.c: Likewise.
50756         * lib/unistr/u8-cpy.c: Likewise.
50757         * lib/unistr/u8-endswith.c: Likewise.
50758         * lib/unistr/u8-mblen.c: Likewise.
50759         * lib/unistr/u8-mbsnlen.c: Likewise.
50760         * lib/unistr/u8-mbtouc-aux.c: Likewise.
50761         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50762         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50763         * lib/unistr/u8-mbtouc.c: Likewise.
50764         * lib/unistr/u8-mbtoucr.c: Likewise.
50765         * lib/unistr/u8-move.c: Likewise.
50766         * lib/unistr/u8-next.c: Likewise.
50767         * lib/unistr/u8-prev.c: Likewise.
50768         * lib/unistr/u8-set.c: Likewise.
50769         * lib/unistr/u8-startswith.c: Likewise.
50770         * lib/unistr/u8-stpcpy.c: Likewise.
50771         * lib/unistr/u8-stpncpy.c: Likewise.
50772         * lib/unistr/u8-strcat.c: Likewise.
50773         * lib/unistr/u8-strchr.c: Likewise.
50774         * lib/unistr/u8-strcmp.c: Likewise.
50775         * lib/unistr/u8-strcpy.c: Likewise.
50776         * lib/unistr/u8-strcspn.c: Likewise.
50777         * lib/unistr/u8-strdup.c: Likewise.
50778         * lib/unistr/u8-strlen.c: Likewise.
50779         * lib/unistr/u8-strmblen.c: Likewise.
50780         * lib/unistr/u8-strmbtouc.c: Likewise.
50781         * lib/unistr/u8-strncat.c: Likewise.
50782         * lib/unistr/u8-strncmp.c: Likewise.
50783         * lib/unistr/u8-strncpy.c: Likewise.
50784         * lib/unistr/u8-strnlen.c: Likewise.
50785         * lib/unistr/u8-strpbrk.c: Likewise.
50786         * lib/unistr/u8-strrchr.c: Likewise.
50787         * lib/unistr/u8-strspn.c: Likewise.
50788         * lib/unistr/u8-strstr.c: Likewise.
50789         * lib/unistr/u8-strtok.c: Likewise.
50790         * lib/unistr/u8-to-u16.c: Likewise.
50791         * lib/unistr/u8-to-u32.c: Likewise.
50792         * lib/unistr/u8-uctomb-aux.c: Likewise.
50793         * lib/unistr/u8-uctomb.c: Likewise.
50794         * lib/unitypes.h: Likewise.
50795         * lib/uniwidth.h: Likewise.
50796         * lib/uniwidth/cjk.h: Likewise.
50797         * lib/uniwidth/u16-strwidth.c: Likewise.
50798         * lib/uniwidth/u16-width.c: Likewise.
50799         * lib/uniwidth/u32-strwidth.c: Likewise.
50800         * lib/uniwidth/u32-width.c: Likewise.
50801         * lib/uniwidth/u8-strwidth.c: Likewise.
50802         * lib/uniwidth/u8-width.c: Likewise.
50803         * lib/uniwidth/width.c: Likewise.
50804
50805 2007-10-07  Bruno Haible  <bruno@clisp.org>
50806
50807         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
50808         The file is still under LGPL (see modules/inttypes).
50809
50810 2007-10-06  Bruno Haible  <bruno@clisp.org>
50811
50812         * modules/trunc (Dependencies): Add 'extensions'.
50813         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
50814         Reported by Ben Pfaff <blp@gnu.org>.
50815
50816 2007-10-06  Bruno Haible  <bruno@clisp.org>
50817
50818         * modules/freopen-tests: New file.
50819         * tests/test-freopen.c: New file.
50820
50821         * modules/fopen-tests: New file.
50822         * tests/test-fopen.c: New file.
50823
50824         * modules/fopen: New file.
50825         * lib/fopen.c: New file.
50826         * m4/fopen.m4: New file.
50827         * modules/freopen: New file.
50828         * lib/freopen.c: New file.
50829         * m4/freopen.m4: New file.
50830         * lib/stdio.in.h (fopen, freopen): New declarations.
50831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
50832         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50833         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
50834         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50835         * doc/functions/fopen.texi: Mention the 'fopen' module.
50836         * doc/functions/freopen.texi: Mention the 'freopen' module.
50837
50838 2007-10-06  Bruno Haible  <bruno@clisp.org>
50839
50840         * modules/open-tests: New file.
50841         * tests/test-open.c: New file.
50842
50843         * modules/open: New file.
50844         * lib/open.c: New file.
50845         * m4/open.m4: New file.
50846         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
50847         lib/open.c does.
50848         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
50849         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
50850         macros.
50851         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
50852         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
50853         REPLACE_OPEN.
50854         * doc/functions/open.texi: Mention the 'open' module.
50855
50856 2007-10-04  Bruno Haible  <bruno@clisp.org>
50857
50858         * modules/ceill-tests: New file.
50859         * tests/test-ceill.c: New file.
50860
50861         * modules/ceill: New file.
50862         * lib/ceill.c: Replace entire file.
50863         * m4/ceill.m4: New file.
50864         * lib/math.in.h (ceill): Replace declaration.
50865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
50866         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
50867         * doc/functions/ceill.texi: Mention the 'ceill' module.
50868         * modules/mathl (Files): Remove lib/ceill.c.
50869         (Depends-on): Add ceill.
50870
50871 2007-10-04  Bruno Haible  <bruno@clisp.org>
50872
50873         * modules/ceilf-tests: New file.
50874         * tests/test-ceilf.c: New file.
50875
50876         * modules/ceilf: New file.
50877         * lib/ceil.c: New file.
50878         * lib/ceilf.c: New file.
50879         * m4/ceilf.m4: New file.
50880         * lib/math.in.h (ceilf): New declaration.
50881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
50882         HAVE_DECL_CEILF.
50883         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
50884         HAVE_DECL_CEILF.
50885         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
50886
50887 2007-10-04  Bruno Haible  <bruno@clisp.org>
50888
50889         * modules/floorl-tests: New file.
50890         * tests/test-floorl.c: New file.
50891
50892         * modules/floorl: New file.
50893         * lib/floorl.c: Replace entire file.
50894         * m4/floorl.m4: New file.
50895         * lib/math.in.h (floorl): Replace declaration.
50896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
50897         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
50898         * doc/functions/floorl.texi: Mention the 'floorl' module.
50899         * modules/mathl (Files): Remove lib/floorl.c.
50900         (Depends-on): Add floorl.
50901
50902 2007-10-04  Bruno Haible  <bruno@clisp.org>
50903
50904         * modules/floorf-tests: New file.
50905         * tests/test-floorf.c: New file.
50906
50907         * modules/floorf: New file.
50908         * lib/floor.c: New file.
50909         * lib/floorf.c: New file.
50910         * m4/floorf.m4: New file.
50911         * lib/math.in.h (floorf): New declaration.
50912         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
50913         HAVE_DECL_FLOORF.
50914         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
50915         HAVE_DECL_FLOORF.
50916         * doc/functions/floorf.texi: Mention the 'floorf' module.
50917
50918 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
50919             Bruno Haible  <bruno@clisp.org>
50920
50921         Advertise for the Git server instead of the CVS server.
50922         * doc/gnulib-intro.texi (Steady Development): Mention the Git
50923         repository instead of the CVS one.
50924         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
50925         about all VCS systems generically.
50926         * doc/gnulib.texi (Introduction): Capitalize `Git'.
50927
50928 2007-10-04  Bruno Haible  <bruno@clisp.org>
50929
50930         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
50931         means.
50932         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
50933
50934 2007-10-04  Bruno Haible  <bruno@clisp.org>
50935
50936         * modules/truncl-tests: New file.
50937         * tests/test-truncl.c: New file.
50938
50939         * modules/truncl: New file.
50940         * lib/truncl.c: New file.
50941         * m4/truncl.m4: New file.
50942         * lib/math.in.h (truncl): New declaration.
50943         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
50944         HAVE_DECL_TRUNCL.
50945         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
50946         HAVE_DECL_TRUNCL.
50947         * doc/functions/truncl.texi: Mention the 'truncl' module.
50948
50949 2007-10-04  Bruno Haible  <bruno@clisp.org>
50950
50951         * modules/truncf-tests: New file.
50952         * tests/test-truncf.c: New file.
50953
50954         * modules/truncf: New file.
50955         * lib/trunc.c: Make paramerizable through USE_* macros.
50956         * lib/truncf.c: New file.
50957         * m4/truncf.m4: New file.
50958         * lib/math.in.h (truncf): New declaration.
50959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
50960         HAVE_DECL_TRUNCF.
50961         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
50962         HAVE_DECL_TRUNCF.
50963         * doc/functions/truncf.texi: Mention the 'truncf' module.
50964
50965 2007-10-03  Bruno Haible  <bruno@clisp.org>
50966
50967         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50968         augmentation also for tests modules.
50969         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
50970         * modules/atexit-tests (Makefile.am): Likewise.
50971         * modules/binary-io-tests (Makefile.am): Likewise.
50972         * modules/c-strcase-tests (Makefile.am): Likewise.
50973         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
50974         * modules/canonicalize-tests (Makefile.am): Likewise.
50975         * modules/closein-tests (Makefile.am): Likewise.
50976         * modules/fprintf-posix-tests (Makefile.am): Likewise.
50977         * modules/freadahead-tests (Makefile.am): Likewise.
50978         * modules/fseek-tests (Makefile.am): Likewise.
50979         * modules/fseeko-tests (Makefile.am): Likewise.
50980         * modules/ftell-tests (Makefile.am): Likewise.
50981         * modules/ftello-tests (Makefile.am): Likewise.
50982         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
50983         * modules/isnanl-tests (Makefile.am): Likewise.
50984         * modules/lseek-tests (Makefile.am): Likewise.
50985         * modules/mbscasecmp-tests (Makefile.am): Likewise.
50986         * modules/mbscasestr-tests (Makefile.am): Likewise.
50987         * modules/mbschr-tests (Makefile.am): Likewise.
50988         * modules/mbscspn-tests (Makefile.am): Likewise.
50989         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
50990         * modules/mbspbrk-tests (Makefile.am): Likewise.
50991         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
50992         * modules/mbsrchr-tests (Makefile.am): Likewise.
50993         * modules/mbsspn-tests (Makefile.am): Likewise.
50994         * modules/mbsstr-tests (Makefile.am): Likewise.
50995         * modules/printf-posix-tests (Makefile.am): Likewise.
50996         * modules/snprintf-posix-tests (Makefile.am): Likewise.
50997         * modules/sprintf-posix-tests (Makefile.am): Likewise.
50998         * modules/tsearch-tests (Makefile.am): Likewise.
50999         * modules/uniname/uniname-tests (Makefile.am): Likewise.
51000         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
51001         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
51002         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
51003         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
51004         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
51005         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
51006         * modules/vprintf-posix-tests (Makefile.am): Likewise.
51007         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
51008         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
51009         * modules/xstrtoimax-tests (Makefile.am): Likewise.
51010         * modules/xstrtol-tests (Makefile.am): Likewise.
51011         * modules/xstrtoumax-tests (Makefile.am): Likewise.
51012         * modules/yesno-tests (Makefile.am): Likewise.
51013
51014 2007-10-03  Bruno Haible  <bruno@clisp.org>
51015
51016         * modules/trunc-tests: New file.
51017         * tests/test-trunc.c: New file.
51018
51019         * modules/trunc: New file.
51020         * lib/trunc.c: New file.
51021         * m4/trunc.m4: New file.
51022         * lib/math.in.h (trunc): New declaration.
51023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
51024         HAVE_DECL_TRUNC.
51025         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
51026         HAVE_DECL_TRUNC.
51027         * doc/functions/trunc.texi: Mention the 'trunc' module.
51028
51029 2007-10-03  Bruno Haible  <bruno@clisp.org>
51030
51031         * tests/test-fpending.c: New file, mostly copied
51032         from coreutils/lib/t-fpending.c.
51033         * modules/fpending-tests: New file.
51034
51035 2007-10-03  Bruno Haible  <bruno@clisp.org>
51036
51037         Port the stdio extensions to QNX (untested).
51038         * lib/fseterr.c (fseterr): Add support for QNX.
51039         * lib/fbufmode.c (fbufmode): Likewise.
51040         * lib/freadable.c (freadable): Likewise.
51041         * lib/fwritable.c (fwritable): Likewise.
51042         * lib/freading.c (freading): Likewise.
51043         * lib/fwriting.c (fwriting): Likewise.
51044         * lib/freadahead.c (freadahed): Likewise.
51045         * lib/fpurge.c (fpurge): Likewise.
51046         * lib/fseeko.c (rpl_fseeko): Likewise.
51047
51048 2007-10-03  Bruno Haible  <bruno@clisp.org>
51049             Jim Meyering  <jim@meyering.net>
51050             Eric Blake  <ebb9@byu.net>
51051
51052         * doc/relocatable.texi: Use @command instead of @program.
51053
51054 2007-10-02  Jim Meyering  <jim@meyering.net>
51055
51056         Perform one more "_.h" -> ".in.h" substitution.
51057         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
51058         instead of unistd_.h here, too.
51059
51060 2007-10-01  Bruno Haible  <bruno@clisp.org>
51061
51062         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
51063         Needed for the alloca-opt module.
51064
51065 2007-09-30  Bruno Haible  <bruno@clisp.org>
51066
51067         * lib/alloca.in.h: Renamed from lib/alloca_.h.
51068         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
51069         alloca_.h.
51070         * lib/argz.in.h: Renamed from lib/argz_.h.
51071         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
51072         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
51073         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
51074         byteswap_.h.
51075         * lib/dirent.in.h: Renamed from lib/dirent_.h.
51076         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
51077         dirent_.h.
51078         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
51079         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
51080         fcntl_.h.
51081         * lib/float.in.h: Renamed from lib/float_.h.
51082         * modules/float (Files, Makefile.am): Use float.in.h instead of
51083         float_.h.
51084         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
51085         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
51086         fnmatch_.h.
51087         * lib/getopt.in.h: Renamed from lib/getopt_.h.
51088         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
51089         getopt_.h.
51090         * lib/glob.in.h: Renamed from lib/glob_.h.
51091         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
51092         * lib/iconv.in.h: Renamed from lib/iconv_.h.
51093         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
51094         iconv_.h.
51095         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
51096         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
51097         inttypes_.h.
51098         * lib/locale.in.h: Renamed from lib/locale_.h.
51099         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
51100         locale_.h.
51101         * lib/math.in.h: Renamed from lib/math_.h.
51102         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
51103         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
51104         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
51105         of netinet_in_.h. Add dependency.
51106         * lib/poll.in.h: Renamed from lib/poll_.h.
51107         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
51108         * lib/search.in.h: Renamed from lib/search_.h.
51109         * modules/search (Files, Makefile.am): Use search.in.h instead of
51110         search_.h.
51111         * lib/signal.in.h: Renamed from lib/signal_.h.
51112         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
51113         _signal.h.
51114         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
51115         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
51116         stdbool_.h.
51117         * lib/stdint.in.h: Renamed from lib/stdint_.h.
51118         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
51119         stdint_.h.
51120         * lib/stdio.in.h: Renamed from lib/stdio_.h.
51121         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
51122         stdio_.h.
51123         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
51124         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
51125         stdlib_.h.
51126         * lib/string.in.h: Renamed from lib/string_.h.
51127         * modules/string (Files, Makefile.am): Use string.in.h instead of
51128         string_.h.
51129         * doc/gnulib-tool.texi (Initial import): Update.
51130         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
51131         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
51132         of sys_select_.h. Add dependency.
51133         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
51134         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
51135         of sys_socket_.h.
51136         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
51137         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
51138         sys_stat_.h.
51139         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
51140         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
51141         sys_time_.h.
51142         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
51143         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
51144         sysexits_.h.
51145         * lib/time.in.h: Renamed from lib/time_.h.
51146         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
51147         * lib/unistd.in.h: Renamed from lib/unistd_.h.
51148         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
51149         unistd_.h.
51150         * lib/wchar.in.h: Renamed from lib/wchar_.h.
51151         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
51152         wchar_.h.
51153         * lib/wctype.in.h: Renamed from lib/wctype_.h.
51154         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
51155         wctype_.h.
51156         * build-aux/bootstrap (slurp): Update.
51157         * lib/.cppi-disable: Update.
51158
51159 2007-09-30  Bruno Haible  <bruno@clisp.org>
51160
51161         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
51162         Needed on BeOS.
51163
51164 2007-09-30  Bruno Haible  <bruno@clisp.org>
51165
51166         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
51167
51168 2007-09-29  Bruno Haible  <bruno@clisp.org>
51169
51170         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
51171
51172 2007-09-29  Bruno Haible  <bruno@clisp.org>
51173
51174         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
51175         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
51176         * build-aux/install-reloc: Compile also areadlink.c.
51177         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
51178
51179 2007-09-29  Bruno Haible  <bruno@clisp.org>
51180
51181         * gnulib-tool (func_emit_initmacro_done): Indentation.
51182
51183 2007-09-29  Bruno Haible  <bruno@clisp.org>
51184
51185         * README: Add CVS checkout update instructions.
51186         Info from Bob Proulx <bob@proulx.com>.
51187
51188 2007-09-28  Eric Blake  <ebb9@byu.net>
51189
51190         Provide move-if-change.
51191         * build-aux/move-if-change: New file, based on best practice
51192         rather than any canonical upstream location.
51193
51194 2007-09-28  Jim Meyering  <jim@meyering.net>
51195
51196         Fix canonicalize loop-detection corner case.
51197         Do not attempt to stat the symlink values stored via seen_triple.
51198         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
51199         on linux-2.6.18, (but not 2.6.22).
51200         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
51201         triple_compare.  The former compares dev,ino,filename, while the latter
51202         would actually stat dirname(filename) when dev and ino were equal.
51203         * lib/hash-triple.c: Install <string.h>.
51204         (STREQ): Define.
51205         (triple_compare_ino_str): New function.
51206         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
51207
51208 2007-09-28  Eric Blake  <ebb9@byu.net>
51209
51210         Enforce that AC_REPLACE_FUNCS files exist.
51211         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
51212         override check for typos.
51213
51214         Fix test-closein on Solaris 10.
51215         * tests/test-closein.c (main): Don't assume stdin can be inherited
51216         closed on all systems.
51217         * tests/test-closein.sh: Likewise.
51218         Reported by Piotr Tarnowski.
51219
51220 2007-09-28  Jim Meyering  <jim@meyering.net>
51221
51222         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
51223
51224 2007-09-27  Jim Meyering  <jim@meyering.net>
51225
51226         canonicalize: Avoid a false-positive cycle failure.
51227         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
51228         Sort.  Remove cycle-check.
51229         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
51230         not cycle-check.h.
51231         (seen_triple): New function.
51232         (canonicalize_filename_mode): Use it instead of cycle-check.
51233         * tests/test-canonicalize.c: Add a test for this bug.
51234         * tests/test-canonicalize.sh: Set up and run the test.
51235
51236         New module, file-set, from coreutils.
51237         * modules/file-set: Define it.
51238         * lib/file-set.c, lib/file-set.h: Implement.
51239
51240         New module, hash-triple, from coreutils.
51241         * modules/hash-triple: Define it.
51242         * lib/hash-triple.c, lib/hash-triple.h: Implement.
51243
51244 2007-09-25  Eric Blake  <ebb9@byu.net>
51245
51246         Fix strerror on Interix.
51247         * lib/string_.h (strerror): Declare replacement.
51248         * doc/functions/strerror.texi (strerror): Document the Interix
51249         shortcoming.
51250         * modules/string (Makefile.am): Support new hooks.
51251         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
51252         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51253         gl_FUNC_STRERROR_SEPARATE.
51254         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51255         * lib/strerror.c (rpl_strerror): Provide replacement.
51256         * modules/strerror (Depends-on): Add string.
51257         (configure.ac): Detect use of module.
51258         * tests/test-strerror.c: New file.
51259         * modules/strerror-tests: New test module.
51260         * modules/argp (Depends-on): Add strerror.
51261         * modules/error (Depends-on): Likewise.
51262         Reported by Martin Koeppe.
51263
51264 2007-09-24  Bruno Haible  <bruno@clisp.org>
51265
51266         * README: Update git instructions.
51267
51268 2007-09-24  Eric Blake  <ebb9@byu.net>
51269
51270         Revert fpending breakage from 2007-09-08.
51271         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51272         __fpending.c.
51273
51274 2007-09-24  Jim Meyering  <jim@meyering.net>
51275
51276         filenamecat.c: Add a test.
51277         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51278         showing how the function works when DIR is the empty string.
51279
51280 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51281
51282         * tests/test-canonicalize.sh: Turn on executable bit.
51283
51284 2007-09-19  Eric Blake  <ebb9@byu.net>
51285
51286         * README: Update CVS instructions.
51287
51288 2007-09-18  Bruno Haible  <bruno@clisp.org>
51289
51290         * modules/areadlink: New file.
51291         * lib/areadlink.h (areadlink): New declaration.
51292         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51293
51294 2007-09-17  Jim Meyering  <jim@meyering.net>
51295
51296         * lib/savewd.c (ESTALE) [!defined]: Define.
51297         Reported to be required on Interix by Martin Koeppe.
51298
51299 2007-09-17  Bruno Haible  <bruno@clisp.org>
51300
51301         * gnulib-tool (func_version): Use $version.
51302
51303 2007-09-16  Bruno Haible  <bruno@clisp.org>
51304
51305         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51306         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51307         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51308         Reported by Greg Schafer <gschafer@zip.com.au>.
51309
51310 2007-09-15  Bruno Haible  <bruno@clisp.org>
51311
51312         * gnulib-tool (sed): Try a little harder to make bash understand the
51313         alias.
51314         Reported by Bruce Korb <bruce.korb@gmail.com>.
51315
51316 2007-09-13  Eric Blake  <ebb9@byu.net>
51317
51318         * ChangeLog: Remove conflict markers.
51319
51320 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51321
51322         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51323         Reported by Bruno Haible <bruno@clisp.org>.
51324
51325 2007-09-12  Bruno Haible  <bruno@clisp.org>
51326
51327         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51328         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51329         is not defined.
51330
51331 2007-09-12  Eric Blake  <ebb9@byu.net>
51332
51333         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51334         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51335         Autoconf definition.
51336         * modules/euidaccess (Depends-on): Add extensions, for
51337         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51338         * modules/fnmatch (Depends-on): Likewise.
51339         * modules/getaddrinfo (Depends-on): Likewise.
51340         * modules/getdelim (Depends-on): Likewise.
51341         * modules/getline (Depends-on): Likewise.
51342         * modules/getsubopt (Depends-on): Likewise.
51343         * modules/gettext (Depends-on): Likewise.
51344         * modules/group-member (Depends-on): Likewise.
51345         * modules/mbchar (Depends-on): Likewise.
51346         * modules/memmem (Depends-on): Likewise.
51347         * modules/mempcpy (Depends-on): Likewise.
51348         * modules/memrchr (Depends-on): Likewise.
51349         * modules/pagealign_alloc (Depends-on): Likewise.
51350         * modules/readutmp (Depends-on): Likewise.
51351         * modules/stpcpy (Depends-on): Likewise.
51352         * modules/stpncpy (Depends-on): Likewise.
51353         * modules/strchrnul (Depends-on): Likewise.
51354         * modules/strndup (Depends-on): Likewise.
51355         * modules/strsep (Depends-on): Likewise.
51356         * modules/strverscmp (Depends-on): Likewise.
51357         * modules/vasprintf (Depends-on): Likewise.
51358         * modules/wcwidth (Depends-on): Likewise.
51359         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51360         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51361         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51362         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51363         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51364         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51365         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51366         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51367         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51368         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51369         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51370         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51371         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51372         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51373         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51374         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51375         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51376         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51377         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51378         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51379         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51380         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51381         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51382         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51383         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51384         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51385         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51386         so that lock.m4 can be used in gettext without extensions module.
51387
51388 2007-09-11  Bruno Haible  <bruno@clisp.org>
51389
51390         * m4/isc-posix.m4: Remove file.
51391         Suggested by Eric Blake.
51392
51393 2007-09-11  Eric Blake  <ebb9@byu.net>
51394
51395         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51396
51397 2007-09-10  Bruno Haible  <bruno@clisp.org>
51398
51399         * posix-modules: Fix typo in error message.
51400         Reported by Matt <mkraai@beckman.com>.
51401
51402 2007-09-09  Bruno Haible  <bruno@clisp.org>
51403
51404         * doc/functions/getdelim.texi: Update list of platforms lacking the
51405         function.
51406         * doc/functions/getline.texi: Likewise.
51407
51408 2007-09-09  Jim Meyering  <jim@meyering.net>
51409
51410         * lib/hash.c (hash_initialize): Detect calloc failure.
51411         Reported by Bruno Haible.
51412
51413 2007-09-09  Bruno Haible  <bruno@clisp.org>
51414
51415         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51416         malloc or realloc fails.
51417
51418 2007-09-09  Bruno Haible  <bruno@clisp.org>
51419
51420         * modules/getcwd (Depends-on): Add malloc-posix.
51421         * modules/glob (Depends-on): Likewise.
51422         * modules/putenv (Depends-on): Likewise.
51423         * modules/strdup (Depends-on): Likewise.
51424         * modules/getdelim (Depends-on): Add realloc-posix.
51425         * modules/read-file (Depends-on): Likewise.
51426
51427 2007-09-09  Bruno Haible  <bruno@clisp.org>
51428
51429         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51430         (gl_FUNC_MALLOC_POSIX): Require it.
51431         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51432         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51433         * modules/realloc (Files): Add m4/malloc.m4.
51434         * modules/calloc (Files): Likewise.
51435
51436 2007-09-09  Bruno Haible  <bruno@clisp.org>
51437
51438         * modules/malloc-posix: New file.
51439         * modules/malloc (Depends-on): Add malloc-posix.
51440         * lib/malloc.c: Include errno.h.
51441         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51442         and a POSIX-compatible malloc into a single function. Set ENOMEM
51443         when returning NULL.
51444         * m4/malloc.m4: New file.
51445         * doc/functions/malloc.texi: Mention the malloc-posix module.
51446         * lib/stdlib_.h (malloc): New declaration.
51447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51448         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51449         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51450         and HAVE_MALLOC_POSIX.
51451
51452 2007-09-09  Bruno Haible  <bruno@clisp.org>
51453
51454         * modules/realloc-posix: New file.
51455         * modules/realloc (Depends-on): Add realloc-posix.
51456         * lib/realloc.c: Include errno.h.
51457         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51458         and a POSIX-compatible realloc into a single function. Set ENOMEM
51459         when returning NULL.
51460         * m4/realloc.m4: New file.
51461         * doc/functions/realloc.texi: Mention the realloc-posix module.
51462         * lib/stdlib_.h (realloc): New declaration.
51463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51464         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51465         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51466         and HAVE_REALLOC_POSIX.
51467
51468 2007-09-09  Bruno Haible  <bruno@clisp.org>
51469
51470         * modules/calloc-posix: New file.
51471         * modules/calloc (Depends-on): Add calloc-posix.
51472         * lib/calloc.c: Include errno.h.
51473         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
51474         and a POSIX-compatible calloc into a single function. Set ENOMEM
51475         when returning NULL.
51476         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
51477         * doc/functions/calloc.texi: Mention the calloc-posix module.
51478         * lib/stdlib_.h (calloc): New declaration.
51479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51480         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
51481         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
51482         and HAVE_CALLOC_POSIX.
51483
51484 2007-09-09  Bruno Haible  <bruno@clisp.org>
51485
51486         Allow for modules to show an arbitrary notice.
51487         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
51488         * gnulib-tool: New option --extract-notice.
51489         (func_usage): Document it.
51490         (sed_extract_prog): Update.
51491         (func_get_notice): New function.
51492         (func_modules_notice): New function.
51493         (func_import, func_create_testdir): Invoke it.
51494         Suggested by Jim Meyering.
51495
51496 2007-09-09  Bruno Haible  <bruno@clisp.org>
51497
51498         * gnulib-tool: New options --verbose, --quiet.
51499         (func_usage): Document them.
51500         (verbose): New variable.
51501         (func_execute_command): New function.
51502         (func_import): Don't show the module list and the file list if
51503         $verbose < 0.
51504         (func_create_testdir): Likewise. Use func_execute_command.
51505         (func_create_megatestdir): Use func_execute_command.
51506
51507 2007-09-08  Bruno Haible  <bruno@clisp.org>
51508
51509         * gnulib-tool (func_import): Prefer rsync over wget when available,
51510         for fetching the PO files.
51511
51512 2007-09-08  Bruno Haible  <bruno@clisp.org>
51513
51514         * posix-modules: New file. Portions copied from gnulib-tool.
51515         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
51516
51517 2007-09-08  Jim Meyering  <jim@meyering.net>
51518
51519         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
51520         * lib/fpending.h: Rename from __fpending.h.
51521         * lib/fpending.c: Rename from __fpending.c.
51522         Include "fpending.h", not "__fpending.h".
51523         * lib/__fpending.h, lib/__fpending.c: Remove files.
51524         * modules/fpending (Files): Reflect new file names.
51525         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
51526
51527 2007-09-08  Bruno Haible  <bruno@clisp.org>
51528
51529         * m4/inttypes-h.m4: Remove stub file.
51530
51531 2007-09-07  Simon Josefsson  <simon@josefsson.org>
51532
51533         * doc/headers/stdint.texi: Discuss #include_next issue.
51534
51535 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51536
51537         * build-aux/bootstrap: Remove obsolete comment about wget --help.
51538
51539 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51540
51541         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
51542         in variable name.
51543
51544 2007-09-03  Jim Meyering  <jim@meyering.net>
51545
51546         New module: git-version-gen.
51547         * modules/git-version-gen: New file.
51548
51549         Import changes from coreutils for bootstrap script.
51550
51551         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
51552
51553         bootstrap: uses rsync to download the .po files
51554         * build-aux/bootstrap (po_download_command_format): New global.
51555         (download_po_files): Use rsync.
51556         (update_po_files): Don't remove .po files after download,
51557         so future rsync runs can take advantage of the copies.
51558
51559         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
51560
51561         Solve the unnecessary-.po-file-regeneration problem once and for all.
51562         * build-aux/bootstrap (download_po_files): New function, renamed from
51563         get_translations.  Now, downloads, but doesn't update LINGUAS.
51564         (update_po_files): New function.
51565
51566         bootstrap: Ignore more.
51567         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51568         uniwidth to e.g., lib/.gitignore.
51569         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51570
51571         * build-aux/bootstrap: New setting: vc_ignore.
51572         (insert_sorted_if_absent): Create $file if absent.
51573         Adapt to new, possibly empty, list: $vc_ignore.
51574
51575         bootstrap: generate more ignorable names
51576         * build-aux/bootstrap (slurp): When generating ignorable names,
51577         also map .sin to .sed, .gperf to .c, and .y to .c.
51578
51579 2007-09-03  Jim Meyering  <jim@meyering.net>
51580
51581         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51582         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51583
51584 2007-09-02  Bruno Haible  <bruno@clisp.org>
51585
51586         Fix mis-recognition of 'mcs' on QNX 6.
51587         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51588         output contains the string "Mono".
51589         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51590         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51591
51592 2007-09-01  Bruno Haible  <bruno@clisp.org>
51593
51594         Fix collision between uniwidth/* and linebreak modules.
51595         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51596         u32_width): Remove declarations.
51597         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51598         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51599         streq3, streq2, streq1, streq0): Remove functions.
51600         (STREQ): Remove macro.
51601         (is_cjk_encoding): Remove function.
51602         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51603         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51604         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51605         * NEWS: Document the change.
51606
51607 2007-09-01  Bruno Haible  <bruno@clisp.org>
51608
51609         * lib/streq.h: Add double-inclusion guard.
51610
51611 2007-09-01  Karl Berry  <karl@gnu.org>
51612
51613         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51614
51615 2007-08-28  Jim Meyering  <jim@meyering.net>
51616
51617         Rename mreadlink_with_size to areadlink_with_size.
51618         * NEWS: Document the change.
51619         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51620         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51621         * lib/mreadlink.h: Rename this to...
51622         * lib/areadlink.h: ...this.
51623         * modules/mreadlink-with-size: Rename this to...
51624         * modules/areadlink-with-size: ...this.
51625         * lib/canonicalize.c: Reflect the renaming.
51626         * modules/canonicalize: Likewise.
51627
51628 2007-08-26  Bruno Haible  <bruno@clisp.org>
51629
51630         * gnulib-tool (func_import): When deciding which files to remove,
51631         consider also dangling symbolic links.
51632         Reported by Eric Blake.
51633
51634 2007-08-26  Bruno Haible  <bruno@clisp.org>
51635
51636         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
51637
51638 2007-08-23  Simon Josefsson  <simon@josefsson.org>
51639
51640         * lib/readline.c: Don't include getline.h, the prototype is now
51641         found in stdio.h.
51642
51643 2007-08-23  Jim Meyering  <jim@meyering.net>
51644
51645         Getdelim touchup.
51646         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
51647         around the funlockfile call, since funlockfile never sets errno.
51648         Don't set errno upon failed realloc.
51649
51650 2007-08-22  Eric Blake  <ebb9@byu.net>
51651
51652         Getline touchups.
51653         * lib/getdelim.c (getdelim): Revert regression that required *n to
51654         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
51655         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
51656         getdelim, rather than whether implementation is missing.
51657         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
51658         * lib/stdio_.h (getline): Also declare if replacement is
51659         required.
51660         * doc/functions/getdelim.texi: New file.
51661         * doc/functions/getline.texi: Likewise.
51662         * doc/gnulib.texi (Function Substitutes): Add new files.
51663         Reported by Bruno Haible.
51664
51665 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
51666
51667         * users.txt: Add Guile.
51668
51669 2007-08-22  Eric Blake  <ebb9@byu.net>
51670
51671         * tests/test-getdelim.c (main): Use remove, not unlink.
51672         * tests/test-getline.c (main): Likewise.
51673
51674         Move getline and getdelim into stdio.h, per POSIX 200x.
51675         * modules/getline (Files): Remove getline.h.
51676         (Depends-on): Add stdio.
51677         (configure.ac): Add module indicator.
51678         * modules/getdelim (Files): Remove getdelim.h.
51679         (Depends-on): Add stdio.
51680         (configure.ac): Add module indicator.
51681         * modules/stdio (Makefile.am): Work with new indicators.
51682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
51683         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
51684         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51685         * lib/getdelim.h: Delete.
51686         * lib/getline.h: Delete.
51687         * lib/stdio_.h (getdelim, getline): Declare.
51688         * modules/getdelim-tests: New module.
51689         * modules/getline-tests: Likewise.
51690         * tests/test-getdelim.c: New file.
51691         * tests/test-getline.c: Likewise.
51692         * NEWS: Document the change.
51693         * lib/getline.c: Update choice of header.
51694         * lib/csharpcomp.c: Likewise.
51695         * lib/getpass.c: Likewise.
51696         * lib/javacomp.c: Likewise.
51697         * lib/javaversion.c: Likewise.
51698         * lib/yesno.c: Likewise.
51699         * lib/getdelim.c: Likewise.
51700         (getdelim): Set errno on failure, and avoid memory leak.
51701
51702 2007-08-19  Bruno Haible  <bruno@clisp.org>
51703
51704         * modules/closein (Depends-on): Add freadahead.
51705         * lib/closein.c: Include freadahead.h.
51706         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
51707         is zero.
51708
51709 2007-08-19  Bruno Haible  <bruno@clisp.org>
51710
51711         * modules/freadahead-tests: New file.
51712         * tests/test-freadahead.sh: New file.
51713         * tests/test-freadahead.c: New file.
51714
51715         * modules/freadahead: New file.
51716         * lib/freadahead.h: New file.
51717         * lib/freadahead.c: New file.
51718         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
51719         fbufmode, fpurge, freadable, fwritable.
51720
51721 2007-08-19  Eric Blake  <ebb9@byu.net>
51722
51723         Test yesno in combination with closein.
51724         * lib/yesno.c (yesno): Document use of stdin.
51725         * modules/yesno-tests (Files): New module.
51726         * tests/test-yesno.c (main): New file.
51727         * tests/test-yesno.sh: Likewise.
51728
51729 2007-08-19  Bruno Haible  <bruno@clisp.org>
51730
51731         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
51732         * lib/fseeko.c (rpl_fseeko): Likewise.
51733         * lib/fseterr.c (fseterr): Likewise.
51734
51735 2007-08-19  Bruno Haible  <bruno@clisp.org>
51736
51737         * tests/test-lseek.c (main): Disable a test for BeOS.
51738         * doc/functions/lseek.texi: Document the BeOS bug.
51739
51740 2007-08-19  Bruno Haible  <bruno@clisp.org>
51741             Eric Blake  <ebb9@byu.net>
51742
51743         * lib/lseek.c: Include <sys/stat.h>.
51744         (rpl_lseek): Add workaround code also for Unix platforms.
51745         Needed for BeOS.
51746         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
51747         * doc/functions/lseek.texi: Document BeOS definiency.
51748
51749 2007-08-18  Bruno Haible  <bruno@clisp.org>
51750
51751         * modules/fstrcmp-tests: New file.
51752         * tests/test-fstrcmp.c: New file.
51753
51754 2007-08-18  Bruno Haible  <bruno@clisp.org>
51755
51756         * modules/fstrcmp: New file, from GNU gettext with modifications.
51757         * lib/fstrcmp.h: New file, from GNU gettext.
51758         * lib/fstrcmp.c: New file, from GNU gettext.
51759         * MODULES.html.sh (String handling): Add fstrcmp.
51760
51761 2007-08-18  Bruno Haible  <bruno@clisp.org>
51762
51763         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
51764         'bool'.
51765         (diag, compareseq): Remove const from the ctxt argument.
51766         (USE_HEURISTIC): Undefine at the end.
51767
51768 2007-08-18  Jim Meyering  <jim@meyering.net>
51769
51770         New file: lib/idcache.h
51771         * NEWS: Mention the addition.
51772         * modules/idcache (Files): Add lib/idcache.h
51773         * lib/idcache.c: Include "idcache.h".
51774         Don't include <sys/types.h>.
51775         Add a FIXME comment.
51776         Move file-scoped "static" declarations to the top.
51777         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
51778
51779 2007-08-17  Bruno Haible  <bruno@clisp.org>
51780         and Paul Eggert  <eggert@cs.ucla.edu>
51781
51782         * MODULES.html.sh: Add diffseq.
51783         * modules/diffseq: New file.
51784         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
51785         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
51786
51787 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51788
51789         Import changes from coreutils for bootstrap script.
51790
51791         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
51792
51793         * build-aux/bootstrap (slurp): Work even in environments where
51794         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
51795         current code does not slurp files whose names start with ".", and
51796         this looks like it might be a troublesome area.
51797
51798         2007-07-11  Jim Meyering  <jim@meyering.net>
51799
51800         If there's a GPL vN copyright comment, require that N == 3.
51801
51802         2007-07-08  Jim Meyering  <jim@meyering.net>
51803
51804         Run the coreutils-specific code only if tests/Makefile.am.in exists.
51805         * build-aux/bootstrap (mam_template): Move definition out of loop.
51806
51807         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
51808
51809         * build-aux/bootstrap (symlink_to_dir): Rename function from
51810         symlink_to_gnulib.  Add a directory parameter.  Update all
51811         callers.
51812         (cp_mark_as_generated): Also check for -- and link to -- files in
51813         gl/.
51814
51815         2007-07-08  Jim Meyering  <jim@meyering.net>
51816
51817         Adapt to deeper hierarchy in gnulib.
51818         * build-aux/bootstrap (symlink_to_dir): If the destination
51819         directory doesn't exist, create it. This is required at least for
51820         "lib/uniwidth/cjk.h".
51821
51822         2007-05-15  Jim Meyering  <jim@meyering.net>
51823
51824         * build-aux/bootstrap: Now that generated Makefile.am files
51825         are no longer under version control, they must be created at
51826         bootstrap time.
51827
51828 2007-08-14  Ben Pfaff  <blp@gnu.org>
51829
51830         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
51831
51832 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51833
51834         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
51835         given the changes below.
51836         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
51837         even on hosts that have padding bits beyond the supported 64.
51838
51839 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51840
51841         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
51842         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
51843         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
51844         depends on it.
51845         (xstrtol_error): Remove.
51846         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
51847         but with a different signature.
51848         (ATTRIBUTE_NORETURN, __attribute__): New macros.
51849         * lib/xstrtol-error.c: Include exitfail.h.
51850         (xstrtol_fatal): New function, with a different signature from the
51851         old xstrtol_error, so that the caller need not worry about passing
51852         in an exit status, or about storage management of the option argument.
51853         (xstrtol_error): Now a static function.  Redo signature to
51854         implement xstrtol_fatal.  Output the correct number of hyphens in
51855         front of the option so that the caller need not worry about
51856         storage management.
51857         (N_): New macro.
51858         (_): Remove; not used now.
51859         * modules/xstrtol: Depend on getopt.
51860         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
51861         of old STRTOL_FATAL_ERROR macro.
51862         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
51863         of test program.
51864         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
51865         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
51866
51867 2007-08-08  Eric Blake  <ebb9@byu.net>
51868
51869         * lib/xstrtol-error.c: Add missing include.
51870
51871         Move xstrtol messages into gnulib domain, when --pobase is used.
51872         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
51873         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
51874         * modules/xstrtol (Files): Distribute new file.
51875         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
51876         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
51877         * tests/test-xstrtol.c: ...into new file.
51878         * tests/test-xstrtoul.c: Also test xstrtoul.
51879         * tests/test-xstrtoimax.c: Also test xstrtoimax.
51880         * tests/test-xstrtoumax.c: Also test xstrtoumax.
51881         * tests/test-xstrtol.sh: Drive the tests.
51882         * tests/test-xstrtoimax.sh: Likewise.
51883         * tests/test-xstrtoumax.sh: Likewise.
51884         * modules/xstrtol-tests: New module.
51885         * modules/xstrtoimax-tests: Likewise.
51886         * modules/xstrtoumax-tests: Likewise.
51887
51888 2007-08-08  Jim Meyering  <jim@meyering.net>
51889
51890         New function: mfile_name_concat.
51891         * lib/filenamecat.c (mfile_name_concat): New function, just like
51892         file_name_concat, but return NULL upon failure rather than exiting
51893         with a diagnostic.
51894         * lib/filenamecat.h: Declare it.
51895
51896 2007-08-07  Bruno Haible  <bruno@clisp.org>
51897
51898         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
51899         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
51900         warning from gcc.
51901         Reported by Eric Blake.
51902
51903 2007-08-07  Simon Josefsson  <simon@josefsson.org>
51904
51905         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
51906         * modules/crypto/arcfour (License): Likewise.
51907         * modules/crypto/des-tests (License): Likewise.
51908         * modules/crypto/gc-arctwo-tests (License): Likewise.
51909         * modules/crypto/gc-des-tests (License): Likewise.
51910         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
51911         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
51912         * modules/crypto/gc-md2-tests (License): Likewise.
51913         * modules/crypto/gc-md4-tests (License): Likewise.
51914         * modules/crypto/gc-md5-tests (License): Likewise.
51915         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
51916         * modules/crypto/gc-rijndael-tests (License): Likewise.
51917         * modules/crypto/gc-sha1-tests (License): Likewise.
51918         * modules/crypto/gc-tests (License): Likewise.
51919         * modules/crypto/hmac-md5 (License): Likewise.
51920         * modules/crypto/hmac-sha1 (License): Likewise.
51921         * modules/crypto/md2-tests (License): Likewise.
51922         * modules/crypto/md4-tests (License): Likewise.
51923         * modules/crypto/md5 (License): Likewise.
51924         * modules/crypto/rijndael (License): Likewise.
51925         * modules/crypto/sha1 (License): Likewise.
51926         * modules/memxor (License): Likewise.
51927
51928 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51929         and Bruno Haible  <bruno@clisp.org>
51930
51931         * NEWS: Describe interface changes to human, xstrtol.
51932         * lib/human.h: Include <xstrtol.h>.
51933         (human_options): Return enum strtol_error, not int.  Remove
51934         bool arg; take int * instead.
51935         * lib/human.c: Don't include "gettext.h".
51936         (_): Remove; no longer used.
51937         Don't include <xstrtol.h>, since human.h does it.
51938         (human_options): Adjust to abovementioned interface changes.
51939         Do not report error to stderr; that's now the caller's
51940         responsibility.
51941         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
51942         interface change.
51943         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
51944         Str, Argument_type_string.  All uses changed.  Put " argument"
51945         in diagnostics to make them clearer.  Change wording of suffix
51946         message for clarity.
51947         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
51948         Argument_type_string.
51949         (STRTOL_FATAL_WARN): Remove; no longer used.
51950         * modules/human (Depends-on): Remove gettext-h.
51951
51952 2007-08-06  Simon Josefsson  <simon@josefsson.org>
51953
51954         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
51955
51956 2007-07-31  Bruno Haible  <bruno@clisp.org>
51957
51958         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
51959         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
51960         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
51961
51962 2007-07-31  Bruno Haible  <bruno@clisp.org>
51963
51964         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
51965         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
51966
51967 2007-07-30  Bruno Haible  <bruno@clisp.org>
51968
51969         * modules/base64 (License): Use the synonymous term "LGPLv2+".
51970         * modules/c-ctype (License): Likewise.
51971         * modules/c-strcase (License): Likewise.
51972         * modules/check-version (License): Likewise.
51973         * modules/iconv (License): Likewise.
51974         * modules/iconv_open (License): Likewise.
51975         * modules/read-file (License): Likewise.
51976         * modules/striconv (License): Likewise.
51977         * modules/strverscmp (License): Likewise.
51978         * modules/vasprintf (License): Likewise.
51979         * modules/crypto/des (License): Likewise.
51980         * modules/crypto/gc (License): Likewise.
51981         * modules/crypto/gc-arcfour (License): Likewise.
51982         * modules/crypto/gc-arctwo (License): Likewise.
51983         * modules/crypto/gc-des (License): Likewise.
51984         * modules/crypto/gc-hmac-md5 (License): Likewise.
51985         * modules/crypto/gc-hmac-sha1 (License): Likewise.
51986         * modules/crypto/gc-md2 (License): Likewise.
51987         * modules/crypto/gc-md4 (License): Likewise.
51988         * modules/crypto/gc-md5 (License): Likewise.
51989         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
51990         * modules/crypto/gc-random (License): Likewise.
51991         * modules/crypto/gc-rijndael (License): Likewise.
51992         * modules/crypto/gc-sha1 (License): Likewise.
51993         * modules/crypto/md2 (License): Likewise.
51994         * modules/crypto/md4 (License): Likewise.
51995
51996 2007-07-30  Jim Meyering  <jim@meyering.net>
51997
51998         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
51999         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
52000         it has valid stat data.  This bug would cause du not to count the
52001         sizes of inaccessible directories.
52002         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
52003         in <http://bugzilla.redhat.com/250077>.
52004
52005 2007-07-25  Peter O'Gorman  <peter@pogma.com>
52006             Bruno Haible  <bruno@clisp.org>
52007
52008         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
52009         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
52010         #include_next, gives a diagnostic about it, but reports no error in
52011         the exit code.
52012         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52013
52014 2007-07-24  Ben Pfaff  <blp@gnu.org>
52015
52016         Improve name: "count-one-bits" is better than "popcount".
52017         * MODULES.html.sh: Update name.
52018         * lib/popcount.h: Renamed lib/count-one-bits.h.
52019         (popcount): Renamed count_one_bits.
52020         (popcountl): Renamed count_one_bits_l.
52021         (popcountll): Renamed count_one_bits_ll.
52022         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
52023         * modules/popcount: Renamed module/count-one-bits.
52024         * modules/popcount-tests: Renamed module/count-one-bits-tests.
52025         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
52026
52027 2007-07-23  Ben Pfaff  <blp@gnu.org>
52028
52029         * lib/popcount.h (popcount32): Reduce size of constants, to allow
52030         better code generation, and add U to large constants to avoid
52031         warnings, in non-GCC case.
52032         Suggested by Bruno Haible.
52033
52034 2007-07-23  Ben Pfaff  <blp@gnu.org>
52035
52036         * lib/popcount.h: Use verify_true instead of if...abort.
52037         * modules/popcount: Depend on verify module.
52038         Suggested by Jim Meyering.
52039
52040 2007-07-23  Bruno Haible  <bruno@clisp.org>
52041
52042         * gnulib-tool (func_import): Create a .cvsignore file also when the
52043         directory is not yet in CVS but the toplevel directory is. When
52044         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
52045         Reported by Karl Berry.
52046
52047 2007-07-22  Ben Pfaff  <blp@gnu.org>
52048
52049         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
52050         case.
52051         Suggested by Eric Blake.
52052
52053 2007-07-22  Ben Pfaff  <blp@gnu.org>
52054
52055         New module: popcount.
52056         * MODULES.html.sh: Add popcount.
52057         * modules/popcount: New file.
52058         * modules/popcount-tests: New file.
52059         * tests/test-popcount.c: New file.
52060         * lib/popcount.h: New file.
52061         * m4/popcount.m4: New file.
52062
52063 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52064
52065         * build-aux/announce-gen: Update to GPLv3.
52066
52067         * build-aux/config.guess: Update from config.
52068
52069 2007-07-21  Bruno Haible  <bruno@clisp.org>
52070
52071         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
52072         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
52073
52074 2007-07-20  Jim Meyering  <jim@meyering.net>
52075
52076         * check-module: Diagnose a self-dependency.
52077
52078 2007-07-19  Bruno Haible  <bruno@clisp.org>
52079
52080         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
52081         empty.
52082         Reported by Eric Blake.
52083
52084 2007-07-18  Bruno Haible  <bruno@clisp.org>
52085
52086         * gnulib-tool: New options --po-base, --po-domain.
52087         (func_usage): Document them.
52088         (pobase, po_domain): New variables.
52089         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
52090         DEFAULT_TEXT_DOMAIN.
52091         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
52092         (func_import): Consider pobase and po_domain. Create a po/ directory.
52093         (func_create_testdir): Set pobase and po_domain to empty.
52094         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
52095         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
52096
52097 2007-07-18  Bruno Haible  <bruno@clisp.org>
52098
52099         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52100         EXTRA_DIST augmentation for files in build-aux/.
52101
52102 2007-07-16  Bruno Haible  <bruno@clisp.org>
52103
52104         * modules/lseek (License): Use the synonymous term "LGPLv2+".
52105         * modules/getdelim (License): Likewise.
52106
52107 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52108
52109         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
52110         * modules/d-type (License): Likewise.
52111         * modules/extensions (License): Likewise.
52112         * modules/fnmatch (License): Likewise.
52113         * modules/fseeko (License): Likewise.
52114         * modules/getaddrinfo (License): Likewise.
52115         * modules/getline (License): Likewise.
52116         * modules/getlogin_r (License): Likewise.
52117         * modules/getpass (License): Likewise.
52118         * modules/gettimeofday (License): Likewise.
52119         * modules/glob (License): Likewise.
52120         * modules/inet_ntop (License): Likewise.
52121         * modules/malloc (License): Likewise.
52122         * modules/malloca (License): Likewise.
52123         * modules/memmem (License): Likewise.
52124         * modules/mempcpy (License): Likewise.
52125         * modules/memset (License): Likewise.
52126         * modules/minmax (License): Likewise.
52127         * modules/mktime (License): Likewise.
52128         * modules/netinet_in (License): Likewise.
52129         * modules/pathmax (License): Likewise.
52130         * modules/poll (License): Likewise.
52131         * modules/regex (License): Likewise.
52132         * modules/snprintf (License): Likewise.
52133         * modules/stdbool (License): Likewise.
52134         * modules/stdint (License): Likewise.
52135         * modules/stdio (License): Likewise.
52136         * modules/strcase (License): Likewise.
52137         * modules/strcasestr (License): Likewise.
52138         * modules/strdup (License): Likewise.
52139         * modules/string (License): Likewise.
52140         * modules/strndup (License): Likewise.
52141         * modules/strnlen (License): Likewise.
52142         * modules/strpbrk (License): Likewise.
52143         * modules/strptime (License): Likewise.
52144         * modules/strsep (License): Likewise.
52145         * modules/sys_select (License): Likewise.
52146         * modules/sys_socket (License): Likewise.
52147         * modules/sys_stat (License): Likewise.
52148         * modules/sys_time (License): Likewise.
52149         * modules/time (License): Likewise.
52150         * modules/time_r (License): Likewise.
52151         * modules/timegm (License): Likewise.
52152         * modules/unistd (License): Likewise.
52153         * modules/vsnprintf (License): Likewise.
52154         * modules/wctype (License): Likewise.
52155
52156 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52157
52158         * modules/argz (License): LGPLv2+.
52159
52160 2007-07-15  Karl Berry  <karl@gnu.org>
52161
52162         * doc/gnulib.texi: revise node structure per new fdl.texi.
52163
52164 2007-07-14  Bruno Haible  <bruno@clisp.org>
52165
52166         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
52167         the output file.
52168         * lib/uniname/uninames.h: Regenerated.
52169
52170 2007-07-14  Karl Berry  <karl@gnu.org>
52171
52172         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
52173         omitting sectioning and index commands.
52174
52175 2007-07-13  Bruno Haible  <bruno@clisp.org>
52176
52177         New gnulib-tool option --more-symlinks.
52178         * gnulib-tool (func_usage): Document --more-symlinks.
52179         (do_copyrights): New variable.
52180         Recognize option --more-symlinks.
52181         (func_import): Don't add a copyright notice transform to
52182         sed_transform_lib_file if do_copyrights is empty.
52183
52184 2007-07-13  Bruno Haible  <bruno@clisp.org>
52185
52186         * lib/vasnprintf.c (decimal_point_char): Define also if
52187         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
52188         && !NEED_PRINTF_DIRECTIVE_A.
52189         Reported by Clemens Koller <clemens.koller@anagramm.de> via
52190         Gary V. Vaughan <gary@gnu.org>.
52191
52192 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
52193
52194         * lib/inttypes_.h: Undo previous change, since it was fixed
52195         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
52196
52197 2007-07-13  Bruno Haible  <bruno@clisp.org>
52198
52199         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
52200         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
52201
52202 2007-07-13  Jim Meyering  <jim@meyering.net>
52203
52204         df: Don't fail for Tru64's "file-on-file mount".
52205         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
52206         so we fall through and use statfs instead.  Details here:
52207         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
52208         Reported by Albert Chin.
52209
52210 2007-07-13  Bruno Haible  <bruno@clisp.org>
52211
52212         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
52213         * modules/configmake (License): Likewise.
52214         * modules/gettext (License): Likewise.
52215         * modules/gettext-h (License): Likewise.
52216         * modules/include_next (License): Likewise.
52217         * modules/link-warning (License): Likewise.
52218         * modules/localcharset (License): Likewise.
52219         * modules/localename (License): Likewise.
52220         * modules/lock (License): Likewise.
52221         * modules/relocatable-lib-lgpl (License): Likewise.
52222         * modules/size_max (License): Likewise.
52223         * modules/vasnprintf (License): Likewise.
52224         * modules/wchar (License): Likewise.
52225         * modules/xsize (License): Likewise.
52226
52227 2007-07-13  Bruno Haible  <bruno@clisp.org>
52228
52229         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
52230         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
52231
52232 2007-07-12  Bruno Haible  <bruno@clisp.org>
52233
52234         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
52235         in the modules files.
52236
52237 2007-07-11  Karl Berry  <karl@gnu.org>
52238
52239         * MODULES.html.sh (func_module): use
52240          sed -e '\|^'"${includefile}"'$|d'
52241          instead of /.../d, to avoid errors on $includefile's containing /.
52242
52243 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52244
52245         * gnulib-tool (func_import): Avoid duplication of --avoid
52246         statements
52247         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
52248         names to `_' in variable names.
52249
52250 2007-07-10  Eric Blake  <ebb9@byu.net>
52251
52252         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52253         * NEWS: Document this change.
52254
52255 2007-07-08  Bruno Haible  <bruno@clisp.org>
52256
52257         Update to Unicode 5.0.
52258         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52259         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52260         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52261         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52262         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52263         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52264         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52265         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52266         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52267         U+10A3F, U+1D242..U+1D244.
52268         (nonspacing_table_ind): Update.
52269         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52270         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52271
52272 2007-07-08  Bruno Haible  <bruno@clisp.org>
52273
52274         Update to Unicode 5.0.
52275         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52276         code transform. Extend the name index field of unicode_name_to_code and
52277         unicode_code_to_name from 16 to 24 bits.
52278         * lib/uniname/uniname.c (unicode_character_name,
52279         unicode_name_character): Add the range 0x12xxx to the code transform.
52280         * lib/uniname/uninames.h: Regenerated.
52281         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52282
52283 2007-07-07  Bruno Haible  <bruno@clisp.org>
52284
52285         * modules/wcwidth-tests: New file.
52286         * tests/test-wcwidth.c: New file.
52287
52288         Work around MacOS X wcwidth() bug.
52289         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52290         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52291         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52292         original wcwidth in non-UTF-8 locales.
52293         * modules/wcwidth (Depends-on): Add localcharset, streq,
52294         uniwidth/width.
52295         * doc/functions/wcwidth.texi: Update.
52296
52297 2007-07-07  Bruno Haible  <bruno@clisp.org>
52298
52299         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52300         (wcwidth): New declaration.
52301         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52302         macros.
52303         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52304         here. Prepare for creating <wchar.h> unconditionally.
52305         * modules/wchar (Depends-on): Add link-warning.
52306         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52307         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52308         * lib/wcwidth.h: Remove file.
52309         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52310         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52311         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52312         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52313         (Include): Replace wcwidth.h with <wchar.h>.
52314         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52315         * lib/mbchar.h: Don't include wcwidth.h.
52316         * lib/mbswidth.c: Likewise.
52317         * NEWS: Mention the change.
52318
52319 2007-07-07  Bruno Haible  <bruno@clisp.org>
52320
52321         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52322         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52323         definition with an external declaration.
52324         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52325         defined as a function. Remove AC_C_INLINE requirement.
52326         * modules/wcwidth (Files): Add lib/wcwidth.c.
52327         (Makefile.am): Remove redundant statement.
52328
52329 2007-07-07  Bruno Haible  <bruno@clisp.org>
52330
52331         * MODULES.html.sh (Unicode string functions): Add the new modules.
52332
52333         * tests/uniwidth/test-u32-strwidth.c: New file.
52334         * modules/uniwidth/u32-strwidth-tests: New file.
52335
52336         * lib/uniwidth/u32-strwidth.c: New file.
52337         * modules/uniwidth/u32-strwidth: New file.
52338
52339         * tests/uniwidth/test-u16-strwidth.c: New file.
52340         * modules/uniwidth/u16-strwidth-tests: New file.
52341
52342         * lib/uniwidth/u16-strwidth.c: New file.
52343         * modules/uniwidth/u16-strwidth: New file.
52344
52345         * tests/uniwidth/test-u8-strwidth.c: New file.
52346         * modules/uniwidth/u8-strwidth-tests: New file.
52347
52348         * lib/uniwidth/u8-strwidth.c: New file.
52349         * modules/uniwidth/u8-strwidth: New file.
52350
52351         * tests/uniwidth/test-u32-width.c: New file.
52352         * modules/uniwidth/u32-width-tests: New file.
52353
52354         * lib/uniwidth/u32-width.c: New file.
52355         * modules/uniwidth/u32-width: New file.
52356
52357         * tests/uniwidth/test-u16-width.c: New file.
52358         * modules/uniwidth/u16-width-tests: New file.
52359
52360         * lib/uniwidth/u16-width.c: New file.
52361         * modules/uniwidth/u16-width: New file.
52362
52363         * tests/uniwidth/test-u8-width.c: New file.
52364         * modules/uniwidth/u8-width-tests: New file.
52365
52366         * lib/uniwidth/u8-width.c: New file.
52367         * modules/uniwidth/u8-width: New file.
52368
52369         * tests/uniwidth/test-uc_width.c: New file.
52370         * modules/uniwidth/width-tests: New file.
52371
52372         * lib/uniwidth/width.c: New file, from GNU libiconv.
52373         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52374         * modules/uniwidth/width: New file.
52375
52376         * lib/uniwidth.h: New file, from GNU libiconv.
52377         * modules/uniwidth/base: New file.
52378
52379 2007-07-07  Bruno Haible  <bruno@clisp.org>
52380
52381         * lib/uniname.h: New file, from GNU gettext.
52382         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52383         * lib/uniname/uninames.h: New file, from GNU gettext.
52384         * lib/uniname/uniname.c: New file, from GNU gettext.
52385         * tests/uniname/test-uninames.sh: New file.
52386         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52387         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52388         * modules/uniname/base: New file.
52389         * modules/uniname/uniname: New file.
52390         * modules/uniname/uniname-tests: New file.
52391         * MODULES.html.sh (Unicode string functions): Add the new modules.
52392
52393 2007-07-06  Bruno Haible  <bruno@clisp.org>
52394
52395         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52396
52397 2007-07-06  Bruno Haible  <bruno@clisp.org>
52398
52399         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52400         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52401         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52402         include <sys/time.h>.
52403         Reported by Eric Blake.
52404
52405 2007-07-06  Eric Blake  <ebb9@byu.net>
52406
52407         Fix testing canonicalize on cygwin.
52408         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52409         Revert patch from 2007-06-19.
52410         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52411         canonicalize module is also in use.
52412         * tests/test-canonicalize.c: New file.
52413         * tests/test-canonicalize.sh: Likewise.
52414         * modules/canonicalize-tests: Likewise.
52415
52416 2007-07-06  Jim Meyering  <jim@meyering.net>
52417
52418         * lib/getugroups.c (getugroups): Detect getgrent failure.
52419         Adjust comment to reflect reality: this function may return -1.
52420
52421 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52422
52423         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52424         the new TP address.
52425         (usage): Fix typo
52426         (gnulib_mk): New variable.
52427
52428 2007-07-05  Jim Meyering  <jim@meyering.net>
52429
52430         Don't let endgrent clobber errno, no matter how improbable.
52431         * lib/getugroups.c (getugroups): Save and restore errno around
52432         endgrent call.
52433
52434         Close the group DB even when failing with 2^31 or more members.
52435         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52436
52437 2007-07-04  Jim Meyering  <jim@meyering.net>
52438
52439         * lib/getugroups.h: New file.
52440         * lib/getugroups.c: Include "getugroups.h".
52441         Remove uses of "register" keyword.
52442         Move local variable, "cp", down into scope where used.
52443         Give "username" parameter the "const" attribute.
52444         * modules/getugroups (Files): Add lib/getugroups.h
52445
52446 2007-07-04  Karl Berry  <karl@gnu.org>
52447
52448         * MODULES.html.sh (func_all_modules): Complete rename of
52449         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52450
52451 2007-07-02  Bruno Haible  <bruno@clisp.org>
52452
52453         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52454         mode, when inttypes.h comes from gnulib.
52455         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52456
52457 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52458
52459         * NEWS: Mention lgpl module name change.
52460
52461         * modules/lgpl-2.1: Renamed from lgpl.
52462
52463         * NEWS: Mention gpl module name change.
52464
52465         * modules/gpl-3.0: New file, based on gpl-2.0.
52466
52467         * modules/gpl-2.0: Renamed from gpl.
52468
52469         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52470         doc/gpl-2.0.texi.
52471
52472 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52473
52474         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
52475         #define __STDC_LIMIT_MACROS temporarily while including
52476         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
52477         Problem reported by Joel E. Denny in
52478         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
52479
52480 2007-07-01  Bruno Haible  <bruno@clisp.org>
52481
52482         * lib/unistdio.h: New file.
52483         * lib/unistdio/u-asnprintf.h: New file.
52484         * lib/unistdio/u-asprintf.h: New file.
52485         * lib/unistdio/u-printf-args.c: New file.
52486         * lib/unistdio/u-printf-args.h: New file.
52487         * lib/unistdio/u-printf-parse.h: New file.
52488         * lib/unistdio/u-snprintf.h: New file.
52489         * lib/unistdio/u-sprintf.h: New file.
52490         * lib/unistdio/u-vasprintf.h: New file.
52491         * lib/unistdio/u-vsnprintf.h: New file.
52492         * lib/unistdio/u-vsprintf.h: New file.
52493         * lib/unistdio/ulc-asnprintf.c: New file.
52494         * lib/unistdio/ulc-asprintf.c: New file.
52495         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
52496         * lib/unistdio/ulc-printf-parse.c: New file.
52497         * lib/unistdio/ulc-snprintf.c: New file.
52498         * lib/unistdio/ulc-sprintf.c: New file.
52499         * lib/unistdio/ulc-vasnprintf.c: New file.
52500         * lib/unistdio/ulc-vasprintf.c: New file.
52501         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
52502         * lib/unistdio/ulc-vsnprintf.c: New file.
52503         * lib/unistdio/ulc-vsprintf.c: New file.
52504         * lib/unistdio/u8-asnprintf.c: New file.
52505         * lib/unistdio/u8-asprintf.c: New file.
52506         * lib/unistdio/u8-printf-parse.c: New file.
52507         * lib/unistdio/u8-snprintf.c: New file.
52508         * lib/unistdio/u8-sprintf.c: New file.
52509         * lib/unistdio/u8-vasnprintf.c: New file.
52510         * lib/unistdio/u8-vasprintf.c: New file.
52511         * lib/unistdio/u8-vsnprintf.c: New file.
52512         * lib/unistdio/u8-vsprintf.c: New file.
52513         * lib/unistdio/u8-u8-asnprintf.c: New file.
52514         * lib/unistdio/u8-u8-asprintf.c: New file.
52515         * lib/unistdio/u8-u8-snprintf.c: New file.
52516         * lib/unistdio/u8-u8-sprintf.c: New file.
52517         * lib/unistdio/u8-u8-vasnprintf.c: New file.
52518         * lib/unistdio/u8-u8-vasprintf.c: New file.
52519         * lib/unistdio/u8-u8-vsnprintf.c: New file.
52520         * lib/unistdio/u8-u8-vsprintf.c: New file.
52521         * lib/unistdio/u16-asnprintf.c: New file.
52522         * lib/unistdio/u16-asprintf.c: New file.
52523         * lib/unistdio/u16-printf-parse.c: New file.
52524         * lib/unistdio/u16-snprintf.c: New file.
52525         * lib/unistdio/u16-sprintf.c: New file.
52526         * lib/unistdio/u16-vasnprintf.c: New file.
52527         * lib/unistdio/u16-vasprintf.c: New file.
52528         * lib/unistdio/u16-vsnprintf.c: New file.
52529         * lib/unistdio/u16-vsprintf.c: New file.
52530         * lib/unistdio/u16-u16-asnprintf.c: New file.
52531         * lib/unistdio/u16-u16-asprintf.c: New file.
52532         * lib/unistdio/u16-u16-snprintf.c: New file.
52533         * lib/unistdio/u16-u16-sprintf.c: New file.
52534         * lib/unistdio/u16-u16-vasnprintf.c: New file.
52535         * lib/unistdio/u16-u16-vasprintf.c: New file.
52536         * lib/unistdio/u16-u16-vsnprintf.c: New file.
52537         * lib/unistdio/u16-u16-vsprintf.c: New file.
52538         * lib/unistdio/u32-asnprintf.c: New file.
52539         * lib/unistdio/u32-asprintf.c: New file.
52540         * lib/unistdio/u32-printf-parse.c: New file.
52541         * lib/unistdio/u32-snprintf.c: New file.
52542         * lib/unistdio/u32-sprintf.c: New file.
52543         * lib/unistdio/u32-vasnprintf.c: New file.
52544         * lib/unistdio/u32-vasprintf.c: New file.
52545         * lib/unistdio/u32-vsnprintf.c: New file.
52546         * lib/unistdio/u32-vsprintf.c: New file.
52547         * lib/unistdio/u32-u32-asnprintf.c: New file.
52548         * lib/unistdio/u32-u32-asprintf.c: New file.
52549         * lib/unistdio/u32-u32-snprintf.c: New file.
52550         * lib/unistdio/u32-u32-sprintf.c: New file.
52551         * lib/unistdio/u32-u32-vasnprintf.c: New file.
52552         * lib/unistdio/u32-u32-vasprintf.c: New file.
52553         * lib/unistdio/u32-u32-vsnprintf.c: New file.
52554         * lib/unistdio/u32-u32-vsprintf.c: New file.
52555         * tests/unistdio/test-ulc-asnprintf1.c: New file.
52556         * tests/unistdio/test-ulc-asnprintf1.h: New file.
52557         * tests/unistdio/test-ulc-printf1.h: New file.
52558         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
52559         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
52560         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
52561         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52562         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52563         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52564         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52565         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52566         * tests/unistdio/test-u8-asnprintf1.c: New file.
52567         * tests/unistdio/test-u8-asnprintf1.h: New file.
52568         * tests/unistdio/test-u8-printf1.h: New file.
52569         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52570         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52571         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52572         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52573         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52574         * tests/unistdio/test-u8-vasprintf1.c: New file.
52575         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52576         * tests/unistdio/test-u8-vsprintf1.c: New file.
52577         * tests/unistdio/test-u16-asnprintf1.c: New file.
52578         * tests/unistdio/test-u16-asnprintf1.h: New file.
52579         * tests/unistdio/test-u16-printf1.h: New file.
52580         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52581         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52582         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52583         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52584         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52585         * tests/unistdio/test-u16-vasprintf1.c: New file.
52586         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52587         * tests/unistdio/test-u16-vsprintf1.c: New file.
52588         * tests/unistdio/test-u32-asnprintf1.c: New file.
52589         * tests/unistdio/test-u32-asnprintf1.h: New file.
52590         * tests/unistdio/test-u32-printf1.h: New file.
52591         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52592         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52593         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52594         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52595         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52596         * tests/unistdio/test-u32-vasprintf1.c: New file.
52597         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52598         * tests/unistdio/test-u32-vsprintf1.c: New file.
52599         * modules/unistdio/base: New file.
52600         * modules/unistdio/u-printf-args: New file.
52601         * modules/unistdio/ulc-asnprintf: New file.
52602         * modules/unistdio/ulc-asprintf: New file.
52603         * modules/unistdio/ulc-fprintf: New file.
52604         * modules/unistdio/ulc-printf-parse: New file.
52605         * modules/unistdio/ulc-snprintf: New file.
52606         * modules/unistdio/ulc-sprintf: New file.
52607         * modules/unistdio/ulc-vasnprintf: New file.
52608         * modules/unistdio/ulc-vasprintf: New file.
52609         * modules/unistdio/ulc-vfprintf: New file.
52610         * modules/unistdio/ulc-vsnprintf: New file.
52611         * modules/unistdio/ulc-vsprintf: New file.
52612         * modules/unistdio/u8-asnprintf: New file.
52613         * modules/unistdio/u8-asprintf: New file.
52614         * modules/unistdio/u8-printf-parse: New file.
52615         * modules/unistdio/u8-snprintf: New file.
52616         * modules/unistdio/u8-sprintf: New file.
52617         * modules/unistdio/u8-vasnprintf: New file.
52618         * modules/unistdio/u8-vasprintf: New file.
52619         * modules/unistdio/u8-vsnprintf: New file.
52620         * modules/unistdio/u8-vsprintf: New file.
52621         * modules/unistdio/u8-u8-asnprintf: New file.
52622         * modules/unistdio/u8-u8-asprintf: New file.
52623         * modules/unistdio/u8-u8-snprintf: New file.
52624         * modules/unistdio/u8-u8-sprintf: New file.
52625         * modules/unistdio/u8-u8-vasnprintf: New file.
52626         * modules/unistdio/u8-u8-vasprintf: New file.
52627         * modules/unistdio/u8-u8-vsnprintf: New file.
52628         * modules/unistdio/u8-u8-vsprintf: New file.
52629         * modules/unistdio/u16-asnprintf: New file.
52630         * modules/unistdio/u16-asprintf: New file.
52631         * modules/unistdio/u16-printf-parse: New file.
52632         * modules/unistdio/u16-snprintf: New file.
52633         * modules/unistdio/u16-sprintf: New file.
52634         * modules/unistdio/u16-vasnprintf: New file.
52635         * modules/unistdio/u16-vasprintf: New file.
52636         * modules/unistdio/u16-vsnprintf: New file.
52637         * modules/unistdio/u16-vsprintf: New file.
52638         * modules/unistdio/u16-u16-asnprintf: New file.
52639         * modules/unistdio/u16-u16-asprintf: New file.
52640         * modules/unistdio/u16-u16-snprintf: New file.
52641         * modules/unistdio/u16-u16-sprintf: New file.
52642         * modules/unistdio/u16-u16-vasnprintf: New file.
52643         * modules/unistdio/u16-u16-vasprintf: New file.
52644         * modules/unistdio/u16-u16-vsnprintf: New file.
52645         * modules/unistdio/u16-u16-vsprintf: New file.
52646         * modules/unistdio/u32-asnprintf: New file.
52647         * modules/unistdio/u32-asprintf: New file.
52648         * modules/unistdio/u32-printf-parse: New file.
52649         * modules/unistdio/u32-snprintf: New file.
52650         * modules/unistdio/u32-sprintf: New file.
52651         * modules/unistdio/u32-vasnprintf: New file.
52652         * modules/unistdio/u32-vasprintf: New file.
52653         * modules/unistdio/u32-vsnprintf: New file.
52654         * modules/unistdio/u32-vsprintf: New file.
52655         * modules/unistdio/u32-u32-asnprintf: New file.
52656         * modules/unistdio/u32-u32-asprintf: New file.
52657         * modules/unistdio/u32-u32-snprintf: New file.
52658         * modules/unistdio/u32-u32-sprintf: New file.
52659         * modules/unistdio/u32-u32-vasnprintf: New file.
52660         * modules/unistdio/u32-u32-vasprintf: New file.
52661         * modules/unistdio/u32-u32-vsnprintf: New file.
52662         * modules/unistdio/u32-u32-vsprintf: New file.
52663         * modules/unistdio/ulc-asnprintf-tests: New file.
52664         * modules/unistdio/ulc-vasnprintf-tests: New file.
52665         * modules/unistdio/ulc-vasprintf-tests: New file.
52666         * modules/unistdio/ulc-vsnprintf-tests: New file.
52667         * modules/unistdio/ulc-vsprintf-tests: New file.
52668         * modules/unistdio/u8-asnprintf-tests: New file.
52669         * modules/unistdio/u8-vasnprintf-tests: New file.
52670         * modules/unistdio/u8-vasprintf-tests: New file.
52671         * modules/unistdio/u8-vsnprintf-tests: New file.
52672         * modules/unistdio/u8-vsprintf-tests: New file.
52673         * modules/unistdio/u16-asnprintf-tests: New file.
52674         * modules/unistdio/u16-vasnprintf-tests: New file.
52675         * modules/unistdio/u16-vasprintf-tests: New file.
52676         * modules/unistdio/u16-vsnprintf-tests: New file.
52677         * modules/unistdio/u16-vsprintf-tests: New file.
52678         * modules/unistdio/u32-asnprintf-tests: New file.
52679         * modules/unistdio/u32-vasnprintf-tests: New file.
52680         * modules/unistdio/u32-vasprintf-tests: New file.
52681         * modules/unistdio/u32-vsnprintf-tests: New file.
52682         * modules/unistdio/u32-vsprintf-tests: New file.
52683         * MODULES.html.sh (Unicode string functions): Add the new modules.
52684
52685 2007-07-01  Bruno Haible  <bruno@clisp.org>
52686
52687         * lib/sprintf.c (sprintf): Limit the available length estimation,
52688         to avoid address wraparound.
52689         * lib/vsprintf.c (vsprintf): Likewise.
52690         * modules/sprintf-posix (Dependencies): Add stdint.
52691         * modules/vsprintf-posix (Dependencies): Likewise.
52692
52693 2007-07-01  Bruno Haible  <bruno@clisp.org>
52694
52695         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
52696         Windows PATH as well. Conservative double-quoting. Comments.
52697
52698 2007-07-01  Bruno Haible  <bruno@clisp.org>
52699             Eric Blake  <ebb9@byu.net>
52700             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52701
52702         * gnulib-tool (self_abspathname): Fix algorithm to cope with
52703         empty components in $PATH, denoting '.'.
52704
52705 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52706
52707         * gnulib-tool: Fix indentation.
52708         (func_create_megatestdir): Likewise.
52709         Report by Bruno Haible.
52710
52711 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52712
52713         Sync from Automake.
52714         * build-aux/gnupload: Fix shell portability issues with for loops.
52715         Report by Karl Berry.
52716
52717 2007-06-29  Simon Josefsson  <simon@josefsson.org>
52718
52719         * build-aux/maint.mk (POURL): Use translationproject.org.
52720
52721 2007-06-27  Simon Josefsson  <simon@josefsson.org>
52722             Bruno Haible  <bruno@clisp.org>
52723
52724         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
52725         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
52726         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
52727         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
52728         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
52729
52730 2007-06-27  Bruno Haible  <bruno@clisp.org>
52731
52732         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
52733         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
52734
52735 2007-06-26  Karl Berry  <karl@gnu.org>
52736
52737         * MODULES.html.sh: remove xreadlink-with-size.
52738
52739 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52740
52741         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
52742         method that I hope also handles the double-include problem noted
52743         by Bruno Haible in
52744         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
52745
52746 2007-06-23  Bruno Haible  <bruno@clisp.org>
52747
52748         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52749         Don't let the 'mostlyclean' target fail if the last subdirectory could
52750         not be removed.
52751         Reported by Karl Berry.
52752
52753 2007-06-23  Bruno Haible  <bruno@clisp.org>
52754
52755         * gnulib-tool (echo): Add a speedier workaround for ksh.
52756         * tests/test-echo.sh: Likewise.
52757
52758 2007-06-23  Bruno Haible  <bruno@clisp.org>
52759
52760         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
52761         * tests/test-echo.sh: Likewise.
52762
52763 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52764
52765         * gnulib-tool (IFS): Initialize early, so we don't set it to
52766         empty later.
52767         (self_abspathname): Rewrite algorithm to set it, reindent.
52768         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
52769         (func_create_megatestdir): Merge some sed scripts.
52770
52771 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52772
52773         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
52774         exposed by Sun Studio 11 cc on Solaris 8.
52775
52776 2007-06-22  Bruno Haible  <bruno@clisp.org>
52777
52778         * gnulib-tool (echo): Ensure the echo primitive does not interpret
52779         backslashes.
52780         * tests/test-echo.sh: New file.
52781
52782 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52783
52784         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
52785         simplify `sed_replace_build_aux' scripts, they are portable but
52786         echoing them with `echo' is not.
52787         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
52788
52789 2007-06-21  Karl Berry  <karl@gnu.org>
52790
52791         * config/srclist.txt: guess we can't handle the licenses via
52792         srclist at the moment.
52793
52794 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52795
52796         * MODULES.html.sh: Add include_next.
52797         * modules/include_next: New file.
52798
52799 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52800
52801         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
52802         INCLUDE_NEXT.
52803         (gl_CHECK_NEXT_HEADERS): New macro.
52804         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
52805         the obsolescent gl_ABSOLUTE_HEADER.
52806         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
52807         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
52808         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
52809         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52810         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52811         * m4/math_h.m4 (gl_MATH_H): Likewise.
52812         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52813         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52814         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52815         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52816         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52817         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52818         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52819         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52820         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52821         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52822         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
52823         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
52824         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
52825         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52826         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52827         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52828         * m4/inttypes.m4 (gl_INTTYPES_H): Define
52829         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
52830         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
52831         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
52832         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
52833         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
52834         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
52835         * lib/float_.h: Likewise.
52836         * lib/inttypes_.h: Likewise.
52837         * lib/math_.h: Likewise.
52838         * lib/search_.h: Likewise.
52839         * lib/signal_.h: Likewise.
52840         * lib/stdint_.h: Likewise.
52841         * lib/stdio_.h: Likewise.
52842         * lib/stdlib_.h: Likewise.
52843         * lib/string_.h: Likewise.
52844         * lib/sys_stat_.h: Likewise.
52845         * lib/sys_time_.h: Likewise.
52846         * lib/time_.h: Likewise.
52847         * lib/unistd_.h: Likewise.
52848         * lib/wchar_.h: Likewise.
52849         * lib/wctype_.h: Likewise.
52850         * lib/dirent_.h: Likewise.
52851         * lib/iconv_.h: Likewise.
52852         * lib/locale_.h: Likewise.
52853         * lib/netinet_in_.h: Likewise.
52854         * lib/sys_select_.h: Likewise.
52855         * lib/sys_socket_.h: Likewise.
52856         * lib/sysexits_.h: Likewise.
52857         * modules/fcntl (Depends-on): Depend on include_next, not
52858         absolute_header.
52859         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
52860         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
52861         * modules/fchdir: Likewise.
52862         * modules/float: Likewise.
52863         * modules/iconv_open: Likewise.
52864         * modules/inttypes: Likewise.
52865         * modules/locale: Likewise.
52866         * modules/math: Likewise.
52867         * modules/netinet_in: Likewise.
52868         * modules/search: Likewise.
52869         * modules/signal: Likewise.
52870         * modules/stdint: Likewise.
52871         * modules/stdio: Likewise.
52872         * modules/stdlib: Likewise.
52873         * modules/string: Likewise.
52874         * modules/sys_select: Likewise.
52875         * modules/sys_socket: Likewise.
52876         * modules/sys_stat: Likewise.
52877         * modules/sys_time: Likewise.
52878         * modules/sysexits: Likewise.
52879         * modules/time: Likewise.
52880         * modules/unistd: Likewise.
52881         * modules/wchar: Likewise.
52882         * modules/wctype: Likewise.
52883         * modules/sys_stat: Change maintainer to "all".
52884         * modules/unistd: Likewise.
52885
52886 2007-06-20  Karl Berry  <karl@gnu.org>
52887
52888         * config/srclist.txt: track www changes in license files.
52889
52890 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
52891
52892         * build-aux/bootstrap: Remove stray dot.
52893         Make sure build_aux settings are honored when linking
52894         gnulib_extra_files.
52895
52896 2007-06-19  Eric Blake  <ebb9@byu.net>
52897
52898         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52899         Allow compilation on cygwin.
52900
52901 2007-06-19  Jim Meyering  <jim@meyering.net>
52902
52903         xreadlink-with-size: Remove module.  No longer used.
52904         Ex-callers now use xreadlink or mreadlink-with-size.
52905         * modules/xreadlink-with-size: Remove module.
52906         * lib/xreadlink-with-size.c: Remove file.
52907         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
52908         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
52909         just before the function definition *is* accurate.
52910
52911         Eliminate one way canonicalize_filename_mode could exit.
52912         * lib/canonicalize.c (canonicalize_filename_mode):
52913         Use mreadlink_with_size, not xreadlink_with_size.
52914
52915 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
52916
52917         Detect porting problems to FreeBSD/arm, which has time_t wider than
52918         long int.  Original problem reported for GNU diff by Xin Li in
52919         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
52920         * modules/getdate (Depends-on): Add intprops, verify.
52921         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
52922         is an integer type no wider than long int.
52923
52924 2007-06-18  Jim Meyering  <jim@meyering.net>
52925
52926         New module: mreadlink-with-size.
52927         * MODULES.html.sh: Add mreadlink-with-size.
52928         * modules/mreadlink-with-size: New module
52929         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
52930         not xreadlink-with-size.
52931         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
52932
52933 2007-06-16  Bruno Haible  <bruno@clisp.org>
52934
52935         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
52936         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
52937         Reported by Gary V. Vaughan <gary@gnu.org>.
52938
52939 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
52940
52941         Revamp lchown so that it lives in unistd.h where it belongs.
52942         * lib/lchown.h: Remove.
52943         * lib/dirchownmod.c: Don't include lib/lchown.h.
52944         * lib/fchownat.c: Likewise.
52945         * lib/openat.c: Likewise.
52946         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
52947         does not follow symlinks.
52948         (EOPNOTSUPP): Define if not defined.
52949         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
52950         is defined to 0.
52951         (lchown): New decl.
52952         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
52953         Do not check for lchown decl.
52954         Set REPLACE_LCHOWN.
52955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
52956         REPLACE_LCHOWN.
52957         * modules/chown: Make it clear it follows symlinks.
52958         * modules/lchown: Make it clear it doesn't follow symlinks.
52959         (Files): Remove lib/lchown.h
52960         (Depends-on): Add unistd.
52961         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
52962         (Include): Include <unistd.h>, not "lchown.h".
52963         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
52964         REPLACE_LCHOWN.
52965
52966 2007-06-15  Jim Meyering  <jim@meyering.net>
52967
52968         Change license (GPL to LGPL) of fsusage and dependents.
52969         * modules/fsusage (License): Change to LGPL.
52970         * modules/full-read (License): Likewise.
52971         * modules/full-write (License): Likewise.
52972         * modules/safe-read (License): Likewise.
52973         * modules/safe-write (License): Likewise.
52974
52975 2007-06-14  Ben Pfaff  <blp@gnu.org>
52976
52977         Missing part of allocsa -> malloca transition.
52978         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
52979         gl_MALLOCA.
52980
52981 2007-06-12  Bruno Haible  <bruno@clisp.org>
52982
52983         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
52984         to ia64, x86_64, i386.
52985         Reported by Eric Blake.
52986
52987 2007-06-12  Bruno Haible  <bruno@clisp.org>
52988
52989         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
52990         cross-compiling to x86_64.
52991
52992 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
52993
52994         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
52995         glitch reported by Ralf Wildenhues in
52996         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
52997
52998         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
52999         Vin Shelton.
53000
53001 2007-06-11  Bruno Haible  <bruno@clisp.org>
53002
53003         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
53004         replacement string.
53005         Reported by Eric Blake.
53006
53007 2007-06-10  Bruno Haible  <bruno@clisp.org>
53008
53009         Prepare vasnprintf code for use with Unicode strings.
53010         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
53011         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
53012         TYPE_U32_STRING.
53013         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
53014         a_u32_string variants.
53015         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53016         * lib/printf-args.c: Don't include config.h and the specification
53017         header if PRINTF_FETCHARGS is already defined.
53018         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53019         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
53020         TYPE_U16_STRING, TYPE_U32_STRING.
53021         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
53022         u16_directive, u16_directives, u32_directive, u32_directives): New
53023         types.
53024         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
53025         New declarations.
53026         * lib/printf-parse.c: Don't include config.h and the specification
53027         header if PRINTF_PARSE is already defined. Eliminate the set of
53028         parameters for WIDE_CHAR_VERSION; the user of this file must provide
53029         them now. Include c-ctype.h.
53030         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
53031         directive and CHAR_T_ONLY_ASCII.
53032         * lib/vasnprintf.c: Don't include config.h and the specification header
53033         if VASNPRINTF is already defined.
53034         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
53035         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
53036         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
53037         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
53038         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
53039         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
53040         code accordingly.
53041         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
53042         pad_ourselves also in this case, with the 'c' and 's' directives, and
53043         with a different notion of "width".
53044         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
53045
53046 2007-06-10  Bruno Haible  <bruno@clisp.org>
53047
53048         * modules/unistr/u32-mbsnlen: New file.
53049         * lib/unistr/u32-mbsnlen.c: New file.
53050
53051         * modules/unistr/u16-mbsnlen: New file.
53052         * lib/unistr/u16-mbsnlen.c: New file.
53053
53054         * modules/unistr/u8-mbsnlen: New file.
53055         * lib/unistr/u8-mbsnlen.c: New file.
53056
53057         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
53058         declarations.
53059
53060 2007-06-10  Bruno Haible  <bruno@clisp.org>
53061
53062         * lib/string_.h (mbsnlen): New declaration.
53063         * lib/mbsnlen.c: New file.
53064         * m4/mbsnlen.m4: New file.
53065         * modules/mbsnlen: New file.
53066         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
53067         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
53068         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
53069
53070 2007-06-10  Bruno Haible  <bruno@clisp.org>
53071
53072         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
53073
53074 2007-06-10  Bruno Haible  <bruno@clisp.org>
53075
53076         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
53077         * lib/mbuiter.h: Likewise.
53078
53079 2007-06-10  Bruno Haible  <bruno@clisp.org>
53080
53081         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
53082         declaration.
53083
53084 2007-06-10  Karl Berry  <karl@gnu.org>
53085
53086         * config/srclist.txt: remove gettext entries, Bruno prefers
53087         to update individually.
53088
53089 2007-06-10  Bruno Haible  <bruno@clisp.org>
53090
53091         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
53092         'maxlen'. Ensure only length + width bytes are allocated, not
53093         length + 1 + width.
53094
53095 2007-06-09  Bruno Haible  <bruno@clisp.org>
53096
53097         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
53098         (CHAR_T): Remove macro.
53099         (VASNPRINTF): Update.
53100
53101 2007-06-09  Bruno Haible  <bruno@clisp.org>
53102
53103         * MODULES.html.sh (Unicode string functions): Add the new modules.
53104
53105         * modules/uniconv/u32-conv-to-enc: New file.
53106         * lib/uniconv/u32-conv-to-enc.c: New file.
53107         * modules/uniconv/u32-conv-to-enc-tests: New file.
53108         * tests/uniconv/test-u32-conv-to-enc.c: New file.
53109
53110         * modules/uniconv/u16-conv-to-enc: New file.
53111         * lib/uniconv/u16-conv-to-enc.c: New file.
53112         * lib/uniconv/u-conv-to-enc.h: New file.
53113         * modules/uniconv/u16-conv-to-enc-tests: New file.
53114         * tests/uniconv/test-u16-conv-to-enc.c: New file.
53115
53116         * modules/uniconv/u8-conv-to-enc: New file.
53117         * lib/uniconv/u8-conv-to-enc.c: New file.
53118         * modules/uniconv/u8-conv-to-enc-tests: New file.
53119         * tests/uniconv/test-u8-conv-to-enc.c: New file.
53120
53121         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
53122         u32_conv_to_encoding): New declarations.
53123
53124 2007-06-09  Bruno Haible  <bruno@clisp.org>
53125
53126         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
53127
53128 2007-06-09  Bruno Haible  <bruno@clisp.org>
53129
53130         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
53131         * modules/malloca: Renamed from modules/allocsa, updated.
53132         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
53133         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
53134         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
53135         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
53136         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
53137         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
53138         * modules/xmalloca: Renamed from modules/xallocsa, updated.
53139         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
53140         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
53141         * modules/c-strcasestr (Depends-on): Update.
53142         * lib/c-strcasestr.c: Update.
53143         * modules/c-strstr (Depends-on): Update.
53144         * lib/c-strstr.c: Update.
53145         * modules/canonicalize-lgpl (Depends-on): Update.
53146         * lib/canonicalize-lgpl.c: Update.
53147         * modules/clean-temp (Depends-on): Update.
53148         * lib/clean-temp.c: Update.
53149         * modules/csharpcomp (Depends-on): Update.
53150         * lib/csharpcomp.c: Update.
53151         * modules/csharpexec (Depends-on): Update.
53152         * lib/csharpexec.c: Update.
53153         * modules/javacomp (Depends-on): Update.
53154         * lib/javacomp.c: Update.
53155         * modules/javaexec (Depends-on): Update.
53156         * lib/javaexec.c: Update.
53157         * modules/mbscasestr (Depends-on): Update.
53158         * lib/mbscasestr.c: Update.
53159         * modules/mbsstr (Depends-on): Update.
53160         * lib/mbsstr.c: Update.
53161         * modules/setenv (Depends-on): Update.
53162         * lib/setenv.c: Update.
53163         * modules/strcasestr (Depends-on): Update.
53164         * lib/strcasestr.c: Update.
53165         * modules/striconveha (Depends-on): Update.
53166         * lib/striconveha.c: Update.
53167         * modules/relocatable-prog-wrapper (Files): Update.
53168         * lib/relocwrapper.c: Update.
53169         * build-aux/install-reloc: Update.
53170         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
53171
53172 2007-06-08  Bruno Haible  <bruno@clisp.org>
53173
53174         Port to uClibc.
53175         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
53176         * lib/fpurge.c (fpurge): Likewise.
53177         * lib/freading.c (freading): Likewise.
53178         * lib/fseeko.c (rpl_fseeko): Likewise.
53179         * lib/fseterr.c (fseterr): Likewise.
53180         * lib/fwriting.c (fwriting): Likewise.
53181         * tests/test-fflush.c (main): Avoid a failure on uClibc.
53182
53183 2007-06-08  Bruno Haible  <bruno@clisp.org>
53184
53185         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
53186         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
53187         * modules/gettext (Files): Add m4/intlmacosx.m4.
53188
53189 2007-06-07  Bruno Haible  <bruno@clisp.org>
53190
53191         * modules/localename-tests: New file.
53192         * tests/test-localename.c: New file.
53193
53194         New module 'localename'.
53195         * lib/localename.h: New file.
53196         * lib/localename.c: New file, from GNU gettext.
53197         * m4/localename.m4: New file.
53198         * modules/localename: New file.
53199
53200 2007-06-07  Bruno Haible  <bruno@clisp.org>
53201
53202         Work around the lack of <wchar.h> on some builds of uClibc.
53203         * doc/headers/wchar.texi: Update.
53204         * lib/wchar_.h: Include <wchar.h> only if it exists.
53205         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
53206         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
53207         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
53208         doesn't exist.
53209         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
53210         * modules/mbfile (Depends-on): Add wchar.
53211         * modules/mbiter (Depends-on): Likewise.
53212         * modules/mbuiter (Depends-on): Likewise.
53213         Reported by Simon Josefsson.
53214
53215 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53216
53217         Work around problem reported by Steven M. Schweda in
53218         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
53219         Tru64 5.1B with the Compaq compiler environment installed declares
53220         an 'isblank' function but does not define it in the C library.
53221         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
53222         * lib/regex_internal.h (isblank): Likewise.
53223         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
53224         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53225
53226 2007-06-05  Bruno Haible  <bruno@clisp.org>
53227
53228         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
53229         ia64.
53230         * modules/printf-safe: New file.
53231         * modules/fprintf-posix (Depends-on): Add printf-safe.
53232         * modules/printf-posix (Depends-on): Likewise.
53233         * modules/snprintf-posix (Depends-on): Likewise.
53234         * modules/sprintf-posix (Depends-on): Likewise.
53235         * modules/vasnprintf-posix (Depends-on): Likewise.
53236         * modules/vasprintf-posix (Depends-on): Likewise.
53237         * modules/vfprintf-posix (Depends-on): Likewise.
53238         * modules/vprintf-posix (Depends-on): Likewise.
53239         * modules/vsnprintf-posix (Depends-on): Likewise.
53240         * modules/vsprintf-posix (Depends-on): Likewise.
53241         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
53242         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
53243         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
53244         "no" on i386, x86_64, ia64.
53245         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
53246         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53247         on i386, x86_64, ia64.
53248         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
53249         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53250         on i386, x86_64, ia64.
53251         * tests/test-vasnprintf-posix.c: Include float.h.
53252         (LDBL80_WORDS): New macro.
53253         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53254         on i386, x86_64, ia64.
53255         * tests/test-vasprintf-posix.c: Include float.h.
53256         (LDBL80_WORDS): New macro.
53257         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53258         on i386, x86_64, ia64.
53259         * tests/test-snprintf-posix.c: Include float.h.
53260         * tests/test-sprintf-posix.c: Likewise.
53261         * tests/test-vsnprintf-posix.c: Likewise.
53262         * tests/test-vsprintf-posix.c: Likewise.
53263
53264 2007-06-05  Bruno Haible  <bruno@clisp.org>
53265
53266         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53267         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53268         non-IEEE numbers on i386, x86_64, ia64.
53269         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53270         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53271         * tests/test-isnanl.h: Include float.h.
53272         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53273
53274 2007-06-05  Bruno Haible  <bruno@clisp.org>
53275
53276         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53277         also the %a / %A. Handle the %a / %A code before this extra handling.
53278
53279 2007-06-05  Bruno Haible  <bruno@clisp.org>
53280
53281         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53282         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53283
53284 2007-06-05  Bruno Haible  <bruno@clisp.org>
53285
53286         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53287         typo in variable name.
53288
53289 2007-06-05  Eric Blake  <ebb9@byu.net>
53290
53291         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53292         Reported by Simon Josefsson.
53293
53294 2007-06-04  Bruno Haible  <bruno@clisp.org>
53295
53296         Avoid test failures on some PowerPC platforms.
53297         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53298         Define differently for PowerPC.
53299         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53300         Reported by Gary V. Vaughan <gary@gnu.org>.
53301
53302 2007-06-02  Bruno Haible  <bruno@clisp.org>
53303
53304         Fix test-stdint failure on FreeBSD/ia64.
53305         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53306         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53307         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53308         * doc/headers/stdint.texi: Update.
53309
53310 2007-06-01  Bruno Haible  <bruno@clisp.org>
53311
53312         * tests/test-binary-io.c (main): Pass a third argument to open().
53313         Reported by Gary V. Vaughan <gary@gnu.org>.
53314
53315 2007-06-01  Bruno Haible  <bruno@clisp.org>
53316
53317         * doc/functions/frexpl.texi: Update for mingw.
53318
53319 2007-06-01  Bruno Haible  <bruno@clisp.org>
53320
53321         * tests/test-lseek.c (main): Disable test of errno for invalid third
53322         argument.
53323         * doc/functions/lseek.texi: Update.
53324         Reported by Gary V. Vaughan <gary@gnu.org>.
53325
53326 2007-05-28  Bruno Haible  <bruno@clisp.org>
53327
53328         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53329
53330 2007-05-31  Eric Blake  <ebb9@byu.net>
53331
53332         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53333         cross compiling.
53334
53335 2007-05-30  Eric Blake  <ebb9@byu.net>
53336         and Bruno Haible  <bruno@clisp.org>
53337
53338         Work around mingw test failures exposed by m4-1.4.9b.
53339         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53340         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53341         moment.
53342
53343 2007-05-30  Bruno Haible  <bruno@clisp.org>
53344
53345         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53346         assuming that they are closed. Needed on HP-UX 11.
53347
53348 2007-05-29  Bruno Haible  <bruno@clisp.org>
53349
53350         Fix a problem with #include_next.
53351         * lib/dirent_.h: Split the double-inclusion guard.
53352         * lib/fcntl_.h: Likewise.
53353         * lib/float_.h: Likewise.
53354         * lib/iconv_.h: Likewise.
53355         * lib/inttypes_.h: Likewise.
53356         * lib/locale_.h: Likewise.
53357         * lib/math_.h: Likewise.
53358         * lib/netinet_in_.h: Likewise.
53359         * lib/search_.h: Likewise.
53360         * lib/signal_.h: Likewise.
53361         * lib/stdint_.h: Likewise.
53362         * lib/stdio_.h: Likewise.
53363         * lib/stdlib_.h: Likewise.
53364         * lib/string_.h: Likewise.
53365         * lib/sys_select_.h: Likewise.
53366         * lib/sys_socket_.h: Likewise.
53367         * lib/sys_stat_.h: Likewise.
53368         * lib/sys_time_.h: Likewise.
53369         * lib/sysexits_.h: Likewise.
53370         * lib/time_.h: Likewise.
53371         * lib/unistd_.h: Likewise.
53372         * lib/wchar_.h: Likewise.
53373         * lib/wctype_.h: Likewise.
53374
53375 2007-05-29  Bruno Haible  <bruno@clisp.org>
53376
53377         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53378         for the moment.
53379
53380 2007-05-29  Bruno Haible  <bruno@clisp.org>
53381
53382         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53383         invocation.
53384         Reported by Eric Blake.
53385
53386 2007-05-29  Bruno Haible  <bruno@clisp.org>
53387
53388         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53389         compiling case.
53390
53391 2007-05-29  Eric Blake  <ebb9@byu.net>
53392             Bruno Haible  <bruno@clisp.org>
53393
53394         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53395         cross compiles.
53396
53397 2007-05-28  Eric Blake  <ebb9@byu.net>
53398
53399         * modules/closein-tests (test_closein_LDADD): Support test on
53400         cygwin with libtool.
53401
53402 2007-05-28  Bruno Haible  <bruno@clisp.org>
53403
53404         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53405         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53406         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53407         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53408         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53409         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53410         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53411         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53412         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53413
53414 2007-05-28  Eric Blake  <ebb9@byu.net>
53415
53416         Unconditionally include <config.h> in unit tests.
53417         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53418         * tests/test-allocsa.c, tests/test-arcfour.c,
53419         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53420         tests/test-array_list.c, tests/test-array_oset.c,
53421         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53422         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53423         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53424         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53425         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53426         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53427         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53428         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53429         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53430         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53431         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53432         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53433         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53434         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53435         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53436         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53437         test-md5.c, test-memmem.c, test-printf-posix.c,
53438         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53439         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53440         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53441         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53442         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53443         test-vasnprintf-posix2.c, test-vasnprintf.c,
53444         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53445         test-vfprintf-posix.c, test-vprintf-posix.c,
53446         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53447         test-xvasprintf.c: Likewise.
53448
53449 2007-05-28  Bruno Haible  <bruno@clisp.org>
53450
53451         * gnulib-tool (func_import): Remember the --with-tests command-line
53452         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53453         Reported by Eric Blake.
53454
53455 2007-05-28  Bruno Haible  <bruno@clisp.org>
53456
53457         * modules/ftell-tests: New file.
53458         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53459         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53460
53461         * lib/ftell.c: New file.
53462         * modules/ftell: New file.
53463         * m4/ftell.m4: New file.
53464         * doc/functions/ftell.texi: Update.
53465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53466         REPLACE_FTELL.
53467         * lib/stdio_.h (rpl_ftell): New declaration.
53468         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53469         REPLACE_FTELL.
53470
53471 2007-05-28  Eric Blake  <ebb9@byu.net>
53472
53473         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
53474
53475 2007-05-28  Bruno Haible  <bruno@clisp.org>
53476
53477         * modules/fseek-tests: New file.
53478         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
53479         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
53480
53481         * lib/fseek.c: New file.
53482         * modules/fseek: New file.
53483         * m4/fseek.m4: New file.
53484         * doc/functions/fseek.texi: Update.
53485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
53486         REPLACE_FSEEK.
53487         * lib/stdio_.h (rpl_fseek): New declaration.
53488         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
53489         REPLACE_FSEEK.
53490
53491 2007-05-28  Bruno Haible  <bruno@clisp.org>
53492
53493         * lib/stdio_.h (fflush): More comments.
53494
53495 2007-05-28  Bruno Haible  <bruno@clisp.org>
53496
53497         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
53498         runtime test.
53499
53500 2007-05-28  Eric Blake  <ebb9@byu.net>
53501
53502         Improve lseek module.
53503         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
53504         * lib/unistd_.h (lseek): Scale back link warning message.
53505         * tests/test-lseek.c: Beef up test.
53506         * tests/test-lseek.sh: Exercise more facets of lseek.
53507         Reported by Bruno Haible.
53508
53509 2007-05-28  Bruno Haible  <bruno@clisp.org>
53510
53511         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
53512         to define.
53513
53514 2007-05-27  Bruno Haible  <bruno@clisp.org>
53515
53516         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
53517
53518 2007-05-27  Bruno Haible  <bruno@clisp.org>
53519
53520         * modules/openmp: New file.
53521         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
53522         Noah Misch.
53523
53524 2007-05-26  Bruno Haible  <bruno@clisp.org>
53525
53526         * modules/chdir-long (Depends-on): Add fchdir.
53527         * modules/chdir-safer (Depends-on): Likewise.
53528         * modules/fts (Depends-on): Likewise.
53529         * modules/fts-lgpl (Depends-on): Likewise.
53530         * modules/openat (Depends-on): Likewise.
53531         * modules/savewd (Depends-on): Likewise.
53532
53533 2007-05-24  Eric Blake  <ebb9@byu.net>
53534
53535         Fix lseek on mingw.
53536         * modules/lseek: New module.
53537         * m4/lseek.m4: New file.
53538         * lib/lseek.c: New file.
53539         * modules/lseek-tests: New file.
53540         * tests/test-lseek.c: New file.
53541         * tests/test-lseek.sh: New file.
53542         * MODULES.html.sh: Document lseek module.
53543         * modules/fflush (Depends-on): Add lseek, fseeko.
53544         * modules/fseeko (Depends-on): Likewise.
53545         * modules/ftello (Depends-on): Likewise.
53546         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
53547         broken.
53548         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
53549         broken.
53550         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
53551         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
53552         * lib/ftello.c (rpl_ftello): Likewise.
53553         * tests/test-fseeko.c (main): Test this.
53554         * tests/test-fseeko.sh: Likewise.
53555         * tests/test-ftello.c (main): Likewise.
53556         * tests/test-ftello.sh: Likewise.
53557         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
53558         implies replacing fseek.
53559         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
53560         HAVE_FTELLO.
53561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53562         * modules/unistd (Makefile.am): Likewise.
53563         * lib/unistd_.h (lseek): Declare a replacement.
53564         * doc/functions/lseek.texi (lseek): Document this fix.
53565         * doc/functions/fseek.texi (fseek): Likewise.
53566         * doc/functions/ftell.texi (ftell): Likewise.
53567
53568 2007-05-24  Bruno Haible  <bruno@clisp.org>
53569
53570         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53571         in the printed representation of a NaN.
53572         * tests/test-vasprintf-posix.c (test_function): Likewise.
53573         * tests/test-snprintf-posix.h (test_function): Likewise.
53574         * tests/test-sprintf-posix.h (test_function): Likewise.
53575         Reported by Eric Blake.
53576
53577 2007-05-23  Eric Blake  <ebb9@byu.net>
53578
53579         Fix fseeko/ftello on cygwin 1.5.24.
53580         * doc/functions/fseeko.texi (fseeko): Document the fix.
53581         * doc/functions/ftello.texi (ftello): Document the fix.
53582         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53583         * doc/functions/stdout.text (stdout): New file.
53584         * doc/functions/stderr.text (stderr): New file.
53585         * doc/gnulib.texi (Function Substitutes): Use new files.
53586         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53587         prior to 1.7.0.
53588         * tests/test-ftello.c (main): Likewise for ftello.
53589         * tests/test-fseeko.sh: New file.
53590         * tests/test-ftello.sh: New file.
53591         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53592         with seekable stdin.
53593         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53594         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53595         (gl_REPLACE_FSEEKO): New macro.
53596         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53597         * modules/fseeko (Files): Distribute fseeko.c.
53598         * modules/ftello (Files): Distribute ftello.c.
53599         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53600         mode.
53601         * lib/ftello.c (rpl_ftello): New file.
53602         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53603         fseeko, ftello.
53604         (gl_STDIN_LARGE_OFFSET): New macro.
53605         * modules/stdio (Makefile.am): Perform the replacement.
53606         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53607
53608 2007-05-23  Bruno Haible  <bruno@clisp.org>
53609
53610         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53611         GNULIB_POSIXCHECK is defined.
53612
53613 2007-05-21  Bruno Haible  <bruno@clisp.org>
53614
53615         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53616         Check also the output for NaN arguments. When cross-compiling, guess
53617         no on IRIX.
53618         * lib/vasnprintf.c: Update comments.
53619         * tests/test-vasnprintf-posix.c (strisnan): New function.
53620         (test_function): Use it.
53621         * tests/test-vasprintf-posix.c (strisnan): New function.
53622         (test_function): Use it.
53623         * tests/test-snprintf-posix.h (strisnan): New function.
53624         (test_function): Use it.
53625         * tests/test-sprintf-posix.h (strisnan): New function.
53626         (test_function): Use it.
53627         Reported by Eric Blake.
53628
53629 2007-05-20  Bruno Haible  <bruno@clisp.org>
53630
53631         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53632         numbers that fails on BeOS.
53633         * doc/functions/frexpl.texi: Update.
53634
53635 2007-05-20  Jim Meyering  <jim@meyering.net>
53636
53637         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
53638         forced upon us by glibc-2.6.
53639
53640 2007-05-20  Bruno Haible  <bruno@clisp.org>
53641
53642         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
53643         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
53644         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
53645         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
53646         NEED_PRINTF_INFINITE.
53647         (is_infinitel): New function.
53648         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
53649         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
53650         gl_PREREQ_VASNPRINTF_INFINITE.
53651         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
53652         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53653         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
53654         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
53655         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
53656         gl_PREREQ_VASNPRINTF_INFINITE.
53657         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53658         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53659         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53660         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53661         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53662         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53663         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53664         * doc/functions/fprintf.texi: Update.
53665         * doc/functions/printf.texi: Update.
53666         * doc/functions/snprintf.texi: Update.
53667         * doc/functions/sprintf.texi: Update.
53668         * doc/functions/vfprintf.texi: Update.
53669         * doc/functions/vprintf.texi: Update.
53670         * doc/functions/vsnprintf.texi: Update.
53671         * doc/functions/vsprintf.texi: Update.
53672
53673 2007-05-20  Bruno Haible  <bruno@clisp.org>
53674
53675         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
53676         was not found in libc.
53677         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
53678
53679 2007-05-20  Bruno Haible  <bruno@clisp.org>
53680
53681         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53682         printed as "-nan" instead of "nan".
53683         * tests/test-vasprintf-posix.c (test_function): Likewise.
53684         * tests/test-snprintf-posix.h (test_function): Likewise.
53685         * tests/test-sprintf-posix.h (test_function): Likewise.
53686         Needed for HP-UX 11.
53687
53688 2007-05-20  Jim Meyering  <jim@meyering.net>
53689
53690         Fix buggy test for the fchownat-deref bug.
53691         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
53692         symlink required for the run-test.  Without it, this test would
53693         always declare that fchownat doesn't work, and client code would
53694         unnecessarily use the replacement function with fixed libc.
53695         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
53696         Reported by Greg Schafer.
53697
53698 2007-05-19  Bruno Haible  <bruno@clisp.org>
53699
53700         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
53701         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
53702         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
53703         Needed for IRIX 6.5 and Solaris 2.5.1.
53704
53705 2007-05-19  Bruno Haible  <bruno@clisp.org>
53706
53707         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
53708         (test_function): Skip tests involving -0.0 on platforms where
53709         -0.0 = 0.0.
53710         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
53711         (test_function): Skip tests involving -0.0 on platforms where
53712         -0.0 = 0.0.
53713         * tests/test-snprintf-posix.h (have_minus_zero): New function.
53714         (test_function): Skip tests involving -0.0 on platforms where
53715         -0.0 = 0.0.
53716         * tests/test-sprintf-posix.h (have_minus_zero): New function.
53717         (test_function): Skip tests involving -0.0 on platforms where
53718         -0.0 = 0.0.
53719         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
53720         tests.
53721         * tests/test-printf-posix.h (test_function): Likewise.
53722         * tests/test-printf-posix.output: Remove all -0.0 related results.
53723         Needed for IRIX 6.5.
53724
53725 2007-05-19  Bruno Haible  <bruno@clisp.org>
53726
53727         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53728         printed as "nan0x7fffffff" instead of "nan".
53729         * tests/test-vasprintf-posix.c (test_function): Likewise.
53730         * tests/test-snprintf-posix.h (test_function): Likewise.
53731         * tests/test-sprintf-posix.h (test_function): Likewise.
53732         * tests/test-fprintf-posix.h (NaN): Remove macro.
53733         (test_function): Remove all NaN related tests.
53734         * tests/test-printf-posix.h (NaN): Remove macro.
53735         (test_function): Remove all NaN related tests.
53736         * tests/test-printf-posix.output: Remove all NaN related results.
53737         Needed for IRIX 6.5.
53738
53739 2007-05-19  Bruno Haible  <bruno@clisp.org>
53740
53741         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
53742         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
53743
53744 2007-05-19  Bruno Haible  <bruno@clisp.org>
53745
53746         * lib/float_.h: New file.
53747         * m4/float_h.m4: New file.
53748         * modules/float: New file.
53749         * modules/isnanl (Dependencies): Add float.
53750         * modules/isnanl-nolibm (Dependencies): Likewise.
53751         * modules/mathl (Dependencies): Likewise.
53752         * modules/printf-frexpl (Dependencies): Likewise.
53753         * modules/signbit (Dependencies): Likewise.
53754         * modules/vasnprintf (Dependencies): Likewise.
53755         * doc/headers/float.texi: Update.
53756
53757 2007-05-19  Jim Meyering  <jim@meyering.net>
53758
53759         * lib/utimens.c (gl_futimens): Rename from futimens,
53760         now that glibc-2.6 declares futimens.
53761         * lib/utimens.h: Likewise.
53762
53763 2007-05-19  Bruno Haible  <bruno@clisp.org>
53764
53765         Avoid test failures on mingw.
53766         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
53767         * tests/test-printf-posix.sh: Likewise.
53768         * tests/test-vfprintf-posix.sh: Likewise.
53769         * tests/test-vprintf-posix.sh: Likewise.
53770
53771 2007-05-19  Bruno Haible  <bruno@clisp.org>
53772
53773         Fix *printf result for NaN, Inf, -0.0 on mingw.
53774         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
53775         * lib/vasnprintf.c: Include math.h and isnan.h.
53776         (is_infinite_or_zero): New function.
53777         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
53778         values in the %f, %F, %e, %E, %g, %G directives.
53779         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
53780         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53781         gl_PRINTF_INFINITE and test its result. Invoke
53782         gl_PREREQ_VASNPRINTF_INFINITE.
53783         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53784         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53785         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53786         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53787         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53788         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53789         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53790         * doc/functions/fprintf.texi: Update.
53791         * doc/functions/printf.texi: Update.
53792         * doc/functions/snprintf.texi: Update.
53793         * doc/functions/sprintf.texi: Update.
53794         * doc/functions/vfprintf.texi: Update.
53795         * doc/functions/vprintf.texi: Update.
53796         * doc/functions/vsnprintf.texi: Update.
53797         * doc/functions/vsprintf.texi: Update.
53798
53799 2007-05-19  Bruno Haible  <bruno@clisp.org>
53800
53801         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
53802         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
53803         Instead of multiplying with 10^k, set extra_zeroes to k.
53804         (scale10_round_long_double): Remove function.
53805
53806 2007-05-18  Bruno Haible  <bruno@clisp.org>
53807
53808         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
53809         introduced on 2007-05-06.
53810
53811 2007-05-18  Bruno Haible  <bruno@clisp.org>
53812
53813         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
53814         %g directives.
53815         * tests/test-vasprintf-posix.c (test_function): Likewise.
53816         * tests/test-snprintf-posix.h (test_function): Likewise.
53817         * tests/test-sprintf-posix.h (test_function): Likewise.
53818
53819 2007-05-18  Bruno Haible  <bruno@clisp.org>
53820
53821         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
53822         (strmatch): New function.
53823         (test_function): Test the %f directive on numbers of various exponents.
53824         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
53825         (strmatch): New function.
53826         (test_function): Test the %f directive on numbers of various exponents.
53827         * tests/test-snprintf-posix.h (strmatch): New function.
53828         (test_function): Test the %f directive on numbers of various exponents.
53829         * tests/test-sprintf-posix.h (strmatch): New function.
53830         (test_function): Test the %f directive on numbers of various exponents.
53831         * tests/test-snprintf-posix.c (SIZEOF): New macro.
53832         * tests/test-sprintf-posix.c (SIZEOF): New macro.
53833         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
53834         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
53835
53836 2007-05-18  Bruno Haible  <bruno@clisp.org>
53837
53838         Add support for 'long double' number output.
53839         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
53840         * lib/vasnprintf.c: Include math.h and float+.h.
53841         (mp_limb_t): New type.
53842         (GMP_LIMB_BITS): New macro.
53843         (mp_twolimb_t): New type.
53844         (GMP_TWOLIMB_BITS): New macro.
53845         (mpn_t): New type.
53846         (multiply, divide, convert_to_decimal, decode_long_double,
53847         scale10_round_long_double, scale10_round_decimal_long_double,
53848         floorlog10l): New functions.
53849         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
53850         for the %f, %F, %e, %E, %g, %G directives.
53851         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
53852         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53853         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
53854         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
53855         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53856         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53857         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53858         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53859         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53860         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53861         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53862         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
53863         * modules/snprintf-posix (Depends-on): Likewise.
53864         * modules/sprintf-posix (Depends-on): Likewise.
53865         * modules/vasnprintf-posix (Depends-on): Likewise.
53866         * modules/vasprintf-posix (Depends-on): Likewise.
53867         * modules/vfprintf-posix (Depends-on): Likewise.
53868         * modules/vsnprintf-posix (Depends-on): Likewise.
53869         * modules/vsprintf-posix (Depends-on): Likewise.
53870         * modules/vasnprintf (Files): Add lib/float+.h.
53871         * doc/functions/fprintf.texi: Update.
53872         * doc/functions/printf.texi: Update.
53873         * doc/functions/snprintf.texi: Update.
53874         * doc/functions/sprintf.texi: Update.
53875         * doc/functions/vfprintf.texi: Update.
53876         * doc/functions/vprintf.texi: Update.
53877         * doc/functions/vsnprintf.texi: Update.
53878         * doc/functions/vsprintf.texi: Update.
53879
53880 2007-05-18  Bruno Haible  <bruno@clisp.org>
53881
53882         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
53883
53884 2007-05-18  Bruno Haible  <bruno@clisp.org>
53885
53886         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
53887         for printing 64-bit integers. Needed for mingw.
53888
53889 2007-05-18  Bruno Haible  <bruno@clisp.org>
53890
53891         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53892         gl_FUNC_FREXPL_WORKS.
53893         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
53894
53895 2007-05-18  Bruno Haible  <bruno@clisp.org>
53896
53897         * modules/frexpl-nolibm-tests: New file.
53898
53899         * modules/frexpl-nolibm: New file.
53900         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
53901
53902 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53903
53904         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
53905         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53906         GCC 4.2, which otherwise issues a lot of warnings.
53907         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
53908         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
53909         Likewise.
53910         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
53911         * modules/iconv_open (iconv.h): Likewise.
53912         * modules/locale (locale.h): Likewise.
53913         * modules/netinet_in (netinet/in.h): Likewise.
53914         * modules/sys_select (sys_select.h): Likewise.
53915         * modules/sys_socket (sys/socket.h): Likewise.
53916         * modules/sys_stat (sys/stat.h): Likewise.
53917         * modules/sysexits (sysexits.h): Likewise.
53918         * modules/unistd (unistd.h): Likewise.
53919
53920 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53921
53922         * modules/closein-tests (Makefile.am): Distribute
53923         `test-closein.sh'.
53924
53925 2007-05-17  Bruno Haible  <bruno@clisp.org>
53926
53927         * tests/test-printf-posix.output: Renamed from
53928         tests/test-fprintf-posix.out.
53929         * modules/fprintf-posix-tests: Update.
53930         * modules/printf-posix-tests: Update.
53931         * modules/vfprintf-posix-tests: Update.
53932         * modules/vprintf-posix-tests: Update.
53933         * tests/test-fprintf-posix.sh: Update.
53934         * tests/test-printf-posix.sh: Update.
53935         * tests/test-vfprintf-posix.sh: Update.
53936         * tests/test-vprintf-posix.sh: Update.
53937         Reported by Ralf Wildenhues.
53938
53939 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53940
53941         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
53942         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53943         GCC 4.2, which otherwise issues a lot of warnings.
53944         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
53945         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
53946         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
53947         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
53948         it should no longer be needed.
53949         * lib/string_.h: Likewise.
53950         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
53951         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
53952         * modules/inttypes (inttypes.h): Likewise.
53953         * modules/math (math.h): Likewise.
53954         * modules/search (search.h): Likewise.
53955         * modules/signal (signal.h): Likewise.
53956         * modules/stdint (stdint.h): Likewise.
53957         * modules/stdio (stdio.h): Likewise.
53958         * modules/stdlib (stdlib.h): Likewise.
53959         * modules/string (string.h): Likewise.
53960         * modules/sys_time (sys/time.h): Likewise.
53961         * modules/time (time.h): Likewise.
53962         * modules/wchar (wchar.h): Likewise.
53963         * modules/wctype (wtype.h): Likewise.
53964
53965 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53966
53967         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
53968
53969 2007-05-13  Bruno Haible  <bruno@clisp.org>
53970
53971         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
53972         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53973         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
53974         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53975         (gl_PREREQ_STRTOK_R): Don't require it here.
53976
53977 2007-05-13  Bruno Haible  <bruno@clisp.org>
53978
53979         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
53980         when used in C++ mode.
53981
53982 2007-05-12  Bruno Haible  <bruno@clisp.org>
53983
53984         * lib/linebuffer.h: Tweak doc.
53985         * lib/linebuffer.c: Likewise.
53986
53987 2007-05-12  James Youngman  <jay@gnu.org>
53988
53989         * lib/linebuffer.c (readlinebuffer_delim): New function,
53990         like readlinebuffer, but use a caller-specified delimiter.
53991         (readlinebuffer): Just call readlinebuffer_delim with '\n'
53992         as the delimiter.
53993         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
53994
53995 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53996
53997         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
53998         * modules/openat (Files): Remove openat-die.c.
53999         (Depends-on): Add openat-die.
54000         * modules/openat-die: New module.
54001
54002 2007-05-06  Bruno Haible  <bruno@clisp.org>
54003
54004         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
54005         Update with info about Cygwin.
54006         * doc/functions/fprintf.texi: Update.
54007         * doc/functions/printf.texi: Update.
54008         * doc/functions/snprintf.texi: Update.
54009         * doc/functions/sprintf.texi: Update.
54010         * doc/functions/vfprintf.texi: Update.
54011         * doc/functions/vprintf.texi: Update.
54012         * doc/functions/vsnprintf.texi: Update.
54013         * doc/functions/vsprintf.texi: Update.
54014         Reported by Eric Blake.
54015
54016 2007-05-06  Bruno Haible  <bruno@clisp.org>
54017
54018         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
54019         padding ourselves for the floating-point directives.
54020         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
54021         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
54022         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54023         gl_PRINTF_FLAG_ZERO and test its result. Invoke
54024         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
54025         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54026         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54027         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54028         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54029         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54031         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54032         * tests/test-snprintf-posix.h (test_function): Also check the width
54033         and some flags in the %f directive.
54034         * tests/test-sprintf-posix.h (test_function): Likewise.
54035         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54036         * tests/test-vasprintf-posix.c (test_function): Likewise.
54037         * doc/functions/fprintf.texi: Update.
54038         * doc/functions/printf.texi: Update.
54039         * doc/functions/snprintf.texi: Update.
54040         * doc/functions/sprintf.texi: Update.
54041         * doc/functions/vfprintf.texi: Update.
54042         * doc/functions/vprintf.texi: Update.
54043         * doc/functions/vsnprintf.texi: Update.
54044         * doc/functions/vsprintf.texi: Update.
54045
54046 2007-05-06  Bruno Haible  <bruno@clisp.org>
54047
54048         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
54049         pass the ' flag character to sprintf or snprintf.
54050         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
54051         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
54052         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54053         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
54054         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
54055         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54056         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54057         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54058         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54059         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54060         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54061         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54062         * tests/test-snprintf-posix.h (test_function): Also check the grouping
54063         flag.
54064         * tests/test-sprintf-posix.h (test_function): Likewise.
54065         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54066         * tests/test-vasprintf-posix.c (test_function): Likewise.
54067         * doc/functions/fprintf.texi: Update.
54068         * doc/functions/printf.texi: Update.
54069         * doc/functions/snprintf.texi: Update.
54070         * doc/functions/sprintf.texi: Update.
54071         * doc/functions/vfprintf.texi: Update.
54072         * doc/functions/vprintf.texi: Update.
54073         * doc/functions/vsnprintf.texi: Update.
54074         * doc/functions/vsprintf.texi: Update.
54075
54076 2007-05-01  Bruno Haible  <bruno@clisp.org>
54077
54078         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
54079
54080 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
54081
54082         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
54083         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
54084
54085 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54086
54087         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
54088         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
54089         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
54090
54091 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
54092
54093         * lib/argp-help.c (struct hol_entry): New member `ord'.
54094         (HOL_ENTRY_PTRCMP): Use ord for comparison
54095         (hol_sort): Initialize ord.
54096
54097 2007-05-01  Bruno Haible  <bruno@clisp.org>
54098
54099         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
54100         Reported by Eric Blake.
54101         * doc/gnulib.texi (Function Substitutes): Update.
54102
54103 2007-05-01  Bruno Haible  <bruno@clisp.org>
54104
54105         * doc/functions.texi: Remove file, now redundant through
54106         doc/functions/*.texi.
54107
54108 2007-05-01  Bruno Haible  <bruno@clisp.org>
54109
54110         * modules/argp (Depends-on): Add sleep.
54111
54112 2007-05-01  Bruno Haible  <bruno@clisp.org>
54113
54114         * modules/sleep-tests: New file.
54115         * tests/test-sleep.c: New file.
54116
54117         * modules/sleep: New file.
54118         * lib/sleep.c: New file.
54119         * m4/sleep.m4: New file.
54120         * lib/unistd_.h (sleep): New declaration.
54121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
54122         HAVE_SLEEP.
54123         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
54124         * doc/functions/sleep.texi: Document the sleep module.
54125
54126 2007-05-01  Bruno Haible  <bruno@clisp.org>
54127
54128         * lib/sigprocmask.h: Remove file.
54129         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
54130         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
54131         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
54132         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
54133         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
54134         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
54135         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
54136         HAVE_SIGSET_T as a shell variable.
54137         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
54138         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
54139         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
54140         (Depends-on): Add signal. Remove verify.
54141         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
54142         (Include): Mention <signal.h> instead of sigprocmask.h.
54143         * NEWS: Mention the change.
54144         * lib/fatal-signal.c: Don't include sigprocmask.h.
54145
54146 2007-05-01  Bruno Haible  <bruno@clisp.org>
54147
54148         * modules/signal: New file.
54149         * lib/signal_.h: New file.
54150         * m4/signal_h.m4: New file.
54151
54152 2007-05-01  Bruno Haible  <bruno@clisp.org>
54153
54154         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
54155         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
54156         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
54157         HAVE_WCTYPE_CTMP_BUG into wctype.h.
54158
54159 2007-05-01  Bruno Haible  <bruno@clisp.org>
54160
54161         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
54162         configure time.
54163         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
54164         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
54165         * modules/sys_stat (Makefile.am): Substitute their values into
54166         sys/stat.h.
54167
54168 2007-05-01  Bruno Haible  <bruno@clisp.org>
54169
54170         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
54171         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
54172         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
54173
54174 2007-05-01  Bruno Haible  <bruno@clisp.org>
54175
54176         * doc/header/assert.texi: Undo last change: don't mention the gnulib
54177         'assert' module here.
54178
54179 2007-05-01  Bruno Haible  <bruno@clisp.org>
54180
54181         * doc/functions/*.texi: New files.
54182         * doc/functions/google-ranking.txt: New file.
54183         * doc/gnulib.texi (Function Substitutes): New chapter.
54184         (ctime, inet_ntoa): Remove sections.
54185         * doc/ctime.texi: Remove file.
54186         * doc/inet_ntoa.texi: Remove file.
54187         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
54188         dependencies.
54189         (%.info): New rule, specifying a --reference-limit.
54190
54191 2007-05-01  Bruno Haible  <bruno@clisp.org>
54192
54193         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
54194
54195 2007-05-01  Bruno Haible  <bruno@clisp.org>
54196
54197         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
54198         the portability of 'mkdir' to mingw systems.
54199
54200 2007-05-01  Bruno Haible  <bruno@clisp.org>
54201
54202         * doc/headers/google-ranking.txt: New file.
54203
54204 2007-04-30  Eric Blake  <ebb9@byu.net>
54205
54206         Prefer fseeko to fseek.
54207         * modules/getpass (Depends-on): Add fseeko.
54208         * lib/getpass.c (getpass): Use fseeko, not fseek.
54209
54210 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
54211
54212         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
54213         assumes the sorting is stable, while most qsort implementations
54214         are not.  Use argument addresses to ensure they never compare as
54215         equal.
54216
54217         * tests/test-argp-2.sh (usage-indent test): Fix output
54218         (func_compare): Restore diff options
54219         * tests/test-argp.c: Restore #include "progname.h"
54220
54221 2007-04-29  Bruno Haible  <bruno@clisp.org>
54222
54223         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
54224         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54225         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
54226         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54227         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
54228         (configure.ac): Define CHECK_SNPRINTF_POSIX.
54229         (TESTS, check_PROGRAMS): Add test-snprintf.
54230         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
54231         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
54232         (TESTS, check_PROGRAMS): Add test-vsnprintf.
54233         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
54234         assertions that fail on HP-UX, OSF/1, or IRIX.
54235         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
54236
54237 2007-04-29  Bruno Haible  <bruno@clisp.org>
54238
54239         * MODULES.html.sh (posix_functions): Remove 'contents'.
54240
54241 2007-04-29  Karl Berry  <karl@gnu.org>
54242
54243         * config/srclist.txt (gendocs_template_min): new entry.
54244
54245 2007-04-29  Bruno Haible  <bruno@clisp.org>
54246
54247         Work around fpurge bug on BSD systems.
54248         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
54249         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
54250         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
54251         fpurge to rpl_fpurge if the system already has this function.
54252         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54253         the case where the system already has this function. Correct invariants
54254         on BSD systems.
54255         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54256         BSD systems.
54257
54258 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54259
54260         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54261         proposed by Sven Verdoolaege.
54262
54263         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54264         options.
54265         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54266         (usage and help tests): Update
54267
54268 2007-04-29  Bruno Haible  <bruno@clisp.org>
54269
54270         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54271         Print more information in case of failure. Disable a test on BeOS.
54272
54273 2007-04-29  Bruno Haible  <bruno@clisp.org>
54274
54275         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54276         This helps debugging on systems on which no gdb is available.
54277
54278 2007-04-29  Bruno Haible  <bruno@clisp.org>
54279
54280         * lib/freading.h: Improve comments.
54281         * lib/fwriting.h: Likewise.
54282         * tests/test-freading.c (main): Don't check freading immediately after
54283         repositioning. Needed for glibc.
54284
54285 2007-04-29  Bruno Haible  <bruno@clisp.org>
54286
54287         * lib/freading.c (freading): Trivial simplification.
54288
54289 2007-04-28  Bruno Haible  <bruno@clisp.org>
54290
54291         * tests/test-fwriting.c (main): Also test the interaction between
54292         fflush and fwriting.
54293         * modules/fwriting-tests (Depends-on): Add fflush.
54294
54295         * tests/test-freading.c (main): Also test the interaction between
54296         fflush and freading.
54297         * modules/freading-tests (Depends-on): Add fflush.
54298
54299 2007-04-28  Bruno Haible  <bruno@clisp.org>
54300
54301         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54302         fseeko and ftello.
54303         Suggested by Eric Blake.
54304
54305 2007-04-28  Jim Meyering  <jim@meyering.net>
54306
54307         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54308         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54309         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54310
54311 2007-04-27  Eric Blake  <ebb9@byu.net>
54312
54313         * doc/headers/assert.texi (assert.h): Document assert module use.
54314
54315 2007-04-27  Bruno Haible  <bruno@clisp.org>
54316
54317         * doc/headers/*.texi: New files.
54318         * doc/gnulib.texi (Header File Substitutes): New chapter.
54319         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54320         dependencies.
54321         (standards.info ,standards.html, standards.dvi): Update dependencies.
54322         (mostlyclean, clean): New targets.
54323
54324 2007-04-27  Bruno Haible  <bruno@clisp.org>
54325
54326         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54327         * modules/sysexits (Files, Makefile.am): Update.
54328
54329         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54330         * modules/sys_socket (Files, Makefile.am): Update.
54331
54332         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54333         * modules/sys_stat (Files, Makefile.am): Update.
54334
54335 2007-04-27  Eric Blake  <ebb9@byu.net>
54336
54337         * lib/freading.h: Improve comments.
54338         * lib/fwriting.h: Likewise.
54339         * lib/fflush.c: Likewise.
54340
54341         Fix closein for mingw.
54342         * modules/closein-tests: Add tests for closein.
54343         * tests/test-closein.c: New file.
54344         * tests/test-closein.sh: Likewise.
54345         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54346         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54347
54348 2007-04-27  Bruno Haible  <bruno@clisp.org>
54349
54350         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54351         version is < 6.
54352         * lib/math_.h [__DECC]: Likewise.
54353         * lib/stdio_.h [__DECC]: Likewise.
54354         * lib/stdlib_.h [__DECC]: Likewise.
54355         * lib/string_.h [__DECC]: Likewise.
54356         * lib/time_.h [__DECC]: Likewise.
54357         * lib/wchar_.h [__DECC]: Likewise.
54358         * lib/wctype_.h [__DECC]: Likewise.
54359
54360 2007-04-27  Bruno Haible  <bruno@clisp.org>
54361
54362         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54363
54364 2007-04-27  Bruno Haible  <bruno@clisp.org>
54365
54366         * lib/fflush.c: Add comments.
54367         * modules/fpurge-tests (Depends-on): Add fflush.
54368         * modules/freadable-tests (Depends-on): Likewise.
54369         * modules/fwritable-tests (Depends-on): Likewise.
54370
54371 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54372
54373         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54374         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54375         Report by Bruno Haible <bruno@clisp.org>.
54376
54377 2007-04-26  Eric Blake  <ebb9@byu.net>
54378
54379         Fix fflush on mingw.
54380         * modules/fflush (Depends-on): Add freading.
54381         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54382         but unread data.
54383
54384 2007-04-26  Eric Blake  <ebb9@byu.net>
54385         and Bruno Haible  <bruno@clisp.org>
54386
54387         Implement freading and fwriting.
54388         * lib/freading.c: New file.
54389         * lib/freading.h: Likewise.
54390         * m4/freading.m4: Likewise.
54391         * modules/freading: Likewise.
54392         * modules/freading-tests: Likewise.
54393         * tests/test-freading.c: Likewise.
54394         * lib/fwriting.c: New file.
54395         * lib/fwriting.h: Likewise.
54396         * m4/fwriting.m4: Likewise.
54397         * modules/fwriting: Likewise.
54398         * modules/fwriting-tests: Likewise.
54399         * tests/test-fwriting.c: Likewise.
54400         * MODULES.html.sh (File stream based Input/Output): Mention them.
54401
54402 2007-04-26  Bruno Haible  <bruno@clisp.org>
54403
54404         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54405         'long' when we assume it.
54406         Suggested by Eric Blake.
54407
54408 2007-04-26  Bruno Haible  <bruno@clisp.org>
54409
54410         Ensure fseeko, ftello are declared on glibc systems.
54411         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54412         * modules/fseeko (configure.ac-early): Likewise.
54413         * modules/ftello (configure.ac-early): Likewise.
54414         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54415         AC_FUNC_FSEEKO for this.
54416         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54417         (gl_CHECK_FSEEKO): Remove macro.
54418
54419 2007-04-26  Bruno Haible  <bruno@clisp.org>
54420
54421         * tests/test-fflush.c (main): Also check the ftell result after
54422         fflush and fseek/fseeko.
54423         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54424         file descriptor position cache in the stream.
54425         * lib/fseeko.c (rpl_fseeko): Likewise.
54426
54427 2007-04-26  Bruno Haible  <bruno@clisp.org>
54428
54429         * modules/fflush-tests (Depends-on): Add fseeko.
54430
54431 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54432             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54433
54434         * lib/argz_.h: ensure error_t definition is obtained in same
54435         mechanism system argz.h would have.
54436         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54437         argz facilities are known bad.  Err on the side of caution if
54438         cross-compiling.
54439
54440 2007-04-25  Eric Blake  <ebb9@byu.net>
54441
54442         * lib/fpurge.c (includes): Use stdlib.h for free.
54443         * tests/test-fflush.c (main): Also test fflush-fseeko.
54444
54445 2007-04-25  Bruno Haible  <bruno@clisp.org>
54446
54447         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54448         * lib/fseeko.c: New file.
54449         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54450         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54451         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54452         gl_FUNC_FSEEKO.
54453         (gl_FUNC_FSEEKO): Invoke it.
54454         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54455         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54456         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54457
54458 2007-04-25  Bruno Haible  <bruno@clisp.org>
54459
54460         * modules/fflush (Depends-on): Add ftello.
54461
54462 2007-04-25  Bruno Haible  <bruno@clisp.org>
54463
54464         * modules/ftello-tests: New file.
54465         * tests/test-ftello.c: New file.
54466
54467         * modules/ftello: New file.
54468         * m4/ftello.m4: New file.
54469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54470         HAVE_FTELLO.
54471         * lib/stdio_.h (ftello): New declaration.
54472         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
54473         HAVE_FTELLO.
54474
54475 2007-04-25  Bruno Haible  <bruno@clisp.org>
54476
54477         * modules/fseeko-tests: New file.
54478         * tests/test-fseeko.c: New file.
54479
54480         * modules/fseeko: New file.
54481         * m4/fseeko.m4: New file.
54482         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
54483         HAVE_FSEEKO.
54484         * lib/stdio_.h (fseeko): New declaration.
54485         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
54486         HAVE_FSEEKO.
54487
54488 2007-04-25  Bruno Haible  <bruno@clisp.org>
54489
54490         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
54491
54492 2007-04-25  Bruno Haible  <bruno@clisp.org>
54493
54494         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
54495         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
54496         * tests/test-unistd.c: Likewise.
54497         * tests/test-fcntl.c: Likewise.
54498
54499 2007-04-23  Eric Blake  <ebb9@byu.net>
54500
54501         * lib/fflush.c: Fix missing include.
54502         Reported by Bruno Haible.
54503
54504 2007-04-23  Bruno Haible  <bruno@clisp.org>
54505
54506         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
54507         Reported by Eric Blake.
54508
54509 2007-04-23  Bruno Haible  <bruno@clisp.org>
54510
54511         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
54512
54513 2007-04-23  Bruno Haible  <bruno@clisp.org>
54514
54515         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
54516
54517 2007-04-23  Bruno Haible  <bruno@clisp.org>
54518
54519         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
54520         Needed on HP-UX 11.
54521
54522 2007-04-16  Eric Blake  <ebb9@byu.net>
54523
54524         Make fflush rely on fpurge.
54525         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
54526         open coding all variants.
54527         * modules/fflush (Depends-on): Add fpurge and unistd.
54528         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
54529         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
54530
54531         Fix --with-tests compilation on cygwin.
54532         * modules/argmatch-tests (Makefile.am): List gnulib library first
54533         in LDADD.
54534         * modules/argp-tests (Makefile.am): Likewise.
54535         * modules/array-list-tests (Makefile.am): Likewise.
54536         * modules/array-oset-tests (Makefile.am): Likewise.
54537         * modules/avltree-list-tests (Makefile.am): Likewise.
54538         * modules/avltree-oset-tests (Makefile.am): Likewise.
54539         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54540         * modules/carray-list-tests (Makefile.am): Likewise.
54541         * modules/dirname-tests (Makefile.am): Likewise.
54542         * modules/frexp-tests (Makefile.am): Likewise.
54543         * modules/isnanl-tests (Makefile.am): Likewise.
54544         * modules/linked-list-tests (Makefile.am): Likewise.
54545         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54546         * modules/lock-tests (Makefile.am): Likewise.
54547         * modules/rbtree-list-tests (Makefile.am): Likewise.
54548         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54549         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54550         * modules/tls-tests (Makefile.am): Likewise.
54551         * modules/tsearch-tests (Makefile.am): Likewise.
54552         * modules/xvasprintf-tests (Makefile.am): Likewise.
54553
54554         Fix fpurge for cygwin.
54555         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
54556         value.
54557         * modules/fpurge-tests (Depends-on): Clean up trash.
54558
54559 2007-04-16  Simon Josefsson  <simon@josefsson.org>
54560
54561         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54562
54563         * m4/autobuild.m4: Re-indent.
54564
54565 2007-04-13  Bruno Haible  <bruno@clisp.org>
54566
54567         * modules/fpurge-tests: New file.
54568         * tests/test-fpurge.c: New file.
54569
54570         * modules/fpurge: New file.
54571         * lib/fpurge.h: New file.
54572         * lib/fpurge.c: New file.
54573         * m4/fpurge.m4: New file.
54574
54575 2007-04-13  Bruno Haible  <bruno@clisp.org>
54576
54577         * modules/fbufmode-tests: New file.
54578         * tests/test-fbufmode.c: New file.
54579
54580         * modules/fbufmode: New file.
54581         * lib/fbufmode.h: New file.
54582         * lib/fbufmode.c: New file.
54583         * m4/fbufmode.m4: New file.
54584
54585 2007-04-13  Bruno Haible  <bruno@clisp.org>
54586
54587         * modules/fwritable-tests: New file.
54588         * tests/test-fwritable.c: New file.
54589
54590         * modules/fwritable: New file.
54591         * lib/fwritable.h: New file.
54592         * lib/fwritable.c: New file.
54593         * m4/fwritable.m4: New file.
54594
54595 2007-04-13  Bruno Haible  <bruno@clisp.org>
54596
54597         * modules/freadable-tests: New file.
54598         * tests/test-freadable.c: New file.
54599
54600         * modules/freadable: New file.
54601         * lib/freadable.h: New file.
54602         * lib/freadable.c: New file.
54603         * m4/freadable.m4: New file.
54604
54605 2007-04-13  Bruno Haible  <bruno@clisp.org>
54606
54607         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54608         MOSTLYCLEANFILES.
54609
54610 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54611
54612         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54613         gzip bootstrap.conf to avoid dragging in i18n machinery.
54614         (gnulib_tool_option): Use it.
54615
54616 2007-04-13  Bruno Haible  <bruno@clisp.org>
54617
54618         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54619         %F directives.
54620         * tests/test-vasprintf-posix.c (test_function): Likewise.
54621         * tests/test-snprintf-posix.h (test_function): Likewise.
54622         * tests/test-sprintf-posix.h (test_function): Likewise.
54623         * tests/test-fprintf-posix.h (test_function): Likewise.
54624         * tests/test-printf-posix.h (test_function): Likewise.
54625         * tests/test-fprintf-posix.out: Likewise.
54626
54627 2007-04-13  Bruno Haible  <bruno@clisp.org>
54628
54629         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54630         * modules/tls-tests (configure.ac): Likewise.
54631         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54632
54633 2007-04-13  Bruno Haible  <bruno@clisp.org>
54634
54635         * lib/tls.c (glthread_tls_get): Fix return type.
54636         Patch by Arto C. Nirkko <anirkko@insel.ch>.
54637
54638 2007-04-12  Eric Blake  <ebb9@byu.net>
54639
54640         * modules/gettime (Depends-on): Remove gettime.
54641         Reported by Dmitry V. Levin.
54642
54643 2007-04-12  Bruno Haible  <bruno@clisp.org>
54644
54645         * modules/fflush (Include): Mention <stdio.h>.
54646         * modules/strtoimax (Include): Mention <inttypes.h>.
54647         * modules/strtoumax (Include): Likewise.
54648
54649 2007-04-12  Eric Blake  <ebb9@byu.net>
54650
54651         * .cvsignore: New file.
54652         * .gitignore: Likewise.
54653
54654 2007-04-12  Bruno Haible  <bruno@clisp.org>
54655
54656         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
54657         not before, since $(LDADD) often contains libgnu.a.
54658         * modules/striconv-tests (test_striconv_LDADD): Likewise.
54659         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
54660         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
54661         Needed on Cygwin.
54662
54663 2007-04-12  Eric Blake  <ebb9@byu.net>
54664
54665         Work around glibc's failure to flush stdin on fclose.
54666         * lib/closein.c (close_stdin): Flush stdin before closing.
54667
54668         Work around glibc's failure to reset seekable stdin on exit.
54669         * modules/closein: New module.
54670         * lib/closein.c: New file.
54671         * lib/closein.h: Likewise.
54672         * m4/closein.m4: Likewise.
54673         * MODULES.html.sh (File stream based Input/Output): Document it.
54674
54675 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54676
54677         * gnulib-tool: Rename generated 'autobuild' script to
54678         'do-autobuild' in --create-megatestdir output.
54679
54680         * doc/gnulib.texi (Build robot for gnulib): Fix.
54681
54682 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54683
54684         * modules/sysexits (Depends-on): Add absolute-header.
54685
54686 2007-04-12  Eric Blake  <ebb9@byu.net>
54687
54688         No need to preserve errno on success.
54689         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
54690         Reported by Bruno Haible.
54691
54692 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54693
54694         * MODULES.html.sh (Support for maintaining and releasing
54695         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
54696
54697 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54698
54699         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
54700
54701 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54702
54703         * modules/autobuild: New module.
54704
54705         * m4/autobuild.m4: New file.
54706
54707 2007-04-11  Bruno Haible  <bruno@clisp.org>
54708
54709         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
54710         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
54711         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
54712         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
54713         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54714         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54715         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54716         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54717         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54718         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54719         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
54720         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54721         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54722         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
54723         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54724         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54725         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
54726         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54727         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54728         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
54729         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54730         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54731         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
54732         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54733         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54734         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
54735         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54736         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54737         Reported by Eric Blake.
54738
54739 2007-04-11  Bruno Haible  <bruno@clisp.org>
54740
54741         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
54742
54743 2007-04-10  Bruno Haible  <bruno@clisp.org>
54744
54745         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
54746         for NaN and Infinity. Needed on FreeBSD 6.1.
54747         * tests/test-vasnprintf-posix.c (test_function): Undo last change
54748         regarding results for "%010a" of Infinity and NaN.
54749         * tests/test-vasprintf-posix.c (test_function): Likewise.
54750         * tests/test-snprintf-posix.h (test_function): Likewise.
54751         * tests/test-sprintf-posix.h (test_function): Likewise.
54752         * tests/test-fprintf-posix.h (test_function): Likewise.
54753         * tests/test-printf-posix.h (test_function): Likewise.
54754         * tests/test-fprintf-posix.out: Likewise.
54755
54756 2007-04-10  Bruno Haible  <bruno@clisp.org>
54757
54758         * modules/locale-tests: New file.
54759         * tests/test-locale.c: New file.
54760
54761         * modules/locale: New file.
54762         * lib/locale_.h: New file.
54763         * m4/locale_h.m4: New file.
54764
54765 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
54766             Bruno Haible  <bruno@clisp.org>
54767
54768         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
54769         be determined, test for availability of the copysignf, copysign,
54770         copysignl functions.
54771         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
54772         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
54773         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
54774
54775 2007-04-09  Eric Blake  <ebb9@byu.net>
54776
54777         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
54778         * modules/stdio (Makefile.am): Support fflush.
54779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54780         * modules/fflush: New file.
54781         * lib/fflush.c: Likewise.
54782         * m4/fflush.m4: Likewise.
54783         * modules/fflush-tests: New test.
54784         * tests/test-fflush.c: Likewise.
54785         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
54786
54787 2007-04-06  Bruno Haible  <bruno@clisp.org>
54788
54789         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
54790         (VASNPRINTF): Use signbit for faster determination whether to print a
54791         minus sign.
54792         * modules/vasnprintf (Files): Remove lib/float+.h.
54793         * modules/fprintf-posix (Depends-on): Add signbit.
54794         * modules/snprintf-posix (Depends-on): Likewise.
54795         * modules/sprintf-posix (Depends-on): Likewise.
54796         * modules/vasnprintf-posix (Depends-on): Likewise.
54797         * modules/vasprintf-posix (Depends-on): Likewise.
54798         * modules/vfprintf-posix (Depends-on): Likewise.
54799         * modules/vsnprintf-posix (Depends-on): Likewise.
54800         * modules/vsprintf-posix (Depends-on): Likewise.
54801
54802 2007-04-06  Bruno Haible  <bruno@clisp.org>
54803
54804         * tests/test-frexp.c (main): Test also the sign bit of zero results.
54805         * tests/test-frexpl.c (main): Likewise.
54806         * tests/test-ldexpl.c (main): Likewise.
54807         * modules/frexp-tests (Depends-on): Add signbit.
54808         * modules/frexpl-tests (Depdends-on): Likewise.
54809         * modules/ldexpl-tests (Depdends-on): Likewise.
54810
54811 2007-04-06  Bruno Haible  <bruno@clisp.org>
54812
54813         * modules/signbit-tests: New file.
54814         * tests/test-signbit.c: New file.
54815
54816         * modules/signbit: New file.
54817         * lib/signbitf.c: New file.
54818         * lib/signbitd.c: New file.
54819         * lib/signbitl.c: New file.
54820         * m4/signbit.m4: New file.
54821         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
54822         (signbit): New macro.
54823         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
54824         REPLACE_SIGNBIT.
54825         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
54826         REPLACE_FREXPL into math.h.
54827
54828 2007-04-06  Bruno Haible  <bruno@clisp.org>
54829
54830         * modules/isnanf-nolibm-tests: New file.
54831         * tests/test-isnanf.c: New file.
54832
54833         * modules/isnanf-nolibm: New file.
54834         * lib/isnanf.h: New file.
54835         * lib/isnanf.c: New file.
54836         * lib/isnan.c: Consider the USE_FLOAT macro.
54837         * m4/isnanf.m4: New file.
54838
54839 2007-04-06  Bruno Haible  <bruno@clisp.org>
54840
54841         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
54842         (Link): New section.
54843
54844         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
54845
54846 2007-04-06  Bruno Haible  <bruno@clisp.org>
54847
54848         Assume the 'long double' type.
54849         * m4/longdouble.m4: Remove file.
54850         * config/srclist.txt: Don't mention longdouble.m4.
54851         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
54852         * lib/float+.h: Likewise.
54853         * lib/frexp.c: Likewise.
54854         * lib/printf-args.h: Likewise.
54855         * lib/printf-args.c: Likewise.
54856         * lib/printf-frexp.c: Likewise.
54857         * lib/printf-parse.c: Likewise.
54858         * lib/vasnprintf.c: Likewise.
54859         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
54860         * m4/intl.m4: Likewise.
54861         * m4/isnanl.m4: Likewise.
54862         * m4/printf.m4: Likewise.
54863         * m4/printf-frexpl.m4: Likewise.
54864         * m4/vasnprintf.m4: Likewise.
54865         * modules/allocsa (Files): Remove m4/longdouble.m4.
54866         * modules/gettext (Files): Likewise.
54867         * modules/relocatable-prog-wrapper (Files): Likewise.
54868         * modules/vasnprintf (Files): Likewise.
54869         * modules/isnanl (Files): Likewise.
54870         (Include): Simplify.
54871         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
54872         (Include): Simplify.
54873         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
54874         (Include): Simplify.
54875         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
54876         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54877         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
54878         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54879         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54880         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54881         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
54882         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54883         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54884         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54885         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
54886         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54887         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
54888         * tests/test-isnanl.c: Likewise.
54889         * tests/test-snprintf-posix.h: Likewise.
54890         * tests/test-sprintf-posix.h: Likewise.
54891         * tests/test-vasnprintf-posix.c: Likewise.
54892         * tests/test-vasnprintf-posix2.c: Likewise.
54893         * tests/test-vasprintf-posix.c: Likewise.
54894
54895 2007-04-06  Bruno Haible  <bruno@clisp.org>
54896
54897         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
54898         * lib/math_.h [__DECC]: Include the overridden include file through
54899         #include_next, outside the double-inclusion guard.
54900         * lib/stdio_.h [__DECC]: Likewise.
54901         * lib/stdlib_.h [__DECC]: Likewise.
54902         * lib/string_.h [__DECC]: Likewise.
54903         * lib/time_.h [__DECC]: Likewise.
54904         * lib/wchar_.h [__DECC]: Likewise.
54905         * lib/wctype_.h [__DECC]: Likewise.
54906         * lib/inttypes_.h [__DECC]: Likewise.
54907         Reported by Albert Chin <china@thewrittenword.com> in
54908         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
54909
54910 2007-04-04  Eric Blake  <ebb9@byu.net>
54911
54912         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
54913         1.5.x.
54914
54915 2007-04-04  Bruno Haible  <bruno@clisp.org>
54916
54917         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
54918         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
54919
54920 2007-04-04  Bruno Haible  <bruno@clisp.org>
54921
54922         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
54923         results for "%010a" of Infinity and NaN.
54924         * tests/test-vasprintf-posix.c (test_function): Likewise.
54925         * tests/test-snprintf-posix.h (test_function): Likewise.
54926         * tests/test-sprintf-posix.h (test_function): Likewise.
54927         * tests/test-fprintf-posix.h (test_function): Remove these tests.
54928         * tests/test-printf-posix.h (test_function): Likewise.
54929         * tests/test-fprintf-posix.out: Update.
54930         Needed for FreeBSD 6.1.
54931
54932 2007-04-04  Bruno Haible  <bruno@clisp.org>
54933
54934         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
54935         directly used by the gnulib modules nor by gnulib-tool.
54936
54937 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
54938
54939         * DEPENDENCIES: Give overall description of version dependency
54940         desirability.  Use more-typical names for apps.
54941         Add shell, coreutils, diffutils, grep, tar, gzip.
54942
54943 2007-04-04  Simon Josefsson  <simon@josefsson.org>
54944
54945         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
54946
54947 2007-04-04  Karl Berry  <karl@gnu.org>
54948
54949         * MODULES.html.sh (func_module): missing '.
54950
54951 2007-04-03  Bruno Haible  <bruno@clisp.org>
54952
54953         * modules/argmatch-tests (Makefile.am): New variable
54954         test_argmatch_LDADD.
54955         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
54956         * modules/array-list-tests (Makefile.am): New variable
54957         test_array_list_LDADD.
54958         * modules/array-oset-tests (Makefile.am): New variable
54959         test_array_oset_LDADD.
54960         * modules/avltree-list-tests (Makefile.am): New variable
54961         test_avltree_list_LDADD.
54962         * modules/avltree-oset-tests (Makefile.am): New variable
54963         test_avltree_oset_LDADD.
54964         * modules/avltreehash-list-tests (Makefile.am): New variable
54965         test_avltreehash_list_LDADD.
54966         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
54967         test_canonicalize_lgpl_LDADD.
54968         * modules/carray-list-tests (Makefile.am): New variable
54969         test_carray_list_LDADD.
54970         * modules/dirname-tests (Makefile.am): New variable
54971         test_dirname_LDADD.
54972         * modules/linked-list-tests (Makefile.am): New variable
54973         test_linked_list_LDADD.
54974         * modules/linkedhash-list-tests (Makefile.am): New variable
54975         test_linkedhash_list_LDADD.
54976         * modules/rbtree-list-tests (Makefile.am): New variable
54977         test_rbtree_list_LDADD.
54978         * modules/rbtree-oset-tests (Makefile.am): New variable
54979         test_rbtree_oset_LDADD.
54980         * modules/rbtreehash-list-tests (Makefile.am): New variable
54981         test_rbtreehash_list_LDADD.
54982         * modules/xvasprintf-tests (Makefile.am): New variable
54983         test_xvasprintf_LDADD.
54984         Reported by Eric Blake.
54985
54986 2007-04-03  Eric Blake  <ebb9@byu.net>
54987
54988         * DEPENDENCIES: Weaken m4 requirements.
54989
54990 2007-04-03  Bruno Haible  <bruno@clisp.org>
54991
54992         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
54993         * modules/isnanl-tests (configure.ac): Likewise.
54994
54995 2007-04-03  Ben Pfaff  <blp@gnu.org>
54996
54997         * modules/iconv_open: Add $(srcdir)/ to source directory
54998         references in Makefile fragments that call gperf, to fix VPATH
54999         builds.
55000
55001 2007-04-03  Bruno Haible  <bruno@clisp.org>
55002
55003         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
55004         * lib/ldexpl.c: Undo last change.
55005
55006 2007-04-03  Bruno Haible  <bruno@clisp.org>
55007
55008         * modules/printf-frexpl (Depends-on): Undo last change.
55009         (Files): Add m4/ldexpl.m4.
55010
55011 2007-04-03  Bruno Haible  <bruno@clisp.org>
55012
55013         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
55014         * modules/isnanl (Link): New section.
55015
55016         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
55017         * modules/frexp (Link): New section.
55018
55019         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
55020         * modules/frexpl (Link): New section.
55021
55022         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
55023         * modules/ldexpl (Link): New section.
55024
55025 2007-04-03  Bruno Haible  <bruno@clisp.org>
55026
55027         * modules/TEMPLATE-EXTENDED: New file.
55028         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
55029
55030 2007-04-03  Bruno Haible  <bruno@clisp.org>
55031
55032         * DEPENDENCIES: New file.
55033         Suggested by Simon Josefsson.
55034
55035 2007-04-03  Bruno Haible  <bruno@clisp.org>
55036
55037         * doc/gnulib.texi: Escape @.
55038
55039 2007-04-03  James Youngman  <jay@gnu.org>
55040         and Paul Eggert  <eggert@cs.ucla.edu>
55041
55042         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
55043         birthtime on all systems that have birthtime, not just those which
55044         use st_birthtimensec rather than st_birthtim.  Putting zero in
55045         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
55046         that the birth time is not available for files on an NFS mount.
55047
55048 2007-04-03  Simon Josefsson  <simon@josefsson.org>
55049
55050         * modules/memxor: Move back from crypto/, suggested by Bruno.
55051         * modules/crypto/hmac-sha1: Fix memxor dependency.
55052
55053         * modules/crypto/gc: Moved from ../.
55054
55055 2007-04-02  Eric Blake  <ebb9@byu.net>
55056
55057         * lib/ldexpl.c (includes): Avoid libm.
55058
55059         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
55060
55061 2007-04-02  Bruno Haible  <bruno@clisp.org>
55062
55063         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
55064         on IRIX.
55065
55066 2007-04-02  Bruno Haible  <bruno@clisp.org>
55067
55068         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
55069         x86 or x86_64 platforms running MacOS X.
55070         Reported by Ryan Schmidt <@ryandesign.com>.
55071
55072 2007-04-02  Bruno Haible  <bruno@clisp.org>
55073
55074         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
55075         i386.
55076
55077 2007-04-01  Simon Josefsson  <simon@josefsson.org>
55078
55079         * modules/crypto/arcfour: Moved from ../.
55080         * modules/crypto/arcfour-tests: Moved from ../.
55081         * modules/crypto/arctwo: Moved from ../.
55082         * modules/crypto/arctwo-tests: Moved from ../.
55083         * modules/crypto/des: Moved from ../.
55084         * modules/crypto/des-tests: Moved from ../.
55085         * modules/crypto/gc-arcfour: Moved from ../.
55086         * modules/crypto/gc-arcfour-tests: Moved from ../.
55087         * modules/crypto/gc-arctwo: Moved from ../.
55088         * modules/crypto/gc-arctwo-tests: Moved from ../.
55089         * modules/crypto/gc-des: Moved from ../.
55090         * modules/crypto/gc-des-tests: Moved from ../.
55091         * modules/crypto/gc-hmac-md5: Moved from ../.
55092         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
55093         * modules/crypto/gc-hmac-sha1: Moved from ../.
55094         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
55095         * modules/crypto/gc-md2: Moved from ../.
55096         * modules/crypto/gc-md2-tests: Moved from ../.
55097         * modules/crypto/gc-md4: Moved from ../.
55098         * modules/crypto/gc-md4-tests: Moved from ../.
55099         * modules/crypto/gc-md5: Moved from ../.
55100         * modules/crypto/gc-md5-tests: Moved from ../.
55101         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
55102         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
55103         * modules/crypto/gc-random: Moved from ../.
55104         * modules/crypto/gc-rijndael: Moved from ../.
55105         * modules/crypto/gc-rijndael-tests: Moved from ../.
55106         * modules/crypto/gc-sha1: Moved from ../.
55107         * modules/crypto/gc-sha1-tests: Moved from ../.
55108         * modules/crypto/gc-tests: Moved from ../.
55109         * modules/crypto/hmac-md5: Moved from ../.
55110         * modules/crypto/hmac-md5-tests: Moved from ../.
55111         * modules/crypto/hmac-sha1: Moved from ../.
55112         * modules/crypto/hmac-sha1-tests: Moved from ../.
55113         * modules/crypto/md2: Moved from ../.
55114         * modules/crypto/md2-tests: Moved from ../.
55115         * modules/crypto/md4: Moved from ../.
55116         * modules/crypto/md4-tests: Moved from ../.
55117         * modules/crypto/md5: Moved from ../.
55118         * modules/crypto/md5-tests: Moved from ../.
55119         * modules/crypto/memxor: Moved from ../.
55120         * modules/crypto/rijndael: Moved from ../.
55121         * modules/crypto/rijndael-tests: Moved from ../.
55122         * modules/crypto/sha1: Moved from ../.
55123
55124 2007-03-30  James Youngman  <jay@gnu.org>
55125
55126         * tests/test-stat-time.c (prepare_test): use chmod() rather than
55127         rename() to change the ctime of a file (because ctime is unaffected
55128         by rename on jfs2 on AIX 5.1).
55129         (main): Start by doing cleanup, in case a previous run failed leaving
55130         test files behind.
55131
55132 2007-03-31  Bruno Haible  <bruno@clisp.org>
55133
55134         Support old proprietary implementations of iconv.
55135         * modules/iconv_open: New file.
55136         * lib/iconv_.h: New file.
55137         * m4/iconv_h.m4: New file.
55138         * lib/iconv_open.c: New file.
55139         * lib/iconv_open-aix.gperf: New file.
55140         * lib/iconv_open-hpux.gperf: New file.
55141         * lib/iconv_open-irix.gperf: New file.
55142         * lib/iconv_open-osf.gperf: New file.
55143         * m4/iconv_open.m4: New file.
55144         * modules/linebreak (Depends-on): Add iconv_open.
55145         * modules/striconv (Depends-on): Likewise.
55146         * modules/striconveh (Depends-on): Likewise.
55147         * modules/unicodeio (Depends-on): Likewise.
55148         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
55149         (iconv_t)(-1).
55150         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
55151         conversion if cd is (iconv_t)(-1).
55152         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
55153         is not possible.
55154
55155 2007-03-31  Bruno Haible  <bruno@clisp.org>
55156
55157         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55158         work on Solaris either. Protect also second use of "autodetect_jp".
55159
55160 2007-03-31  Bruno Haible  <bruno@clisp.org>
55161
55162         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
55163         the function is not present.
55164
55165 2007-03-31  Bruno Haible  <bruno@clisp.org>
55166
55167         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
55168         the function is not present.
55169
55170 2007-03-31  Bruno Haible  <bruno@clisp.org>
55171
55172         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
55173         a bug in HP-UX iconv_open().
55174
55175 2007-03-31  Bruno Haible  <bruno@clisp.org>
55176
55177         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
55178         (Mathematics <math.h>): New section, add fpieee.
55179         (Input/output <stdio.h>): Add fseterr.
55180         (Mathematics <math.h>): New section, add printf-frexp.
55181         (Container data structures): Add sublist.
55182         (Core language properties): Add fpucw, inline.
55183         (Functions for greatest-width integer types <inttypes.h>): Add
55184         imaxabs, imaxdiv, inttypes.
55185         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
55186         isnanl-nolibm, ldexp.
55187         (Mathematics <math.h>): New section, add printf-frexpl.
55188         (Support for systems lacking POSIX:2001): Add fprintf-posix,
55189         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
55190         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
55191         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
55192         (Unicode string functions): Add unistr/u*-mbtoucr.
55193         (Java): Add javacomp-script, javaexec-script.
55194         (C#): Add csharpcomp-script, csharpexec-script.
55195         (Support for building libraries and executables): Add havelib,
55196         relocatable-*.
55197         (Support for maintaining and releasing projects): Renamed from
55198         'Support for maintaining and release projects'. Add announce-gen.
55199
55200 2007-03-31  Bruno Haible  <bruno@clisp.org>
55201
55202         * README: Talk primarily about git.
55203         (git and CVS): Renamed from CVS.
55204         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
55205         gnulib is available through git.
55206         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
55207
55208 2007-03-30  Bruno Haible  <bruno@clisp.org>
55209
55210         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
55211         * lib/poll_.h: Likewise.
55212         * lib/stat_.h: Likewise.
55213         * lib/sys_time_.h: Likewise.
55214         * lib/sysexit_.h: Likewise.
55215         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
55216         * lib/stdbool_.h: Likewise.
55217         * lib/byteswap_.h: Add double-inclusion guard.
55218
55219 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
55220
55221         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
55222
55223 2007-03-30  Karl Berry  <karl@gnu.org>
55224
55225         * config/srclist-update: double space after USA in the license
55226         substitution, since that's how it's usually (?) written.
55227
55228 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55229
55230         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
55231         reported by Bruno Haible.
55232
55233 2007-03-29  Bruno Haible  <bruno@clisp.org>
55234
55235         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
55236         a bug in AIX iconv().
55237
55238 2007-03-29  Bruno Haible  <bruno@clisp.org>
55239
55240         * modules/ldexpl-tests: New file.
55241         * tests/test-ldexpl.c: New file.
55242
55243 2007-03-29  Bruno Haible  <bruno@clisp.org>
55244
55245         * lib/ldexpl.c: Include fpucw.h.
55246         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
55247         multiplication.
55248         * modules/ldexpl (Depends-on): Add fpucw.
55249
55250 2007-03-29  Bruno Haible  <bruno@clisp.org>
55251
55252         * modules/ldexpl: New file.
55253         * m4/ldexpl.m4: New file.
55254         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55255         set.
55256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55257         REPLACE_LDEXPL.
55258         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55259         REPLACE_LDEXPL.
55260         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55261         gl_FUNC_LDEXPL_WORKS.
55262         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55263         * modules/mathl (Files): Remove lib/ldexpl.c.
55264         (Depends-on): Add ldexpl.
55265
55266 2007-03-29  Bruno Haible  <bruno@clisp.org>
55267
55268         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55269
55270 2007-03-29  Bruno Haible  <bruno@clisp.org>
55271
55272         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55273         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55274         and possibly also HP-UX.
55275         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55276         work on AIX, IRIX, HP-UX, OSF/1.
55277         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55278         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55279         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55280         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55281         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55282         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55283
55284 2007-03-29  Bruno Haible  <bruno@clisp.org>
55285
55286         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55287
55288 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55289
55290         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55291         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55292
55293 2007-03-29  Eric Blake  <ebb9@byu.net>
55294
55295         * lib/acl-internal.h: Remove redundant include.
55296         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55297         Cygwin when a file is locked.
55298
55299 2007-03-29  Bruno Haible  <bruno@clisp.org>
55300
55301         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55302         file.
55303         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55304
55305 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55306
55307         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55308         try to remove a parent directory if the child couldn't be removed
55309         (except for the first rmdir, which could fail because the child
55310         doesn't exist).  Problem reported by Jeff Blaine in
55311         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55312
55313 2007-03-28  Bruno Haible  <bruno@clisp.org>
55314
55315         * lib/striconveh.c (utf8conv_carefully): New function.
55316         (mem_cd_iconveh_internal): Invoke it.
55317
55318 2007-03-28  Bruno Haible  <bruno@clisp.org>
55319
55320         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55321         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55322         input.
55323         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55324         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55325         unistr/u8-uctomb.
55326
55327 2007-03-28  Bruno Haible  <bruno@clisp.org>
55328
55329         * modules/unistr/u8-mbtoucr: New file.
55330         * lib/unistr/u8-mbtoucr.c: New file.
55331         * modules/unistr/u16-mbtoucr: New file.
55332         * lib/unistr/u16-mbtoucr.c: New file.
55333         * modules/unistr/u16-mbtoucr: New file.
55334         * lib/unistr/u16-mbtoucr.c: New file.
55335         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55336
55337 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55338             Bruno Haible  <bruno@clisp.org>
55339
55340         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55341         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55342         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55343
55344         * m4/stdio_h.m4: Add stubs for vasprintf too.
55345
55346         * modules/stdio: Support vasprintf in sed command.
55347
55348         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55349         vasprintf.h.  Add stdio module indicator.
55350
55351         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55352         vasprintf.h.
55353
55354         * lib/vasprintf.h: File removed.
55355
55356         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55357         * lib/vasprintf.c: Ditto.
55358         * lib/xvasprintf.c: Ditto.
55359         * tests/test-vasprintf-posix.c: Ditto.
55360         * tests/test-vasprintf.c: Ditto.
55361
55362 2007-03-27  Bruno Haible  <bruno@clisp.org>
55363
55364         Make vasnprintf multithread-safe.
55365         * lib/vasnprintf.c (decimal_point_char): New function.
55366         (VASNPRINTF): Use it.
55367         Suggested by Simon Josefsson.
55368
55369 2007-03-27  Eric Blake  <ebb9@byu.net>
55370
55371         Support sub-second birthtime on cygwin.
55372         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55373         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55374         (get_stat_birthtime): Also work with st_birthtim.
55375
55376 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55377
55378         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55379         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55380         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55381         (get_stat_birthtime_ns): Simplify compile-time tests.
55382         (get_stat_birthtime): Change the API to look like
55383         get_stat_mtime etc., except return a negative tv_nsec on error.
55384         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55385         Don't check for "spare" fields.
55386         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55387         or for struct stat.st_birthtime, as these tests aren't used.
55388         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55389
55390 2007-03-27  Bruno Haible  <bruno@clisp.org>
55391
55392         * lib/stat-time.h: Include <sys/stat.h>.
55393
55394 2007-03-27  James Youngman  <jay@gnu.org>
55395
55396         * lib/stat-time.h (get_stat_birthtime): New function for
55397           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55398         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55399           and its variants.
55400         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55401         * modules/stat-time-test: New file.
55402         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55403
55404 2007-03-26  Bruno Haible  <bruno@clisp.org>
55405
55406         Better support of signalling NaNs.
55407         * lib/atanl.c: Include isnanl.h.
55408         (atanl): Perform test for NaN at the beginning of the function and
55409         through a call to isnanl.
55410         * lib/cosl.c: Include isnanl.h.
55411         (cosl): Perform test for NaN at the beginning of the function and
55412         through a call to isnanl.
55413         * lib/ldexpl.c: Include isnanl.h.
55414         (ldexpl): Perform test for NaN through a call to isnanl.
55415         * lib/logl.c: Include isnanl.h.
55416         (logl): Perform test for NaN at the beginning of the function and
55417         through a call to isnanl.
55418         * lib/sinl.c: Include isnanl.h.
55419         (sinl): Perform test for NaN at the beginning of the function and
55420         through a call to isnanl.
55421         * lib/sqrtl.c: Include isnanl.h.
55422         (sqrtl): Perform test for NaN at the beginning of the function and
55423         through a call to isnanl.
55424         * lib/tanl.c: Include isnanl.h.
55425         (tanl): Perform test for NaN at the beginning of the function and
55426         through a call to isnanl.
55427         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55428         * modules/mathl (Depends-on): Add isnanl.
55429
55430 2007-03-26  Eric Blake  <ebb9@byu.net>
55431
55432         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55433         regression in logic sense of previous patch.
55434
55435 2007-03-26  Bruno Haible  <bruno@clisp.org>
55436
55437         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55438         unportable shell command "if ! ...".
55439         Reported by Ralf Wildenhues.
55440
55441 2007-03-25  Bruno Haible  <bruno@clisp.org>
55442
55443         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55444         <sysexits.h> file, and only add EX_CONFIG.
55445         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55446         absolute file name and whether it is sufficient. Substitute also
55447         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55448         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55449         ABSOLUTE_SYSEXITS_H into sysexits.h.
55450
55451 2007-03-25  Bruno Haible  <bruno@clisp.org>
55452
55453         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55454         hints is NULL.
55455
55456 2007-03-25  Bruno Haible  <bruno@clisp.org>
55457
55458         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55459         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55460
55461 2007-03-25  Bruno Haible  <bruno@clisp.org>
55462
55463         * lib/vasnprintf.c: Include langinfo.h.
55464         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55465         multithread-safe.
55466         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55467         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55468         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55469         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55470         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55471         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55472         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55473         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
55474         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55475         Reported by Simon Josefsson.
55476
55477 2007-03-25  Bruno Haible  <bruno@clisp.org>
55478
55479         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
55480         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
55481         * modules/vasnprintf (Depends-on): Add stdint.
55482
55483 2007-03-25  Bruno Haible  <bruno@clisp.org>
55484
55485         * modules/fpieee: New file.
55486         * m4/fpieee.m4: New file.
55487         * modules/isnan-nolibm (Depends-on): Add fpieee.
55488         * modules/isnanl-nolibm (Depends-on): Add fpieee.
55489         * modules/isnanl (Depends-on): Add fpieee.
55490
55491 2007-03-25  Bruno Haible  <bruno@clisp.org>
55492
55493         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
55494
55495 2007-03-25  Bruno Haible  <bruno@clisp.org>
55496
55497         Avoid test failures on IRIX 6.5.
55498         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
55499         (main): Use it.
55500         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
55501         macros.
55502         (main): Use them.
55503
55504 2007-03-25  Bruno Haible  <bruno@clisp.org>
55505
55506         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
55507         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
55508         exists but doesn't work.
55509         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
55510         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
55511         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
55512         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
55513         math.h.
55514
55515 2007-03-25  Bruno Haible  <bruno@clisp.org>
55516
55517         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
55518         returns inf. Needed on IRIX 6.5.
55519
55520 2007-03-25  Bruno Haible  <bruno@clisp.org>
55521
55522         * tests/test-frexpl.c: Include isnanl-nolibm.h.
55523         (main): Use isnanl instead of x != x idiom.
55524         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
55525
55526         * tests/test-frexp.c: Include isnan.h.
55527         (main): Use isnan instead of x != x idiom.
55528         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
55529
55530 2007-03-25  Bruno Haible  <bruno@clisp.org>
55531
55532         * tests/test-frexp.c (NaN): New function/macro.
55533         (main): Use it instead of 0.0 / 0.0.
55534         * tests/test-isnan.c (NaN): New function/macro.
55535         (main): Use it instead of 0.0 / 0.0.
55536         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
55537         (test_function): Use it instead of 0.0 / 0.0.
55538         * tests/test-vasprintf-posix.c (NaN): New function/macro.
55539         (test_function): Use it instead of 0.0 / 0.0.
55540         * tests/test-snprintf-posix.h (NaN): New function/macro.
55541         (test_function): Use it instead of 0.0 / 0.0.
55542         * tests/test-sprintf-posix.h (NaN): New function/macro.
55543         (test_function): Use it instead of 0.0 / 0.0.
55544         * tests/test-fprintf-posix.h (NaN): New function/macro.
55545         (test_function): Use it instead of 0.0 / 0.0.
55546         * tests/test-printf-posix.h (NaN): New function/macro.
55547         (test_function): Use it instead of 0.0 / 0.0.
55548
55549         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
55550
55551 2007-03-25  Bruno Haible  <bruno@clisp.org>
55552
55553         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
55554
55555 2007-03-25  Bruno Haible  <bruno@clisp.org>
55556
55557         * lib/regexec.c (merge_state_with_log): Make static.
55558
55559 2007-03-25  Bruno Haible  <bruno@clisp.org>
55560
55561         * lib/trigl.c (kernel_rem_pio2): Make static.
55562
55563 2007-03-25  Bruno Haible  <bruno@clisp.org>
55564
55565         * lib/sincosl.c (sincosl_table): Make static.
55566
55567 2007-03-25  Bruno Haible  <bruno@clisp.org>
55568
55569         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55570         if the compiler does not support C99.
55571
55572 2007-03-25  Bruno Haible  <bruno@clisp.org>
55573
55574         * modules/time (Makefile.am): Ensure all rule action lines start with a
55575         tab.
55576
55577 2007-03-24  Bruno Haible  <bruno@clisp.org>
55578
55579         * modules/tsearch-tests: New file.
55580         * tests/test-tsearch.sh: New file.
55581         * tests/test-tsearch.c: New file, mostly copied from glibc.
55582
55583         * modules/search-tests: New file.
55584         * tests/test-search.c: New file.
55585
55586         * modules/search: New file.
55587         * lib/search_.h: New file, incorporating lib/tsearch.h.
55588         * m4/search_h.m4: New file.
55589         * lib/tsearch.h: Remove file.
55590         * lib/tsearch.c: Include search.h instead of tsearch.h.
55591         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55592         HAVE_TSEARCH.
55593         * modules/tsearch (Files): Remove lib/tsearch.h.
55594         (Depends-on): Add search.
55595         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55596         (Include): Change tsearch.h into search.h.
55597
55598 2007-03-24  Bruno Haible  <bruno@clisp.org>
55599
55600         * modules/fpucw: New file.
55601         * lib/fpucw.h: New file.
55602         * lib/frexp.c: Include fpucw.h.
55603         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55604         (FUNC): Use them.
55605         * lib/printf-frexp.c: Include fpucw.h.
55606         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55607         (FUNC): Use them.
55608         * lib/vasnprintf.c: Include fpucw.h.
55609         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55610         'long double' calculations.
55611         * tests/test-frexpl.c: Include fpucw.h.
55612         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55613         * tests/test-printf-frexpl.c: Include fpucw.h.
55614         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55615         * modules/frexpl (Depends-on): Add fpucw.
55616         * modules/printf-frexpl (Depends-on): Likewise.
55617         * modules/fprintf-posix (Depends-on): Likewise.
55618         * modules/snprintf-posix (Depends-on): Likewise.
55619         * modules/sprintf-posix (Depends-on): Likewise.
55620         * modules/vasnprintf-posix (Depends-on): Likewise.
55621         * modules/vasprintf-posix (Depends-on): Likewise.
55622         * modules/vfprintf-posix (Depends-on): Likewise.
55623         * modules/vsnprintf-posix (Depends-on): Likewise.
55624         * modules/vsprintf-posix (Depends-on): Likewise.
55625         * modules/frexpl-tests (Depends-on): Likewise.
55626         * modules/printf-frexpl-tests (Depends-on): Likewise.
55627
55628 2007-03-24  Bruno Haible  <bruno@clisp.org>
55629
55630         * lib/float+.h: New file.
55631         * lib/isnan.c: Include float+.h.
55632         (SIZE): New macro.
55633         (FUNC): Compare only SIZE bytes of the value.
55634         * lib/vasnprintf.c: Include float+.h.
55635         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
55636         SIZEOF_LDBL or SIZEOF_DBL bytes.
55637         * modules/isnan-nolibm (Files): Add lib/float+.h.
55638         * modules/isnanl-nolibm (Files): Add lib/float+.h.
55639         * modules/isnanl (Files): Add lib/float+.h.
55640         * modules/vasnprintf (Files): Add lib/float+.h.
55641
55642 2007-03-24  Bruno Haible  <bruno@clisp.org>
55643
55644         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
55645         include isnanl-nolibm.h.
55646
55647 2007-03-24  Bruno Haible  <bruno@clisp.org>
55648
55649         * tests/test-read-file.c (main): Don't produce spurious output for
55650         expected situations. Make the test fail if it encountered unexpected
55651         results.
55652
55653 2007-03-24  Bruno Haible  <bruno@clisp.org>
55654
55655         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
55656         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
55657
55658 2007-03-24  Bruno Haible  <bruno@clisp.org>
55659
55660         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
55661
55662 2007-03-24  Bruno Haible  <bruno@clisp.org>
55663
55664         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
55665         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
55666
55667         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
55668         * modules/utf8-ucs4: Turn into a symbolic link to module
55669         unistr/u8-mbtouc.
55670
55671         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
55672         utf8-ucs4-unsafe.
55673         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
55674         unistr/u8-mbtouc-unsafe.
55675
55676         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
55677         * modules/utf16-ucs4: Turn into a symbolic link to module
55678         unistr/u16-mbtouc.
55679
55680         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
55681         utf16-ucs4-unsafe.
55682         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
55683         unistr/u16-mbtouc-unsafe.
55684
55685         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
55686         * modules/ucs4-utf8: Turn into a symbolic link to module
55687         unistr/u8-ubtomb.
55688
55689         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
55690         * modules/ucs4-utf16: Turn into a symbolic link to module
55691         unistr/u16-ubtomb.
55692
55693 2007-03-24  Bruno Haible  <bruno@clisp.org>
55694
55695         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
55696         Enable the function only if HAVE_INLINE.
55697         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
55698         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55699         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
55700         Enable the function only if HAVE_INLINE.
55701         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
55702         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55703         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
55704         Enable the function only if HAVE_INLINE.
55705         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
55706         Enable the function only if HAVE_INLINE.
55707         * modules/utf8-ucs4: Update.
55708         * modules/utf8-ucs4-unsafe: Update.
55709         * modules/utf16-ucs4: Update.
55710         * modules/utf16-ucs4-unsafe: Update.
55711         * modules/ucs4-utf8: Update.
55712         * modules/ucs4-utf16: Update.
55713
55714 2007-03-24  Bruno Haible  <bruno@clisp.org>
55715
55716         * lib/utf8-ucs4.h: Remove file.
55717         * lib/utf8-ucs4-unsafe.h: Remove file.
55718         * lib/utf16-ucs4.h: Remove file.
55719         * lib/utf16-ucs4-unsafe.h: Remove file.
55720         * lib/ucs4-utf8.h: Remove file.
55721         * lib/ucs4-utf16.h: Remove file.
55722         * lib/unistr.h: Include their previous contents.
55723         * m4/utf-ucs4.m4: Remove file.
55724         * m4/ucs4-utf.m4: Remove file.
55725         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
55726         (Depends-on): Add unistr/base.
55727         (configure.ac): Remove gl_UTF_UCS4.
55728         (Makefile.am): Update.
55729         (Include): Change to unistr.h.
55730         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
55731         (Depends-on): Add unistr/base.
55732         (configure.ac): Remove gl_UTF_UCS4.
55733         (Makefile.am): Update.
55734         (Include): Change to unistr.h.
55735         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
55736         (Depends-on): Add unistr/base.
55737         (configure.ac): Remove gl_UTF_UCS4.
55738         (Makefile.am): Update.
55739         (Include): Change to unistr.h.
55740         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
55741         (Depends-on): Add unistr/base.
55742         (configure.ac): Remove gl_UTF_UCS4.
55743         (Makefile.am): Update.
55744         (Include): Change to unistr.h.
55745         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
55746         (Depends-on): Add unistr/base.
55747         (configure.ac): Remove gl_UCS4_UTF.
55748         (Makefile.am): Update.
55749         (Include): Change to unistr.h.
55750         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
55751         (Depends-on): Add unistr/base.
55752         (configure.ac): Remove gl_UCS4_UTF.
55753         (Makefile.am): Update.
55754         (Include): Change to unistr.h.
55755         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
55756         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
55757         utf8-ucs4-unsafe.h.
55758         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
55759         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
55760         utf16-ucs4-unsafe.h.
55761         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
55762         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
55763         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
55764         * lib/unistr/u8-strchr.c: Likewise.
55765         * lib/unistr/u8-strrchr.c: Likewise.
55766         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
55767         * lib/unistr/u16-strchr.c: Likewise.
55768         * lib/unistr/u16-strrchr.c: Likewise.
55769         * lib/striconveh.c: Update.
55770         * lib/linebreak.c: Update.
55771
55772 2007-03-24  Bruno Haible  <bruno@clisp.org>
55773
55774         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
55775         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
55776
55777 2007-03-22  Bruno Haible  <bruno@clisp.org>
55778
55779         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
55780
55781 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
55782
55783         * MODULES.html.sh (File system functions): New module write-any-file.
55784         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
55785         * m4/write-any-file.m4: New files.
55786
55787 2007-03-23  Eric Blake  <ebb9@byu.net>
55788
55789         * gnulib-tool: Rearrange space-tab sequences, since some editors
55790         like to eat them.
55791
55792 2007-03-23  Eric Blake  <ebb9@byu.net>
55793
55794         * lib/version-etc.c (version_etc_va): Update license wording to
55795         be more concise.  Recommended by Richard Stallman.
55796
55797 2007-03-22  Bruno Haible  <bruno@clisp.org>
55798
55799         * lib/poll.c (MSG_PEEK): New fallback definition.
55800
55801 2007-03-22  Bruno Haible  <bruno@clisp.org>
55802
55803         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
55804         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
55805         (main): Update.
55806         Fixes a compilation error on BeOS.
55807
55808 2007-03-22  Bruno Haible  <bruno@clisp.org>
55809
55810         * modules/frexpl-tests: New file.
55811         * tests/test-frexpl.c: New file.
55812
55813         * modules/frexpl: New file.
55814         * m4/frexpl.m4: New file.
55815         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
55816         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
55817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
55818         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
55819         (Depends-on): Add frexpl. Remove isnanl-nolibm.
55820         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
55821
55822 2007-03-22  Bruno Haible  <bruno@clisp.org>
55823
55824         * lib/frexpl.c: Share code with lib/frexp.c.
55825         * modules/mathl (Files): Add lib/frexp.c.
55826         (Depends-on): Add isnanl-nolibm.
55827
55828 2007-03-22  Bruno Haible  <bruno@clisp.org>
55829
55830         * modules/printf-frexp (Files): Add m4/frexp.m4.
55831         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
55832         only if the found frexp function actually works.
55833
55834 2007-03-22  Bruno Haible  <bruno@clisp.org>
55835
55836         * lib/frexp.c: Remove older implementation that uses divisions.
55837
55838 2007-03-21  Bruno Haible  <bruno@clisp.org>
55839
55840         * modules/frexp-tests: New file.
55841         * tests/test-frexp.c: New file.
55842
55843         * modules/frexp: New file.
55844         * lib/frexp.c: New file.
55845         * m4/frexp.m4: New file.
55846         * lib/math_.h (frexp): New declaration.
55847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
55848         REPLACE_FREXP.
55849         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
55850
55851 2007-03-21  Bruno Haible  <bruno@clisp.org>
55852
55853         * modules/isnanl-tests: New file.
55854         * tests/test-isnanl.c: New file.
55855
55856         * modules/isnanl: New file.
55857         * lib/isnanl.h: New file.
55858         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
55859         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
55860         gl_FUNC_ISNANL_WORKS.
55861         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
55862         New macros.
55863
55864 2007-03-21  Bruno Haible  <bruno@clisp.org>
55865
55866         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
55867         lib/isnanl.h.
55868         (Include): Update.
55869         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
55870         * lib/vasnprintf.c: Update.
55871         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
55872         tests/test-isnanl.h, remove tests/test-isnanl.c.
55873         (Makefile.am): Update.
55874         * tests/test-isnanl-nolibm.c: New file.
55875         * tests/test-isnanl.h: New file.
55876         * tests/test-isnanl.c: Remove file.
55877
55878 2007-03-21  Jim Meyering  <jim@meyering.net>
55879
55880         When trying to open ".", treat ESTALE like EACCES.
55881         * lib/savewd.c (savewd_save): Resort to forking not just upon
55882         failure with EACCES, but also when errno is ESTALE.
55883
55884 2007-03-20  Bruno Haible  <bruno@clisp.org>
55885
55886         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
55887         Needed on AIX 5.1. Reported by Matthew Woehlke.
55888
55889 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55890
55891         Suggestions by Bruno Haible:
55892         * lib/acl-internal.h: Include "gettext.h" rather than rolling
55893         our own.
55894         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
55895         * modules/acl (Depends-on): Add gettext.
55896
55897 2007-03-19  Bruno Haible  <bruno@clisp.org>
55898
55899         * modules/iconvme: Remove file.
55900         * lib/iconvme.h: Remove file.
55901         * lib/iconvme.c: Remove file.
55902         * m4/iconvme.m4: Remove file.
55903
55904 2007-03-19  Bruno Haible  <bruno@clisp.org>
55905
55906         * doc/relocatable-maint.texi: Break long shell script line.
55907         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55908
55909 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55910
55911         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
55912         handle file_has_acl.
55913         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
55914         * lib/acl.c: Move header inclusions and related macro defns into
55915         lib/acl-internal.h.
55916         (S_ISLNK): Remove defn, since that's now done for us.
55917         (file_has_acl): Move to lib/file-has-acl.c.
55918         Call acl_trivial if available.  This is the crucial part of the fix.
55919         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
55920         shared within the library.  Rewrite a bit, partly to make it compatible
55921         with the GNU coding style.
55922         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
55923         Remove unnecessary double-quotes.
55924         Don't test for acl_to_text; the build will catch that.
55925         Replace acl_entries if it doesn't exist and it is needed.
55926         Check for -lsec and acl_trivial (as used on Solaris 10).
55927         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
55928         lib/file-has-acl.c.
55929         (Depends-on): Add sys_stat, for S_ISLNK.
55930
55931 2007-03-19  Ben Pfaff  <blp@gnu.org>
55932
55933         * doc/gnulib.texi: Fix typos.
55934         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55935
55936 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55937
55938         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
55939         If size is zero here, buf must be zero.
55940
55941 2007-03-19  Simon Josefsson  <simon@josefsson.org>
55942
55943         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
55944         <bruno@clisp.org>.
55945
55946 2007-03-18  Bruno Haible  <bruno@clisp.org>
55947
55948         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
55949         Suggested by Eric Blake.
55950
55951 2007-03-18  Ben Pfaff  <blp@gnu.org>
55952
55953         * doc/relocatable.texi: Recommend using as prefix a directory
55954         that does not exist and will never be created.  Based on
55955         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
55956         and others.
55957
55958 2007-03-17  Bruno Haible  <bruno@clisp.org>
55959
55960         * lib/fchownat.c: Include lchown.h.
55961
55962 2007-03-17  Bruno Haible  <bruno@clisp.org>
55963
55964         Fix endless loop when the given allocated size was > INT_MAX.
55965         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
55966         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
55967         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
55968         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
55969         * lib/sprintf.c (sprintf): Likewise.
55970
55971 2007-03-17  Bruno Haible  <bruno@clisp.org>
55972
55973         * tests/test-argp-2.sh (func_compare): Output a context diff.
55974
55975 2007-03-17  Bruno Haible  <bruno@clisp.org>
55976
55977         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
55978         locale's decimal-point character.
55979
55980 2007-03-17  Bruno Haible  <bruno@clisp.org>
55981
55982         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
55983         before comparing it. Needed because on some platforms (e.g. x86) a
55984         'long double' occupies less bytes than sizeof (long double).
55985
55986 2007-03-17  Bruno Haible  <bruno@clisp.org>
55987
55988         * tests/test-crc.c (main): Make printf statements 64-bit clean.
55989         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
55990         * tests/test-getaddrinfo.c (simple): Likewise.
55991         * tests/test-read-file.c (main): Likewise.
55992
55993 2007-03-17  Bruno Haible  <bruno@clisp.org>
55994
55995         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
55996
55997 2007-03-17  Bruno Haible  <bruno@clisp.org>
55998
55999         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
56000         unused variable.
56001
56002 2007-03-17  Bruno Haible  <bruno@clisp.org>
56003
56004         * tests/test-c-strcasecmp.c: Include c-strcase.h.
56005         * tests/test-c-strncasecmp.c: Likewise.
56006
56007 2007-03-17  Bruno Haible  <bruno@clisp.org>
56008
56009         * modules/stdlib (Depends-on): Add unistd.
56010         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
56011         Needed for MacOS X 10.3.
56012
56013 2007-03-17  Bruno Haible  <bruno@clisp.org>
56014
56015         * lib/unistr/u-strdup.h: Include <stdlib.h>.
56016
56017 2007-03-17  Bruno Haible  <bruno@clisp.org>
56018
56019         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
56020
56021 2007-03-17  Bruno Haible  <bruno@clisp.org>
56022
56023         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
56024         to reflect files copied from gnulib (with or without modifications).
56025         Suggested by Jim Meyering.
56026
56027 2007-03-17  Eric Blake  <ebb9@byu.net>
56028
56029         * NEWS: Document stdlib change from 2007-02-18.
56030
56031 2007-03-17  Jim Meyering  <jim@meyering.net>
56032
56033         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
56034         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
56035         someone uses a name containing shell meta-characters.
56036         Reported by Alfred M. Szmidt.
56037
56038         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
56039
56040 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56041
56042         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
56043         and copy gettext configuration files only if configure.ac contains
56044         a use of AM_GNU_GETTEXT_VERSION.
56045
56046 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56047
56048         * build-aux/bootstrap (gnulib_name): New variable.
56049         (gnulib_tool_options): Use it.
56050
56051 2007-03-13  Simon Josefsson  <simon@josefsson.org>
56052
56053         * tests/test-des.c: Use new namespace.
56054
56055 2007-03-15  Bruno Haible  <bruno@clisp.org>
56056
56057         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
56058         Reported by James Youngman <jay@gnu.org>.
56059
56060 2007-03-15  Bruno Haible  <bruno@clisp.org>
56061
56062         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
56063         declared prototype. Needed with cc on OSF/1 5.1.
56064
56065 2007-03-15  Bruno Haible  <bruno@clisp.org>
56066
56067         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
56068         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
56069         (struct gl_list_implementation): Add dispose_fn argument to the
56070         'create_empty', 'create' methods.
56071         (struct gl_list_impl_base): Add field 'dispose_fn'.
56072         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
56073         argument.
56074         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
56075         dispose_fn argument.
56076         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
56077         dispose_fn on the dropped values.
56078         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
56079         dispose_fn argument.
56080         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
56081         dropped values.
56082         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
56083         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56084         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
56085         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56086         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
56087         argument.
56088         (gl_tree_list_free): Call dispose_fn on the dropped values.
56089         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
56090         the dropped values.
56091         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56092         Add dispose_fn argument.
56093         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
56094         Call dispose_fn on the dropped values.
56095         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
56096         Add dispose_fn argument.
56097         (gl_sublist_create): Initialize the 'dispose_fn' field.
56098         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
56099         * tests/test-array_list.c (main): Update.
56100         * tests/test-carray_list.c (main): Update.
56101         * tests/test-avltree_list.c (main): Update.
56102         * tests/test-rbtree_list.c (main): Update.
56103         * tests/test-avltreehash_list.c (main): Update.
56104         * tests/test-rbtreehash_list.c (main): Update.
56105         * tests/test-linked_list.c (main): Update.
56106         * tests/test-linkedhash_list.c (main): Update.
56107         * tests/test-array_oset.c (main): Update.
56108
56109 2007-03-15  Bruno Haible  <bruno@clisp.org>
56110
56111         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
56112         (gl_oset_create_empty): Add dispose_fn argument.
56113         (struct gl_oset_implementation): Add dispose_fn argument to
56114         'create_empty' method.
56115         (struct gl_oset_impl_base): Add dispose_fn field.
56116         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
56117         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
56118         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
56119         values.
56120         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
56121         (gl_tree_oset_free): Call dispose_fn on the dropped values.
56122         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56123         dropped value.
56124         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56125         dropped value.
56126         * tests/test-array_oset.c (main): Update.
56127         * tests/test-avltree_oset.c (main): Update.
56128         * tests/test-rbtree_oset.c (main): Update.
56129         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
56130
56131 2007-03-13  Bruno Haible  <bruno@clisp.org>
56132
56133         * tests/test-stdbool.c (i): Update after last patch.
56134
56135 2007-03-12  Bruno Haible  <bruno@clisp.org>
56136
56137         * lib/quotearg.c: Include <wctype.h> early, before the definition of
56138         the iswprint macro. Needed on Solaris 2.5.1.
56139
56140 2007-03-12  Bruno Haible  <bruno@clisp.org>
56141
56142         * tests/test-printf-frexp.c (main): Declare x as volatile.
56143
56144 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56145
56146         * doc/gnulib.texi (Build robot for gnulib): New section.
56147
56148 2007-03-12  Jim Meyering  <jim@meyering.net>
56149
56150         * build-aux/bootstrap: New file.
56151         * build-aux/bootstrap.conf: New file, from coreutils.
56152
56153 2007-03-11  Bruno Haible  <bruno@clisp.org>
56154
56155         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
56156
56157 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56158
56159         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
56160         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
56161         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
56162
56163 2007-03-11  Bruno Haible  <bruno@clisp.org>
56164
56165         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
56166         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
56167
56168 2007-03-11  Bruno Haible  <bruno@clisp.org>
56169
56170         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
56171         formula. Needed for SunPRO C 5.0.
56172
56173 2007-03-11  Bruno Haible  <bruno@clisp.org>
56174
56175         * modules/long-options (Depends-on): Add getopt.
56176
56177 2007-03-11  Bruno Haible  <bruno@clisp.org>
56178
56179         * modules/modechange (Depends-on): Add stdbool.
56180
56181 2007-03-11  Bruno Haible  <bruno@clisp.org>
56182
56183         * modules/i-ring (Depends-on): Add stdbool.
56184
56185 2007-03-11  Bruno Haible  <bruno@clisp.org>
56186
56187         * modules/gc-des (Depends-on): Add stdbool.
56188
56189 2007-03-11  Bruno Haible  <bruno@clisp.org>
56190
56191         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
56192
56193 2007-03-11  Bruno Haible  <bruno@clisp.org>
56194
56195         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
56196
56197 2007-03-11  Bruno Haible  <bruno@clisp.org>
56198
56199         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
56200
56201 2007-03-11  Bruno Haible  <bruno@clisp.org>
56202
56203         * lib/vasnprintf.c (sprintf): Undefine.
56204
56205 2007-03-11  Bruno Haible  <bruno@clisp.org>
56206
56207         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
56208         initializers in SunPRO C and Compaq C compilers.
56209
56210 2007-03-11  Bruno Haible  <bruno@clisp.org>
56211
56212         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
56213         decrementing code ANSI C compliant.
56214
56215 2007-03-11  Bruno Haible  <bruno@clisp.org>
56216
56217         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
56218         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
56219
56220 2007-03-11  Bruno Haible  <bruno@clisp.org>
56221
56222         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
56223         <stdbool.h> substitute doesn't pass.
56224
56225 2007-03-11  Bruno Haible  <bruno@clisp.org>
56226
56227         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
56228
56229 2007-03-11  Bruno Haible  <bruno@clisp.org>
56230
56231         * gnulib-tool (func_create_megatestdir): Create also an autobuild
56232         script, for submission to autobuild.josefsson.org.
56233
56234 2007-03-10  Bruno Haible  <bruno@clisp.org>
56235
56236         * modules/canonicalize-lgpl-tests: New file.
56237         * tests/test-canonicalize-lgpl.sh: New file.
56238         * tests/test-canonicalize-lgpl.c: New file.
56239
56240         * modules/c-strcase-tests: New file.
56241         * tests/test-c-strcase.sh: New file.
56242         * tests/test-c-strcasecmp.c: New file.
56243         * tests/test-c-strncasecmp.c: New file.
56244
56245         * modules/atexit-tests: New file.
56246         * tests/test-atexit.sh: New file.
56247         * tests/test-atexit.c: New file.
56248
56249 2007-03-10  Bruno Haible  <bruno@clisp.org>
56250
56251         * tests/test-binary-io.sh: Use temporary filenames that are not so
56252         likely to clash with those of other tests (in a parallel make).
56253         * tests/test-binary-io.c: Likewise.
56254
56255 2007-03-10  Bruno Haible  <bruno@clisp.org>
56256
56257         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56258         fallback; use #error instead.
56259         Suggested by Simon Josefsson.
56260
56261 2007-03-10  Bruno Haible  <bruno@clisp.org>
56262
56263         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56264         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56265         first and the last.
56266
56267 2007-03-10  Bruno Haible  <bruno@clisp.org>
56268
56269         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56270
56271 2007-03-10  Bruno Haible  <bruno@clisp.org>
56272
56273         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56274         "make distcheck".
56275         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56276         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56277         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56278
56279 2007-03-10  Bruno Haible  <bruno@clisp.org>
56280
56281         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56282         variable.
56283         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56284         variable.
56285
56286 2007-03-09  Eric Blake  <ebb9@byu.net>
56287         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56288
56289         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56290         types are not being provided by gnulib.
56291         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56292         types are supported.
56293
56294 2007-03-10  Bruno Haible  <bruno@clisp.org>
56295
56296         * lib/stdio_.h (__attribute__): New macro.
56297         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56298         vsprintf): Specify __attribute__ __format__ for GCC.
56299         Suggested by Eric Blake.
56300
56301 2007-03-09  Bruno Haible  <bruno@clisp.org>
56302
56303         * modules/printf-posix-tests: New file.
56304         * tests/test-printf-posix.sh: New file.
56305         * tests/test-printf-posix.c: New file.
56306
56307         * modules/printf-posix: New file.
56308         * lib/printf.c: New file.
56309         * m4/printf-posix-rpl.m4: New file.
56310         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56311         REPLACE_PRINTF.
56312         * lib/stdio_.h (printf): New declaration.
56313         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56314         ____strfmon____): New macros.
56315         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56316         REPLACE_PRINTF.
56317
56318 2007-03-09  Bruno Haible  <bruno@clisp.org>
56319
56320         * tests/test-vasnprintf-posix2.sh: New file.
56321         * tests/test-vasnprintf-posix2.c: New file.
56322         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56323         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56324         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56325
56326         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56327         a locale dependent decimal point, rather than always '.'.
56328
56329 2007-03-09  Eric Blake  <ebb9@byu.net>
56330
56331         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56332         spite of platforms like Tandem/NSK that define it to -1.
56333
56334 2007-03-08  Bruno Haible  <bruno@clisp.org>
56335
56336         * modules/vprintf-posix-tests: New file.
56337         * tests/test-vprintf-posix.sh: New file.
56338         * tests/test-vprintf-posix.c: New file.
56339         * tests/test-printf-posix.h: New file.
56340
56341         * modules/vprintf-posix: New file.
56342         * lib/vprintf.c: New file.
56343         * m4/vprintf-posix.m4: New file.
56344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56345         REPLACE_VPRINTF.
56346         * lib/stdio_.h (vprintf): New declaration.
56347         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56348         REPLACE_VPRINTF.
56349
56350 2007-03-08  Bruno Haible  <bruno@clisp.org>
56351
56352         * modules/fprintf-posix-tests: New file.
56353         * tests/test-fprintf-posix.sh: New file.
56354         * tests/test-fprintf-posix.c: New file.
56355
56356         * modules/fprintf-posix: New file.
56357         * lib/fprintf.c: New file.
56358         * m4/fprintf-posix.m4: New file.
56359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56360         REPLACE_FPRINTF.
56361         * lib/stdio_.h (fprintf): New declaration.
56362         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56363         REPLACE_FPRINTF.
56364
56365 2007-03-08  Bruno Haible  <bruno@clisp.org>
56366
56367         * modules/vfprintf-posix-tests: New file.
56368         * tests/test-vfprintf-posix.sh: New file.
56369         * tests/test-vfprintf-posix.c: New file.
56370         * tests/test-fprintf-posix.h: New file.
56371         * tests/test-fprintf-posix.out: New file.
56372
56373         * modules/vfprintf-posix: New file.
56374         * lib/vfprintf.c: New file.
56375         * m4/vfprintf-posix.m4: New file.
56376         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56377         REPLACE_VFPRINTF.
56378         * lib/stdio_.h (vfprintf): New declaration.
56379         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56380         REPLACE_VFPRINTF.
56381
56382 2007-03-08  Bruno Haible  <bruno@clisp.org>
56383
56384         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56385
56386 2007-03-08  Bruno Haible  <bruno@clisp.org>
56387
56388         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56389         instead of 'expr' invocations.
56390         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56391         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56392         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56393         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56394         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56395         Suggested by Paul Eggert.
56396
56397 2007-03-08  Bruno Haible  <bruno@clisp.org>
56398
56399         * modules/fseterr-tests: New file.
56400         * tests/test-fseterr.c: New file.
56401
56402         * modules/fseterr: New file.
56403         * lib/fseterr.h: New file.
56404         * lib/fseterr.c: New file.
56405
56406 2007-03-08  Bruno Haible  <bruno@clisp.org>
56407
56408         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56409         * lib/getopt_.h: Likewise.
56410         * lib/mbswidth.h: Likewise.
56411         * lib/setenv.h: Likewise.
56412         * lib/vasnprintf.h: Likewise.
56413         * lib/vasprintf.h: Likewise.
56414         * lib/verror.h: Likewise.
56415         * lib/xsetenv.h: Likewise.
56416         * lib/xvasprintf.h: Likewise.
56417
56418 2007-03-08  Jim Meyering  <jim@meyering.net>
56419
56420         * users.txt: Add parted.
56421
56422         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56423
56424 2007-03-07  Bruno Haible  <bruno@clisp.org>
56425
56426         * m4/printf.m4: Make the shell script snippets copy&pastable.
56427
56428 2007-03-02  Bruno Haible  <bruno@clisp.org>
56429
56430         * lib/netinet_in_.h: New file.
56431         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56432         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56433         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56434         (Depends-on): Add absolute-header.
56435         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56436         into netinet/in.h.
56437
56438 2007-03-03  Bruno Haible  <bruno@clisp.org>
56439
56440         * lib/sys_select_.h: New file.
56441         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56442         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56443         * modules/sys_select (Files): Add lib/sys_select_.h.
56444         (Depends-on): Add absolute-header.
56445         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56446         into sys/select.h.
56447
56448 2007-03-02  Bruno Haible  <bruno@clisp.org>
56449
56450         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56451         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56452         values.
56453         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56454         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56455         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56456         * modules/sys_socket (Depends-on): Add absolute-header.
56457         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56458         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56459         (Include): Remove requirement of inclusion of <sys/types.h>.
56460
56461 2007-03-02  Bruno Haible  <bruno@clisp.org>
56462
56463         * lib/byteswap_.h (bswap_32): Fix formula.
56464
56465 2007-03-06  Bruno Haible  <bruno@clisp.org>
56466
56467         * modules/sprintf-posix-tests: New file.
56468         * tests/test-sprintf-posix.c: New file.
56469
56470         * modules/sprintf-posix: New file.
56471         * lib/sprintf.c: New file.
56472         * m4/sprintf-posix.m4: New file.
56473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
56474         REPLACE_SPRINTF.
56475         * lib/stdio_.h (sprintf): New declaration.
56476         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
56477         REPLACE_SPRINTF.
56478
56479 2007-03-06  Bruno Haible  <bruno@clisp.org>
56480
56481         * modules/vsprintf-posix-tests: New file.
56482         * tests/test-vsprintf-posix.c: New file.
56483         * tests/test-sprintf-posix.h: New file.
56484
56485         * modules/vsprintf-posix: New file.
56486         * lib/vsprintf.c: New file.
56487         * m4/vsprintf-posix.m4: New file.
56488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
56489         REPLACE_VSPRINTF.
56490         * lib/stdio_.h (vsprintf): New declaration.
56491         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
56492         REPLACE_VSPRINTF.
56493
56494 2007-03-06  Bruno Haible  <bruno@clisp.org>
56495
56496         * modules/vsnprintf (Depend-on): Remove minmax.
56497
56498 2007-03-06  Bruno Haible  <bruno@clisp.org>
56499
56500         * modules/snprintf-posix-tests: New file.
56501         * tests/test-snprintf-posix.c: New file.
56502
56503         * modules/snprintf-posix: New file.
56504         * m4/snprintf-posix.m4: New file.
56505         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
56506         gl_FUNC_SNPRINTF.
56507         (gl_FUNC_SNPRINTF): Invoke it.
56508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
56509         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
56510         is set.
56511         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
56512
56513 2007-03-06  Bruno Haible  <bruno@clisp.org>
56514
56515         * modules/vsnprintf-posix-tests: New file.
56516         * tests/test-vsnprintf-posix.c: New file.
56517         * tests/test-snprintf-posix.h: New file.
56518
56519         * modules/vsnprintf-posix: New file.
56520         * m4/vsnprintf-posix.m4: New file.
56521         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
56522         gl_FUNC_VSNPRINTF.
56523         (gl_FUNC_VSNPRINTF): Invoke it.
56524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
56525         * lib/stdio_.h (vsnprintf): Define as a replacement if
56526         REPLACE_VSNPRINTF is set.
56527         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
56528
56529 2007-03-06  Bruno Haible  <bruno@clisp.org>
56530
56531         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
56532         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
56533
56534 2007-03-06  Bruno Haible  <bruno@clisp.org>
56535
56536         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
56537         (asinl): Declare also if HAVE_DECL_ASINL is set.
56538         (atanl): Declare also if HAVE_DECL_ATANL is set.
56539         (ceill): Declare also if HAVE_DECL_CEILL is set.
56540         (cosl): Declare also if HAVE_DECL_COSL is set.
56541         (expl): Declare also if HAVE_DECL_EXPL is set.
56542         (floorl): Declare also if HAVE_DECL_FLOORL is set.
56543         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
56544         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
56545         (logl): Declare also if HAVE_DECL_LOGL is set.
56546         (sinl): Declare also if HAVE_DECL_SINL is set.
56547         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
56548         (tanl): Declare also if HAVE_DECL_TANL is set.
56549         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
56550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
56551         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
56552         declaration of frexpl, ldexpl.
56553         * modules/printf-frexpl (Depends-on): Add math.
56554         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
56555
56556 2007-03-05  Bruno Haible  <bruno@clisp.org>
56557
56558         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
56559         frexpl and ldexpl are declared.
56560         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
56561
56562 2007-03-05  Bruno Haible  <bruno@clisp.org>
56563
56564         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56565         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56566
56567 2007-03-05  Bruno Haible  <bruno@clisp.org>
56568
56569         * lib/stdio_.h: Include <stddef.h>.
56570
56571 2007-03-05  Bruno Haible  <bruno@clisp.org>
56572
56573         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56574
56575 2007-03-05  Bruno Haible  <bruno@clisp.org>
56576
56577         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56578         NetBSD 4, from Ralf Wildenhues.
56579
56580 2007-03-04  Bruno Haible  <bruno@clisp.org>
56581
56582         * lib/vasprintf.h: Update #if logic for the case when the functions
56583         exist but are overridden.
56584
56585 2007-03-04  Bruno Haible  <bruno@clisp.org>
56586
56587         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56588         implementations: glibc-2.4 and MacOS X 10.3.
56589         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56590         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56591         * tests/test-vasprintf-posix.c (test_function): Likewise.
56592
56593 2007-03-04  Bruno Haible  <bruno@clisp.org>
56594
56595         * modules/vasprintf-posix-tests: New file.
56596         * tests/test-vasprintf-posix.c: New file.
56597
56598         * modules/vasprintf-posix: New file.
56599         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56600         defined.
56601         * m4/vasprintf-posix.m4: New file.
56602         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56603         gl_FUNC_VASPRINTF.
56604         (gl_FUNC_VASPRINTF): Invoke it.
56605         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56606         here.
56607         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56608
56609 2007-03-04  Bruno Haible  <bruno@clisp.org>
56610
56611         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56612         REPLACE_GETTIMEOFDAY.
56613         * modules/sys_time (Makefile.am): Likewise.
56614         * m4/sys_time_h.m4: Likewise.
56615         * m4/gettimeofday.m4: Likewise.
56616
56617 2007-03-04  Bruno Haible  <bruno@clisp.org>
56618
56619         * modules/vasnprintf-posix-tests: New file.
56620         * tests/test-vasnprintf-posix.c: New file.
56621
56622         * modules/vasnprintf-posix: New file.
56623         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56624         printf-frexpl.h.
56625         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56626         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56627         REPLACE_VASNPRINTF is defined.
56628         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56629         gl_FUNC_VASNPRINTF.
56630         (gl_FUNC_VASNPRINTF): Invoke it.
56631         * m4/vasnprintf-posix.m4: New file.
56632         * m4/printf.m4: New file.
56633
56634 2007-03-04  Bruno Haible  <bruno@clisp.org>
56635
56636         Compile progreloc.c only if --enable-relocatable is specified.
56637         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
56638         if --enable-relocatable was specified.
56639         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
56640         lib_SOURCES.
56641
56642 2007-03-04  Jim Meyering  <jim@meyering.net>
56643
56644         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
56645         Use it consistently, rather than enumerating errno constants.
56646
56647 2007-03-04  Bruno Haible  <bruno@clisp.org>
56648
56649         * modules/xvasprintf-tests: New file.
56650         * tests/test-xvasprintf.c: New file.
56651
56652         * modules/vasprintf-tests: New file.
56653         * tests/test-vasprintf.c: New file.
56654
56655         * modules/vasnprintf-tests: New file.
56656         * tests/test-vasnprintf.c: New file.
56657
56658         * modules/vsnprintf-tests: New file.
56659         * tests/test-vsnprintf.c: New file.
56660
56661         * modules/snprintf-tests: New file.
56662         * tests/test-snprintf.c: New file.
56663
56664 2007-03-04  Bruno Haible  <bruno@clisp.org>
56665
56666         Compile relocatable.c only if --enable-relocatable is specified.
56667         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
56668         gl_RELOCATABLE_LIBRARY.
56669         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
56670         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
56671         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
56672         gl_RELOCATABLE_LIBRARY.
56673         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
56674         (Makefile.am): Remove lib_SOURCES.
56675         * modules/relocatable-lib-lgpl (configure.ac): Invoke
56676         gl_RELOCATABLE_LIBRARY.
56677         (Makefile.am): Remove lib_SOURCES.
56678         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
56679         always.
56680         * modules/relocatable-prog-wrapper (configure.ac): Invoke
56681         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
56682
56683 2007-03-04  Bruno Haible  <bruno@clisp.org>
56684
56685         * modules/argmatch-tests: New file.
56686         * tests/test-argmatch.c: New file.
56687
56688         * tests/test-allocsa.c (main): Halve the number of loop runs.
56689
56690         * modules/alloca-opt-tests: New file.
56691         * tests/test-alloca-opt.c: New file.
56692
56693 2007-03-04  Jim Meyering  <jim@meyering.net>
56694
56695         Work around difference between Linux ACLs and Solaris 10 ZFS.
56696         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
56697         for EINVAL.
56698
56699 2007-03-03  Bruno Haible  <bruno@clisp.org>
56700
56701         * modules/relocatable-prog (Depends-on): Add back progreloc's
56702         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
56703
56704 2007-03-03  Bruno Haible  <bruno@clisp.org>
56705
56706         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
56707         * modules/relocatable-lib: New file.
56708
56709 2007-03-03  Bruno Haible  <bruno@clisp.org>
56710
56711         * modules/relocatable-prog: Renamed from modules/relocatable.
56712         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
56713
56714 2007-03-03  Bruno Haible  <bruno@clisp.org>
56715
56716         * modules/relocatable-script (Files): Add doc/relocatable.texi,
56717         m4/relocatable-lib.m4.
56718         (Depends-on): Remove 'relocatable'.
56719         (configure.ac): Add gl_RELOCATABLE_NOP.
56720
56721 2007-03-03  Bruno Haible  <bruno@clisp.org>
56722
56723         * modules/relocatable-prog-wrapper: New file.
56724         * modules/relocatable (Depends-on): Add it. Remove all other
56725         dependencies except progname.
56726         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
56727
56728         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
56729         (gl_FUNC_STRERROR): Nop.
56730         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
56731
56732         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
56733         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
56734
56735         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
56736         (gl_FUNC_READLINK): Update.
56737
56738         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
56739
56740 2007-03-03  Bruno Haible  <bruno@clisp.org>
56741
56742         * lib/xreadlink.c: Include <unistd.h> unconditionally.
56743         * modules/xreadlink (Depends-on): Add unistd.
56744         * modules/xreadlink-with-size (Depends-on): Likewise.
56745
56746 2007-03-03  Bruno Haible  <bruno@clisp.org>
56747
56748         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
56749         extracted from gt_FUNC_SETENV.
56750         (gt_FUNC_SETENV): Remove macro.
56751         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
56752         remove gt_FUNC_SETENV.
56753
56754 2007-03-03  Bruno Haible  <bruno@clisp.org>
56755
56756         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
56757         ENABLE_RELOCATABLE here.
56758         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
56759
56760 2007-03-03  Bruno Haible  <bruno@clisp.org>
56761
56762         * modules/rbtreehash-list-tests (Depends-on): Add progname.
56763         * tests/test-rbtreehash_list.c: Include progname.h.
56764         (main): Call set_program_name.
56765
56766         * modules/rbtree-oset-tests (Depends-on): Add progname.
56767         * tests/test-rbtree_oset.c: Include progname.h.
56768         (main): Call set_program_name.
56769
56770         * modules/rbtree-list-tests (Depends-on): Add progname.
56771         * tests/test-rbtree_list.c: Include progname.h.
56772         (main): Call set_program_name.
56773
56774         * modules/linked-list-tests (Depends-on): Add progname.
56775         * tests/test-linked_list.c: Include progname.h.
56776         (main): Call set_program_name.
56777
56778 2007-03-03  Bruno Haible  <bruno@clisp.org>
56779
56780         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
56781         All uses of __restrict changed to _Restrict_.
56782         * lib/glob_.h (__restrict): Remove macro.
56783
56784 2007-03-02  Bruno Haible  <bruno@clisp.org>
56785
56786         * modules/gettext (configure.ac): Require gettext infrastructure
56787         from version 0.16.1.
56788
56789 2007-03-02  Bruno Haible  <bruno@clisp.org>
56790
56791         * modules/linkedhash-list-tests (Depends-on): Add progname.
56792         * tests/test-linkedhash_list.c: Include progname.h.
56793         (main): Call set_program_name.
56794
56795         * modules/carray-list-tests (Depends-on): Add progname.
56796         * tests/test-carray_list.c: Include progname.h.
56797         (main): Call set_program_name.
56798
56799         * modules/avltreehash-list-tests (Depends-on): Add progname.
56800         * tests/test-avltreehash_list.c: Include progname.h.
56801         (main): Call set_program_name.
56802
56803         * modules/avltree-oset-tests (Depends-on): Add progname.
56804         * tests/test-avltree_oset.c: Include progname.h.
56805         (main): Call set_program_name.
56806
56807         * modules/avltree-list-tests (Depends-on): Add progname.
56808         * tests/test-avltree_list.c: Include progname.h.
56809         (main): Call set_program_name.
56810
56811         * modules/array-oset-tests (Depends-on): Add progname.
56812         * tests/test-array_oset.c: Include progname.h.
56813         (main): Call set_program_name.
56814
56815         * modules/array-list-tests (Depends-on): Add progname.
56816         * tests/test-array_list.c: Include progname.h.
56817         (main): Call set_program_name.
56818
56819         * modules/argp-tests (Depends-on): Add progname.
56820         * tests/test-argp.c: Include argp.h first. Include progname.h.
56821         (main): Call set_program_name.
56822
56823 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
56824
56825         * doc/gnulib-tool.texi (Initial import): Reword description of
56826         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
56827         limited effect even if defined after the first system include.
56828
56829 2007-03-01  Bruno Haible  <bruno@clisp.org>
56830
56831         * build-aux/config.libpath: Update to libtool-1.5.22.
56832         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56833
56834 2007-03-01  Bruno Haible  <bruno@clisp.org>
56835
56836         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
56837         foo_CFLAGS.
56838         Reported by Ralf Wildenhues.
56839
56840 2007-03-01  Bruno Haible  <bruno@clisp.org>
56841
56842         * build-aux/install-reloc: Remove object files left over by some
56843         compilers.
56844         Reported by Ralf Wildenhues.
56845
56846 2007-03-01  Bruno Haible  <bruno@clisp.org>
56847
56848         * build-aux/install-reloc: Break long lines.
56849
56850 2007-03-01  Bruno Haible  <bruno@clisp.org>
56851
56852         * doc/relocatable.texi: Document that it may not work on OpenBSD.
56853         Reported by Ralf Wildenhues.
56854
56855 2007-03-01  Bruno Haible  <bruno@clisp.org>
56856
56857         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
56858         include ordering constraints.
56859
56860 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56861
56862         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
56863         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
56864         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
56865         as another example.
56866         * lib/time_.h: Fix misspelling.
56867         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56868         Require gl_HEADER_TIME_H_DEFAULTS.
56869         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
56870         * m4/time_r.m4 (gl_TIME_R): Likewise.
56871         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
56872
56873 2007-03-01  Bruno Haible  <bruno@clisp.org>
56874
56875         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
56876         * m4/utimens.m4 (gl_UTIMENS): Likewise.
56877
56878 2007-03-01  Jim Meyering  <jim@meyering.net>
56879
56880         * modules/xreadlink (Maintainer): Add my name.
56881         * modules/xreadlink-with-size (Depends-on): Alphabetize.
56882
56883 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
56884             Bruno Haible  <bruno@clisp.org>
56885
56886         * build-aux/install-reloc: Compile also c-ctype.c.
56887         * build-aux/relocatable.sh.in: New file.
56888         * doc/relocatable.texi: New file.
56889         * doc/relocatable-maint.texi: New file.
56890         * doc/gnulib.texi: Include relocatable-maint.texi.
56891         * lib/progreloc.c: Include unistd.h unconditionally.
56892         * lib/relocwrapper.c: Include unistd.h unconditionally.
56893         Include c-ctype.h.
56894         (add_dotbin): Use c_tolower.
56895         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
56896         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
56897         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
56898         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
56899         to m4/relocatable-lib.m4.
56900         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
56901         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
56902         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
56903         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
56904         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
56905         * modules/relocatable: New file.
56906         * modules/relocatable-lib: New file.
56907         * modules/relocatable-script: New file.
56908
56909 2007-02-28  Bruno Haible  <bruno@clisp.org>
56910
56911         Import --enable-relocatable infrastructure.
56912         * build-aux/config.libpath: New file, from GNU gettext.
56913         * build-aux/install-reloc: New file, from GNU gettext.
56914         * build-aux/reloc-ldflags: New file, from GNU gettext.
56915         * lib/relocatable.h: New file, from GNU gettext.
56916         * lib/relocatable.c: New file, from GNU gettext.
56917         * lib/relocwrapper.c: New file, from GNU gettext.
56918         * m4/relocatable.m4: New file, from GNU gettext.
56919
56920 2007-02-28  Bruno Haible  <bruno@clisp.org>
56921
56922         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
56923
56924         * modules/xreadlink: New file, from GNU gettext with modifications.
56925         * lib/xreadlink.c: New file, from GNU gettext.
56926         * lib/xreadlink.h: Add comments.
56927         (xreadlink): New declaration.
56928
56929         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
56930         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
56931         lib/xreadlink-with-size.c.
56932         (configure.ac): Remove gl_XREADLINK invocation.
56933         (Makefile.am): Augment lib_SOURCES.
56934         * m4/xreadlink.m4: Remove file.
56935         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
56936         (xreadlink_with_size): Renamed from xreadink.
56937         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
56938         * modules/canonicalize (Depends-on): Replace xreadlink with
56939         xreadlink-with-size.
56940         * lib/canonicalize.c (canonicalize_filename_mode): Update.
56941
56942 2007-02-25  Jim Meyering  <jim@meyering.net>
56943
56944         * build-aux/announce-gen: When complaining about excess arguments,
56945         list them.
56946
56947 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56948
56949         * README: Document signed integer overflow situation more
56950         accurately.
56951
56952 2007-02-25  Bruno Haible  <bruno@clisp.org>
56953
56954         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
56955         'a' or 'A' conversion.
56956
56957 2007-02-25  Bruno Haible  <bruno@clisp.org>
56958
56959         * modules/filename: Renamed from modules/pathname.
56960         (Files): Replace lib/pathname.h with lib/filename.h. Replace
56961         lib/concatpath.c with lib/concat-filename.c.
56962         (Makefile.am): Update.
56963         (Include): Replace pathname.h with filename.h.
56964         * lib/filename.h: Renamed from lib/pathname.h.
56965         (concatenated_filename): Renamed from concatenated_pathname.
56966         * lib/concat-filename.c: Renamed from lib/concatpath.c.
56967         (concatenated_filename): Renamed from concatenated_pathname.
56968         * lib/findprog.c: Include filename.h instead of pathname.h.
56969         (find_in_path): Update.
56970         * lib/javacomp.c: Include filename.h instead of pathname.h.
56971         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56972         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56973         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56974         is_oldgcj_14_13_usable, is_javac_usable): Update.
56975         * lib/javaexec.c: Include filename.h instead of pathname.h.
56976         (execute_java_class): Update.
56977         * modules/findprog: Update.
56978         * modules/javacomp: Update.
56979         * modules/javaexec: Update.
56980         * MODULES.html.sh (File system functions): Add 'filename', remove
56981         'pathname'.
56982
56983 2007-02-25  Bruno Haible  <bruno@clisp.org>
56984
56985         * modules/printf-frexpl-tests: New file.
56986         * tests/test-printf-frexpl.c: New file.
56987
56988         * modules/printf-frexpl: New file.
56989         * lib/printf-frexpl.h: New file.
56990         * lib/printf-frexpl.c: New file.
56991         * m4/printf-frexpl.m4: New file.
56992
56993 2007-02-25  Bruno Haible  <bruno@clisp.org>
56994
56995         * modules/printf-frexp-tests: New file.
56996         * tests/test-printf-frexp.c: New file.
56997
56998         * modules/printf-frexp: New file.
56999         * lib/printf-frexp.h: New file.
57000         * lib/printf-frexp.c: New file.
57001         * m4/printf-frexp.m4: New file.
57002
57003 2007-02-25  Bruno Haible  <bruno@clisp.org>
57004
57005         Assume automake >= 1.10 for the tests.
57006         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
57007         * modules/arctwo-tests: Likewise.
57008         * modules/argp-tests: Likewise.
57009         * modules/avltree-list-tests: Likewise.
57010         * modules/avltree-oset-tests: Likewise.
57011         * modules/avltreehash-list-tests: Likewise.
57012         * modules/carray-list-tests: Likewise.
57013         * modules/crc-tests: Likewise.
57014         * modules/des-tests: Likewise.
57015         * modules/gc-arcfour-tests: Likewise.
57016         * modules/gc-arctwo-tests: Likewise.
57017         * modules/gc-des-tests: Likewise.
57018         * modules/gc-hmac-md5-tests: Likewise.
57019         * modules/gc-hmac-sha1-tests: Likewise.
57020         * modules/gc-md2-tests: Likewise.
57021         * modules/gc-md4-tests: Likewise.
57022         * modules/gc-md5-tests: Likewise.
57023         * modules/gc-pbkdf2-sha1-tests: Likewise.
57024         * modules/gc-rijndael-tests: Likewise.
57025         * modules/gc-sha1-tests: Likewise.
57026         * modules/gc-tests: Likewise.
57027         * modules/getaddrinfo-tests: Likewise.
57028         * modules/hmac-md5-tests: Likewise.
57029         * modules/hmac-sha1-tests: Likewise.
57030         * modules/linked-list-tests: Likewise.
57031         * modules/linkedhash-list-tests: Likewise.
57032         * modules/lock-tests: Likewise.
57033         * modules/md2-tests: Likewise.
57034         * modules/md4-tests: Likewise.
57035         * modules/md5-tests: Likewise.
57036         * modules/rbtree-list-tests: Likewise.
57037         * modules/rbtree-oset-tests: Likewise.
57038         * modules/rbtreehash-list-tests: Likewise.
57039         * modules/read-file-tests: Likewise.
57040         * modules/rijndael-tests: Likewise.
57041         * modules/stdint-tests: Likewise.
57042         * modules/tls-tests: Likewise.
57043
57044 2007-02-24  Bruno Haible  <bruno@clisp.org>
57045
57046         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
57047         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
57048         function; instead check whether isnan with a double argument links.
57049         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
57050         function; instead check whether isnan with a 'long double' argument
57051         links.
57052         Reported by Eric Blake <ebb9@byu.net>.
57053
57054 2007-02-24  Bruno Haible  <bruno@clisp.org>
57055
57056         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
57057         defined.
57058         * lib/isnanl.c: Remove all code. Just include isnan.c.
57059         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
57060
57061 2007-02-25  Jim Meyering  <jim@meyering.net>
57062
57063         Avoid conflicting types for 'unsetenv' on FreeBSD.
57064         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
57065         conflicting with FreeBSD's (5.0 and 6.1) function declaration
57066         in stdlib.h.
57067
57068 2007-02-24  Bruno Haible  <bruno@clisp.org>
57069
57070         * modules/isnanl-nolibm-tests: New file.
57071         * tests/test-isnanl.c: New file.
57072
57073         * modules/isnanl-nolibm: New file.
57074         * lib/isnanl.h: New file.
57075         * lib/isnanl.c: New file.
57076         * m4/isnanl.m4: New file.
57077
57078 2007-02-24  Bruno Haible  <bruno@clisp.org>
57079
57080         * modules/isnan-nolibm-tests: New file.
57081         * tests/test-isnan.c: New file.
57082
57083         * modules/isnan-nolibm: New file.
57084         * lib/isnan.h: New file.
57085         * lib/isnan.c: New file.
57086         * m4/isnan.m4: New file.
57087
57088 2007-02-24  Bruno Haible  <bruno@clisp.org>
57089
57090         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
57091         assume that an exponent fits in 20 bits.
57092
57093 2007-02-24  Jim Meyering  <jim@meyering.net>
57094
57095         * m4/regex.m4: Update the description of the configure-time option,
57096         --without-included-regex, to state accurately what the defaults are,
57097         and perhaps to give people an idea why using this option is risky.
57098
57099 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57100
57101         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
57102         loops on small arguments.  This attempts to avoid the problem
57103         Bruno Haible reported for AIX 4.3.2 in
57104         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
57105
57106 2007-02-23  Bruno Haible  <bruno@clisp.org>
57107
57108         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
57109         Needed for help2man.
57110
57111 2007-02-23  Karl Berry  <karl@gnu.org>
57112
57113         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
57114         exists, foo.h should be cvs-ignored, not committed.
57115
57116 2007-02-23  Eric Blake  <ebb9@byu.net>
57117
57118         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
57119         * lib/stat-time.h (includes): Likewise.
57120         * lib/utimecmp.c (includes): Likewise.
57121         * lib/utimens.h (includes): Likewise.
57122         * lib/getdate.y (includes): Also include "timespec.h" for use
57123         internal to the module.
57124         * modules/utimens (Depends-on): Revert yesterday's patch.
57125         * modules/nanosleep (Depends-on): Add missing dependency.
57126
57127 2007-02-22  Bruno Haible  <bruno@clisp.org>
57128
57129         * lib/glob.c: Don't include getlogin_r.h.
57130
57131 2007-02-22  Jim Meyering  <jim@meyering.net>
57132
57133         * modules/utimens (Depends-on): Add timespec, required for
57134         utimens.h's inclusion of timespec.h.
57135
57136 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
57137
57138         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
57139         long unreadable paths in GNU/Linux.  Problem reported by Andreas
57140         Schwab in
57141         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
57142         I'll try to think of a better way to fix the Solaris problem.
57143
57144         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
57145         like glibc; on Solaris 10, it fails with errno == EINVAL.
57146         POSIX says the behavior is unspecified if the first argument is NULL,
57147         so play it safe and never pass NULL to the system getcwd.
57148
57149 2007-02-21  Jim Meyering  <jim@meyering.net>
57150
57151         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
57152         of gettimeofday.  It would conflict with the one now always
57153         provided via sys_time_.h.  Reported by Matthew Woehlke, as
57154         an IRIX 6.5 build failure.
57155
57156 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57157
57158         Minor fixups to port to Solaris 10 with Sun C 5.8.
57159         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
57160         * modules/getcwd (Depends-on): Add dirfd.
57161         * lib/putenv.c (putenv): #undef it.
57162         (rpl_putenv): New decl.
57163         (malloc, free): Include <stdlib.h> rather than prototyping separately.
57164
57165 2007-02-20  Bruno Haible  <bruno@clisp.org>
57166
57167         * modules/stdio-tests: New file.
57168         * tests/test-stdio.c: New file.
57169
57170         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
57171         (Depends-on): Add stdio.
57172         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57173         (Include): Use <stdio.h> instead of vsnprintf.h.
57174         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57175         HAVE_DECL_VSNPRINTF.
57176         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
57177
57178         * modules/snprintf (Files): Remove lib/snprintf.h.
57179         (Depends-on): Add stdio.
57180         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57181         (Include): Use <stdio.h> instead of snprintf.h.
57182         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57183         HAVE_DECL_SNPRINTF.
57184         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
57185         * lib/getaddrinfo.c: Likewise.
57186
57187         * modules/stdio: New file.
57188         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
57189         * lib/snprintf.h: Remove file.
57190         * lib/vsnprintf.h: Remove file.
57191         * lib/.cppi-disable: Remove snprintf.h.
57192         * m4/stdio_h.m4: New file.
57193         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
57194
57195 2007-02-20  Jim Meyering  <jim@meyering.net>
57196
57197         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
57198         used by e.g., mingw.  From Bruno Haible.
57199
57200 2007-02-19  Bruno Haible  <bruno@clisp.org>
57201
57202         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
57203         warnings.
57204         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57205
57206 2007-02-19  Bruno Haible  <bruno@clisp.org>
57207
57208         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
57209         from mingw users.
57210
57211 2007-02-19  Bruno Haible  <bruno@clisp.org>
57212
57213         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
57214         warnings.
57215         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
57216
57217 2007-02-19  Jim Meyering  <jim@meyering.net>
57218
57219         Don't use FD after a successful "fdopendir (fd)".
57220         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
57221         Reset it by calling dirfd on the just-obtained DIR*.
57222
57223         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
57224         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
57225
57226 2007-02-18  Bruno Haible  <bruno@clisp.org>
57227
57228         * lib/readlink.c: Include <unistd.h>.
57229         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
57230         HAVE_READLINK.
57231         * modules/readlink (Depends-on): Add unistd.
57232         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57233         (Include): Add <unistd.h>.
57234
57235         * lib/getlogin_r.h: Remove file.
57236         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
57237         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
57238         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
57239         HAVE_DECL_GETLOGIN_R.
57240         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
57241         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57242         (Include): Use <unistd.h> instead of getlogin_r.h.
57243
57244         * lib/getcwd.h: Remove file.
57245         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
57246         * lib/xgetcwd.c: Likewise.
57247         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
57248         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
57249         * modules/getcwd (Files): Remove lib/getcwd.h.
57250         (Depends-on): Add unistd.
57251         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57252         (Include): Use <unistd.h> instad of getcwd.h.
57253
57254         * lib/ftruncate.c: Include <unistd.h> first.
57255         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57256         Set HAVE_FTRUNCATE.
57257         * modules/ftruncate (Depends-on): Add unistd.
57258         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57259
57260         * lib/fchdir.c: Include <unistd.h> first.
57261         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57262         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57263         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57264         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57265         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57266
57267         * lib/dup2.c: Include <unistd.h> first.
57268         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57269         HAVE_DUP2.
57270         * modules/dup2 (Depends-on): Add unistd.
57271         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57272
57273         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57274         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57275         REPLACE_CHOWN. Don't define chown as a macro here.
57276         * modules/chown (Depends-on): Add unistd.
57277         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57278
57279         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57280         Add definition for GL_LINK_WARNING.
57281         (chown, dup2): New declarations.
57282         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57283         link warning.
57284         (ftruncate): New declaration.
57285         (getcwd): New declaration, taken from old getcwd.h.
57286         (getlogin_r): New declaration, taken from old getlogin_r.h.
57287         (readlink): New declaration.
57288         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57289         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57290         (gl_PREREQ_UNISTD): Remove macro.
57291         (gl_UNISTD_MODULE_INDICATOR): New macro.
57292         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57293         many new variables. Don't set UNISTD_H.
57294         * modules/unistd (Description): Change.
57295         (Depends-on): Add link-warning.
57296         (configure.ac): Update.
57297         (Makefile.am): Create unistd.h always. Substitute many new variables
57298         into it.
57299
57300 2007-02-18  Bruno Haible  <bruno@clisp.org>
57301
57302         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57303         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57304         HAVE_GETSUBOPT.
57305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57306         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57307         * lib/getsubopt.h: Remove file.
57308         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57309         (Depends-on): Add stdlib.
57310         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57311         (Includes): Use <stdlib.h> instead of getsubopt.h.
57312         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57313         Set HAVE_GETSUBOPT.
57314         * lib/getsubopt.c: Don't include getsubopt.h.
57315
57316 2007-02-18  Bruno Haible  <bruno@clisp.org>
57317
57318         * modules/fchdir (Depends-on): Add dup2.
57319
57320 2007-02-18  Bruno Haible  <bruno@clisp.org>
57321
57322         * lib/stdlib_.h: Handle glibc's special invocation convention
57323         specially.
57324
57325 2007-02-18  Bruno Haible  <bruno@clisp.org>
57326
57327         * modules/stdlib-tests: New file.
57328         * tests/test-stdlib.c: New file.
57329
57330         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57331         (Depends-on): Add stdlib.
57332         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57333         (Includes): Use <stdlib.h> instead of mkstemp.h.
57334         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57335         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57336         * lib/mkstemp.c: Don't include mkstemp.h.
57337         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57338         * lib/stdlib--.h: Don't include mkstemp.h.
57339
57340         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57341         (Depends-on): Add stdlib.
57342         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57343         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57344         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57345         HAVE_MKDTEMP.
57346         * lib/mkdtemp.c: Don't include mkdtemp.h.
57347         * lib/clean-temp.c: Don't include mkdtemp.h.
57348
57349         * modules/exit (Files): Remove lib/exit.h.
57350         (Depends-on): Add stdlib.
57351         (Makefile.am): Remove lib_SOURCES.
57352         (Include): Use <stdlib.h> instead of exit.h.
57353         * lib/argmatch.c: Don't include exit.h.
57354         * lib/execute.c: Likewise.
57355         * lib/pagealign_alloc.c: Likewise.
57356         * lib/pipe.c: Likewise.
57357         * lib/wait-process.c: Likewise.
57358         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57359         * lib/exitfail.c: Likewise.
57360         * lib/savewd.c: Likewise.
57361         * lib/xsetenv.c: Likewise.
57362
57363         * modules/stdlib: New file.
57364         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57365         and extra comments about mkstemp().
57366         * lib/exit.h: Remove file.
57367         * lib/mkdtemp.h: Remove file.
57368         * lib/mkstemp.h: Remove file.
57369         * m4/stdlib_h.m4: New file.
57370         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57371
57372 2007-02-18  Bruno Haible  <bruno@clisp.org>
57373
57374         * modules/math-tests: New file.
57375         * tests/test-math.c: New file.
57376
57377         * modules/math: New file.
57378         * modules/mathl (Files): Remove lib/mathl.h.
57379         (Depends-on): Add math.
57380         (Makefile.am): Don't mention mathl.h.
57381         (Include): Use <math.h> instead of mathl.h.
57382         * lib/math_.h: New file.
57383         * lib/mathl.h: Remove file.
57384         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57385         mathl.h.
57386         * lib/asinl.c: Likewise.
57387         * lib/atanl.c: Likewise.
57388         * lib/ceill.c: Likewise.
57389         * lib/cosl.c: Likewise.
57390         * lib/expl.c: Likewise.
57391         * lib/floorl.c: Likewise.
57392         * lib/frexpl.c: Likewise.
57393         * lib/ldexpl.c: Likewise.
57394         * lib/logl.c: Likewise.
57395         * lib/sincosl.c: Likewise.
57396         * lib/sinl.c: Likewise.
57397         * lib/sqrtl.c: Likewise.
57398         * lib/tanl.c: Likewise.
57399         * lib/trigl.c: Likewise.
57400         * m4/math_h.m4: New file.
57401         * MODULES.html.sh (Mathematics): Add math.
57402
57403 2007-02-17  Bruno Haible  <bruno@clisp.org>
57404
57405         * modules/wctype-tests: New file.
57406         * tests/test-wctype.c: New file.
57407
57408         * modules/wchar-tests: New file.
57409         * tests/test-wchar.c: New file.
57410
57411         * modules/unistd-tests: New file.
57412         * tests/test-unistd.c: New file.
57413
57414         * modules/time-tests: New file.
57415         * tests/test-time.c: New file.
57416
57417         * modules/sysexits-tests: New file.
57418         * tests/test-sysexits.c: New file.
57419
57420         * modules/sys_time-tests: New file.
57421         * tests/test-sys_time.c: New file.
57422
57423         * modules/sys_stat-tests: New file.
57424         * tests/test-sys_stat.c: New file.
57425
57426         * modules/sys_socket-tests: New file.
57427         * tests/test-sys_socket.c: New file.
57428
57429         * modules/sys_select-tests: New file.
57430         * tests/test-sys_select.c: New file.
57431
57432         * modules/string-tests: New file.
57433         * tests/test-string.c: New file.
57434
57435         * modules/stdbool-tests: New file.
57436         * tests/test-stdbool.c: New file.
57437
57438         * modules/netinet_in-tests: New file.
57439         * tests/test-netinet_in.c: New file.
57440
57441         * modules/inttypes-tests: New file.
57442         * tests/test-inttypes.c: New file.
57443
57444         * modules/fcntl-tests: New file.
57445         * tests/test-fcntl.c: New file.
57446
57447         * modules/byteswap-tests: New file.
57448         * tests/test-byteswap.c: New file.
57449
57450         * modules/arpa_inet-tests: New file.
57451         * tests/test-arpa_inet.c: New file.
57452
57453 2007-02-17  Bruno Haible  <bruno@clisp.org>
57454
57455         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57456         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57457         if the corresponding module is not enabled. Emit link warnings if
57458         the function is used nevertheless.
57459         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57460         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57461         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57462         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57463         * modules/inttypes (Depends-on): Add link-warning.
57464         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57465         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57466         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57467         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57468         * modules/imaxdiv (configure.ac): Likewise.
57469         * modules/strtoimax (configure.ac): Likewise.
57470         * modules/strtoumax (configure.ac): Likewise.
57471
57472 2007-02-17  Bruno Haible  <bruno@clisp.org>
57473
57474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
57475         gl_STRING_MODULE_INDICATOR_DEFAULTS.
57476         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
57477         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
57478
57479 2007-02-17  Bruno Haible  <bruno@clisp.org>
57480
57481         * modules/link-warning: New file.
57482         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
57483         * lib/string_.h (GL_LINK_WARNING): Remove definition.
57484         * modules/string (Depends-on): Add link-warning.
57485         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57486         string.h.
57487         * MODULES.html.sh (Support for building libraries and executables): Add
57488         link-warning.
57489
57490 2007-02-17  Bruno Haible  <bruno@clisp.org>
57491
57492         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
57493         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
57494         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
57495         long lines.
57496
57497 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
57498             Bruno Haible  <bruno@clisp.org>
57499
57500         * modules/tmpfile: New file.
57501         * lib/tmpfile.c: New file.
57502         * m4/tmpfile.m4: New file.
57503         * MODULES.html.sh (func_all_modules): New section "Input/output".
57504
57505 2007-02-15  Bruno Haible  <bruno@clisp.org>
57506
57507         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
57508         (supports_delete_on_close): New function.
57509         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
57510
57511 2007-02-14  Bruno Haible  <bruno@clisp.org>
57512
57513         * modules/mbspcasecmp-tests: New file.
57514         * tests/test-mbspcasecmp.sh: New file.
57515         * tests/test-mbspcasecmp.c: New file.
57516
57517         New module mbspcasecmp.
57518         * modules/mbspcasecmp: New file.
57519         * lib/mbspcasecmp.c: New file.
57520         * lib/string_.h (strncasecmp): Change warning message.
57521         (mbspcasecmp): New declaration.
57522         * m4/mbspcasecmp.m4: New file.
57523         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57524         GNULIB_MBSPCASECMP.
57525         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
57526         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
57527
57528 2007-02-14  Bruno Haible  <bruno@clisp.org>
57529
57530         * modules/mbsncasecmp-tests: New file.
57531         * tests/test-mbsncasecmp.sh: New file.
57532         * tests/test-mbsncasecmp.c: New file.
57533
57534         New module mbsncasecmp.
57535         * modules/mbsncasecmp: New file.
57536         * lib/mbsncasecmp.c: New file.
57537         * lib/string_.h (mbsncasecmp): New declaration.
57538         * m4/mbsncasecmp.m4: New file.
57539         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57540         GNULIB_MBSNCASECMP.
57541         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
57542         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
57543
57544 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57545
57546         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
57547         Verify that it doesn't overlap with our flags.
57548         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
57549         do not have the desired effect in multibyte locales; instead, use
57550         mbscasecmp.
57551         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
57552         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
57553         we don't require GNU fnmatch ourselves (if our users require it, they
57554         should do so explicitly).
57555
57556         Fix regex code so it doesn't rely on strcasecmp.
57557         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
57558         Otherwise, include gnulib's langinfo.h.
57559         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
57560         undesirable behavior in non-C locales.  Instead, rely on localecharset.
57561         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57562         * modules/regex (FILES): Remove m4/codeset.m4.
57563         (Depends-on): Add localcharset.  Remove strcase.
57564
57565 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57566
57567         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57568         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57569
57570 2007-02-13  Bruno Haible  <bruno@clisp.org>
57571
57572         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57573         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57574
57575 2007-02-12  Bruno Haible  <bruno@clisp.org>
57576
57577         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57578         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57579         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57580         time warning rather than a link error.
57581
57582 2007-02-12  Bruno Haible  <bruno@clisp.org>
57583
57584         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57585         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57586         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57587
57588 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57589
57590         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57591         args, not 2.
57592
57593 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57594
57595         New module 'time', so that apps can include <time.h> as per
57596         POSIX and GNU instead of separate include files like time_r.h
57597         and timegm.h.  This implementation tries out a simpler approach
57598         for replacing decls in standard include files (as compared to
57599         the string module), somewhat as an experiment.
57600
57601         * config/srclist.txt: Comment out mktime.c for now.
57602         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57603         since it doesn't apply any more.  Use generic wording instead.
57604         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57605         'time'.
57606         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57607         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57608         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57609         Don't include <sys/types.h>; no longer needed since we assume C89.
57610         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57611         * lib/strftime.c: Likewise.
57612         * lib/time_r.c: Likewise.
57613         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57614         * lib/nanosleep.c: Include <time.h> first, to check interface.
57615         * lib/strptime.c: Likewise.
57616         * lib/time_r.c: Likewise.
57617         * lib/timegm.c: Likewise.
57618         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57619         needed.
57620         * lib/timegm.c: Don't include timegm.h; no longer needed.
57621         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57622         time.h now handles any problems in that area.
57623         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57624         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57625         that time.h defines struct timespec.
57626         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57627         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57628         handles that.
57629         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57630         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57631         needed.  Set REPLACE_LOCALTIME.
57632         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57633         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57634         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57635         nanosleep; time_h.m4 now does that.  Don't require
57636         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
57637         module handles this now.
57638         * modules/getdate (Depends-on): Remove timespec.  Add time.
57639         * modules/nanosleep (Depends-on): Likewise.
57640         * modules/stat-time (Depends-on): Likewise.
57641         * modules/nanosleep (Include): Include time.h, not timespec.h.
57642         * modules/strptime (Files): Remove lib/strptime.h.
57643         (Depends-on): Add extensions, time.
57644         (Include): Include time.h, not strptime.h.
57645         * modules/time_r (Files): Remove lib/time_r.h.
57646         (Depends-on): Add time.
57647         (Include): Include time.h, not time_r.h.
57648         * modules/timegm: Likewise.
57649         * modules/timespec (Description): Now does timespec-related decls
57650         of our own, instead of struct timespec itself.
57651         (Depends-on): Add time; remove extensions.
57652         (Maintainer): Add self.
57653         * modules/utimecmp (Depends-on): Add time; remove timespec.
57654         * modules/utimens (Depends-on): Likewise.
57655         * modules/xnanosleep (Depends-on): Likewise.
57656
57657 2007-02-11  Bruno Haible  <bruno@clisp.org>
57658
57659         * lib/c-strstr.c: Include allocsa.h.
57660         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57661         * lib/c-strcasestr.c: Include allocsa.h.
57662         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57663         * lib/strcasestr.c: Include allocsa.h.
57664         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57665         * lib/mbsstr.c: Include allocsa.h.
57666         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57667         allocsa/freesa instead of malloc/free.
57668         * lib/mbscasestr.c: Include allocsa.h.
57669         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57670         allocsa/freesa instead of malloc/free.
57671         * modules/c-strstr (Depends-on): Add allocsa.
57672         * modules/c-strcasestr (Depends-on): Likewise.
57673         * modules/strcasestr (Depends-on): Likewise.
57674         * modules/mbsstr (Depends-on): Likewise.
57675         * modules/mbscasestr (Depends-on): Likewise.
57676
57677 2007-02-11  Bruno Haible  <bruno@clisp.org>
57678
57679         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
57680
57681         * modules/mbsspn-tests: New file.
57682         * tests/test-mbsspn.sh: New file.
57683         * tests/test-mbsspn.c: New file.
57684
57685 2007-02-11  Bruno Haible  <bruno@clisp.org>
57686
57687         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
57688
57689         * modules/mbspbrk-tests: New file.
57690         * tests/test-mbspbrk.sh: New file.
57691         * tests/test-mbspbrk.c: New file.
57692
57693 2007-02-11  Bruno Haible  <bruno@clisp.org>
57694
57695         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
57696         unneeded cast.
57697
57698         * modules/mbscspn-tests: New file.
57699         * tests/test-mbscspn.sh: New file.
57700         * tests/test-mbscspn.c: New file.
57701
57702 2007-02-11  Bruno Haible  <bruno@clisp.org>
57703
57704         * modules/mbscasecmp-tests: New file.
57705         * tests/test-mbscasecmp.sh: New file.
57706         * tests/test-mbscasecmp.c: New file.
57707
57708 2007-02-11  Bruno Haible  <bruno@clisp.org>
57709
57710         Ensure O(n) worst-case complexity of mbscasestr.
57711         * lib/mbscasestr.c: Include stdbool.h.
57712         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57713         functions.
57714         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
57715         the bookkeeping indicates that it's worth it.
57716         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
57717
57718         * modules/mbscasestr-tests: New file.
57719         * tests/test-mbscasestr1.c: New file.
57720         * tests/test-mbscasestr2.sh: New file.
57721         * tests/test-mbscasestr2.c: New file.
57722         * tests/test-mbscasestr3.sh: New file.
57723         * tests/test-mbscasestr3.c: New file.
57724         * tests/test-mbscasestr4.sh: New file.
57725         * tests/test-mbscasestr4.c: New file.
57726         * m4/locale-tr.m4: New file.
57727
57728 2007-02-11  Bruno Haible  <bruno@clisp.org>
57729
57730         Ensure O(n) worst-case complexity of mbsstr.
57731         * lib/mbsstr.c: Include stdbool.h.
57732         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57733         functions.
57734         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
57735         bookkeeping indicates that it's worth it.
57736         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
57737
57738         * modules/mbsstr-tests: New file.
57739         * tests/test-mbsstr1.c: New file.
57740         * tests/test-mbsstr2.sh: New file.
57741         * tests/test-mbsstr2.c: New file.
57742         * tests/test-mbsstr3.sh: New file.
57743         * tests/test-mbsstr3.c: New file.
57744         * m4/locale-fr.m4: New file.
57745
57746 2007-02-11  Bruno Haible  <bruno@clisp.org>
57747
57748         * lib/mbsrchr.c (mbsrchr): Fix bug.
57749
57750         * modules/mbsrchr-tests: New file.
57751         * tests/test-mbsrchr.sh: New file.
57752         * tests/test-mbsrchr.c: New file.
57753
57754 2007-02-11  Bruno Haible  <bruno@clisp.org>
57755
57756         * lib/mbschr.c (mbschr): Fix bug.
57757
57758         * modules/mbschr-tests: New file.
57759         * tests/test-mbschr.sh: New file.
57760         * tests/test-mbschr.c: New file.
57761         * m4/locale-zh.m4: New file.
57762
57763 2007-02-11  Bruno Haible  <bruno@clisp.org>
57764
57765         Support for copying multibyte string iterators.
57766         * lib/mbiter.h: Include <string.h>.
57767         (mbiter_multi_copy): New function.
57768         (mbi_copy): New macro.
57769         * lib/mbuiter.h: Include <string.h>.
57770         (mbuiter_multi_copy): New function.
57771         (mbui_copy): New macro.
57772
57773 2007-02-11  Bruno Haible  <bruno@clisp.org>
57774
57775         New module mbslen.
57776         * modules/mbslen: New file.
57777         * lib/mbslen.c: New file.
57778         * lib/string_.h (mbslen): New declaration.
57779         * m4/mbslen.m4: New file.
57780         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57781         GNULIB_MBSLEN.
57782         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
57783         * MODULES.html.sh (Internationalization functions): Add mbslen.
57784
57785 2007-02-11  Bruno Haible  <bruno@clisp.org>
57786
57787         Ensure O(n) worst-case complexity of strcasestr substitute.
57788         * lib/strcasestr.c: Include stdbool.h.
57789         (knuth_morris_pratt): New function.
57790         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57791         bookkeeping indicates that it's worth it.
57792         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
57793
57794         * modules/strcasestr-tests: New file.
57795         * tests/test-strcasestr.c: New file.
57796
57797 2007-02-11  Bruno Haible  <bruno@clisp.org>
57798
57799         Ensure O(n) worst-case complexity of c_strcasestr.
57800         * lib/c-strcasestr.c: Include stdbool.h, string.h.
57801         (knuth_morris_pratt): New function.
57802         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
57803         the bookkeeping indicates that it's worth it.
57804         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
57805
57806         * modules/c-strcasestr-tests: New file.
57807         * tests/test-c-strcasestr.c: New file.
57808
57809 2007-02-11  Bruno Haible  <bruno@clisp.org>
57810
57811         Ensure O(n) worst-case complexity of c_strstr.
57812         * lib/c-strstr.c: Include stdbool.h, string.h.
57813         (knuth_morris_pratt): New function.
57814         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57815         bookkeeping indicates that it's worth it.
57816         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
57817
57818         * lib/c-strstr.c: Complete rewrite for maintainability.
57819
57820         * modules/c-strstr-tests: New file.
57821         * tests/test-c-strstr.c: New file.
57822
57823 2007-02-11  Bruno Haible  <bruno@clisp.org>
57824
57825         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
57826         5.2.1 and earlier, whereby \055 was treated just like the range
57827         delimiter '-'.
57828         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57829
57830 2007-02-08  Bruno Haible  <bruno@clisp.org>
57831
57832         * modules/regex (Depends-on): Add stdbool.
57833         Reported by Dalibor Topic <robilad@kaffe.org>.
57834
57835 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57836
57837         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
57838         Prefer returning from main to exiting from it.
57839         Remove unnecessary parens after sizeof.
57840
57841 2007-02-05  Bruno Haible  <bruno@clisp.org>
57842
57843         New module mbssep.
57844         * modules/mbssep: New file.
57845         * lib/mbssep.c: New file.
57846         * lib/string_.h (strsep): Add a conditional link warning.
57847         (mbssep): New declaration.
57848         * m4/mbssep.m4: New file.
57849         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57850         GNULIB_MBSSEP.
57851         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
57852         * MODULES.html.sh (Internationalization functions): Add mbssep.
57853
57854 2007-02-05  Bruno Haible  <bruno@clisp.org>
57855
57856         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
57857         Optimize search in case of 1 delimiter.
57858
57859 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57860
57861         * lib/acl.h: Include sys/types.h before sys/acl.h.
57862
57863 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57864
57865         Merge upstream fix for glibc bugzilla #3957:
57866
57867         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
57868
57869         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
57870         bit for RE_HAT_LISTS_NOT_NEWLINE.
57871         (build_charclass_op): Remove bogus comment.
57872
57873 2007-02-05  Simon Josefsson  <simon@josefsson.org>
57874
57875         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
57876
57877 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57878
57879         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
57880         * lib/memmem.c [!defined _LIBC]: Include config.h.
57881
57882 2007-02-04  Bruno Haible  <bruno@clisp.org>
57883
57884         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
57885         warning message.
57886
57887 2007-02-04  Bruno Haible  <bruno@clisp.org>
57888
57889         New module mbstok_r.
57890         * modules/mbstok_r: New file.
57891         * lib/mbstok_r.c: New file.
57892         * lib/string_.h (strtok_r): Change argument names to match the
57893         comments. Add a conditional link warning.
57894         (mbstok_r): New declaration.
57895         * m4/mbstok_r.m4: New file.
57896         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57897         GNULIB_MBSTOK_R.
57898         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
57899         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
57900
57901 2007-02-04  Bruno Haible  <bruno@clisp.org>
57902
57903         New module mbsspn.
57904         * modules/mbsspn: New file.
57905         * lib/mbsspn.c: New file.
57906         * lib/string_.h (strspn): Add a conditional link warning.
57907         (mbsspn): New declaration.
57908         * m4/mbsspn.m4: New file.
57909         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57910         GNULIB_MBSSPN.
57911         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
57912         * MODULES.html.sh (Internationalization functions): Add mbsspn.
57913
57914 2007-02-04  Bruno Haible  <bruno@clisp.org>
57915
57916         New module mbspbrk.
57917         * modules/mbspbrk: New file.
57918         * lib/mbspbrk.c: New file.
57919         * lib/string_.h (strpbrk): Add a conditional link warning.
57920         (mbspbrk): New declaration.
57921         * m4/mbspbrk.m4: New file.
57922         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57923         GNULIB_MBSPBRK.
57924         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
57925         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
57926
57927 2007-02-04  Bruno Haible  <bruno@clisp.org>
57928
57929         New module mbscspn.
57930         * modules/mbscspn: New file.
57931         * lib/mbscspn.c: New file.
57932         * lib/string_.h (strcspn): Add a conditional link warning.
57933         (mbscspn): New declaration.
57934         * m4/mbscspn.m4: New file.
57935         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57936         GNULIB_MBSCSPN.
57937         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
57938         * MODULES.html.sh (Internationalization functions): Add mbscspn.
57939
57940 2007-02-04  Bruno Haible  <bruno@clisp.org>
57941
57942         New module mbscasestr, reduced goal of strcasestr.
57943         * modules/mbscasestr: New file.
57944         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
57945         (mbscasestr): Renamed from strcasestr.
57946         * lib/strcasestr.c: Don't include mbuiter.h.
57947         (strcasestr): Remove support for multibyte locales.
57948         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
57949         Change the conditional link warning.
57950         (mbscasestr): New declaration.
57951         * m4/mbscasestr.m4: New file.
57952         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
57953         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
57954         REPLACE_STRCASESTR.
57955         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
57956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57957         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57958         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
57959         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
57960         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57961         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
57962         (Depends-on): Remove mbuiter.
57963         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
57964
57965 2007-02-04  Bruno Haible  <bruno@clisp.org>
57966
57967         Simplify handling of strncasecmp.
57968         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
57969         the conditional link warning.
57970         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57971         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
57972         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
57973         * modules/strcase (configure.ac): Don't invoke
57974         gl_STRING_MODULE_INDICATOR.
57975         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
57976
57977 2007-02-04  Bruno Haible  <bruno@clisp.org>
57978
57979         New module mbscasecmp, reduced goal of strcasecmp.
57980         * modules/mbscasecmp: New file.
57981         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
57982         (mbscasecmp): Renamed from strcasecmp.
57983         * lib/strcasecmp.c: Don't include mbuiter.h.
57984         (strcasecmp): Remove support for multibyte locales.
57985         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
57986         Change the conditional link warning.
57987         (mbscasecmp): New declaration.
57988         * m4/mbscasecmp.m4: New file.
57989         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
57990         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
57991         REPLACE_STRCASECMP.
57992         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
57993         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57994         GNULIB_MBSCASECMP.
57995         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
57996         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
57997         * modules/strcase (Files): Remove m4/mbrtowc.m4.
57998         (Depends-on): Remove mbuiter.
57999         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
58000
58001 2007-02-04  Bruno Haible  <bruno@clisp.org>
58002
58003         New module mbsstr. Remove module strstr.
58004         * modules/mbsstr: New file.
58005         * modules/strstr: Remove file.
58006         * lib/mbsstr.c: Renamed from lib/strstr.c.
58007         (mbsstr): Renamed from strstr.
58008         * lib/string_.h (strstr): Remove declaration. Change the conditional
58009         link warning.
58010         (mbsstr): New declaration.
58011         * m4/mbsstr.m4: New file.
58012         * m4/strstr.m4: Remove file.
58013         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
58014         REPLACE_STRSTR.
58015         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
58016         Don't initialize GNULIB_STRSTR.
58017         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
58018         substitute GNULIB_STRSTR and REPLACE_STRSTR.
58019         * MODULES.html.sh (Internationalization functions): Add mbsstr.
58020         (Support for systems lacking ANSI C 89): Remove strstr.
58021
58022 2007-02-04  Bruno Haible  <bruno@clisp.org>
58023
58024         New module mbsrchr.
58025         * modules/mbsrchr: New file.
58026         * lib/mbsrchr.c: New file.
58027         * lib/string_.h (strrchr): Add a conditional link warning.
58028         (mbsrchr): New declaration.
58029         * m4/mbsrchr.m4: New file.
58030         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58031         GNULIB_MBSRCHR.
58032         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
58033         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
58034
58035 2007-02-04  Bruno Haible  <bruno@clisp.org>
58036
58037         New module mbschr.
58038         * modules/mbschr: New file.
58039         * lib/mbschr.c: New file.
58040         * lib/string_.h (strchr): Add a conditional link warning.
58041         (mbschr): New declaration.
58042         * m4/mbschr.m4: New file.
58043         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58044         GNULIB_MBSCHR.
58045         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
58046         * MODULES.html.sh (Internationalization functions): Add mbschr.
58047
58048 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58049
58050         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
58051
58052         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
58053
58054 2007-02-04  Bruno Haible  <bruno@clisp.org>
58055
58056         New module description section 'configure.ac-early'.
58057         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
58058         (func_get_autoconf_early_snippet): New function.
58059         (func_import, func_create_testdir): Use it. Remove special cases for
58060         modules 'extensions' and 'lock'.
58061         * modules/extensions (configure.ac-early): Require
58062         gl_USE_SYSTEM_EXTENSIONS.
58063         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
58064
58065 2007-02-04  Bruno Haible  <bruno@clisp.org>
58066
58067         Make use of gcj-4.3's -fsource and -ftarget option.
58068         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
58069         and if so try the options -fsource and -ftarget.
58070         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
58071         source_version, ftarget_option, target_version arguments.
58072         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
58073         (is_envjavac_oldgcj_14_14_usable): Renamed from
58074         is_envjavac_gcj_14_14_usable.
58075         (is_envjavac_oldgcj_14_13_usable): Renamed from
58076         is_envjavac_gcj_14_13_usable.
58077         (is_gcj_present): Update.
58078         (is_gcj_43, is_gcj43_usable): New functions.
58079         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
58080         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
58081         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
58082         try the options -fsource and -ftarget.
58083
58084 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58085
58086         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
58087         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
58088         larger value.
58089
58090 2007-02-03  Jim Meyering  <jim@meyering.net>
58091
58092         Give tools a better chance to allocate space for very large buffers.
58093         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
58094
58095         Make pwd and readlink work also when run with an unreadable parent dir
58096         on systems with openat support.
58097         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
58098         provided getcwd function, even when we have openat support.
58099         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
58100
58101 2007-02-02  Bruno Haible  <bruno@clisp.org>
58102
58103         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58104         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
58105         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
58106         portability problems if one of these functions is only used on specific
58107         platforms.
58108         Reported by Paul Eggert.
58109
58110 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
58111
58112         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
58113         is causing more trouble than it's curing.
58114         * lib/regex_internal.h (__mempcpy): Remove.
58115         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
58116         (and make the code a tad smaller to boot).
58117         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
58118
58119 2007-02-02  Jim Meyering  <jim@meyering.net>
58120
58121         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
58122         section, not in the Makefile.am: one.
58123
58124 2007-02-02  Eric Blake  <ebb9@byu.net>
58125
58126         * lib/strchrnul.c: Always include config.h first.
58127
58128         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
58129         gnulib strstr is not necessary here.
58130
58131 2007-02-02  Simon Josefsson  <simon@josefsson.org>
58132
58133         * m4/socklen.m4: Fix typo.
58134
58135 2007-02-02  Eric Blake  <ebb9@byu.net>
58136
58137         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
58138         * modules/netinet_in (Makefile.am): Likewise.
58139
58140 2007-02-01  Bruno Haible  <bruno@clisp.org>
58141
58142         * lib/string_.h (GL_LINK_WARNING): New macro.
58143         (strcasecmp, strstr, strcasestr): If provided by the system,
58144         conditionally define as a macro that leads to a warning instead of to
58145         an error.
58146         (strncasecmp): Conditionally define as a macro that leads to a warning.
58147
58148 2007-02-01  Karl Berry  <karl@gnu.org>
58149
58150         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
58151
58152 2007-02-01  Bruno Haible  <bruno@clisp.org>
58153
58154         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
58155         renamings.
58156
58157 2007-02-01  Eric Blake  <ebb9@byu.net>
58158
58159         * modules/regex (Depends-on): Revert dependence on mempcpy.
58160         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
58161         module's definition of mempcpy.
58162         Reported by Paul Eggert.
58163
58164 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58165
58166         * lib/string_.h: If the gnulib module XYZ is not present, undefine
58167         the symbol XYZ before redefining it.  This fixes a problem with
58168         programs that don't use XYZ, when compiled on systems that define
58169         XYZ to something else.
58170
58171 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
58172
58173         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
58174         occurs when "mkdir -m foo" creates a setgid directory that is (1)
58175         writeable to group or other and (2) is intended to have a special
58176         mode bit that is set or cleared.  In such a case, the directory
58177         should be neither group- nor other-writeable until the special
58178         mode bits are right.
58179
58180 2007-01-31  Eric Blake  <ebb9@byu.net>
58181
58182         * modules/mountlist (Depends-on): Add strstr.
58183
58184         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
58185         bug.
58186         * modules/string (Makefile.am): Remove redundant replacement.
58187         * modules/regex (Depends-on): Add mempcpy.
58188
58189 2007-01-31  Bruno Haible  <bruno@clisp.org>
58190
58191         New module description field 'Link'.
58192         * gnulib-tool (func_usage): Document --extract-link-directive.
58193         (sed_extract_prog): Recognize 'Link' directive.
58194         (func_get_link_directive): New function.
58195         (func_import): Show summary of link directives.
58196         Handle --extract-link-directive option.
58197         * modules/acl (Link): New section.
58198         * modules/clock-time (Link): New section.
58199         * modules/euidaccess (Link): New section.
58200         * modules/gettext (Link): New section.
58201         * modules/iconv (Link): New section.
58202         * modules/lock (Link): New section.
58203         * modules/nanosleep (Link): New section.
58204         * modules/readline (Link): New section.
58205
58206 2007-01-27  Bruno Haible  <bruno@clisp.org>
58207
58208         Enforce the use of gnulib modules for unportable <string.h> functions.
58209         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
58210         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
58211         (gl_HEADER_STRING_H_BODY): Require it.
58212         * lib/string_.h: If the gnulib module XYZ is not present, redefine
58213         the symbol XYZ to one that gives a link error.
58214         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
58215         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
58216         * modules/mempcpy (configure.ac): Likewise.
58217         * modules/memrchr (configure.ac): Likewise.
58218         * modules/stpcpy (configure.ac): Likewise.
58219         * modules/stpncpy (configure.ac): Likewise.
58220         * modules/strcase (configure.ac): Likewise.
58221         * modules/strcasestr (configure.ac): Likewise.
58222         * modules/strchrnul (configure.ac): Likewise.
58223         * modules/strdup (configure.ac): Likewise.
58224         * modules/strndup (configure.ac): Likewise.
58225         * modules/strnlen (configure.ac): Likewise.
58226         * modules/strpbrk (configure.ac): Likewise.
58227         * modules/strsep (configure.ac): Likewise.
58228         * modules/strstr (configure.ac): Likewise.
58229         * modules/strtok_r (configure.ac): Likewise.
58230
58231 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
58232
58233         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
58234
58235 2007-01-30  Jim Meyering  <jim@meyering.net>
58236
58237         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
58238
58239 2007-01-29  Bruno Haible  <bruno@clisp.org>
58240
58241         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
58242         * lib/execute.c: Likewise.
58243         * lib/pipe.c: Likewise.
58244         * lib/printf-args.h: Likewise.
58245         * lib/printf-args.c: Likewise.
58246         * lib/printf-parse.c: Likewise.
58247         * lib/vasnprintf.c: Likewise.
58248
58249 2007-01-29  Eric Blake  <ebb9@byu.net>
58250
58251         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
58252         declaration.
58253
58254 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58255
58256         * lib/strptime.h (strptime): Use 'restrict' for args where
58257         POSIX requires this.
58258         * lib/strptime.c (strptime): Likewise.
58259         Change license notice from LGPL to GPL, since gnulib-tool will
58260         change this as needed.
58261         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58262         defined.
58263         Include "strptime.h" first, to check interface.
58264         Do not #undef _LIBC and _NL_CURRENT.
58265         Do not include <stdlib.h>; no longer needed.
58266         Include "time_r.h" and declare ptime_locale_status
58267         only if _LIBC is not defined.
58268         (__P): Remove unused macro.
58269         (match_string): Bring back glibc version, but use it only if _LIBC
58270         is defined.
58271         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58272         Remove unnecessary assertion and abort() call.
58273         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58274         * m4/strptime.m4: Fix serial number comment.
58275         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58276         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58277         (Depends-on): Add time_r.
58278
58279 2007-01-29  Bruno Haible  <bruno@clisp.org>
58280
58281         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58282         strptime.
58283         * modules/strptime (Depends-on): Add stdbool.
58284         * lib/strptime.h: Include <time.h> always. Add comments.
58285
58286 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58287
58288         * modules/strptime: New file.
58289         * lib/strptime.h: New file.
58290         * lib/strptime.c: New file.
58291         * m4/strptime.m4: New file.
58292
58293 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58294
58295         * MODULES.html.sh: New module mpsort.
58296         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58297
58298         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58299         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58300         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58301         All uses changed.
58302         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58303         All uses changed.
58304         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58305         to _Restrict_.
58306         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58307         the parameter matches the prototype.
58308
58309 2007-01-28  Jim Meyering  <jim@meyering.net>
58310
58311         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58312         sys/time.h here, reverting that part of the previous patch:
58313         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58314
58315 2007-01-28  Bruno Haible  <bruno@clisp.org>
58316
58317         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58318         value of $(SYS_TIME_H).
58319         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58320         remove it conditionally, too. [added by Jim Meyering]
58321         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58322         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58323         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58324         GETTIMEOFDAY_REPLACEMENT to 1.
58325
58326 2007-01-28  Bruno Haible  <bruno@clisp.org>
58327
58328         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58329         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58330         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58331         Set UNISTD_H instead of UNISTD_H2.
58332         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58333
58334 2007-01-28  Bruno Haible  <bruno@clisp.org>
58335
58336         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58337         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58338
58339 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58340
58341         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58342         (func_create_testdir): Ensure C locale for `grep' and `tr'
58343         character ranges.
58344         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58345         ACLOCAL_AMFLAGS parsing state machine.
58346
58347 2007-01-27  Bruno Haible  <bruno@clisp.org>
58348
58349         * modules/unistr/base: Update.
58350
58351 2007-01-27  Bruno Haible  <bruno@clisp.org>
58352
58353         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58354         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58355         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58356         modules/unistr/u32-mbtouc.
58357         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58358         * lib/unistr.h: Update.
58359         * lib/linebreak.c: Update.
58360         * modules/unistr/u32-mbtouc: Renamed from
58361         modules/unistr/u32-mbtouc-safe.
58362         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58363         * lib/unistr.h: Update.
58364         * lib/unistr/u32-to-u8.c: Update.
58365         * lib/unistr/u32-to-u16.c: Update.
58366
58367 2007-01-27  Bruno Haible  <bruno@clisp.org>
58368
58369         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58370         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58371         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58372         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58373         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58374         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58375         modules/unistr/u16-mbtouc.
58376         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58377         * lib/unistr.h: Update.
58378         * lib/linebreak.c: Update.
58379         * modules/linebreak: Update.
58380         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58381         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58382         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58383         * modules/unistr/u16-mbtouc: Renamed from
58384         modules/unistr/u16-mbtouc-safe.
58385         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58386         * lib/unistr.h: Update.
58387         * lib/unistr/u16-to-u8.c: Update.
58388         * modules/unistr/u16-to-u8: Update.
58389         * lib/unistr/u16-to-u32.c: Update.
58390         * modules/unistr/u16-to-u32: Update.
58391
58392 2007-01-27  Bruno Haible  <bruno@clisp.org>
58393
58394         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58395         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58396         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58397         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58398         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58399         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58400         modules/unistr/u8-mbtouc.
58401         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58402         * lib/unistr.h: Update.
58403         * lib/striconveh.c: Update.
58404         * modules/striconveh: Update.
58405         * lib/linebreak.c: Update.
58406         * modules/linebreak: Update.
58407         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58408         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58409         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58410         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58411         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58412         * lib/unistr.h: Update.
58413         * lib/striconveh.c: Update.
58414         * modules/striconveh: Update.
58415         * lib/unistr/u8-to-u16.c: Update.
58416         * modules/unistr/u8-to-u16: Update.
58417         * lib/unistr/u8-to-u32.c: Update.
58418         * modules/unistr/u8-to-u32: Update.
58419
58420 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58421
58422         Sync from Libtool.
58423         * lib/argz.c: Do not include strings.h nor memory.h, include
58424         string.h unconditionally.  Patch by Simon Josefsson.
58425
58426 2007-01-27  Bruno Haible  <bruno@clisp.org>
58427
58428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58429         from gl_HEADER_STRING_H_BODY.
58430         (gl_HEADER_STRING_H_BODY): Require it.
58431         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58432         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58433         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58434         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58435         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58436         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58437         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58438         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58439         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58440         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58441         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58442         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58443         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58444         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58445         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58446
58447 2007-01-27  Bruno Haible  <bruno@clisp.org>
58448
58449         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58450         check_PROGRAMS into noinst_PROGRAMS.
58451         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58452         check_PROGRAMS in this case.
58453         (func_import): Set for_test to false.
58454         (func_create_testdir): Set for_test to true.
58455
58456 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58457             Bruno Haible  <bruno@clisp.org>
58458
58459         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58460         (Depends-on): Add string.
58461         (Includes): Use <string.h> instead of strcasestr.h.
58462         * modules/string (Makefile.am): Also substitute the value of
58463         REPLACE_STRCASESTR.
58464         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58465         assume strcasestr is declared in <string.h> not <strings.h>. Also
58466         set REPLACE_STRCASESTR.
58467         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58468         REPLACE_STRCASESTR.
58469         * lib/strcasestr.h: Remove file.
58470         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
58471         * lib/string_.h (strcasestr): New declaration.
58472
58473 2007-01-27  Bruno Haible  <bruno@clisp.org>
58474
58475         * lib/string_.h: Use 'extern'.
58476
58477 2007-01-27  Jim Meyering  <jim@meyering.net>
58478
58479         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
58480         of set-but-not-used local, "q".
58481
58482         * lib/mempcpy.c: Include <config.h> before <string.h>.
58483         This fixes a compilation error on HP-UX, due to the system's
58484         "restrict"-using mempcpy prototype.
58485
58486 2007-01-26  Bruno Haible  <bruno@clisp.org>
58487
58488         Small optimization.
58489         * lib/javacomp.c: Include c-strstr.h.
58490          (is_envjavac_gcj): Use c_strstr instead of strstr.
58491         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
58492
58493 2007-01-26  Bruno Haible  <bruno@clisp.org>
58494
58495         * MODULES.html.sh (Unicode string functions): Add the new modules.
58496
58497         * modules/uniconv/u32-strconv-to-locale: New file.
58498         * lib/uniconv/u32-strconv-to-locale.c: New file.
58499
58500         * modules/uniconv/u16-strconv-to-locale: New file.
58501         * lib/uniconv/u16-strconv-to-locale.c: New file.
58502
58503         * modules/uniconv/u8-strconv-to-locale: New file.
58504         * lib/uniconv/u8-strconv-to-locale.c: New file.
58505
58506         * modules/uniconv/u32-strconv-from-locale: New file.
58507         * lib/uniconv/u32-strconv-from-locale.c: New file.
58508
58509         * modules/uniconv/u16-strconv-from-locale: New file.
58510         * lib/uniconv/u16-strconv-from-locale.c: New file.
58511
58512         * modules/uniconv/u8-strconv-from-locale: New file.
58513         * lib/uniconv/u8-strconv-from-locale.c: New file.
58514
58515         * modules/uniconv/u32-strconv-to-enc: New file.
58516         * lib/uniconv/u32-strconv-to-enc.c: New file.
58517         * modules/uniconv/u32-strconv-to-enc-tests: New file.
58518         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
58519
58520         * modules/uniconv/u16-strconv-to-enc: New file.
58521         * lib/uniconv/u16-strconv-to-enc.c: New file.
58522         * lib/uniconv/u-strconv-to-enc.h: New file.
58523         * modules/uniconv/u16-strconv-to-enc-tests: New file.
58524         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
58525
58526         * modules/uniconv/u8-strconv-to-enc: New file.
58527         * lib/uniconv/u8-strconv-to-enc.c: New file.
58528         * modules/uniconv/u8-strconv-to-enc-tests: New file.
58529         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
58530
58531         * modules/uniconv/u32-strconv-from-enc: New file.
58532         * lib/uniconv/u32-strconv-from-enc.c: New file.
58533         * modules/uniconv/u32-strconv-from-enc-tests: New file.
58534         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
58535
58536         * modules/uniconv/u16-strconv-from-enc: New file.
58537         * lib/uniconv/u16-strconv-from-enc.c: New file.
58538         * modules/uniconv/u16-strconv-from-enc-tests: New file.
58539         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
58540
58541         * modules/uniconv/u8-strconv-from-enc: New file.
58542         * lib/uniconv/u8-strconv-from-enc.c: New file.
58543         * lib/uniconv/u-strconv-from-enc.h: New file.
58544         * modules/uniconv/u8-strconv-from-enc-tests: New file.
58545         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
58546
58547         * modules/uniconv/u32-conv-from-enc: New file.
58548         * lib/uniconv/u32-conv-from-enc.c: New file.
58549         * modules/uniconv/u32-conv-from-enc-tests: New file.
58550         * tests/uniconv/test-u32-conv-from-enc.c: New file.
58551
58552         * modules/uniconv/u16-conv-from-enc: New file.
58553         * lib/uniconv/u16-conv-from-enc.c: New file.
58554         * lib/uniconv/u-conv-from-enc.h: New file.
58555         * modules/uniconv/u16-conv-from-enc-tests: New file.
58556         * tests/uniconv/test-u16-conv-from-enc.c: New file.
58557
58558         * modules/uniconv/u8-conv-from-enc: New file.
58559         * lib/uniconv/u8-conv-from-enc.c: New file.
58560         * modules/uniconv/u8-conv-from-enc-tests: New file.
58561         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58562
58563         * modules/uniconv/base: New file.
58564         * lib/uniconv.h: New file.
58565
58566 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58567
58568         * doc/gnulib-tool.texi (Initial import): Update to match current
58569         behavior with strdup module.
58570         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58571         * lib/memmem.h: Remove; all uses removed.  This is now done
58572         by <string.h>.
58573         * lib/mempcpy.h: Likewise.
58574         * lib/memrchr.h: Likewise.
58575         * lib/stpcpy.h: Likewise.
58576         * lib/stpncpy.h: Likewise.
58577         * lib/strcase.h: Likewise.
58578         * lib/strchrnul.h: Likewise.
58579         * lib/strdup.h: Likewise.
58580         * lib/strndup.h: Likewise.
58581         * lib/strnlen.h: Likewise.
58582         * lib/strpbrk.h: Likewise.
58583         * lib/strsep.h: Likewise.
58584         * lib/strstr.h: Likewise.
58585         * lib/strtok_r.h: Likewise.
58586         * lib/string_.h: New file.
58587         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58588         Rely on <string.h> instead.
58589         * lib/canon-host.c: Likewise.
58590         * lib/chdir-long.c: Likewise.
58591         * lib/concatpath.c: Likewise.
58592         * lib/exclude.c: Likewise.
58593         * lib/fchdir.c: Likewise.
58594         * lib/getaddrinfo.c: Likewise.
58595         * lib/getcwd.c: Likewise.
58596         * lib/getsubopt.c: Likewise.
58597         * lib/glob.c: Likewise.
58598         * lib/hard-locale.c: Likewise.
58599         * lib/iconvme.c: Likewise.
58600         * lib/javacomp.c: Likewise.
58601         * lib/mempcpy.c: Likewise.
58602         * lib/memrchr.c: Likewise.
58603         * lib/regex_internal.h: Likewise.
58604         * lib/stpncpy.c: Likewise.
58605         * lib/strcasecmp.c: Likewise.
58606         * lib/strchrnul.c: Likewise.
58607         * lib/strdup.c: Likewise.
58608         * lib/striconv.c: Likewise.
58609         * lib/striconveh.c: Likewise.
58610         * lib/striconveha.c: Likewise.
58611         * lib/strncasecmp.c: Likewise.
58612         * lib/strndup.c: Likewise.
58613         * lib/strnlen.c: Likewise.
58614         * lib/strsep.c: Likewise.
58615         * lib/strstr.c: Likewise.
58616         * lib/strtok_r.c: Likewise.
58617         * lib/userspec.c: Likewise.
58618         * lib/w32spawn.h: Likewise.
58619         * lib/xstrndup.c: Likewise.
58620         * lib/mountlist.c (strstr): Remove decl.
58621         * m4/string_h.m4: New file.
58622         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58623         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58624         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58625         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58626         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58627         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58628         Set REPLACE_STRCASECMP if necessary.
58629         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58630         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58631         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58632         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58633         HAVE_DECL_STRDUP if necessary.
58634         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58635         since gl_FUNC_STRNDUP does that now.
58636         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
58637         Check for decl here...
58638         (gl_PREREQ_STRNLEN): ... not here.
58639         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
58640         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
58641         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
58642         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
58643         necessary.
58644         * modules/string: New file.
58645         * modules/memmem (Files): Remove special-purpose include file.
58646         (Depends-on): Add string.
58647         (Include): Include <string.h>, not the removed file.
58648         * modules/mempcpy: Likewise.
58649         * modules/memrchr: Likewise.
58650         * modules/stpcpy: Likewise.
58651         * modules/stpncpy: Likewise.
58652         * modules/strcase: Likewise.
58653         * modules/strchrnul: Likewise.
58654         * modules/strdup: Likewise.
58655         * modules/strndup: Likewise.
58656         * modules/strnlen: Likewise.
58657         * modules/strpbrk: Likewise.
58658         * modules/strsep: Likewise.
58659         * modules/strstr: Likewise.
58660         * modules/strtok_r: Likewise.
58661         * tests/test-dirname.c: Don't include "strdup.h", since
58662         <string.h> now suffices.
58663         * tests/test-memmem.c: Don't include "memmem.h", since
58664         <string.h> now suffices.
58665
58666 2007-01-25  Bruno Haible  <bruno@clisp.org>
58667
58668         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
58669         *resultp is 0.
58670
58671         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
58672         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
58673         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
58674         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
58675
58676         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
58677         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
58678         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
58679         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
58680         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
58681         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
58682
58683 2007-01-24  Bruno Haible  <bruno@clisp.org>
58684
58685         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
58686         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
58687         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
58688         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
58689         gl_FUNC_FTS_CORE.
58690         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
58691         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
58692         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58693         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
58694         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
58695         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
58696         gl_FUNC_FCHOWNAT.
58697         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
58698         gl_FUNC_STRFTIME.
58699         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
58700         Reported by Ralf Wildenhues.
58701
58702 2007-01-24  Bruno Haible  <bruno@clisp.org>
58703
58704         Drop AC_REQUIRE calls that are redundant with the module dependencies.
58705         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
58706         gl_GETADDRINFO.
58707         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
58708         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
58709         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
58710
58711 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
58712
58713         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
58714         Don't use 'exit'; just return from 'main'.
58715         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
58716
58717         * lib/fnmatch_.h: Readjust white space and comments to match
58718         glibc, to avoid spurious diffs.
58719
58720 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58721
58722         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
58723         2004-12-01 change by Jakub Jelinek, since this code won't compile
58724         if !LIBC.  Problem reported by Bob Proulx.
58725
58726 2007-01-23  Bruno Haible  <bruno@clisp.org>
58727
58728         * lib/striconveh.c: Include c-strcaseeq.h.
58729         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
58730         * modules/striconveh (Depends-on): Add c-strcaseeq.
58731
58732 2007-01-23  Bruno Haible  <bruno@clisp.org>
58733
58734         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
58735
58736         * modules/c-strcaseeq: New file.
58737         * lib/c-strcaseeq.h: New file.
58738
58739         * modules/streq: New file.
58740         * lib/streq.h: New file.
58741
58742 2007-01-23  Bruno Haible  <bruno@clisp.org>
58743
58744         * modules/striconveha-tests: New file.
58745         * tests/test-striconveha.c: New file.
58746
58747         * lib/striconveha.h: Include <stdbool.h>.
58748         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
58749         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
58750         (mem_iconveha_notranslit): Renamed from mem_iconveha.
58751         (mem_iconveha): New function.
58752         (str_iconveha_notranslit): Renamed from str_iconveha.
58753         (str_iconveha): New function.
58754         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
58755         c-strcase.
58756
58757 2007-01-23  Bruno Haible  <bruno@clisp.org>
58758
58759         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
58760         encodings without forgiving before trying any encoding with handler.
58761         (str_iconveha): Try all encodings without forgiving before trying any
58762         encoding with handler.
58763
58764 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58765
58766         Import the following changes from libc.
58767
58768         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58769
58770         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
58771
58772         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58773
58774         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
58775         normal_bracket label.
58776
58777         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
58778
58779         [BZ #361]
58780         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
58781         to normal_bracket after fetching the next character.
58782
58783 2007-01-22  Bruno Haible  <bruno@clisp.org>
58784
58785         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
58786         argument.
58787         * lib/striconveh.c (iconv_carefully_1): New function.
58788         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
58789         argument.
58790         (str_cd_iconveh): Update.
58791         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
58792         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
58793         * tests/test-striconveh.c (MAGIC): New macro.
58794         (new_offsets): New function.
58795         (main): Test call with and without offsets.
58796
58797 2007-01-22  Bruno Haible  <bruno@clisp.org>
58798
58799         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
58800         * modules/sys_select (Makefile.am): Likewise.
58801         * modules/sys_socket (Makefile.am): Likewise.
58802         * modules/sys_time (Makefile.am): Likewise.
58803
58804 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58805
58806         * modules/gettimeofday (License): Change from GPL to LGPL, since
58807         gettimeofday is a library function.
58808
58809 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58810
58811         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
58812
58813 2007-01-21  Bruno Haible  <bruno@clisp.org>
58814
58815         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
58816
58817 2007-01-21  Bruno Haible  <bruno@clisp.org>
58818
58819         * modules/striconveha: New file.
58820         * lib/striconveha.h: New file.
58821         * lib/striconveha.c: New file.
58822         * MODULES.html.sh (Internationalization functions): Add striconveha.
58823         * lib/striconv.c (str_iconv): Optimize the case of an empty input
58824         string.
58825         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
58826
58827 2007-01-21  Bruno Haible  <bruno@clisp.org>
58828
58829         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
58830         * lib/striconveh.c (str_iconveh): Likewise.
58831
58832 2007-01-21  Bruno Haible  <bruno@clisp.org>
58833
58834         * lib/striconveh.h (mem_iconveh): New declaration.
58835         * lib/striconveh.c (mem_iconveh): New function.
58836         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
58837
58838 2007-01-21  Bruno Haible  <bruno@clisp.org>
58839
58840         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
58841
58842         * lib/striconveh.h (mem_cd_iconveh): Change specification.
58843         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
58844         original result buffer.
58845         (str_cd_iconveh): Update.
58846         * tests/test-striconveh.c (main): Update.
58847
58848         * lib/striconv.h (mem_cd_iconv): Change specification.
58849         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
58850         result buffer.
58851         (str_cd_iconv): Update.
58852         * tests/test-striconv.c (main): Update.
58853
58854 2007-01-21  Bruno Haible  <bruno@clisp.org>
58855
58856         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
58857
58858 2007-01-20  Jim Meyering  <jim@meyering.net>
58859
58860         * lib/userspec.c (parse_with_separator): If a user or group string
58861         starts with "+", skip the corresponding name-to-ID look-up, since
58862         such a look-up must fail: user and group names may not include "+".
58863
58864 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58865
58866         * lib/poll.c: Include sys/time.h and time.h unconditionally,
58867         since we now assume the sys_time module.
58868         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
58869         check for sys/time.h; no longer needed.
58870         * modules/poll (Depends-on): Depend on sys_time.
58871
58872 2007-01-18  Bruno Haible  <bruno@clisp.org>
58873
58874         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
58875         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58876
58877         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
58878         gettimeofday.
58879
58880         * tests/test-gettimeofday.c: Include <time.h>.
58881         (dummy): Remove variable.
58882
58883         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
58884         gl_HEADER_SYS_TIME_H.
58885         (gl_HEADER_SYS_TIME_H): New macro.
58886
58887         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
58888         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58889         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
58890         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
58891         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58892         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
58893         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
58894         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58895         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
58896         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
58897         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58898
58899         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
58900         last change; it caused a compilation error when cross-compiling to
58901         Cygwin.
58902
58903 2007-01-18  Jim Meyering  <jim@meyering.net>
58904
58905         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
58906         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
58907         than the race-prone "test -d sys || mkdir sys".
58908         (configure.ac): Use AC_PROG_MKDIR_P.
58909         * modules/sys_select: Likewise.
58910         * modules/sys_socket: Likewise.
58911         * modules/sys_time: Likewise.
58912
58913 2007-01-18  Eric Blake  <ebb9@byu.net>
58914
58915         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
58916         replace gettimeofday.
58917         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
58918         name, to avoid infinite recursion.
58919
58920 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
58921
58922         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
58923         module sys_time.
58924         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
58925         assume timespec.h defines struct timeval.
58926         * lib/settime.c: Likewise.
58927         * lib/utimens.c: Likewise.
58928         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
58929         since we now assume the gettimeofday module.
58930         * lib/tempname.c (__gen_tempname): Likewise.
58931         * lib/gettimeofday.h: Remove.
58932         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
58933         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
58934         Include <time.h>, for 'time()'.
58935         (localtime_buffer_addr): Also use this workaround if
58936         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
58937         to simplify the uses.  All uses changed.
58938         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
58939         that #undef is inside {}, and 'const' follows type name consistently.
58940         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
58941         (gettimeofday): Do not use the maximum possible value for
58942         tv->tv_usec, since that might break usages other than ls.c.
58943         Instead, we'll leave ls.c alone.  This undoes today's patch
58944         by Bruno.  Add a compile-time warning for 1s-clock resolution;
58945         we've never observed the problem but might as well keep the
58946         canary.
58947         * lib/nanosleep.c: Include timespec.h first, for interface check.
58948         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
58949         now assume the sys_time module.
58950         * lib/tempname.c: Likewise.
58951         * lib/timespec.h: Likewise.
58952         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
58953         needed.
58954         * lib/strftime.c: Likewise.
58955         * lib/timespec.h: Likewise.
58956         * lib/posixtm.c: Include posixtm.h first, for interface check.
58957         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
58958         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
58959         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
58960         * lib/sys_time_.h: New file.
58961         * lib/timespec.h (struct timespec): Use long int, not long.
58962         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58963         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
58964         Remove obsolescent call to AC_HEADER_TIME.
58965         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58966         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58967         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58968         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
58969         Likewise.
58970         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
58971         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
58972         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
58973         into the sys_time module.  Check for gettimeofday just once.
58974         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
58975         for gettimeofday signature to just check the signature.  Merely
58976         compile it, since linking doesn't test signature.  Improve test for
58977         whether gettimeofday.o is actually needed.
58978         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
58979         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
58980         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
58981         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58982         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
58983         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
58984         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
58985         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
58986         than worrying about sys/time.h.
58987         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58988         Don't bother worrying about TIME_WITH_SYS_TIME.
58989         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
58990         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
58991         * m4/sys_time_h.m4: New file.
58992         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
58993         Don't include sys/time.h.  Return from main rather than exiting.
58994         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
58995         all uses changed.
58996         * modules/gethrxtime (Depends-on): Add sys_time.
58997         * modules/gettime (Depends-on): Likewise.
58998         * modules/gettimeofday (Depends-on): Likewise.
58999         * modules/nanosleep (Depends-on): Likewise.
59000         * modules/settime (Depends-on): Likewise.
59001         * modules/tempname (Depends-on): Likewise.
59002         * modules/utimens (Depends-on): Likewise.
59003         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
59004         (Include): Change back to <sys/time.h>.
59005         (Maintainer): Add self.
59006         * modules/sys_time: New file.
59007         * modules/tempname (Depends-on): Add gettimeofday.
59008         * tests/test-gettimeofday.c: Include <sys/time.h>
59009         rather than gettimeofday.h.
59010
59011 2007-01-17  Bruno Haible  <bruno@clisp.org>
59012
59013         * gnulib-tool (func_get_license): Revert last patch. Instead, let
59014         the license default to GPL.
59015         (func_create_testdir): Don't complain if a module is LGPL and its
59016         tests module depends on GPLed modules.
59017
59018 2007-01-17  Bruno Haible  <bruno@clisp.org>
59019
59020         * lib/gettimeofday.c (gettimeofday): Add code for the case
59021         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
59022         maximum possible value for tv->tv_usec, rather than the minimum one.
59023
59024 2005-10-08  Martin Lambers  <marlam@marlam.de>
59025 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59026 2007-01-16  Bruno Haible  <bruno@clisp.org>
59027
59028         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
59029         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
59030         gl_FUNC_GETTIMEOFDAY.
59031         (Include): Add gettimeofday.h.
59032         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
59033         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
59034         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
59035         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
59036         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
59037         * lib/gettimeofday.h: New file.
59038         * lib/gettimeofday.c: Include <sys/timeb.h>.
59039         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
59040         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59041         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
59042         fall back on time().
59043
59044         * tests/test-gettimeofday.c: New file.
59045         * modules/gettimeofday-tests: New file.
59046
59047 2007-01-16  Eric Blake  <ebb9@byu.net>
59048
59049         * modules/fnmatch (Depends-on): Depend on wchar.
59050         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
59051         * m4/fnmatch.m4: Likewise.
59052         * modules/mbchar (Makefile.am): Assume <wchar.h>.
59053         * m4/mbchar.m4: Likewise.
59054         * modules/mbswidth (Depends-on): Depend on wchar.
59055         * lib/mbswidth.c: Assume <wchar.h>.
59056         * m4/mbswidth.m4: Likewise.
59057         * modules/quotearg (Depends-on): Depend on wchar.
59058         * lib/quotearg.c: Assume <wchar.h>.
59059         * m4/quotearg.m4: Likewise.
59060         * modules/regex (Depends-on): Depend on wchar.
59061         * lib/regex_internal.h: Assume <wchar.h>.
59062         * m4/regex.m4: Likewise.
59063         * modules/stdint (Depends-on): Depend on wchar.
59064         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
59065         * m4/stdint.m4: Likewise.
59066         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
59067         * modules/strftime (Depends-on): Depend on wchar.
59068         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
59069         * modules/strtol (Depends-on): Depend on wchar.
59070         * lib/strtol.c: Assume <wchar.h>.
59071         * modules/wcwidth (Depends-on): Depend on wchar.
59072         * lib/wcwidth.h: Assume <wchar.h>.
59073         * m4/wcwidth.m4: Likewise.
59074
59075 2007-01-16  Bruno Haible  <bruno@clisp.org>
59076
59077         * modules/csharpexec-script: New, created from...
59078         * modules/csharpexec: ... this.
59079
59080 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59081
59082         * modules/javaexec-script: New, created from...
59083         * modules/javaexec: ... this.
59084
59085 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59086
59087         * modules/poll (Dependencies): Add sys_select.
59088
59089 2007-01-15  Jim Meyering  <jim@meyering.net>
59090
59091         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
59092         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
59093         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
59094         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
59095
59096 2007-01-15  Bruno Haible  <bruno@clisp.org>
59097
59098         * modules/striconveh: New file.
59099         * lib/striconveh.h: New file.
59100         * lib/striconveh.c: New file.
59101         * MODULES.html.sh (Internationalization functions): Add striconveh.
59102
59103         * modules/striconveh-tests: New file.
59104         * tests/test-striconveh.c: New file.
59105
59106 2007-01-15  Bruno Haible  <bruno@clisp.org>
59107
59108         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
59109         not from GNU libiconv or GNU libc.
59110
59111 2007-01-15  Bruno Haible  <bruno@clisp.org>
59112
59113         * doc/gnulib-intro.texi (Copyright): Explain the different license
59114         terms for module descriptions, autoconf macros, tests, documentation.
59115
59116 2007-01-14  Bruno Haible  <bruno@clisp.org>
59117
59118         * modules/striconv-tests: New file.
59119         * tests/test-striconv.c: New file.
59120
59121 2007-01-14  Bruno Haible  <bruno@clisp.org>
59122
59123         * modules/iconv-tests: New file.
59124         * tests/test-iconv.c: New file.
59125
59126 2007-01-14  Bruno Haible  <bruno@clisp.org>
59127
59128         * gnulib-tool (func_get_license): For test modules, use the license of
59129         the main module.
59130
59131 2007-01-14  Bruno Haible  <bruno@clisp.org>
59132
59133         * modules/iconv (Include): Clarify that <iconv.h> can only be included
59134         if iconv is found to exist.
59135
59136 2007-01-14  Bruno Haible  <bruno@clisp.org>
59137
59138         * modules/c-ctype-tests: New file.
59139         * tests/test-c-ctype.c: New file.
59140
59141 2007-01-14  Bruno Haible  <bruno@clisp.org>
59142
59143         * modules/binary-io-tests: New file.
59144         * tests/test-binary-io.sh: New file.
59145         * tests/test-binary-io.c: New file.
59146
59147 2007-01-14  Bruno Haible  <bruno@clisp.org>
59148
59149         * modules/array-oset-tests: New file.
59150         * tests/test-array_oset.c: New file.
59151
59152 2007-01-14  Bruno Haible  <bruno@clisp.org>
59153
59154         * modules/array-list-tests: New file.
59155         * tests/test-array_list.c: New file.
59156
59157 2007-01-14  Bruno Haible  <bruno@clisp.org>
59158
59159         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
59160         and make.
59161         Reported by Simon Josefsson in
59162         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
59163
59164 2007-01-14  Bruno Haible  <bruno@clisp.org>
59165
59166         * modules/allocsa-tests: New file.
59167         * tests/test-allocsa.c: New file.
59168
59169 2007-01-14  Bruno Haible  <bruno@clisp.org>
59170
59171         * modules/fchdir (Depends-on): Add absolute-header.
59172         * modules/unistd (Depends-on): Likewise.
59173
59174 2006-12-30  Bruno Haible  <bruno@clisp.org>
59175
59176         * modules/fchdir: New file.
59177         * modules/unistd (Files): Add lib/unistd_.h.
59178         (Makefile.am): Generate unistd.h from unistd_.h.
59179         * lib/fchdir.c: New file.
59180         * lib/dirent_.h: New file.
59181         * lib/unistd_.h: New file.
59182         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
59183         * m4/fchdir.m4: New file.
59184         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
59185         (gl_HEADER_UNISTD): Invoke it.
59186         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
59187         function.
59188         * lib/backupfile.c (opendir, closedir): Undefine.
59189         * lib/chown.c (open, close): Undefine.
59190         * lib/clean-temp.c (open, close): Undefine.
59191         * lib/copy-file.c (open, close): Undefine.
59192         * lib/execute.c (open, close): Undefine.
59193         * lib/fsusage.c (open, close): Undefine.
59194         * lib/gc-gnulib.c (open, close): Undefine.
59195         * lib/getcwd.c (opendir, closedir): Undefine.
59196         * lib/glob.c (opendir, closedir): Undefine.
59197         * lib/javacomp.c (open, close): Undefine.
59198         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
59199         * lib/openat-proc.c (open, close): Undefine.
59200         * lib/pagealign_alloc.c (open, close): Undefine.
59201         * lib/pipe.c (open, close): Undefine.
59202         * lib/progreloc.c (open, close): Undefine.
59203         * lib/savedir.c (opendir, closedir): Undefine.
59204         * lib/utime.c (open, close): Undefine.
59205         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
59206
59207 2007-01-10  Bruno Haible  <bruno@clisp.org>
59208
59209         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
59210
59211 2007-01-12  Eric Blake  <ebb9@byu.net>
59212
59213         Provide a robust <wchar.h>.  Further simplifications are now
59214         possible in other modules, but not included here.
59215         * modules/wchar: New module.
59216         * m4/wchar.m4: New file.
59217         * lib/wchar_.h: Likewise.
59218         * modules/mbchar (Depends-on): Depend on wchar, as the first use
59219         of the new module.
59220         * MODULES.html.sh (Extended multibyte and wide character utilities):
59221         New section.
59222
59223 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
59224
59225         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
59226         to a reasonable default for memory allocation.
59227         (xreadlink): Don't allocate a huge buffer, to work around a buggy
59228         file system that reports garbage st_size values for symlinks.
59229         Problem reported by Liyang Hu.
59230
59231 2007-01-11  Simon Josefsson  <simon@josefsson.org>
59232
59233         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
59234         Emacs .#* auto-save files).
59235
59236 2007-01-11  Bruno Haible  <bruno@clisp.org>
59237
59238         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
59239         directory.
59240
59241 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59242
59243         Use @...@ consistently in lib/wctype_.h.
59244         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
59245         on it being set to 1 or 0.
59246         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
59247         go back to AC_SUBSTing it.
59248         * modules/wctype (Makefile.am): Undo previous change.
59249
59250 2007-01-10  Eric Blake  <ebb9@byu.net>
59251
59252         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59253         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59254         * modules/wctype (Makefile.am): Likewise.
59255         Reported by Chris McGuire.
59256
59257 2007-01-10  Jim Meyering  <jim@meyering.net>
59258
59259         fts.c: a small readability/maintainability improvement
59260         * lib/fts.c (fts_read): Make this code slightly more readable and
59261         maintainable by hoisting the "sp->fts_cur = p" assignments to
59262         immediately follow the statements that set P.  Derived from
59263         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59264
59265 2007-01-10  Eric Blake  <ebb9@byu.net>
59266
59267         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59268         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59269         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59270         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59271         Reported by Chris McGuire.
59272
59273 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59274
59275         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59276         in sed script.
59277
59278 2007-01-09  Bruno Haible  <bruno@clisp.org>
59279
59280         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59281         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59282         variables.
59283         (func_module): Use them.
59284
59285 2007-01-09  Bruno Haible  <bruno@clisp.org>
59286
59287         * modules/unistr/base: New file.
59288         * lib/unistr.h: New file.
59289
59290         * modules/unistr/u8-to-u16: New file.
59291         * lib/unistr/u8-to-u16.c: New file.
59292
59293         * modules/unistr/u8-to-u32: New file.
59294         * lib/unistr/u8-to-u32.c: New file.
59295
59296         * modules/unistr/u16-to-u8: New file.
59297         * lib/unistr/u16-to-u8.c: New file.
59298
59299         * modules/unistr/u16-to-u32: New file.
59300         * lib/unistr/u16-to-u32.c: New file.
59301
59302         * modules/unistr/u32-to-u8: New file.
59303         * lib/unistr/u32-to-u8.c: New file.
59304
59305         * modules/unistr/u32-to-u16: New file.
59306         * lib/unistr/u32-to-u16.c: New file.
59307
59308         * modules/unistr/u8-check: New file.
59309         * modules/unistr/u16-check: New file.
59310         * modules/unistr/u32-check: New file.
59311         * lib/unistr/u8-check.c: New file.
59312         * lib/unistr/u16-check.c: New file.
59313         * lib/unistr/u32-check.c: New file.
59314
59315         * modules/unistr/u8-chr: New file.
59316         * modules/unistr/u16-chr: New file.
59317         * modules/unistr/u32-chr: New file.
59318         * lib/unistr/u8-chr.c: New file.
59319         * lib/unistr/u16-chr.c: New file.
59320         * lib/unistr/u32-chr.c: New file.
59321
59322         * modules/unistr/u8-cmp: New file.
59323         * modules/unistr/u16-cmp: New file.
59324         * modules/unistr/u32-cmp: New file.
59325         * lib/unistr/u8-cmp.c: New file.
59326         * lib/unistr/u16-cmp.c: New file.
59327         * lib/unistr/u32-cmp.c: New file.
59328
59329         * modules/unistr/u8-cpy: New file.
59330         * modules/unistr/u16-cpy: New file.
59331         * modules/unistr/u32-cpy: New file.
59332         * lib/unistr/u8-cpy.c: New file.
59333         * lib/unistr/u16-cpy.c: New file.
59334         * lib/unistr/u32-cpy.c: New file.
59335         * lib/unistr/u-cpy.h: New file.
59336
59337         * modules/unistr/u8-cpy-alloc: New file.
59338         * modules/unistr/u16-cpy-alloc: New file.
59339         * modules/unistr/u32-cpy-alloc: New file.
59340         * lib/unistr/u8-cpy-alloc.c: New file.
59341         * lib/unistr/u16-cpy-alloc.c: New file.
59342         * lib/unistr/u32-cpy-alloc.c: New file.
59343         * lib/unistr/u-cpy-alloc.h: New file.
59344
59345         * modules/unistr/u8-endswith: New file.
59346         * modules/unistr/u16-endswith: New file.
59347         * modules/unistr/u32-endswith: New file.
59348         * lib/unistr/u8-endswith.c: New file.
59349         * lib/unistr/u16-endswith.c: New file.
59350         * lib/unistr/u32-endswith.c: New file.
59351         * lib/unistr/u-endswith.h: New file.
59352
59353         * modules/unistr/u8-mblen: New file.
59354         * modules/unistr/u16-mblen: New file.
59355         * modules/unistr/u32-mblen: New file.
59356         * lib/unistr/u8-mblen.c: New file.
59357         * lib/unistr/u16-mblen.c: New file.
59358         * lib/unistr/u32-mblen.c: New file.
59359
59360         * modules/unistr/u8-mbtouc: New file.
59361         * modules/unistr/u16-mbtouc: New file.
59362         * modules/unistr/u32-mbtouc: New file.
59363         * lib/unistr/u8-mbtouc.c: New file.
59364         * lib/unistr/u16-mbtouc.c: New file.
59365         * lib/unistr/u32-mbtouc.c: New file.
59366
59367         * modules/unistr/u8-mbtouc-safe: New file.
59368         * modules/unistr/u16-mbtouc-safe: New file.
59369         * modules/unistr/u32-mbtouc-safe: New file.
59370         * lib/unistr/u8-mbtouc-safe.c: New file.
59371         * lib/unistr/u16-mbtouc-safe.c: New file.
59372         * lib/unistr/u32-mbtouc-safe.c: New file.
59373
59374         * modules/unistr/u8-move: New file.
59375         * modules/unistr/u16-move: New file.
59376         * modules/unistr/u32-move: New file.
59377         * lib/unistr/u8-move.c: New file.
59378         * lib/unistr/u16-move.c: New file.
59379         * lib/unistr/u32-move.c: New file.
59380         * lib/unistr/u-move.h: New file.
59381
59382         * modules/unistr/u8-next: New file.
59383         * modules/unistr/u16-next: New file.
59384         * modules/unistr/u32-next: New file.
59385         * lib/unistr/u8-next.c: New file.
59386         * lib/unistr/u16-next.c: New file.
59387         * lib/unistr/u32-next.c: New file.
59388
59389         * modules/unistr/u8-prev: New file.
59390         * modules/unistr/u16-prev: New file.
59391         * modules/unistr/u32-prev: New file.
59392         * lib/unistr/u8-prev.c: New file.
59393         * lib/unistr/u16-prev.c: New file.
59394         * lib/unistr/u32-prev.c: New file.
59395
59396         * modules/unistr/u8-set: New file.
59397         * modules/unistr/u16-set: New file.
59398         * modules/unistr/u32-set: New file.
59399         * lib/unistr/u8-set.c: New file.
59400         * lib/unistr/u16-set.c: New file.
59401         * lib/unistr/u32-set.c: New file.
59402         * lib/unistr/u-set.h: New file.
59403
59404         * modules/unistr/u8-startswith: New file.
59405         * modules/unistr/u16-startswith: New file.
59406         * modules/unistr/u32-startswith: New file.
59407         * lib/unistr/u8-startswith.c: New file.
59408         * lib/unistr/u16-startswith.c: New file.
59409         * lib/unistr/u32-startswith.c: New file.
59410         * lib/unistr/u-startswith.h: New file.
59411
59412         * modules/unistr/u8-stpcpy: New file.
59413         * modules/unistr/u16-stpcpy: New file.
59414         * modules/unistr/u32-stpcpy: New file.
59415         * lib/unistr/u8-stpcpy.c: New file.
59416         * lib/unistr/u16-stpcpy.c: New file.
59417         * lib/unistr/u32-stpcpy.c: New file.
59418         * lib/unistr/u-stpcpy.h: New file.
59419
59420         * modules/unistr/u8-stpncpy: New file.
59421         * modules/unistr/u16-stpncpy: New file.
59422         * modules/unistr/u32-stpncpy: New file.
59423         * lib/unistr/u8-stpncpy.c: New file.
59424         * lib/unistr/u16-stpncpy.c: New file.
59425         * lib/unistr/u32-stpncpy.c: New file.
59426         * lib/unistr/u-stpncpy.h: New file.
59427
59428         * modules/unistr/u8-strcat: New file.
59429         * modules/unistr/u16-strcat: New file.
59430         * modules/unistr/u32-strcat: New file.
59431         * lib/unistr/u8-strcat.c: New file.
59432         * lib/unistr/u16-strcat.c: New file.
59433         * lib/unistr/u32-strcat.c: New file.
59434         * lib/unistr/u-strcat.h: New file.
59435
59436         * modules/unistr/u8-strchr: New file.
59437         * modules/unistr/u16-strchr: New file.
59438         * modules/unistr/u32-strchr: New file.
59439         * lib/unistr/u8-strchr.c: New file.
59440         * lib/unistr/u16-strchr.c: New file.
59441         * lib/unistr/u32-strchr.c: New file.
59442
59443         * modules/unistr/u8-strcmp: New file.
59444         * modules/unistr/u16-strcmp: New file.
59445         * modules/unistr/u32-strcmp: New file.
59446         * lib/unistr/u8-strcmp.c: New file.
59447         * lib/unistr/u16-strcmp.c: New file.
59448         * lib/unistr/u32-strcmp.c: New file.
59449
59450         * modules/unistr/u8-strcpy: New file.
59451         * modules/unistr/u16-strcpy: New file.
59452         * modules/unistr/u32-strcpy: New file.
59453         * lib/unistr/u8-strcpy.c: New file.
59454         * lib/unistr/u16-strcpy.c: New file.
59455         * lib/unistr/u32-strcpy.c: New file.
59456         * lib/unistr/u-strcpy.h: New file.
59457
59458         * modules/unistr/u8-strcspn: New file.
59459         * modules/unistr/u16-strcspn: New file.
59460         * modules/unistr/u32-strcspn: New file.
59461         * lib/unistr/u8-strcspn.c: New file.
59462         * lib/unistr/u16-strcspn.c: New file.
59463         * lib/unistr/u32-strcspn.c: New file.
59464         * lib/unistr/u-strcspn.h: New file.
59465
59466         * modules/unistr/u8-strdup: New file.
59467         * modules/unistr/u16-strdup: New file.
59468         * modules/unistr/u32-strdup: New file.
59469         * lib/unistr/u8-strdup.c: New file.
59470         * lib/unistr/u16-strdup.c: New file.
59471         * lib/unistr/u32-strdup.c: New file.
59472         * lib/unistr/u-strdup.h: New file.
59473
59474         * modules/unistr/u8-strlen: New file.
59475         * modules/unistr/u16-strlen: New file.
59476         * modules/unistr/u32-strlen: New file.
59477         * lib/unistr/u8-strlen.c: New file.
59478         * lib/unistr/u16-strlen.c: New file.
59479         * lib/unistr/u32-strlen.c: New file.
59480         * lib/unistr/u-strlen.h: New file.
59481
59482         * modules/unistr/u8-strmblen: New file.
59483         * modules/unistr/u16-strmblen: New file.
59484         * modules/unistr/u32-strmblen: New file.
59485         * lib/unistr/u8-strmblen.c: New file.
59486         * lib/unistr/u16-strmblen.c: New file.
59487         * lib/unistr/u32-strmblen.c: New file.
59488
59489         * modules/unistr/u8-strmbtouc: New file.
59490         * modules/unistr/u16-strmbtouc: New file.
59491         * modules/unistr/u32-strmbtouc: New file.
59492         * lib/unistr/u8-strmbtouc.c: New file.
59493         * lib/unistr/u16-strmbtouc.c: New file.
59494         * lib/unistr/u32-strmbtouc.c: New file.
59495
59496         * modules/unistr/u8-strncat: New file.
59497         * modules/unistr/u16-strncat: New file.
59498         * modules/unistr/u32-strncat: New file.
59499         * lib/unistr/u8-strncat.c: New file.
59500         * lib/unistr/u16-strncat.c: New file.
59501         * lib/unistr/u32-strncat.c: New file.
59502         * lib/unistr/u-strncat.h: New file.
59503
59504         * modules/unistr/u8-strncmp: New file.
59505         * modules/unistr/u16-strncmp: New file.
59506         * modules/unistr/u32-strncmp: New file.
59507         * lib/unistr/u8-strncmp.c: New file.
59508         * lib/unistr/u16-strncmp.c: New file.
59509         * lib/unistr/u32-strncmp.c: New file.
59510
59511         * modules/unistr/u8-strncpy: New file.
59512         * modules/unistr/u16-strncpy: New file.
59513         * modules/unistr/u32-strncpy: New file.
59514         * lib/unistr/u8-strncpy.c: New file.
59515         * lib/unistr/u16-strncpy.c: New file.
59516         * lib/unistr/u32-strncpy.c: New file.
59517         * lib/unistr/u-strncpy.h: New file.
59518
59519         * modules/unistr/u8-strnlen: New file.
59520         * modules/unistr/u16-strnlen: New file.
59521         * modules/unistr/u32-strnlen: New file.
59522         * lib/unistr/u8-strnlen.c: New file.
59523         * lib/unistr/u16-strnlen.c: New file.
59524         * lib/unistr/u32-strnlen.c: New file.
59525         * lib/unistr/u-strnlen.h: New file.
59526
59527         * modules/unistr/u8-strpbrk: New file.
59528         * modules/unistr/u16-strpbrk: New file.
59529         * modules/unistr/u32-strpbrk: New file.
59530         * lib/unistr/u8-strpbrk.c: New file.
59531         * lib/unistr/u16-strpbrk.c: New file.
59532         * lib/unistr/u32-strpbrk.c: New file.
59533         * lib/unistr/u-strpbrk.h: New file.
59534
59535         * modules/unistr/u8-strrchr: New file.
59536         * modules/unistr/u16-strrchr: New file.
59537         * modules/unistr/u32-strrchr: New file.
59538         * lib/unistr/u8-strrchr.c: New file.
59539         * lib/unistr/u16-strrchr.c: New file.
59540         * lib/unistr/u32-strrchr.c: New file.
59541
59542         * modules/unistr/u8-strspn: New file.
59543         * modules/unistr/u16-strspn: New file.
59544         * modules/unistr/u32-strspn: New file.
59545         * lib/unistr/u8-strspn.c: New file.
59546         * lib/unistr/u16-strspn.c: New file.
59547         * lib/unistr/u32-strspn.c: New file.
59548         * lib/unistr/u-strspn.h: New file.
59549
59550         * modules/unistr/u8-strstr: New file.
59551         * modules/unistr/u16-strstr: New file.
59552         * modules/unistr/u32-strstr: New file.
59553         * lib/unistr/u8-strstr.c: New file.
59554         * lib/unistr/u16-strstr.c: New file.
59555         * lib/unistr/u32-strstr.c: New file.
59556         * lib/unistr/u-strstr.h: New file.
59557
59558         * modules/unistr/u8-strtok: New file.
59559         * modules/unistr/u16-strtok: New file.
59560         * modules/unistr/u32-strtok: New file.
59561         * lib/unistr/u8-strtok.c: New file.
59562         * lib/unistr/u16-strtok.c: New file.
59563         * lib/unistr/u32-strtok.c: New file.
59564         * lib/unistr/u-strtok.h: New file.
59565
59566         * modules/unistr/u8-uctomb: New file.
59567         * modules/unistr/u16-uctomb: New file.
59568         * modules/unistr/u32-uctomb: New file.
59569         * lib/unistr/u8-uctomb.c: New file.
59570         * lib/unistr/u16-uctomb.c: New file.
59571         * lib/unistr/u32-uctomb.c: New file.
59572
59573         * MODULES.html.sh (Unicode string functions): Add the new modules.
59574
59575 2007-01-08  Bruno Haible  <bruno@clisp.org>
59576
59577         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59578         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59579         subdirectories.
59580
59581 2007-01-08  Karl Berry  <karl@gnu.org>
59582
59583         * doc/error.texi: mention that main() fns must set program_name
59584         when progname is used.
59585
59586 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59587
59588         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59589         WCTYPE_H is empty, for the benefit of builds from non-distclean
59590         directories.  Problem reported by Eric Blake in
59591         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59592
59593 2007-01-08  Bruno Haible  <bruno@clisp.org>
59594
59595         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59596         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59597         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59598         PROVIDE_CANONICALIZE_FILENAME_MODE.
59599         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59600
59601 2007-01-08  Bruno Haible  <bruno@clisp.org>
59602
59603         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59604         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59605         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59606         * lib/fts.c: Likewise.
59607         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59608
59609 2006-12-25  Bruno Haible  <bruno@clisp.org>
59610
59611         * modules/utf8-ucs4-safe: New file.
59612         * lib/utf8-ucs4-safe.h: New file.
59613         * lib/unistr/utf8-ucs4-safe.c: New file.
59614
59615         * modules/utf16-ucs4-safe: New file.
59616         * lib/utf16-ucs4-safe.h: New file.
59617         * lib/unistr/utf16-ucs4-safe.c: New file.
59618
59619         * MODULES.html.sh (Unicode string functions): Add the new modules.
59620
59621 2007-01-08  Bruno Haible  <bruno@clisp.org>
59622
59623         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59624         (Depends-on): Add unitypes.
59625         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59626         (u8_mbtouc_aux): Move out to separate file.
59627         (u8_mbtouc): Use ucs4_t, uint8_t types.
59628         * lib/unistr/utf8-ucs4.c: New file.
59629
59630         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59631         (Depends-on): Add unitypes.
59632         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59633         (u16_mbtouc_aux): Move out to separate file.
59634         (u16_mbtouc): Use ucs4_t, uint16_t types.
59635         * lib/unistr/utf16-ucs4.c: New file.
59636
59637         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
59638         (Depends-on): Add unitypes.
59639         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
59640         (u8_uctomb_aux): Move out to separate file.
59641         (u8_uctomb): Use ucs4_t, uint8_t types.
59642         * lib/unistr/ucs4-utf8.c: New file.
59643
59644         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
59645         (Depends-on): Add unitypes.
59646         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
59647         (u16_uctomb_aux): Move out to separate file.
59648         (u16_uctomb): Use ucs4_t, uint16_t types.
59649         * lib/unistr/ucs4-utf16.c: New file.
59650
59651 2006-12-25  Bruno Haible  <bruno@clisp.org>
59652
59653         * modules/unitypes: New file.
59654         * lib/unitypes.h: New file.
59655         * MODULES.html.sh (func_all_modules): New section "Unicode string
59656         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
59657         this section. Add unitypes.
59658
59659 2007-01-08  Bruno Haible  <bruno@clisp.org>
59660
59661         Avoid variable names that conflict with those from libtool.
59662         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
59663         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
59664         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
59665         library_names_spec to acl_library_names_spec, hardcode_* to
59666         acl_hardcode_*.
59667         Reported by Ralf Wildenhues.
59668
59669 2007-01-08  Bruno Haible  <bruno@clisp.org>
59670
59671         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
59672         definition.
59673         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
59674         definition.
59675         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
59676         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
59677         definition.
59678         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
59679         definition.
59680         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
59681         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
59682         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
59683         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
59684         definition.
59685         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
59686         definition.
59687         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
59688         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
59689         GC_USE_<algorithm>.
59690         * lib/gc-libgcrypt.c: Likewise.
59691         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
59692         * modules/gc-arctwo (configure.ac): Likewise.
59693         * modules/gc-des (configure.ac): Likewise.
59694         * modules/gc-hmac-md5 (configure.ac): Likewise.
59695         * modules/gc-hmac-sha1 (configure.ac): Likewise.
59696         * modules/gc-md2 (configure.ac): Likewise.
59697         * modules/gc-md4 (configure.ac): Likewise.
59698         * modules/gc-md5 (configure.ac): Likewise.
59699         * modules/gc-random (configure.ac): Likewise.
59700         * modules/gc-rijndael (configure.ac): Likewise.
59701         * modules/gc-sha1 (configure.ac): Likewise.
59702
59703 2007-01-08  Bruno Haible  <bruno@clisp.org>
59704
59705         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
59706         macro definition.
59707         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
59708         definition.
59709         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
59710         definition.
59711         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
59712         * modules/fcntl-safer (configure.ac): Likewise.
59713         * modules/fopen-safer (configure.ac): Likewise.
59714         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
59715         GNULIB_FWRITEERROR macro definition.
59716
59717 2007-01-08  Bruno Haible  <bruno@clisp.org>
59718
59719         * m4/gnulib-common.m4: New file.
59720         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
59721         (func_get_filelist): Add m4/gnulib-common.m4.
59722
59723 2007-01-08  Bruno Haible  <bruno@clisp.org>
59724
59725         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
59726         command.
59727
59728 2007-01-08  Jim Meyering  <jim@meyering.net>
59729
59730         Use a more robust test for a "can't happen" condition.
59731         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
59732         narrowed the st_size value.  Presuming the "can't happen" condition
59733         is true, that narrowing could conceivably convert an invalid st_size
59734         value into a valid one.  Instead, use a change based on Matthew
59735         Woehlke's original patch.
59736
59737         Slight readability improvement: use an assert-like macro
59738         in place of literal "abort ()" uses.
59739         * lib/fts.c (fts_assert): Define.
59740         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
59741         Use this macro instead of a bare 'abort'.
59742
59743 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
59744
59745         Don't worry about using IRIX 5.3's wctype.h broken definitions;
59746         simply work around them.
59747         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
59748         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
59749         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
59750         declaring.
59751         Don't bother to define as macros, since the standard doesn't require it.
59752         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
59753         longer worry about IRIX 5.3.
59754         (HAVE_WCTYPE_CTMP_BUG): Remove.
59755
59756 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59757
59758         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
59759         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
59760         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59761         Problems reported by Georg Schwarz for IRIX 5.3.
59762
59763         * gnulib-tool (autoconf_minversion): Take the maximum version number
59764         found, not the minimum.  Problem reported by James Youngman.
59765
59766 2007-01-03  Karl Berry  <karl@gnu.org>
59767
59768         * doc/error.texi: new file, explaining interaction with progname.
59769         * doc/gnulib.texi: include it.  Update copyright.
59770
59771 2007-01-03  Simon Josefsson  <simon@josefsson.org>
59772
59773         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
59774         AC_CANONICAL_HOST, to improve autobuild outputs.
59775
59776 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
59777             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59778
59779         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
59780         sockets, server sockets, and other file descriptors.  Count errors
59781         to compute the return value.  Reorder the code a bit to be easier
59782         to follow.  Don't set event bits that were not requested (except
59783         POLLERR and POLLHUP).
59784
59785 2007-01-01  Bruno Haible  <bruno@clisp.org>
59786
59787         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
59788
59789 2007-01-03  Jim Meyering  <jim@meyering.net>
59790
59791         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
59792
59793 2007-01-02  Bruno Haible  <bruno@clisp.org>
59794
59795         * modules/settime (Include): Require timespec.h.
59796         * modules/nanosleep (Include): Likewise.
59797
59798 2007-01-01  Bruno Haible  <bruno@clisp.org>
59799
59800         * gnulib-tool (func_emit_copyright_notice): Bump year.
59801         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
59802
59803 2007-01-01  Bruno Haible  <bruno@clisp.org>
59804
59805         Improve support for OpenBSD.
59806         * build-aux/config.rpath (libname_spec): Export.
59807         (library_names_spec): New variable. Export.
59808         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
59809         library_names_spec from the config.rpath output. Locate shared library
59810         through the name pattern in library_names_spec.
59811
59812 2007-01-01  Eric Blake  <ebb9@byu.net>
59813
59814         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
59815
59816 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
59817
59818         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
59819         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
59820         assume the C locale, and avoid an "eval" that could cause trouble.
59821         Problem with SORT reported by Bob Proulx.
59822
59823         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
59824         Define.  Trivial patch from Henning Nielsen Lund, originally
59825         sent to bug-grep@gnu.org today.
59826
59827 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59828
59829         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
59830         struct stat.  Problem reported by Henning Nielsen Lund.
59831         * lib/acl.c: Include acl.h first, to check interface.  Don't
59832         bother to include sys/types.h and sys/stat.h again.
59833
59834 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59835
59836         Import the following change from libc; problem reported by
59837         Sven Verdoolaege.
59838
59839         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
59840
59841         [BZ #1373]
59842         * lib/argp.h: Remove __NTH for __argp_usage inline function.
59843
59844 2006-12-28  Jim Meyering  <jim@meyering.net>
59845
59846         * build-aux/announce-gen: Do not assume that the package
59847         builds any of tar.gz, tar.bz2, and .xdelta files.
59848         Suggestion from Simon Josefsson.
59849
59850 2006-12-28  Simon Josefsson  <simon@josefsson.org>
59851
59852         * modules/announce-gen: New file.
59853
59854 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
59855
59856         * lib/mbchar.h: Just include <wctype.h>; the wctype module
59857         handles its gotchas now.
59858         * lib/mbswidth.c: Likewise.
59859         * lib/wcwidth.h: Likewise.
59860         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
59861         and iswcntrl; the wctype module does this stuff now.
59862         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59864         * modules/mbchar (Depends-on): Add wctype.
59865         * modules/mbswidth (Depends-on): Likewise.
59866         * modules/wcwidth (Depends-on): Likewise.
59867
59868 2006-12-27  Eric Blake  <ebb9@byu.net>
59869
59870         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
59871         module uses more than what <wctype.h> is required to provide.
59872
59873 2006-12-26  Eric Blake  <ebb9@byu.net>
59874
59875         * gnulib-tool (sed_extract_prog): Avoid space-tab.
59876
59877 2006-12-26  Eric Blake  <ebb9@byu.net>
59878
59879         * modules/absolute-header: New module.
59880         * modules/fcntl (Depends-on): Depend on it.
59881         * modules/inttypes (Depends-on): Likewise.
59882         * modules/stdint (Depends-on): Likewise.
59883         * modules/sys_stat (Depends-on): Likewise.
59884         * modules/wctype (Depends-on): Likewise.
59885         * MODULES.html.sh (Support for building libraries and
59886         executables): Document it.
59887
59888 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59889
59890         * gnulib-tool (SED): Remove, undoing previous change.
59891         The problem was that it broke coreutils on Solaris, because
59892         "sed --posix" leaked into a makefile.
59893         (sed): New alias, if 'alias' and GNU sed.
59894
59895 2006-12-24  Jim Meyering  <jim@meyering.net>
59896
59897         Work around an fchownat bug in glibc-2.4:
59898         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
59899         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
59900         in spite of the -P option.
59901         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
59902         New macros.
59903         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
59904         * modules/openat (Files): Add lib/fchownat.c.
59905         * lib/openat.c (fchownat): Don't define here.  Move to...
59906         * lib/fchownat.c: ...this new file.
59907
59908 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59909
59910         Fix bug reported by Bruno Haible in
59911         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
59912         where quotearg.c didn't compile on Mac OS X 10.2 because it
59913         lacks <wchar.h> and wint_t.
59914         * lib/wctype_.h (__wctype_wint_t): New type.
59915         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
59916         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
59917         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
59918         Arg is now of type __wctype_wint_t, not wint_t.
59919         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
59920         substitute HAVE_WINT_T.
59921         * modules/wctype (Files): Add m4/wint_t.m4.
59922         (wctype.h): Substitute HAVE_WINT_T.
59923
59924 2006-12-23  Bruno Haible  <bruno@clisp.org>
59925
59926         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
59927
59928 2006-12-23  Bruno Haible  <bruno@clisp.org>
59929
59930         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
59931         S_ISLNK.
59932         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
59933         mingw.
59934
59935 2006-12-22  Bruno Haible  <bruno@clisp.org>
59936
59937         * lib/copy-file.c: Include acl.h.
59938         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
59939         Close the file descriptors only after being done with copy_acl.
59940         * modules/copy-file (Depends-on): Add acl.
59941
59942 2006-12-22  Bruno Haible  <bruno@clisp.org>
59943
59944         * gnulib-tool (SED): New variable.
59945         Use $SED instead of sed everywhere.
59946
59947 2006-12-22  Bruno Haible  <bruno@clisp.org>
59948
59949         * modules/no-c++: New file.
59950         * m4/no-c++.m4: New file.
59951         * MODULES.html.sh (Support for building libraries and executables):
59952         Add no-c++.
59953
59954 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59955
59956         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59957         Include <limits.h>, and use its INT_MAX to rewrite the
59958         j loop so that it does not overflow 'int'.  Problem reported by
59959         Ralf Wildenhues in
59960         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
59961         Play it safe by shifting left by 1 rather than multiplying by 2,
59962         as GCC is less likely to optimize this away when the value
59963         is signed (when it assumes overflow leads to undefined behavior).
59964         Also, don't assume time_t uses two's complement.
59965
59966 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59967
59968         * MODULES.html.sh: New module wctype.
59969         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
59970         * lib/fnmatch.c: Don't bother to include <wchar.h> before
59971         <wctype.h>, since the new wctype module should fix this.
59972         * lib/quotearg.c: Include <wctype.h> unconditionally, since
59973         the wctype module should arrange for it.
59974         * lib/regex_internal.h: Likewise.
59975         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
59976         since the wctype module should handle this now.
59977         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
59978         * modules/fnmatch (Depends-on): Add wctype.
59979         * modules/quotearg (Depends-on): Likewise.
59980         * modules/regex (Depends-on): Likewise.
59981
59982 2006-12-19  Bruno Haible  <bruno@clisp.org>
59983
59984         * lib/strdup.h [C++]: Wrap definitions in extern "C".
59985         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
59986
59987 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59988
59989         * modules/savewd (Depends-on): Fix dependency on fcntl.
59990
59991 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59992
59993         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
59994         conforms to C99, rather than relying on the user's environment
59995         setting of STDINT_H.
59996
59997 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59998         and Eric Blake  <ebb9@byu.net>
59999
60000         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
60001         This is more consistent with the other defines here.
60002         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
60003         Port to z/OS.  Problem reported by Paul Gilmartin.
60004         Change local vars to use gl_ prefix rather than ac_.
60005         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
60006         with other defines.
60007         * modules/double-slash-root: New module.
60008         * modules/dirname (Files): Remove m4/double-slash-root.m4.
60009         (Depends-on): Add double-slash-root.
60010         * MODULES.html.sh (File system functions): Mention new module.
60011
60012 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
60013
60014         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
60015         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
60016         This is for the benefit of gzip, which doesn't do i18n.
60017
60018 2006-12-12  Jim Meyering  <jim@meyering.net>
60019
60020         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
60021         Reported by Andreas Schwab <schwab@suse.de>.
60022
60023 2006-12-12  Bruno Haible  <bruno@clisp.org>
60024
60025         Merge these changes.
60026         2006-09-05  Bruno Haible  <bruno@clisp.org>
60027         * lib/iconvme.c (iconv_string): No need to save and restore errno when
60028         iconv_alloc succeeded.
60029         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
60030         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
60031         test for " && dest " at the end - dest is always != NULL there. Call
60032         iconv with 4xNULL arguments initially, to reset the state. Call iconv
60033         with 2xNULL arguments, also to flush the state storage. Handle the
60034         IRIX iconv behaviour. Realloc the final result, to throw away unused
60035         memory.
60036
60037 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
60038
60039         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
60040         and fchmodat unconditionally, since glibc 2.4 has them.
60041         Problem reported by Arkadiusz Miskiewicz.
60042
60043 2006-12-10  Bruno Haible  <bruno@clisp.org>
60044
60045         * gnulib-tool (func_import): Show the include files only for those
60046         modules that are copied and specified.
60047         Reported by Karl Berry.
60048
60049 2006-12-08  Jim Meyering  <jim@meyering.net>
60050
60051         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
60052         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
60053
60054         * build-aux/announce-gen: Add two new options, both optional:
60055         --bootstrap-tools=TOOL_LIST
60056               a comma-separated list of tools, e.g.,
60057               autoconf,automake,bison,gnulib
60058         --gnulib-snapshot-date=DATE
60059               if gnulib is in the bootstrap tool list,
60060               then report this as the snapshot date.
60061               If not specified, use the current date/time.
60062               If you specify a date here, be sure it's UTC.
60063
60064 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60065
60066         * tests/test-argp-2.sh: Fix test to match actual output.
60067         (func_compare): Fix sed script to be portable.
60068
60069 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
60070
60071         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
60072         workaround for this case.  It is not autoconfigured now; offhand
60073         it's hard to see how to autoconfigure it.
60074
60075 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60076
60077         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
60078         a directory that is about to be chowned.  Such a directory's
60079         initial file permissions should permit the owner only and this
60080         should not be changed until after the chown, since the group and
60081         other bits would be incorrect if they granted permission before
60082         the chown.
60083
60084         Fix porting problem for iswctype reported by Georg Schwarz in:
60085         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
60086         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
60087         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
60088         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
60089         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60090
60091 2006-12-03  Jim Meyering  <jim@meyering.net>
60092
60093         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
60094         p->fts_statp may not yet be defined.
60095         (fts_read): Instead, set it in the caller, once p->fts_statp is
60096         sure to be defined, and corresponds to a top-level directory.
60097         This bug made du -x fail.  Here's the coreutils test case:
60098         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
60099         Reported by Mike Frysinger.
60100
60101 2006-12-01  Jim Meyering  <jim@meyering.net>
60102
60103         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
60104         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
60105         Reported by Simon Josefsson.
60106
60107 2006-11-30  Jim Meyering  <jim@meyering.net>
60108
60109         * m4/warning.m4: Use the all-permissive copyright notice
60110         recommended by RMS (rather than LGPL).
60111         * m4/vararrays.m4: Likewise.
60112         * m4/flexmember.m4: Likewise.
60113
60114 2006-11-29  Bruno Haible  <bruno@clisp.org>
60115
60116         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60117         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
60118         using +=.
60119         Reported by Simon Josefsson <simon@josefsson.org>.
60120
60121 2006-11-28  James Youngman <jay@gnu.org>
60122
60123         * README: Advise users that they might find the bug-gnulib@gnu.org
60124         and autotools-announce@gnu.org mailing lists useful.
60125
60126 2006-11-28  Bruno Haible  <bruno@clisp.org>
60127
60128         * m4/ptrdiff_max.m4: Remove file.
60129
60130 2006-11-21  Bruno Haible  <bruno@clisp.org>
60131
60132         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
60133         _AC_COMPUTE_INT.
60134         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60135         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
60136         _AC_COMPUTE_INT.
60137         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60138         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
60139         _AC_COMPUTE_INT.
60140         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60141
60142 2006-11-28  Jim Meyering  <jim@meyering.net>
60143
60144         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
60145         warning from "gcc -Wshadow" about shadowing the builtin.
60146
60147 2006-11-27  Bruno Haible  <bruno@clisp.org>
60148
60149         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
60150         _AC_COMPUTE_INT.
60151         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60152
60153 2006-11-27  Bruno Haible  <bruno@clisp.org>
60154             Paul Eggert  <eggert@cs.ucla.edu>
60155
60156         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
60157
60158 2006-11-26  Bruno Haible  <bruno@clisp.org>
60159
60160         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60161         noinst_LTLIBRARIES.
60162
60163 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60164             Bruno Haible  <bruno@clisp.org>
60165
60166         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
60167         if compiling with "gcc -ansi".
60168
60169 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60170
60171         Fix some incompatibilities with gcc -ansi -pedantic.
60172         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
60173         if compiling pedantically with GCC, unless it's C99 or later.
60174         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
60175         it mishandles gcc -ansi -pedantic as well.
60176         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
60177         if gcc -pedantic.
60178         * lib/regexec.c (check_node_accept_bytes): Don't use auto
60179         initializers for struct if -pedantic, unless it's C99 or later.
60180
60181 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
60182
60183         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
60184         Don't close an fd more than once. Identical atimes indicate
60185         success, not failure.
60186
60187 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
60188
60189         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
60190
60191 2006-11-23  Jim Meyering  <jim@meyering.net>
60192
60193         * build-aux/announce-gen: New file.  From coreutils.
60194
60195 2006-11-22  Jim Meyering  <jim@meyering.net>
60196
60197         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
60198         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
60199         (fts_read): Use a temporary to narrow the overused st_size member
60200         before using it in a switch statement.  Reported by Matthew Woehlke.
60201
60202         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
60203         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60204
60205 2006-11-20  Bruno Haible  <bruno@clisp.org>
60206
60207         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
60208         changequote instead of pairs of brackets.
60209         Reported by Andreas Schwab <schwab@suse.de>.
60210
60211 2006-11-21  Jim Meyering  <jim@meyering.net>
60212
60213         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
60214         so as to remain compatible with older compilers.
60215         Patch from Michael Deutschmann.
60216
60217 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60218
60219         * MODULES.html.sh (File system functions): Add openat.
60220
60221         * lib/openat.h (rpl_fstatat): New macro, if
60222         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
60223         (fstatat): Define to rpl_fstatat under the same conditions,
60224         unless COMPILING_FSTATAT.
60225         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
60226         seems to have the bug.
60227         * lib/fstatat.c: New file.
60228         * modules/openat (Files): Add it.
60229
60230 2006-11-20  Bruno Haible  <bruno@clisp.org>
60231
60232         * Makefile: New file.
60233
60234 2006-11-20  Jim Meyering  <jim@meyering.net>
60235
60236         The beginnings of syntax-related checks for gnulib.
60237         * lib/Makefile: New file.
60238         * lib/t-idcache: New script.  Ensure that the two halves of
60239         idcache.c stay in sync.
60240
60241         * lib/idcache.c: Adjust comments in user- and group- portions to
60242         be more accurate, and to be consistent with one another.
60243
60244 2006-11-20  Jim Meyering  <jim@meyering.net>
60245
60246         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
60247         continue using the flexible array member (thus, this module performs
60248         half as many malloc calls), with the addition that...
60249         (getgroup, getuser): Consistently record a non-match via an empty
60250         "name" string, and map an empty string match to a NULL return value.
60251         * modules/idcache (Depends-on): Re-add flexmember.
60252
60253         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60254         (getuidbyname, getgroup, getgidbyname): Likewise.
60255
60256         Use cleaner syntax: NULL rather than 0.
60257         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60258
60259 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60260
60261         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60262         It mishandled the case where the group was missing.
60263         Problem reported by Greg Schafer.
60264         * modules/idcache: Likewise.
60265
60266 2006-11-18  Jim Meyering  <jim@meyering.net>
60267
60268         * check-module (%exempt_header): Add exception for some
60269         conditionally-included headers.
60270
60271         * modules/i-ring (Depends-on): Add verify.
60272         (License): Change to LGPL.
60273
60274 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60275
60276         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60277         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60278         and inttostr.h.  Use snprintf rather than uinttostr, so that
60279         LGPLed code doesn't depend on GPLed.
60280
60281 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60282
60283         * modules/inline (License): Change from GPL to LGPL.
60284
60285 2006-11-17  Jim Meyering  <jim@meyering.net>
60286
60287         * modules/d-type (License): Switch to LGPL.
60288
60289 2006-11-15  Bruno Haible  <bruno@clisp.org>
60290
60291         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60292
60293 2006-11-15  Eric Blake  <ebb9@byu.net>
60294
60295         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60296         the module dependency.
60297
60298 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60299             Bruno Haible  <bruno@clisp.org>
60300
60301         * gnulib-tool (func_create_testdir): Add license consistency check.
60302
60303 2006-11-15  Eric Blake  <ebb9@byu.net>
60304
60305         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60306         random "(cached)" in configure output.
60307
60308 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60309
60310         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60311         test for conforming inttypes.h is both announced and cached.
60312
60313         * MODULES.html.sh (seen_modules, seen_files): New variables.
60314         (func_module): Rewrite to use a few less gnulib-tool and sed
60315         invocations.  Avoid a couple of quadratic algorithms for ...
60316         (missed_modules, missed_files): ... these, with ...
60317         (func_append, func_tmpdir): ... these new functions, from
60318         gnulib-tool.  Analogously, install traps for cleanup.
60319
60320         * tests/test-gc.c (main): Remove unused variables.
60321         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60322
60323 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60324
60325         * modules/inttostr (License): Change to LGPL.
60326
60327 2006-11-14  Eric Blake  <ebb9@byu.net>
60328
60329         * modules/tempname (License): Change to LGPL.
60330
60331 2006-11-14  Eric Blake  <ebb9@byu.net>
60332
60333         * doc/functions.texi (Function Portability): *printf functions on
60334         Cygwin now understand all POSIX size specifiers.
60335
60336 2006-11-14  Bruno Haible  <bruno@clisp.org>
60337
60338         * modules/c-ctype (License): Change to LGPL.
60339
60340 2006-11-12  Bruno Haible  <bruno@clisp.org>
60341
60342         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60343         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60344         for GNOME libraries, for which the include files are installed in
60345         subdirectories of $prefix/include.
60346
60347 2006-11-12  Bruno Haible  <bruno@clisp.org>
60348
60349         * m4/lib-link.m4: Require at least autoconf-2.54.
60350         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60351         name to underscores for the --with option.
60352
60353 2006-11-13  Bruno Haible  <bruno@clisp.org>
60354
60355         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60356         the tests directory.
60357         Reported by Ralf Wildenhues.
60358
60359 2006-11-13  Bruno Haible  <bruno@clisp.org>
60360
60361         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60362         (func_emit_initmacro_end): Undo the override here.
60363         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60364         Works around the famous automake error in coreutils.
60365
60366 2006-11-13  Eric Blake  <ebb9@byu.net>
60367
60368         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60369         element, not its node.
60370
60371 2006-11-12  Bruno Haible  <bruno@clisp.org>
60372
60373         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60374         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60375
60376 2006-11-12  Bruno Haible  <bruno@clisp.org>
60377
60378         * gnulib-tool: New option --local-symlink.
60379         (func_usage): Document it.
60380         (lsymbolic): New variable.
60381         (func_import, func_create_testdir): If --symlink was not specified,
60382         test whether --local-symlink was specified and the file comes from
60383         the local_gnulib_dir.
60384
60385 2006-11-12  Bruno Haible  <bruno@clisp.org>
60386
60387         * gnulib-tool (func_ln): New function.
60388         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60389
60390 2006-11-12  Bruno Haible  <bruno@clisp.org>
60391
60392         Finish support for source files in subdirectories.
60393         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60394         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60395         AUTOMAKE_OPTIONS.
60396         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60397
60398 2006-11-12  Bruno Haible  <bruno@clisp.org>
60399
60400         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60401         EXTRA_lib_SOURCES augmentation.
60402         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60403
60404 2006-11-12  Jim Meyering  <jim@meyering.net>
60405
60406         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60407         file descriptors.  This also averts a failure on systems with
60408         native openat support when a traversed directory lacks "x" access.
60409         * lib/fts_.h: Include "i-ring.h"
60410         (struct FTS) [fts_fd_ring]: New member.
60411         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60412         (FCHDIR): Add parentheses.
60413         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60414         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60415         When descending, rather than simply closing the previous
60416         fts_cwd_fd value, push that file descriptor onto the ring.
60417         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60418         (fts_open): Initialize the new fd_ring member.
60419         (fts_close): Clear the ring.
60420         (fts_safe_changedir): When possible, use our new fd_ring to skip
60421         the diropen and fstat and dev/ino comparison that would normally
60422         accompany a virtual `chdir ("..")'.
60423
60424         * modules/fts (Depends-on): Add i-ring.
60425         * modules/i-ring: New module.
60426         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60427         * m4/i-ring.m4: New file.
60428
60429 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60430
60431         * gnulib-tool (func_create_testdir): Fix replacement of
60432         `build-aux' in configure.ac.  Run autotools in gltests
60433         subdirectory.
60434         (func_create_testdir, func_create_megatestdir, test): There is
60435         no need for '--force' in most autotool invocations in a new
60436         tree.  Actually fail the whole test if any of the tools, or the
60437         configure or make stages fail.
60438
60439         Sync from Automake.
60440         * build-aux/gnupload: Revert last change.  Add pointer to upload
60441         instructions of the GNU Maintenance Instructions.
60442         Suggestion by Karl Berry.
60443
60444 2006-11-10  Jim Meyering  <jim@meyering.net>
60445
60446         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60447
60448 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60449
60450         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60451         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60452         (bind_textdomain_codeset) [! ENABLE_NLS]:
60453         Evaluate all the arguments.  That way, callers get compatible behavior
60454         if the arguments have side effects.  Also, it avoids some GCC
60455         diagnostics in some cases; Joel E. Denny reported problems when Bison
60456         was configured with --enable-gcc-warnigs.
60457
60458 2006-11-10  Jim Meyering  <jim@meyering.net>
60459
60460         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60461         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60462         account.
60463
60464 2006-11-10  Jim Meyering  <jim@meyering.net>
60465
60466         * modules/inline: New file/module.
60467         * modules/xalloc (Files): Remove m4/inline.m4.
60468         (Depends-on): Add inline, instead.
60469         * modules/oset: Likewise.
60470         * modules/list: Likewise.
60471
60472 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60473
60474         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
60475         Problem reported by Matthew Woehlke.
60476
60477 2006-11-09  Bruno Haible  <bruno@clisp.org>
60478
60479         * lib/tempname.c (gen_tempname): Remove variant that invokes
60480         __gen_tempname.
60481         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
60482         __gen_tempname.
60483
60484 2006-11-08  Bruno Haible  <bruno@clisp.org>
60485
60486         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
60487         to 'yes' instead of 'cross-compiling'.
60488
60489 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
60490
60491         * lib/quotearg.h (quotearg_free): New decl.
60492         * lib/quotearg.c (quotearg_free): New function.
60493         (slot0, nslots, slotvec0, slotvec):
60494         Now file-scope so that quotearg_free can get at them.
60495
60496 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60497
60498         Sync from Automake.
60499         * build-aux/gnupload: Add missing 'gnu' to example URL.
60500         Report by Karl Berry.
60501
60502 2006-11-08  Bruno Haible  <bruno@clisp.org>
60503
60504         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
60505         Suggested by Paul Eggert.
60506
60507 2006-11-08  Jim Meyering  <jim@meyering.net>
60508
60509         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
60510         It's already included if !_LIBC.
60511         (fts_safe_changedir): Add a comment.
60512
60513 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60514
60515         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
60516         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
60517         Matthew Woehlke.
60518
60519         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
60520         definitions up, to avoid colliding with change below.
60521         (static_inline) [HAVE_INLINE]: New macro.
60522         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
60523         Provide extern decls when !HAVE_INLINE.  Do not define unless
60524         static_inline is defined, either by us or by xmalloc.c.  Use
60525         static_inline rather than static inline.
60526         (XCALLOC): Optimize sizeof(T) = 1 case.
60527         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
60528
60529 2006-11-07  Bruno Haible  <bruno@clisp.org>
60530
60531         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
60532         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
60533         AC_C_INLINE.
60534         * modules/xalloc (Files): Add m4/inline.m4.
60535
60536 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60537
60538         * README: Fix typo.
60539         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
60540         (Miscellanous Notes): ...from this.
60541
60542 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60543
60544         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
60545         Mention that offsetof should be used instead of sizeof.
60546         From Bruno Haible.
60547
60548 2006-11-07  Bruno Haible  <bruno@clisp.org>
60549
60550         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
60551
60552 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60553
60554         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60555         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
60556         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60557         (gl_tree_add_before, gl_tree_add_after):
60558         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
60559         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
60560         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60561         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60562         (gl_linked_add_after, gl_linked_add_at): Likewise.
60563         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60564         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60565         (gl_tree_add_before, gl_tree_add_after): Likewise.
60566         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60567         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60568         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60569
60570 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60571
60572         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60573
60574 2006-11-06  Bruno Haible  <bruno@clisp.org>
60575
60576         * m4/inline.m4: New file.
60577         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60578         * modules/list (Files): Add m4/inline.m4.
60579         * modules/oset (Files): Likewise.
60580
60581 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60582
60583         * lib/idcache.c: Include <stddef.h>, for offsetof.
60584         (struct userid.name): Change from char * to a flexible array member.
60585         All uses changed.
60586         * modules/idcache (Depends-on): Add flexmember.
60587
60588         * MODULES.html.sh (Core language properties): New module flexmember.
60589         * modules/flexmember, m4/flexmember.m4: New files.
60590
60591         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60592         inline functions that are identical with the old xnmalloc_inline,
60593         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60594         that we can avoid some unnecessary integer multiplications and
60595         divisions in the common case where the element size is known at
60596         compile time.
60597         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60598         needed.
60599         (xnboundedmalloc): Remove.
60600         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60601         arguments, for consistency with rest of this header.
60602         (xcharalloc): Rewrite using XNMALLOC.
60603         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60604         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60605         versions have been moved to lib/xalloc.h and renamed to be the
60606         non-*_inline versions.
60607         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60608         and xnrealloc functions, since those functions are now inline and
60609         now call us.
60610         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60611         renaming described above.
60612         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60613         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60614         captures the dependency in AC_C_INLINE.
60615
60616         New module canonicalize-lgpl, proposed by Charles Wilson in
60617         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60618         with a few small changes afterwards.
60619         * MODULES.html.sh (File system functions): New module
60620         canonicalize-lgpl.
60621         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60622         and canonicalize_file_name.
60623         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60624         * modules/canonicalize-lgpl: New files.
60625
60626 2006-11-05  Bruno Haible  <bruno@clisp.org>
60627
60628         * gnulib-tool (func_import, func_create_testdir): Create directories
60629         also for files in subdirectories of lib/.
60630
60631 2006-11-05  Bruno Haible  <bruno@clisp.org>
60632
60633         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60634         ANSI C compliant.
60635
60636 2006-11-03  Bruno Haible  <bruno@clisp.org>
60637
60638         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60639         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
60640         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
60641         (xnboundedmalloc): New inline function.
60642         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
60643         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
60644         xmalloc.
60645         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
60646         xmalloc.
60647         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
60648         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
60649         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
60650         xmalloc.
60651         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60652         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
60653         xmalloc.
60654         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
60655         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60656         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
60657         xmalloc.
60658         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60659         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
60660         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60661         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
60662         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
60663         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
60664         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
60665
60666 2006-11-03  Bruno Haible  <bruno@clisp.org>
60667
60668         * lib/c-ctype.h [C++]: Define functions without name mangling.
60669         * lib/fwriteerror.h [C++]: Likewise.
60670         * lib/gcd.h [C++]: Likewise.
60671         * lib/linebreak.h [C++]: Likewise.
60672
60673 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60674
60675         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
60676         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
60677         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
60678         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60679         Check for functions and headers just once.
60680         Check for declaration of canonicalize_file_name.
60681         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
60682
60683 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60684
60685         * gnulib-tool (func_import): Fix typo in actioncmd.
60686
60687 2006-11-02  Bruno Haible  <bruno@clisp.org>
60688
60689         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
60690         newline sequence in the Makefile.am snippet as a space, like "make"
60691         does.
60692         Reported by Roger Persson <perrog@gmail.com>.
60693
60694 2006-11-01  Bruno Haible  <bruno@clisp.org>
60695
60696         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
60697         already declared in <string.h>.
60698         * lib/strcase.h (strncasecmp): Don't declare it if yes.
60699
60700 2006-11-01  Bruno Haible  <bruno@clisp.org>
60701
60702         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
60703         * lib/strcase.h: Include <string.h>.
60704         (strcasecmp): Define to rpl_strcasecmp here.
60705
60706 2006-11-01  Bruno Haible  <bruno@clisp.org>
60707
60708         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
60709
60710 2006-11-01  Eric Blake  <ebb9@byu.net>
60711
60712         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
60713
60714         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
60715
60716 2006-10-29  Bruno Haible  <bruno@clisp.org>
60717
60718         Make it compile in C++ mode.
60719         * lib/full-write.c (full_rw): Add a cast.
60720
60721 2006-11-01  Bruno Haible  <bruno@clisp.org>
60722
60723         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
60724         be POSIX compliant.
60725         Reported by Roger Persson <perrog@gmail.com>.
60726
60727 2006-11-01  Eric Blake  <ebb9@byu.net>
60728
60729         * lib/getopt_.h: Fix comments.
60730
60731 2006-10-31  Eric Blake  <ebb9@byu.net>
60732
60733         * modules/tmpdir (Depends-on): Add sys_stat.
60734         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
60735         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
60736         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
60737         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
60738         tempname.
60739
60740 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
60741
60742         Avoid some C++ diagnostics reported by Bruno Haible.
60743         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
60744         xmalloc.
60745         (quotearg_alloc): Use xcharalloc rather than xmalloc.
60746         (struct slotvec): Move to top level.
60747         (quotearg_n_options): Rewrite to avoid xmalloc.
60748         * lib/xalloc.h (xcharalloc): New function.
60749         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
60750         [defined __cplusplus]: Add function template that provides result
60751         type propagation.  This part of the change is from Bruno Haible.
60752
60753 2006-10-29  Bruno Haible  <bruno@clisp.org>
60754
60755         Make it compile in C++ mode.
60756         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
60757         * lib/strnlen1.c (strnlen1): Cast memchr result.
60758         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
60759         * lib/clean-temp.c (string_equals, string_hash): Add casts.
60760         (create_temp_dir): Rename local variable 'template'.
60761         (compile_csharp_using_sscli): Add cast.
60762         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
60763         * lib/findprog.c (find_in_path): Likewise.
60764         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
60765         * lib/wait-process.c (register_slave_subprocess): Likewise.
60766
60767 2006-10-22  Bruno Haible  <bruno@clisp.org>
60768
60769         * modules/tsearch: New file.
60770         * lib/tsearch.h: New file.
60771         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
60772         * m4/tsearch.m4: New file.
60773         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
60774
60775 2006-10-29  Eric Blake  <ebb9@byu.net>
60776
60777         * lib/arcfour.c: Assume config.h.
60778         * lib/arctwo.c: Likewise.
60779         * lib/base64.c: Likewise.
60780         * lib/check-version.c: Likewise.
60781         * lib/crc.c: Likewise.
60782         * lib/des.c: Likewise.
60783         * lib/gc-gnulib.c: Likewise.
60784         * lib/gc-libgcrypt.c: Likewise.
60785         * lib/gc-pbkdf2-sha1.c: Likewise.
60786         * lib/getaddrinfo.c: Likewise.
60787         * lib/getdelim.c: Likewise.
60788         * lib/getline.c: Likewise.
60789         * lib/hmac-md5.c: Likewise.
60790         * lib/hmac-sha1.c: Likewise.
60791         * lib/iconvme.c: Likewise.
60792         * lib/md2.c: Likewise.
60793         * lib/md4.c: Likewise.
60794         * lib/memxor.c: Likewise.
60795         * lib/read-file.c: Likewise.
60796         * lib/readline.c: Likewise.
60797         * lib/rijndael-alg-fst.c: Likewise.
60798         * lib/rijndael-api-fst.c: Likewise.
60799         * lib/xgetdomainname.c: Likewise.
60800
60801 2006-10-28  Eric Blake  <ebb9@byu.net>
60802
60803         * lib/xstrndup.c: Assume config.h.
60804
60805 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60806
60807         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
60808         stat-macros.h is now for our own macros, whereas stat_h is for
60809         macros in the <sys/stat.h> name space.
60810         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
60811         (STAT_MACROS_H): Remove.
60812         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
60813         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
60814         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
60815         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
60816         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
60817         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
60818         Move these macros to ...
60819         * lib/stat_.h: here.  Don't include stat-macros.h.
60820         * lib/canonicalize.c: Don't include stat-macros.h.
60821         * lib/chown.c: Likewise.
60822         * lib/euidaccess.c: Likewise.
60823         * lib/file-type.c: Likewise.
60824         * lib/filemode.c: Likewise.
60825         * lib/glob.c: Likewise.
60826         * lib/isapipe.c: Likewise.
60827         * lib/lchown.c: Likewise.
60828         * lib/lstat.c: Likewise.
60829         * lib/mkdir-p.c: Likewise.
60830         * lib/rmdir.c: Likewise.
60831         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
60832         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
60833         unless mkdir isn't declared, to speed up 'configure'.
60834         Always create sys/stat.h, since it's unlikely any real sys/stat.h
60835         would define all the S_* symbols.
60836         * modules/canonicalize (Depends-on):
60837         Depend on sys_stat, not stat-macros.
60838         * modules/chown: Likewise.
60839         * modules/euidaccess: Likewise.
60840         * modules/filemode: Likewise.
60841         * modules/file-type: Likewise.
60842         * modules/glob: Likewise.
60843         * modules/isapipe: Likewise.
60844         * modules/lchown: Likewise.
60845         * modules/lstat: Likewise.
60846         * modules/mkancesdirs: Likewise.
60847         * modules/rmdir: Likewise.
60848         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
60849         * modules/modechange: Likewise.
60850         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
60851         (configure.ac): Remove gl_STAT_MACROS.
60852         * modules/sys_stat (Depends-on): Remove stat-macros.
60853
60854 2006-10-27  Bruno Haible  <bruno@clisp.org>
60855
60856         * m4/signed.m4: Remove file.
60857         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
60858         invocation.
60859         * modules/vasnprintf (Files): Remove m4/signed.m4.
60860
60861 2006-10-27  Bruno Haible  <bruno@clisp.org>
60862
60863         Update to GNU gettext 0.16.
60864         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
60865         m4/inttypes-h.m4, m4/signed.m4.
60866         * m4/gettext.m4: Update to GNU gettext 0.16.
60867         * m4/intl.m4: New file, from GNU gettext.
60868         * m4/intldir.m4: New file, from GNU gettext.
60869         * config/srclist.txt: Update
60870
60871 2006-10-27  Eric Blake  <ebb9@byu.net>
60872
60873         * MODULES.html.sh: Document tempname.
60874         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
60875         dependencies.
60876         (Files): Move lib/tempname.c...
60877         * modules/tempname: ...to this new module.
60878         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
60879         (gl_PREREQ_TEMPNAME): Move...
60880         * m4/tempname.m4: ...to this new file.
60881         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
60882         * modules/sys_stat (Depends-on): Add stat-macros.
60883         * lib/stat_.h (includes): Pick up stat macros.
60884         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
60885         if stat macros are broken.
60886         * lib/tempname.c (includes): No need to include "stat-macros.h".
60887         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
60888         (direxists, __path_search) [!_LIBC]: Don't compile these in
60889         gnulib; the tmpdir module covers that.
60890         * lib/tempname.h: New file.
60891
60892 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60893
60894         * COPYING: Explain how gnulib-tool converts licence headers.
60895         Almost all wording by Eric Blake.
60896
60897 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
60898
60899         * lib/mbchar.h (is_basic_table): Make read-only.
60900         * lib/mbchar.c (is_basic_table): Likewise.
60901         Reported by John Darrington.
60902
60903 2006-10-25  Bruno Haible  <bruno@clisp.org>
60904
60905         * lib/progname.h (set_program_name): Undefine before defining.
60906
60907 2006-10-25  Bruno Haible  <bruno@clisp.org>
60908
60909         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
60910         false for non-gcc C++ compilers.
60911         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60912
60913 2006-10-24  Bruno Haible  <bruno@clisp.org>
60914
60915         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
60916         iconv implementations like Irix iconv.
60917
60918 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60919
60920         * modules/vararrays: New file.
60921         * m4/vararrays.m4: New file, taken from diffutils.
60922         * MODULES.html.sh: New module vararrays.
60923
60924 2006-10-24  Karl Berry  <karl@gnu.org>
60925
60926         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
60927         Don't call GNU Unix.
60928
60929 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60930
60931         * users.txt: Add Libtool.
60932
60933         Sync from Libtool:
60934
60935         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60936
60937         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
60938         to gnulib's policy of including config.h unconditionally.
60939
60940 2006-10-24  Bruno Haible  <bruno@clisp.org>
60941
60942         * modules/wcwidth (Files): Add m4/wint_t.m4.
60943         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
60944         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
60945
60946 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60947
60948         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
60949         to pacify GCC with some -W flags enabled.  Problem reported by
60950         Bruno Haible.
60951
60952 2006-10-24  Jim Meyering  <jim@meyering.net>
60953
60954         * MODULES.html.sh: Remove uinttostr.  It's not a module.
60955         Reported by Karl Berry.
60956
60957 2006-10-23  Bruno Haible  <bruno@clisp.org>
60958
60959         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
60960
60961 2006-10-24  Bruno Haible  <bruno@clisp.org>
60962
60963         * lib/gl_list.h: Use C comment style, not C++ comment style.
60964
60965 2006-10-23  Eric Blake  <ebb9@byu.net>
60966
60967         * lib/getaddrinfo.c (includes): Add missing include.
60968
60969 2006-10-23  Bruno Haible  <bruno@clisp.org>
60970             Paul Eggert  <eggert@cs.ucla.edu>
60971
60972         Ability to rename obstack_free.
60973         * lib/obstack.h (__obstack_free): New macro. Declare instead of
60974         obstack_free.
60975         (obstack_free): Invoke the __obstack_free macro.
60976         * lib/obstack.c (obstack_free): Use __obstack_free macro.
60977
60978 2006-10-23  Bruno Haible  <bruno@clisp.org>
60979             Paul Eggert  <eggert@cs.ucla.edu>
60980
60981         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
60982         __argc, __argv from the declaration. (They are defined as macros on
60983         mingw.)
60984
60985 2006-10-22  Bruno Haible  <bruno@clisp.org>
60986
60987         * doc/gnulib-intro.texi: New file.
60988         * doc/gnulib.texi: Include it.
60989
60990 2006-10-21  Bruno Haible  <bruno@clisp.org>
60991
60992         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
60993         "Introduction", "Miscellanous Notes", "Particular Modules".
60994
60995 2006-10-21  Bruno Haible  <bruno@clisp.org>
60996
60997         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60998         Change mostlyclean-local rule to avoid sh syntax error from bash
60999         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
61000
61001 2006-10-23  Jim Meyering  <jim@meyering.net>
61002
61003         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
61004         in place of snprintf.
61005
61006         * modules/inttostr (Files): Add lib/uinttostr.c.
61007         * lib/uinttostr.c (inttostr): New file/function.
61008         * lib/inttostr.h (uinttostr): Declare.
61009         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
61010         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61011         Add uinttostr.
61012         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
61013
61014 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61015
61016         * lib/canonicalize.c (ELOOP): Define if not already defined.
61017         Problem reported by Bruno Haible in
61018         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
61019
61020 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61021
61022         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
61023         Problem reported by Perry Smith and Ville Laurikari.
61024
61025         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
61026         uses.
61027
61028 2006-10-19  Bruno Haible  <bruno@clisp.org>
61029
61030         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
61031         for mingw.
61032
61033 2006-10-19  Bruno Haible  <bruno@clisp.org>
61034
61035         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
61036         Needed for mingw.
61037
61038 2006-10-19  Bruno Haible  <bruno@clisp.org>
61039
61040         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
61041
61042 2006-10-19  Bruno Haible  <bruno@clisp.org>
61043
61044         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
61045         it.
61046
61047 2006-10-19  Bruno Haible  <bruno@clisp.org>
61048
61049         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
61050         invocation.
61051
61052 2006-10-19  Bruno Haible  <bruno@clisp.org>
61053
61054         * gnulib-tool (func_create_testdir): Don't include ftruncate and
61055         mountlist by default.
61056
61057 2006-10-16  Bruno Haible  <bruno@clisp.org>
61058
61059         * lib/c-strstr.c: Include c-strstr.h.
61060
61061 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61062
61063         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
61064         in a slash.
61065
61066 2006-10-18  Bruno Haible  <bruno@clisp.org>
61067
61068         * lib/lock.h [C++]: Wrap definitions in extern "C".
61069
61070 2006-10-18  Bruno Haible  <bruno@clisp.org>
61071
61072         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
61073         gl_LIBOBJS list.
61074
61075 2006-10-18  Bruno Haible  <bruno@clisp.org>
61076
61077         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
61078
61079 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
61080
61081         * lib/xstrtol.h: Include gettext.h.
61082         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
61083         Problem reported by Eric Blake.
61084         * modules/xstrtol (Depends-on): Add gettext-h.
61085
61086 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
61087
61088         * lib/strftime.c (advance): New macro.
61089         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
61090         incomplete type, so you can't add 0 to it.  Problem and patch
61091         reported by Eelco Dolstra for dietlibc.
61092
61093 2006-10-18  Jim Meyering  <jim@meyering.net>
61094
61095         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
61096         type for a local, and rename it: s/up/user_proc/.
61097
61098 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61099
61100         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
61101         READ_UTMP_USER_PROCESS.
61102         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
61103
61104 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61105
61106         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
61107         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
61108
61109 2006-10-17  Eric Blake  <ebb9@byu.net>
61110
61111         * lib/sigprocmask.c (sigprocmask): Fix typo.
61112
61113         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
61114
61115         * modules/clean-temp (Makefile.am): Don't add to make output...
61116         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
61117         config.h.
61118
61119 2006-10-17  Bruno Haible  <bruno@clisp.org>
61120
61121         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
61122         differently if DEFAULT_TEXT_DOMAIN is set.
61123
61124 2006-10-16  Bruno Haible  <bruno@clisp.org>
61125
61126         * lib/clean-temp.c: Include fwriteerror.h.
61127
61128 2006-10-16  Bruno Haible  <bruno@clisp.org>
61129
61130         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
61131
61132 2006-10-16  Bruno Haible  <bruno@clisp.org>
61133
61134         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
61135         * lib/sigprocmask.h: Include <sys/types.h>.
61136         (sigset_t): Use the system's definition if present.
61137
61138 2006-10-17  Eric Blake  <ebb9@byu.net>
61139
61140         * lib/xvasprintf.c (includes): Assume config.h.
61141         * lib/xasprintf.c (includes): Likewise.
61142
61143 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61144
61145         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
61146         at least as wide as intmax_t.
61147
61148 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
61149
61150         (Imported from Automake.)
61151         * build-aux/gnupload: Update to version 1.1 of directive file.
61152
61153 2006-10-16  Eric Blake  <ebb9@byu.net>
61154
61155         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
61156         match Automake 1.10a.
61157
61158 2006-10-14  Bruno Haible  <bruno@clisp.org>
61159
61160         * modules/sigprocmask: New file.
61161         * lib/sigprocmask.h: New file.
61162         * lib/sigprocmask.c: New file.
61163         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
61164         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
61165         request sigprocmask.o.
61166         (gl_PREREQ_SIGPROCMASK): New macro.
61167         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
61168         (Depends-on): Add sigprocmask.
61169         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
61170         gt_SIGNALBLOCKING. Test for 'raise' only once.
61171         * lib/fatal-signal.c: Include sigprocmask.h.
61172         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
61173         unblock_fatal_signals): Define always.
61174         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61175         sigprocmask.
61176
61177 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61178
61179         Sync from Automake.
61180         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
61181         which incorrectly sets the mode of an existing destination
61182         directory.  In some cases the unpatched install-sh could do the
61183         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
61184         system.  We hope this is rare in practice, but it's clearly worth
61185         fixing.  Problem reported by Alex Unleashed in
61186         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
61187         Also, don't bother to check for -m bugs unless we're using -m;
61188         suggested by Stepan Kasal.
61189
61190 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61191
61192         Sync from Automake.
61193         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
61194         `-c' flag, so they appear at the same position as in %FASTDEP%
61195         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
61196         which ignores unknown options only after the first non-option.
61197         Bug report against M4 by Nelson H. F. Beebe.
61198
61199 2006-10-13  Jim Meyering  <jim@meyering.net>
61200
61201         Fix a bug in yesterday's change.
61202         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
61203         p->fts_statp->st_dev would be used uninitialized.
61204         Ensures that we always call fts_stat on the very first entry.
61205         Miklos Szeredi reported that find -xdev stopped working.
61206
61207 2006-10-12  Bruno Haible  <bruno@clisp.org>
61208
61209         * gnulib-tool (func_get_automake_snippet): Append an automatically
61210         computed EXTRA_DIST augmentation.
61211         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
61212         * modules/alloca-opt (Makefile.am): Likewise.
61213         * modules/allocsa (Makefile.am): Likewise.
61214         * modules/arcfour (Makefile.am): Likewise.
61215         * modules/arctwo (Makefile.am): Likewise.
61216         * modules/argmatch (Makefile.am): Likewise.
61217         * modules/argz (Makefile.am): Likewise.
61218         * modules/atexit (Makefile.am): Likewise.
61219         * modules/backupfile (Makefile.am): Likewise.
61220         * modules/byteswap (Makefile.am): Likewise.
61221         * modules/c-strtod (Makefile.am): Likewise.
61222         * modules/c-strtold (Makefile.am): Likewise.
61223         * modules/calloc (Makefile.am): Likewise.
61224         * modules/canon-host (Makefile.am): Likewise.
61225         * modules/canonicalize (Makefile.am): Likewise.
61226         * modules/chdir-long (Makefile.am): Likewise.
61227         * modules/chdir-safer (Makefile.am): Likewise.
61228         * modules/check-version (Makefile.am): Likewise.
61229         * modules/chown (Makefile.am): Likewise.
61230         * modules/cloexec (Makefile.am): Likewise.
61231         * modules/close-stream (Makefile.am): Likewise.
61232         * modules/closeout (Makefile.am): Likewise.
61233         * modules/crc (Makefile.am): Likewise.
61234         * modules/csharpexec (Makefile.am): Likewise.
61235         * modules/cycle-check (Makefile.am): Likewise.
61236         * modules/des (Makefile.am): Likewise.
61237         * modules/dev-ino (Makefile.am): Likewise.
61238         * modules/dirfd (Makefile.am): Likewise.
61239         * modules/dirname (Makefile.am): Likewise.
61240         * modules/dup2 (Makefile.am): Likewise.
61241         * modules/eealloc (Makefile.am): Likewise.
61242         * modules/error (Makefile.am): Likewise.
61243         * modules/euidaccess (Makefile.am): Likewise.
61244         * modules/exclude (Makefile.am): Likewise.
61245         * modules/exitfail (Makefile.am): Likewise.
61246         * modules/fcntl-safer (Makefile.am): Likewise.
61247         * modules/fcntl (Makefile.am): Likewise.
61248         * modules/file-type (Makefile.am): Likewise.
61249         * modules/fileblocks (Makefile.am): Likewise.
61250         * modules/filemode (Makefile.am): Likewise.
61251         * modules/filenamecat (Makefile.am): Likewise.
61252         * modules/fnmatch (Makefile.am): Likewise.
61253         * modules/fopen-safer (Makefile.am): Likewise.
61254         * modules/fpending (Makefile.am): Likewise.
61255         * modules/fprintftime (Makefile.am): Likewise.
61256         * modules/free (Makefile.am): Likewise.
61257         * modules/fsusage (Makefile.am): Likewise.
61258         * modules/ftruncate (Makefile.am): Likewise.
61259         * modules/fts (Makefile.am): Likewise.
61260         * modules/gc-arcfour (Makefile.am): Likewise.
61261         * modules/gc-des (Makefile.am): Likewise.
61262         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61263         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61264         * modules/gc-md4 (Makefile.am): Likewise.
61265         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61266         * modules/gc-sha1 (Makefile.am): Likewise.
61267         * modules/gc (Makefile.am): Likewise.
61268         * modules/getaddrinfo (Makefile.am): Likewise.
61269         * modules/getcwd (Makefile.am): Likewise.
61270         * modules/getdelim (Makefile.am): Likewise.
61271         * modules/getdomainname (Makefile.am): Likewise.
61272         * modules/getgroups (Makefile.am): Likewise.
61273         * modules/gethostname (Makefile.am): Likewise.
61274         * modules/gethrxtime (Makefile.am): Likewise.
61275         * modules/getline (Makefile.am): Likewise.
61276         * modules/getloadavg (Makefile.am): Likewise.
61277         * modules/getlogin_r (Makefile.am): Likewise.
61278         * modules/getndelim2 (Makefile.am): Likewise.
61279         * modules/getopt (Makefile.am): Likewise.
61280         * modules/getpagesize (Makefile.am): Likewise.
61281         * modules/getpass-gnu (Makefile.am): Likewise.
61282         * modules/getpass (Makefile.am): Likewise.
61283         * modules/getsubopt (Makefile.am): Likewise.
61284         * modules/gettime (Makefile.am): Likewise.
61285         * modules/gettimeofday (Makefile.am): Likewise.
61286         * modules/getugroups (Makefile.am): Likewise.
61287         * modules/getusershell (Makefile.am): Likewise.
61288         * modules/glob (Makefile.am): Likewise.
61289         * modules/group-member (Makefile.am): Likewise.
61290         * modules/hard-locale (Makefile.am): Likewise.
61291         * modules/hash (Makefile.am): Likewise.
61292         * modules/hmac-md5 (Makefile.am): Likewise.
61293         * modules/hmac-sha1 (Makefile.am): Likewise.
61294         * modules/human (Makefile.am): Likewise.
61295         * modules/idcache (Makefile.am): Likewise.
61296         * modules/imaxabs (Makefile.am): Likewise.
61297         * modules/imaxdiv (Makefile.am): Likewise.
61298         * modules/inet_ntop (Makefile.am): Likewise.
61299         * modules/inet_pton (Makefile.am): Likewise.
61300         * modules/intprops (Makefile.am): Likewise.
61301         * modules/inttostr (Makefile.am): Likewise.
61302         * modules/inttypes (Makefile.am): Likewise.
61303         * modules/isapipe (Makefile.am): Likewise.
61304         * modules/javaversion (Makefile.am): Likewise.
61305         * modules/lchmod (Makefile.am): Likewise.
61306         * modules/lchown (Makefile.am): Likewise.
61307         * modules/localcharset (Makefile.am): Likewise.
61308         * modules/long-options (Makefile.am): Likewise.
61309         * modules/lstat (Makefile.am): Likewise.
61310         * modules/malloc (Makefile.am): Likewise.
61311         * modules/mathl (Makefile.am): Likewise.
61312         * modules/mbchar (Makefile.am): Likewise.
61313         * modules/md2 (Makefile.am): Likewise.
61314         * modules/md4 (Makefile.am): Likewise.
61315         * modules/md5 (Makefile.am): Likewise.
61316         * modules/memcasecmp (Makefile.am): Likewise.
61317         * modules/memchr (Makefile.am): Likewise.
61318         * modules/memcmp (Makefile.am): Likewise.
61319         * modules/memcoll (Makefile.am): Likewise.
61320         * modules/memcpy (Makefile.am): Likewise.
61321         * modules/memmem (Makefile.am): Likewise.
61322         * modules/memmove (Makefile.am): Likewise.
61323         * modules/mempcpy (Makefile.am): Likewise.
61324         * modules/memrchr (Makefile.am): Likewise.
61325         * modules/memset (Makefile.am): Likewise.
61326         * modules/memxor (Makefile.am): Likewise.
61327         * modules/mkancesdirs (Makefile.am): Likewise.
61328         * modules/mkdir-p (Makefile.am): Likewise.
61329         * modules/mkdir (Makefile.am): Likewise.
61330         * modules/mkdtemp (Makefile.am): Likewise.
61331         * modules/mkstemp (Makefile.am): Likewise.
61332         * modules/mktime (Makefile.am): Likewise.
61333         * modules/modechange (Makefile.am): Likewise.
61334         * modules/mountlist (Makefile.am): Likewise.
61335         * modules/nanosleep (Makefile.am): Likewise.
61336         * modules/obstack (Makefile.am): Likewise.
61337         * modules/openat (Makefile.am): Likewise.
61338         * modules/pagealign_alloc (Makefile.am): Likewise.
61339         * modules/pathmax (Makefile.am): Likewise.
61340         * modules/physmem (Makefile.am): Likewise.
61341         * modules/poll (Makefile.am): Likewise.
61342         * modules/posixtm (Makefile.am): Likewise.
61343         * modules/posixver (Makefile.am): Likewise.
61344         * modules/putenv (Makefile.am): Likewise.
61345         * modules/quote (Makefile.am): Likewise.
61346         * modules/quotearg (Makefile.am): Likewise.
61347         * modules/raise (Makefile.am): Likewise.
61348         * modules/read-file (Makefile.am): Likewise.
61349         * modules/readline (Makefile.am): Likewise.
61350         * modules/readlink (Makefile.am): Likewise.
61351         * modules/readtokens (Makefile.am): Likewise.
61352         * modules/readutmp (Makefile.am): Likewise.
61353         * modules/realloc (Makefile.am): Likewise.
61354         * modules/regex (Makefile.am): Likewise.
61355         * modules/rename-dest-slash (Makefile.am): Likewise.
61356         * modules/rename (Makefile.am): Likewise.
61357         * modules/rijndael (Makefile.am): Likewise.
61358         * modules/rmdir (Makefile.am): Likewise.
61359         * modules/rpmatch (Makefile.am): Likewise.
61360         * modules/safe-read (Makefile.am): Likewise.
61361         * modules/safe-write (Makefile.am): Likewise.
61362         * modules/same-inode (Makefile.am): Likewise.
61363         * modules/same (Makefile.am): Likewise.
61364         * modules/save-cwd (Makefile.am): Likewise.
61365         * modules/savedir (Makefile.am): Likewise.
61366         * modules/setenv (Makefile.am): Likewise.
61367         * modules/settime (Makefile.am): Likewise.
61368         * modules/sha1 (Makefile.am): Likewise.
61369         * modules/sig2str (Makefile.am): Likewise.
61370         * modules/snprintf (Makefile.am): Likewise.
61371         * modules/stat-macros (Makefile.am): Likewise.
61372         * modules/stat-time (Makefile.am): Likewise.
61373         * modules/stdbool (Makefile.am): Likewise.
61374         * modules/stdint (Makefile.am): Likewise.
61375         * modules/stdlib-safer (Makefile.am): Likewise.
61376         * modules/stpcpy (Makefile.am): Likewise.
61377         * modules/stpncpy (Makefile.am): Likewise.
61378         * modules/strcase (Makefile.am): Likewise.
61379         * modules/strcasestr (Makefile.am): Likewise.
61380         * modules/strchrnul (Makefile.am): Likewise.
61381         * modules/strcspn (Makefile.am): Likewise.
61382         * modules/strdup (Makefile.am): Likewise.
61383         * modules/strerror (Makefile.am): Likewise.
61384         * modules/strftime (Makefile.am): Likewise.
61385         * modules/strndup (Makefile.am): Likewise.
61386         * modules/strnlen (Makefile.am): Likewise.
61387         * modules/strpbrk (Makefile.am): Likewise.
61388         * modules/strsep (Makefile.am): Likewise.
61389         * modules/strstr (Makefile.am): Likewise.
61390         * modules/strtod (Makefile.am): Likewise.
61391         * modules/strtoimax (Makefile.am): Likewise.
61392         * modules/strtok_r (Makefile.am): Likewise.
61393         * modules/strtol (Makefile.am): Likewise.
61394         * modules/strtoll (Makefile.am): Likewise.
61395         * modules/strtoul (Makefile.am): Likewise.
61396         * modules/strtoull (Makefile.am): Likewise.
61397         * modules/strtoumax (Makefile.am): Likewise.
61398         * modules/strverscmp (Makefile.am): Likewise.
61399         * modules/sys_socket (Makefile.am): Likewise.
61400         * modules/sys_stat (Makefile.am): Likewise.
61401         * modules/sysexits (Makefile.am): Likewise.
61402         * modules/time_r (Makefile.am): Likewise.
61403         * modules/timegm (Makefile.am): Likewise.
61404         * modules/timespec (Makefile.am): Likewise.
61405         * modules/tmpfile-safer (Makefile.am): Likewise.
61406         * modules/trim (Makefile.am): Likewise.
61407         * modules/unistd-safer (Makefile.am): Likewise.
61408         * modules/unlinkdir (Makefile.am): Likewise.
61409         * modules/unlocked-io (Makefile.am): Likewise.
61410         * modules/userspec (Makefile.am): Likewise.
61411         * modules/utime (Makefile.am): Likewise.
61412         * modules/utimecmp (Makefile.am): Likewise.
61413         * modules/utimens (Makefile.am): Likewise.
61414         * modules/vasnprintf (Makefile.am): Likewise.
61415         * modules/vasprintf (Makefile.am): Likewise.
61416         * modules/vsnprintf (Makefile.am): Likewise.
61417         * modules/xalloc (Makefile.am): Likewise.
61418         * modules/xgetcwd (Makefile.am): Likewise.
61419         * modules/xnanosleep (Makefile.am): Likewise.
61420         * modules/xreadlink (Makefile.am): Likewise.
61421         * modules/xstrtod (Makefile.am): Likewise.
61422         * modules/xstrtol (Makefile.am): Likewise.
61423         * modules/xstrtold (Makefile.am): Likewise.
61424         * modules/yesno (Makefile.am): Likewise.
61425         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61426
61427 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61428
61429         * modules/error (Makefile.am): Distribute files through
61430         EXTRA_DIST, not lib_SOURCES.
61431
61432 2006-10-12  Eric Blake  <ebb9@byu.net>
61433
61434         * modules/error (Makefile.am): Distribute files in /lib.
61435         * modules/obstack (Makefile.am): Likewise.
61436
61437 2006-10-12  Bruno Haible  <bruno@clisp.org>
61438
61439         * modules/acl (Makefile.am): Distribute all files in lib/ through
61440         EXTRA_DIST.
61441         * modules/arcfour (Makefile.am): Likewise.
61442         * modules/arctwo (Makefile.am): Likewise.
61443         * modules/argmatch (Makefile.am): Likewise.
61444         * modules/argz (Makefile.am): Likewise.
61445         * modules/atexit (Makefile.am): Likewise.
61446         * modules/backupfile (Makefile.am): Likewise.
61447         * modules/c-strtod (Makefile.am): Likewise.
61448         * modules/c-strtold (Makefile.am): Likewise.
61449         * modules/calloc (Makefile.am): Likewise.
61450         * modules/canon-host (Makefile.am): Likewise.
61451         * modules/canonicalize (Makefile.am): Likewise.
61452         * modules/chdir-long (Makefile.am): Likewise.
61453         * modules/chdir-safer (Makefile.am): Likewise.
61454         * modules/check-version (Makefile.am): Likewise.
61455         * modules/chown (Makefile.am): Likewise.
61456         * modules/cloexec (Makefile.am): Likewise.
61457         * modules/close-stream (Makefile.am): Likewise.
61458         * modules/closeout (Makefile.am): Likewise.
61459         * modules/crc (Makefile.am): Likewise.
61460         * modules/cycle-check (Makefile.am): Likewise.
61461         * modules/des (Makefile.am): Likewise.
61462         * modules/dirfd (Makefile.am): Likewise.
61463         * modules/dirname (Makefile.am): Likewise.
61464         * modules/dup2 (Makefile.am): Likewise.
61465         * modules/euidaccess (Makefile.am): Likewise.
61466         * modules/exclude (Makefile.am): Likewise.
61467         * modules/exitfail (Makefile.am): Likewise.
61468         * modules/fcntl-safer (Makefile.am): Likewise.
61469         * modules/file-type (Makefile.am): Likewise.
61470         * modules/fileblocks (Makefile.am): Likewise.
61471         * modules/filemode (Makefile.am): Likewise.
61472         * modules/filenamecat (Makefile.am): Likewise.
61473         * modules/fnmatch (Makefile.am): Likewise.
61474         * modules/fopen-safer (Makefile.am): Likewise.
61475         * modules/fpending (Makefile.am): Likewise.
61476         * modules/fprintftime (Makefile.am): Likewise.
61477         * modules/free (Makefile.am): Likewise.
61478         * modules/fsusage (Makefile.am): Likewise.
61479         * modules/ftruncate (Makefile.am): Likewise.
61480         * modules/fts (Makefile.am): Likewise.
61481         * modules/gc (Makefile.am): Likewise.
61482         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61483         * modules/getaddrinfo (Makefile.am): Likewise.
61484         * modules/getcwd (Makefile.am): Likewise.
61485         * modules/getdelim (Makefile.am): Likewise.
61486         * modules/getdomainname (Makefile.am): Likewise.
61487         * modules/getgroups (Makefile.am): Likewise.
61488         * modules/gethostname (Makefile.am): Likewise.
61489         * modules/gethrxtime (Makefile.am): Likewise.
61490         * modules/getline (Makefile.am): Likewise.
61491         * modules/getloadavg (Makefile.am): Likewise.
61492         * modules/getlogin_r (Makefile.am): Likewise.
61493         * modules/getopt (Makefile.am): Likewise.
61494         * modules/getpass (Makefile.am): Likewise.
61495         * modules/getpass-gnu (Makefile.am): Likewise.
61496         * modules/getsubopt (Makefile.am): Likewise.
61497         * modules/gettime (Makefile.am): Likewise.
61498         * modules/gettimeofday (Makefile.am): Likewise.
61499         * modules/getugroups (Makefile.am): Likewise.
61500         * modules/getusershell (Makefile.am): Likewise.
61501         * modules/glob (Makefile.am): Likewise.
61502         * modules/group-member (Makefile.am): Likewise.
61503         * modules/hard-locale (Makefile.am): Likewise.
61504         * modules/hash (Makefile.am): Likewise.
61505         * modules/hmac-md5 (Makefile.am): Likewise.
61506         * modules/hmac-sha1 (Makefile.am): Likewise.
61507         * modules/human (Makefile.am): Likewise.
61508         * modules/idcache (Makefile.am): Likewise.
61509         * modules/imaxabs (Makefile.am): Likewise.
61510         * modules/imaxdiv (Makefile.am): Likewise.
61511         * modules/inet_ntop (Makefile.am): Likewise.
61512         * modules/inet_pton (Makefile.am): Likewise.
61513         * modules/inttostr (Makefile.am): Likewise.
61514         * modules/isapipe (Makefile.am): Likewise.
61515         * modules/lchown (Makefile.am): Likewise.
61516         * modules/long-options (Makefile.am): Likewise.
61517         * modules/lstat (Makefile.am): Likewise.
61518         * modules/malloc (Makefile.am): Likewise.
61519         * modules/mathl (Makefile.am): Likewise.
61520         * modules/mbchar (Makefile.am): Likewise.
61521         * modules/md2 (Makefile.am): Likewise.
61522         * modules/md4 (Makefile.am): Likewise.
61523         * modules/md5 (Makefile.am): Likewise.
61524         * modules/memcasecmp (Makefile.am): Likewise.
61525         * modules/memchr (Makefile.am): Likewise.
61526         * modules/memcmp (Makefile.am): Likewise.
61527         * modules/memcoll (Makefile.am): Likewise.
61528         * modules/memcpy (Makefile.am): Likewise.
61529         * modules/memmem (Makefile.am): Likewise.
61530         * modules/memmove (Makefile.am): Likewise.
61531         * modules/mempcpy (Makefile.am): Likewise.
61532         * modules/memrchr (Makefile.am): Likewise.
61533         * modules/memset (Makefile.am): Likewise.
61534         * modules/memxor (Makefile.am): Likewise.
61535         * modules/mkancesdirs (Makefile.am): Likewise.
61536         * modules/mkdir (Makefile.am): Likewise.
61537         * modules/mkdir-p (Makefile.am): Likewise.
61538         * modules/mkdtemp (Makefile.am): Likewise.
61539         * modules/mkstemp (Makefile.am): Likewise.
61540         * modules/mktime (Makefile.am): Likewise.
61541         * modules/modechange (Makefile.am): Likewise.
61542         * modules/mountlist (Makefile.am): Likewise.
61543         * modules/nanosleep (Makefile.am): Likewise.
61544         * modules/openat (Makefile.am): Likewise.
61545         * modules/pagealign_alloc (Makefile.am): Likewise.
61546         * modules/physmem (Makefile.am): Likewise.
61547         * modules/poll (Makefile.am): Likewise.
61548         * modules/posixtm (Makefile.am): Likewise.
61549         * modules/posixver (Makefile.am): Likewise.
61550         * modules/putenv (Makefile.am): Likewise.
61551         * modules/quote (Makefile.am): Likewise.
61552         * modules/quotearg (Makefile.am): Likewise.
61553         * modules/raise (Makefile.am): Likewise.
61554         * modules/read-file (Makefile.am): Likewise.
61555         * modules/readline (Makefile.am): Likewise.
61556         * modules/readlink (Makefile.am): Likewise.
61557         * modules/readtokens (Makefile.am): Likewise.
61558         * modules/readutmp (Makefile.am): Likewise.
61559         * modules/realloc (Makefile.am): Likewise.
61560         * modules/regex (Makefile.am): Likewise.
61561         * modules/rename (Makefile.am): Likewise.
61562         * modules/rename-dest-slash (Makefile.am): Likewise.
61563         * modules/rijndael (Makefile.am): Likewise.
61564         * modules/rmdir (Makefile.am): Likewise.
61565         * modules/rpmatch (Makefile.am): Likewise.
61566         * modules/safe-read (Makefile.am): Likewise.
61567         * modules/safe-write (Makefile.am): Likewise.
61568         * modules/same (Makefile.am): Likewise.
61569         * modules/save-cwd (Makefile.am): Likewise.
61570         * modules/savedir (Makefile.am): Likewise.
61571         * modules/setenv (Makefile.am): Likewise.
61572         * modules/settime (Makefile.am): Likewise.
61573         * modules/sha1 (Makefile.am): Likewise.
61574         * modules/sig2str (Makefile.am): Likewise.
61575         * modules/snprintf (Makefile.am): Likewise.
61576         * modules/stdlib-safer (Makefile.am): Likewise.
61577         * modules/stpcpy (Makefile.am): Likewise.
61578         * modules/stpncpy (Makefile.am): Likewise.
61579         * modules/strcase (Makefile.am): Likewise.
61580         * modules/strcasestr (Makefile.am): Likewise.
61581         * modules/strchrnul (Makefile.am): Likewise.
61582         * modules/strcspn (Makefile.am): Likewise.
61583         * modules/strdup (Makefile.am): Likewise.
61584         * modules/strerror (Makefile.am): Likewise.
61585         * modules/strftime (Makefile.am): Likewise.
61586         * modules/strndup (Makefile.am): Likewise.
61587         * modules/strnlen (Makefile.am): Likewise.
61588         * modules/strpbrk (Makefile.am): Likewise.
61589         * modules/strsep (Makefile.am): Likewise.
61590         * modules/strstr (Makefile.am): Likewise.
61591         * modules/strtod (Makefile.am): Likewise.
61592         * modules/strtoimax (Makefile.am): Likewise.
61593         * modules/strtok_r (Makefile.am): Likewise.
61594         * modules/strtol (Makefile.am): Likewise.
61595         * modules/strtoll (Makefile.am): Likewise.
61596         * modules/strtoul (Makefile.am): Likewise.
61597         * modules/strtoull (Makefile.am): Likewise.
61598         * modules/strtoumax (Makefile.am): Likewise.
61599         * modules/strverscmp (Makefile.am): Likewise.
61600         * modules/time_r (Makefile.am): Likewise.
61601         * modules/timegm (Makefile.am): Likewise.
61602         * modules/tmpfile-safer (Makefile.am): Likewise.
61603         * modules/unistd-safer (Makefile.am): Likewise.
61604         * modules/unlinkdir (Makefile.am): Likewise.
61605         * modules/userspec (Makefile.am): Likewise.
61606         * modules/utime (Makefile.am): Likewise.
61607         * modules/utimecmp (Makefile.am): Likewise.
61608         * modules/utimens (Makefile.am): Likewise.
61609         * modules/vasnprintf (Makefile.am): Likewise.
61610         * modules/vasprintf (Makefile.am): Likewise.
61611         * modules/vsnprintf (Makefile.am): Likewise.
61612         * modules/xalloc (Makefile.am): Likewise.
61613         * modules/xgetcwd (Makefile.am): Likewise.
61614         * modules/xnanosleep (Makefile.am): Likewise.
61615         * modules/xreadlink (Makefile.am): Likewise.
61616         * modules/xstrtod (Makefile.am): Likewise.
61617         * modules/xstrtol (Makefile.am): Likewise.
61618         * modules/xstrtold (Makefile.am): Likewise.
61619         * modules/yesno (Makefile.am): Likewise.
61620
61621 2006-10-12  Jim Meyering  <jim@meyering.net>
61622
61623         * m4/getloadavg.m4: Revert the change below.
61624
61625         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61626         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61627         fail with a symlink, which is what coreutils' ./bootstrap now
61628         creates by default.
61629
61630 2006-10-12  Bruno Haible  <bruno@clisp.org>
61631
61632         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61633         mingw.
61634         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61635         MSVC and mingw explicitly.
61636
61637 2006-10-11  Simon Josefsson  <jas@extundo.com>
61638             Bruno Haible  <bruno@clisp.org>
61639
61640         Add support for multiple gnulib-tool invocations in the scope of a
61641         single configure.ac file.
61642         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
61643         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
61644         with the same contents as the _LIBADD variable.
61645         (func_emit_initmacro_start, func_emit_initmacro_end,
61646         func_emit_initmacro_done): New functions.
61647         (func_import, func_create_testdir): Invoke them. Allow the identifiers
61648         gl_LIBOBJS and gl_LTLIBOBJS.
61649
61650 2006-10-11  Bruno Haible  <bruno@clisp.org>
61651
61652         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
61653         (func_create_testdir): Don't create po/Makefile.am, don't invoke
61654         autoreconf. Instead, invoke autopoint explicitly but move back the
61655         *.m4 files from gnulib.
61656
61657 2006-10-11  Bruno Haible  <bruno@clisp.org>
61658
61659         * gnulib-tool (func_usage): Make module names after --create-testdir
61660         optional.
61661         (func_create_testdir): If no module was specified, use nearly all
61662         modules.
61663
61664 2006-10-12  Jim Meyering  <jim@meyering.net>
61665
61666         Big performance improvement for fts-based tools that use FTS_NOSTAT.
61667         Avoid spurious inode-mismatch problems on non-POSIX file systems.
61668         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
61669         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
61670         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
61671         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
61672         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
61673         (fts_set_stat_required): New function.
61674         (fts_open): Defer the calls to fts_stat, if possible or requested.
61675         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
61676         into fts_stat itself.
61677         (fts_read): Perform any required (deferred) fts_stat call.
61678         (fts_build): Likewise, for the directory we're about to open and read.
61679         In the readdir loop, carefully decide whether each entry will require
61680         an eventual call to fts_stat, using dirent.d_type info if available.
61681         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
61682         a command line argument into this function.  Update all callers.
61683         Map a return value of FTS_DOT to FTS_D for a command line argument.
61684         * modules/fts (Depends-on): Add d-type.  Alphabetize.
61685         Thanks to Miklos Szeredi for his tenacity and for the initial
61686         bug report about "find" failing on a FUSE-based file system.
61687
61688         * lib/fts.c (fts_open): Use consistent indentation.
61689
61690 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61691
61692         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
61693         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
61694         reported by Jim Meyering.  All uses of cache variables renamed
61695         to match Autoconf's.
61696         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
61697         the other one.
61698
61699         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61700         Fix misspelling in diagnostic.
61701
61702 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61703
61704         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
61705         defined.  Problem reported by Matthew Woehlke.
61706
61707         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
61708         Add support for Tandem NonStop R series.
61709         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
61710         Use new macro.
61711
61712         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
61713         (has_trailing_slash): Omit size arg; all callers changed.
61714         Omit 'inline', since it doesn't help performance and we'd
61715         need to configure it.
61716         Don't count //, ///, etc. as having a trailing slash.
61717         As a side effect, this removes a C99ism reported by Matthew Woehlke.
61718         (rpl_rename_dest_slash): On failure, use rename's errno rather
61719         than (in some cases) an incorrect or junk errno.
61720         Simplify code by removing need to compute length; this does
61721         cause it to make two passes instead of one over the file name,
61722         but it's worth it.
61723
61724         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
61725         change, since Autoconf's version may no longer be appropriate now
61726         that we are using CVS Autoconf's version.  Add support for Tandem.
61727
61728 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61729             Bruno Haible  <bruno@clisp.org>
61730
61731         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
61732         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
61733         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
61734         gl_AC_TYPE_LONG_LONG.
61735
61736         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
61737         instead of HAVE_LONG_LONG.
61738         * lib/printf-args.c (printf_fetchargs): Likewise.
61739         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
61740         * lib/vasnprintf.c (VASNPRINTF): Likewise.
61741         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
61742         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
61743         gl_AC_TYPE_LONG_LONG.
61744
61745 2006-10-11  Bruno Haible  <bruno@clisp.org>
61746
61747         * m4/longlong.m4: Add comments.
61748         * m4/ulonglong.m4: Likewise.
61749
61750 2006-10-10  Bruno Haible  <bruno@clisp.org>
61751
61752         Make it possible to #define stpcpy, strdup to aliases.
61753         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
61754         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
61755
61756 2006-10-10  Bruno Haible  <bruno@clisp.org>
61757
61758         Make it possible to #define gcd to an alias.
61759         * lib/gcd.c: Include config.h.
61760
61761 2006-10-10  Bruno Haible  <bruno@clisp.org>
61762
61763         Make it possible to #define c_isascii to an alias.
61764         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
61765         defined. Undefine the macros before defining them, to avoid gcc
61766         warnings.
61767         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
61768         define NO_C_CTYPE_MACROS early.
61769
61770 2006-10-10  Bruno Haible  <bruno@clisp.org>
61771
61772         Make it possible to #define set_program_name to an alias.
61773         * lib/progname.c: Don't undefine set_program_name; instead, undefine
61774         ENABLE_RELOCATABLE early.
61775
61776 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61777
61778         Port to Tandem NSK OSS, which has 64-bit signed int but at most
61779         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
61780         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
61781         More generally, don't assume that 64-bit signed int is available
61782         if unsigned int is, and vice versa.
61783         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
61784         unsigned symbols, not on their signed counterparts.
61785         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
61786         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
61787         (UINT64_C, UINTMAX_C):
61788         Likewise.
61789         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
61790         unsigned counterparts.
61791         (Have_long_long, Unsigned): New macros.
61792         (Int): Renamed from INT.
61793         (strtoimax): Use the new macros.
61794         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
61795         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
61796         * modules/inttypes (inttypes.h): Substitute
61797         HAVE_UNSIGNED_LONG_LONG_INT.
61798         * modules/stdint (stdint.h): Likewise.
61799         (Files): Add m4/ulonglong.m4.
61800
61801 2006-10-10  Bruno Haible  <bruno@clisp.org>
61802
61803         Fix a gcc -Wshadow warning.
61804         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
61805         to 'bucket'.
61806         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
61807         gl_linked_indexof_from_to): Likewise.
61808         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
61809         Likewise.
61810         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
61811         Likewise.
61812         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
61813         Reported by Eric Blake.
61814
61815 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
61816
61817         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
61818         for NetBSD.  Problem reported by Bruno Haible.
61819
61820 2006-10-09  Jim Meyering  <jim@meyering.net>
61821
61822         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
61823         Patch from Bruno Haible.
61824
61825 2006-10-09  Jim Meyering  <jim@meyering.net>
61826
61827         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
61828         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
61829         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
61830
61831 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61832
61833         Don't include <config.h> twice; this doesn't work in some cases,
61834         e.g., when config.h has "#define intmax_t long long int" and
61835         we include <config.h>, <inttypes.h>, <config.h> in that order.
61836         Problem reported by Matthew Woehlke in:
61837         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
61838         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
61839         * lib/fts-cycle.c: Don't include config.h.
61840         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
61841         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
61842         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
61843         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
61844         inttypes.h.
61845         * lib/xstrtoumax.c: Likewise.
61846         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
61847         __strtol and the like, so that this module is more like its siblings.
61848         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
61849         Remove; no longer needed now that we assume gnulib inttypes.h.
61850
61851 2006-10-08  Bruno Haible  <bruno@clisp.org>
61852
61853         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
61854         option.
61855
61856 2006-10-07  Jim Meyering  <jim@meyering.net>
61857
61858         * modules/inttypes (inttypes.h): Revert what seems to have been
61859         an inadvertent part of today's change: use "|", not "/" in the
61860         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
61861
61862 2006-10-07  Bruno Haible  <bruno@clisp.org>
61863
61864         * modules/sublist: New file.
61865
61866 2006-10-07  Bruno Haible  <bruno@clisp.org>
61867
61868         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
61869         * modules/argz (argz.h): Likewise.
61870         * modules/arpa_inet (arpa/inet.h): Likewise.
61871         * modules/byteswap (byteswap.h): Likewise.
61872         * modules/configmake (configmake.h): Likewise.
61873         * modules/fcntl (fcntl.h): Likewise.
61874         * modules/fnmatch (fnmatch.h): Likewise.
61875         * modules/getopt (getopt.h): Likewise.
61876         * modules/glob (glob.h): Likewise.
61877         * modules/inttypes (inttypes.h): Likewise.
61878         * modules/netinet_in (netinet/in.h): Likewise.
61879         * modules/poll (poll.h): Likewise.
61880         * modules/stdbool (stdbool.h): Likewise.
61881         * modules/stdint (stdint.h): Likewise.
61882         * modules/sys_select (sys/select.h): Likewise.
61883         * modules/sys_socket (sys/socket.h): Likewise.
61884         * modules/sys_stat (sys/stat.h): Likewise.
61885         * modules/sysexits (sysexits.h): Likewise.
61886         * modules/unistd (unistd.h): Likewise.
61887         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61888         Add a "DO NOT EDIT" comment to the generated file.
61889         (func_import): Likewise for gnulib-comp.m4.
61890
61891 2006-10-07  Bruno Haible  <bruno@clisp.org>
61892
61893         * lib/gl_sublist.h: New file.
61894         * lib/gl_sublist.c: New file.
61895
61896 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61897
61898         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
61899         name (relative to the original working directory) and the file
61900         name component (relative to the temporary working directory).  All
61901         callers changed.
61902         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
61903         * lib/mkdir-p.c (make_dir_parents): Likewise.
61904         * lib/mkdir-p.h (make_dir_parents): Likewise.
61905
61906 2006-10-06  Eric Blake  <ebb9@byu.net>
61907
61908         Define several macros for use by the clean-temp module.
61909         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
61910         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
61911         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
61912
61913         * lib/clean-temp.h (close_stream_temp): New declaration.
61914         * lib/clean-temp.c (includes): Pull in headers according to what
61915         other modules are in use.
61916         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
61917
61918 2006-10-06  Bruno Haible  <bruno@clisp.org>
61919
61920         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
61921         instead of fopen, fwriteerror.
61922
61923 2006-10-06  Bruno Haible  <bruno@clisp.org>
61924
61925         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
61926         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
61927         int.
61928         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
61929         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
61930         Return an error indicator.
61931         Suggested by Eric Blake.
61932
61933 2006-10-06  Bruno Haible  <bruno@clisp.org>
61934
61935         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
61936         Reported by Eric Blake.
61937
61938 2006-10-06  Bruno Haible  <bruno@clisp.org>
61939
61940         * modules/closeout (Description): Mention stderr too.
61941
61942 2006-10-06  Bruno Haible  <bruno@clisp.org>
61943         and Paul Eggert  <eggert@cs.ucla.edu>
61944
61945         * lib/closeout.c (close_stdout): Also close stderr.
61946         * lib/closeout.h: Update comment.
61947
61948 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61949
61950         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
61951         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
61952         * lib/dirchownmod.c: Include lchown.h.
61953         * lib/lchown.c: Don't include files that lchown.h now includes.
61954         Don't declare chown, since lchown.h now does that.
61955         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
61956         (lchown): Define to rpl_chown if lchown is declared but
61957         does not exist.  Declare using a prototype if lchown is not
61958         declared.  Add a copyright notice.
61959         * lib/mkstemp.h: Include <unistd.h>.
61960         * lib/openat.c: Include lchown.h.
61961
61962         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
61963         we now test for that separately.
61964         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
61965         rather than O_NOFOLLOW, when testing whether it's possible to
61966         avoid a race condition reliably.
61967         * lib/savewd.c (savewd_chdir): Likewise.
61968
61969         Remove macros that are no longer needed now that stdint.h is
61970         reliable.
61971         * lib/fsusage.c (UINTMAX_MAX): Remove.
61972         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
61973         * lib/utimecmp.c (SIZE_MAX): Remove.
61974
61975         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
61976
61977         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
61978         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
61979         O_NOATIME works.
61980
61981 2006-10-05  Bruno Haible  <bruno@clisp.org>
61982
61983         * lib/gl_list.h (gl_sortedlist_search_from_to,
61984         gl_sortedlist_indexof_from_to): New declarations.
61985         (gl_list_implementation): New fields sortedlist_search_from_to,
61986         sortedlist_indexof_from_to.
61987         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
61988         inline functions.
61989         * lib/gl_list.c (gl_sortedlist_search_from_to,
61990         gl_sortedlist_indexof_from_to): New functions.
61991         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
61992         function.
61993         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
61994         (gl_array_sortedlist_search_from_to): New function.
61995         (gl_array_list_implementation): Update.
61996         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
61997         function.
61998         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
61999         (gl_carray_sortedlist_search_from_to): New function.
62000         (gl_carray_list_implementation): Update.
62001         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
62002         gl_linked_sortedlist_indexof_from_to): New functions.
62003         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62004         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62005         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
62006         gl_tree_sortedlist_indexof_from_to): New functions.
62007         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62008         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62009         Update.
62010         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62011         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
62012         Update.
62013
62014 2006-10-05  Bruno Haible  <bruno@clisp.org>
62015
62016         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
62017         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
62018         (struct gl_list_implementation): Add fields search_from_to,
62019         indexof_from_to. Remove fields search, indexof.
62020         (gl_list_search): Use the search_from_to method.
62021         (gl_list_search_from, gl_list_search_from_to): New functions.
62022         (gl_list_indexof): Use the indexof_from_to method.
62023         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62024         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
62025         (gl_list_search_from, gl_list_search_from_to): New functions.
62026         (gl_list_indexof): Use the indexof_from_to method.
62027         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62028         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
62029         gl_array_indexof. Add start_index, end_index arguments.
62030         (gl_array_search_from_to): Renamed from gl_array_search. Add
62031         start_index, end_index arguments.
62032         (gl_array_remove, gl_array_list_implementation): Update.
62033         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
62034         gl_carray_indexof. Add start_index, end_index arguments.
62035         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
62036         start_index, end_index arguments.
62037         (gl_carray_remove, gl_carray_list_implementation): Update.
62038         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
62039         gl_linked_search. Add start_index, end_index arguments.
62040         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
62041         start_index, end_index arguments.
62042         (gl_linked_remove): Update.
62043         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62044         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62045         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
62046         field to 'size_t'.
62047         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
62048         gl_tree_search. Add start_index, end_index arguments.
62049         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62050         start_index, end_index arguments.
62051         (gl_tree_remove): Update.
62052         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62053         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62054         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
62055         function.
62056         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
62057         gl_tree_search. Add start_index, end_index arguments.
62058         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62059         start_index, end_index arguments.
62060         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62061         Update.
62062         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62063
62064 2006-10-05  Bruno Haible  <bruno@clisp.org>
62065
62066         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
62067
62068         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
62069         fwriteerror_temp): New declarations.
62070         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
62071         (descriptors): New variable.
62072         (cleanup): First, close the descriptors.
62073         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
62074         fclose_temp, fwriteerror_temp): New functions.
62075
62076 2006-10-04  Jim Meyering  <jim@meyering.net>
62077
62078         * lib/fts.c (fts_open): Tiny comment change.
62079
62080 2006-10-04  Bruno Haible  <bruno@clisp.org>
62081
62082         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
62083         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
62084         gl_LOCK_BODY.
62085         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
62086         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
62087         gl_LOCK_EARLY_BODY.
62088         (gl_LOCK): Require gl_LOCK_BODY.
62089
62090 2006-10-04  Bruno Haible  <bruno@clisp.org>
62091
62092         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
62093         (gl_oset_search_atleast): New declaration.
62094         (struct gl_oset_implementation): Add field 'search_atleast'.
62095         (gl_oset_search_atleast): New inline function.
62096         * lib/gl_oset.c (gl_oset_search_atleast): New function.
62097         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
62098         (gl_array_oset_implementation): Update.
62099         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
62100         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
62101         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
62102
62103 2006-10-04  Bruno Haible  <bruno@clisp.org>
62104
62105         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
62106
62107 2006-10-03  Bruno Haible  <bruno@clisp.org>
62108
62109         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
62110         from gl_avltreehash_list_implementation.
62111
62112 2006-10-03  Bruno Haible  <bruno@clisp.org>
62113
62114         * lib/gl_oset.c (gl_oset_add): Fix return type.
62115
62116 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
62117
62118         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
62119
62120 2006-10-02  Eric Blake  <ebb9@byu.net>
62121
62122         * modules/strnlen (Depends-on): Add extensions.
62123
62124 2006-10-02  Eric Blake  <ebb9@byu.net>
62125
62126         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
62127         definition in 2.60+.
62128
62129 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
62130
62131         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
62132         checks.
62133
62134 2006-10-02  Bruno Haible  <bruno@clisp.org>
62135
62136         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
62137         to the AUTOMAKE_OPTIONS.
62138         Reported by Jim Meyering.
62139
62140 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62141
62142         Work around bug in Solaris 10 /proc file system:
62143         /proc/self/fd/NNN/.. isn't the parent directory of
62144         the directory whose file descriptor is NNN.  This needs to
62145         be worked around at run time, not compile time, since a
62146         program might be built on Solaris 8, where things work, and
62147         run on Solaris 10.
62148         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
62149         to use the following interface instead:
62150         (OPENAT_BUFFER_SIZE): New macro.
62151         (openat_proc_name): New function.
62152         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
62153         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
62154         Likewise.
62155         * lib/openat-proc.c: New file.
62156         * modules/openat (Files): Add lib/openat-proc.c.
62157         (Depends-on): Add same-inode, stdbool.
62158         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
62159
62160 2006-09-29  Bruno Haible  <bruno@clisp.org>
62161
62162         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
62163         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
62164         argument. Set stdout_closed before testing for ferror, not after.
62165         (fwriteerror, fwriteerror_no_ebadf): New functions.
62166
62167 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62168
62169         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
62170
62171 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
62172
62173         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
62174         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
62175
62176 2006-09-28  Jim Meyering  <jim@meyering.net>
62177
62178         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
62179         Include <unistd.h>.
62180
62181 2006-09-28  Bruno Haible  <bruno@clisp.org>
62182
62183         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
62184         * modules/linkedhash-list (Depends-on): Likewise.
62185         * modules/rbtreehash-list (Depends-on): Likewise.
62186
62187 2006-09-28  Bruno Haible  <bruno@clisp.org>
62188
62189         * lib/strndup.h: Simplify the redefinition of strndup.
62190         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
62191         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
62192
62193 2006-09-28  Bruno Haible  <bruno@clisp.org>
62194
62195         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
62196         * lib/gl_linkedhash_list.c: Likewise.
62197         * lib/gl_rbtreehash_list.c: Likewise.
62198
62199 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62200
62201         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
62202         getaddrinfo.
62203
62204         * lib/__fpending.h: Don't include <stdio_ext.h> unless
62205         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
62206         it causes <stdio_ext.h> to cause a compile-time error.
62207         Problem reported by Nelson H. F. Beebe.
62208         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
62209         of HAVE_DECL___PENDING.
62210
62211         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
62212         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
62213         declaration.
62214
62215 2006-09-27  Jim Meyering  <jim@meyering.net>
62216
62217         This file could end up with a definition for a function
62218         named __strndup, rather than rpl_strndup on a system with
62219         incomplete weak_alias support.
62220         * lib/strndup.c (strndup): Rename from __strndup.
62221         Remove #defines that used to map __strndup to strndup.
62222         Don't use K&R prototypes.
62223         Remove LIBC-related code, since this file is not sync'd with glibc.
62224         * lib/strndup.h: Revamp, accordingly.
62225         * m4/strndup.m4: Modernize.
62226
62227 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62228
62229         * modules/savewd (Depends-on): Add 'raise'.
62230         * lib/savewd.c: Include <signal.h>, for 'raise'.
62231
62232 2006-09-26  Jim Meyering  <jim@meyering.net>
62233
62234         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
62235         when we detect Darwin 8.7.0's acl_get_file bug.
62236         Rearrange to perform the new (below) run-test while $LIBS
62237         contains any acl-related library.  Set USE_ACL at the end.
62238         (gl_ACL_GET_FILE): New function.
62239
62240 2006-09-26  Eric Blake  <ebb9@byu.net>
62241
62242         * lib/verror.c: Include <config.h> unconditionally.
62243
62244 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
62245
62246         * modules/clock-time (Maintainer): Add self.
62247         * modules/getlogin_r (Depends-on): Add extensions.
62248
62249 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62250
62251         * modules/clock-time: New module.
62252         * modules/nanosleep (Depends-on): Add clock-time.
62253         * modules/gethrxtime (Depends-on): Likewise.
62254         * modules/gettime (Depends-on): Likewise.
62255         * modules/settime (Depends-on): Likewise.
62256
62257         * modules/fts-lgpl: Depend on openat.
62258         * modules/mkancesdirs: Depend on savewd.
62259         * modules/mkdir-p: Likewise.
62260
62261 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62262
62263         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62264
62265         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62266         `gl_have_arbitrary_file_name_length_limit' to
62267         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62268         actually works between configure runs.
62269
62270 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62271             Bruno Haible  <bruno@clisp.org>
62272
62273         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62274
62275 2006-09-25  Jim Meyering  <jim@meyering.net>
62276
62277         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62278         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62279
62280 2006-09-25  Eric Blake  <ebb9@byu.net>
62281
62282         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62283         exec's in 2006-09-18 patch when shuffling fds.
62284
62285 2006-09-25  Bruno Haible  <bruno@clisp.org>
62286
62287         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62288         Reported by Jim Meyering.
62289
62290 2006-09-24  Jim Meyering  <jim@meyering.net>
62291
62292         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62293         compare a pointer against a literal "0".  That caused failures with
62294         at least HP-UX's hpcc.
62295
62296 2006-09-22  Simon Josefsson  <jas@extundo.com>
62297
62298         * modules/gc-sha1:
62299         * modules/gc-md4:
62300         * modules/gc-hmac-sha1:
62301         * modules/gc-hmac-md5:
62302         * modules/gc-des:
62303         * modules/gc-arcfour: Distribute more files.
62304
62305 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62306
62307         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62308         (gl_linked_iterator_from_to): Initialize struct completely.
62309         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62310         (gl_tree_iterator_from_to): Likewise
62311         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62312         * lib/gl_array_list.c [lint] (gl_array_iterator)
62313         (gl_array_iterator_from_to): Likewise.
62314         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62315         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62316         (gl_carray_iterator_from_to): Likewise.
62317
62318         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62319         * lib/md4.c (md4_process_block): Remove unused variable.
62320         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62321         parentheses for clarity.
62322
62323 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62324
62325         * modules/bison-i18n (Depends-on): Add gettext.
62326
62327 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62328
62329         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62330         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62331         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62332         also add missing comma that caused broken test.
62333         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62334         stdlib.h, for `abort'.
62335         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62336         variables.
62337         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62338         include unistd.h if present, for `rmdir'.
62339         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62340         variables.
62341         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62342         in the process include standard headers for prototypes.
62343         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62344         gets declared on GNU/Linux.
62345         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62346         unistd.h, for `rmdir'.
62347         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62348
62349         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62350         always true.
62351         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62352
62353         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62354
62355 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62356
62357         * gnulib-tool (func_version): Create output all at once.  This
62358         may help avoid triggering unnecessary SIGPIPEs, and at any
62359         rate it doesn't hurt.
62360
62361 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62362             Bruno Haible  <bruno@clisp.org>
62363
62364         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62365         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62366         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62367
62368         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62369         (gl_FUNC_VASPRINTF): Invoke it.
62370
62371 2006-09-22  Bruno Haible  <bruno@clisp.org>
62372
62373         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62374         getloadavg.c as first argument.
62375
62376 2006-09-22  Bruno Haible  <bruno@clisp.org>
62377
62378         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62379         at the beginning of the gl_INIT macro.
62380         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62381         gl_GETLOADAVG.
62382
62383 2006-09-22  Bruno Haible  <bruno@clisp.org>
62384
62385         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62386         module.
62387         Suggested by Ralf Wildenhues.
62388
62389 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62390
62391         Import this patch from libc:
62392
62393         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62394
62395         * lib/regex_internal.c (re_string_reconstruct): Handle
62396         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62397         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62398         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62399         re_string_context_at.
62400
62401         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62402         now requires it.
62403         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62404         gl_REGEX now does it for us.
62405         (gl_REGEX): Add test taken from
62406         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62407
62408         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62409         Check that large offsets work.  Modernize Autoconf usages.
62410         Prefer "yes" to mean a good thing rather than a bad.
62411         Don't put "#define mkstemp" in config.h, as this might interfere
62412         with standard system headers that "#define mkstemp mkstemp64".
62413
62414         * modules/mkstemp (Depends-on): Add extensions, so that
62415         mkstemp is visible on some platforms.
62416         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62417         (Include): Change to "mkstemp.h" from <stdlib.h>.
62418         (Files): Add mkstemp.h.
62419
62420         * lib/mkstemp.h: New file, since some standard headers
62421         #define mkstemp.
62422         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62423         Include "mkstemp.h".
62424         Make the _LIBC code resemble glibc original more,
62425         e.g., use K&R style.
62426         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62427         (mkstemp): Remove, since mkstemp.h does this for us.
62428         * lib/stdlib--.h: Include mkstemp.h.
62429
62430         Import this patch from libc:
62431
62432         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62433
62434         * lib/tempname.c (__gen_tempname): Change attempts_min
62435         into a macro.  Use preprocessor to decide how to initialize
62436         attempts [Coverity CID 67].
62437
62438 2006-09-20  Bruno Haible  <bruno@clisp.org>
62439
62440         * lib/mkdtemp.c: Import from libc.
62441         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62442                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62443                 attempts_min into a macro.  Use preprocessor to decide how to
62444                 initialize attempts [Coverity CID 67].
62445         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62446                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62447                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62448
62449 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62450
62451         * gnulib-tool (func_exit): New function, to allow to pass the
62452         exit status portably through the trap.  Use everywhere.
62453         (--help, --version): Signal a write error.
62454         (trap): catch SIGPIPE, for write errors.
62455         Exit at the end of the trap, with the correct exit status.
62456
62457 2006-09-19  Karl Berry  <karl@gnu.org>
62458
62459         * doc/gnulib.texi: note about the license texinfo files.
62460
62461 2006-09-19  Eric Blake  <ebb9@byu.net>
62462
62463         * gnulib-tool: Avoid space-tab.
62464
62465 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62466
62467         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62468         that prevented coreutils 6.1 from building.  Problem reported
62469         by Petter Reinholdtsen.
62470
62471 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62472
62473         * gnulib-tool (avoidlist): Fix typo that broke options like
62474         --avoid=lock that are used by coreutils bootstrap.
62475
62476 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
62477
62478         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
62479         more systematically.
62480
62481 2006-09-18  Jim Meyering  <jim@meyering.net>
62482
62483         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
62484
62485 2006-09-18  Bruno Haible  <bruno@clisp.org>
62486
62487         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
62488
62489 2006-09-18  Bruno Haible  <bruno@clisp.org>
62490
62491         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
62492         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
62493         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
62494         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
62495         * m4/gettext.m4: Require autoconf >= 2.52.
62496         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
62497         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
62498         of gl_cv_header_inttypes_h.
62499
62500 2006-09-18  Bruno Haible  <bruno@clisp.org>
62501
62502         * lib/javaversion.c: Include configmake.h.
62503
62504 2006-09-18  Bruno Haible  <bruno@clisp.org>
62505
62506         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
62507         avoid that the while loops be executed in a subshell.
62508
62509 2006-09-18  Bruno Haible  <bruno@clisp.org>
62510
62511         * MODULES.html.sh (func_module): Break long lines.
62512         Suggested by Bruce Korb <bkorb@gnu.org>.
62513
62514 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62515
62516         Speed up by a factor of 1.12.
62517         * gnulib-tool (nl): New variable.
62518         (func_import): Rewrite include directive extraction to only read each
62519         directive once.
62520
62521 2006-09-17  Bruno Haible  <bruno@clisp.org>
62522
62523         * modules/javaversion (Makefile.am): Remove DEFS setting.
62524         (Depends-on): Add configmake, for PKGDATADIR definition.
62525
62526 2006-09-17  Bruno Haible  <bruno@clisp.org>
62527
62528         * gnulib-tool (func_create_testdir): Rewrite all files at once.
62529
62530 2006-09-17  Bruno Haible  <bruno@clisp.org>
62531
62532         * gnulib-tool (func_append): New function, stolen from libtool.m4.
62533         (func_modules_transitive_closure, func_modules_add_dummy,
62534         func_modules_to_filelist, func_import, func_create_testdir,
62535         func_create_megatestdir, ...): Use it wherever possible.
62536         Suggested by Ralf Wildenhues.
62537
62538 2006-09-16  Karl Berry  <karl@gnu.org>
62539
62540         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
62541         to avoid sectioning errors.
62542         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
62543         [ifinfo]: blank line after @center-ed titles.
62544         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
62545         Spell FSF address consistently with others.
62546         (These changes approved by rms.)
62547
62548 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62549
62550         Speed up by a factor of 1.61.
62551         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
62552         already checked module names again.
62553
62554 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62555
62556         Speed up by a factor of 1.13.
62557         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
62558         for new_files, and the input to func_add_or_update.
62559
62560 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62561
62562         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62563         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62564
62565 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62566
62567         * modules/mkancesdirs (Depends-on): Add fcntl.
62568         * modules/savewd: New file.
62569         * MODULES.html.sh (File system functions): Add savewd.
62570
62571         * modules/configmake (Makefile.am): Add support for the
62572         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62573
62574 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62575
62576         * m4/savewd.m4: New file.
62577
62578 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62579
62580         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62581         (dirchownmod): New arg FD.  All callers changed.
62582         Use FD rather than opening the directory ourself, as opening is
62583         now the caller's responsibility.
62584         * lib/dirchownmod.h: Likewise.
62585         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62586         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62587         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62588         (test_dir): Remove.
62589         (mkancesdirs): Return length of prefix of FILE that has already
62590         been made, or -2 if there is a child doing the work.  Redo
62591         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62592         ".", and treat ".." specially since it might stray back into
62593         already-created areas.  Use a subprocess if necessary.  New arg
62594         WD; all users changed.  MAKE_DIR function should now return 1
62595         if it creates a directory that is not readable.  Return -2 if
62596         a child process is spun off.
62597         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62598         Adjust signature to match code.
62599         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62600         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62601         all users changed.
62602         * lib/savewd.c, lib/savewd.h: New files.
62603
62604 2006-09-15  Jim Meyering  <jim@meyering.net>
62605
62606         * modules/rename-dest-slash: New module.
62607         * MODULES.html.sh (posix_compat): Add it here.
62608
62609         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62610
62611 2006-09-15  Jim Meyering  <jim@meyering.net>
62612
62613         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62614         file.
62615
62616         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62617
62618 2006-09-15  Jim Meyering  <jim@meyering.net>
62619
62620         * lib/rename-dest-slash.c (has_trailing_slash): Use
62621         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62622         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62623         test before testing whether SRC is a directory.
62624         Suggestions from Bruno Haible.
62625
62626         Avoid a warning about an unused variable.
62627         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62628         into the #ifdef block where it's used.
62629
62630         * lib/rename-dest-slash.c: New file.
62631
62632 2006-09-14  Bruno Haible  <bruno@clisp.org>
62633
62634         * lib/allocsa.c: Include <config.h> unconditionally.
62635         * lib/asnprintf.c: Likewise.
62636         * lib/asprintf.c: Likewise.
62637         * lib/c-strcasecmp.c: Likewise.
62638         * lib/c-strcasestr.c: Likewise.
62639         * lib/c-strncasecmp.c: Likewise.
62640         * lib/c-strstr.c: Likewise.
62641         * lib/classpath.c: Likewise.
62642         * lib/clean-temp.c: Likewise.
62643         * lib/concatpath.c: Likewise.
62644         * lib/copy-file.c: Likewise.
62645         * lib/csharpcomp.c: Likewise.
62646         * lib/csharpexec.c: Likewise.
62647         * lib/execute.c: Likewise.
62648         * lib/fatal-signal.c: Likewise.
62649         * lib/findprog.c: Likewise.
62650         * lib/fwriteerror.c: Likewise.
62651         * lib/gl_array_list.c: Likewise.
62652         * lib/gl_array_oset.c: Likewise.
62653         * lib/gl_avltree_list.c: Likewise.
62654         * lib/gl_avltree_oset.c: Likewise.
62655         * lib/gl_avltreehash_list.c: Likewise.
62656         * lib/gl_carray_list.c: Likewise.
62657         * lib/gl_linked_list.c: Likewise.
62658         * lib/gl_linkedhash_list.c: Likewise.
62659         * lib/gl_list.c: Likewise.
62660         * lib/gl_oset.c: Likewise.
62661         * lib/gl_rbtree_list.c: Likewise.
62662         * lib/gl_rbtree_oset.c: Likewise.
62663         * lib/gl_rbtreehash_list.c: Likewise.
62664         * lib/imaxabs.c: Likewise.
62665         * lib/imaxdiv.c: Likewise.
62666         * lib/javacomp.c: Likewise.
62667         * lib/javaexec.c: Likewise.
62668         * lib/javaversion.c: Likewise.
62669         * lib/linebreak.c: Likewise.
62670         * lib/localcharset.c: Likewise.
62671         * lib/lock.c: Likewise.
62672         * lib/mbchar.c: Likewise.
62673         * lib/mbswidth.c: Likewise.
62674         * lib/mkdtemp.c: Likewise.
62675         * lib/pipe.c: Likewise.
62676         * lib/printf-args.c: Likewise.
62677         * lib/printf-parse.c: Likewise.
62678         * lib/progname.c: Likewise.
62679         * lib/progreloc.c: Likewise.
62680         * lib/readlink.c: Likewise.
62681         * lib/sh-quote.c: Likewise.
62682         * lib/stpcpy.c: Likewise.
62683         * lib/stpncpy.c: Likewise.
62684         * lib/strcasecmp.c: Likewise.
62685         * lib/strcasestr.c: Likewise.
62686         * lib/strcspn.c: Likewise.
62687         * lib/striconv.c: Likewise.
62688         * lib/strncasecmp.c: Likewise.
62689         * lib/strnlen1.c: Likewise.
62690         * lib/strstr.c: Likewise.
62691         * lib/strtok_r.c: Likewise.
62692         * lib/tls.c: Likewise.
62693         * lib/tmpdir.c: Likewise.
62694         * lib/unicodeio.c: Likewise.
62695         * lib/unsetenv.c: Likewise.
62696         * lib/vasnprintf.c: Likewise.
62697         * lib/vasprintf.c: Likewise.
62698         * lib/wait-process.c: Likewise.
62699         * lib/xallocsa.c: Likewise.
62700         * lib/xsetenv.c: Likewise.
62701         * lib/xstriconv.c: Likewise.
62702
62703 2006-09-13  Simon Josefsson  <jas@extundo.com>
62704
62705         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
62706         that internally, suggested by Ralf Wildenhues
62707         <Ralf.Wildenhues@gmx.de>.
62708
62709 2006-09-13  Simon Josefsson  <jas@extundo.com>
62710
62711         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
62712         @LIBOBJS@.
62713         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62714
62715 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62716
62717         * lib/_fpending.c: Include <config.h> unconditionally, since we no
62718         longer worry about uses that don't define HAVE_CONFIG_H.
62719         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
62720         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
62721         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
62722         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
62723         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
62724         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
62725         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
62726         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
62727         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
62728         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
62729         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
62730         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
62731         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
62732         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
62733         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
62734         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
62735         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
62736         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
62737         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
62738         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
62739         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
62740         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
62741         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
62742         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
62743         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
62744         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
62745         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
62746         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
62747         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
62748         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
62749         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
62750         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
62751         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
62752         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
62753         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
62754         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
62755         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
62756         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
62757         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
62758         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
62759         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
62760         Likewise.
62761
62762 2006-09-13  Eric Blake  <ebb9@byu.net>
62763
62764         * lib/getopt.c: Fix typo in last commit.
62765
62766 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62767
62768         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
62769         dgettext.
62770
62771 2006-09-12  Jim Meyering  <jim@meyering.net>
62772
62773         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
62774         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
62775         Reported by Nelson H. F. Beebe.
62776
62777 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62778
62779         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
62780         program_invocation_name and program_invocation_short_name are
62781         initialized.
62782         * lib/argp-namefrob.h: Move declarations of program_invocation_name
62783         and program_invocation_short_name to argp.h, so they are visible
62784         to user programs.
62785         * lib/argp.h: Likewise
62786
62787 2006-09-10  Bruno Haible  <bruno@clisp.org>
62788
62789         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62790         m4/inttypes_h.m4, m4/uintmax_t.m4.
62791
62792 2006-09-10  Bruno Haible  <bruno@clisp.org>
62793
62794         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
62795         gl_AC_TYPE_UINTMAX_T.
62796
62797 2006-09-10  Bruno Haible  <bruno@clisp.org>
62798
62799         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
62800
62801 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62802
62803         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
62804         convention.  Text proposed by Bruno Haible.
62805         (struct argp_option): Document the use of N_() wrappers.
62806
62807         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
62808         '\v', and translate the two parts separately, instead of feeding
62809         the whole string to gettext.  This allows to exclude
62810         '\v' from the strings visible to the translator by writing doc
62811         strings as N_("..") "\v" N_("..").
62812
62813 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
62814
62815         * config/srclist.txt: Undo latest change; the bug was fixed.
62816
62817 2006-09-09  Bruno Haible  <bruno@clisp.org>
62818
62819         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
62820         assignments if building a library without libtool.
62821         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
62822         in func_emit_lib_Makefile_am.
62823         (func_import): When building a static library libfoo.a, arrange to
62824         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
62825         (func_create_testdir): Likewise.
62826         * modules/gc (configure.ac, Makefile.am): If building statically,
62827         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
62828         * modules/iconvme (configure.ac, Makefile.am): Likewise.
62829         * modules/striconv (configure.ac, Makefile.am): Likewise.
62830         Based on a suggestion by Ralf Wildenhues.
62831
62832 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62833
62834         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62835         Check for unistd.h too, since Autoconf doesn't assume POSIX.
62836         Also:
62837
62838         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62839         Add year_2050_test to catch glibc bug 2821
62840         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62841
62842         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62843         Prefer #ifdef to #if.
62844
62845         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
62846         Return from 'main' instead of calling 'exit'.
62847
62848 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62849
62850         * lib/mktime.c (guess_time_tm): Fix bug where mktime
62851         returned the maximum time_t value rather than (time_t) -1.
62852         Problem originally reported by William Bardwell
62853         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62854
62855         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62856         Moved to here ...
62857         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62858         ... from here.
62859
62860 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62861
62862         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
62863         2821 is fixed.
62864
62865 2006-09-08  Jim Meyering  <jim@meyering.net>
62866
62867         Don't make generated files read-only.  That would bother too many
62868         people.  However, do retain the ability to work when targets are
62869         read-only: remove the destination and temporary files before writing
62870         them (when generated via sed or echo), or by using the -f option for
62871         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
62872         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62873         * modules/byteswap, modules/configmake, modules/fcntl:
62874         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62875         * modules/localcharset, modules/netinet_in, modules/poll:
62876         * modules/stdbool, modules/stdint, modules/sys_select:
62877         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62878
62879 2006-09-08  Jim Meyering  <jim@meyering.net>
62880
62881         Avoid new build failure on FreeBSD 6.0.
62882         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
62883         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
62884         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
62885
62886 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62887
62888         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
62889
62890 2006-09-07  Jim Meyering  <jim@meyering.net>
62891
62892         Fix global typo in last change: use chmod u-w, not chmod u-x.
62893         Spotted by Paul Eggert and Bruce Korb.
62894         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62895         * modules/byteswap, modules/configmake, modules/fcntl:
62896         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62897         * modules/localcharset, modules/netinet_in, modules/poll:
62898         * modules/stdbool, modules/stdint, modules/sys_select:
62899         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62900
62901 2006-09-06  Jim Meyering  <jim@meyering.net>
62902
62903         Make generated files be read-only.
62904         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
62905         Ensure that each generated file is now read-only.
62906         * modules/argz: Likewise.
62907         * modules/arpa_inet: Likewise.
62908         * modules/byteswap: Likewise.
62909         * modules/configmake: Likewise.
62910         * modules/fcntl: Likewise.
62911         * modules/fnmatch: Likewise.
62912         * modules/getopt: Likewise.
62913         * modules/glob: Likewise.
62914         * modules/inttypes: Likewise.
62915         * modules/netinet_in: Likewise.
62916         * modules/poll: Likewise.
62917         * modules/stdbool: Likewise.
62918         * modules/stdint: Likewise.
62919         * modules/sys_select: Likewise.
62920         * modules/sys_socket: Likewise.
62921         * modules/sys_stat: Likewise.
62922         * modules/sysexits: Likewise.
62923         * modules/localcharset: Same as above, but continue using temporary
62924         file named "t-$@" (why different?) rather than the "$@-t" used
62925         everywhere else.
62926
62927         * modules/sysexits (Makefile.am): Replace literal occurrences
62928         of "sysexit.h" more readable, and more consistent, "$@".
62929
62930 2006-09-06  Bruno Haible  <bruno@clisp.org>
62931
62932         * modules/striconv: New file.
62933         * modules/xstriconv: New file.
62934         * MODULES.html.sh (Internationalization functions): Add striconv,
62935         xstriconv.
62936
62937 2006-09-06  Bruno Haible  <bruno@clisp.org>
62938
62939         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
62940         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
62941         not using libtool correctly.
62942
62943 2006-09-06  Bruno Haible  <bruno@clisp.org>
62944
62945         * lib/striconv.h: New file.
62946         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
62947         iconvstring.c.
62948         * lib/xstriconv.h: New file.
62949         * lib/xstriconv.c: New file.
62950
62951 2006-09-06  Bruno Haible  <bruno@clisp.org>
62952
62953         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62954         lib_..._LDFLAGS.
62955
62956 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62957
62958         * lib/argz_.h: Sync from Libtool.
62959
62960         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
62961                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62962
62963         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
62964
62965 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62966
62967         * modules/trim: New file.
62968
62969 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62970
62971         * lib/trim.h: New file.
62972         * lib/trim.c: New file.
62973
62974 2006-09-05  Bruno Haible  <bruno@clisp.org>
62975
62976         * MODULES.html.sh (String handling): Add trim.
62977
62978 2006-09-04  Karl Berry  <karl@gnu.org>
62979
62980         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
62981         until next release.
62982
62983 2006-09-03  Bruno Haible  <bruno@clisp.org>
62984
62985         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
62986         correctly.
62987
62988 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62989
62990         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
62991         not gl_GETLOADAVG.  Omit unneeded semicolons.
62992         Problems reported by Ralf Wildenhues in
62993         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62994         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
62995         at the end, which is the usual gnulib style.
62996
62997         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
62998         of doing all the work ourselves.
62999         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
63000         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
63001
63002 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63003
63004         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
63005         Problem reported by Ralf Wildenhues in
63006         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63007
63008         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
63009         HAVE_STRUCT_STATFS_F_FSTYPENAME.
63010
63011 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63012
63013         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
63014         yesterday's patch by changing test -n to test -z.
63015
63016 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63017
63018         * modules/getloadavg (Files): Add m4/getloadavg.m4.
63019         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
63020         the former is now obsolescent.
63021
63022         * modules/chdir-long (Depends-on): Add fcntl.
63023
63024 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63025
63026         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
63027         obsolescent, and programs should use gnulib instead.
63028         * m4/getloadavg.m4: New file, with contents taken from Autoconf
63029         but with prefixes changed.
63030
63031 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63032
63033         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
63034         or stdbool.h, because they might not exist while configuring.
63035
63036         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
63037         Don't include unistd.h or limits.h; not needed, since chdir-long.h
63038         does that for us.
63039         (O_DIRECTORY): Remove.
63040
63041 2006-08-31  Eric Blake  <ebb9@byu.net>
63042
63043         * gnulib-tool: Don't let emacs change spaces to TAB.
63044
63045 2006-08-31  Bruno Haible  <bruno@clisp.org>
63046
63047         * gnulib-tool: When calling func_import more than once, do it in a
63048         subshell.
63049         Reported by Eric Blake <ebb9@byu.net>.
63050
63051 2006-08-31  Bruno Haible  <bruno@clisp.org>
63052
63053         * gnulib-tool (nl): Remove variable.
63054         (sed_transform_lib_file): Use more robust test for config-h module.
63055         (func_import): Fix typo in 2006-08-25 patch.
63056
63057 2006-08-31  Bruno Haible  <bruno@clisp.org>
63058
63059         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
63060         specified, augment Makefile.am variables instead of assigning them.
63061
63062 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63063
63064         Work around a bug in both the Linux and SunOS 64-bit kernels:
63065         nanosleep mishandles sleeps for longer than 2**31 seconds.
63066         Problem reported by Frank v Waveren in
63067         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63068         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
63069         Check for nanosleep bug.
63070         (LIB_NANOSLEEP): Append clock_gettime library if needed.
63071
63072 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63073
63074         Work around a bug in both the Linux and SunOS 64-bit kernels:
63075         nanosleep mishandles sleeps for longer than 2**31 seconds.
63076         Problem reported by Frank v Waveren in
63077         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63078         * lib/nanosleep.c (BILLION): New constant.
63079         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
63080         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
63081         implementation.
63082
63083 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63084
63085         * modules/nanosleep (Depends-on): Add gettime.
63086
63087 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63088         and Simon Josefsson  <jas@extundo.com>
63089         and Oskar Liljeblad  <oskar@osk.mine.nu>
63090
63091         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
63092         * gnulib-tool (func_import): New license type 'unmodifiable license
63093         text'.
63094         * modules/fdl: Use it.  Longer description.
63095         * module/gpl, module/lgpl: New files.
63096
63097 2006-08-30  Jim Meyering  <jim@meyering.net>
63098
63099         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
63100         shadowing the parameter.
63101
63102 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63103
63104         Sync from Libtool:
63105
63106         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63107
63108         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
63109         sharing with gnulib.  Report by Eric Blake.
63110
63111 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63112
63113         * modules/isapipe: New file.
63114         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
63115
63116 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63117
63118         * modules/configmake (Makefile.am): Add a comment, and omit
63119         the CONFIGMAKE_ prefix from generated macro names.  Suggested
63120         by Bruno Haible.
63121
63122 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63123
63124         * m4/isapipe.m4: New file.
63125
63126 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63127
63128         * lib/isapipe.c, lib/isapipe.h: New files.
63129
63130 2006-08-29  Jim Meyering  <jim@meyering.net>
63131
63132         * modules/configmake (Makefile.am): Make configmake.h depend on
63133         Makefile.  Otherwise, a stale configmake.h could hang around.
63134
63135 2006-08-29  Eric Blake  <ebb9@byu.net>
63136
63137         * lib/error.c (error_at_line, print_errno_message): Match libc, after
63138         resolution of upstream bug 3044.
63139
63140 2006-08-29  Bruno Haible  <bruno@clisp.org>
63141
63142         * modules/localcharset (Depends-on): Add configmake.
63143         (Makefile.am): Remove setting of LIBDIR through DEFS.
63144
63145 2006-08-29  Bruno Haible  <bruno@clisp.org>
63146
63147         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
63148         defined.
63149
63150 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63151
63152         * modules/fcntl: New file.
63153         * modules/chdir-safer (Depends-on): Add fcntl.
63154         * modules/fts: Likewise.
63155         * modules/mkdir-p: Likewise.
63156
63157         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
63158         This undoes the most recent change, since we're now addressing the
63159         problem in a different way.
63160
63161         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
63162         into output, since the output might be called Makefile.am even
63163         if $makefile_name is something different.
63164         (func_import): Use $makefile_am rather than
63165         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
63166         empty.
63167
63168         * modules/inttypes (Files): Add m4/inttypes-h.m4.
63169
63170 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63171
63172         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
63173         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
63174         recent change to stdint.m4, since we're now addressing the problem in a
63175         different way.
63176
63177 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63178
63179         * m4/fcntl_h.m4: New file.
63180
63181 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63182
63183         * lib/fcntl_.h: New file.
63184         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
63185         the fcntl module.
63186         * lib/dirchownmod.c: Likewise.
63187         * lib/fts.c: Likewise.
63188
63189         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
63190         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
63191         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
63192         just before including <inttypes.h>, to avoid circular inclusion.
63193
63194 2006-08-28  Jim Meyering  <jim@meyering.net>
63195
63196         * doc/visibility.texi: Actually read and correct the grammar of the
63197         sentence affected by yesterday's change.
63198
63199 2006-08-28  Eric Blake  <ebb9@byu.net>
63200
63201         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
63202         needs wrapper.
63203
63204 2006-08-28  Eric Blake  <ebb9@byu.net>
63205
63206         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
63207
63208 2006-08-28  Eric Blake  <ebb9@byu.net>
63209
63210         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
63211
63212 2006-08-28  Bruno Haible  <bruno@clisp.org>
63213
63214         * modules/c-strstr: New file, from GNU gettext.
63215         * MODULES.html.sh (String handling): Add c-strstr.
63216
63217 2006-08-28  Bruno Haible  <bruno@clisp.org>
63218
63219         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
63220         macros.
63221         Reported by Eric Blake.
63222
63223 2006-08-28  Bruno Haible  <bruno@clisp.org>
63224
63225         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
63226         (VASNPRINTF): Return a string of length > INT_MAX without failing.
63227         * lib/vasprintf.c: Include errno.h, limits.h.
63228         (EOVERFLOW): New fallback definition.
63229         (vasprintf): Test here whether the string length is > INT_MAX.
63230         * lib/vsnprintf.c: Include errno.h, limits.h.
63231         (EOVERFLOW): New fallback definition.
63232         (vsnprintf): Fix bug when generated string was too long for the buffer.
63233         Test here whether the string length is > INT_MAX.
63234
63235 2006-08-28  Bruno Haible  <bruno@clisp.org>
63236
63237         * lib/inttypes_.h (SCNX*): Remove definitions.
63238         Reported by Eric Blake.
63239
63240 2006-08-28  Bruno Haible  <bruno@clisp.org>
63241
63242         * lib/c-strstr.h: New file, from GNU gettext.
63243         * lib/c-strstr.c: New file, from GNU gettext.
63244
63245 2006-08-28  Bruno Haible  <bruno@clisp.org>
63246
63247         * gnulib-tool: Reorder some statements.
63248
63249 2006-08-28  Bruno Haible  <bruno@clisp.org>
63250
63251         * gnulib-tool: New option --makefile-name.
63252         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63253         $makefile_name.
63254         (func_import): Write $makefile_name to the cache file, and read it from
63255         there unless explicitly specified. Use $makefile_name as file name
63256         instead of Makefile.am. Adjust the recommendations accordingly.
63257
63258 2006-08-28  Bruno Haible  <bruno@clisp.org>
63259
63260         * gnulib-tool (func_verify_module): Check against misapplying patch.
63261
63262 2006-08-28  Bruno Haible  <bruno@clisp.org>
63263
63264         * gnulib-tool (func_relativize, func_relconcat): New functions.
63265         Give an error if --local-dir is given with --update.
63266         Remove trailing slashes from $local_gnulib_dir.
63267         (func_import): Store the relativized $local_gnulib_dir in
63268         gnulib-cache.m4, and read it from there if not specified explicitly.
63269
63270 2006-08-28  Bruno Haible  <bruno@clisp.org>
63271
63272         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63273         is the current directory. Respect also $local_gnulib_dir.
63274
63275 2006-08-28  Bruno Haible  <bruno@clisp.org>
63276             Simon Josefsson  <jas@extundo.com>
63277
63278         BeOS portability.
63279         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63280
63281 2006-08-27  Jim Meyering  <jim@meyering.net>
63282
63283         * doc/visibility.texi: Remove duplicate word: "pointer".
63284
63285 2006-08-26  Bruno Haible  <bruno@clisp.org>
63286
63287         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63288         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63289         (Makefile.am): Create inttypes.h from inttypes_.h.
63290         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63291
63292         * modules/imaxabs: New file.
63293
63294         * modules/imaxdiv: New file.
63295
63296 2006-08-26  Bruno Haible  <bruno@clisp.org>
63297
63298         * m4/inttypes.m4: New file.
63299         * m4/_inttypes_h.m4: Remove file.
63300         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63301         PRI_MACROS_BROKEN.
63302         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63303
63304         * m4/imaxabs.m4: New file.
63305
63306         * m4/imaxdiv.m4: New file.
63307
63308 2006-08-26  Bruno Haible  <bruno@clisp.org>
63309
63310         * lib/inttypes_.h: New file.
63311         * lib/inttypes.h: Remove file.
63312         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63313
63314         * lib/imaxabs.c: New file.
63315
63316         * lib/imaxdiv.c: New file.
63317
63318 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63319
63320         New config-h module, so that "make" output needn't be cluttered
63321         by -DHAVE_CONFIG_H.
63322         * MODULES.html.sh (Support for building libraries and executables):
63323         Add config-h.
63324         * modules/config-h: New file.
63325         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63326         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63327         the config-h module is used.
63328
63329         New configmake module, so that "make" output needn't be cluttered
63330         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63331         * MODULES.html.sh (Support for building libraries and executables):
63332         Add configmake.
63333         * modules/configmake: New file.
63334
63335 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63336
63337         * m4/config-h.m4: New file.
63338
63339 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63340
63341         * config/srclist.txt: Add elisp-comp.
63342
63343 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63344
63345         * MODULES.html.sh (Support for building libraries and executables):
63346         Add elisp-comp.
63347         * build-aux/elisp-comp: New file.
63348         * modules/elisp-comp: New file.
63349
63350 2006-08-24  Bruno Haible  <bruno@clisp.org>
63351
63352         * gnulib-tool (func_create_testdir): Use non-default values of
63353         sourcebase and m4base.
63354
63355 2006-08-24  Bruno Haible  <bruno@clisp.org>
63356
63357         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63358         HTML structure.
63359
63360 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63361
63362         * modules/openat (Depends-on): Add lchown.
63363
63364 2006-08-23  Bruno Haible  <bruno@clisp.org>
63365
63366         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63367         of gl_LOCK_EARLY instead of gl_LOCK.
63368
63369 2006-08-23  Bruno Haible  <bruno@clisp.org>
63370
63371         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63372         on OSF/1 to no.
63373         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63374
63375 2006-08-23  Bruno Haible  <bruno@clisp.org>
63376
63377         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63378         as unusable.
63379
63380         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63381         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63382         (gl_LOCK): New macro.
63383
63384 2006-08-22  Simon Josefsson  <jas@extundo.com>
63385
63386         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63387         to md5 module.
63388
63389 2006-08-22  Simon Josefsson  <jas@extundo.com>
63390
63391         * MODULES.html.sh: Add "Support for maintaining and release
63392         projects".
63393
63394         * build-aux/gnupload: New file, from coreutils.
63395
63396 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63397
63398         Avoid the need for AC_LIBSOURCES in m4 macros.
63399         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63400         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63401         * modules/check-version (EXTRA_DIST): Add check-version.h.
63402         * modules/crc (EXTRA_DIST): Add crc.h.
63403         * modules/des (EXTRA_DIST): Add des.h.
63404         * modules/gc (EXTRA_DIST): Add gc.h.
63405         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63406         * modules/getline (EXTRA_DIST): Add getline.h.
63407         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63408         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63409         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63410         * modules/md2 (EXTRA_DIST): Add md2.h.
63411         * modules/md4 (EXTRA_DIST): Add md4.h.
63412         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63413         * modules/read-file (EXTRA_DIST): Add read-file.h.
63414         * modules/readline (EXTRA_DIST): Add readline.h.
63415         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63416         rijndael-api-fst.h.
63417
63418 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63419
63420         * m4/rijndael.m4 (gl_ARCFOUR):
63421         * m4/arctwo.m4 (gl_ARCTWO):
63422         * m4/check-version.m4 (gl_CHECK_VERSION):
63423         * m4/crc.m4 (gl_CRC):
63424         * m4/des.m4 (gl_DES):
63425         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63426         * m4/gc.m4 (gl_GC):
63427         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63428         * m4/getline.m4 (gl_FUNC_GETLINE):
63429         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63430         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63431         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63432         * m4/md2.m4 (gl_MD2):
63433         * m4/md4.m4 (gl_MD4):
63434         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63435         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63436         * m4/readline.m4 (gl_FUNC_READLINE):
63437         * m4/rijndael.m4 (gl_RIJNDAEL):
63438         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63439         to get the necessary .h files and whatnot.
63440
63441 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63442
63443         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63444         gnulib rather than the other way around.
63445         * config/srclistvars.sh (COREUTILS): Remove.
63446
63447 2006-08-22  Jim Meyering  <jim@meyering.net>
63448
63449         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63450
63451         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63452
63453 2006-08-22  Eric Blake  <ebb9@byu.net>
63454
63455         * modules/regexprops-generic: New file.
63456         * MODULES.html.sh (Support for building documentation): List it.
63457
63458 2006-08-22  Eric Blake  <ebb9@byu.net>
63459
63460         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63461         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63462         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63463         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63464
63465 2006-08-22  Bruno Haible  <bruno@clisp.org>
63466
63467         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63468         and lib_LTLIBRARIES like the other lib_* variables.
63469
63470 2006-08-22  Bruno Haible  <bruno@clisp.org>
63471
63472         * build-aux/x-to-1.in: New file, from GNU gettext.
63473
63474 2006-08-22  Bruno Haible  <bruno@clisp.org>
63475
63476         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
63477         <utmpx.h> exists.
63478
63479 2006-08-22  Bruno Haible  <bruno@clisp.org>
63480
63481         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
63482         <utmpx.h> exists.
63483
63484 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63485
63486         BeOS portability.
63487         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
63488         exist.
63489         Problem reported by Bruno Haible.
63490
63491 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63492
63493         Avoid the need for AC_LIBSOURCES in m4 macros.
63494         * modules/acl (EXTRA_DIST): Add acl.h.
63495         * modules/argmatch (Files): Add m4/argmatch.m4.
63496         (configure.ac): Add gl_ARGMATCH.
63497         (EXTRA_DIST): Renamed from lib_SOURCES, for
63498         consistency with the other modules.  Remove argmatch.c.
63499         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
63500         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
63501         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
63502         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
63503         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
63504         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
63505         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
63506         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
63507         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
63508         * modules/closeout (EXTRA_DIST): Add closeout.h.
63509         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
63510         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
63511         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
63512         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
63513         dirname.h; remove basename.c and stripslash.c.
63514         * modules/exclude (EXTRA_DIST): Add exclude.h.
63515         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
63516         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
63517         * modules/file-type (EXTRA_DIST): Add file-type.h.
63518         * modules/filemode (EXTRA_DIST): Add filemode.h.
63519         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
63520         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63521         * modules/fpending (EXTRA_DIST): Add __fpending.h.
63522         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
63523         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
63524         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
63525         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
63526         * modules/getdate (EXTRA_DIST): Add getdate.c.
63527         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
63528         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
63529         * modules/getpass (EXTRA_DIST): Add getpass.h.
63530         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
63531         * modules/group-member (EXTRA_DIST): Add group-member.h.
63532         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
63533         * modules/hash (EXTRA_DIST): Add hash.h.
63534         * modules/human (EXTRA_DIST): Add human.h.
63535         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
63536         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
63537         * modules/lchown (EXTRA_DIST): Add lchown.h.
63538         * modules/long-options (EXTRA_DIST): Add long-options.h.
63539         * modules/lstat (EXTRA_DIST): Add lstat.h.
63540         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
63541         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
63542         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
63543         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
63544         * modules/memxor (EXTRA_DIST): Add memxor.h.
63545         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
63546         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
63547         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
63548         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
63549         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
63550         * modules/physmem (EXTRA_DIST): Add physmem.h.
63551         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
63552         * modules/posixver (EXTRA_DIST): Add posixver.h.
63553         * modules/quote (EXTRA_DIST): Add quote.h.
63554         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
63555         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
63556         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
63557         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
63558         regex_internal.h regexec.c.
63559         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
63560         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
63561         * modules/same (EXTRA_DIST): Add same.h.
63562         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63563         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63564         * modules/savedir (EXTRA_DIST): Add savedir.h.
63565         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63566         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63567         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63568         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63569         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63570         * modules/strdup (EXTRA_DIST): Add strdup.h.
63571         * modules/strftime (EXTRA_DIST): Add strftime.h.
63572         * modules/strndup (EXTRA_DIST): Add strndup.h.
63573         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63574         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63575         * modules/time_r (EXTRA_DIST): Add time_r.h.
63576         * modules/timespec (EXTRA_DIST): Add timespec.h.
63577         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63578         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63579         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63580         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63581         * modules/userspec (EXTRA_DIST): Add userspec.h.
63582         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63583         * modules/utimens (EXTRA_DIST): Add utimens.h.
63584         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63585         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63586         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63587         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63588         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63589         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63590         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63591         * modules/yesno (EXTRA_DIST): Add yesno.h.
63592
63593 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63594
63595         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63596
63597         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63598         * m4/dev-ino.m4, same-inode.m4: Remove.
63599
63600         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63601         * m4/acl.m4 (AC_FUNC_ACL):
63602         * m4/backupfile.m4 (gl_BACKUPFILE):
63603         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63604         * m4/canon-host.m4 (gl_CANON_HOST):
63605         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63606         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63607         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63608         * m4/cloexec.m4 (gl_CLOEXEC):
63609         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63610         * m4/closeout.m4 (gl_CLOSEOUT):
63611         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63612         * m4/dirname.m4 (gl_DIRNAME):
63613         * m4/exclude.m4 (gl_EXCLUDE):
63614         * m4/exitfail.m4 (gl_EXITFAIL):
63615         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63616         * m4/file-type.m4 (gl_FILE_TYPE):
63617         * m4/filemode.m4 (gl_FILEMODE):
63618         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63619         * m4/fpending.m4 (gl_FUNC_FPENDING):
63620         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63621         * m4/fts.m4 (gl_FUNC_FTS):
63622         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63623         * m4/getdate.m4 (gl_GETDATE):
63624         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63625         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63626         * m4/getpass.m4 (gl_FUNC_GETPASS):
63627         * m4/gettime.m4 (gl_GETTIME):
63628         * m4/getugroups.m4 (gl_GETUGROUPS):
63629         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63630         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63631         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63632         * m4/hash.m4 (gl_HASH):
63633         * m4/idcache.m4 (gl_IDCACHE):
63634         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63635         * m4/lchown.m4 (gl_FUNC_LCHOWN):
63636         * m4/long-options.m4 (gl_LONG_OPTIONS):
63637         * m4/lstat.m4 (gl_FUNC_LSTAT):
63638         * m4/md5.m4 (gl_MD5):
63639         * m4/memcasecmp.m4 (gl_MEMCASECMP):
63640         * m4/memcoll.m4 (gl_MEMCOLL):
63641         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
63642         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
63643         * m4/memxor.m4 (gl_MEMXOR):
63644         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
63645         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
63646         * m4/modechange.m4 (gl_MODECHANGE):
63647         * m4/mountlist.m4 (gl_MOUNTLIST):
63648         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63649         * m4/openat.m4 (gl_FUNC_OPENAT):
63650         * m4/pathmax.m4 (gl_PATHMAX):
63651         * m4/physmem.m4 (gl_PHYSMEM):
63652         * m4/posixtm.m4 (gl_POSIXTM):
63653         * m4/posixver.m4 (gl_POSIXVER):
63654         * m4/quote.m4 (gl_QUOTE):
63655         * m4/quotearg.m4 (gl_QUOTEARG):
63656         * m4/readtokens.m4 (gl_READTOKENS):
63657         * m4/readutmp.m4 (gl_READUTMP):
63658         * m4/regex.m4 (gl_REGEX):
63659         * m4/safe-read.m4 (gl_SAFE_READ):
63660         * m4/safe-write.m4 (gl_SAFE_WRITE):
63661         * m4/same.m4 (gl_SAME):
63662         * m4/save-cwd.m4 (gl_SAVE_CWD):
63663         * m4/savedir.m4 (gl_SAVEDIR):
63664         * m4/settime.m4 (gl_SETTIME):
63665         * m4/sha1.m4 (gl_SHA1):
63666         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
63667         * m4/stat-macros.m4 (gl_STAT_MACROS):
63668         * m4/stat-time.m4 (gl_STAT_TIME):
63669         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
63670         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
63671         * m4/strdup.m4 (gl_FUNC_STRDUP):
63672         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
63673         * m4/strndup.m4 (gl_FUNC_STRNDUP):
63674         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
63675         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
63676         * m4/time_r.m4 (gl_TIME_R):
63677         * m4/timespec.m4 (gl_TIMESPEC):
63678         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
63679         * m4/unlinkdir.m4 (gl_UNLINKDIR):
63680         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
63681         * m4/userspec.m4 (gl_USERSPEC):
63682         * m4/utimecmp.m4 (gl_UTIMECMP):
63683         * m4/utimens.m4 (gl_UTIMENS):
63684         * m4/xalloc.m4 (gl_XALLOC):
63685         * m4/xgetcwd.m4 (gl_XGETCWD):
63686         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
63687         * m4/xreadlink.m4 (gl_XREADLINK):
63688         * m4/xstrtod.m4 (gl_XSTRTOD):
63689         * m4/yesno.m4 (gl_YESNO):
63690         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63691         to get the necessary .h files and whatnot.
63692
63693 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
63694             Bruno Haible  <bruno@clisp.org>
63695
63696         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
63697         /bin/sh understanding of '!' conditional negation.
63698
63699 2006-08-21  Jim Meyering  <jim@meyering.net>
63700
63701         * modules/openat (Depends-on): Really alphabetize.
63702
63703         * modules/acl (Depends-on): Add error and quote.
63704
63705         * check-module (find_included_lib_files): Add at-func.c to the
63706         ok-to-include-more-than-once white list.
63707
63708         * modules/openat (Depends-on): Add lstat.  Alphabetize.
63709
63710 2006-08-21  Bruno Haible  <bruno@clisp.org>
63711
63712         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63713         Emit a pkgdata_DATA variable only if some snippets add contents to it.
63714         Reported by Martin Lambers <marlam@marlam.de>.
63715
63716 2006-08-21  Bruno Haible  <bruno@clisp.org>
63717
63718         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
63719         specify an installation location, don't emit a noinst_LIBRARIES or
63720         noinst_LTLIBRARIES assignment.
63721
63722 2006-08-21  Bruno Haible  <bruno@clisp.org>
63723
63724         BeOS portability.
63725         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
63726         BeOS has mbrtowc() but no <wctype.h>.
63727
63728 2006-08-21  Bruno Haible  <bruno@clisp.org>
63729
63730         BeOS portability.
63731         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
63732         exist.
63733
63734 2006-08-21  Bruno Haible  <bruno@clisp.org>
63735
63736         BeOS portability.
63737         * lib/mbchar.h: Include <wctype.h> only if it exists.
63738
63739 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63740
63741         Remove files that are no longer needed by their respective modules.
63742         * m4/obstack.m4: Remove.
63743         * m4/strerror_r.m4: Remove.
63744         * m4/uint32_t.m4: Remove.
63745         * m4/uintptr_t.m4: Remove.
63746         * m4/ullong_max.m4: Remove.
63747         * m4/xstrtoimax.m4: Remove.
63748         * m4/xstrtoumax.m4: Remove.
63749
63750         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
63751         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
63752         dependencies now capture this.
63753
63754         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
63755         Do not use AC_LIBSOURCES, since gnulib modules now do this.
63756         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
63757         * m4/human.m4 (gl_HUMAN): Likewise.
63758         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
63759         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
63760
63761         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
63762
63763         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
63764         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
63765         stdint.
63766         * m4/human.m4 (gl_HUMAN): Likewise.
63767         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
63768         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
63769         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63770         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63771         * m4/xstrtol (gl_XSTRTOL): Likewise.
63772
63773         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
63774         AC_TYPE_LONG_LONG_INT.
63775         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63776         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
63777         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
63778         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63779
63780         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
63781         on stdbool.
63782
63783         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
63784         (gl_PREREQ_XSTRTOUL): Remove.
63785
63786         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
63787
63788         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
63789         mode.
63790
63791 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63792
63793         Add and change modules to make it easier for coreutils to use
63794         gnulib-tool.
63795         * modules/backupfile (Files): Remove m4/d-ino.m4.
63796         (Depends-on): Add d-ino.
63797         * modules/cycle-check (Depends-on): Add stdint.
63798         (lib_SOURCES): Add cycle-check.h.
63799         * modules/d-ino: New module.
63800         * modules/d-type: New module.
63801         * modules/error (Files): Remove m4/strerror_r.m4.
63802         * modules/filemode (Files): Add m4/st_dm_mode.m4.
63803         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63804         m4/inttypes_h.m4, m4/uintmax_t.m4.
63805         (Depends-on): Add stdint.
63806         (lib_SOURCES): Add fsusage.h.
63807         * modules/getcwd (Files): Remove d-ino.m4.
63808         (Depends-on): Add d-ino.
63809         * modules/getndelim2 (Depends-on): Add stdint.
63810         * modules/glob (Files): Remove m4/d-type.m4.
63811         (Depends-on): Add d-type.
63812         * modules/host-os: New module.
63813         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
63814         m4/inttypes_h.m4, m4/uintmax_t.m4.
63815         * Depends-on: Add stdint.
63816         (lib_SOURCES): Add human.h.
63817         * modules/inttostr (Files): Remove m4/intmax_t.m4,
63818         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
63819         m4/uintmax_t.m4, m4/ulonglong.m4.
63820         (Depends-on): Add stdint.
63821         (EXTRA_DIST): Add inttostr.h.
63822         * modules/lchmod: New module.
63823         * modules/link-follow: New module.
63824         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
63825         (Depends-on): Add lchmod.
63826         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
63827         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
63828         (Depends-on): Add stdint.
63829         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
63830         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
63831         (Depends-on): Add stdint.
63832         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
63833         * modules/perl: New module.
63834         * modules/regex (Depends-on): Add stdint.
63835         * modules/rmdir-errno: New module.
63836         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63837         m4/intmax_t.m4.
63838         (Depends-on): Add stdint.
63839         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63840         m4/uintmax_t.m4.
63841         (Depends-on): Add stdint.
63842         * modules/unlink-busy: New module.
63843         * modules/utimecmp (Depends-on): Add stdint.
63844         * modules/uptime: New module.
63845         * modules/winsz-ioctl: New module.
63846         * modules/winsz-termios: New module.
63847         * modules/xnanosleep (Depends-on): Add nanosleep.
63848         * modules/ullong_max: Remove.
63849         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
63850         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
63851         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
63852         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
63853         (Depends-on): Add inttypes.
63854         (lib_SOURCES): Add xstrtol.h.
63855         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
63856         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
63857         * MODULES.html.sh: Move 'assert' into the assert section.
63858         Move 'dummy' into the linking section.
63859         Remove ullong_max.
63860         Add section for compatibility checks for POSIX:2001 functions,
63861         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
63862         winsz-ioctl, and winsz-termios into it.
63863         Add lchmod.
63864         Add top-level Misc section and put host-os, perl, and uptime
63865         into it.
63866
63867 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63868
63869         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
63870         now assume the stdint module.  Do not include inttypes.h.
63871         * lib/fsusage.h: Likewise.
63872         * lib/getndelim2.c: Likewise.
63873         * lib/human.h: Likewise.
63874         * lib/inttostr.h: Likewise.
63875         * lib/obstack.c: Likewise.
63876         * lib/regex_internal.h: Likewise.
63877         * lib/tempname.c: Likewise.
63878         * lib/utimecmp.c: Likewise.
63879         * lib/xstrtol.h: Likewise.
63880
63881         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
63882
63883         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
63884         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
63885         * lib/xtime.h: Likewise.
63886
63887 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63888
63889         * modules/openat (Files): Add lib/fchmodat.c.
63890         Fixes problem reported by Jay Youngman.
63891
63892 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63893
63894         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
63895         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
63896
63897 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
63898             Bruno Haible  <bruno@clisp.org>
63899
63900         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
63901         and is a script that invokes bison. Tighten the code. Add comments.
63902
63903 2006-08-18  Jim Meyering  <jim@meyering.net>
63904
63905         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
63906         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
63907         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
63908         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
63909
63910 2006-08-18  Bruno Haible  <bruno@clisp.org>
63911
63912         * modules/bison-i18n: New file.
63913         * MODULES.html.sh (Internationalization functions): Add it.
63914
63915 2006-08-18  Bruno Haible  <bruno@clisp.org>
63916
63917         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
63918         sys/statvfs.h. When getmntinfo was found, check its declaration and
63919         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
63920
63921 2006-08-18  Bruno Haible  <bruno@clisp.org>
63922
63923         * m4/bison-i18n.m4: New file, from bison.
63924
63925 2006-08-18  Bruno Haible  <bruno@clisp.org>
63926
63927         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
63928         (ME_DUMMY): Treat "kernfs" as a dummy.
63929         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
63930
63931 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63932
63933         Update from coreutils.
63934
63935         2006-08-15  Jim Meyering  <jim@meyering.net>
63936
63937         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
63938
63939         2006-01-17  Jim Meyering  <jim@meyering.net>
63940
63941         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
63942
63943         2006-01-11  Jim Meyering  <jim@meyering.net>
63944
63945         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
63946         Check for the lchmod function.
63947
63948 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63949
63950         Update from coreutils.
63951
63952         * lib/__fpending.h: Add copyright notice.
63953         * lib/fprintftime.h: Likewise.
63954         * lib/savedir.c: Use (C) in copyright notice.
63955         * lib/savedir.h: Likewise.
63956
63957         2006-08-15  Jim Meyering  <jim@meyering.net>
63958
63959         * lib/at-func.c: New file, with the logic of all emulated at-functions.
63960         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
63961         in support of the EXPECTED_ERRNO macro.
63962         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
63963         definitions.  Instead, define the appropriate symbols and include
63964         "at-func.c".
63965         * lib/mkdirat.c (mkdirat): Likewise.
63966         * lib/fchmodat.c (fchmodat): Likewise.
63967         (ENOSYS): Remove definition.
63968         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
63969         it.  Don't include "unistd--.h" -- it wasn't ever used.
63970
63971         2006-01-17  Jim Meyering  <jim@meyering.net>
63972
63973         Rewrite fts.c not to change the current working directory,
63974         by using openat, fstatat, fdopendir, etc..
63975
63976         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
63977         (HAVE_OPENAT_SUPPORT): Define.
63978         [_LIBC] (fchdir): Don't undef or define; no longer used.
63979         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
63980         Now, this `function' always succeeds, and consumes its file descriptor
63981         parameter -- so callers must not close such FDs.  Update callers.
63982         (diropen_fd, opendirat, cwd_advance_fd): New functions.
63983         (diropen): Add parameter, SP.  Adjust all callers.
63984         Implement using diropen_fd, rather than open.
63985         (fts_open): Initialize new member, fts_cwd_fd.
63986         Remove fts_rft-setting code.
63987         (fts_close): Close fts_cwd_fd, if necessary.
63988         (__opendir2): Define in terms of opendir or opendirat,
63989         depending on whether the FST_NOCHDIR flag is set.
63990         (fts_build): Since fts_safe_changedir consumes its FD, and since
63991         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
63992         and close the dup'd file descriptor upon failure.
63993         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
63994         (fts_safe_changedir): Tweak semantics to reflect that this function
63995         now calls cwd_advance_fd and hence consumes its FD argument.
63996         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
63997         [struct FTS] (fts_rft): Remove now-unused member.
63998         [struct FTS] (fts_cycle.state): Improve comment.
63999
64000         * lib/openat.c (openat_needs_fchdir): New function.
64001         * lib/openat.h (openat_needs_fchdir): Declare it.
64002
64003 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64004
64005         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
64006         Problem and fix reported by Pádraig Brady in
64007         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
64008
64009 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64010
64011         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
64012
64013 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64014
64015         * lib/memcoll.c (memcoll): Optimize for the common case where the
64016         arguments are bytewise equal.
64017
64018 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64019
64020         * doc/regexprops-generic.texi: Add a copyright notice.
64021
64022 2006-08-15  Bruno Haible  <bruno@clisp.org>
64023
64024         * modules/tmpdir (License): Change to LGPL.
64025
64026 2006-08-15  Bruno Haible  <bruno@clisp.org>
64027
64028         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
64029         module.
64030
64031 2006-08-14  Simon Josefsson  <jas@extundo.com>
64032
64033         * config/srclist.txt: Add gnupload.
64034
64035 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64036
64037         Change copyright notice from LGPL 2 to GPL 2, since that's the
64038         standard form used in the gnulib repository.
64039         * tests/test-lock.c: Likewise.
64040         * tests/test-stdint.c: Likewise.
64041         * tests/test-tls.c: Likewise.
64042
64043         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
64044         prelude-manager.  User shorter URLs for GNU projects, without '?'.
64045         Add copyright notice.
64046
64047         * check-module: Add copyright notice.  Output a copyright
64048         notice if "--version" is specified.
64049         * modules/COPYING: New file.
64050         * tests/test-getaddrinfo.c: Add copyright notice.
64051         * tests/test-verify.c: Likewise.
64052
64053 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64054
64055         Change copyright notice from LGPL 2 to GPL 2, since that's the
64056         standard form used in the gnulib repository.
64057         * lib/lock.c: LGPL -> GPL.
64058         * lib/lock.h: Likewise.
64059         * lib/strnlen1.c: Likewise.
64060         * lib/strnlen1.h: Likewise.
64061         * lib/tls.c: Likewise.
64062         * lib/tls.h: Likewise.
64063         * lib/tmpdir.c: Likewise.
64064
64065         * lib/TODO: Remove; this belongs only in coreutils.
64066
64067 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64068
64069         Add copyright notices to long-enough files that lack them, since
64070         otherwise the files aren't clearly free.  Use the same notice that
64071         getdate.texi already uses.
64072         * doc/alloca-opt.texi: Add copyright notice.
64073         * doc/alloca.texi: Likewise.
64074         * doc/ctime.texi: Likewise.
64075         * doc/functions.texi: Likewise.
64076         * doc/gcd.texi: Likewise.
64077         * doc/gnulib-tool.texi: Likewise.
64078         * doc/inet_ntoa.texi: Likewise.
64079         * doc/visibility.texi: Likewise.
64080
64081         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
64082         * doc/quote.texi: Add copyright notice.
64083
64084         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
64085         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
64086         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
64087         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
64088         is now obsolete, and give a pointer to the Sun list.
64089         Add copyright notice.
64090
64091 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64092
64093         * config/srclistvars.sh: Add copyright notice.
64094
64095 2006-08-14  Eric Blake  <ebb9@byu.net>
64096
64097         Import the following change from libc:
64098
64099         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
64100
64101         Upstream bug 2997.
64102         * lib/misc/error.c: Add space between program name and message if file
64103         name is missing.
64104
64105 2006-08-12  Karl Berry  <karl@gnu.org>
64106
64107         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
64108         remove, these originate in gnulib now.
64109
64110 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64111
64112         * doc/Makefile (standards.info standards.html standards.dvi):
64113         Also depend on make-stds.texi.
64114
64115 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64116
64117         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
64118         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
64119
64120         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
64121         in wchar_t.  Problem reported by Eric Blake.
64122
64123         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
64124         LEN is smaller than SIZE.  Suggested by Bruno Haible.
64125         Also, help the compiler to keep LEN in a register.
64126
64127 2006-08-11  Eric Blake  <ebb9@byu.net>
64128
64129         * users.txt: Sort.  Add tar.
64130
64131 2006-08-11  Bruno Haible  <bruno@clisp.org>
64132
64133         * users.txt: New file.
64134
64135 2006-08-11  Bruno Haible  <bruno@clisp.org>
64136
64137         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
64138         before <wchar.h>. Needed for OSF/1 and BSD/OS.
64139
64140 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64141
64142         * modules/snprintf (Depends-on): Remove minmax.
64143         (Maintainer): Add self and Bruno.
64144
64145 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64146
64147         * lib/.cppi-disable: Add snprintf.h, socket_.h.
64148         * lib/snprintf.c: Include <errno.h> and <limits.h>.
64149         (EOVERFLOW): Define if the system does not.
64150         Do not include "minmax.h"; it wasn't used.
64151         (snprintf): Don't assume size_t promotes to an unsigned type.
64152         Fix bug when generated string was too long for the buffer: the
64153         buffer's contents are supposed to be the initial prefix of the
64154         output.  Don't assume vasnprintf returns EOVERFLOW if the size
64155         exceeds INT_MAX; do the check ourselves.
64156
64157         Import the following changes from libc:
64158
64159         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
64160
64161         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
64162         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
64163         set wc to the byte which couldn't be converted.
64164         (re_string_reconstruct): Don't clear valid_raw_len before calling
64165         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
64166         tip_context using re_string_context_at.
64167
64168         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
64169
64170         * lib/posix/regex.h: g++ still cannot handled [restrict].
64171
64172         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
64173
64174         * lib/posix/regex.h: Remove special handling for VMS.
64175
64176 2006-08-10  Jim Meyering  <jim@meyering.net>
64177
64178         * modules/same-inode: New module.
64179         * modules/dev-ino: New module.
64180         * modules/cycle-check: Depend on these modules, rather than simply
64181         including their .h files.
64182         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
64183         required via m4/cycle-check.m4.
64184         * modules/same: Depend on new same-inode module, rather than
64185         including same-inode.h.
64186         * modules/chdir-safer: New file.
64187
64188         * modules/chown (Depends-on): Add stat-macros.
64189
64190 2006-08-10  Jim Meyering  <jim@meyering.net>
64191
64192         * m4/cycle-check.m4: New file.
64193         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
64194         * m4/dev-ino.m4, m4/same-inode.m4: New files.
64195
64196 2006-08-10  Eric Blake  <ebb9@byu.net>
64197
64198         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
64199         in from original proposal.
64200
64201 2006-08-10  Eric Blake  <ebb9@byu.net>
64202         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64203
64204         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
64205         namespace.
64206
64207 2006-08-10  Bruno Haible  <bruno@clisp.org>
64208
64209         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
64210         as well.
64211
64212 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64213
64214         Sync from coreutils.
64215
64216         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
64217
64218         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
64219         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
64220
64221 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64222
64223         * modules/restrict: Remove; no longer needed now that we assume
64224         Autoconf 2.59 or later.
64225         * MODULES.html.sh: Remove 'restrict'.
64226         * modules/argp (Depends-on): Remove 'restrict'.
64227         * modules/base64 (Depends-on): Likewise.
64228         * modules/gc (Depends-on): Likewise.
64229         * modules/getaddrinfo (Depends-on): Likewise.
64230         * modules/glob (Depends-on): Likewise.
64231         * modules/inet_ntop (Depends-on): Likewise.
64232         * modules/inet_pton (Depends-on): Likewise.
64233         * modules/memxor (Depends-on): Likewise.
64234         * modules/regex (Depends-on): Likewise.
64235         * modules/strtok_r (Depends-on): Likewise.
64236         * modules/time_r (Depends-on): Likewise.
64237
64238 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64239
64240         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
64241         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
64242         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64243         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
64244         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
64245         * m4/memxor.m4 (gl_MEMXOR): Likewise.
64246         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
64247         gl_C_RESTRICT replaced by AC_C_RESTRICT.
64248
64249         Merge from coreutils.
64250         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
64251         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
64252         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64253         * m4/time_r.m4 (gl_TIME_R): Likewise.
64254
64255 2006-08-09  Karl Berry  <karl@gnu.org>
64256
64257         * config/srclist.txt: no more gettext-tools, per Bruno.
64258
64259 2006-08-08  Eric Blake  <ebb9@byu.net>
64260
64261         * modules/verror: New module.
64262         * MODULES.html.sh: Document it.
64263
64264 2006-08-08  Eric Blake  <ebb9@byu.net>
64265
64266         * lib/verror.h, lib/verror.c: New files.
64267
64268 2006-08-08  Eric Blake  <ebb9@byu.net>
64269
64270         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64271         verror_at_line output complies with GNU Coding Standards even when
64272         file is NULL.
64273
64274 2006-08-07  Bruno Haible  <bruno@clisp.org>
64275
64276         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64277         versions of AIX.
64278         Reported by Ralf Wildenhues.
64279
64280 2006-08-07  Bruno Haible  <bruno@clisp.org>
64281
64282         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64283         in an AC_DEFUN. Needed so that the autoconf snippets can use
64284         AC_REQUIRE.
64285
64286 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64287
64288         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64289         Initialize pkgdata_DATA.
64290         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64291         overriding it.
64292
64293 2006-08-06  Eric Blake  <ebb9@byu.net>
64294
64295         * lib/error.h: Fold in some upstream changes from glibc.
64296         * lib/error.c: Likewise.
64297
64298 2006-08-04  Bruno Haible  <bruno@clisp.org>
64299
64300         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64301         Make the mostlyclean-local rule depend on mostlyclean-generic.
64302         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64303
64304 2006-07-31  Bruno Haible  <bruno@clisp.org>
64305
64306         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64307         <stdlib.h>, <string.h>.
64308
64309 2006-07-30  Bruno Haible  <bruno@clisp.org>
64310
64311         * modules/readlink (License): Change to LGPL.
64312
64313 2006-07-30  Bruno Haible  <bruno@clisp.org>
64314
64315         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64316         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64317         set PKGDATADIR to point to it.
64318
64319 2006-07-30  Bruno Haible  <bruno@clisp.org>
64320
64321         * modules/csharpexec (configure.ac): Comment out macro invocation.
64322         * modules/javaexec (configure.ac): Likewise.
64323         * modules/javacomp-script (configure.ac): Likewise.
64324
64325         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64326
64327 2006-07-30  Bruno Haible  <bruno@clisp.org>
64328
64329         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64330         linked-list.
64331
64332 2006-07-30  Bruno Haible  <bruno@clisp.org>
64333
64334         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64335
64336 2006-07-30  Bruno Haible  <bruno@clisp.org>
64337
64338         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64339         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64340         get removed.
64341
64342 2006-07-29  Bruno Haible  <bruno@clisp.org>
64343
64344         Make it possible for gnulib-tool to work with locally modified or
64345         augmented gnulib repositories.
64346         * gnulib-tool (func_usage): Document --local-dir option.
64347         (local_gnulib_dir): New variable.
64348         Handle --local-dir option.
64349         (func_lookup_file): New function.
64350         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64351         (func_get_description, func_get_filelist, func_get_description,
64352         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64353         func_get_automake_snippet, func_get_include_directive,
64354         func_get_license, func_get_maintainer): Use func_lookup_file.
64355         (func_import, func_create_testdir): Use func_lookup_file.
64356
64357 2006-07-29  Bruno Haible  <bruno@clisp.org>
64358
64359         * modules/setenv (Depends-on): Add unistd.
64360
64361 2006-07-29  Bruno Haible  <bruno@clisp.org>
64362
64363         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64364
64365 2006-07-29  Bruno Haible  <bruno@clisp.org>
64366
64367         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64368
64369 2006-07-29  Bruno Haible  <bruno@clisp.org>
64370
64371         * gnulib-tool (import, update): If there is no Makefile.am, look at
64372         aclocal.m4, instead of bailing out.
64373
64374 2006-07-29  Bruno Haible  <bruno@clisp.org>
64375
64376         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64377         Categorize the options by when they are useful.
64378
64379 2006-07-29  Bruno Haible  <bruno@clisp.org>
64380
64381         * gnulib-tool (func_usage): Document option --no-libtool.
64382         Handle option --no-libtool.
64383         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64384         for changed semantics of $libtool variable.
64385         (func_import): Likewise. If libtool is not used, show this through
64386         an option --no-libtool.
64387         (func_create_testdir): Update.
64388
64389 2006-07-29  Bruno Haible  <bruno@clisp.org>
64390
64391         * gnulib-tool (func_import): Extend error message about missing
64392         --doc-base.
64393
64394 2006-07-29  Bruno Haible  <bruno@clisp.org>
64395
64396         * gnulib-tool (func_import): Don't create the $docbase directory if
64397         there is no file to store there.
64398
64399 2006-07-29  Bruno Haible  <bruno@clisp.org>
64400
64401         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64402         relevant, look for configure.ac there, not in the current directory.
64403         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64404
64405 2006-07-29  Bruno Haible  <bruno@clisp.org>
64406
64407         * gnulib-tool (SORT): New variable.
64408         (func_usage): Undocument --assume-autoconf option.
64409         Remove --assume-autoconf option handling.
64410         (autoconf_minversion): Determine from the contents of configure.ac.
64411         (func_import): Remove autoconf_minversion handling.
64412         Suggested by Eric Blake.
64413
64414 2006-07-29  Bruno Haible  <bruno@clisp.org>
64415
64416         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64417
64418 2006-07-29  Bruno Haible  <bruno@clisp.org>
64419
64420         * config/srclist.txt (*setenv.[ch]): Remove rules.
64421
64422 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64423
64424         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64425
64426 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64427
64428         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64429         arpa/inet.h.
64430
64431 2006-07-28  Simon Josefsson  <jas@extundo.com>
64432
64433         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64434         * modules/inet_pton (Depends-on): Likewise.
64435
64436 2006-07-28  Simon Josefsson  <jas@extundo.com>
64437
64438         * m4/netinet_in_h.m4: New file.
64439
64440 2006-07-28  Simon Josefsson  <jas@extundo.com>
64441
64442         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64443         #include's.
64444
64445 2006-07-28  Simon Josefsson  <jas@extundo.com>
64446
64447         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64448         #include's.
64449
64450 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64451
64452         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64453         setgid on directories only if they set these bits.
64454         * lib/modechange.h: Remove obsolete comment about masks.
64455
64456 2006-07-28  Eric Blake  <ebb9@byu.net>
64457
64458         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64459         macro expansion.
64460
64461 2006-07-28  Bruno Haible  <bruno@clisp.org>
64462
64463         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64464
64465 2006-07-28  Bruno Haible  <bruno@clisp.org>
64466
64467         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64468
64469 2006-07-28  Bruno Haible  <bruno@clisp.org>
64470
64471         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
64472         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
64473         Define fallbacks.
64474         Avoids link error on FreeBSD 4.x.
64475         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64476
64477         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
64478         encoding.
64479         * lib/mbswidth.c (iswcntrl): Likewise.
64480
64481 2006-07-27  Bruno Haible  <bruno@clisp.org>
64482
64483         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
64484         test.
64485
64486 2006-07-27  Bruno Haible  <bruno@clisp.org>
64487
64488         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
64489         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
64490         defined.
64491
64492 2006-07-26  Eric Blake  <ebb9@byu.net>
64493
64494         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
64495
64496 2006-07-26  Eric Blake  <ebb9@byu.net>
64497
64498         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
64499         like mingw that lack mkstemp.
64500         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
64501         avoid compilation warning on mingw.
64502
64503 2006-07-26  Bruno Haible  <bruno@clisp.org>
64504
64505         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
64506         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
64507         INT_FAST*_MIN, INTPTR_MIN.
64508
64509 2006-07-25  Bruno Haible  <bruno@clisp.org>
64510
64511         * modules/version-etc (Depends-on): Add stdarg.
64512
64513 2006-07-25  Bruno Haible  <bruno@clisp.org>
64514
64515         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
64516         complex commands.
64517
64518 2006-07-25  Bruno Haible  <bruno@clisp.org>
64519
64520         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
64521         defined in <stdarg.h> or config.h.
64522
64523 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64524
64525         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
64526         (gl_STDIO_SAFER): Remove.
64527
64528 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64529
64530         * MODULES.html.sh (File stream based Input/Output):
64531         Add fopen-safer, tmpfile-safer; remove stdio-safer.
64532         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
64533         * modules/fopen-safer, modules/tmpfile-safer: New files.
64534         * modules/stdio-safer: Remove.
64535
64536 2006-07-24  Bruno Haible  <bruno@clisp.org>
64537
64538         * modules/tmpdir: New file.
64539         * MODULES.html.sh (File system functions): Add it.
64540
64541 2006-07-24  Bruno Haible  <bruno@clisp.org>
64542
64543         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
64544         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
64545
64546 2006-07-24  Bruno Haible  <bruno@clisp.org>
64547
64548         * modules/clean-temp: New file.
64549
64550 2006-07-24  Bruno Haible  <bruno@clisp.org>
64551
64552         * m4/tmpdir.m4: New file, from GNU gettext.
64553
64554 2006-07-24  Bruno Haible  <bruno@clisp.org>
64555
64556         * lib/tmpdir.h: New file, from GNU gettext.
64557         * lib/tmpdir.c: New file, from GNU gettext.
64558
64559 2006-07-24  Bruno Haible  <bruno@clisp.org>
64560
64561         * lib/clean-temp.h: New file, from GNU gettext.
64562         * lib/clean-temp.c: New file, from GNU gettext.
64563
64564 2006-07-23  Eric Blake  <ebb9@byu.net>
64565
64566         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64567         (Depends-on): Add binary-io.
64568
64569 2006-07-23  Eric Blake  <ebb9@byu.net>
64570
64571         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64572
64573 2006-07-23  Eric Blake  <ebb9@byu.net>
64574
64575         * lib/tmpfile-safer.c: New file.
64576         * lib/stdio-safer.h (fopen_safer): Add prototype.
64577         * lib/stdio--.h (tmpfile): Make safer.
64578
64579 2006-07-23  Bruno Haible  <bruno@clisp.org>
64580
64581         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64582         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64583         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64584         gl_linked_remove_at): Use it.
64585
64586 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64587         and Simon Josefsson <jas@extundo.com>
64588
64589         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64590
64591         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64592
64593 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64594
64595         * modules/close-stream: New file.
64596         * modules/closeout (Description): Make it clear that it exits
64597         with a diagnostic on error.
64598         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64599         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64600
64601 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64602
64603         * m4/close-stream.m4: New file.
64604
64605 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64606
64607         * lib/close-stream.c, lib/close-stream.h: New files.
64608
64609 2006-07-22  Bruno Haible  <bruno@clisp.org>
64610
64611         Merge from GNU gettext 0.15.
64612
64613         2006-05-01  Bruno Haible  <bruno@clisp.org>
64614
64615                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64616
64617         2006-07-22  Bruno Haible  <bruno@clisp.org>
64618
64619                 * modules/javaversion: New file.
64620                 * MODULES.html.sh (Java): Add javaversion.
64621
64622         2006-03-12  Bruno Haible  <bruno@clisp.org>
64623
64624                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64625
64626         2005-12-04  Bruno Haible  <bruno@clisp.org>
64627
64628                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64629                 (untested).
64630
64631         2006-06-21  Bruno Haible  <bruno@clisp.org>
64632
64633                 Avoid warnings from recent versions of mcs.
64634                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64635                 -o, -L, -r any more. Use options documented since mcs-1.0
64636                 instead. Similarly for -g.
64637
64638         2005-12-04  Bruno Haible  <bruno@clisp.org>
64639
64640                 * build-aux/csharpcomp.sh.in: Suffix for resources is
64641                 .resources, not .resource.
64642
64643         2005-07-09  Bruno Haible  <bruno@clisp.org>
64644
64645                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
64646                 add a .dll suffix.
64647                 Reported by Mark Junker <mjscod@gmx.de>.
64648
64649         2006-07-22  Bruno Haible  <bruno@clisp.org>
64650
64651                 * modules/gettext: Upgrade to gettext-0.15.
64652                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
64653                 m4/visibility.m4.
64654                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
64655
64656 2006-07-22  Bruno Haible  <bruno@clisp.org>
64657
64658         Merge from GNU gettext 0.15.
64659
64660         2006-03-25  Bruno Haible  <bruno@clisp.org>
64661
64662                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
64663
64664         2006-07-21  Bruno Haible  <bruno@clisp.org>
64665
64666                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
64667                 "1.1".
64668
64669         2006-05-09  Bruno Haible  <bruno@clisp.org>
64670
64671                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
64672                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
64673                 for the conftestver execution.
64674
64675         2006-05-01  Bruno Haible  <bruno@clisp.org>
64676
64677                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
64678                 optional target-version argument. Verify that the compiler
64679                 groks source of the specified source-version, or add -source
64680                 option as necessary. Verify that the compiler produces
64681                 bytecode in the specified target-version, or add -target and
64682                 -source options as necessary. Make the result of the test
64683                 available as variable CONF_JAVAC. Also log error output in
64684                 config.log.
64685
64686         2006-03-11  Bruno Haible  <bruno@clisp.org>
64687
64688                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
64689
64690         2006-05-09  Bruno Haible  <bruno@clisp.org>
64691
64692                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
64693                 CLASSPATH_SEPARATOR to a semicolon.
64694
64695         2006-03-12  Bruno Haible  <bruno@clisp.org>
64696
64697                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
64698                 available as variable CONF_JAVA, for subsequent autoconf
64699                 tests. Also log error output in config.log.
64700
64701         2006-07-19  Bruno Haible  <bruno@clisp.org>
64702
64703                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
64704                 that getline works on glibc2 systems. Needed to avoid trouble
64705                 in relocatable.c.
64706                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
64707
64708         2005-12-04  Bruno Haible  <bruno@clisp.org>
64709
64710                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
64711                 launcher (untested).
64712
64713         2005-12-04  Bruno Haible  <bruno@clisp.org>
64714
64715                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
64716
64717         2006-07-22  Bruno Haible  <bruno@clisp.org>
64718
64719                 * gettext.m4: Update from GNU gettext-0.15.
64720                 * nls.m4: Likewise.
64721                 * po.m4: Likewise.
64722                 * inttypes-pri.m4: Likewise.
64723                 * inttypes-h.m4: Renamed from inttypes.m4.
64724                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
64725
64726 2006-07-22  Bruno Haible  <bruno@clisp.org>
64727
64728         Merge from GNU gettext 0.15.
64729
64730         2005-07-05  Bruno Haible  <bruno@clisp.org>
64731
64732                 * printf-args.c (printf_fetchargs): Work around broken
64733                 definition of wint_t on mingw.
64734
64735         2005-02-12  Bruno Haible  <bruno@clisp.org>
64736
64737                 * xallocsa.h: Add extern "C" for C++.
64738
64739         2006-05-17  Bruno Haible  <bruno@clisp.org>
64740
64741                 Cygwin portability.
64742                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
64743
64744         2006-04-30  Bruno Haible  <bruno@clisp.org>
64745
64746                 * progreloc.c: Include <mach-o/dyld.h> if available.
64747                 (find_executable): Use _NSGetExecutablePath when possible.
64748
64749         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64750
64751                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
64752                 function.
64753
64754         2005-12-29  Bruno Haible  <bruno@clisp.org>
64755
64756                 * progreloc.c (set_program_name_and_installdir): Fix
64757                 compilation error.
64758
64759         2005-12-04  Bruno Haible  <bruno@clisp.org>
64760
64761                 Cygwin portability.
64762                 * progreloc.c: Include <windows.h> also on Cygwin.
64763                 (find_executable): Add support for Cygwin.
64764                 (set_program_name_and_installdir): Handle also platforms with
64765                 nonempty EXEEXT.
64766
64767         2006-07-11  Bruno Haible  <bruno@clisp.org>
64768
64769                 * javacomp.c: Fix a comment.
64770                 Reported by Jim Meyering.
64771
64772         2006-04-30  Bruno Haible  <bruno@clisp.org>
64773
64774                 * javacomp.h (compile_java_class): Add source_version,
64775                 target_version arguments.
64776                 * javacomp.c: Rewritten to choose only a compiler that
64777                 respects the specified source_version and target_version.
64778
64779         2006-06-27  Bruno Haible  <bruno@clisp.org>
64780
64781                 Assume correct S_ISDIR macro.
64782                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
64783
64784         2006-07-22  Bruno Haible  <bruno@clisp.org>
64785
64786                 * javaversion.h: New file, from GNU gettext.
64787                 * javaversion.c: New file, from GNU gettext.
64788                 * javaversion.java: New file, from GNU gettext.
64789                 * javaversion.class: New file, from GNU gettext.
64790
64791         2006-05-17  Bruno Haible  <bruno@clisp.org>
64792
64793                 Cygwin portability.
64794                 * javaexec.c (execute_java_class): Test for jview program
64795                 also on Cygwin.
64796
64797         2006-04-09  Bruno Haible  <bruno@clisp.org>
64798
64799                 * fatal-signal.c: Don't include string.h.
64800                 (at_fatal_signal): Use a copying loop instead of memcpy.
64801
64802         2005-12-04  Bruno Haible  <bruno@clisp.org>
64803
64804                 * csharpexec.c: Add support for 'clix' launcher (untested).
64805                 (execute_csharp_using_sscli): New function.
64806                 (execute_csharp_program): Call it.
64807
64808         2006-06-21  Bruno Haible  <bruno@clisp.org>
64809
64810                 Avoid warnings from recent versions of mcs.
64811                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
64812                 -o, -L, -r any more. Use options documented since mcs-1.0
64813                 instead. Similarly for -g.
64814
64815         2005-07-09  Bruno Haible  <bruno@clisp.org>
64816
64817                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
64818                 add a .dll suffix.
64819                 Reported by Mark Junker <mjscod@gmx.de>.
64820
64821         2006-06-17  Bruno Haible  <bruno@clisp.org>
64822
64823                 * config.charset: Update for NetBSD 3.0.
64824
64825         2006-05-17  Bruno Haible  <bruno@clisp.org>
64826
64827                 Cygwin portability.
64828                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
64829
64830         2006-05-16  Bruno Haible  <bruno@clisp.org>
64831
64832                 * localcharset.c [CYGWIN]: Include <windows.h>.
64833                 (get_charset_aliases): For Cygwin, return the same CPxxx
64834                 aliases list as under WIN32.
64835                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
64836                 the environment variables. Fall back to GetACP().
64837
64838         2006-04-05  Bruno Haible  <bruno@clisp.org>
64839
64840                 * config.charset: Update Juan Manuel Guerrero's address.
64841
64842         2005-02-12  Bruno Haible  <bruno@clisp.org>
64843
64844                 * allocsa.h: Add extern "C" for C++.
64845
64846         2005-02-10  Bruno Haible  <bruno@clisp.org>
64847
64848                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
64849                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
64850
64851         2006-07-22  Bruno Haible  <bruno@clisp.org>
64852
64853                 * gettext.h: Update to GNU gettext-0.15.
64854
64855 2006-07-22  Bruno Haible  <bruno@clisp.org>
64856
64857         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
64858         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
64859         lib-prefix.m4, longdouble.m4, ssize_t.m4.
64860
64861 2006-07-21  Eric Blake  <ebb9@byu.net>
64862
64863         * modules/stdlib-safer: New file.
64864         * MODULES.html.sh (File stream based Input/Output): Add
64865         stdlib-safer.
64866
64867 2006-07-21  Eric Blake  <ebb9@byu.net>
64868
64869         * lib/stdlib-safer.h: New file from coreutils, required by
64870         stdlib--.h.
64871
64872 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
64873
64874         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
64875
64876 2006-07-20  Bruno Haible  <bruno@clisp.org>
64877
64878         * gnulib-tool: Recognize new option --assume-autoconf.
64879         (autoconf_minversion): New variable.
64880         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
64881
64882 2006-07-20  Bruno Haible  <bruno@clisp.org>
64883
64884         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
64885
64886 2006-07-19  Derek R. Price  <derek@ximbiot.com>
64887
64888         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
64889         Reindent and repaginate.
64890
64891 2006-07-19  Derek Price  <derek@ximbiot.com>
64892
64893         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
64894         Correct grammar.
64895
64896 2006-07-17  Bruno Haible  <bruno@clisp.org>
64897
64898         * modules/list: New file.
64899         * modules/array-list: New file.
64900         * modules/carray-list, modules/carray-list-tests: New files.
64901         * modules/linked-list, modules/linked-list-tests: New files.
64902         * modules/avltree-list, modules/avltree-list-tests: New files.
64903         * modules/rbtree-list, modules/rbtree-list-tests: New files.
64904         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
64905         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
64906         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
64907         * modules/oset: New file.
64908         * modules/array-oset: New file.
64909         * modules/avltree-oset, modules/avltree-oset-tests: New files.
64910         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
64911         * tests/test-carray_list.c: New file.
64912         * tests/test-linked_list.c: New file.
64913         * tests/test-avltree_list.c: New file.
64914         * tests/test-rbtree_list.c: New file.
64915         * tests/test-linkedhash_list.c: New file.
64916         * tests/test-avltreehash_list.c: New file.
64917         * tests/test-rbtreehash_list.c: New file.
64918         * tests/test-avltree_oset.c: New file.
64919         * tests/test-rbtree_oset.c: New file.
64920         * MODULES.html.sh (Container data structures): New section.
64921
64922 2006-07-17  Bruno Haible  <bruno@clisp.org>
64923
64924         * m4/gl_list.m4: New file.
64925
64926 2006-07-17  Bruno Haible  <bruno@clisp.org>
64927
64928         * lib/gl_list.h: New file.
64929         * lib/gl_list.c: New file.
64930         * lib/gl_array_list.h: New file.
64931         * lib/gl_array_list.c: New file.
64932         * lib/gl_carray_list.h: New file.
64933         * lib/gl_carray_list.c: New file.
64934         * lib/gl_linked_list.h: New file.
64935         * lib/gl_linked_list.c: New file.
64936         * lib/gl_anylinked_list1.h: New file.
64937         * lib/gl_anylinked_list2.h: New file.
64938         * lib/gl_avltree_list.h: New file.
64939         * lib/gl_avltree_list.c: New file.
64940         * lib/gl_anyavltree_list1.h: New file.
64941         * lib/gl_anyavltree_list2.h: New file.
64942         * lib/gl_rbtree_list.h: New file.
64943         * lib/gl_rbtree_list.c: New file.
64944         * lib/gl_anyrbtree_list1.h: New file.
64945         * lib/gl_anyrbtree_list2.h: New file.
64946         * lib/gl_anytree_list1.h: New file.
64947         * lib/gl_anytree_list2.h: New file.
64948         * lib/gl_linkedhash_list.h: New file.
64949         * lib/gl_linkedhash_list.c: New file.
64950         * lib/gl_anyhash_list1.h: New file.
64951         * lib/gl_anyhash_list2.h: New file.
64952         * lib/gl_avltreehash_list.h: New file.
64953         * lib/gl_avltreehash_list.c: New file.
64954         * lib/gl_rbtreehash_list.h: New file.
64955         * lib/gl_rbtreehash_list.c: New file.
64956         * lib/gl_anytreehash_list1.h: New file.
64957         * lib/gl_anytreehash_list2.h: New file.
64958
64959         * lib/gl_oset.h: New file.
64960         * lib/gl_oset.c: New file.
64961         * lib/gl_array_oset.h: New file.
64962         * lib/gl_array_oset.c: New file.
64963         * lib/gl_avltree_oset.h: New file.
64964         * lib/gl_avltree_oset.c: New file.
64965         * lib/gl_rbtree_oset.h: New file.
64966         * lib/gl_rbtree_oset.c: New file.
64967         * lib/gl_anytree_oset.h: New file.
64968
64969 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64970
64971         * m4/mkancesdirs.m4: New file.
64972         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
64973         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
64974         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
64975         it.
64976
64977 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64978
64979         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
64980         * lib/mkancesdirs.h: New files.
64981         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
64982         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
64983         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
64984         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
64985         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
64986         callers changed.  Revamp internals significantly, by not
64987         attempting to create directories that are temporarily more
64988         permissive than the final results.  Do not attempt to use
64989         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
64990         This removes some race conditions, fixes some bugs, and simplifies
64991         things.  Use new dirchownmod function to do owner and mode changes.
64992         * lib/mkdir-p.h: Likewise.
64993         * lib/modechange.c (octal_to_mode): New function.
64994         (struct mode_change): New member mentioned.
64995         (make_node_op_equals): New arg mentioned.  All callers changed.
64996         (mode_compile): Keep track of which mode bits the user has explicitly
64997         mentioned.
64998         (mode_adjust): New arg DIR, so that we implement the X op correctly.
64999         New arg PMODE_BITS, to keep track of which mode bits the user
65000         mentioned; it treats S_ISUID and S_ISGID speciall.
65001         All callers changed.
65002         * lib/modechange.h: Likewise.
65003
65004 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65005
65006         * MODULES.html.sh: Add mkancestors.
65007         * modules/mkancesdirs: New module.
65008         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
65009         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
65010         The chdir-safer and afs files are now orphans; I'll remove them
65011         unless someone speaks up.
65012         Add lib/dirchownmod.c, lib/dirchownmod.h.
65013         (Depends-on): Remove alloca, chown, save-cwd, dirname.
65014         Add lchown, mkancesdirs.
65015         (Maintainer): Add self.
65016
65017 2006-07-15  Karl Berry  <karl@gnu.org>
65018
65019         * gnulib-tool: help message wording/arrangement.
65020
65021 2006-07-14  Simon Josefsson  <jas@extundo.com>
65022
65023         * doc/gnulib.texi (Libtool and Windows): New section.
65024
65025 2006-07-12  Simon Josefsson  <jas@extundo.com>
65026
65027         * modules/gendocs (License): Fix license, approved by Karl.
65028
65029 2006-07-12  Eric Blake  <ebb9@byu.net>
65030
65031         * MODULES.html.sh: Add gendocs.
65032
65033 2006-07-11  Eric Blake  <ebb9@byu.net>
65034
65035         * modules/fdl: New module, to install doc/fdl.texi.
65036         * MODULES.html.sh: Add new section for documentation modules.
65037         * gnulib-tool: Avoid space-tab.
65038         (--doc-base): New option, to manage files from doc.
65039
65040 2006-07-11  Eric Blake  <ebb9@byu.net>
65041
65042         * m4/absolute-header.m4: Fix comments to match recent change.
65043
65044 2006-07-11  Eric Blake  <ebb9@byu.net>
65045
65046         * gnulib-tool: List --doc-base before --tests-base.
65047
65048 2006-07-11  Derek R. Price  <derek@ximbiot.com>
65049
65050         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
65051
65052 2006-07-11  Bruno Haible  <bruno@clisp.org>
65053
65054         * README: Mention where to put documentation.
65055
65056 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65057
65058         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
65059
65060 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65061
65062         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
65063         to stdint.m4.
65064
65065 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65066
65067         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
65068         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
65069         "no/such/file/stdint.h" when there is no such file, so that
65070         the resulting C code can be parsed by dodgy compilers.
65071         Problems reported by Bob Proulx.
65072
65073 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65074
65075         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
65076         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65077         macros into the GNU _D_EXACT_NAMLEN.
65078         * lib/savedir.c:  Likewise.
65079         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
65080
65081 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65082         and Paul Eggert  <eggert@cs.ucla.edu>
65083
65084         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
65085         * m4/savedir.m4:
65086         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65087         macros into the GNU _D_EXACT_NAMLEN.
65088
65089 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65090
65091         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
65092         around the absolute name, to work around a problem with the HP-UX
65093         11.23 native C compiler, reported by Bob Proulx.
65094
65095 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65096
65097         * doc/maintain.texi, make-stds.texi: Sync from
65098         <http://savannah.gnu.org/projects/gnustandards>.
65099
65100 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65101
65102         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
65103
65104 2006-07-09  Jim Meyering  <jim@meyering.net>
65105
65106         * m4/glob.m4: Remove a doubled word in a comment.
65107
65108 2006-07-09  Jim Meyering  <jim@meyering.net>
65109
65110         * lib/argp-pv.c: Remove a doubled word in a comment.
65111         * lib/check-version.c (check_version): Likewise.
65112         * lib/javacomp.c (compile_java_class): Likewise.
65113
65114 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65115
65116         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
65117         for the benefit of people using Autoconf 2.60.  If you want to
65118         support older Autoconf versions you can copy m4/onceonly_2_57.m4
65119         (or m4/onceonly.m4, if pre-2.57) manually.
65120
65121 2006-07-08  Jim Meyering  <jim@meyering.net>
65122
65123         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
65124         comment.
65125         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
65126         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
65127         comment.
65128
65129 2006-07-08  Jim Meyering  <jim@meyering.net>
65130
65131         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
65132
65133 2006-07-07  Simon Josefsson  <jas@extundo.com>
65134
65135         * tests/test-crc.c: Change expected crc value, the test vector
65136         were probably computed using the old broken crc.c?
65137
65138 2006-07-06  Simon Josefsson  <jas@extundo.com>
65139
65140         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
65141         now the canonical place for the M4 file).
65142
65143         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
65144         from the sys_socket dependency now.
65145
65146         * modules/inet_pton (Files): Ditto.
65147
65148         * modules/inet_ntop (Files): Ditto.
65149
65150 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65151
65152         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
65153         not gl_PREREQ_GETUSERSHELL.
65154
65155 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65156
65157         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
65158         with only one argument, for Autoconf 2.60.
65159         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
65160         expand to nothing, so add a shell command to avoid syntax error.
65161         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65162
65163 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65164
65165         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
65166
65167 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65168
65169         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
65170         no longer needed.  Check for isblank decl.
65171         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
65172         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
65173         of existence.
65174
65175 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65176
65177         * lib/getloadavg.c: Use __VMS, not VMS.
65178         * lib/getopt.c: Likewise.
65179         * lib/getpagesize.h: Likewise.
65180         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
65181         and probably does not work.
65182
65183 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65184
65185         * lib/.cppi-disable: Add wcwidth.
65186         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
65187         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
65188         (ISGRAPH): Remove.  All uses changed to isgraph.
65189         (FOLD) [!defined _LIBC]: Remove special case.
65190         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
65191         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
65192         HAVE_ISBLANK.
65193         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
65194         case.
65195
65196 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65197
65198         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
65199         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
65200         brackets.  Other minor changes to suppress some compiler
65201         warnings.
65202
65203 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65204         and Paul Eggert  <eggert@cs.ucla.edu>
65205
65206         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
65207         of invoking obsolescent AC_HEADER_DIRENT macro.
65208         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
65209         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
65210         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65211         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
65212         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
65213         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65214         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
65215         * m4/readdir.m4: Remove; no longer needed.
65216
65217 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65218         and Paul Eggert  <eggert@cs.ucla.edu>
65219
65220         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
65221         Don't worry about this obsolete case any more.
65222         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
65223         directories.
65224         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
65225         worry about this obsolete case any more.
65226         * lib/fts.c: Likewise.
65227         * lib/getcwd.c: Likewise.
65228         * lib/glob.h: Likewise.
65229         * lib/savedir.c: Likewise.
65230
65231 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65232
65233         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
65234         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
65235         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
65236         needed.
65237         All uses removed.
65238         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65239         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65240         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
65241         needed.
65242         * m4/getdate.m4 (gl_GETDATE): Likewise.
65243         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65244         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65245         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65246         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65247         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65248         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65249         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
65250         needed.
65251
65252 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65253
65254         * lib/memcasecmp.c: Include <limits.h>.
65255         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65256         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65257         Don't assume isdigit succeeds only on '0' through '9'.
65258
65259 2006-07-05  Eric Blake  <ebb9@byu.net>
65260
65261         * modules/getaddrinfo (Depends-on): Add snprintf.
65262
65263 2006-07-05  Eric Blake  <ebb9@byu.net>
65264
65265         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65266         to avoid 'header present but could not be compiled' on cygwin.
65267
65268 2006-07-05  Eric Blake  <ebb9@byu.net>
65269
65270         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65271         missing from netdb.h.
65272         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65273
65274 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65275
65276         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65277         no longer needed.
65278         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65279         * m4/getdate.m4 (gl_GETDATE): Likewise.
65280         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65281         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65282         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65283         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65284         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65285
65286 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65287
65288         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65289         All uses of is_space replaced by isspace.
65290         * lib/exit.h: Don't talk about STDC_HEADERS.
65291         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65292         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65293         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65294         replaced by isprint etc.
65295         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65296         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65297         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65298         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65299         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65300         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65301
65302 2006-07-05  Bruno Haible  <bruno@clisp.org>
65303
65304         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65305         the function exists, before testing against AIX.
65306         Reported by Martin Lambers <marlam@marlam.de>.
65307
65308 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65309
65310         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65311         From Mark D. Baushke.
65312
65313 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65314
65315         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65316         to the absolute name, not just one, to bypass Sun C 5.8's
65317         "warning: #include of /usr/include/... may be non-portable".
65318
65319 2006-07-04  Eric Blake  <ebb9@byu.net>
65320
65321         * modules/dirname-tests: New test module.
65322         * tests/test-dirname.c: New file, replacing dirname.c
65323         TEST_DIRNAME section that was recently deleted.
65324
65325 2006-07-04  Bruno Haible  <bruno@clisp.org>
65326
65327         Assume ANSI C header files and <ctype.h> functions.
65328         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65329         (mbsnwidth): Use isprint, iscntrl instead.
65330
65331 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65332
65333         Merge from coreutils.
65334         * MODULES.html.sh: Add xstrtold.
65335         * modules/xstrtold: New file.
65336         * modules/cycle-check (Files): Add lib/same-inode.h.
65337         * modules/dirname (Files): Add m4/double-slash-root.m4.
65338         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65339         * modules/mkdir-p (Files): Add lib/same-inode.h.
65340         * modules/same (Files): Add lib/same-inode.h.
65341
65342 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65343
65344         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65345         This is to keep the terminology clean; POSIX talks about
65346         "absolute pathnames", not "full pathnames", but the GNU
65347         Coding Standards say to use "path" for something else;
65348         so use "absolute" to keep both sides happy.
65349         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65350         Set gl_absolute_header, not gl_full_header_path.
65351         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65352         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65353         All uses changed.
65354
65355         Merge from coreutils.
65356
65357         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65358
65359         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65360         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65361         want to require the building of c-strtod.o.
65362         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65363         needs -lm directly.
65364         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65365
65366         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65367
65368         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65369         --as-needed option if available.  Problem reported by Albert Chin in
65370         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65371         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65372         cc merely issues a bunch of annoying warnings for --as-needed
65373         (this problem was reported by Bob Proulx).  Also, try linking with
65374         -lm to detect a bug in binutils 2.16 (this problem was reported
65375         by Ralf Wildenhues).
65376
65377         2006-06-18  Jim Meyering  <jim@meyering.net>
65378
65379         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65380         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65381         macro.
65382         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65383         also check for glibc-2.4's abort-inducing bug.
65384
65385         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65386         Low-probability clean-up should be to use rmdir to get rid of
65387         the just-created directory, not unlink.
65388
65389         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65390         configure fail, and request a bug report to inform us about it.
65391         Add a comment that, barring reports to the contrary, in 2007 we'll
65392         assume ftruncate is universally available.
65393
65394         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65395
65396         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65397
65398         2006-03-12  Jim Meyering  <jim@meyering.net>
65399
65400         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65401         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65402         * m4/same.m4 (gl_SAME): Likewise.
65403         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65404
65405         2006-03-11  Eric Blake  <ebb9@byu.net>
65406
65407         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65408         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65409         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65410         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65411
65412 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65413
65414         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65415         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65416         reported by Mark D. Baushke, one in
65417         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65418
65419         Merge from coreutils.
65420
65421         * lib/.cppi-disable: Add stdint_.h.
65422         * lib/.cvsignore: Add stdint.h.
65423
65424         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65425
65426         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65427         both double and long double versions.
65428         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65429         * lib/xstrtold.c: New file.
65430         * lib/xstrtod.h (xstrtold): New decl.
65431
65432         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65433
65434         * lib/filemode.c (setst): Remove.
65435         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65436         (arguably) clearer, and the generated code is a bit smaller on my
65437         Debian GNU/Linux stable x86 host.
65438
65439         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65440
65441         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65442         Assume that filemode.h includes sys/types.h and sys/stat.h.
65443         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65444         (ftypelet): Reorder to put common cases first, for efficiency.
65445         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65446         to do 'M'.
65447         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65448         of 10, for compatibility with FreeBSD.  All callers changed.
65449         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65450         types that can't be deduced solely from st_mode.  First arg is now a
65451         const pointer.
65452         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65453         (strmode): Renamed from mode_string.
65454         (filemodestring): New decl.
65455         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65456         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65457         needed.
65458         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65459
65460         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65461
65462         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65463         fsusage.h now does that.  Include fsusage.h first, to test interface.
65464         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65465         at most one method (the old code could have generated decls that
65466         didn't conform to C89, not that this was ever exercised).
65467         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65468
65469         2006-03-19  Jim Meyering  <jim@meyering.net>
65470
65471         Work even in a chroot where d_ino values for entries in "/"
65472         don't match the stat.st_ino values for the same names.
65473         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
65474         number, iterate through all entries again, using lstat instead.
65475         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
65476         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
65477
65478         * lib/getcwd.c (__getcwd): Clarify a comment.
65479         Use memcpy in place of a call to strcpy.
65480
65481         2006-03-12  Jim Meyering  <jim@meyering.net>
65482
65483         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
65484         matches that of the current directory (which we're about to chdir ".."
65485         out of), then save the dev-ino of the parent, instead.
65486
65487         * lib/same-inode.h (SAME_INODE): New file/macro.
65488         * lib/chdir-safer.c (SAME_INODE): Remove definition.
65489         Include "same-inode.h", instead.
65490         * lib/same.c: Likewise.
65491         * lib/cycle-check.h: Include "same-inode.h".
65492         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
65493         * lib/cycle-check.c (SAME_INODE): Remove definition.
65494         * lib/root-dev-ino.h: Include "same-inode.h".
65495
65496         2006-03-11  Eric Blake  <ebb9@byu.net>
65497
65498         * lib/same.c (same_name): s/base_name/last_component/
65499         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
65500         * lib/filenamecat.c (file_name_concat): Likewise.
65501
65502         2006-03-11  Eric Blake  <ebb9@byu.net>,
65503                     Paul Eggert  <eggert@cs.ucla.edu>
65504
65505         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
65506         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
65507         drive prefix.
65508         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
65509         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
65510         (last_component): New method.
65511         * lib/dirname.c (dir_len): Determine when drive letters need a
65512         subsequent slash.  Preserve // when it is special.
65513         (dir_name): Don't append dot when drive letter is absolute.
65514         [TEST_DIRNAME]: Move into a full-blown gnulib test.
65515         * lib/basename.c (base_name): New semantics - malloc the result.
65516         Preserve // when it is special.  Preserve relative files that look
65517         like drive letters.
65518         (base_len): Preserve // when it is special.
65519         (last_component): New method, similar to old base_name semantics.
65520         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
65521         base_name.  Strip redundant slashes from ///.
65522
65523 2006-07-03  Jim Meyering  <jim@meyering.net>
65524
65525         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
65526         macro is used before the first cycle_check call.
65527
65528 2006-07-03  Eric Blake  <ebb9@byu.net>
65529
65530         * modules/dirname (Depends-on): Add xstrndup.
65531
65532 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65533
65534         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
65535         test cases, so that config.log is a bit easier to follow.
65536
65537 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65538
65539         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
65540         both are 64 bits, since this seems to be the tradition, and this
65541         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
65542         we ever run into a host that prefers long long to long in this
65543         case, we'll need another configure-time test.  Problem reported by
65544         Jim Meyering.
65545
65546 2006-07-02  Eric Blake  <ebb9@byu.net>
65547
65548         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
65549
65550 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65551
65552         * modules/inttypes (Depends-on): No longer depends on stdint.
65553         * modules/stdint (Description): Say more about assumptions.
65554         Say that the fast types might differ.  Say macros are used.
65555         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
65556         (Makefile.am): Revise list of substituted symbols to match
65557         new stdint.m4.
65558         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
65559         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
65560         * tests/test-stdint.c (verify_same_types)
65561         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65562         the code conforms to C99/C89.
65563         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65564         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65565
65566 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65567
65568         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65569         but fix a bug, by requiring at least 64 bits.
65570         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65571         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65572         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65573         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65574
65575         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65576         changes.  Make 2.59 a prerequisite.  Check and substitute for
65577         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65578         inttypes.h.  Do not use special include files; just use the
65579         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65580         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65581         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65582         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65583         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65584         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65585         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65586         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65587         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65588         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65589         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65590         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65591         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65592         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65593         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65594         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65595         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65596         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65597         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65598         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65599         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65600         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65601         not check for things that C99 does not require, e.g., int8_t.  If
65602         a test isn't needed unless <stdint.h> isn't working, and is
65603         unlikely to be needed for any other reason, then don't do it
65604         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65605         size_t, since we assume C89 freestanding at least.  Do not check
65606         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65607         the right thing even if the types are not defined.  Instead use:
65608         (gl_STDINT_TYPE_PROPERTIES): New macro.
65609         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65610         testing whether <sys/types.h> clashes, as Autoconf does this for
65611         us now.  All uses removed.
65612         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65613         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65614         (gl_CHECK_TYPE_SAME):
65615         Remove; no longer needed.
65616         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65617         exists, since we'll return 0 anyway in that case.
65618         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65619
65620 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65621
65622         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65623         possible collision with system files.
65624         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65625         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65626         WCHAR_MIN and WCHAR_MAX in this case.
65627         (<stddef.h>): Do not include; no longer needed.
65628         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65629         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65630         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65631         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65632         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65633         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65634         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65635         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
65636         !defined(__c99))]: Include in this case too, since it's harmless
65637         now.
65638         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
65639         dangerous to do so.
65640         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
65641         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
65642         (_STDINT_MIN, _STDINT_MAX): New macros.
65643         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
65644         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
65645         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
65646         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
65647         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
65648         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
65649         macros, not typedefs; this simplifies things quite a bit.
65650         Use long int for all types narrower than int64_t.
65651         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
65652         Define in terms of long long int or int64_t or long int,
65653         not int64_t or int32_t.  This saves some compile-time testing.
65654         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
65655         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
65656         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
65657         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
65658         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
65659         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
65660         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
65661         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
65662         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
65663         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
65664         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65665         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65666         undef any previous version and define our own version, for
65667         simplicity and consistency with the new macros for types.
65668         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65669         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65670         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
65671         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
65672         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
65673         @WINT_T_SUFFIX@ to keep things simple here.
65674         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
65675         Simplify by assuming typical 8/16/32/64 host, since we're
65676         already doing that elsewhere anyway.
65677         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
65678         and assume long long int is 64 bits if available.  This
65679         speeds up 'configure'.
65680
65681 2006-07-01  Eric Blake  <ebb9@byu.net>
65682
65683         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
65684         Reported by Andreas Buening.
65685
65686 2006-07-01  Eric Blake  <ebb9@byu.net>
65687
65688         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
65689
65690 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65691
65692         * lib/getaddrinfo.c: fixed typo
65693
65694 2006-06-29  Jim Meyering  <jim@meyering.net>
65695
65696         * modules/strftime (Maintainer): Add my name, since with the
65697         FPRINTFTIME changes strftime.c has forked from glibc.
65698
65699 2006-06-29  Eric Blake  <ebb9@byu.net>
65700
65701         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
65702
65703 2006-06-29  Eric Blake  <ebb9@byu.net>
65704
65705         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
65706
65707 2006-06-29  Eric Blake  <ebb9@byu.net>
65708
65709         * lib/stat_.h: New file.
65710
65711 2006-06-29  Eric Blake  <ebb9@byu.net>
65712
65713         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
65714         unused static function.
65715
65716 2006-06-29  Eric Blake  <ebb9@byu.net>
65717
65718         * doc/functions.texi (Function Portability): Document missing lstat
65719         on mingw.
65720
65721 2006-06-29  Eric Blake  <ebb9@byu.net>
65722
65723         * MODULES.html.sh: Add sys_stat.
65724         * modules/sys_stat: New module.
65725         * modules/mkstemp (Depends-on): Add sys_stat.
65726
65727 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65728
65729         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
65730
65731 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65732
65733         * m4/c-bs-a.m4: Removed.
65734
65735 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65736
65737         * lib/strftime.c: Assume strftime() exists.
65738
65739 2006-06-29  Derek Price  <derek@ximbiot.com>
65740
65741         * modules/c-bs-a: Removed - \a is C89.
65742         * MODULES.html.sh: Remove c-bs-a.
65743
65744 2006-06-29  Bruno Haible  <bruno@clisp.org>
65745
65746         * modules/wcwidth (License): Change to LGPL.
65747
65748 2006-06-28  Simon Josefsson  <jas@extundo.com>
65749
65750         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
65751         on _WIN32.
65752
65753         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
65754         getnameinfo.
65755
65756 2006-06-28  Simon Josefsson  <jas@extundo.com>
65757
65758         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
65759
65760 2006-06-28  Simon Josefsson  <jas@extundo.com>
65761
65762         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
65763         functions there.  It will succeed on Windows XP, but on Windows
65764         2000 and (presumably) earlier, it will fail, and use the internal
65765         re-implementation.
65766         (use_win32_p): New function.
65767         (getaddrinfo): Use strtoul on servname, to support numeric ports.
65768         Support AI_NUMERICSERV to disable getservbyname.
65769         (getnameinfo): New function, only supports
65770         NI_NUMERICHOST|NI_NUMERICSERV for now.
65771
65772         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
65773         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
65774         getnameinfo.
65775
65776 2006-06-28  Eric Blake  <ebb9@byu.net>
65777
65778         * modules/wcwidth: New file.
65779         * modules/mbchar (Depends-on): Add wcwidth.
65780         * modules/mbswidth (Depends-on): Add wcwidth.
65781         * MODULES.html.sh: Add wcwidth.
65782
65783 2006-06-28  Eric Blake  <ebb9@byu.net>
65784
65785         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
65786         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
65787
65788 2006-06-28  Eric Blake  <ebb9@byu.net>
65789
65790         * lib/xvasprintf.h: Fix comments.
65791
65792 2006-06-28  Eric Blake  <ebb9@byu.net>
65793
65794         * lib/mbchar.h (wcwidth): Include wcwidth.h.
65795         * lib/mbswidth.c (wcwidth): Move from here...
65796         * lib/wcwidth.h: ...to this new file.
65797
65798 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65799
65800         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
65801
65802         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
65803         it's obsolete.
65804         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
65805
65806 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65807
65808         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
65809         Autoconf 2.60 says this stuff was obsolete.
65810
65811 2006-06-28  Bruno Haible  <bruno@clisp.org>
65812
65813         * modules/wcwidth (Files): Add m4/wchar_t.m4.
65814
65815 2006-06-28  Bruno Haible  <bruno@clisp.org>
65816
65817         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
65818         gt_TYPE_WCHAR_T.
65819
65820 2006-06-28  Bruno Haible  <bruno@clisp.org>
65821
65822         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
65823         declaration for wcwidth.
65824         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
65825
65826 2006-06-28  Bruno Haible  <bruno@clisp.org>
65827
65828         * lib/mkdtemp.c [MINGW]: Include <io.h>.
65829         (mkdir): Define using _mkdir.
65830
65831 2006-06-28  Bruno Haible  <bruno@clisp.org>
65832
65833         * lib/getaddrinfo.h: Fix POSIX URL.
65834         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
65835         _WIN32.
65836         (use_win32_p): Make static.
65837         (getaddrinfo): Reject service name if it is empty or does not consist
65838         solely of decimal digits, or if its value is > 65535.
65839         (getnameinfo): Remove useless casts.
65840
65841 2006-06-27  Simon Josefsson  <jas@extundo.com>
65842
65843         * modules/sys_select: New file, suggested by Bruno Haible, Paul
65844         Eggert and Martin Lambers.
65845
65846 2006-06-27  Simon Josefsson  <jas@extundo.com>
65847
65848         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
65849         Eggert and Martin Lambers.
65850
65851 2006-06-27  Bruno Haible  <bruno@clisp.org>
65852
65853         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
65854         result to 0, not to empty.
65855         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
65856
65857 2006-06-27  Bruno Haible  <bruno@clisp.org>
65858
65859         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
65860
65861 2006-06-26  Simon Josefsson  <jas@extundo.com>
65862
65863         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
65864         present.
65865
65866 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
65867
65868         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
65869         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
65870         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
65871
65872 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
65873
65874         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
65875
65876 2006-06-26  Bruno Haible  <bruno@clisp.org>
65877
65878         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
65879
65880 2006-06-26  Bruno Haible  <bruno@clisp.org>
65881
65882         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
65883
65884 2006-06-26  Bruno Haible  <bruno@clisp.org>
65885
65886         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
65887         SGI C compiler in pre-C99 mode.
65888         Suggested by Mark D. Baushke and Larry Jones.
65889
65890 2006-06-26  Bruno Haible  <bruno@clisp.org>
65891
65892         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
65893         WCHAR_MAX.
65894         Reported by Mark D. Baushke and Larry Jones.
65895
65896 2006-06-26  Bruno Haible  <bruno@clisp.org>
65897
65898         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
65899         in pre-C99 mode.
65900         Suggested by Mark D. Baushke and Larry Jones.
65901
65902 2006-06-23  Simon Josefsson  <jas@extundo.com>
65903             Bruno Haible  <bruno@clisp.org>
65904
65905         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
65906         Emit mostlyclean-local rule.
65907         (func_emit_tests_Makefile_am): Likewise.
65908         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
65909
65910 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
65911
65912         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
65913
65914 2006-06-23  Bruno Haible  <bruno@clisp.org>
65915
65916         * tests/test-stdint.c: Update to match ISO C 99 Technical
65917         Corrigendum 1.
65918
65919 2006-06-23  Bruno Haible  <bruno@clisp.org>
65920
65921         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
65922
65923 2006-06-23  Bruno Haible  <bruno@clisp.org>
65924
65925         * lib/stdint_.h: Treat IRIX like OpenBSD.
65926
65927 2006-06-23  Bruno Haible  <bruno@clisp.org>
65928
65929         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
65930         ISO C 99 Technical Corrigendum 1.
65931
65932 2006-06-22  Simon Josefsson  <jas@extundo.com>
65933
65934         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
65935         MinGW.
65936
65937 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65938
65939         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
65940         needed.  Some compiler complained about some of them.  Problem reported
65941         by Larry Jones in
65942         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
65943
65944 2006-06-21  Simon Josefsson  <jas@extundo.com>
65945
65946         * tests/test-getaddrinfo.c: New file.
65947
65948         * modules/getaddrinfo-tests: New file.
65949
65950         * MODULES.html.sh: Add inet_pton.
65951
65952         * modules/inet_pton: New file.
65953
65954 2006-06-21  Simon Josefsson  <jas@extundo.com>
65955
65956         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
65957         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
65958         of using the (limited) gnulib implementation on Windows XP.
65959
65960         * m4/inet_pton.m4: New file.
65961
65962 2006-06-21  Simon Josefsson  <jas@extundo.com>
65963
65964         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
65965         variable.
65966
65967         * lib/socket_.h: Don't define WINVER.
65968
65969         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
65970         slightly modified to work in gnulib.
65971
65972 2006-06-21  Simon Josefsson  <jas@extundo.com>
65973
65974         * doc/gnulib.texi (Windows sockets): Add.
65975
65976 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65977
65978         * lib/read-file.c (fread_file): Start with buffer allocation of
65979         0 bytes rather than 1 byte; this simplifies the code.
65980         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
65981         code to free buffer and save/restore errno.
65982         (internal_read_file): Remove unused local.
65983
65984 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65985
65986         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
65987         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
65988         Problem reported by Denis Excoffier in
65989         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
65990
65991 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65992
65993         * modules/sys_socket, modules/socklen: Include sys/types since
65994         FreeBSD 4.x's sys/socket.h needs it.
65995
65996 2006-06-19  Simon Josefsson  <jas@extundo.com>
65997
65998         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
65999
66000 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66001
66002         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
66003
66004 2006-06-19  Bruno Haible  <bruno@clisp.org>
66005
66006         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
66007         and FULL_PATH_INTTYPES_H in angle brackets.
66008         Reported by Mark D. Baushke <mdb@gnu.org>.
66009
66010 2006-06-17  Eric Blake  <ebb9@byu.net>
66011
66012         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
66013         errno.
66014
66015 2006-06-17  Bruno Haible  <bruno@clisp.org>
66016
66017         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
66018         <sys/inttypes.h>.
66019
66020 2006-06-17  Bruno Haible  <bruno@clisp.org>
66021
66022         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
66023         whether errno is declared. Assume <errno.h> declares errno.
66024
66025 2006-06-17  Bruno Haible  <bruno@clisp.org>
66026
66027         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
66028
66029 2006-06-17  Bruno Haible  <bruno@clisp.org>
66030
66031         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
66032         problem on Solaris 2.5.1.
66033
66034 2006-06-16  Eric Blake  <ebb9@byu.net>
66035
66036         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
66037         * lib/unicodeio.c [!defined errno]: Likewise.
66038         * lib/strtol.c [!defined errno]: Likewise.
66039         * lib/strtod.c [!defined errno]: Likewise.
66040
66041 2006-06-15  Eric Blake  <ebb9@byu.net>
66042
66043         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
66044
66045 2006-06-15  Eric Blake  <ebb9@byu.net>
66046
66047         * config/srclist.txt (ssize_t.m4): Lose sync.
66048
66049 2006-06-15  Bruno Haible  <bruno@clisp.org>
66050
66051         * modules/stdint (Files): Include m4/full-header-path.m4,
66052         m4/size_max.m4, m4/wchar_t.m4.
66053         (Makefile.am): Many more substitutions.
66054         * modules/stdint-tests: New file.
66055         * tests/test-stdint.c: New file.
66056
66057 2006-06-15  Bruno Haible  <bruno@clisp.org>
66058
66059         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
66060         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
66061         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
66062         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
66063         gl_CHECK_TYPE_SAME): New macros.
66064
66065 2006-06-15  Bruno Haible  <bruno@clisp.org>
66066
66067         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
66068
66069 2006-06-15  Bruno Haible  <bruno@clisp.org>
66070
66071         * lib/stdint_.h: Rewritten to be fully auto-configured.
66072         Fixes bug on HP-UX/IA64.
66073
66074 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
66075
66076         * lib/getdate.y (__attribute__): Don't define if already defined.
66077         Problem reported by Larry Jones.
66078         * lib/utimens.c (__attribute__): Likewise.
66079
66080 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
66081
66082         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
66083         reported by Andreas Schwab.
66084
66085 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66086             Bruno Haible  <bruno@clisp.org>
66087
66088         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
66089         check for the declaration of strnlen and a run test that exposes the
66090         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
66091         rpl_strndup.
66092
66093 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66094             Bruno Haible  <bruno@clisp.org>
66095
66096         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
66097
66098 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66099
66100         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
66101         compile test, for Tru64 4.0D.
66102
66103 2006-05-28  Karl Berry  <karl@gnu.org>
66104
66105         * config/srclist.txt (printf-args.c): lose sync.
66106
66107 2006-05-26  Martin Lambers  <marlam@marlam.de>
66108
66109         * lib/getpass.c: Updates the test for the native W32 API, and adds
66110         missing includes, thus fixing compilation warnings.
66111
66112 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66113
66114         * lib/exclude.c (exclude_fnmatch): New function.
66115         (excluded_file_name): Call exclude_fnmatch.
66116         * lib/exclude.h (excluded_file_name): New prototype
66117
66118 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
66119
66120         * lib/tempname.c (small_open, large_open): New macros.
66121         (__open, __open64) [!_LIBC]: Remove.
66122         (__gen_tempname): Use small_open and large_open instead of __open
66123         and __open64.  This fixes a portability bug on HP-UX 11.11i
66124         reported by Simon Wing-Tang in
66125         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
66126
66127 2006-05-24  Bruno Haible  <bruno@clisp.org>
66128
66129         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
66130         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
66131         Reported by Thorsten Maerz <torte@netztorte.de> via
66132         Aaron Stone <aaron@serendipity.cx>.
66133
66134 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66135
66136         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
66137         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
66138         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
66139         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
66140         not really conditional on the cache.
66141         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
66142
66143 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66144
66145         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
66146         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
66147         (my_usleep): Don't mishandle maximum value.
66148
66149 2006-05-19  Jim Meyering  <jim@meyering.net>
66150
66151         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
66152
66153 2006-05-17  Bruno Haible  <bruno@clisp.org>
66154
66155         Cygwin portability.
66156         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
66157
66158 2006-05-17  Bruno Haible  <bruno@clisp.org>
66159
66160         * lib/stdint_.h: Fix recognition of Cygwin.
66161
66162 2006-05-15  Bruno Haible  <bruno@clisp.org>
66163
66164         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
66165         on libtool patch by Ralf Wildenhues.
66166
66167 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66168
66169         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
66170         test for C99 conformance; (bool) 0.5 is an integer constant
66171         expression, but (bool) -0.5 is not.  Problem reported by Fedor
66172         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
66173
66174 2006-05-11  Simon Josefsson  <jas@extundo.com>
66175
66176         * m4/xvasprintf.m4: Fix obvious typo.
66177
66178 2006-05-11  Jim Meyering  <jim@meyering.net>
66179
66180         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
66181         James Lemley.
66182
66183 2006-05-10  Simon Josefsson  <jas@extundo.com>
66184
66185         * lib/md4.c: Typo fix, update copyright years.
66186         (K1, K2): Don't use L because it turn computations into 64-bit on
66187         64-bit platforms.
66188
66189 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
66190
66191         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
66192         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
66193         unwanted sign propagation, e.g., on hosts with 64-bit int.
66194         There still are some problems with reeelly weird theoretical hosts
66195         (e.g., 33-bit int) but it's not worth worrying about now.
66196         * lib/sha1.c (rol): Likewise.
66197         (K1, K2, K3, K4): Remove unnecessary L suffix.
66198
66199 2006-05-10  Bruno Haible  <bruno@clisp.org>
66200
66201         * lib/des.c: Cast to avoid warnings.
66202
66203 2006-05-09  Bruno Haible  <bruno@clisp.org>
66204
66205         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
66206         (Depends-on): Depend also on xsize, stdarg.
66207         (configure.ac): Add gl_XVASPRINTF.
66208
66209 2006-05-09  Bruno Haible  <bruno@clisp.org>
66210
66211         * m4/xvasprintf.m4: New file.
66212
66213 2006-05-09  Bruno Haible  <bruno@clisp.org>
66214
66215         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
66216         (EOVERFLOW): Define fallback value.
66217         (xstrcat): New function.
66218         (xvasprintf): Recognize the special case of a string concatenation.
66219
66220 2006-05-08  Eric Blake  <ebb9@byu.net>
66221
66222         * gnulib-tool (func_version): Base copyright year on CVS date.
66223         (func_emit_copyright_notice): New function.
66224         (func_emit_lib_Makefile_am): Use it.
66225         (func_emit_tests_Makefile_am): Likewise.
66226         (func_import): Likewise.
66227
66228 2006-05-08  Bruno Haible  <bruno@clisp.org>
66229
66230         * modules/stdarg: New file.
66231         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
66232
66233 2006-05-08  Bruno Haible  <bruno@clisp.org>
66234
66235         * m4/stdarg.m4: New file, from GNU gettext.
66236
66237 2006-05-08  Bruno Haible  <bruno@clisp.org>
66238
66239         * config/srclist.txt (build-aux/config.rpath): different from latest
66240         release.
66241
66242 2006-05-08  Bruno Haible  <bruno@clisp.org>
66243
66244         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
66245
66246 2006-05-05  Jim Meyering  <jim@meyering.net>
66247
66248         * m4/warning.m4: New file, derived from bison's file by the same name.
66249
66250 2006-05-03  Bruno Haible  <bruno@clisp.org>
66251
66252         * lib/stdint_.h: Shorter URL.
66253         * lib/inttypes.h: Likewise.
66254
66255 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66256
66257         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66258
66259 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66260
66261         * lib/verify.h: Document the internals better.  Most of this change
66262         was written by Bruno Haible.
66263
66264 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66265
66266         * doc/verify.texi: New file, partly based on a proposal by
66267         Bruno Haible.
66268
66269 2006-05-02  Bruno Haible  <bruno@clisp.org>
66270
66271         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66272         test from here...
66273         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66274
66275 2006-04-29  Bruno Haible  <bruno@clisp.org>
66276
66277         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66278         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66279
66280 2006-04-29  Bruno Haible  <bruno@clisp.org>
66281
66282         * gnulib-tool: Make --update option actually work.
66283
66284 2006-04-29  Bruno Haible  <bruno@clisp.org>
66285
66286         * doc/gcd.texi: New file.
66287         * doc/gnulib.texi: Include it.
66288
66289 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66290
66291         * lib/getdate.y (get_date): When adding relative date, start with the
66292         initial time, not with the result of the first mktime call.
66293
66294 2006-04-25  Bruno Haible  <bruno@clisp.org>
66295
66296         * gnulib-tool (func_import): Output the include directives in three
66297         blocks, sorted separately.
66298         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66299
66300 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66301
66302         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66303         to define main with arguments, for C++.  Reported by Eric Blake.
66304         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66305         Prefer 'int main ()' to 'int main (void)', for C++.
66306         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66307         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66308         for 'main', for C99 and C++.
66309
66310 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66311
66312         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66313         Don't assume that exit status -1 is valid.
66314         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66315         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66316         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66317         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66318         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66319         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66320         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66321         functions can be used without declaring them, or that you can
66322         exit with status -1.
66323         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66324
66325 2006-04-24  Karl Berry  <karl@gnu.org>
66326
66327         * config/srclist.txt (longdouble.m4): sync lost.
66328
66329 2006-04-24  Eric Blake  <ebb9@byu.net>
66330
66331         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66332
66333 2006-04-24  Bruno Haible  <bruno@clisp.org>
66334
66335         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66336         poll() implementation in AIX.
66337         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66338
66339 2006-04-24  Bruno Haible  <bruno@clisp.org>
66340
66341         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66342         assigned exactly once.
66343
66344 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66345             Bruno Haible  <bruno@clisp.org>
66346
66347         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66348         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66349         for AM_CPPFLAGS.
66350
66351 2006-04-23  Bruno Haible  <bruno@clisp.org>
66352
66353         * modules/copy-file: Depend on unistd.
66354         * modules/execute: Likewise.
66355         * modules/fatal-signal: Likewise.
66356         * modules/findprog: Likewise.
66357         * modules/mkdtemp : Likewise.
66358         * modules/pipe: Likewise.
66359         * modules/wait-process: Likewise.
66360
66361 2006-04-23  Bruno Haible  <bruno@clisp.org>
66362
66363         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66364         condition was already detected.
66365         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66366
66367 2006-04-23  Bruno Haible  <bruno@clisp.org>
66368
66369         * lib/copy-file.c: Include <unistd.h> unconditionally.
66370         * lib/execute.c: Likewise.
66371         * lib/fatal-signal.c: Likewise.
66372         * lib/findprog.c: Likewise.
66373         * lib/mkdtemp.c: Likewise.
66374         * lib/pipe.h: Likewise.
66375         * lib/pipe.c: Likewise.
66376         * lib/wait-process.h: Likewise.
66377
66378 2006-04-23  Bruno Haible  <bruno@clisp.org>
66379
66380         * gnulib-tool (func_usage): Fix --import description. Document
66381         --update.
66382         (func_import): Create temporary file in a temporary directory, if
66383         --dry-run is specified. Silence errors from 'grep' when there are no
66384         m4 files in $m4dir.
66385         (func_create_testdir): Silence errors from 'grep' when there are no
66386         m4 files in $m4dir.
66387         Reported by Karl Berry <karl@freefriends.org>.
66388
66389 2006-04-20  Bruno Haible  <bruno@clisp.org>
66390
66391         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66392         one argument, so that the code will be portable to Autoconf 2.60.
66393         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66394         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66395         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66396
66397 2006-04-19  Derek Price  <derek@ximbiot.com>
66398             Eric Blake  <ebb9@byu.net>
66399
66400         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66401         rather than "/full/path.h".  Update comment to match.  Shorten &
66402         generalize m4_translit call via AS_TR_CPP.
66403
66404 2006-04-19  Derek Price  <derek@ximbiot.com>
66405             Eric Blake  <ebb9@byu.net>
66406
66407         * lib/inttypes.h: Correct grammar in comment.
66408
66409 2006-04-18  Derek Price  <derek@ximbiot.com>
66410             Paul Eggert  <eggert@cs.ucla.edu>
66411
66412         * modules/inttypes: New file.
66413         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66414
66415 2006-04-18  Derek Price  <derek@ximbiot.com>
66416             Paul Eggert  <eggert@cs.ucla.edu>
66417
66418         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66419         New files.
66420
66421 2006-04-18  Derek Price  <derek@ximbiot.com>
66422             Paul Eggert  <eggert@cs.ucla.edu>
66423
66424         * lib/inttypes.h: New file.
66425         * lib/strtoimax.c: Assume <inttypes.h>.
66426
66427 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66428
66429         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66430         isn't mounted.  Problem reported by Kir Kolyshkin.
66431
66432 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66433
66434         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66435         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66436         Derek R. Price.
66437         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66438         implementation.
66439
66440 2006-04-12  Eric Blake  <ebb9@byu.net>
66441
66442         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66443         is now done automatically by the corresponding Autoconf macro.
66444
66445 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66446
66447         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66448         time_r.h.
66449
66450 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66451
66452         Merge regex changes from libc, removing some of our
66453         POSIX-conformance changes that were rejected and redoing them in a
66454         less-intrusive way.
66455
66456         * lib/regcomp.c (re_compile_internal, init_dfa):
66457         Length arg is now size_t, not Idx.  All uses changed.
66458         (peek_token): Forward decl now says internal_function.
66459         (__re_error_msgid, __re_error_msgid_idx):
66460         Now static rather than extern with attribute_hidden.
66461         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66462         For some reason libc prefers K&R style defns for external functions.
66463         (regerror) [!defined _LIBC]: Likewise.
66464         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66465         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66466         (build_range_exp, build_collating_symbol):
66467         Use K&R-style defn.
66468         (re_compile_fastmap): Use '\0' to memset, not 0.
66469         (utf8_sb_map): Make the calculations more obvious.
66470         (init_dfa, parse_bracket_exp, build_charclass_op):
66471         Call calloc and cast result, as glibc does.
66472         (init_word_char, fetch_token, peek_token, peek_token_bracket):
66473         (build_range_exp, build_collating_symbol):
66474         Now internal functions.
66475
66476         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
66477
66478         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
66479         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
66480         Don't depend on VMS; depend on __VMS instead, for POSIX
66481         namespace cleanness.
66482         (regoff_t): Define to ssize_t, not long int.
66483
66484         Remove the REG_ macros named below.  Instead, make the old names
66485         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
66486         __USE_GNU_REGEX.
66487         (REG_BACKSLASH_ESCAPE_IN_LISTS):
66488         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
66489         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
66490         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
66491         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
66492         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
66493         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
66494         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
66495         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
66496         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
66497         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
66498         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
66499         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
66500         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
66501         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
66502         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
66503         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
66504         (REG_NREGS):
66505         Remove.  All uses replaced by the old RE_* names.
66506         (RE_BACKSLASH_ESCAPE_IN_LISTS):
66507         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
66508         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
66509         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
66510         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
66511         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
66512         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
66513         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
66514         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
66515         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
66516         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
66517         Don't bother having these macros be independent of each others'
66518         values, since they no longer exist in the POSIX name space.
66519
66520         Rename the following member names back to their old names,
66521         unless !__USE_GNU_REGEX.  All uses changed back.
66522         (buffer): Renamed from re_buffer.
66523         (allocated): Renamed from re_allocated.
66524         (used): Renamed from re_used.
66525         (syntax): Renamed from re_syntax.
66526         (fastmap): Renamed from re_fastmap.
66527         (translate): Renamed from re_translate.
66528         (can_be_null): Renamed from re_can_be_null.
66529         (regs_allocated): Renamed from re_regs_allocated.
66530         (fastmap_accurate): Renamed from re_fastmap_accurate.
66531         (no_sub): Renamed from re_no_sub.
66532         (not_bol): Renamed from re_not_bol.
66533         (not_eol): Renamed from re_not_eol.
66534         (newline_anchor): Renamed from re_newline_anchor.
66535         (num_regs): Renamed from rm_num_regs.
66536         (start): Renamed from rm_start.
66537         (end): Renamed from rm_end.
66538
66539         (free_state): Move up a bit.
66540
66541         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
66542         #define to be empty.
66543         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
66544         when that is what is intended.
66545         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
66546         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
66547         (MAX): New macro.
66548         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
66549         All uses changed back to re_malloc, etc.  It's now the caller's
66550         responsibility to check for overflow; all callers changed.
66551         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
66552         (re_x2nrealloc): Remove.
66553         (free_state): Remove decl.
66554
66555         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
66556         (re_set_registers, re_exec):
66557         Use K&R-style defn.
66558
66559         2006-01-31  Roland McGrath  <roland@redhat.com>
66560
66561         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66562         Reported by Mike Frysinger <vapier@gentoo.org>.
66563
66564         2006-01-15  Andreas Jaeger  <aj@suse.de>
66565
66566         [BZ #1950]
66567         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66568         build_wcs_upper_buffer change.
66569         (build_wcs_upper_buffer): Change return type.
66570
66571         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66572
66573         * lib/regex_internal.h: Include <stdint.h> if available.
66574
66575         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66576
66577         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66578
66579         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66580
66581         * lib/regcomp.c: Adjust for changed secondary hash function.
66582
66583         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66584
66585         * lib/regex.h: Pretty printing.
66586         Clean up namespace a bit.
66587
66588         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66589
66590         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66591         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66592
66593         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66594                     Ulrich Drepper  <drepper@redhat.com>
66595
66596         [BZ #1302]
66597         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66598         changed.
66599         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66600
66601         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66602
66603         [BZ #281]
66604         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66605         * lib/regcomp.c: Remove unnecessary uses of
66606         unsigned RE_TRANSLATE_TYPE.
66607         * lib/regex_internal.h: Likewise.
66608         * lib/regex_internal.c: Likewise.
66609         * lib/regexec.c: Likewise.
66610         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66611
66612         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66613
66614         * lib/regexec.c (find_recover_state): Remove unnecessary
66615         initialization.
66616         (transit_state_bkref): Make DFA a const pointer.
66617         (get_subexp): Likewise.
66618         (check_arrival): Likewise.
66619         (update_cur_sifted_state): Likewise.
66620         (re_search_internal): Likewise.
66621         (prune_impossible_nodes): Likewise.
66622         (acquire_init_state_context): Likewise.
66623         (proceed_next_node): Likewise.
66624         (set_regs): Likewise.
66625         (free_fail_stack_return): Likewise.
66626         (check_arrival_expand_ecl): Mark DFA parameter as const.
66627         (check_arrival_expand_ecl_sub): Likewise.
66628         (check_subexp_limits): Likewise.
66629         (sub_epsilon_src_nodes):  Likewise.
66630         (add_epsilon_src_nodes):  Likewise.
66631         (merge_state_array): Likewise.
66632         (update_regs): Likewise.
66633         (build_trtable): Likewise.
66634         (sift_states_backward): Mark MCTX parameter as const.
66635         (build_sifted_states): Likewise.
66636         (update_cur_sifted_state): Likewise.
66637         (sift_states_mkref): Likewise.
66638         (check_arrival_expand_ecl): Mark eclosure as const.
66639         (check_dst_limits_calc_pos_1): Likewise.
66640         * lib/regex_internal.h (re_match_context_t): Make dfa a const
66641         pointer.
66642
66643         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
66644
66645         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
66646         (transit_state_sb): Likewise.
66647         (transit_state_mb): Likewise.
66648         (sift_states_iter_mb): Likewise.
66649         (check_arrival_add_next_nodes): Likewise.
66650         (check_node_accept_bytes): Change first parameter to pointer-to-const.
66651         [_LIBC] (re_search_2_stub): Use mempcpy.
66652
66653         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
66654         mbrtowc for very simple UTF-8 case.
66655
66656         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
66657         a pointer-to-const.
66658         (re_acquire_state_context): Likewise.
66659         * lib/regex_internal.h: Adjust prototypes.
66660
66661         * lib/regex.c: Prevent using C++ compilers.
66662
66663         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
66664         (re_acquire_state_context): Likewise.
66665
66666 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66667
66668         * modules/regex (Depends-on): Add ssize_t.
66669
66670 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66671
66672         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
66673         translation table.
66674
66675 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66676
66677         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
66678
66679 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
66680             Bruno Haible  <bruno@clisp.org>
66681
66682         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
66683         <sys/types.h> and <inttypes.h>.
66684
66685 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66686
66687         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
66688         `__error_t_defined', so argp.h will not typedef the former.
66689
66690 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66691
66692         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
66693         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
66694         glibc names.  Even if glibc is changed to conform to POSIX, the
66695         traditional names will be available anyway, since regex depends on
66696         the extensions module.  Also, fix a longstanding typo in the
66697         implementation of Spencer ERE test #75 from grep 2.3.  Problems
66698         reported by Emanuele Giaquinta.  Also, change sense of cached
66699         variable, so that the message makes sense.
66700
66701 2006-03-24  Simon Josefsson  <jas@extundo.com>
66702
66703         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
66704         including some doc fixes.
66705         (base64_encode_alloc): Fix +1 bug on allocation failures.
66706
66707 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66708
66709         * lib/base64.c (base64_encode): Do not read past end of array with
66710         unsanitized input on systems with CHAR_BIT > 8.
66711
66712 2006-03-24  Eric Blake  <ebb9@byu.net>
66713
66714         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
66715
66716 2006-03-22  Karl Berry  <karl@gnu.org>
66717
66718         * config/srclist.txt (*setenv.[ch]): get from coreutils.
66719         * config/srclistvars.sh (COREUTILS): new var.
66720
66721 2006-03-17  Jim Meyering  <jim@meyering.net>
66722
66723         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
66724         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
66725
66726 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66727
66728         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
66729         no longer needs it.  Instead, check that regoff_t is as least
66730         as wide as ptrdiff_t.
66731
66732         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
66733         so that our regex.h stays compatible with the installed regex.
66734         This is helpful for installers who configure --without-included-regex.
66735         Problem reported by Emanuele Giaquinta.
66736
66737 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66738
66739         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
66740         Typedef to long int, not to off_, as POSIX will likely change
66741         in that direction.
66742
66743 2006-03-15  Eric Blake  <ebb9@byu.net>
66744
66745         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
66746
66747 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66748
66749         * lib/argp-help.c (validate_uparams): Fix typo
66750         * lib/argp-parse.c (argp_default_options): Consistently begin help
66751         messages with a lowercase letter.
66752
66753 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
66754
66755         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
66756         overrun buffers and shouldn't be used (much as gets shouldn't be
66757         used).
66758         * lib/time_r.c (asctime_r, ctime_r): Likewise.
66759
66760 2006-03-08  Simon Josefsson  <jas@extundo.com>
66761
66762         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
66763         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66764
66765 2006-03-08  Simon Josefsson  <jas@extundo.com>
66766
66767         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
66768         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66769
66770 2006-03-08  Simon Josefsson  <jas@extundo.com>
66771
66772         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
66773         signal that configure disabled the device.
66774
66775 2006-03-08  Simon Josefsson  <jas@extundo.com>
66776
66777         * build-aux/maint.mk: Fix refresh-po, to handle no translated
66778         languages.
66779
66780 2006-03-07  Simon Josefsson  <jas@extundo.com>
66781
66782         * modules/getopt (Depends-on): Add unistd.
66783
66784         * modules/unistd: New file.
66785
66786 2006-03-07  Simon Josefsson  <jas@extundo.com>
66787
66788         * modules/gc-random: New file.
66789
66790 2006-03-07  Simon Josefsson  <jas@extundo.com>
66791
66792         * m4/unistd_h.m4: New file.
66793
66794 2006-03-07  Simon Josefsson  <jas@extundo.com>
66795
66796         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
66797         test to be side-effect free by storing the result in the cache
66798         variable gl_cv_lib_readline, and moving the assignment of
66799         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
66800         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66801
66802 2006-03-07  Simon Josefsson  <jas@extundo.com>
66803
66804         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
66805         error on missing devices (the functions will return an error).
66806
66807         * m4/gc.m4: Move random stuff to gc-random.m4
66808
66809 2006-03-07  Simon Josefsson  <jas@extundo.com>
66810
66811         * lib/unistd_.h: New file.
66812
66813 2006-03-07  Simon Josefsson  <jas@extundo.com>
66814
66815         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
66816
66817 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66818
66819         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
66820         Problem reported by Juan Manuel Guerrero.
66821
66822 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66823
66824         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
66825         the unistd module.
66826         * lib/getlogin_r.c: Likewise.
66827         * lib/getlogin_r.h: Likewise.
66828         * lib/glob.c: Likewise.
66829         * lib/pagealign_alloc.c: Likewise.
66830         * lib/unistd_.h: Remove; no longer needed.
66831
66832 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66833
66834         * MODULES.html.sh (Support for systems lacking POSIX:2001):
66835         Add unistd.
66836         * modules/c-stack (Depends-on): Add unistd.
66837         * modules/getlogin_r: Likewise.
66838         * modules/glob: Likewise.
66839         * modules/pagealign_alloc: Likewise.
66840         * modules/unistd (Files): Remove lib/unistd_.h.
66841         (EXTRA_DIST): Remove.
66842         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
66843         need unistd_.h.
66844         (MOSTLYCLEANFILES): Remove unistd.h-t.
66845
66846 2006-03-03  Simon Josefsson  <jas@extundo.com>
66847
66848         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
66849
66850 2006-03-03  Simon Josefsson  <jas@extundo.com>
66851
66852         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
66853         libidn and bison.
66854
66855 2006-03-03  Simon Josefsson  <jas@extundo.com>
66856
66857         * build-aux/maint.mk: Add indent target.
66858
66859 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
66860
66861         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
66862         our replacement poll.h in any case, to avoid a differing
66863         declaration from a system header.  Seen on AIX.
66864
66865 2006-03-01  Simon Josefsson  <jas@extundo.com>
66866
66867         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
66868         <kasal@ucw.cz>.
66869
66870 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66871
66872         * modules/gettime (Depends-on): Add extensions module.
66873         * modules/nanosleep (Depends-on): Likewise.
66874         * modules/settime (Depends-on): Likewise.
66875
66876 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66877
66878         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
66879         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
66880         pedantically.
66881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66882         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
66883
66884         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
66885         not "==".  Reported by Ralf Wildenhues.
66886
66887 2006-03-01  Karl Berry  <karl@gnu.org>
66888
66889         * doc/Copyright/request-*: new files, synced from gnuorg.
66890
66891 2006-03-01  Karl Berry  <karl@gnu.org>
66892
66893         * config/srclist.txt (Copyright/*): new entries.
66894
66895 2006-02-28  Simon Josefsson  <jas@extundo.com>
66896
66897         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
66898
66899 2006-02-27  Simon Josefsson  <jas@extundo.com>
66900
66901         * lib/base64.h: Indent #define's.  From Jim Meyering
66902         <jim@meyering.net>.
66903
66904 2006-02-27  Jim Meyering  <jim@meyering.net>
66905
66906         Revert the change of 2006-02-24, so these files can continue
66907         to be sync'd from gettext.
66908         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
66909         of `config.h'.
66910
66911 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66912
66913         * modules/intprops: New file.
66914         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66915         Add intprops.
66916         * modules/getloadavg (Files): Remove lib/intprops.h.
66917         (Depends-on): Add intprops.
66918         * modules/human: Likewise.
66919         * modules/inttostr: Likewise.
66920         * modules/openat: Likewise.
66921         * modules/sig2str: Likewise.
66922         * modules/userspec: Likewise.
66923         * modules/utimecmp: Likewise.
66924         * modules/xnanosleep: Likewise.
66925         * modules/xstrtol: Likewise.
66926
66927 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
66928
66929         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
66930         * modules/lock-tests (TESTS): Use $(EXEEXT).
66931         * modules/tls-tests: Likewise.
66932         * modules/argp-tests: Likewise.
66933         (check_PROGRAMS): New var, replacing...
66934         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
66935
66936 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66937
66938         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
66939         `config.h'.
66940
66941 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66942
66943         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
66944
66945 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66946
66947         Sync from coreutils.
66948         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
66949         gl_CHDIR_SAFER.
66950
66951 2006-02-22  Jim Meyering  <jim@meyering.net>
66952
66953         Sync from coreutils.
66954         * m4/chdir-safer.m4: New file.
66955
66956 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66957
66958         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
66959         AT_FDCWD exceeds INT_MAX.
66960         * lib/openat.h (AT_FDCWD): Likewise.
66961
66962 2006-02-17  Eric Blake  <address@hidden>
66963
66964         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
66965
66966 2006-02-16  Simon Josefsson  <jas@extundo.com>
66967
66968         * modules/getaddrinfo (Depends-on): Add sys_socket.
66969
66970 2006-02-15  Simon Josefsson  <jas@extundo.com>
66971
66972         * build-aux/maint.mk: Add dsyntax-check rule.
66973
66974 2006-02-15  Eric Blake  <ebb9@byu.net>
66975
66976         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
66977         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
66978         'present but cannot compile' warnings on cygwin.
66979         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
66980         use ws2tcpip.h if sys/socket.h works.
66981         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
66982         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
66983
66984 2006-02-14  Simon Josefsson  <jas@extundo.com>
66985
66986         * modules/maintainer-makefile (Files): Rename.
66987
66988         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
66989         and (the local) Makefile.cfg to maint-cfg.mk.
66990
66991         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
66992         to the latter.
66993
66994         * modules/maintainer-makefile: New module.
66995
66996         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
66997         severaly stripped to make it possible to build it up from scratch
66998         with reliable tests.
66999
67000         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
67001         fixes to permit overriding the default actions when configure and
67002         makefile are not available.
67003
67004 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67005
67006         Sync from coreutils.
67007         * modules/lstat (Depends-on): Don't depend on xalloc.
67008         (License): Change from GPL to LGPL, since this is now simply a
67009         replacement for a libc function.
67010
67011 2006-02-14  Jim Meyering  <jim@meyering.net>
67012
67013         Sync from coreutils.
67014
67015         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
67016         failure on deficient systems, and simplify gnulib lgpl dependencies.
67017         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
67018         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
67019
67020         * lib/xalloc-die.c: Remove unused definition of N_.
67021
67022 2006-02-14  Jim Meyering  <jim@meyering.net>
67023
67024         Sync from coreutils.
67025         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
67026         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
67027         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
67028         double-quote uses of that variable, to accommodate the rare case in
67029         which getmntent is available in none of the libraries checked.  This
67030         happens at least on FreeBSD 5.0.
67031
67032 2006-02-13  Simon Josefsson  <jas@extundo.com>
67033
67034         * gnulib-tool (Usage): Fix --import, from
67035         karl@freefriends.org (Karl Berry).
67036
67037 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67038
67039         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
67040
67041 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
67042
67043         * lib/argp-namefrob.h: Restore changes accidentally lost during the
67044         "autoupdate" on 2005-12-12.
67045
67046 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67047
67048         * modules/closeout (Depends-on): Remove atexit.
67049
67050 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67051
67052         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
67053         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
67054
67055 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67056
67057         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
67058         __EXTENSIONS__ if this causes compilation to fail.  Problem
67059         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
67060         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
67061
67062 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
67063
67064         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
67065         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
67066         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
67067         All uses changed.
67068
67069 2006-01-26  Simon Josefsson  <jas@extundo.com>
67070
67071         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
67072         prototype is visible on mingw32.
67073
67074         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
67075         for mingw32.
67076
67077         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
67078         mingw32).
67079
67080 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67081
67082         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
67083         attempt to open for write; this always fails, at least on POSIX
67084         hosts.  This reinstates the 2006-01-09 change, which was
67085         inadvertently removed.
67086
67087 2006-01-26  Bruno Haible  <bruno@clisp.org>
67088
67089         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
67090         Reported by Paul Eggert.
67091
67092 2006-01-26  Bruno Haible  <bruno@clisp.org>
67093             Paul Eggert  <eggert@cs.ucla.edu>
67094
67095         * lib/stdbool_.h (_Bool)
67096         [(! (defined __cplusplus || defined __BEOS__)
67097           && !defined __GNUC__
67098           && !(defined __HP_cc || defined __xlc__
67099                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
67100                || defined __sgi))]:
67101         #define to signed char in these cases too; this simplifies
67102         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
67103         etc., separately) and makes it more conservative.
67104
67105 2006-01-25  Simon Josefsson  <jas@extundo.com>
67106
67107         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
67108         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
67109         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
67110
67111 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67112
67113         * lib/argp-namefrob.h: Bugfix. Remove stray #
67114
67115 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
67116
67117         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
67118         so that we test the test.
67119         Check for yet another HP-UX cc bug involving *bool |= bool.
67120
67121 2006-01-25  Karl Berry  <karl@gnu.org>
67122
67123         * config/srclist.txt (vasnprintf.c): sync lost.
67124
67125 2006-01-25  Jim Meyering  <jim@meyering.net>
67126
67127         Sync from the stable (b5) branch of coreutils:
67128
67129         * lib/fts.c (fts_children): Don't let close() clobber errno from
67130         failed fchdir().
67131
67132         * lib/fts.c (fts_stat): When following a symlink-to-directory,
67133         don't necessarily interpret stat-fails+lstat-succeeds as indicating
67134         a dangling symlink.  That can also happen at least for ELOOP.
67135         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
67136         FYI, this bug predates the inclusion of fts.c in coreutils.
67137
67138         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
67139         in their own block, so pre-c99 compilers don't object.
67140
67141         Avoid the double-free (first in fts_read, second in fts_close) that
67142         would occur when an `active' directory is made inaccessible (e.g.,
67143         via chmod a-x) during a traversal.
67144         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67145         before returning.  Reproduce this failure by
67146         mkdir -p a/b; cd a; chmod a-x . b
67147         Reported by Stavros Passas.
67148
67149 2006-01-25  Jim Meyering  <jim@meyering.net>
67150
67151         * lib/fileblocks.c: Remove more useless parentheses.
67152         * lib/readutmp.h: Likewise.
67153
67154 2006-01-25  Bruno Haible  <bruno@clisp.org>
67155
67156         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
67157         warnings.
67158         Reported by Paul Eggert.
67159
67160 2006-01-25  Bruno Haible  <bruno@clisp.org>
67161
67162         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
67163         rid of a trap command. For Solaris sh.
67164         Reported by Mark D. Baushke <mdb@gnu.org>.
67165
67166 2006-01-24  Simon Josefsson  <jas@extundo.com>
67167
67168         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
67169         Bruno.
67170
67171 2006-01-24  Karl Berry  <karl@gnu.org>
67172
67173         * config/srclist.txt (argp-namefrob.h): sync lost.
67174
67175 2006-01-24  Jim Meyering  <jim@meyering.net>
67176
67177         * modules/openat (Files): Add lib/intprops.h.
67178         From Mark D. Baushke.
67179
67180 2006-01-24  Jim Meyering  <jim@meyering.net>
67181
67182         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
67183         Reported by Mark D. Baushke.
67184
67185 2006-01-24  Jim Meyering  <jim@meyering.net>
67186
67187         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
67188
67189 2006-01-24  Bruno Haible  <bruno@clisp.org>
67190
67191         * modules/strnlen (Maintainer): Change from glibc to all.
67192
67193 2006-01-24  Bruno Haible  <bruno@clisp.org>
67194
67195         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
67196         Patch by Paul Eggert.
67197
67198 2006-01-24  Bruno Haible  <bruno@clisp.org>
67199
67200         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
67201         already has it.
67202         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
67203         2005-11-26.
67204
67205         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
67206         'signed char' to avoid problems with the built-in _Bool type.
67207         Reported by Paul Eggert on 2005-11-26.
67208
67209 2006-01-24  Bruno Haible  <bruno@clisp.org>
67210
67211         * gnulib-tool (func_import): Avoid constructing complicated sed
67212         expressions inside backquote.
67213         Report and solution by Mark D. Baushke <mdb@gnu.org>.
67214
67215 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
67216
67217         These changes imported from libc.
67218         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
67219         test and two separate function calls.
67220         * lib/strndup.c (__strndup): Add libc_hidden_def.
67221
67222 2006-01-23  Simon Josefsson  <jas@extundo.com>
67223
67224         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
67225         Remove the test_*_SOURCES variable: automake infers it by default.
67226         * modules/tls-tests: Likewise.
67227
67228 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67229
67230         Work around porting bugs reported by Dieter in
67231         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
67232         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
67233         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
67234         Include "getopt.h" first, to check interface.
67235         (getenv): Declare only if defined HAVE_DECL_GETENV &&
67236         !HAVE_DECL_GETENV.
67237         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
67238         (__strndup): Revert to K&R-style function dfns, the glibc style.
67239         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
67240         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
67241         Include strnlen.h first, to get prototype properly.
67242         (strnlen): Renamed from __strnlen.
67243         Remove weak alias.
67244
67245 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67246
67247         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
67248
67249 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67250
67251         * config/srclist.txt: Adjust to reflect glibc reorganization.
67252         This affects only comments.
67253
67254 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67255
67256          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67257          Reported by Bruce Korb <bkorb@gnu.org>.
67258
67259 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67260
67261         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67262         to pacify gcc -Wswitch-default.
67263
67264 2006-01-22  Bruno Haible  <bruno@clisp.org>
67265
67266         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67267         temporary buffer for sprintf, take into account the precision also
67268         for 'd', 'i', 'u', 'o', 'x', 'X'.
67269
67270 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67271
67272         * modules/argp-tests: New module
67273         * tests/test-argp.c: New file
67274         * tests/test-argp-2.sh: New file
67275
67276 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67277
67278         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67279         (__argp_base_name): Removed
67280         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67281         typo.
67282         (__argp_base_name): Provide macro definition or extern declaration
67283         depending on the configuration
67284
67285 2006-01-20  Simon Josefsson  <jas@extundo.com>
67286
67287         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67288
67289 2006-01-20  Simon Josefsson  <jas@extundo.com>
67290
67291         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67292
67293 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67294
67295         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67296         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67297         Suggested by Bruno Haible.
67298
67299 2006-01-20  Karl Berry  <karl@gnu.org>
67300
67301         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67302         until changes propagate, I guess.
67303
67304 2006-01-19  Simon Josefsson  <jas@extundo.com>
67305
67306         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67307
67308 2006-01-19  Simon Josefsson  <jas@extundo.com>
67309
67310         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67311
67312 2006-01-19  Simon Josefsson  <jas@extundo.com>
67313
67314         * gnulib-tool: Set check_PROGRAMS.
67315
67316         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67317         modules/des-tests, modules/gc-arcfour-tests,
67318         modules/gc-arctwo-tests, modules/gc-des-tests,
67319         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67320         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67321         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67322         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67323         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67324         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67325         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67326         test_*_SOURCES.
67327
67328 2006-01-18  Simon Josefsson  <jas@extundo.com>
67329
67330         * modules/socklen (Depends-on): Depend on sys_socket.
67331
67332 2006-01-18  Simon Josefsson  <jas@extundo.com>
67333
67334         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67335         modules/des-tests, modules/gc-arcfour-tests,
67336         modules/gc-arctwo-tests, modules/gc-des-tests,
67337         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67338         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67339         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67340         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67341         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67342         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67343         $(EXEEXT) to automake TESTS variable, for mingw32.
67344
67345 2006-01-17  Simon Josefsson  <jas@extundo.com>
67346
67347         * modules/socklen (Include): Need sys/socket.h.
67348
67349 2006-01-17  Bruno Haible  <bruno@clisp.org>
67350
67351         * modules/ssize_t (Include): Add <sys/types.h>.
67352
67353 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67354
67355         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67356         it's not portable and it doesn't work with cross-compiles.
67357         Problem reported by Bruno Haible.  Fix missing-$ typo in
67358         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67359         -zignore from being used with Sun's C compiler.
67360
67361 2006-01-12  Simon Josefsson  <jas@extundo.com>
67362
67363         * lib/base64.c: Fix warning, reported by Bruno Haible
67364         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67365
67366 2006-01-12  Bruno Haible  <bruno@clisp.org>
67367
67368         * modules/ldd: New file.
67369         * build-aux/ldd.sh.in: New file.
67370         * MODULES.html.sh (Support for building libraries and executables): Add
67371         ldd.
67372
67373 2006-01-12  Bruno Haible  <bruno@clisp.org>
67374
67375         * m4/ldd.m4: New file.
67376
67377 2006-01-12  Bruno Haible  <bruno@clisp.org>
67378
67379         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67380         endless loop while replacing $auxdir with build-aux.
67381
67382 2006-01-11  Simon Josefsson  <jas@extundo.com>
67383
67384         * lib/stdint_.h (SIZE_MAX): Add missing (.
67385
67386 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67387
67388         Sync from coreutils.
67389         * lib/md5.c: Fix commentary typos.
67390         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67391         * lib/md5.h (__attribute__): Remove; unused.
67392         * lib/sha1.c: Fix commentary to match md5 better.
67393         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67394         so that we don't need to worry about alignment.  All uses changed.
67395         This merges the 2005-10-28 md5 change into sha1.
67396
67397 2006-01-11  Jim Meyering  <jim@meyering.net>
67398
67399         Sync from coreutils.
67400         * lib/md5.c (OP): Fix spacing.
67401
67402 2006-01-11  Bruno Haible  <bruno@clisp.org>
67403
67404         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67405         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67406         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67407
67408 2006-01-11  Bruno Haible  <bruno@clisp.org>
67409
67410         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67411         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67412         the "early" section as well.
67413
67414 2006-01-11  Bruno Haible  <bruno@clisp.org>
67415
67416         Avoid "ar: no archive members specified" error on MacOS X.
67417         * gnulib-tool (func_modules_add_dummy): New function.
67418         (func_import, func_create_testdir): Invoke it.
67419
67420 2006-01-11  Bruno Haible  <bruno@clisp.org>
67421
67422         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67423         with $auxdir in AC_CONFIG_FILES statements.
67424
67425 2006-01-11  Bruno Haible  <bruno@clisp.org>
67426
67427         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67428         Initialize also noinst_HEADERS to empty.
67429
67430 2006-01-11  Bruno Haible  <bruno@clisp.org>
67431
67432         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67433         variables.
67434         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67435         autoreconf.
67436
67437 2006-01-11  Bruno Haible  <bruno@clisp.org>
67438
67439         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67440         overridable by the user.
67441         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67442
67443 2006-01-10  Simon Josefsson  <jas@extundo.com>
67444
67445         * modules/sys_socket: New file.
67446
67447 2006-01-10  Simon Josefsson  <jas@extundo.com>
67448
67449         * m4/sys_socket_h.m4: New file.
67450
67451 2006-01-10  Simon Josefsson  <jas@extundo.com>
67452
67453         * lib/socket_.h: New file.
67454
67455 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67456
67457         * modules/readutmp (Maintainer): Add myself.
67458
67459 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67460
67461         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67462         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67463         People who are still concerned with buggy memcmp implementations
67464         can invoke gl_FUNC_MEMCMP themselves.
67465
67466 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67467
67468         * lib/regex_internal.h (BITSET_WORD_BITS):
67469         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67470         preprocessor mishandles large unsigned values as if they were signed.
67471         Problem reported by Claudio Fontana in
67472         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
67473
67474 2006-01-10  Jim Meyering  <jim@meyering.net>
67475
67476         Avoid the double-free (first in fts_read, second in fts_close) that
67477         would occur when an `active' directory is made inaccessible (e.g.,
67478         via chmod a-x) during a traversal.
67479         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67480         before returning.  Reproduce this failure by
67481         mkdir -p a/b; cd a; chmod a-x . b
67482         Reported by Stavros Passas.
67483
67484         Sync from coreutils.
67485         * lib/sha1.c: Tweak grammar in a comment.
67486
67487 2006-01-10  Jim Meyering  <jim@meyering.net>
67488
67489         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
67490         Patch by Joerg Sonnenberger.
67491
67492 2006-01-10  Bruno Haible  <bruno@clisp.org>
67493
67494         * modules/readutmp: Depend on module free.
67495         * modules/strtok_r: Depend on module restrict.
67496
67497 2006-01-10  Bruno Haible  <bruno@clisp.org>
67498
67499         * modules/gettext (configure.ac): Add an invocation of
67500         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
67501
67502 2006-01-10  Bruno Haible  <bruno@clisp.org>
67503
67504         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
67505         Reported by Werner Lemberg <wl@gnu.org>.
67506
67507 2006-01-10  Bruno Haible  <bruno@clisp.org>
67508
67509         * lib/localcharset.c: Update from GNU gettext.
67510
67511 2006-01-10  Bruno Haible  <bruno@clisp.org>
67512
67513         * lib/argp.h (__const): Remove macro. Use const instead.
67514         * lib/argp-fmtstream.h (__const): Likewise.
67515         * lib/glob_.h (__const): Remove macro.
67516         * lib/glob-libc.h: Use const instead of __const.
67517
67518 2006-01-10  Bruno Haible  <bruno@clisp.org>
67519
67520         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
67521         variable.
67522         Needed to avoid an automake error regarding the 'gettext' module.
67523
67524 2006-01-09  Simon Josefsson  <jas@extundo.com>
67525
67526         * modules/inet_ntop (Depends-on): Add restrict.
67527
67528 2006-01-09  Simon Josefsson  <jas@extundo.com>
67529
67530         * modules/gc-rijndael-tests (License): Put under LGPL.
67531
67532         * modules/gc-des-tests (License): Likewise.
67533
67534         * modules/gc-arcfour-tests (License): Likewise.
67535
67536         * modules/gc-arctwo-tests (License): Likewise.
67537
67538         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
67539
67540         * modules/gc-hmac-sha1-tests (Files): Likewise.
67541
67542         * modules/gc-hmac-md5-tests (License): Likewise.
67543
67544         * modules/gc-sha1-tests (License): Likewise.
67545
67546         * modules/gc-md5-tests (License): Likewise.
67547
67548         * modules/gc-md4-tests (License): Likewise.
67549
67550         * modules/gc-md2-tests (License): Likewise.
67551
67552         * modules/gc-tests (License): Likewise.
67553
67554         * modules/des-tests (License): Likewise.
67555
67556         * modules/md4-tests (License): Likewise.
67557
67558         * modules/md2-tests (License): Likewise.
67559
67560 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67561
67562         Sync from coreutils:
67563
67564         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67565         * modules/lib-ignore: New file.
67566         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67567         chdir-safer.m4, lchmod.m4.
67568         * modules/openat: Add mkdirat.c, openat-priv.h.
67569
67570 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67571
67572         Sync from coreutils.
67573         * m4/lib-ignore.m4: New file.
67574         * m4/lchmod.m4: New file.
67575
67576 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67577
67578         Sync from coreutils.
67579         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67580         for write access: POSIX says that must fail.
67581         * lib/fts.c (diropen): Likewise.
67582         * lib/save-cwd.c (save_cwd): Likewise.
67583         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67584         well, for minor improvements on hosts that lack O_DIRECTORY.
67585         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67586         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67587         Fall back on chown if open failed with EACCES.
67588
67589         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67590         Report an error at compile-time if only a 1-second nominal clock
67591         resolution is found.
67592
67593         * lib/lchmod.h: New file.
67594         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67595         (make_dir_parents): Use lchown rather than chown, and
67596         lchmod rather than chmod.
67597
67598         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67599         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67600         "proc" reported by n0dalus.
67601
67602         * lib/mountlist.c: Include <limits.h>.
67603         (dev_from_mount_options)
67604         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67605         New function.  It no longer assumes "dev=" has the System V meaning
67606         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67607         (read_file_system_list)
67608         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67609         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67610         dev= in that case.
67611
67612         * lib/posixtm.h (PDS_PRE_2000): New macro.
67613         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67614         allow_century.  All usages changed.  Reject dates outside the range
67615         1969-1999 if PDS_PRE_2000 is used.
67616
67617 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67618
67619         Sync from coreutils.
67620         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67621         (Time of day items): Mention the possibility of leap seconds.
67622         Problem reported by Dr. David Alan Gilbert.
67623
67624 2006-01-09  Jim Meyering  <jim@meyering.net>
67625
67626         Sync from coreutils.
67627
67628         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67629
67630         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67631
67632         * lib/modechange.c (mode_compile): Reject an invalid mode string
67633         that starts with an octal digit.  From Andreas Gruenbacher.
67634
67635         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
67636         and dup to open_safer and dup_safer, respectively.
67637         (openat_permissive): Fix typo in comment.
67638
67639         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
67640         "gettext.h"; either no longer needed or are guaranteed by openat.h.
67641         (_): Remove; no longer needed.
67642         (openat): Renamed from rpl_openat; no need for rpl_openat
67643         since openat.h renames openat for us.
67644         Replace most of the body with a call to openat_permissive,
67645         to avoid duplicate code.
67646         Port to (probably hypothetical) environments were mode_t is
67647         wider than int.
67648         (openat_permissive): Require mode arg, so that we can check
67649         types better.  Put it just after flags.  Change cwd failure
67650         indicator from pointer-to-bool to pointer-to-errno-value.
67651         All callers changed.
67652         Invoke openat_save_fail and/or openat_restore_fail if
67653         cwd_errno is null, so that openat can call us.
67654         (openat_permissive, fdopendir, fstatat, unlinkat):
67655         Simplify errno handling to avoid some duplicate code,
67656         as it's OK to set errno on success.
67657         * lib/openat.h: Revamp code so that function macros depend on
67658         __OPENAT_PREFIX only, not also on AT_FDCWD.
67659         (openat_ro): Remove.  Caller changed to use openat_permissive.
67660         (openat_permissive): Now a macro, if not a function.
67661         (openat_restore_fail, openat_save_fail): Now always functions,
67662         since mkdirat needs them even if __OPENAT_PREFIX is defined.
67663
67664         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
67665         and openat.c.
67666         * lib/mkdirat.c: Include openat-priv.h.
67667         Remove definitions of macros defined therein.
67668         * lib/openat.c: Likewise.
67669
67670         * lib/mkdirat.c (mkdirat): New file and function.
67671         * lib/openat.h (mkdirat): Declare.
67672
67673         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
67674
67675         * lib/openat.h (openat_permissive): Declare.
67676         (openat_ro): Define.
67677
67678         * lib/openat.c (EXPECTED_ERRNO): New macro.
67679         (openat_permissive): New function -- used in remove.c rewrite.
67680         (all functions): Set errno just before returning, only if there
67681         was an actual failure.
67682         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
67683
67684         Emulate openat-family functions using Linux's procfs, if possible.
67685         Idea and some code based on Ulrich Drepper's glibc changes.
67686
67687         * lib/openat.c: (BUILD_PROC_NAME): New macro.
67688         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
67689         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
67690         before falling back on save_cwd and restore_cwd.
67691         (fdopendir, fstatat, unlinkat): Likewise.
67692
67693         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
67694         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
67695
67696         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
67697         as second argument to va_arg.  Otherwise, some versions of gcc
67698         warn that `if this code is reached, the program will abort'.
67699
67700 2006-01-09  Jim Meyering  <jim@meyering.net>
67701
67702         Sync from coreutils.
67703         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
67704         Require openat-priv.h.
67705
67706 2006-01-09  Bruno Haible  <bruno@clisp.org>
67707
67708         * modules/strnlen (Include): Use strnlen.h.
67709
67710 2006-01-09  Bruno Haible  <bruno@clisp.org>
67711
67712         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
67713
67714 2006-01-09  Bruno Haible  <bruno@clisp.org>
67715
67716         * lib/sysexit_.h (EX_OK): New macro.
67717         Suggested by Martin Lambers <marlam@marlam.de>.
67718
67719 2006-01-09  Bruno Haible  <bruno@clisp.org>
67720
67721         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
67722         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
67723
67724 2006-01-09  Bruno Haible  <bruno@clisp.org>
67725
67726         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
67727         numbers.
67728
67729 2006-01-09  Bruno Haible  <bruno@clisp.org>
67730
67731         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
67732         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
67733         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
67734         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
67735
67736 2006-01-09  Bruno Haible  <bruno@clisp.org>
67737
67738         * build-aux/javacomp.sh.in: New file, moved from lib/.
67739         * modules/javacomp-script (Files): Update.
67740         (configure.ac): Add AC_CONFIG_FILES invocation.
67741         (EXTRA_DIST): Remove variable.
67742
67743         * build-aux/javaexec.sh.in: New file, moved from lib/.
67744         * modules/javaexec (Files): Update.
67745         (configure.ac): Add AC_CONFIG_FILES invocation.
67746         (EXTRA_DIST): Remove javaexec.sh.in.
67747
67748         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
67749         * modules/csharpcomp-script (Files): Update.
67750         (configure.ac): Add AC_CONFIG_FILES invocation.
67751         (EXTRA_DIST): Remove variable.
67752
67753         * build-aux/csharpexec.sh.in: New file, moved from lib/.
67754         * modules/csharpexec (Files): Update.
67755         (configure.ac): Add AC_CONFIG_FILES invocation.
67756         (EXTRA_DIST): Remove csharpexec.sh.in.
67757
67758 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67759
67760         Sync from coreutils.
67761
67762         Add POSIX ACL support
67763         * lib/acl.h (copy_acl, set_acl): Add declarations.
67764         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
67765         systems other than Linux.
67766         (chmod_or_fchmod): New function: use fchmod when possible,
67767         and chmod otherwise.
67768         (file_has_acl): Add a POSIX ACL implementation, with a
67769         Linux-specific subcase.
67770         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
67771         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
67772         acls are unsupported.
67773         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
67774         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
67775         are unsupported.
67776
67777 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67778
67779         Sync from coreutils.
67780         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
67781
67782 2006-01-07  Bruno Haible  <bruno@clisp.org>
67783
67784         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
67785         gl_EARLY.
67786
67787 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67788
67789         * lib/strftime.c (tzname): Don't declare if it is already #defined.
67790         Problem reported for Mingw by Mark Junker.
67791
67792 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67793
67794         * README: Gnulib normally doesn't generate a tarball.
67795
67796 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
67797
67798         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
67799         long int, not int, for nanosecond counts, so that people who are
67800         used to POSIX struct timespec won't be surprised.  Reported by Jim
67801         Meyering.
67802
67803 2005-12-28  Bruno Haible  <bruno@clisp.org>
67804
67805         * build-aux/config.rpath: Update from GNU gettext.
67806
67807 2005-12-16  Jim Meyering  <jim@meyering.net>
67808
67809         * modules/fprintftime: New module.
67810         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
67811
67812 2005-12-16  Jim Meyering  <jim@meyering.net>
67813
67814         * m4/fprintftime.m4: New file.
67815
67816 2005-12-16  Jim Meyering  <jim@meyering.net>
67817
67818         * lib/fprintftime.c, lib/fprintftime.h: New files.
67819
67820 2005-12-15  Simon Josefsson  <jas@extundo.com>
67821
67822         * modules/socklen (configure.ac): Fix M4 macro name, to align with
67823         new m4/socklen.m4.
67824
67825 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67826
67827         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
67828         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
67829
67830 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67831
67832         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
67833         * lib/argp-help.c (fill_in_uparams): Check if the constructed
67834         struct uparams is valid. Fall back to the default values if it is
67835         not.
67836
67837 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67838
67839         * modules/argp (Files): Add argp-pin.c
67840         (Depends-on): dirname
67841         (lib_SOURCES): Add argp-pin.c
67842
67843 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67844
67845         * m4/argp.m4:  Check if program_invocation_name and
67846         program_invocation_short_name are declared and define appropriate
67847         macros if they are not.
67848
67849 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67850
67851         * lib/argp-help.c (__argp_base_name): New function
67852         (__argp_short_program_name): Rewrite using __argp_base_name
67853         * lib/argp-namefrob.h: Define program_invocation_name and
67854         program_invocation_short_name if requested
67855         (__argp_base_name): Add prototype
67856         * lib/argp-parse.c (argp_def): Use gettext wrappers
67857         (argp_default_parser): Use __argp_base_name
67858         * lib/argp-pin.c: New file. Defines program_invocation_name and
67859         program_invocation_short_name on systems that lack them.
67860
67861 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67862
67863         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
67864         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67865         porting problem reported by Georg Schwarz in
67866         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67867
67868 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67869
67870         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
67871         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67872         porting problem reported by Georg Schwarz in
67873         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67874
67875 2005-12-05  Bruno Haible  <bruno@clisp.org>
67876
67877         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
67878         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
67879         Reported by Mark Junker <mjscod@gmx.de>.
67880
67881 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
67882
67883         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
67884         Use implementation from Albert Chin, with some
67885         comments/corrections by Stepan Kasal and myself.
67886
67887 2005-12-02  Bruno Haible  <bruno@clisp.org>
67888
67889         * gnulib-tool (func_import): Accept GPLed build tool modules when
67890         --lgpl is given.
67891         * modules/csharpcomp-script: New file.
67892         * modules/csharpcomp: Depend on it.
67893         * modules/javacomp-script: New file.
67894         * modules/javacomp: Depend on it.
67895         Suggested by Simon Josefsson.
67896
67897 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
67898
67899         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
67900         statement, to work around an HP-UX 10.20 compiler bug reported by
67901         Peter O'Gorman.
67902
67903 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67904
67905         * modules/savedir (Depends-on): Add openat.
67906
67907 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67908
67909         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
67910         (uintmax_t) [defined uintmax_t]: Do not declare.
67911         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
67912         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
67913         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
67914         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
67915         sake of portability to weird hosts that C allows (though we don't
67916         know of any practical examples).
67917
67918         * lib/savedir.h (fdsavedir): New decl.
67919         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
67920         contains most of the former guts of savedir.
67921         (savedir): Use savedirstream.
67922         Include "openat.h".
67923
67924 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67925
67926         * modules/obstack (Files): Add m4/ulonglong.m4.
67927         Problem reported by Davide Angelocola.
67928
67929 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
67930
67931         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
67932         coreutils no longer futzes with rounding modes.
67933
67934 2005-11-14  Jim Meyering  <jim@meyering.net>
67935
67936         * lib/mkstemp-safer.c: Include <config.h>, required for possible
67937         replacement of mkstemp.
67938
67939 2005-11-10  Simon Josefsson  <jas@extundo.com>
67940
67941         * lib/readline.c: Remove EOL.
67942
67943 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67944
67945         * modules/gethrxtime (Depends-on): Add gettime.
67946
67947 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67948
67949         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
67950         or gettimeofday; no longer needed.
67951
67952 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67953
67954         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
67955         time business.
67956         (gethrxtime) [! (HAVE_NANOUPTIME
67957         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
67958         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
67959         our own approximation.
67960
67961 2005-11-08  Eric Blake  <ebb9@byu.net>
67962
67963         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67964
67965 2005-11-08  Eric Blake  <ebb9@byu.net>
67966
67967         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67968
67969 2005-11-04  Bruno Haible  <bruno@clisp.org>
67970
67971         * gnulib-tool: Implement --update mode.
67972
67973 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67974
67975         Fix porting problem reported by Theodoros V. Kalamatianos.
67976         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
67977         Don't assume that futimes failing means we must fail.
67978
67979 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67980
67981         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
67982         variables to suggest the intended function of the PATH_MAX check.
67983
67984 2005-10-30  Kean Johnston  <jkj@sco.com>
67985
67986         Trivial changes to support SCO systems.
67987         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
67988         as PATH_MAX.
67989         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
67990         where __ptr is null when no I/O is pending.
67991
67992 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67993
67994         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
67995         leave errno alone.  Problem reported by Dmitry V. Levin.
67996
67997 2005-10-28  Simon Josefsson  <jas@extundo.com>
67998
67999         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
68000         Test more.
68001
68002         * tests/test-gc-md2.c, tests/test-md2.c: New files.
68003
68004         * modules/md2, modules/md2-tests: New files.
68005
68006 2005-10-28  Simon Josefsson  <jas@extundo.com>
68007
68008         * m4/inet_ntop.m4: More tests.
68009
68010         * m4/gc-md2.m4, md2.m4: New file.
68011
68012 2005-10-28  Simon Josefsson  <jas@extundo.com>
68013
68014         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
68015         "restrict" keywords, as per POSIX.  Protect the function
68016         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
68017         Don't use K&R prototypes.  Check the sprintf return values.
68018         Re-define EAFNOSUPPORT if not present.  Indent.
68019
68020         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
68021         suggested by Bruno Haible <bruno@clisp.org>.
68022
68023         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
68024
68025         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
68026
68027         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
68028         libgcrypt).
68029
68030         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
68031
68032         * lib/md2.h, lib/md2.c: New files.
68033
68034 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
68035
68036         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
68037         errno alone.  Problem reported by Frederic Jolliton.
68038
68039 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68040
68041         * modules/verify (License): Change from GPL to LGPL.  This is a
68042         tiny module and there are apparently near-equivalents that are
68043         under the BSD license.
68044
68045 2005-10-24  Simon Josefsson  <jas@extundo.com>
68046
68047         * modules/sha1: Relicense to LGPL.
68048
68049 2005-10-24  Simon Josefsson  <jas@extundo.com>
68050
68051         * lib/md4.h: Shrink buffer size, now that we changed the type.
68052
68053 2005-10-23  Simon Josefsson  <jas@extundo.com>
68054
68055         * gnulib-tool (func_import): Fix --tests-base.
68056
68057 2005-10-22  Simon Josefsson  <jas@extundo.com>
68058
68059         * modules/arcfour (Depends-on): Need stdint.
68060
68061 2005-10-22  Simon Josefsson  <jas@extundo.com>
68062
68063         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
68064         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
68065
68066 2005-10-22  Simon Josefsson  <jas@extundo.com>
68067
68068         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
68069         suggested by Bruno Haible <bruno@clisp.org>.
68070
68071 2005-10-22  Simon Josefsson  <jas@extundo.com>
68072
68073         * lib/crc.h: Include stddef.h, for size_t.
68074
68075 2005-10-22  Simon Josefsson  <jas@extundo.com>
68076
68077         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
68078         arcfour_context struct (simplify test vector testing in GNU
68079         Shishi).
68080
68081 2005-10-21  Simon Josefsson  <jas@extundo.com>
68082
68083         * modules/des, modules/des-tests: New files.
68084
68085         * modules/gc-des, modules/gc-des-tests: New files.
68086
68087         * tests/test-des.c, tests/test-gc-des.c: New file.
68088
68089 2005-10-21  Simon Josefsson  <jas@extundo.com>
68090
68091         * modules/arctwo, modules/arctwo-tests: New files.
68092
68093         * tests/test-arctwo.c: New file.
68094
68095         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
68096
68097         * tests/test-gc-arctwo.c: New file.
68098
68099 2005-10-21  Simon Josefsson  <jas@extundo.com>
68100
68101         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
68102         Bruno Haible <bruno@clisp.org>.
68103
68104         * m4/gc-des.m4: New file.
68105
68106 2005-10-21  Simon Josefsson  <jas@extundo.com>
68107
68108         * m4/arctwo.m4: New file.
68109
68110         * m4/gc-arctwo.m4: New file.
68111
68112 2005-10-21  Simon Josefsson  <jas@extundo.com>
68113
68114         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
68115         block.
68116
68117 2005-10-21  Simon Josefsson  <jas@extundo.com>
68118
68119         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
68120         <bruno@clisp.org>.
68121
68122         * lib/hmac-sha1.c (hmac_sha1): Likewise.
68123
68124         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
68125         Bruno Haible <bruno@clisp.org>.
68126
68127         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
68128         <bruno@clisp.org>.
68129
68130 2005-10-21  Simon Josefsson  <jas@extundo.com>
68131
68132         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
68133
68134 2005-10-21  Simon Josefsson  <jas@extundo.com>
68135
68136         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
68137
68138 2005-10-21  Simon Josefsson  <jas@extundo.com>
68139
68140         * lib/des.h, lib/des.c: New files.
68141
68142         * lib/gc-gnulib.c: Support DES.c
68143
68144 2005-10-21  Simon Josefsson  <jas@extundo.com>
68145
68146         * lib/arctwo.h, lib/arctwo.c: New files.
68147
68148         * lib/gc-gnulib.c: Support ARCTWO.
68149
68150 2005-10-21  Simon Josefsson  <jas@extundo.com>
68151
68152         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
68153         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68154
68155 2005-10-21  Simon Josefsson  <jas@extundo.com>
68156
68157         * gnulib-tool (func_import, func_create_testdir): Define automake
68158         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
68159         Makefile.am snippet),
68160         suggested by Bruno Haible <bruno@clisp.org>.
68161
68162         * modules/gc (Makefile.am): Use it.
68163
68164 2005-10-21  Bruno Haible  <bruno@clisp.org>
68165
68166         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
68167         patch.
68168
68169 2005-10-19  Simon Josefsson  <jas@extundo.com>
68170
68171         * tests/test-gc-rijndael.c: New file.
68172
68173         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
68174
68175 2005-10-19  Simon Josefsson  <jas@extundo.com>
68176
68177         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
68178         interface too.
68179
68180 2005-10-19  Simon Josefsson  <jas@extundo.com>
68181
68182         * tests/test-gc-arcfour.c: New file.
68183
68184         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
68185
68186 2005-10-19  Simon Josefsson  <jas@extundo.com>
68187
68188         * modules/gc-md4, modules/gc-md4-tests: New file.
68189
68190         * tests/test-gc-md4.c: New file.
68191
68192 2005-10-19  Simon Josefsson  <jas@extundo.com>
68193
68194         * m4/gc-md4.m4: New file.
68195
68196 2005-10-19  Simon Josefsson  <jas@extundo.com>
68197
68198         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
68199         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
68200         <kasal@ucw.cz>.
68201
68202 2005-10-19  Simon Josefsson  <jas@extundo.com>
68203
68204         * m4/gc-arcfour.m4: New file.
68205
68206         * m4/gc-rijndael.m4: New file.
68207
68208 2005-10-19  Simon Josefsson  <jas@extundo.com>
68209
68210         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
68211
68212 2005-10-19  Simon Josefsson  <jas@extundo.com>
68213
68214         * lib/gc-gnulib.c: Support ARCFOUR.
68215
68216 2005-10-19  Simon Josefsson  <jas@extundo.com>
68217
68218         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
68219         support.
68220
68221         * lib/gc.h: Add ECB enum type.
68222
68223         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
68224
68225 2005-10-18  Simon Josefsson  <jas@extundo.com>
68226
68227         * tests/test-md5.c: New file.
68228
68229         * modules/md5-tests: New file.
68230
68231 2005-10-18  Simon Josefsson  <jas@extundo.com>
68232
68233         * tests/test-md4.c: New file.
68234
68235         * modules/md4, modules/md4-tests: New files.
68236
68237 2005-10-18  Simon Josefsson  <jas@extundo.com>
68238
68239         * m4/md4.m4: New file.
68240
68241 2005-10-18  Simon Josefsson  <jas@extundo.com>
68242
68243         * lib/md4.h, lib/md4.c: New files, based on md5.?.
68244
68245 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
68246
68247         * gnulib-tool (func_create_testdir): Omit the second check whether
68248         BUILT_SOURCES in nonempty.
68249
68250 2005-10-17  Simon Josefsson  <jas@extundo.com>
68251
68252         * tests/test-rijndael.c: New file.
68253
68254 2005-10-17  Simon Josefsson  <jas@extundo.com>
68255
68256         * modules/sha1: Depend on stdint instead of md5.
68257
68258         * modules/md5: Depend on stdint, remove uint32_t.
68259
68260 2005-10-17  Simon Josefsson  <jas@extundo.com>
68261
68262         * modules/gc-sha1-tests: New file.
68263
68264         * tests/test-gc-sha1.c: New file.
68265
68266 2005-10-17  Simon Josefsson  <jas@extundo.com>
68267
68268         * m4/md5.m4: Remove call to uint32_t.m4.
68269
68270 2005-10-17  Simon Josefsson  <jas@extundo.com>
68271
68272         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68273
68274         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68275         md5.h.
68276
68277         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68278
68279         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68280
68281 2005-10-17  Simon Josefsson  <jas@extundo.com>
68282
68283         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68284
68285 2005-10-17  Simon Josefsson  <jas@extundo.com>
68286
68287         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68288
68289 2005-10-17  Simon Josefsson  <jas@extundo.com>
68290
68291         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68292
68293         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68294
68295 2005-10-17  Bruno Haible  <bruno@clisp.org>
68296
68297         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68298         that it can also be used in a test.
68299
68300 2005-10-16  Bruno Haible  <bruno@clisp.org>
68301
68302         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68303         TESTS_ENVIRONMENT, so that individual tests can augment it.
68304
68305         * gnulib-tool (func_create_testdir): Use an intermediate target for
68306         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68307         macros, like $(ALLOCA_H), which cannot be passed through the command
68308         line.
68309
68310 2005-10-15  Simon Josefsson  <jas@extundo.com>
68311
68312         * modules/rijndael-tests: New file.
68313
68314         * modules/rijndael: New file.
68315
68316 2005-10-15  Simon Josefsson  <jas@extundo.com>
68317
68318         * m4/rijndael.m4: New file.
68319
68320 2005-10-15  Simon Josefsson  <jas@extundo.com>
68321
68322         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68323
68324         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68325
68326 2005-10-14  Simon Josefsson  <jas@extundo.com>
68327
68328         * tests/test-arcfour.c: New file.
68329
68330         * modules/arcfour, modules/arcfour-tests: New files.
68331
68332 2005-10-14  Simon Josefsson  <jas@extundo.com>
68333
68334         * m4/arcfour.m4: New file.
68335
68336 2005-10-14  Simon Josefsson  <jas@extundo.com>
68337
68338         * lib/arcfour.h, lib/arcfour.c: New files.
68339
68340 2005-10-14  Roland McGrath  <roland@redhat.com>
68341
68342         Import from libc.  [BZ #1331]
68343         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68344         macro argument.
68345         Reported by Matej Vela <vela@debian.org>.
68346
68347 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68348
68349         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68350         include <wchar.h>; no longer needed.
68351
68352 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68353
68354         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68355
68356 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68357         and  Ulrich Drepper  <drepper@redhat.com>
68358
68359         Import from libc.
68360         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68361         instead of inline stream orientation test and two separate
68362         function calls.  Pay no attention to USE_IN_LIBIO.
68363
68364 2005-10-13  Simon Josefsson  <jas@extundo.com>
68365
68366         * modules/gc-hmac-md5-tests: New file.
68367
68368         * tests/test-gc-hmac-sha1.c: New file.
68369
68370         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68371
68372         * modules/gc-hmac-md5-tests: New file.
68373
68374         * tests/test-gc-md5.c: New file.
68375
68376         * modules/gc-md5-tests: New file.
68377
68378 2005-10-13  Simon Josefsson  <jas@extundo.com>
68379
68380         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68381         Move memory allocation outside of loop.
68382
68383 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68384
68385         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68386         intermediate directory is in a read-only file system.  Problem
68387         reported by Eric Blake.
68388
68389 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68390
68391         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68392
68393 2005-10-12  Simon Josefsson  <jas@extundo.com>
68394
68395         * tests/test-hmac-sha1.c: New file.
68396
68397         * modules/hmac-sha1-tests: New file.
68398
68399         * modules/hmac-sha1: New file.
68400
68401 2005-10-12  Simon Josefsson  <jas@extundo.com>
68402
68403         * modules/gc-sha1: New file.
68404
68405 2005-10-12  Simon Josefsson  <jas@extundo.com>
68406
68407         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68408
68409         * tests/test-gc-pbkdf2-sha1.c: New file.
68410
68411 2005-10-12  Simon Josefsson  <jas@extundo.com>
68412
68413         * modules/gc-md5, modules/gc-hmac-md5: New files.
68414
68415         * modules/gc (Files): Remove md5, memxor and hmac files.
68416
68417 2005-10-12  Simon Josefsson  <jas@extundo.com>
68418
68419         * m4/gc-pbkdf2-sha1.m4: New file.
68420
68421         * m4/gc-hmac-sha1.m4: New file.
68422
68423         * m4/gc-sha1: New file.
68424
68425         * m4/hmac-sha1.m4: New file.
68426
68427 2005-10-12  Simon Josefsson  <jas@extundo.com>
68428
68429         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68430
68431         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68432
68433 2005-10-12  Simon Josefsson  <jas@extundo.com>
68434
68435         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68436         suggested by Bruno Haible <bruno@clisp.org>.
68437
68438 2005-10-12  Simon Josefsson  <jas@extundo.com>
68439
68440         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68441
68442 2005-10-12  Simon Josefsson  <jas@extundo.com>
68443
68444         * lib/gc-pbkdf2-sha1.c: New file.
68445
68446         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68447
68448 2005-10-12  Simon Josefsson  <jas@extundo.com>
68449
68450         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68451
68452         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68453
68454 2005-10-12  Simon Josefsson  <jas@extundo.com>
68455
68456         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68457         GC_USE_HMAC_MD5, respectively.
68458
68459         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68460         (gc_md5): Fix typo.
68461
68462         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68463
68464         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68465
68466         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68467
68468 2005-10-12  Bruno Haible  <bruno@clisp.org>
68469
68470         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
68471         Reported by Stepan Kasal <kasal@ucw.cz>.
68472
68473 2005-10-11  Simon Josefsson  <jas@extundo.com>
68474
68475         * tests/test-crc.c: New file.
68476
68477         * modules/crc, modules/crc-tests: New files.
68478
68479 2005-10-11  Simon Josefsson  <jas@extundo.com>
68480
68481         * m4/crc.m4: New file.
68482
68483 2005-10-11  Simon Josefsson  <jas@extundo.com>
68484
68485         * lib/gc.h: Add gc_hash and gc_hash_buffer.
68486
68487         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
68488
68489         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
68490
68491 2005-10-11  Simon Josefsson  <jas@extundo.com>
68492
68493         * lib/crc.h, lib/crc.c: New files.
68494
68495         * lib/gc.h (gc_hash_buffer): Add doc.
68496
68497 2005-10-11  Bruno Haible  <bruno@clisp.org>
68498
68499         * modules/c-strcasestr: New file.
68500         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
68501
68502 2005-10-11  Bruno Haible  <bruno@clisp.org>
68503
68504         * modules/c-strcase: New file.
68505         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
68506
68507 2005-10-11  Bruno Haible  <bruno@clisp.org>
68508
68509         * lib/strcasecmp.c: Include limits.h.
68510         (strcasecmp): Avoid integer overflow on exotic platforms.
68511         * lib/strncasecmp.c: Include limits.h.
68512         (strncasecmp): Avoid integer overflow on exotic platforms.
68513         Reported by Paul Eggert.
68514
68515 2005-10-11  Bruno Haible  <bruno@clisp.org>
68516
68517         * lib/c-strcasestr.h: New file, from GNU gettext.
68518         * lib/c-strcasestr.c: New file, from GNU gettext.
68519
68520 2005-10-11  Bruno Haible  <bruno@clisp.org>
68521
68522         * lib/c-strcase.h: New file, from GNU gettext.
68523         * lib/c-strcasecmp.c: New file, from GNU gettext.
68524         * lib/c-strncasecmp.c: New file, from GNU gettext.
68525
68526 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68527
68528         * modules/mempcpy (License): GPL -> LGPL.
68529         * modules/strchrnul (License): Likewise.
68530         * modules/sysexits (License): Likewise.
68531
68532 2005-10-08  Simon Josefsson  <jas@extundo.com>
68533
68534         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
68535
68536 2005-10-07  Simon Josefsson  <jas@extundo.com>
68537
68538         * m4/memxor.m4: Remove gl_C_RESTRICT call.
68539
68540 2005-10-06  Simon Josefsson  <jas@extundo.com>
68541
68542         * tests/test-hmac-md5.c: New file.
68543
68544         * modules/hmac-md5-tests: New file.
68545
68546         * modules/hmac-md5: New file.
68547
68548 2005-10-06  Simon Josefsson  <jas@extundo.com>
68549
68550         * m4/hmac-md5.m4: New file.
68551
68552         * m4/memxor.m4: Require gl_C_RESTRICT.
68553
68554 2005-10-06  Simon Josefsson  <jas@extundo.com>
68555
68556         * lib/memxor.c (memxor): Avoid casts and warnings.
68557
68558 2005-10-06  Simon Josefsson  <jas@extundo.com>
68559
68560         * lib/hmac-md5.c: New file.
68561
68562         * lib/hmac.h: New file.
68563
68564 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68565
68566         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68567         promotes to int, not unsigned int, to catch the AIX 5.3
68568         compiler bug.
68569
68570 2005-10-05  Simon Josefsson  <jas@extundo.com>
68571
68572         * modules/memxor: New file.
68573
68574         * modules/iconv (Files): Move config.rpath to havelib, it is used
68575         there.
68576
68577         * modules/havelib (Files): Add config.rpath.
68578
68579 2005-10-05  Simon Josefsson  <jas@extundo.com>
68580
68581         * m4/memxor.m4: New file.
68582
68583 2005-10-05  Simon Josefsson  <jas@extundo.com>
68584
68585         * lib/memxor.c (memxor): Fix compiler error.
68586
68587         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68588         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68589
68590         * lib/memxor.h, lib/memxor.c: New files.
68591
68592         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68593         we assume all systems have it, suggested by Jim Meyering
68594         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68595         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68596         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68597         same reasons.
68598
68599 2005-10-05  Simon Josefsson  <jas@extundo.com>
68600
68601         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68602
68603 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68604
68605         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68606         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68607         needed, since the source code now assumes these .h files.
68608
68609 2005-10-05  Derek Price  <derek@ximbiot.com>
68610
68611         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68612
68613 2005-10-05  Bruno Haible  <bruno@clisp.org>
68614
68615         * modules/stdint (License): Change to LGPL.
68616
68617 2005-10-04  Simon Josefsson  <jas@extundo.com>
68618
68619         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68620         D. Baushke" <mdb@gnu.org>.
68621
68622 2005-10-04  Bruno Haible  <bruno@clisp.org>
68623
68624         * lib/verify.h (verify_true): Provide alternative definition for C++.
68625
68626 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68627
68628         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68629         (SSIZE_MAX): New macro, if not already defined.
68630         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68631         than 2 GiB.
68632
68633 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68634
68635         Sync from coreutils.
68636         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
68637         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
68638         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
68639         ULLONG_MAX doesn't work with 2.7.2.1.
68640
68641 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68642
68643         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
68644         From Ben Pfaff.
68645
68646         * modules/exclude (Depends-on): Depend on verify.
68647         * modules/strtoimax (Depends-on): Likewise.
68648         * modules/utimecmp (Depends-on): Likewise.
68649
68650 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68651
68652         * lib/exclude.c: Include verify.h.
68653         (verify): Remove.  All callers changed to use verify.h's version.
68654         * lib/strtoimax.c: Likewise.
68655         * lib/utimecmp.c: Likewis.e
68656
68657         Sync from coreutils.
68658         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
68659         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
68660         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
68661         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
68662         bother returning ENOSYS if settimeofday or stime fails; just let
68663         them return whatever errno they want to return.
68664         * lib/utimens.c: Include unistd.h, for dup2.
68665         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
68666         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
68667
68668 2005-10-02  Jim Meyering  <jim@meyering.net>
68669
68670         Sync from coreutils.
68671         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
68672         from glibc-2.2.5 that fails for read-only files.
68673
68674 2005-10-02  Jim Meyering  <jim@meyering.net>
68675
68676         Sync from coreutils.
68677         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
68678         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
68679         `#if HAVE_CONFIG_H'.
68680         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
68681         Remove AT_FDCWD test.
68682         Do not consume the fd unless successful.
68683         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
68684         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
68685         block, so that we don't even try to compile it if settimeofday is
68686         available.  This works around a compilation failure on OSF1 V5.1,
68687         due to stime requiring a `long int*' while tv_sec is `int'.
68688
68689 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
68690
68691         Sync from coreutils.
68692         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
68693         against `yes', rather than just testing for nonempty.
68694
68695 2005-10-01  Simon Josefsson  <jas@extundo.com>
68696
68697         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
68698         and Darwin.
68699
68700         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
68701         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
68702         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
68703         freeaddrinfo and gai_strerror are declared by the POSIX headers.
68704         Check if struct addrinfo is declared.
68705
68706 2005-10-01  Simon Josefsson  <jas@extundo.com>
68707
68708         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
68709         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
68710         AI_* and EAI_* definitions.  Protect function declarations.
68711
68712 2005-10-01  Jim Meyering  <jim@meyering.net>
68713
68714         Sync from coreutils.
68715
68716         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
68717         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
68718         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
68719         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68720         in the inet and nsl libraries.  Required on Solaris 5.7.
68721
68722 2005-10-01  Jim Meyering  <jim@meyering.net>
68723
68724         Sync from coreutils.
68725         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68726         in the inet and nsl libraries.  Required on Solaris 5.7.
68727
68728 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
68729
68730         * lib/getdelim.c (getdelim): Remove unused variables.
68731
68732 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68733
68734         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
68735         so that the code works even with ancient cpp.  Portability problem
68736         with GCC 2.7.2.1 reported by Thomas M.Ott.
68737
68738 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68739
68740         * modules/regex (Depends-on): Add strcase.
68741
68742         * modules/gethostname (Licence): Change from GPL to LGPL, since
68743         gethostname.c is a trivial implementation of a standard library
68744         function.
68745         * modules/poll (License): Change from GPL to LGPL, since it's
68746         derived from LGPL code.
68747
68748 2005-09-27  Jim Meyering  <jim@meyering.net>
68749
68750         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
68751         HAVE_CONFIG_H.
68752
68753         * lib/intprops.h (signed_type_or_expr__): Define.
68754         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
68755         for unsigned types.
68756
68757 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68758
68759         * lib/verify.h (verify_expr): Remove, replacing with:
68760         (verify_true): New macro that returns true instead of void.
68761         (verify_type__): Remove.
68762         (verify): Use verify_true rather than verify_type__.
68763
68764 2005-09-26  Bruno Haible  <bruno@clisp.org>
68765
68766         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
68767         is necessary.
68768         (lib_SOURCES): Remove mbchar.c.
68769         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
68770         (Files): Add m4/mbrtowc.m4.
68771         * modules/mbiter: Likewise.
68772         * modules/mbuiter: Likewise.
68773
68774 2005-09-26  Bruno Haible  <bruno@clisp.org>
68775
68776         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
68777         compile mbchar.c if they are not both present.
68778         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
68779         * m4/mbiter.m4 (gl_MBITER): Likewise.
68780         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
68781         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
68782         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
68783
68784 2005-09-25  Jim Meyering  <jim@meyering.net>
68785
68786         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
68787         also uses socklen_t.
68788
68789 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
68790
68791         * lib/utimens.c (ENOSYS): Define if not already defined.
68792         (futimens): Support having a null PATH if the file descriptor
68793         is nonnegative.
68794
68795         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
68796         Remove.
68797         (__attribute): Define to empty unless GCC 3.1 or later.
68798         This works around a core dump on OpenBSD 3.4, which has GCC
68799         2.95.3, which dumps core when given __attribute__(()).  It also
68800         simplifies other tests, since we really don't want to bother with
68801         worrying about which ancient version of GCC supported what.
68802         Original problem reported by Yoann Vandoorselaere, with part of
68803         the fix suggested by Derek Price.
68804
68805 2005-09-24  Jim Meyering  <jim@meyering.net>
68806
68807         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
68808         so we can once again use a positive bitfield width of 1 -- now we
68809         don't have to explain why we were using a bitfield width of 2.
68810
68811 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68812
68813         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
68814         and similarly for the other external symbols.  Problem reported
68815         by James Gallager.
68816
68817         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
68818         bug reported by Jim Meyering.
68819
68820         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
68821         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
68822         not needed, since socklen is a prerequisite module.
68823
68824 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68825
68826         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
68827         Problem reported by Eric Blake.
68828         (getaddrinfo): Initialize se so that it's not garbage.
68829         Redo internal storage allocation so that it doesn't make unportable
68830         assumptions about alignment.
68831         Fix a memory leak.
68832
68833         * lib/utimens.c (futimens): Use futimesat if available.
68834         Prefer it to futimes since it doesn't have the futimes bug.
68835
68836         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
68837         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
68838         Instead, declare a function that returns a pointer to an array,
68839         and use verify_type__ to declare the size of the array.
68840         Problem and germ of a solution reported by Bruno Haible.
68841         (verify_type__): Use 2, not 1, for bitfield size, to avoid
68842         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
68843
68844 2005-09-23  Jim Meyering  <jim@meyering.net>
68845
68846         Sync from coreutils.
68847         Correct build failure (socklen_t not defined) on at least
68848         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
68849         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
68850
68851 2005-09-23  Jim Meyering  <jim@meyering.net>
68852
68853         * modules/getaddrinfo (Depends-on): Add socklen.
68854
68855 2005-09-23  Bruno Haible  <bruno@clisp.org>
68856
68857         * tests/test-verify.c: New file.
68858
68859 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68860
68861         Sync from coreutils.
68862
68863         * modules/argmatch (Depends-on): Add verify.
68864         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
68865         unistd-safer.
68866         * modules/save-cwd (Depends-on): Likewise.
68867
68868         * modules/openat (Files): Add lib/openat-die.c.
68869         (Depends-on): Remove error, exitfail.
68870         Add dirname.
68871
68872         * modules/verify: New file.
68873         * MODULES.html.sh (Diagnostics <assert.h>): New section,
68874         with "verify" module.
68875
68876 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68877
68878         Sync from coreutils.
68879
68880         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
68881         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
68882         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
68883         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
68884         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
68885         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
68886         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
68887         Don't bother checking for string.h, stdlib.h, unistd.h.
68888         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
68889         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
68890         module's job.
68891         * m4/jm-macros.m4 (gl_MACROS): Likewise.
68892         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
68893
68894         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
68895         (gl_GETDATE): Use it.
68896
68897         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
68898
68899 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68900
68901         Sync from coreutils.
68902
68903         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
68904         stat-time.h.
68905         * lib/argmatch.h: Include verify.h
68906         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
68907         (ARGMATCH_ASSERT): Remove; unused.
68908         * lib/canonicalize.c: Assume STDC_HEADERS.
68909         * lib/exclude.c: Include "strcase.h".
68910         * lib/regex_internal.h [!defined _LIBC]: Likewise.
68911         * lib/getusershell.c: Include stdio--.h rather than stdio.h
68912         and stdio-safer.h.
68913         (getusershell): Call fopen, not fopen_safer.
68914         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
68915         Do not include unistd-safer.h.
68916         (save_cwd): Don't call fd_safer; no longer needed
68917         now that we include fcntl--.h.
68918
68919         * lib/getdate.y (relative_time): New type.
68920         (RELATIVE_TIME_0): New constant.
68921         (parser_control): Use relative_time instead of doing it ourselves.
68922         (%union): Add new relative_time rel member.
68923         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
68924         Now typeless.
68925         (relunit, relunit_snumber): Now of type rel.
68926         (zone, rel, relunit, get_date): Adjust to above changes.
68927
68928         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
68929         Do not include unistd-safer.h.
68930         (getloadavg): Don't call fd_safer; no longer needed
68931         now that we include fcntl--.h.
68932
68933         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
68934         (make_dir_parents): Treat ENOSYS like EEXIST.
68935
68936         Improve quality of diagnostics on restore_cwd failure.
68937         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
68938         (make_dir_parents): Last arg is now int * (for errno), not bool *.
68939         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
68940         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
68941         each time through the loop.  Do not diagnose restore_cwd failure;
68942         that is the caller's job (and perhaps the caller does not care).
68943
68944         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
68945         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
68946         If the file already exists but is not a directory, don't bother
68947         to try to make its parents.
68948         Close potential file descriptor leak if we can't chdir("/") (!).
68949         Don't always return true if chdir($PWD) fails; return true only
68950         if the requested action was done successfully (except for the
68951         chdir($PWD)).
68952         Don't log final directory unless we actually made it.
68953         Refactor to avoid duplicate code to fix up permissions.
68954         Don't attempt to fix up parent permissions if chdir($PWD) fails.
68955
68956         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
68957         to make it a bit faster and (I hope) clearer.
68958         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
68959         Fix bug in formats like %2N.
68960
68961         * lib/verify.h: New file.
68962
68963 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68964
68965         Sync from coreutils.
68966         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
68967
68968 2005-09-22  Jim Meyering  <jim@meyering.net>
68969
68970         Sync from coreutils.
68971
68972         * m4/lstat.m4 (gl_FUNC_LSTAT):
68973         Use AC_LIBSOURCES to require lstat.c and lstat.h.
68974         Remove obsolete comment.
68975         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
68976         * m4/xstrtod.m4: Likewise.
68977
68978         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
68979
68980 2005-09-22  Jim Meyering  <jim@meyering.net>
68981
68982         Sync from coreutils.
68983
68984         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
68985
68986         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
68987         the .tm_year member, since otherwise gcc-4.0 would now warn about
68988         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
68989
68990         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
68991         order to avoid an unsuppressible warning from gcc on 64-bit systems.
68992
68993         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
68994         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
68995         when run in a time zone for which daylight savings time is in effect
68996         for the starting date.
68997
68998         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
68999         stop us from restricting permissions of just-created absolute-named
69000         directories.
69001         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
69002         to restore initial working directory.
69003         * lib/mkdir-p.c (make_dir_parents): New parameter:
69004         different_working_dir, to tell caller if/when we change the working
69005         directory and are unable to return to the initial one.
69006         * lib/mkdir-p.h (make_dir_parents): Update prototype.
69007         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
69008         `return false'.  This fixes a bug introduced on 2004-07-30.
69009
69010         * lib/openat.c (fdopendir): Be sure to close the supplied
69011         file descriptor before returning.  This makes our replacement
69012         implementation a little closer to Solaris's, where fdopendir
69013         ties the file descriptor to the returned DIR* pointer.
69014         * lib/openat.c (unlinkat): New function.
69015         * lib/openat.h (unlinkat): Add prototype.
69016         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
69017         (openat_restore_fail): Rename from openat_restore_die.
69018         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
69019
69020         Provide an alternative to exiting immediately upon save_cwd or
69021         restore_cwd failure.  Now, an application can arrange e.g.,
69022         to perform a longjump in that case.
69023         * lib/openat.c: Include dirname.h.
69024         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
69025         (rpl_openat, fdopendir, fstatat): Call openat_save_die
69026         and openat_restore_die rather than calling error directly.
69027         Don't include "error.h" or "exitfail.h"; they're no longer needed.
69028
69029         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
69030         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
69031         define.
69032
69033         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
69034         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
69035                             int utc, int nanoseconds);
69036         Background:
69037         date should not have to allocate a megabyte of virtual memory to
69038         handle a format argument like +%1048575T.  When implemented with
69039         strftime, it must allocate such a buffer, use strftime to fill it
69040         in, print it, then free it.
69041         With fprintftime, it simply prints everything and exits.
69042         With no need for memory allocation, that's one fewer way to fail.
69043         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
69044         optional field width, not before, so we accept %9:z, not %:9z.
69045         (my_strftime): Be sure to use L_('x') for literals.
69046
69047         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
69048         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
69049         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
69050         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
69051         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
69052         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
69053         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
69054         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
69055         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
69056         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
69057         * lib/xgethostname.c, lib/xreadlink.c:
69058         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
69059
69060         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
69061         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
69062         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
69063         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69064         and don't include <sys/file.h>).
69065
69066 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
69067
69068         Sync from coreutils.
69069
69070         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
69071         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
69072         [!LDAV_DONE]: Avoid unused variable warning.
69073
69074 2005-09-21  Bruno Haible  <bruno@clisp.org>
69075
69076         * lib/unicodeio.h (unicode_to_mb): New declaration.
69077
69078 2005-09-20  Derek Price  <derek@ximbiot.com>
69079
69080         * lib/getaddrinfo.c: Don't include <netdb.h> included from
69081         getaddrinfo.h.
69082
69083 2005-09-20  Bruno Haible  <bruno@clisp.org>
69084
69085         * gnulib-tool: Remove trailing slashes from the values specified for
69086         --source-base, --m4-base, --tests-base, --aux-dir.
69087         Suggested by Simon Josefsson <jas@extundo.com>.
69088
69089 2005-09-20  Bruno Haible  <bruno@clisp.org>
69090
69091         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
69092         func_modules_to_filelist, func_import, func_create_testdir): Make all
69093         sorting results locale-independent, so that gnulib-cache.m4 doesn't
69094         change when gnulib-tool is invoked in a different locale.
69095
69096 2005-09-19  Simon Josefsson  <jas@extundo.com>
69097
69098         * m4/socklen.m4: Fix typo.
69099
69100 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69101
69102         Use a consistent style for including <config.h>.
69103         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
69104         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
69105         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
69106         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
69107         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
69108         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
69109         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
69110         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
69111         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
69112         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
69113         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
69114         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
69115         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
69116         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
69117         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
69118         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
69119         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
69120         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
69121         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
69122         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
69123         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
69124         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
69125         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
69126         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
69127         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
69128         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
69129         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
69130         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
69131         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
69132         lib/xstrtoumax.c, lib/yesno.c:
69133         Standardize inclusion of config.h.
69134         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
69135         lib/inttostr.h:  Removed inclusion of config.h from header files.
69136         * lib/inttostr.c:  Adjusted in-tree users.
69137         * lib/timespec.h: Remove superfluous warning to include config.h.
69138         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
69139         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
69140         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
69141         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
69142         config.h with HAVE_CONFIG_H.
69143
69144 2005-09-19  Jim Meyering  <jim@meyering.net>
69145
69146         * modules/pathmax (License): Change to LGPL.
69147
69148 2005-09-19  Derek Price  <derek@ximbiot.com>
69149
69150         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
69151
69152 2005-09-19  Bruno Haible  <bruno@clisp.org>
69153
69154         * gnulib-tool (import): Provide default for --tests-base.
69155
69156 2005-09-19  Bruno Haible  <bruno@clisp.org>
69157
69158         * doc/quote.texi: New file, extracted from gnulib.texi.
69159         * doc/ctime.texi: New file, extracted from gnulib.texi.
69160         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
69161         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
69162         * doc/gnulib.texi: Include them.
69163
69164 2005-09-18  Bruno Haible  <bruno@clisp.org>
69165
69166         Portability fix.
69167         * gnulib-tool (func_readlink): New function.
69168         (func_ln_if_changed): Use it.
69169
69170 2005-09-18  Bruno Haible  <bruno@clisp.org>
69171
69172         * gnulib-tool: Support --with-tests also with --import.
69173         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
69174         (func_import): Use variables $testsbase and $inctests. Emit a
69175         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
69176         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
69177         SUBDIRS += $testsdir.
69178         (func_create_testdir): Update.
69179
69180 2005-09-18  Bruno Haible  <bruno@clisp.org>
69181
69182         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
69183         instead of $dry_run.
69184         (func_cp_if_changed, func_mv_if_changed): Remove functions.
69185         (func_ln_if_changed): Don't handle dry-run here.
69186         (func_import): In dry-run mode, detect more precisely which actions
69187         would be performed, and don't use "...ing" verbs.
69188
69189 2005-09-18  Bruno Haible  <bruno@clisp.org>
69190
69191         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
69192         (func_import): Use join on two temporary files instead of three nested
69193         loops, in order to determine which files are new or old.
69194
69195 2005-09-18  Bruno Haible  <bruno@clisp.org>
69196
69197         * gnulib-tool (func_import): Comment out code that spits out the
69198         new files with --dry-run.
69199
69200 2005-09-18  Bruno Haible  <bruno@clisp.org>
69201
69202         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
69203
69204 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69205
69206         * lib/stat-time.h: New file.
69207         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
69208         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
69209         in a different way.
69210         (timespec_cmp): New function.
69211         * lib/utimecmp.c: Include stat-time.h.
69212         (SYSCALL_RESOLUTION): Depend on whether various struct stat
69213         members exist, not on the obsolescent ST_MTIM_NSEC.
69214         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
69215
69216 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69217
69218         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
69219
69220 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69221
69222         * MODULES.html.sh (File system functions): Add stat-time.
69223         * modules/stat-time: New file.
69224         * modules/timespec (Files): Remove m4/st_mtim.m4; this
69225         is now done in a different way, by the stat-time module.
69226         * modules/utimecmp (Depends-on): Add stat-time.
69227
69228 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69229
69230         * m4/st_mtim.m4: Remove.  Superseded by...
69231         * m4/stat-time.m4: New file.
69232         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
69233         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
69234
69235 2005-09-15  Derek Price  <derek@ximbiot.com>
69236
69237         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
69238
69239 2005-09-15  Derek Price  <derek@ximbiot.com>
69240
69241         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
69242         * lib/regex_internal.c: Ditto, using this...
69243         (__GNUC_PREREQ): ...new macro.
69244         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
69245         using...
69246         (__GNUC_PREREQ): ...this new macro.
69247
69248         * lib/strstr.h: Include string.h. Define strstr as a macro here.
69249
69250 2005-09-15  Derek Price  <derek@ximbiot.com>
69251             Paul Eggert  <eggert@cs.ucla.edu>
69252
69253         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69254         changes, consolidating in...
69255         * lib/regex_internal.h: ...this file.
69256
69257 2005-09-13  Jim Meyering  <jim@meyering.net>
69258
69259         * lib/canon-host.c: Filter through gnu indent and reword comments
69260         slightly.
69261         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69262
69263 2005-09-13  Derek Price  <derek@ximbiot.com>
69264
69265         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69266         failure.
69267         Reported by Jim Meyering  <jim@meyering.net>.
69268
69269 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69270
69271         * lib/base64.c: Typo.
69272         (base64_encode): Put b64str in initialized data section.
69273
69274 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69275
69276         Merge glibc and coreutils changes into gnulib, plus a few
69277         extra fixes.
69278         * lib/md5.c: Use #error rather than a string.
69279         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69280         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69281         (__attribute__): Define to empty for non recent-GCC.
69282         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69283         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69284         Renamed from their non-__ counterparts, with new macros replacing
69285         them if not _LIBC.  Add __THROW attribute.
69286         (rol): Remove.
69287         (struct md5_ctx): Align buffer if using GCC.
69288         * lib/sha1.h (struct sha1_ctx): Likewise.
69289         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69290         The old name was backwards.
69291         (NOTSWAP): Remove; not used.
69292         (rol): New macro, moved here from md5.h.
69293         (sha1_process_block): Remove a FIXME that doesn't make sense.
69294
69295 2005-09-12  Derek Price  <derek@ximbiot.com>
69296
69297         Return usable errors from canon-host.
69298         * lib/canon-host.h: New file.
69299         * lib/canon-host.c (canon_host): Wrap...
69300         (canon_host_r): ...this new function, which now relies exclusively on
69301         getaddrinfo.
69302         (ch_strerror): New function.
69303         (last_cherror): New global.
69304         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69305         interface.
69306         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69307         void *.
69308         (freeaddrinfo): Free ai->ai_canonname when set.
69309
69310 2005-09-12  Derek Price  <derek@ximbiot.com>
69311
69312         Make canon-host require getaddrinfo.
69313         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69314         AC_LIBSOURCE canon-host.h.  Call...
69315         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69316         gl_GETADDRINFO.
69317         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69318
69319 2005-09-12  Derek Price  <derek@ximbiot.com>
69320
69321         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69322         LGPL.
69323         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69324
69325 2005-09-12  Derek Price  <derek@ximbiot.com>
69326
69327         * lib/gai_strerror.c: Include config.h when available.  Include
69328         getaddrinfo.h before other headers to test interface.
69329         Reported by Larry Jones <lawrence.jones@ugs.com>.
69330
69331 2005-09-12  Derek Price  <derek@ximbiot.com>
69332             Paul Eggert  <eggert@cs.ucla.edu>
69333
69334         * modules/glob (Files): Add glob-libc.h.
69335
69336 2005-09-12  Derek Price  <derek@ximbiot.com>
69337             Paul Eggert  <eggert@cs.ucla.edu>
69338
69339         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69340         glob_.h, glob-libc.h.
69341         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69342
69343 2005-09-12  Derek Price  <derek@ximbiot.com>
69344             Paul Eggert  <eggert@cs.ucla.edu>
69345
69346         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69347         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69348         protecting things that should be done only in gnulib contexts.
69349         * lib/glob_.h: New file, containing only the glob things needed for
69350         gnulib.
69351         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69352         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69353         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69354         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69355         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69356         and to respect the namespace rules better.
69357
69358 2005-09-08  Simon Josefsson  <jas@extundo.com>
69359
69360         * modules/socklen: New file.
69361
69362 2005-09-08  Simon Josefsson  <jas@extundo.com>
69363
69364         * m4/socklen.m4: New file.
69365
69366 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69367
69368         * modules/utimens (Files): Add m4/utimbuf.m4, since
69369         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69370         Reported by Sergey Poznyakoff.
69371
69372 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69373
69374         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69375         definitions, since that's the preferred style in glibc.
69376         Fix a minor spacing issue, and update copyright notice to match
69377         glibc's.
69378
69379 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69380
69381         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69382
69383 2005-09-06  Simon Josefsson  <jas@extundo.com>
69384
69385         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69386         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69387
69388 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69389
69390         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69391         warning.
69392
69393 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69394
69395         * config/srclist.txt: Add glibc bug 1302.
69396
69397 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69398
69399         Change bitset word type from unsigned int to unsigned long int,
69400         as this has better performance on typical 64-bit hosts.
69401         Port bitset code to hosts with unusual word sizes.
69402         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69403         (build_collating_symbol):
69404         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69405         argument is a bitset.  This is merely a style issue, but it makes
69406         it clearer that an entire array is expected.
69407         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69408         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69409         Port to the case where bitset_word is not the same as unsigned int.
69410         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69411         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69412         Likewise.
69413         * lib/regexec.c (check_dst_limits_calc_pos_1,
69414         check_subexp_matching_top):
69415         (build_trtable, group_nodes_into_DFAstates):
69416         Likewise.
69417         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69418         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69419         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69420         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69421         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69422         * lib/regcomp.c (optimize_subexps, lower_subexp):
69423         Work even if bitset_word has holes in its bitwise representation.
69424         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69425         * lib/regexec.c (check_dst_limits_calc_pos_1,
69426         check_subexp_matching_top):
69427         Likewise.
69428         * lib/regex_internal.c (re_string_reconstruct):
69429         Don't assume UCHAR_MAX == 255.
69430         * lib/regex_internal.h (bitset_set_all): Likewise.
69431         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69432         All uses changed.
69433         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69434         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69435         All uses changed.
69436         (BITSET_WORD_MAX): New macro.
69437         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69438         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69439         (bitset_empty, bitset_copy):
69440         Prefer sizeof (bitset) to multiplying it out ourselves.
69441         (bitset_not_merge): Remove; unused.
69442         (bitset_contain): Return bool, not unsigned int with one bit on.
69443         All callers changed.
69444         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69445         alignment than re_node_set; do this by defining a new internal
69446         type struct dests_alloc and using it to allocate memory.
69447
69448 2005-09-05  Bruno Haible  <bruno@clisp.org>
69449
69450         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69451         links.
69452
69453 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69454
69455         * modules/size_max (Makefile.am): Add size_max.h
69456
69457 2005-09-04  Derek Price  <derek@ximbiot.com>
69458
69459         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69460
69461 2005-09-03  Simon Josefsson  <jas@extundo.com>
69462
69463         * gnulib-tool: Fix typo.
69464
69465 2005-09-03  Simon Josefsson  <jas@extundo.com>
69466
69467         * config/srclist.txt: Add glibc bug 1293.
69468
69469 2005-09-03  Derek Price  <derek@ximbiot.com>
69470
69471         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
69472         From Larry Jones <lawrence.jones@ugs.com>.
69473
69474 2005-09-02  Simon Josefsson  <jas@extundo.com>
69475
69476         * modules/socklen: New file.
69477
69478 2005-09-02  Simon Josefsson  <jas@extundo.com>
69479
69480         * modules/havelib: New module.
69481
69482         * modules/gettext, modules/iconv, modules/lock, modules/readline:
69483         Use havelib.
69484
69485 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69486
69487         Check for arithmetic overflow when calculating sizes, to prevent
69488         some buffer-overflow issues.  These patches are conservative, in the
69489         sense that when I couldn't determine whether an overflow was possible,
69490         I inserted a run-time check.
69491         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
69492         macros.
69493         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
69494         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
69495         (re_xnrealloc, re_x2nrealloc): New inline functions.
69496         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
69497         parse_bracket_exp):
69498         (build_equiv_class, build_charclass): Check for arithmetic overflow
69499         in size expression calculations.
69500         * lib/regex_internal.c (re_string_realloc_buffers):
69501         (build_wcs_upper_buffer, re_node_set_add_intersect):
69502         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
69503         (re_dfa_add_node, register_state): Likewise.
69504         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
69505         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
69506         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
69507         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
69508
69509 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69510
69511         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69512         m4/ulonglong.m4.  Problem reported by Martin Lambers.
69513
69514 2005-09-02  Bruno Haible  <bruno@clisp.org>
69515
69516         Support for lib vs. lib64 distinction on biarch platforms.
69517         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
69518         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
69519         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
69520
69521 2005-09-02  Bruno Haible  <bruno@clisp.org>
69522
69523         * gnulib-tool (import): In the other first-use case, provide defaults
69524         as well.
69525
69526 2005-09-02  Bruno Haible  <bruno@clisp.org>
69527
69528         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
69529         patches not yet found in the latest gettext release.
69530
69531 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69532
69533         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
69534         to avoid a collision with bits/local_lim.h in glibc.
69535         All uses changed.  Problem reported by Dmitry V. Levin in
69536         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
69537
69538         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
69539         bugs in int versus size_t comparisons.
69540         (re_string_context_at): Fix bug where the code assumed that
69541         Idx is signed.
69542
69543         Use bool where appropriate.
69544         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
69545         All callers changed.
69546         (calc_eclosure_iter): Likewise, for ROOT arg.
69547         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
69548         (build_charclass_op): Likewise, for NON_MATCH arg.
69549         * lib/regex_internal.c (re_string_allocate, re_string_construct):
69550         (re_string_construct_common): Likewise, for ICASE arg.
69551         * lib/regexec.c (re_search_2_stub, re_search_stub):
69552         Likewise, for RET_LEN arg.
69553         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
69554         (set_regs): Likewise, for FL_BACKTRACK arg.
69555         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
69556         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
69557         (calc_eclosure_iter, parse_bracket_exp):
69558         Use bool for internal variables that are booleans.
69559         * lib/regexec.c (re_search_internal, check_matching,
69560         proceed_next_node):
69561         (set_regs, build_sifted_states, sift_states_bkref):
69562         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69563         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69564         (find_collation_sequence_value):
69565         Likewise.
69566         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69567         (re_node_set_compare):
69568         Return bool, not int. All callers changed.
69569         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69570         (build_trtable, check_node_accept): Likewise.
69571         * lib/regex_internal.h: Include stdbool.h.
69572
69573         Fix bugs uncovered when converting to bool.
69574         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69575         failure instead of charging ahead blindly.
69576         * lib/regex_internal.c (register_state): Likewise.
69577         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69578         for freeing internal storage.
69579         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69580         bitset pieces used as boolean, to avoid undefined behavior
69581         on hosts that do int overflow checking.
69582
69583 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69584
69585         * config/srclist.txt: Add glibc bugs 1285-1287.
69586
69587 2005-09-01  Jim Meyering  <jim@meyering.net>
69588
69589         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69590         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69591         Require gl_STAT_MACROS, too.
69592
69593 2005-09-01  Bruno Haible  <bruno@clisp.org>
69594
69595         * gnulib-tool (import): In the first-use case, provide defaults.
69596
69597 2005-09-01  Bruno Haible  <bruno@clisp.org>
69598
69599         * gnulib-tool (func_import): Remove the .tmp files.
69600
69601 2005-09-01  Bruno Haible  <bruno@clisp.org>
69602
69603         * gnulib-tool (func_import): Fix handling of symbolic links.
69604
69605 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69606
69607         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69608         old glibc regex code mishandles strings longer than 2**31 bytes.
69609         This patch fixes this when the regex code is used in gnulib
69610         (i.e., outside glibc).
69611
69612         This patch should not affect the use of the regex code inside
69613         glibc.  No doubt this problem also needs to be handled for glibc
69614         as well, but the result will be an incompatible change to the
69615         glibc ABI, and the old ABI will have to be supported too.  That
69616         can be the the subject for another patch.
69617
69618         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69619         governing whether the rest of this patch is active.  By default,
69620         the macro is disabled and the patch has no effect.
69621         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69622         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69623         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69624         (re_match_2, re_set_registers): Use the new types.
69625         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69626         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69627         New macros.
69628         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69629         (re_string_context_at, bin_tree_t, re_dfastate_t):
69630         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69631         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69632         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69633         (re_string_char_size_at, re_string_wchar_at):
69634         (re_string_elem_size_at):
69635         Use the new types and macros to port to 64-bit hosts.
69636         Use unsigned types for internal values, so that the code
69637         mostly works even for arrays larger than SSIZE_MAX.
69638         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
69639         (search_duplicated_node, calc_eclosure_iter, fetch_number):
69640         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
69641         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
69642         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
69643         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
69644         (calc_inveclosure, parse_dup_op, build_range_exp):
69645         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
69646         (fetch_number, create_token_tree, mark_opt_subexp):
69647         Likewise.
69648         * lib/regex_internal.c (re_string_construct_common,
69649         create_ci_newstate):
69650         (create_cd_newstate, re_string_allocate, re_string_construct):
69651         (re_string_realloc_buffers, build_wcs_upper_buffer):
69652         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69653         (re_string_reconstruct, re_string_peek_byte_case):
69654         (re_string_fetch_byte_case, re_string_context_at):
69655         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69656         (re_node_set_init_copy, re_node_set_add_intersect):
69657         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69658         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69659         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69660         (re_acquire_state, re_acquire_state_context, register_state):
69661         Likewise.
69662         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
69663         search_cur_bkref_entry):
69664         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
69665         (re_search_internal, re_search_2_stub, re_search_stub)
69666         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
69667         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
69668         (update_cur_sifted_state, check_dst_limits):
69669         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69670         (check_subexp_limits, sift_states_bkref, merge_state_array):
69671         (check_subexp_matching_top, get_subexp, get_subexp_sub):
69672         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
69673         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69674         (expand_bkref_cache, check_node_accept_bytes):
69675         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
69676         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
69677         (acquire_init_state_context, check_halt_node_context):
69678         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
69679         (sift_states_backward, clean_state_log_if_needed):
69680         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
69681         (find_recover_state, transit_state_sb, transit_state_mb):
69682         (transit_state_bkref, build_trtable, match_ctx_clean):
69683         Likewise.
69684         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
69685         to work around an assumption that REG_MISSING is negative.
69686
69687         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
69688         (seek_collating_symbol_entry) [defined _LIBC]:
69689         (lookup_collation_sequence_value) [defined _LIBC]:
69690         (build_range_exp, build_collating_symbol) [defined _LIBC]:
69691         Use prototypes rather than old-style function definitions.
69692         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
69693         (transit_state_sb) [0]:
69694         (find_collation_sequence_value) [defined _LIBC]: Likewise.
69695
69696         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
69697         rm_eo.
69698
69699         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
69700         (optimize_subexps, lower_subexp):
69701         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
69702         since the signed shift might overflow.  Use 1u<<31 instead.
69703         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69704         Likewise.
69705         * lib/regexec.c (check_dst_limits_calc_pos_1,
69706         check_subexp_matching_top): Likewise.
69707
69708         * lib/regcomp.c (optimize_subexps, lower_subexp):
69709         Use CHAR_BIT rather than 8, for clarity.
69710         * lib/regexec.c (check_dst_limits_calc_pos_1):
69711         (check_subexp_matching_top): Likewise.
69712         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
69713         have to worry about portability issues when shifting it left.
69714         Remove no-longer-needed test for table_size > 0.
69715         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
69716         in a word, as the resulting behavior is undefined.
69717         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
69718         in one case, a <= should have been an <, and in another case the
69719         whole test was missing.
69720         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
69721         the standard name CHAR_BIT.
69722         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
69723         this is not true on one's complement and signed-magnitude hosts.
69724
69725         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
69726         next_last_offset.
69727         (struct re_dfa_t): Remove unused member states_alloc.
69728         * lib/regcomp.c (init_dfa): Don't initialize unused members.
69729
69730 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69731
69732         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
69733         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
69734         and large-file glibc and in 32-bit large-file Solaris.
69735
69736 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69737
69738         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
69739         lengths fit in regoff_t; this isn't true if regoff_t is the same
69740         width as size_t.
69741         * lib/regex.c (re_search_internal): 5th arg is LAST_START
69742         (= START + RANGE) instead of RANGE.  This avoids overflow
69743         problems when regoff_t is the same width as size_t.
69744         All callers changed.
69745         (re_search_2_stub): Check for overflow when adding the
69746         sizes of the two strings.
69747         (re_search_stub): Check for overflow when adding START
69748         to RANGE; if it occurs, substitute the extreme value.
69749
69750 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69751
69752         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
69753
69754 2005-08-31  Jim Meyering  <jim@meyering.net>
69755
69756         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
69757         a pointer-to-const.
69758         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
69759         (register_state): Likewise.
69760         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
69761         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69762         (group_nodes_into_DFAstates): Likewise.
69763
69764 2005-08-31  Jim Meyering  <jim@meyering.net>
69765
69766         * check-module: Add a FIXME comment.
69767
69768 2005-08-31  Eric Blake  <ebb9@byu.net>
69769
69770         * modules/unistd-safer (Files): Add unistd--.h.
69771         * modules/stdio-safer (Files): Add stdio--.h.
69772
69773 2005-08-31  Derek Price  <derek@ximbiot.com>
69774
69775         * lib/getdelim.c (getdelim): Return EOF on EOF.
69776         Reported by Larry Jones <lawrence.jones@ugs.com>.
69777
69778 2005-08-31  Bruno Haible  <bruno@clisp.org>
69779
69780         Avoid unnecessary diffs in the generated lib/Makefile.am.
69781         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
69782         the generated files.
69783         (func_import): Don't set cmd.
69784
69785 2005-08-31  Bruno Haible  <bruno@clisp.org>
69786
69787         * lib/strstr.c: Include <stddef.h>, for NULL.
69788         * lib/strcasestr.c: Likewise.
69789         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69790
69791 2005-08-31  Bruno Haible  <bruno@clisp.org>
69792
69793         * gnulib-tool: New option --macro-prefix.
69794         (func_import): Use macro_prefix.
69795         (import): Handle option --macro-prefix.
69796
69797 2005-08-31  Bruno Haible  <bruno@clisp.org>
69798
69799         * gnulib-tool (import): Rename most ac_* variables to cached_*.
69800         Also use new variables cached_lgpl, cached_libtool.
69801
69802 2005-08-31  Bruno Haible  <bruno@clisp.org>
69803
69804         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
69805         always instantiating them.
69806
69807 2005-08-31  Bruno Haible  <bruno@clisp.org>
69808
69809         * gnulib-tool (func_import): Read the previous cached settings
69810         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
69811         earlier added by gnulib but are now dropped. Warn when a gnulib file
69812         overwrites a non-gnulib file.
69813
69814 2005-08-31  Bruno Haible  <bruno@clisp.org>
69815
69816         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
69817         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
69818         projects that don't keep autogenerated files in CVS. Put into
69819         actioncmd only the specified modules, not the transitive closure.
69820
69821 2005-08-31  Bruno Haible  <bruno@clisp.org>
69822
69823         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
69824         Create directories that shall be filled.
69825         (import): Don't look for gl_* macros in configure.ac. Recurse across
69826         all directories containing a gnulib-cache.m4 files, if meaningful.
69827
69828 2005-08-31  Bruno Haible  <bruno@clisp.org>
69829
69830         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
69831         (import): Set seen_libtool when we see gl_LIBTOOL.
69832
69833 2005-08-31  Bruno Haible  <bruno@clisp.org>
69834
69835         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
69836         declaration macro definitions from generated gnulib.m4.
69837
69838 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
69839
69840         * lib/iconvme.h: Add prototype for iconv_alloc.
69841
69842 2005-08-29  Simon Josefsson  <jas@extundo.com>
69843
69844         * lib/iconvme.c: Fix errno.
69845
69846 2005-08-29  Bruno Haible  <bruno@clisp.org>
69847
69848         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
69849         that it works when the directory contains spaces.
69850
69851 2005-08-29  Bruno Haible  <bruno@clisp.org>
69852
69853         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
69854
69855 2005-08-29  Bruno Haible  <bruno@clisp.org>
69856
69857         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
69858         Emit more advice.
69859
69860 2005-08-29  Bruno Haible  <bruno@clisp.org>
69861         and Stepan Kasal  <kasal@ucw.cz>
69862
69863         * check-module: If more parameters are given, check each of them
69864         separately; add more exceptions, as noted by Jim Meyering.
69865         (check_module): New procedure.
69866         (%exempt_header): Now contains all exceptions.
69867
69868 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
69869
69870         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
69871
69872 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69873
69874         * lib/iconvme.c: Split iconv_string into iconv_alloc.
69875
69876 2005-08-28  Bruno Haible  <bruno@clisp.org>
69877
69878         * m4/gnulib-tool.m4: New file.
69879
69880 2005-08-27  Jim Meyering  <jim@meyering.net>
69881
69882         * modules/unistd-safer (Files): Add pipe-safer.c.
69883         * modules/fcntl-safer (Files): Add creat-safer.c.
69884
69885 2005-08-27  Jim Meyering  <jim@meyering.net>
69886
69887         * m4/stdlib-safer.m4: New file.  From coreutils.
69888         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
69889         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
69890         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
69891         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
69892         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
69893
69894 2005-08-27  Jim Meyering  <jim@meyering.net>
69895
69896         * lib/fopen-safer.c: Merge minor changes from coreutils.
69897         * lib/dup-safer.c: Likewise.
69898         * lib/fd-safer.c: Likewise.
69899
69900         Merge from coreutils.
69901         * lib/stdio--.h: New file.
69902         * lib/stdlib--.h: New file.
69903         * lib/mkstemp-safer.c: New file.
69904
69905         GNU tar needs these.
69906         * lib/pipe-safer.c: New file.
69907         * lib/creat-safer.c: New file.
69908         * lib/fcntl--.h (creat): Define to creat_safer.
69909         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
69910         * lib/unistd--.h (pipe): Define to pipe_safer.
69911         * lib/unistd-safer.h: Declare pipe_safer.
69912
69913 2005-08-26  Simon Josefsson  <jas@extundo.com>
69914
69915         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
69916         Haible <bruno@clisp.org>.
69917
69918 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
69919
69920         * lib/regex_internal.h: Remove all references to
69921         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
69922         or better.
69923         (bitset_not, bitset_merge, bitset_not_merge):
69924         (bitset_mask, re_string_allocate, re_string_construct):
69925         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
69926         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
69927         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
69928         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
69929         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69930         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69931         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
69932         (re_acquire_state_context):
69933         Remove unnecessary forward decls.
69934         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
69935         Put __attribute at function definition,
69936         now that the function decl has been removed.
69937         * lib/regex_internal.c (re_string_peek_byte_case):
69938         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
69939         Likewise.
69940
69941 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
69942
69943         * m4/regex.m4: Add AC_PREREQ(2.50).
69944         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
69945
69946 2005-08-25  Simon Josefsson  <jas@extundo.com>
69947
69948         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
69949         __fsetlocking.
69950
69951 2005-08-25  Simon Josefsson  <jas@extundo.com>
69952
69953         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
69954         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
69955         GLIBC specific code.
69956
69957 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69958
69959         Make regex safe for g++.  This fixes one real bug (an "err"
69960         that should have been "*err").  g++ problem reported by
69961         Sam Steingold.
69962         * lib/regex_internal.h (re_calloc): New macro, consistent with
69963         re_malloc etc.  All callers of calloc changed to use re_calloc.
69964         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
69965         not int.  All callers changed.
69966         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
69967         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
69968         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
69969         (find_recover_state): Change "err" to "*err"; this fixes what
69970         appears to be a real bug.
69971         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
69972         versus int.
69973
69974 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69975
69976         * modules/regex (Depends-on): Add malloc, since the code
69977         assumes that !malloc(0) means failure.
69978
69979 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69980
69981         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
69982
69983         alloca modernization/simplification for regex.
69984         * lib/regex.c: Remove portability cruft for alloca.  This no longer
69985         needs to be at the start of the file, and can be moved into
69986         regex_internal.h and simplified.
69987         * lib/regex_internal.h: Include <alloca.h>.
69988         (__libc_use_alloca) [!defined _LIBC]: New macro.
69989         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
69990         now works outside glibc.
69991
69992 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69993
69994         * config/srclist.txt: Add glibc bugs 1241, 1245.
69995
69996 2005-08-25  Jim Meyering  <jim@meyering.net>
69997
69998         * lib/open-safer.c: Include <config.h>.
69999         Otherwise, we'd lose LARGEFILE support in any file using
70000         e.g. "fcntl--.h"
70001
70002 2005-08-25  Bruno Haible  <bruno@clisp.org>
70003
70004         * m4/minmax.m4: Require autoconf 2.52.
70005         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
70006         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
70007         alternatives of translit over the alphabet.
70008         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
70009
70010 2005-08-24  Simon Josefsson  <jas@extundo.com>
70011
70012         * tests/test-getpass.c: New file.
70013
70014 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70015
70016         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
70017         for GNU regex features.
70018
70019 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70020
70021         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
70022         * lib/regex.h (regerror): Likewise.
70023
70024         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
70025         requires this.  (The code never needed it.)
70026
70027         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
70028         All uses of recently-renamed identifiers changed to use the new,
70029         POSIX-compliant names.  The code will build and run just fine
70030         without these changes, but it's better to eat our own dog food
70031         and use the standard-conforming names.
70032
70033         * lib/regex.h: Fix a multitude of POSIX name space violations.
70034         These changes have an effect only for programs that define
70035         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
70036         do not change anything for programs compiled in the normal way.
70037         Also, there is no effect on the ABI.
70038
70039         (_REGEX_SOURCE): New macro.
70040         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
70041         defined and _GNU_SOURCE is not; this fixes a name space violation.
70042
70043         Rename the following macros to obey POSIX requirements.
70044         The old names are still visible as macros if _REGEX_SOURCE is defined.
70045         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
70046         RE_BACKSLASH_ESCAPE_IN_LISTS.
70047         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
70048         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
70049         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
70050         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
70051         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
70052         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
70053         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
70054         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
70055         (REG_INTERVALS): renamed from RE_INTERVALS.
70056         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
70057         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
70058         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
70059         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
70060         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
70061         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
70062         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
70063         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
70064         RE_UNMATCHED_RIGHT_PAREN_ORD.
70065         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
70066         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
70067         (REG_DEBUG): renamed from RE_DEBUG.
70068         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
70069         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
70070         unusual, since we can't clash with the POSIX REG_ICASE.
70071         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
70072         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
70073         (REG_NO_SUB): renamed from RE_NO_SUB.
70074         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
70075         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
70076         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
70077         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
70078         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
70079         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
70080         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
70081         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
70082         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
70083         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
70084         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
70085         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
70086         RE_SYNTAX_POSIX_MINIMAL_BASIC.
70087         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
70088         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
70089         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
70090         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
70091         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
70092         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
70093         (REG_FIXED): Renamed from REGS_FIXED.
70094         (REG_NREGS): Renamed from RE_NREGS.
70095
70096         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
70097         of other REG_* macros, since POSIX says the user is allowed to
70098         #undef these macros selectively.
70099
70100         (reg_errcode_t): Update comment stating what other tables need
70101         to be consistent.
70102
70103         Rename the following enum values to obey POSIX requirements.
70104         The old names are still visible as macros.
70105         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
70106         is not defined, since GNU is supposed to be a superset of POSIX as
70107         much as possible, and since we want reg_errcode_t to be a signed
70108         type for implementation consistency.
70109         (_REG_NOERROR): Renamed from REG_NOERROR.
70110         (_REG_NOMATCH): Renamed from REG_NOMATCH.
70111         (_REG_BADPAT): Renamed from REG_BADPAT.
70112         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
70113         (_REG_ECTYPE): Renamed from REG_ECTYPE.
70114         (_REG_EESCAPE): Renamed from REG_EESCAPE.
70115         (_REG_ESUBREG): Renamed from REG_ESUBREG.
70116         (_REG_EBRACK): Renamed from REG_EBRACK.
70117         (_REG_EPAREN): Renamed from REG_EPAREN.
70118         (_REG_EBRACE): Renamed from REG_EBRACE.
70119         (_REG_BADBR): Renamed from REG_BADBR.
70120         (_REG_ERANGE): Renamed from REG_ERANGE.
70121         (_REG_ESPACE): Renamed from REG_ESPACE.
70122         (_REG_BADRPT): Renamed from REG_BADRPT.
70123         (_REG_EEND): Renamed from REG_EEND.
70124         (_REG_ESIZE): Renamed from REG_ESIZE.
70125         (_REG_ERPAREN): Renamed from REG_ERPAREN.
70126         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
70127         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
70128         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
70129         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
70130
70131         (_REG_RE_NAME, _REG_RM_NAME): New macros.
70132         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
70133         changed.  But support the old name if the new one is not defined
70134         and if _REGEX_SOURCE.
70135
70136         Change the following member names in struct re_pattern_buffer.
70137         The old names are still supported if !_REGEX_SOURCE.
70138         The new names are always supported, regardless of _REGEX_SOURCE.
70139         (re_buffer): Renamed from buffer.
70140         (re_allocated): Renamed from allocated.
70141         (re_used): Renamed from used.
70142         (re_syntax): Renamed from syntax.
70143         (re_fastmap): Renamed from fastmap.
70144         (re_translate): Renamed from translate.
70145         (re_can_be_null): Renamed from can_be_null.
70146         (re_regs_allocated): Renamed from regs_allocated.
70147         (re_fastmap_accurate): Renamed from fastmap_accurate.
70148         (re_no_sub): Renamed from no_sub.
70149         (re_not_bol): Renamed from not_bol.
70150         (re_not_eol): Renamed from not_eol.
70151         (re_newline_anchor): Renamed from newline_anchor.
70152
70153         Change the following member names in struct re_registers.
70154         The old names are still supported if !_REGEX_SOURCE.
70155         The new names are always supported, regardless of _REGEX_SOURCE.
70156         (rm_num_regs): Renamed from num_regs.
70157         (rm_start): Renamed from start.
70158         (rm_end): Renamed from end.
70159
70160         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
70161         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
70162         Prepend __ to parameter names.
70163
70164         Undo yesterday's changes.
70165
70166 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70167
70168         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
70169         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
70170         lib/regex.c.
70171
70172 2005-08-24  Jim Meyering  <jim@meyering.net>
70173
70174         Sync from coreutils.
70175         * m4/fcntl-safer.m4: New file.
70176
70177         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
70178         and object files for this module.
70179
70180 2005-08-24  Jim Meyering  <jim@meyering.net>
70181
70182         Sync from coreutils.
70183         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
70184
70185 2005-08-24  Jim Meyering  <jim@meyering.net>
70186
70187         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
70188         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
70189
70190 2005-08-24  Jim Meyering  <jim@meyering.net>
70191
70192         * modules/fcntl-safer: New module.
70193         * modules/fts (Depends-on): Add fcntl-safer.
70194         * MODULES.html.sh (File descriptor based Input/Output):
70195         Add fcntl-safer.
70196
70197 2005-08-24  Bruno Haible  <bruno@clisp.org>
70198
70199         Support for unit test modules.
70200         * modules/README: Mention tests modules.
70201         * modules/TEMPLATE-TESTS: New file.
70202         * gnulib-tool: New options --extract-tests-module, --with-tests and
70203         --tests-base (unused for the moment).
70204         (testsbase, inctests): New variables.
70205         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
70206         (func_verify_module): Exclude TEMPLATE-TESTS.
70207         (func_verify_nontests_module, func_verify_tests_module): New functions.
70208         (func_get_dependencies): Add implicit dependency for tests modules.
70209         (func_get_tests_module): New function.
70210         (func_modules_transitive_closure): When --with-tests was specified,
70211         include the unit tests as well, unless explicitly avoided.
70212         (func_emit_lib_Makefile_am): Ignore the tests modules here.
70213         (func_emit_tests_Makefile_am): New function.
70214         (func_create_testdir): When --with-tests was specified, emit a
70215         tests/ directory.
70216         * MODULES.html.sh (Future developments): Update.
70217
70218 2005-08-24  Bruno Haible  <bruno@clisp.org>
70219
70220         * modules/tls-tests: New file.
70221         * tests/test-tls.c: New file, from GNU gettext.
70222
70223 2005-08-24  Bruno Haible  <bruno@clisp.org>
70224
70225         * modules/lock-tests: New file.
70226         * tests/test-lock.c: New file, from GNU gettext.
70227
70228 2005-08-24  Bruno Haible  <bruno@clisp.org>
70229
70230         * lib/lock.h: Add multiple inclusion guard.
70231         * lib/tls.h: Add multiple inclusion guard.
70232
70233 2005-08-24  Bruno Haible  <bruno@clisp.org>
70234
70235         * gnulib-tool: Add support for the --aux-dir option to
70236         --create-testdir, --create-megatestdir, --test, --megatest.
70237         (func_create_testdir, func_create_megatestdir): Optionally emit a
70238         AC_CONFIG_AUX_DIR directive.
70239         (create-testdir, create-megatestdir, test, megatest): Provide a
70240         default value for $auxdir.
70241
70242 2005-08-24  Bruno Haible  <bruno@clisp.org>
70243
70244         * gnulib-tool (import): Use compound statement instead of subshell
70245         where possible.
70246
70247 2005-08-24  Bruno Haible  <bruno@clisp.org>
70248
70249         * gnulib-tool (import): Change --aux-dir default to "build-aux".
70250
70251 2005-08-24  Bruno Haible  <bruno@clisp.org>
70252
70253         * gnulib-tool (func_version): Update.
70254
70255 2005-08-24  Bruno Haible  <bruno@clisp.org>
70256
70257         * gnulib-tool (func_import, func_create_testdir,
70258         func_create_megatestdir): Quote all autoconf macro arguments.
70259
70260 2005-08-24  Bruno Haible  <bruno@clisp.org>
70261
70262         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70263         option --force, because --force causes the aclocal.m4 of each
70264         subdirectory to be newer than the corresponding config.h.in.
70265
70266 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70267
70268         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70269         All contents moved to gl_REGEX.
70270         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70271         assume that it does.
70272
70273 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70274
70275         * lib/regex.h (REG_NOSYS)
70276         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70277         Define, since POSIX requires it as of 2001.
70278         (_REG_ENOSYS)
70279         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70280         New private symbol, used to keep the enum signed in all cases.
70281         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70282         Youngman in
70283         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70284
70285         * lib/regex_internal.c (re_string_skip_chars, register_state):
70286         (calc_state_hash):
70287         Remove forward decls; no longer needed now that we use prototypes.
70288         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70289         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70290         (clean_state_log_if_needed): Likewise.
70291
70292 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70293
70294         * config/srclist.txt: Add glibc bugs 1231-1233.
70295
70296 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70297
70298         Fix problems reported by Sam Steingold in
70299         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70300         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70301         assumed that reg_errcode_t is a signed type, which is not
70302         necessarily true if _XOPEN_SOURCE is not defined.
70303         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70304         since some compilers warn about it otherwise.
70305
70306 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70307
70308         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70309         (init_word_char, create_initial_state, duplicate_node_closure):
70310         (fetch_token, peek_token_bracket, build_range_exp):
70311         (build_collating_symbol): Remove forward decls; no longer needed
70312         now that we use prototypes.
70313
70314         * lib/regcomp.c:
70315         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70316         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70317         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70318         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70319         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70320         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70321         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70322         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70323         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70324         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70325         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70326         (build_charclass, build_charclass_op, fetch_number, create_tree):
70327         (create_token_tree, mark_opt_subexp, duplicate_tree):
70328         Use prototypes rather than old-style definitions.
70329
70330         * lib/regex_internal.c:
70331         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70332         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70333         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70334         (re_string_reconstruct, re_string_peek_byte_case):
70335         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70336         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70337         (re_node_set_init_copy, re_node_set_add_intersect):
70338         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70339         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70340         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70341         (re_acquire_state, re_acquire_state_context, register_state):
70342         (create_ci_newstate, create_cd_newstate, free_state):
70343         Likewise.
70344         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70345         re_search_2):
70346         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70347         (re_search_internal, prune_impossible_nodes):
70348         (acquire_init_state_context, check_matching, static):
70349         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70350         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70351         (update_regs, sift_states_backward, build_sifted_states):
70352         (clean_state_log_if_needed, merge_state_array):
70353         (update_cur_sifted_state, add_epsilon_src_nodes):
70354         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70355         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70356         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70357         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70358         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70359         (check_arrival, check_arrival_add_next_nodes):
70360         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70361         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70362         (check_node_accept_bytes, check_node_accept, extend_buffers):
70363         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70364         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70365         (sift_ctx_init):
70366         Likewise.
70367
70368         * lib/regex_internal.h:
70369         (re_string_allocate, re_string_construct, re_string_reconstruct):
70370         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70371         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70372         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70373         (re_string_context_at, re_string_peek_byte_case):
70374         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70375         is defined, since we now use prototypes always.
70376
70377         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70378         C89 or better.  All uses removed.
70379
70380 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70381
70382         * config/srclist.txt: Add glibc bugs 1220-1227.
70383
70384 2005-08-20  Jim Meyering  <jim@meyering.net>
70385
70386         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70387         of unused local, dfa.
70388
70389 2005-08-20  Bruno Haible  <bruno@clisp.org>
70390
70391         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70392
70393 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70394
70395         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70396         (re_node_set_insert_last, re_dfa_add_node):
70397         Rename local variables to avoid GCC shadowing warnings.
70398
70399 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70400
70401         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70402         [defined lint]: Suppress bogus uninitialized-variable warnings.
70403
70404         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70405         and let the caller return REG_ESPACE if out of space.  This
70406         removes an uninitialied-variable warning with GCC 4.0.1, and also
70407         avoids taking the address of a local variable.  All callers
70408         changed.
70409
70410 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70411
70412         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70413         $LIBCSRC/posix/regexec.c.
70414         Add glibc bug 1217 for regcomp.c.
70415
70416 2005-08-19  Jim Meyering  <jim@meyering.net>
70417
70418         * lib/regexec.c (proceed_next_node): Redo local variables to
70419         avoid GCC shadowing warnings.
70420
70421 2005-08-18  Bruno Haible  <bruno@clisp.org>
70422
70423         * lib/strstr.c (strstr): Fix return value in multibyte case.
70424         * lib/strcasestr.c (strcasestr): Likewise.
70425
70426 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70427
70428         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70429
70430 2005-08-17  Jim Meyering  <jim@meyering.net>
70431
70432         Make the %s format (seconds since the epoch) work for a negative
70433         number and when used with a zero-padded field width, e.g. %015s.
70434
70435         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70436         label so that it precedes the code to set `digits'.  Otherwise,
70437         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70438         print `00-22'.  Now, it prints `-0022', as it should.
70439
70440 2005-08-17  Bruno Haible  <bruno@clisp.org>
70441
70442         * modules/strstr (Files): Add m4/mbrtowc.m4.
70443         (Depends-on): Add mbuiter.
70444
70445 2005-08-17  Bruno Haible  <bruno@clisp.org>
70446
70447         * modules/strcasestr: New file.
70448         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70449         strcasestr.
70450
70451 2005-08-17  Bruno Haible  <bruno@clisp.org>
70452
70453         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70454
70455 2005-08-17  Bruno Haible  <bruno@clisp.org>
70456
70457         * modules/mbuiter: New file.
70458         * MODULES.html.sh (Extended multibyte and wide character utilities):
70459         Add mbuiter.
70460
70461 2005-08-17  Bruno Haible  <bruno@clisp.org>
70462
70463         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70464         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70465
70466 2005-08-17  Bruno Haible  <bruno@clisp.org>
70467
70468         * m4/strcasestr.m4: New file.
70469
70470 2005-08-17  Bruno Haible  <bruno@clisp.org>
70471
70472         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
70473         * lib/strstr.c: Completely rewritten, with multibyte locale support.
70474
70475 2005-08-17  Bruno Haible  <bruno@clisp.org>
70476
70477         * lib/strcasestr.h: New file.
70478         * lib/strcasestr.c: New file.
70479
70480 2005-08-17  Bruno Haible  <bruno@clisp.org>
70481
70482         * lib/strcasecmp.c: Use mbuiter.h.
70483
70484 2005-08-17  Bruno Haible  <bruno@clisp.org>
70485
70486         * lib/mbuiter.h: New file.
70487
70488 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70489
70490         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
70491         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
70492         and gl_GETOPT are both invoked via different paths (as happens
70493         with GNU tar CVS because it uses both argp and getopt), the former
70494         wins.
70495
70496 2005-08-16  Bruno Haible  <bruno@clisp.org>
70497
70498         * modules/tls: New file.
70499         * MODULES.html.sh (Multithreading): Add tls.
70500
70501 2005-08-16  Bruno Haible  <bruno@clisp.org>
70502
70503         * modules/strnlen1: New file.
70504         * MODULES.html.sh (String handling): Add strnlen1.
70505
70506 2005-08-16  Bruno Haible  <bruno@clisp.org>
70507
70508         * modules/strcase (Files): Add m4/mbrtowc.m4.
70509         (Depends-on): Add strnlen1, mbchar.
70510
70511 2005-08-16  Bruno Haible  <bruno@clisp.org>
70512
70513         * modules/mbiter: New file.
70514         * MODULES.html.sh (Extended multibyte and wide character utilities):
70515         Add mbiter.
70516
70517 2005-08-16  Bruno Haible  <bruno@clisp.org>
70518
70519         * modules/mbfile: New file.
70520         * MODULES.html.sh (Extended multibyte and wide character utilities):
70521         Add mbfile.
70522
70523 2005-08-16  Bruno Haible  <bruno@clisp.org>
70524
70525         * modules/mbchar: New file.
70526         * MODULES.html.sh (Extended multibyte and wide character utilities):
70527         New section.
70528
70529 2005-08-16  Bruno Haible  <bruno@clisp.org>
70530
70531         * m4/tls.m4: New file, from GNU gettext.
70532
70533 2005-08-16  Bruno Haible  <bruno@clisp.org>
70534
70535         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
70536         always.
70537         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
70538
70539 2005-08-16  Bruno Haible  <bruno@clisp.org>
70540
70541         * m4/mbiter.m4: New file.
70542
70543 2005-08-16  Bruno Haible  <bruno@clisp.org>
70544
70545         * m4/mbfile.m4: New file.
70546
70547 2005-08-16  Bruno Haible  <bruno@clisp.org>
70548
70549         * m4/mbchar.m4: New file.
70550
70551 2005-08-16  Bruno Haible  <bruno@clisp.org>
70552
70553         * lib/tls.h: New file, from GNU gettext.
70554         * lib/tls.c: New file, from GNU gettext.
70555
70556 2005-08-16  Bruno Haible  <bruno@clisp.org>
70557
70558         * lib/strnlen1.h: New file.
70559         * lib/strnlen1.c: New file.
70560
70561 2005-08-16  Bruno Haible  <bruno@clisp.org>
70562
70563         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70564         (mbi_init): Update.
70565         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70566         NUL byte, not after it.
70567
70568 2005-08-16  Bruno Haible  <bruno@clisp.org>
70569
70570         * lib/strcase.h (strcasecmp): Add note in comments.
70571         * lib/strncasecmp.c: Use code from strcasecmp.c.
70572         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70573         (strcasecmp): Work correctly in multibyte locales.
70574
70575 2005-08-16  Bruno Haible  <bruno@clisp.org>
70576
70577         * lib/mbiter.h: New file.
70578
70579 2005-08-16  Bruno Haible  <bruno@clisp.org>
70580
70581         * lib/mbfile.h: New file.
70582
70583 2005-08-16  Bruno Haible  <bruno@clisp.org>
70584
70585         * lib/mbchar.h: New file.
70586         * lib/mbchar.c: New file.
70587
70588 2005-08-16  Bruno Haible  <bruno@clisp.org>
70589
70590         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70591         the valid ones. Makes the comparison operations transitive:
70592         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70593         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70594
70595 2005-08-15  Simon Josefsson  <jas@extundo.com>
70596
70597         * modules/ssize_t (License): Change to 'unlimited'.
70598
70599         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70600
70601 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70602
70603         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70604         Add comments for each pending glibc patch.
70605
70606 2005-08-15  Bruno Haible  <bruno@clisp.org>
70607
70608         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70609         __cplusplus is defined.
70610
70611 2005-08-14  Jim Meyering  <jim@meyering.net>
70612
70613         Sync from coreutils.
70614
70615         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70616         Use the hash-table-based cycle-detection code not just when
70617         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70618         Reported by James Youngman in
70619         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70620         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70621         FTS_TIGHT_CYCLE_CHECK.
70622         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70623         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70624         once again.
70625         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70626         * lib/fts.c (fd_safer): Remove decl.
70627         Include fcntl--.h rather than unistd-safer.h
70628         (fts_safe_changedir): Don't call fd_safer; no longer needed
70629         now that we include fcntl--.h.
70630
70631 2005-08-12  Simon Josefsson  <jas@extundo.com>
70632
70633         * modules/getndelim2: Use ssize_t module.
70634         * modules/getnline: Likewise.
70635         * modules/safe-read: Likewise.
70636         * modules/xreadlink: Likewise.
70637
70638         * modules/ssize_t: New file.
70639
70640 2005-08-12  Simon Josefsson  <jas@extundo.com>
70641
70642         * m4/readline.m4: Look for termcap, curses or ncurses if required.
70643
70644 2005-08-12  Simon Josefsson  <jas@extundo.com>
70645
70646         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70647         ssize_t.
70648
70649 2005-08-12  Simon Josefsson  <jas@extundo.com>
70650
70651         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
70652         readline, getdelim and check_version.
70653         (Support for systems lacking ISO C 99: Sizes of integer types):
70654         Add size_max.
70655
70656 2005-08-12  Bruno Haible  <bruno@clisp.org>
70657
70658         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
70659
70660 2005-08-11  Simon Josefsson  <jas@extundo.com>
70661
70662         * modules/readline: New file.
70663
70664         * modules/strnlen (Files): Add strnlen.h.
70665
70666 2005-08-11  Simon Josefsson  <jas@extundo.com>
70667
70668         * m4/readline.m4: New file.
70669
70670 2005-08-11  Simon Josefsson  <jas@extundo.com>
70671
70672         * lib/readline.h, readline.c: New file.
70673
70674 2005-08-11  Simon Josefsson  <jas@extundo.com>
70675
70676         * doc/gnulib.texi (Initial import, Finishing touches): Mention
70677         gl_AVOID.
70678
70679 2005-08-11  Bruno Haible  <bruno@clisp.org>
70680
70681         * lib/strnlen.h (strnlen): Change parameter name to match comment.
70682
70683 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
70684
70685         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
70686
70687 2005-08-10  Simon Josefsson  <jas@extundo.com>
70688
70689         * tests/test-iconvme.c: New file.
70690
70691 2005-08-10  Simon Josefsson  <jas@extundo.com>
70692
70693         * m4/strnlen.m4: New file.
70694
70695         * m4/strndup.m4: Don't check for strnlen declaration, done in
70696         strnlen.m4.
70697
70698 2005-08-10  Simon Josefsson  <jas@extundo.com>
70699
70700         * lib/strndup.c: Use strnlen.h.
70701
70702         * lib/strnlen.h: New file.
70703
70704 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70705
70706         * README: Typos.
70707
70708 2005-08-02  Simon Josefsson  <jas@extundo.com>
70709
70710         * modules/readline: New file.
70711
70712 2005-08-02  Simon Josefsson  <jas@extundo.com>
70713
70714         * modules/getdelim: New file.
70715
70716         * modules/getline: Rewrite, don't use getndelim2.
70717
70718 2005-08-02  Simon Josefsson  <jas@extundo.com>
70719
70720         * m4/getline.m4: Separate out getdelim stuff into separate module.
70721
70722         * m4/getdelim.m4: New file.
70723
70724 2005-08-02  Simon Josefsson  <jas@extundo.com>
70725
70726         * lib/getline.h, getline.c: Rewrite.
70727
70728         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
70729
70730 2005-07-31  Bruno Haible  <bruno@clisp.org>
70731
70732         * lib/lock.h (gl_lock_initializer): New macro.
70733         (gl_lock_define_initialized): Use it.
70734         (gl_rwlock_initializer): New macro.
70735         (gl_rwlock_define_initialized): Use it.
70736         (gl_recursive_lock_initializer): New macro.
70737         (gl_recursive_lock_define_initialized): Use it.
70738
70739 2005-07-30  Karl Berry  <karl@gnu.org>
70740
70741         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
70742         Report from Ben Pfaff, regarding getopt.
70743
70744 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
70745
70746         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
70747         normal way.
70748         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
70749         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
70750         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
70751         (gl_GETOPT): Use the new macros.  Most of the implementation
70752         is moved to the new macros.  This is for programs like Emacs
70753         that don't want all the functionality of gl_GETOPT.
70754
70755 2005-07-26  Bruno Haible  <bruno@clisp.org>
70756
70757         * m4/lock.m4: Update from GNU gettext.
70758
70759 2005-07-26  Bruno Haible  <bruno@clisp.org>
70760
70761         * lib/lock.h: Update from GNU gettext.
70762         * lib/lock.c: Update from GNU gettext.
70763
70764 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
70765
70766         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
70767         obsolescent AC_TRY_RUN.  Include the default includes files, for
70768         'exit'.
70769
70770 2005-07-24  Bruno Haible  <bruno@clisp.org>
70771
70772         * modules/visibility: New file.
70773         * MODULES.html.sh (Misc): Add visibility.
70774
70775 2005-07-24  Bruno Haible  <bruno@clisp.org>
70776
70777         * m4/visibility.m4: New file.
70778
70779 2005-07-24  Bruno Haible  <bruno@clisp.org>
70780
70781         * doc/visibility.texi: New file.
70782
70783 2005-07-22  Bruno Haible  <bruno@clisp.org>
70784
70785         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
70786         $(ALLOCA_H), redundant through BUILT_SOURCES.
70787         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
70788         redundant through BUILT_SOURCES.
70789         * modules/byteswap (Makefile.am): Remove explicit dependency on
70790         $(BYTESWAP_H), redundant through BUILT_SOURCES.
70791         * modules/fnmatch (Makefile.am): Remove explicit dependency on
70792         $(FNMATCH_H), redundant through BUILT_SOURCES.
70793         * modules/getopt (Makefile.am): Remove explicit dependency on
70794         $(GETOPT_H), redundant through BUILT_SOURCES.
70795         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
70796         redundant through BUILT_SOURCES.
70797         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
70798         redundant through BUILT_SOURCES.
70799         * modules/stdbool (Makefile.am): Remove explicit dependency on
70800         $(STDBOOL_H), redundant through BUILT_SOURCES.
70801         * modules/stdint (Makefile.am): Remove explicit dependency on
70802         $(STDINT_H), redundant through BUILT_SOURCES.
70803         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
70804         Remove explicit dependency on $(SYSEXITS_H).
70805         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
70806
70807 2005-07-18  Simon Josefsson  <jas@extundo.com>
70808
70809         * lib/check-version.c (check_version): Accept identical versions too.
70810
70811 2005-07-18  Bruno Haible  <bruno@clisp.org>
70812
70813         * modules/lock: New file.
70814         * MODULES.html.sh (Multithreading): New section.
70815
70816 2005-07-18  Bruno Haible  <bruno@clisp.org>
70817
70818         * m4/lock.m4: New file, from GNU gettext.
70819
70820 2005-07-18  Bruno Haible  <bruno@clisp.org>
70821
70822         * lib/lock.h: New file, from GNU gettext.
70823         * lib/lock.c: New file, from GNU gettext.
70824
70825 2005-07-18  Bruno Haible  <bruno@clisp.org>
70826
70827         * lib/lock.h (gl_once_t): New type.
70828         (gl_once_define, gl_once): New macros.
70829         * lib/lock.c (fresh_once): New variable.
70830         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
70831         functions.
70832
70833 2005-07-16  Simon Josefsson  <jas@extundo.com>
70834
70835         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
70836         workaround, suggested by Bruno.
70837
70838 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70839
70840         * modules/xalloc (Depends-on): Add xalloc-die.
70841         * modules/xvasprintf (Depends-on): Add xalloc-die.
70842
70843 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70844
70845         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
70846         with a minor change.
70847
70848 2005-07-15  Bruno Haible  <bruno@clisp.org>
70849
70850         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
70851         When using lib/poll.c, define poll as rpl_poll.
70852
70853 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
70854
70855         * modules/argp (Depends-on): Remove unlocked-io.
70856
70857 2005-07-14  Derek Price  <derek@ximbiot.com>
70858
70859         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
70860         for glob symlink bug.
70861
70862 2005-07-14  Bruno Haible  <bruno@clisp.org>
70863
70864         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
70865         Instead, test for *_unlocked function declarations directly.
70866
70867 2005-07-11  Simon Josefsson  <jas@extundo.com>
70868
70869         * modules/size_max: New file.
70870
70871         * modules/xsize: Depend on size_max module for size_max.m4.
70872
70873 2005-07-11  Simon Josefsson  <jas@extundo.com>
70874
70875         * lib/size_max.h: New file.
70876
70877 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
70878
70879         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
70880         copyright symbol and the year.
70881         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
70882         (version_etc_va): Use parameterized copyright notice.
70883         Reword to conform to the current GNU coding standards.
70884
70885 2005-07-11  Karl Berry  <karl@gnu.org>
70886
70887         * doc/gnulib.texi (Quoting): new node.
70888         (Initial import): more info, from Patrice.
70889
70890 2005-07-11  Bruno Haible  <bruno@clisp.org>
70891
70892         * gnulib-tool (func_usage): Document option --avoid.
70893         (Command line options): Handle --avoid.
70894         (func_acceptable): New function.
70895         (func_modules_transitive_closure): Use it.
70896
70897 2005-07-11  Bruno Haible  <bruno@clisp.org>
70898
70899         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
70900         Reported by Jim Meyering.
70901
70902 2005-07-10  Bruno Haible  <bruno@clisp.org>
70903
70904         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
70905         Needed when size_t is smaller than 'unsigned int'.
70906         Reported by Paul Eggert.
70907
70908 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70909
70910         * modules/argp (Depends-on): Add unlocked-io
70911
70912 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70913
70914         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
70915         block of defines.
70916
70917 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70918
70919         * config/srclist.txt: Comment out regcomp.c, since we have a porting
70920         fix now.
70921
70922 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
70923         and Paul Eggert  <eggert@cs.ucla.edu>
70924
70925         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
70926         in wint_t, not wchar_t.  Remove now-unnecessary cast.
70927
70928 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70929
70930         * modules/regex (Files): Add lib/regex_internal.c,
70931         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
70932         (Depends-on): Add extensions.
70933         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
70934
70935 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70936
70937         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
70938         pathconf.
70939         * m4/same.m4 (gl_SAME): Likewise.
70940         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
70941
70942         * m4/regex.m4: Adjust to new libc regex implementation.
70943         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
70944         all the .c and .h parts of (the new) regex.
70945         Quote the m4 stuff better.
70946         Check for RE_ICASE bug of old gnulib.
70947         Check for REG_STARTEND of recent libc.
70948         Rename local variables from jm_* to gl_*.
70949         Quote operand of "test -f".
70950         Say "recent enough" version of libc, not "version 2".
70951         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
70952         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
70953         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
70954         Remove check for btowc, isascii.
70955         Require AM_LANGINFO_CODESET.
70956
70957 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70958
70959         * lib/regex.c, regex.h: Sync from libc.
70960         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
70961         * lib/regexec.c:
70962         New files, synced from libc, except that regex_internal.h
70963         currently has a small porting fix.
70964
70965 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70966
70967         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
70968         regex_internal.c, regexec.c.
70969         Add regex_internal.h too, but as a comment, since the libc version
70970         is currently broken in gnulib mode.
70971
70972 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70973
70974         Support programs like Emacs that use gnulib but not gettext.
70975         * MODULES.html.sh (Internationalization functions): Add gettext-h.
70976         * modules/gettext-h: New file.
70977         * modules/gettext (Files): Remove lib/gettext.h.
70978         (Depends-on): Add gettext-h.
70979         (Makefile.am): Remove lib_SOURCES.
70980         * modules/argmatch, modules/c-stack, modules/closeout:
70981         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
70982         * modules/execute, modules/file-type, modules/getaddrinfo:
70983         * modules/getopt, modules/human, modules/javacomp:
70984         * modules/javaexec, modules/mkdir-p, modules/obstack:
70985         * modules/openat, modules/pagealign_alloc, modules/pipe:
70986         * modules/quotearg, modules/regex, modules/rpmatch:
70987         * modules/unicodeio, modules/userspec, modules/version-etc:
70988         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
70989         * modules/xsetenv:
70990         Depend on gettext-h, not gettext.
70991
70992 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70993
70994         * gnulib-tool (func_import): Add support for 'public domain' license.
70995         * modules/alloca, modules/atexit, modules/memmove:
70996         Now public domain, not GPL.
70997         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
70998         * modules/realloc, modules/strerror, modules/strtod:
70999         Now LGPL, not GPL.
71000
71001 2005-07-05  Bruno Haible  <bruno@clisp.org>
71002
71003         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
71004         autoconf CVS. Needed for mingw.
71005
71006 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71007
71008         Remove the dependency of the strftime module on the tzset module.
71009         * modules/strftime (Depends-on): Remove dependency on tzset.
71010
71011 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71012
71013         Remove the dependency of the strftime module on the tzset module.
71014         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
71015         gl_FUNC_TZSET_CLOBBER.
71016
71017 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71018
71019         Remove the dependency of the strftime module on the tzset module.
71020         * lib/strftime.c (my_strftime)
71021         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
71022         Copy the input structure, to work around some of the bug with
71023         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
71024         Solaris releases, you should also use the tzset module, but we won't
71025         require it as a dependency any more since we don't want LGPLed code
71026         to depend on GPLed code.
71027
71028 2005-07-02  Jim Meyering  <jim@meyering.net>
71029
71030         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
71031         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
71032         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
71033         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
71034
71035 2005-07-02  Jim Meyering  <jim@meyering.net>
71036
71037         * lib/backupfile.c (backup_args): Change a `0' to NULL.
71038
71039 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71040
71041         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
71042         declares only 'struct timespec;' (!).
71043
71044 2005-07-01  Jim Meyering  <jim@meyering.net>
71045
71046         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
71047         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
71048         * lib/save-cwd.c, tempname.c:
71049         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71050         and don't include <sys/file.h>).
71051
71052 2005-06-29  Jim Meyering  <jim@meyering.net>
71053
71054         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
71055         type name.  Use the variable name instead.
71056         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
71057         Likewise.
71058
71059 2005-06-28  Simon Josefsson  <jas@extundo.com>
71060
71061         * modules/check-version (Files): Add check-version.m4.
71062
71063 2005-06-28  Simon Josefsson  <jas@extundo.com>
71064
71065         * m4/check-version.m4: New file, suggested by Jim Meyering
71066         <jim@meyering.net>.
71067
71068 2005-06-28  Simon Josefsson  <jas@extundo.com>
71069
71070         * lib/check-version.h, lib/check-version.c: New files.
71071
71072 2005-06-28  Simon Josefsson  <jas@extundo.com>
71073
71074         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
71075         collision with global variable.  Better indentation.  Don't
71076         increment buffer pointer beyond buffer end.  Based on comments
71077         from Paul Eggert <eggert@cs.ucla.edu>.
71078
71079         * lib/base64.h: Indent.
71080
71081 2005-06-28  Simon Josefsson  <jas@extundo.com>
71082
71083         * doc/gnulib.texi (Library version handling): New section.
71084
71085 2005-06-28  Jim Meyering  <jim@meyering.net>
71086
71087         * check-module (find_included_lib_files): Hard-code another
71088         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
71089         but modules/fts-lgpl (correctly) does not list those files.
71090
71091         * modules/canonicalize (Files): Add lib/pathmax.h.
71092
71093 2005-06-25  Simon Josefsson  <jas@extundo.com>
71094
71095         * modules/check-version: New file.
71096
71097 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
71098
71099         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
71100         initializer of struct addrinfo, as an indication that we don't
71101         care how many members the structure has.
71102
71103 2005-06-24  Derek Price  <derek@ximbiot.com>
71104         and Bruno Haible  <bruno@clisp.org>
71105
71106         Remove stat module & update lstat.
71107         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
71108         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71109         * m4/stat.m4: Remove this file.
71110
71111 2005-06-24  Derek Price  <derek@ximbiot.com>
71112         and Bruno Haible  <bruno@clisp.org>
71113
71114         Remove stat module & update lstat.
71115         * lib/stat.c: Remove this file...
71116         (slash_aware_lstat): ...moving this content and its support...
71117         * lib/lstat.c (rpl_lstat): ...into here.
71118         * lib/lstat.h: New file.
71119
71120 2005-06-24  Derek Price  <derek@ximbiot.com>
71121         and Bruno Haible  <bruno@clisp.org>
71122
71123         Remove stat module & update lstat.
71124         * config/srclist.txt (libc sources): Remove stat.
71125
71126 2005-06-24  Derek Price  <derek@ximbiot.com>
71127         and Bruno Haible  <bruno@clisp.org>
71128
71129         Remove stat module & update lstat.
71130         * MODULES.html.sh (stat): Remove.
71131         * MODULES.html: Regenerated.
71132         * modules/lstat (Description): Correct function name.
71133         (Files): Add "lstat.h".
71134         (Depends-on): Remove stat, add xalloc, stat-macros.
71135         * modules/stat: Remove this file.
71136         (Include): Add "lstat.h", remove <sys/stat.h>.
71137
71138 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
71139
71140         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
71141         (ranged_convert): Don't save conversion in a temporary struct.
71142         This causes a warning with GCC 4.0.0, and anyway in the typical
71143         case it's not worth the extra 100 bytes or so of code.
71144         (ranged_convert, __mktime_internal): When calling a function via a
71145         pointer P, use P () rather than (*P) (), as we now assume C89 or
71146         better.
71147
71148 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71149
71150         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
71151         "who -r" failed to give output.  Problem reported by Tim Waugh.
71152
71153         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
71154         (xcalloc): Use it to avoid needless tests.
71155         Problem reported by Jim Meyering.
71156
71157 2005-06-20  Derek Price  <derek@ximbiot.com>
71158
71159         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
71160         unnecessary for Autoconfs > 2.59c.
71161
71162 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71163
71164         * lib/argp.h (__option_is_short): Check upper limit of
71165         __key. Isprint() requires its argument to have the value
71166         of an unsigned char or EOF.
71167
71168 2005-06-16  Jim Meyering  <jim@meyering.net>
71169
71170         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
71171         when either N or S is zero.
71172
71173 2005-06-16  Derek Price  <derek@ximbiot.com>
71174
71175         * m4/bison.m4: Declare YACC & YFLAGS precious.
71176
71177 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
71178
71179         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
71180         multibyte string or pattern, fall back on unibyte matching.
71181         Problem reported by James Youngman.
71182
71183 2005-06-08  Bruno Haible  <bruno@clisp.org>
71184
71185         * modules/csharpcomp: New file.
71186         * MODULES.html.sh (C#): Add csharpcomp.
71187
71188 2005-06-08  Bruno Haible  <bruno@clisp.org>
71189
71190         * m4/csharpcomp.m4: New file, from GNU gettext.
71191
71192 2005-06-08  Bruno Haible  <bruno@clisp.org>
71193
71194         * lib/csharpcomp.h: New file, from GNU gettext.
71195         * lib/csharpcomp.c: New file, from GNU gettext.
71196         * lib/csharpcomp.sh.in: New file, from GNU gettext.
71197
71198 2005-06-08  Bruno Haible  <bruno@clisp.org>
71199
71200         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
71201         warning on mingw.
71202
71203 2005-06-07  Derek Price  <derek@ximbiot.com>
71204
71205         Sync from CVS.
71206         * lib/glob_.h: Indent nested #ifdef.
71207
71208 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71209
71210         Sync from coreutils.
71211         Use "file name" when talking about file names, instead of "filename"
71212         or "path", as per the GNU coding standards.
71213         * lib/mkdir-p.c: Renamed from makepath.c.
71214         (make_dir_parents): Renamed from make_path.  All callers changed.
71215         * lib/mkdir-p.h: Likewise.  All includers changed.
71216         * lib/filenamecat.c: Renamed from path-concat.c.
71217         (file_name_concat): Renamed from path_concat.  All callers changed.
71218         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
71219         * lib/filenamecat.h: Likewise.  All includers changed.
71220         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
71221         in comments or local variable names.
71222         * lib/basename.c: Likewise.
71223         * lib/canonicalize.c, canonicalize.h: Likewise.
71224         * lib/dirname.c, dirname.h: Likewise.
71225         * lib/euidaccess.c: Likewise.
71226         * lib/exclude.c: Likewise
71227         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
71228         * lib/fsusage.c, fsuage.h: Likewise.
71229         * lib/fts.c, fts_.h: Likewise.
71230         * lib/getcwd.c: Likewise.
71231         * lib/getloadavg.c: Likewise.
71232         * lib/mkstemp.c: Likewise.
71233         * lib/mountlist.c, mountlist.h: Likewise.
71234         * lib/openat.c, openat.h: Likewise.
71235         * lib/readlink-stub.c: Likewise.
71236         * lib/readutmp.c, readutmp.h: Likewise.
71237         * lib/rename.c: Likewise.
71238         * lib/rmdir.c: Likewise.
71239         * lib/same.c: Likewise.
71240         * lib/savedir.c: Likewise.
71241         * lib/stripslash.c: Likewise.
71242         * lib/tempname.c: Likewise.
71243         * lib/xreadlink.c: Likewise.
71244         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
71245         All uses changed.
71246         * lib/exclude.h: Likewise.
71247
71248         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
71249         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71250         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
71251         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71252         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71253         files have been getting away with it for years (MORE/BSD 4.3
71254         is extinct now).
71255         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71256         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71257
71258         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71259         Define to 256, not 255, as per modern POSIX.
71260
71261 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71262
71263         Sync from coreutils.
71264         Use "file name" when talking about file names, instead of "filename"
71265         or "path", as per the GNU coding standards.
71266         * MODULES.html.sh: mkdir-p renamed from makepath.
71267         filenamecat renamed from path-concat.
71268         * modules/filenamecat: Renamed from modules/path-concat.
71269         (Files): filenamecat.h and filenamecat.c renamed from
71270         path-concat.h and path-concat.c.
71271         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71272         (Include): filenamecat.h, not path-concat.h.
71273         * modules/mkdir-p: Renamed from modules/makepath.
71274         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71275         makepath.c.
71276         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71277         (Include): mkdir-p.h, not makepath.h.
71278
71279 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71280
71281         Sync from coreutils.
71282         * m4/mkdir-p.m4: Renamed from makepath.m4.
71283         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71284         Rename files from makepath.c to mkdir-p.c, and from
71285         makepath.h to mkdir-p.h.
71286         * m4/filenamecat.m4: Renamed from path-concat.m4.
71287         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71288         Rename files from path-concat.c to filenamecat.c,
71289         and from path-concat.h to filenamecat.h.
71290         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71291         "file name" in local variables or comments.
71292         * m4/rename.m4: Likewise.
71293
71294 2005-06-01  Bruno Haible  <bruno@clisp.org>
71295
71296         * modules/csharpexec: New file.
71297         * MODULES.html.sh (C#): New section.
71298
71299 2005-06-01  Bruno Haible  <bruno@clisp.org>
71300
71301         * m4/csharp.m4: New file, from GNU gettext.
71302         * m4/csharpexec.m4: New file, from GNU gettext.
71303
71304 2005-06-01  Bruno Haible  <bruno@clisp.org>
71305
71306         * lib/csharpexec.h: New file, from GNU gettext.
71307         * lib/csharpexec.c: New file, from GNU gettext.
71308         * lib/csharpexec.sh.in: New file, from GNU gettext.
71309
71310 2005-05-31  Derek Price  <derek@ximbiot.com>
71311             Paul Eggert  <eggert@cs.ucla.edu>
71312
71313         Sync from cvs.
71314         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71315
71316 2005-05-31  Derek Price  <derek@ximbiot.com>
71317             Paul Eggert  <eggert@cs.ucla.edu>
71318
71319         Sync from cvs.
71320         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71321
71322 2005-05-29  Derek Price  <derek@ximbiot.com>
71323
71324         * config/srclist.txt (glob_.h, glob.c): Add these files.
71325
71326 2005-05-29  Derek Price  <derek@ximbiot.com>
71327
71328         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71329         * modules/glob: New file.
71330         * modules/getlogin_r: Add link to POSIX spec in description.
71331
71332 2005-05-29  Derek Price  <derek@ximbiot.com>
71333             Paul Eggert  <eggert@cs.ucla.edu>
71334
71335         * m4/glob.m4: New file.
71336
71337 2005-05-29  Derek Price  <derek@ximbiot.com>
71338             Paul Eggert  <eggert@cs.ucla.edu>
71339
71340         * lib/glob_.h, lib/glob.c: New files.
71341
71342 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71343
71344         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71345         * modules/fts-lgpl (Depends-on): Remove gettext.
71346
71347 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71348
71349         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71350         and don't require gt_INTTYPES_PRI.
71351
71352 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71353
71354         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71355
71356         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71357         the configuration hassle isn't worth it.
71358         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71359         (LONGEST_MODIFIER, PRIuMAX): Remove.
71360
71361 2005-05-27  Bruno Haible  <bruno@clisp.org>
71362
71363         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71364
71365 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71366
71367         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71368         _POSIX_PTHREAD_SEMANTICS for Solaris.
71369
71370 2005-05-25  Derek Price  <derek@ximbiot.com>
71371
71372         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71373
71374 2005-05-25  Derek Price  <derek@ximbiot.com>
71375             Paul Eggert  <eggert@cs.ucla.edu>
71376
71377         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71378         * lib/getlogin_r.c, getlogin_r.h: New files.
71379
71380 2005-05-25  Bruno Haible  <bruno@clisp.org>
71381             Derek Price  <derek@ximbiot.com>
71382
71383         * lib/getlogin_r.h: Simplify API documentation.
71384
71385 2005-05-23  Derek Price  <derek@ximbiot.com>
71386
71387         * modules/minmax (Files): Add m4/minmax.m4.
71388         (configure.ac): Add gl_MINMAX.
71389
71390 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71391
71392         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71393         so that unistd-safer.h (GPL'ed code) need not be included.
71394
71395 2005-05-22  Bruno Haible  <bruno@clisp.org>
71396
71397         * m4/minmax.m4: New file.
71398         Based on a patch by Derek Price <derek@ximbiot.com>.
71399
71400 2005-05-22  Bruno Haible  <bruno@clisp.org>
71401
71402         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71403         (INT64_MIN): Fix definition.
71404         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71405
71406         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71407         NEED_SIGNED_INT_TYPES.
71408
71409         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71410         HAVE_SYSTEM_INTTYPES.
71411
71412 2005-05-22  Bruno Haible  <bruno@clisp.org>
71413
71414         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71415         Also include <sys/param.h> if it defines MIN, MAX.
71416         Based on a patch by Derek Price <derek@ximbiot.com>.
71417
71418 2005-05-21  Jim Meyering  <jim@meyering.net>
71419
71420         * modules/fts (Files): Add m4/inttypes-pri.m4.
71421         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71422
71423 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71424
71425         New fts module.
71426         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71427         (setup_dir, free_dir): New functions.
71428         (enter_dir, leave_dir): Define trivial
71429         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71430         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71431         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71432         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71433         Move to fts-cycle.c.
71434         (fts_open): Use setup_dir.
71435         (fts_close): Use free_dir.
71436         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71437         This adds a label and some gotos, but the alternatives were messier.
71438         Check for memory allocation failure when entering a dir.
71439         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71440         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71441         (FTS): New member fts_cycle, that is a union that contains the
71442         old active_dir_ht and cycle_state.  All uses changed to mention
71443         fts_cycle.ht and fts_cycle.state.
71444         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71445         fts.c, with the following changes:
71446         (setup_dir, free_dir): New functions.
71447         (enter_dir): Now returns bool.  Return true if successful, false
71448         if memory exhausted.  All callers changed.
71449         Do not bother partly cleaning up on
71450         memory allocation failure; that is free_dir's job.
71451         However, free ad if hash_insert fails, to avoid memory leak.
71452         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71453         fts->fts_options to see which union member to use.
71454
71455 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71456
71457         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71458         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71459
71460 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71461
71462         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71463
71464 2005-05-20  Jim Meyering  <jim@meyering.net>
71465
71466         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71467         Now a macro, to pacify GCC.
71468
71469 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71470
71471         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
71472         of -1.
71473
71474 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71475
71476         * lib/chown.c (rpl_chown): Return -1 on failure.
71477
71478 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71479
71480         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
71481         Don't check for stddef.h.
71482         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
71483         don't use its results.
71484         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
71485         since we include them unconditionally.  Don't require
71486         AM_STDBOOL_H, since stdbool is a prerequisite.
71487         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
71488         since we assume C89 or better.
71489         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
71490         as we don't use their results.
71491         Don't check for fchdir, memmove, memset, strrchr, as we use
71492         them unconditionally.
71493         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
71494         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
71495
71496 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71497
71498         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
71499         Include <stddef.h> unconditionally, since we assume C89 now.
71500         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
71501         * lib/fts.c: Include fts_.h first, to check interface.
71502         Do not include intprops.h; no longer needed.
71503         Include cycle-check.h and hash.h, since fts_.h no longer does.
71504         Remove unnecessary casts of closedir to void.
71505         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
71506         decide whether to decrement nlinks.
71507         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
71508         (FTS): Use struct hash_table * instead of Hash_table, so that
71509         we no longer need to include hash.h here.
71510
71511 2005-05-18  Jim Meyering  <jim@meyering.net>
71512
71513         * modules/dirfd (License): Change to LGPL.  Most of the code
71514         is already in the public domain.
71515
71516 2005-05-18  Jim Meyering  <jim@meyering.net>
71517
71518         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
71519         Reported by Yoann Vandoorselaere.
71520
71521 2005-05-17  Jim Meyering  <jim@meyering.net>
71522
71523         * m4/fts.m4: New file, from coreutils.
71524
71525 2005-05-17  Jim Meyering  <jim@meyering.net>
71526
71527         * lib/fts.c, lib/fts_.h: New files, from coreutils.
71528
71529 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71530
71531         Sync from coreutils.
71532         * m4/unlinkdir.m4: New file.
71533
71534 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71535
71536         Sync from coreutils.
71537         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
71538         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
71539         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
71540         White space changes only.
71541         * lib/makepath.c (make_path): Port to hosts where leading "//" is
71542         special.
71543         * lib/yesno.c: Include getline.h, not ctype.h.
71544         (yesno): Don't remove leading white space; POSIX doesn't allow it.
71545         Use getline to remove arbitrary restriction on response length.
71546
71547 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71548
71549         * config/srclist-update: Spell out "Street" in FSF postal
71550         mail address; this is the style the FSF seems to prefer.
71551
71552         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
71553         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
71554         this updates FSF postal mail address.
71555
71556         Sync from coreutils.
71557         * modules/unlinkdir: New file.
71558         * modules/yesno (Depends-on): Add getline.
71559         * MODULES.html.sh (File system functions): Add unlinkdir.
71560
71561 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71562
71563         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71564         lib/strsep.h:
71565         Change the initial comment to refer to GPL, not LGPL.
71566         gnulib-tool will change it to LGPL as needed.
71567
71568         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71569         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71570         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71571         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71572         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71573         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71574         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71575         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71576         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71577         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71578         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71579         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71580         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71581         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71582         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71583         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71584         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71585         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71586         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71587         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71588         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71589         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71590         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71591         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71592         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71593         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71594         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71595         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71596         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71597         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71598         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71599         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71600         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71601         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71602         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71603         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71604         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71605         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71606         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71607         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71608         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71609         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71610         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71611         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71612         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71613         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71614         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71615         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71616         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71617         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71618         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71619         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71620         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71621         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71622         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71623         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71624         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71625         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71626         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71627         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71628         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71629         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71630         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71631         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71632         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71633         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71634         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71635         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
71636         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
71637         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
71638         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
71639         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
71640         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
71641         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
71642         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
71643         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
71644         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
71645         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
71646         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
71647         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
71648         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
71649         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
71650         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
71651         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
71652         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
71653         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
71654         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
71655         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
71656         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
71657         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
71658         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
71659         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
71660         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
71661         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
71662         lib/yesno.c, lib/yesno.h:
71663         Update FSF postal mail address.
71664
71665 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71666
71667         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
71668         tests/test-memmem.c, tests/test-stpncpy.c:
71669         Update FSF postal mail address.
71670
71671 2005-05-13  Bruno Haible  <bruno@clisp.org>
71672
71673         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
71674         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
71675         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
71676         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
71677         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
71678         Add support for 64-bit integers in the MSVC compiler.
71679
71680 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71681
71682         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
71683
71684 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
71685
71686         * gnulib-tool (func_import): Sort and uniquify recommended includes.
71687
71688 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
71689
71690         * doc/getdate.texi (General date syntax): Don't say that date
71691         date --iso-8601=ns generates acceptable dates; it doesn't yet.
71692         Problem reported by Nic Ferrier.
71693
71694 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71695
71696         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
71697         specified in ai_socktype. Fix invalid ai_protocol
71698         check. ai_protocol is usually set to 0 or depending on
71699         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
71700         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
71701         ai_socktype / ai_protocol in the returned addrinfo structure.
71702
71703 2005-05-10  Simon Josefsson  <jas@extundo.com>
71704
71705         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
71706         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71707
71708 2005-05-10  Karl Berry  <karl@gnu.org>
71709
71710         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
71711         (from http://www.gnu.org/licenses).
71712         * doc/COPYING.LIB: also rename to COPYING.LESSER.
71713         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
71714         fdl.texi suffices.
71715
71716 2005-05-10  Karl Berry  <karl@gnu.org>
71717
71718         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
71719         (COPYING.DOC): remove.
71720
71721         * config/srclist-update: new FSF address.
71722
71723 2005-05-10  Derek Price  <derek@ximbiot.com>
71724
71725         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
71726         possible.
71727
71728 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71729             Bruno Haible  <bruno@clisp.org>
71730
71731         * modules/inet_ntop: New file.
71732         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71733         inet_ntop.
71734
71735 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71736             Bruno Haible  <bruno@clisp.org>
71737
71738         * m4/inet_ntop.m4: New file.
71739
71740 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71741             Bruno Haible  <bruno@clisp.org>
71742
71743         * lib/inet_ntop.h: New file.
71744         * lib/inet_ntop.c: New file, from glibc with modifications.
71745
71746 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
71747
71748         * modules/time_r (License): Change to LGPL.
71749         * modules/extensions (License): Change to LGPL.  Actually,
71750         the license is more permissive than that, but currently gnulib-tool
71751         doesn't know how to handle more-permissive licenses.
71752
71753         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
71754         Problem reported by Dave Love.
71755
71756 2005-05-08  Jim Meyering  <jim@meyering.net>
71757
71758         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
71759         blank.
71760
71761 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71762
71763         * modules/argmatch (Depends-on): Add stdbool.
71764         * modules/backupfile (Depends-on): Likewise.
71765         * modules/chdir-long (Depends-on): Likewise.
71766         * modules/closeout (Depends-on): Likewise.
71767         * modules/cycle-check (Depends-on): Likewise.
71768         * modules/dirname (Depends-on): Likewise.
71769         * modules/fnmatch (Depends-on): Likewise.
71770         * modules/fsusage (Depends-on): Likewise.
71771         * modules/fwriteerror (Depends-on): Likewise.
71772         * modules/getcwd (Depends-on): Likewise.
71773         * modules/getloadavg (Depends-on): Likewise.
71774         * modules/hard-locale (Depends-on): Likewise.
71775         * modules/makepath (Depends-on): Likewise.
71776         * modules/mountlist (Depends-on): Likewise.
71777         * modules/nanosleep (Depends-on): Likewise.
71778         * modules/posixtm (Depends-on): Likewise.
71779         * modules/quotearg (Depends-on): Likewise.
71780         * modules/readtokens (Depends-on): Likewise.
71781         * modules/readtokens0 (Depends-on): Likewise.
71782         * modules/readutmp (Depends-on): Likewise.
71783         * modules/save-cwd (Depends-on): Likewise.
71784         * modules/strftime (Depends-on): Likewise.
71785         * modules/userspec (Depends-on): Likewise.
71786         * modules/utimecmp (Depends-on): Likewise.
71787         * modules/xgetcwd (Depends-on): Likewise.
71788         * modules/xnanosleep (Depends-on): Likewise.
71789         * modules/xstrtod (Depends-on): Likewise.
71790         * modules/yesno (Depends-on): Likewise.
71791
71792 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
71793
71794         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
71795         needless checks.
71796
71797 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71798
71799         Merge from coreutils.  Among other things,
71800         add bulletproofing for cases where stdin, stdout, or stderr are closed.
71801         * lib/fd-safer.c: New file.
71802         * lib/fcntl-safer.h, open-safer.c: Remove.
71803         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
71804         * lib/dup-safer.c: Include unistd-safer.h first.
71805         Don't include errno.h.
71806         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
71807         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
71808         * lib/file-type.c: Rely on file-type.h change.
71809         * lib/getloadavg.c: Include unistd-safer.h.
71810         (getloadavg): Use safer open.
71811         * lib/getusershell.c: Include "stdio-safer.h".
71812         (getusershell): Use safer fopen.
71813         * lib/long-options.c (long_options): Use NULL rather than 0.
71814         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
71815         'free'.
71816         * lib/modechange.c: Likewise.
71817         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
71818         (MODE_DONE): New constant.
71819         (struct mode_change): Remove 'next' member.
71820         (make_node_op_equals): New function; like the old one of the
71821         same name, except it allocates an array.
71822         (mode_compile, mode_create_from_ref): Use it.
71823         (mode_compile): Allocate result as an array, not a linked list.
71824         Parse octal string ourself, so that we catch mistakes like "+0".
71825         (mode_adjust): Arg is an array, not a linked list.
71826         * lib/modechange.c: Include stat-macros.h, xalloc.h.
71827         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
71828         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
71829         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
71830         Remove.  This is now stat-macros.h's job.
71831         (talloc): Remove.  All callers replaced by xalloc, so that
71832         our invokers don't have to worry about reporting memory failures.
71833         (make_node_op_equals): Remove.
71834         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71835         New constants.
71836         (struct mode_change): Moved here from modechange.h.
71837         (mode_append_entry): Remove.
71838         (mode_compile): Remove MASKED_OPS arg, since it encouraged
71839         apps to have incorrect behavior.  Use simpler algorithm for head
71840         and tail.  Don't futz with umask; that's now the job of mode_adjust.
71841         Detect more invalid usages rather than having somewhat-random behavior.
71842         Don't insert an "a=" action, as that leads to incorrect behavior.
71843         (mode_compile, mode_create_from_ref): Return NULL on error instead
71844         of an enum, since now there's only one way to have an error.  All
71845         callers changed.
71846         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
71847         at the correct time.  Simplify calculation of "+u" and its ilk.
71848         Don't mishandle "+X".
71849         (mode_free): Remove "register" and localize decls.
71850         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71851         (struct mode_change): Move to modechange.c; callers don't
71852         need to see this stuff.
71853         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
71854         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
71855         (mode_change, mode_adjust): Reflect the new signatures noted above.
71856         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
71857         that might redefine system include files.
71858         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
71859         (my_usleep): Use NULL rather than (void *) 0.
71860         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
71861         Use siginterrupt to specify that system calls should be interrupted.
71862         (rpl_nanosleep): Move initialization of suspended closer to call of
71863         my_usleep.
71864         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
71865         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
71866         (desirable_utmp_entry): New function.
71867         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
71868         using x2nrealloc, to simplify logic.
71869         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
71870         size calculation.  Do not assume utmp file is a regular file.
71871         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
71872         (READ_UTMP_CHECK_PIDS): New constant.
71873         * lib/save-cwd.c: Include unistd-safer.h.
71874         (save_cwd): Use fd_safer.
71875         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
71876         [!_LIBC] Include "stat-macros.h" instead.
71877         * lib/unistd-safer.h (fd_safer): New decl.
71878
71879 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71880
71881         * modules/getloadavg (Depends-on): Add unistd-safer.
71882         * modules/getusershell (Depends-on): Add stdio-safer.
71883         * modules/lstat (Depends-on): Remove xalloc.
71884         * modules/mkstemp (Depends-on): Add stat-macros.
71885         * modules/modechange (Depends-on): Remove xstrtol.
71886         Add stat-macros, xalloc.
71887         * modules/save-cwd (Depends-on): Add unistd-safer.
71888         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
71889         * modules/unistd-safer (Files): Add lib/fd-safer.c
71890         (Makefile.am): Remove lib_SOURCES.
71891
71892         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
71893         Remove fcntl-safer; unistd-safer supersedes it.
71894
71895 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71896
71897         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
71898         AC_HEADER_STAT.
71899         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
71900         (gl_PREREQ_CHOWN): Remove.
71901         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
71902         it.  Don't require AC_HEADER_STAT.
71903         (gl_PREREQ_LSTAT): Remove.
71904         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
71905         Don't require AC_HEADER_STAT.
71906         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
71907         (gl_PREREQ_RMDIR): Remove.
71908         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
71909         mention stat-macros.h or AC_HEADER_STAT, since we'll make
71910         the stat-macros module a prerequisite.
71911         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
71912         * m4/filemode.m4 (gl_FILEMODE): Likewise.
71913         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
71914         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
71915         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
71916         variable names.
71917         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
71918         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
71919         variable prefixes.
71920         * m4/fcntl-safer.m4: Remove.
71921         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
71922         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
71923         Invoke gl_PREREQ_FD_SAFER.
71924         (gl_PREREQ_FD_SAFER): New macro.
71925         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
71926         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
71927         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
71928         Remove duplicate call to AC_LIBOBJ(readutmp).
71929         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
71930
71931         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
71932         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
71933
71934 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71935
71936         * MODULES.html.sh (Misc): Add byteswap.
71937
71938 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71939
71940         * modules/getcwd (Depends-on): Add extensions.
71941         * modules/openat (Depends-on): Likewise.
71942
71943 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71944
71945         * modules/byteswap: New file.
71946
71947 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71948
71949         * m4/byteswap.m4: New file.
71950
71951 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71952
71953         * lib/byteswap_.h: New file.
71954
71955 2005-04-25  Karl Berry  <karl@gnu.org>
71956
71957         * m4/gettext.m4: Update from GNU gettext 0.14.4.
71958
71959 2005-04-25  Albert Chin  <china@thewrittenword.com>
71960
71961         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
71962         Toolkit C bug.
71963
71964 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
71965
71966         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
71967         (func_ln_if_changed): Remove forcibly for no error message
71968         in case file does not exist.
71969
71970 2005-04-19  Simon Josefsson  <jas@extundo.com>
71971
71972         * gnulib-tool (Options): Make --symlink mean --symbolic.
71973
71974 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
71975
71976         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
71977
71978 2005-04-16  Simon Josefsson  <jas@extundo.com>
71979
71980         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
71981
71982 2005-04-15  Simon Josefsson  <jas@extundo.com>
71983
71984         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
71985
71986 2005-04-15  Simon Josefsson  <jas@extundo.com>
71987
71988         * gnulib-tool: Rename --symlink to --symbolic.
71989
71990 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
71991
71992         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
71993         symbolic links to files instead of copying/moving.  Add --aux-dir,
71994         specifying directory relative --dir where auxiliary build tools
71995         are placed.
71996
71997 2005-04-14  Bruno Haible  <bruno@clisp.org>
71998
71999         * modules/allocsa (License): Change to LGPL.
72000         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72001
72002 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72003
72004         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
72005         that "UTC +1 second" continues to work.  Problem reported
72006         by Dmitry V. Levin.
72007         (relunit_snumber): New rule.
72008         (relunit): Use it.
72009
72010 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72011
72012         * lib/getdate.y (universal_time_zone_table): New constant.
72013         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
72014         universal_time_zone_table.
72015         (lookup_zone): Prefer universal_time_zone_table to
72016         local_time_zone_table, so that "GMT" time stamps are allowed in
72017         London during the summer.  Problem reported by Ian Abbott.
72018
72019 2005-04-12  Jim Meyering  <jim@meyering.net>
72020
72021         * lib/human.c (humblock): Set *options even when returning due to
72022         xstrtoumax conversion failure.  Thanks to a used-uninitialized
72023         warning from gcc-4.
72024
72025 2005-04-09  Jim Meyering  <jim@meyering.net>
72026
72027         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
72028         -Wuninitialized: initialize tm0.tm_year.
72029
72030 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
72031
72032         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
72033         count, since there's no maximum.  All uses changed.
72034         Add member dsts_seen.
72035         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
72036         not being INT_MAX.
72037         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
72038         Use pc_rels_seen to decide whther a date is absolute.
72039
72040         * lib/getdate.y (number): Don't overwrite year.
72041         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
72042         check.
72043
72044 2005-04-02  Simon Josefsson  <jas@extundo.com>
72045
72046         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
72047         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
72048
72049 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
72050
72051         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
72052         where no absolute path name can be longer than PATH_MAX.
72053
72054 2005-03-27  Jim Meyering  <jim@meyering.net>
72055
72056         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
72057
72058 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
72059
72060         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
72061         "one's complement" -> "ones' complement" in comment, as per Knuth.
72062         "value of type" -> "type or expression" in comment.
72063         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
72064
72065 2005-03-26  Jim Meyering  <jim@meyering.net>
72066
72067         Comment nits.
72068         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
72069         Correct typos: s/or/of/.
72070
72071 2005-03-26  Jim Meyering  <jim@meyering.net>
72072
72073         * modules/check-include-files: Move to ../ and rename to...
72074         * check-module: ...this.
72075
72076 2005-03-25  Jim Meyering  <jim@meyering.net>
72077
72078         * modules/xvasprintf (Files): Add xalloc.h.
72079
72080 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72081
72082         * modules/gettext (Files): config/config.rpath ->
72083         build-aux/config.rpath
72084         * modules/iconv (Files): Likewise.
72085         Problem reported by Oskar Liljeblad.
72086
72087 2005-03-23  Jim Meyering  <jim@meyering.net>
72088
72089         * modules/check-include-files: New script to check for
72090         missing dependencies, multiple includes, etc.
72091
72092         * modules/c-strtold (Depends-on): Add xalloc.
72093         * modules/c-strtod (Depends-on): Add xalloc.
72094         * modules/hash (Depends-on): Add xalloc.
72095         (Files): Remove lib/xalloc.h.
72096
72097         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
72098         * modules/userspec (Files): Add lib/inttostr.h.
72099
72100 2005-03-23  Jim Meyering  <jim@meyering.net>
72101
72102         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
72103
72104 2005-03-22  Jim Meyering  <jim@meyering.net>
72105
72106         * modules/stat-macros: New module.
72107         * modules/canonicalize, modules/euidaccess, modules/file-type,
72108         * modules/filemode, modules/lchown, modules/makepath,
72109         * modules/rmdir, modules/stat: Depend on new stat-macros module
72110         rather than listing lib/stat-macros.h manually.
72111         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
72112
72113 2005-03-22  Jim Meyering  <jim@meyering.net>
72114
72115         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
72116
72117 2005-03-22  Bruno Haible  <bruno@clisp.org>
72118
72119         * config/srclist.txt: Replace target directory 'config' with
72120         'build-aux'.
72121         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
72122         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
72123         ../build-aux/.
72124
72125 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
72126
72127         * modules/chdir-long (Depends-on): Add mempcpy.
72128
72129         * modules/acl, modules/backupfile, modules/c-strtod,
72130         modules/c-strtold, modules/canon-host, modules/canonicalize,
72131         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
72132         modules/exclude, modules/exitfail, modules/file-type,
72133         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
72134         modules/getdate, modules/getline, modules/getpagesize,
72135         modules/getpass, modules/getugroups, modules/group-member,
72136         modules/hard-locale, modules/hash, modules/human, modules/idcache,
72137         modules/inttostr, modules/long-options, modules/makepath,
72138         modules/md5, modules/memcasecmp, modules/memcoll,
72139         modules/modechange, modules/mountlist, modules/path-concat,
72140         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
72141         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
72142         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
72143         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
72144         modules/strftime, modules/strndup, modules/strverscmp,
72145         modules/timespec, modules/unlocked-io, modules/userspec,
72146         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
72147         modules/yesno:
72148         Remove lib_SOURCES line from Makefile.am section, as this is now
72149         done automatically by the corresponding Autoconf macro.
72150
72151 2005-03-21  Jim Meyering  <jim@meyering.net>
72152
72153         Changes imported from coreutils.
72154
72155         * lib/cycle-check.c: Don't include xalloc.h.
72156
72157         * lib/path-concat.c: Don't include assert.h.
72158         (path_concat): Remove assertion that would have triggered
72159         for ABASE starting with more than one slash.
72160         Reported by Andreas Schwab.
72161
72162         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
72163         properly when ABASE is an absolute file name.
72164         Correct the description of this function.
72165         Include <assert.h>.
72166         Add an assertion and a test driver.
72167         This fixes a bug introduced on 2004-07-02.
72168         Andreas Schwab reported the resulting failure of cp --parents:
72169         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
72170
72171 2005-03-21  Jim Meyering  <jim@meyering.net>
72172
72173         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
72174         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
72175
72176 2005-03-21  Jim Meyering  <jim@meyering.net>
72177         and  Paul Eggert  <eggert@cs.ucla.edu>
72178
72179         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
72180         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
72181         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
72182         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
72183         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
72184         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
72185         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
72186         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
72187         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
72188         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
72189         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
72190         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
72191         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
72192         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
72193         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
72194         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
72195         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
72196         for these modules.
72197
72198 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
72199
72200         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
72201         (which shouldn't happen), generate nothing instead of returning 0
72202         immediately, so that nstrftime (NULL, ...) doesn't return 0.
72203
72204 2005-03-16  Bruno Haible  <bruno@clisp.org>
72205
72206         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
72207         HAVE_LONGLONG_64BIT.
72208
72209 2005-03-16  Bruno Haible  <bruno@clisp.org>
72210
72211         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
72212         HAVE_LONGLONG_64BIT.
72213
72214 2005-03-16  Bruno Haible  <bruno@clisp.org>
72215
72216         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
72217         HAVE_LONGLONG_64BIT.
72218
72219 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72220
72221         * lib/strftime.c (my_strftime): Prepend space to format so that we can
72222         reliably distinguish strftime failure from empty output on POSIX
72223         hosts.
72224
72225 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72226
72227         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
72228         (iconv_string): Don't guess a size-zero buffer, as that might cause
72229         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
72230         result would be 'too large', where 'too large' is (heuristically)
72231         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
72232         overflow concerns.  This will prevent some unwanted malloc failures
72233         when the inputs are very large.
72234
72235 2005-03-15  Karl Berry  <karl@gnu.org>
72236
72237         * config/srclist.txt (config.rpath): from gettext.
72238         * config/config.rpath: update.
72239
72240 2005-03-15  Bruno Haible  <bruno@clisp.org>
72241
72242         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
72243         to 'negate'.
72244
72245         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
72246         variable.
72247
72248         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
72249         results.
72250
72251 2005-03-14  Simon Josefsson  <jas@extundo.com>
72252
72253         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72254         <fx@gnu.org>.
72255
72256 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72257
72258         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72259         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72260         intprops.h.
72261         * lib/strtol.c: Likewise.
72262
72263 2005-03-14  Jim Meyering  <jim@meyering.net>
72264
72265         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72266         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72267         to be nonzero so that we (and caller) can detect the difference
72268         between a valid zero-length expansion and an error return, even
72269         when the underlying strftime fails before writing anything into
72270         that location.
72271
72272 2005-03-14  Bruno Haible  <bruno@clisp.org>
72273
72274         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72275         Update from GNU gettext 0.14.3.
72276
72277 2005-03-10  Jim Meyering  <jim@meyering.net>
72278
72279         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72280
72281 2005-03-10  Jim Meyering  <jim@meyering.net>
72282
72283         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72284         so that this module works on systems without fchdir.
72285
72286 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72287
72288         Factor int-properties macros into a single file, except for
72289         glibc-related files.
72290         * lib/intprops.h: New file.
72291         * lib/getloadavg.c: Include it instead of limits.h.
72292         (INT_STRLEN_BOUND): Remove.
72293         * lib/human.c: Include intprops.h.
72294         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72295         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72296         302/1000.
72297         * lib/inttostr.h: Include intprops.h instead of limits.h.
72298         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72299         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72300         for consistency with intprops.h.
72301         (time_t_is_integer, twos_complement_arithmetic): Use them.
72302         * lib/sig2str.h: Include <signal.h>, intprops.h.
72303         (INT_STRLEN_BOUND): Remove.
72304         * lib/strftime.c (TYPE_SIGNED): Remove.
72305         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72306         * lib/strtol.c: Adjust comments to match intprops.h.
72307         * lib/userspec.c: Include intprops.h.
72308         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72309         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72310         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72311         instead of rolling our own expressions.
72312         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72313
72314         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72315         instead of int.
72316         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72317         the right thing even if adding 1900 would overflow.  Similarly
72318         for tm_mon + 1 and tm_yday + 1.
72319         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72320         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72321         (DO_SIGNED_NUMBER): New macro.
72322         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72323
72324 2005-03-07  Bruno Haible  <bruno@clisp.org>
72325
72326         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72327
72328 2005-03-07  Bruno Haible  <bruno@clisp.org>
72329
72330         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72331
72332 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72333
72334         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72335         (func_import): Only replace files via --import when they have actually
72336         changed.
72337
72338 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72339
72340         * m4/mmap-anon.m4: New file.
72341         * m4/pagealign_alloc.m4: New file.
72342
72343 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72344             Bruno Haible  <bruno@clisp.org>
72345
72346         * modules/pagealign_alloc: New file.
72347         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72348
72349 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72350             Bruno Haible  <bruno@clisp.org>
72351
72352         * lib/pagealign_alloc.h: New file.
72353         * lib/pagealign_alloc.c: New file.
72354
72355 2005-03-03  Bruno Haible  <bruno@clisp.org>
72356
72357         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72358         Use an all-permissive copyright notice, recommended by RMS.
72359
72360 2005-03-02  Bruno Haible  <bruno@clisp.org>
72361
72362         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72363         of AIX, the replacement has to be done only after <string.h> is
72364         included, therefore not in config.h. stpncpy.h does the replacement,
72365         and stpncpy.c uses it.
72366
72367 2005-03-02  Bruno Haible  <bruno@clisp.org>
72368
72369         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72370         stpncpy.c uses it.
72371
72372 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72373
72374         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72375         The workaround isn't strictly needed for POSIX conformance, and
72376         it's too much of a pain to configure and maintain.  We'll ask
72377         people to fix their kernels instead.
72378         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72379         (NANOSLEEP_BUG_WORKAROUND): Remove.
72380         (xnanosleep): Remove the workaround.
72381
72382 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72383
72384         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72385         Reported by Derek Price.
72386         (Include): Add "timespec.h".
72387
72388         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72389
72390 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72391
72392         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72393         to detect nanosleep bug.
72394
72395 2005-03-01  Bruno Haible  <bruno@clisp.org>
72396
72397         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72398
72399 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72400
72401         * modules/gethrxtime: New file.
72402         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72403         (Depends-on): Add gethrxtime.
72404         (configure.ac): Add gl_XNANOSLEEP.
72405         (Makefile.am): Remove lib_SOURCES line.
72406
72407 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72408
72409         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72410         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72411
72412 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72413
72414         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72415         * lib/timespec.h (gettime): Return void, since it always
72416         succeeds now.  All uses changed.
72417         * lib/gettime.c (gettime): Likewise.
72418         [HAVE_NANOTIME]: Prefer nanotime.
72419         Assume gettimeofday succeeds, as POSIX requires.
72420         Assime time () succeeds, since other code already does.
72421         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72422         (timespec_subtract): Remove.
72423         (NANOSLEEP_BUG_WORKAROUND): New constant.
72424         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72425         things considerably.  Use it only on GNU/Linux hosts, since the
72426         workaround shouldn't be needed elsewhere.
72427
72428 2005-02-24  Bruno Haible  <bruno@clisp.org>
72429
72430         * modules/gettext (Files): Add m4/glibc2.m4.
72431
72432 2005-02-24  Bruno Haible  <bruno@clisp.org>
72433
72434         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72435         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72436         * m4/progtest.m4:
72437         Update from GNU gettext 0.14.2.
72438         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72439
72440 2005-02-24  Bruno Haible  <bruno@clisp.org>
72441
72442         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72443         * lib/config.charset: Update from GNU gettext 0.14.2.
72444
72445 2005-02-24  Bruno Haible  <bruno@clisp.org>
72446
72447         * lib/gettext.h: Update from GNU gettext 0.14.2.
72448
72449 2005-02-23  Simon Josefsson  <jas@extundo.com>
72450
72451         * m4/iconvme.m4: New file.
72452
72453 2005-02-23  Jim Meyering  <jim@meyering.net>
72454
72455         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72456         change.
72457         Thanks to Bruno Haible for catching it.
72458
72459 2005-02-22  Simon Josefsson  <jas@extundo.com>
72460
72461         * modules/iconvme: New file.
72462
72463         * MODULES.html.sh: Add iconvme.
72464
72465 2005-02-22  Simon Josefsson  <jas@extundo.com>
72466
72467         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72468
72469 2005-02-22  Simon Josefsson  <jas@extundo.com>
72470
72471         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
72472
72473 2005-02-22  Jim Meyering  <jim@meyering.net>
72474
72475         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
72476         s/ifndef/ifdef/.
72477
72478 2005-02-20  Neil Conway  <neilc@samurai.com>
72479
72480         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
72481         returned by OSX/Darwin if the specified buffer is not large
72482         enough for the hostname.
72483
72484 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72485
72486         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
72487         pass it to _help, otherwise the latter coredumps trying to
72488         dereference state.root_argp.
72489
72490 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72491
72492         * modules/chdir-long (Depends-on): Add memrchr.
72493         * modules/memrchr (Files): Add lib/memrchr.h.
72494         (Include): "memrchr.h".
72495
72496 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72497
72498         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
72499
72500 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72501
72502         * lib/memrchr.h: New file.
72503         * lib/chdir-long.c: Include it.
72504         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
72505         Don't bother including stddef.h.
72506
72507 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72508
72509         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
72510         inclusion.
72511         Include <sys/types.h>, for dev_t.
72512         (ME_DUMMY, ME_REMOTE): Move from here....
72513         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
72514         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
72515         Dmitry V. Levin.
72516         Include mountlist.h first, to test the interface.
72517
72518 2005-01-29  Bruno Haible  <bruno@clisp.org>
72519
72520         * lib/progname.c (program_name): Initialize.
72521         Needed when linking statically on MacOS X.
72522
72523 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72524
72525         Sync from coreutils.
72526         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
72527         (Depends-on): Add c-strtod.
72528         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
72529
72530 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72531
72532         Sync from coreutils.
72533         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
72534
72535         Remove files that are specific to coreutils.
72536         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
72537
72538 2005-01-28  Bruno Haible  <bruno@clisp.org>
72539
72540         * modules/javacomp: New file.
72541         * MODULES.html.sh (Java): Add javacomp.
72542
72543 2005-01-28  Bruno Haible  <bruno@clisp.org>
72544
72545         * m4/javacomp.m4: New file, from GNU gettext.
72546
72547 2005-01-28  Bruno Haible  <bruno@clisp.org>
72548
72549         * lib/javacomp.sh.in: New file, from GNU gettext.
72550         * lib/javacomp.h: New file, from GNU gettext.
72551         * lib/javacomp.c: New file, from GNU gettext.
72552
72553 2005-01-26  Simon Josefsson  <jas@extundo.com>
72554
72555         * lib/gai_strerror.c: Use GPL in header.
72556
72557 2005-01-26  Bruno Haible  <bruno@clisp.org>
72558
72559         * modules/javaexec: New file.
72560         * MODULES.html.sh (Java): Add javaexec.
72561
72562 2005-01-26  Bruno Haible  <bruno@clisp.org>
72563
72564         * m4/javaexec.m4: New file, from GNU gettext.
72565
72566 2005-01-26  Bruno Haible  <bruno@clisp.org>
72567
72568         * lib/javaexec.sh.in: New file, from GNU gettext.
72569         * lib/javaexec.h: New file, from GNU gettext.
72570         * lib/javaexec.c: New file, from GNU gettext.
72571
72572 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72573
72574         * modules/lchown (Depends-on): Remove lchown.h
72575
72576 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72577
72578         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72579         must be defined if the header file was not found, in order
72580         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72581
72582 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72583
72584         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72585         initializers for struct pentry_state.
72586         (__argp_error): Check return value of __asprintf
72587         (__argp_failure): Translate error message
72588
72589         * lib/argp-parse.c: Removed braces around the expansion of N_()
72590
72591 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72592
72593         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72594         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72595         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72596         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72597         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72598         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72599         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72600         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72601         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72602         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72603         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72604         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72605         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72606         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72607         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72608         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72609         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72610         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72611         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72612         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72613         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72614         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72615         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72616         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72617         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72618         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72619         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72620         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72621         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72622         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72623         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72624         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72625         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72626         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72627         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72628         Use an all-permissive copyright notice, recommended by RMS.
72629
72630 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72631
72632         * modules/chdir-long (Depends-on): Remove mempcpy.
72633
72634 2005-01-21  Jim Meyering  <jim@meyering.net>
72635
72636         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
72637         same value as for Solaris 9.
72638
72639         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
72640         component length.  This included changing the parameter to be
72641         of type `char *' rather than `char const *'.
72642         * lib/chdir-long.h (chdir_long): Update prototype.
72643
72644         * lib/openat.c (fdopendir, fstatat): New functions.
72645         * lib/openat.h: Include headers required for use of DIR and struct
72646         stat.
72647         [AT_SYMLINK_NOFOLLOW]: Define.
72648         (fdopendir, fstatat): Add prototypes.
72649
72650 2005-01-21  Bruno Haible  <bruno@clisp.org>
72651
72652         * modules/classpath: New file.
72653         * MODULES.html.sh (Java): Add classpath.
72654
72655 2005-01-21  Bruno Haible  <bruno@clisp.org>
72656
72657         * lib/classpath.h: New file, from GNU gettext.
72658         * lib/classpath.c: New file, from GNU gettext.
72659
72660 2005-01-20  Simon Josefsson  <jas@extundo.com>
72661
72662         * modules/version-etc-fsf: New file.
72663
72664 2005-01-20  Simon Josefsson  <jas@extundo.com>
72665
72666         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
72667         * lib/version-etc.c: Remove version_etc_copyright.
72668         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
72669         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
72670
72671 2005-01-20  Simon Josefsson  <jas@extundo.com>
72672
72673         * lib/base64.h (isbase64): Add.
72674
72675         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
72676         using a unsigned prototype, don't inline.
72677         (base64_decode): Use it.
72678
72679 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72680
72681         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
72682         it.
72683
72684 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72685
72686         * lib/save-cwd.c (save_cwd): Remove code to support the case
72687         where fchdir is missing or flaky.
72688
72689 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72690
72691         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
72692
72693 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72694
72695         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
72696         AC_LIBSOURCES now does this.
72697         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
72698         with new ullong_max module.
72699
72700 2005-01-19  Bruno Haible  <bruno@clisp.org>
72701
72702         * modules/sh-quote: New file.
72703         * MODULES.html.sh (Executing programs): Add sh-quote.
72704
72705 2005-01-19  Bruno Haible  <bruno@clisp.org>
72706
72707         * lib/sh-quote.h: New file, from GNU gettext.
72708         * lib/sh-quote.c: New file, from GNU gettext.
72709
72710 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72711
72712         Merge from coreutils.
72713         * m4/ullong_max.m4: New file.
72714         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
72715         (gl_MACROS): Assume localeconv exists.
72716
72717 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72718
72719         Merge changes from coreutils, as described below in several
72720         changelogs dated today.
72721
72722         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
72723         (O_DIRECTORY): Remove; not needed here, since "." must be
72724         a directory.  All uses removed.
72725         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
72726         universal on Suns, and we also need to test for IRIX.
72727         Revamp code to use 'if' rather than '#if'.
72728         Avoid unnecessary comparison of cwd->desc to 0.
72729
72730         * lib/utimens.c (futimens): Robustify the previous patch, by checking
72731         for known valid error numbers rather than observed invalid ones.
72732
72733 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72734
72735         * modules/ullong_max: New file.
72736
72737         * modules/chdir-long, modules/openat: New files.
72738         * modules/save-cwd (Depends-on): Depend on chdir-long.
72739         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
72740
72741 2005-01-18  Jim Meyering  <jim@meyering.net>
72742
72743         Merge from coreutils.
72744         * m4/chdir-long.m4, m4/openat.m4: New files.
72745         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
72746         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
72747         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
72748         is sane and DOES follow symlinks.  Besides, testing 20 different
72749         systems found no broken chown implementations.
72750         Prompted by a change in rsync's copy of this macro.
72751         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
72752
72753         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
72754
72755         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
72756         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
72757         NULL-means-set-to-current-time semantics.
72758         Remove temporary file immediately, rather than waiting
72759         for configure's at-exit trap code to do it.
72760
72761 2005-01-18  Jim Meyering  <jim@meyering.net>
72762
72763         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72764
72765         * lib/utimens.c (futimens): Account for the fact that futimes
72766         can also fail with errno == ENOSYS or errno == ENOENT.
72767         Patch from Dmitry V. Levin.
72768
72769         Change the name of the robust chdir function from chdir to chdir_long.
72770         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
72771         (restore_cwd): Use chdir_long, not chdir.
72772         * lib/chdir-long.c: Renamed from chdir.c.
72773         * lib/chdir-long.h: Renamed from chdir.h.
72774         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
72775         Hurd.
72776
72777 2005-01-18  Bruno Haible  <bruno@clisp.org>
72778
72779         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
72780         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
72781         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
72782         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
72783         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
72784         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
72785         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
72786         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
72787         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
72788         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
72789         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
72790         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
72791         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
72792         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
72793         Use an all-permissive copyright notice, recommended by RMS.
72794
72795 2005-01-18  Bob Proulx  <bob@proulx.com>
72796
72797         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
72798         simplify offsetof() macro construct to avoid compile failure with
72799         native HP-UX 11.0 ANSI C compiler.
72800
72801 2005-01-17  Bruno Haible  <bruno@clisp.org>
72802
72803         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
72804         redundant because stpncpy.m4 takes care of it.
72805
72806 2005-01-17  Bruno Haible  <bruno@clisp.org>
72807
72808         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
72809
72810 2005-01-17  Bruno Haible  <bruno@clisp.org>
72811
72812         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
72813         used.
72814
72815 2005-01-17  Bruno Haible  <bruno@clisp.org>
72816
72817         * lib/fwriteerror.h (fwriteerror): Change specification to include
72818         fclose.
72819         * lib/fwriteerror.c: Include <stdbool.h>.
72820         (fwriteerror): At the end, close the file stream. Record whether
72821         stdout was already closed.
72822
72823 2005-01-17  Bruno Haible  <bruno@clisp.org>
72824
72825         * lib/execute.c (environ): Declare if needed.
72826         * lib/pipe.c (environ): Likewise.
72827         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
72828
72829 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72830
72831         * modules/argp: Depend on vsnprintf
72832
72833 2005-01-10  Jim Meyering  <jim@meyering.net>
72834
72835         * modules/closeout (Depends-on): Add atexit.
72836
72837 2005-01-06  Bruno Haible  <bruno@clisp.org>
72838
72839         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
72840
72841 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72842
72843         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
72844         definitions to be after all include files, to avoid collisions.
72845         Problem reported by Bob Proulx.
72846
72847 2005-01-04  Jim Meyering  <jim@meyering.net>
72848
72849         Changes imported from coreutils.
72850         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
72851         as the mkstemp template, use a temporary directory and an
72852         8.3-friendly template to avoid trouble on systems like DJGPP.
72853         Reported by Juan M. Guerrero via Stepan Kasal.
72854         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
72855         close. Remove the temporary directory right away, rather than waiting
72856         for configure's at-exit trap code to do it.
72857         Suggestion from Stepan Kasal.
72858
72859 2005-01-01  Simon Josefsson  <jas@extundo.com>
72860
72861         * gnulib-tool: Print #include directives when --import'ing.
72862
72863 2004-12-28  Simon Josefsson  <jas@extundo.com>
72864
72865         * tests/test-base64.c: Include required header files.  Remove
72866         unused variables.
72867
72868 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72869
72870         * modules/error (Depends-on): Remove gettext.
72871
72872 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72873
72874         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
72875         not needed.  This removes a dependency on the gettext module.
72876         [defined _LIBC]: Do not include <libintl.h>; not needed.
72877
72878 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72879
72880         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
72881         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
72882
72883 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72884
72885         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
72886         HAVE_DECL_STRTOLD.
72887
72888 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72889
72890         * modules/getdate (Depends-on): Remove alloca-opt.
72891
72892 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72893
72894         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
72895
72896 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72897
72898         * lib/argp-parse.c: Include <stddef.h>.
72899         (alignof, alignto): New macros.
72900         (parser_init): Don't assume that void * is aligned sufficiently
72901         for struct option.
72902
72903         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
72904         need to extend the stack.
72905         (YYINITDEPTH): New macro, so that the initial stack isn't overly
72906         large.
72907
72908 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72909
72910         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
72911
72912 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72913
72914         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
72915         (2004-10-24) change.  Apparently this was a false alarm.
72916
72917         * modules/getdate: Depend on alloca-opt, not alloca.
72918
72919 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72920
72921         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
72922         Remove now-obsolete comment about AIX.
72923         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
72924         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
72925         (YYMAXDEPTH): New macro.
72926
72927 2004-12-18  Simon Josefsson  <jas@extundo.com>
72928
72929         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
72930
72931 2004-12-18  Bruno Haible  <bruno@clisp.org>
72932
72933         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
72934
72935 2004-12-18  Bruno Haible  <bruno@clisp.org>
72936
72937         * lib/fatal-signal.c (fatal_signals): Make non-const.
72938         (init_fatal_signals): New function.
72939         (uninstall_handlers, install_handlers): Ignore signals that were set to
72940         SIG_IGN.
72941         (at_fatal_signal): Call init_fatal_signals.
72942         (init_fatal_signal_set): Likewise. Ignore signals that were set to
72943         SIG_IGN.
72944         Reported by Paul Eggert.
72945
72946 2004-12-18  Bruno Haible  <bruno@clisp.org>
72947
72948         * doc/alloca.texi: New file.
72949         * doc/alloca-opt.texi: New file.
72950
72951 2004-12-17  Jim Meyering  <jim@meyering.net>
72952
72953         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
72954         Otherwise, install-sh could exit with improper exit status when
72955         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
72956
72957 2004-12-16  Simon Josefsson  <jas@extundo.com>
72958
72959         * tests/test-base64.c: Add license.
72960
72961 2004-12-15  Stepan Kasal  <address@hidden>
72962
72963         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
72964
72965 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
72966
72967         * modules/getcwd (Files): Add m4/d-ino.m4.
72968         Suggested by Mark D. Baushke.
72969
72970 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72971
72972         * lib/getdate.y (textint): New member "negative".
72973         (time_zone_hhmm): New function.
72974         Expect 14 shift-reduce conflicts, not 13.
72975         (o_colon_minutes): New rule.
72976         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
72977         (yylex): Set the "negative" member of signed numbers.
72978
72979 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72980
72981         * doc/getdate.texi (Time of day items, Time zone items):
72982         Describe new formats +00:00, UTC+00:00.
72983
72984 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72985
72986         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
72987         spurious "-l"s.  Problem reported by Stepan Kasal.
72988
72989 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
72990
72991         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
72992         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
72993
72994 2004-12-04  Simon Josefsson  <jas@extundo.com>
72995
72996         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
72997         Vandoorselaere <yoann@prelude-ids.org>.
72998
72999 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73000
73001         Changes imported from coreutils.
73002         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
73003         exist.
73004         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
73005
73006 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73007
73008         Changes imported from coreutils.
73009         * lib/hard-locale.c: Assume <locale.h> exists.
73010         Include "strdup.h".
73011         (GLIBC_VERSION): New macro.
73012         (hard_locale): Assume setlocale exists.
73013         Rewrite to avoid #ifdef.
73014         Use strdup rather than malloc + strcpy.
73015         * lib/human.c: Assume <locale.h> exists.
73016         (human_readable): Assume localeconv exists.
73017
73018 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73019
73020         * modules/hard-locale (Depends-on): Add strdup.
73021
73022 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73023
73024         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
73025         convert T2, not T.  (Imported from libc.)
73026
73027 2004-11-30  Simon Josefsson  <jas@extundo.com>
73028
73029         * modules/restrict (License): Change to LGPL.
73030
73031 2004-11-30  Simon Josefsson  <jas@extundo.com>
73032
73033         * m4/restrict.m4: Add copyright and copying conditions.
73034
73035 2004-11-30  Simon Josefsson  <jas@extundo.com>
73036
73037         * m4/base64.m4: New file.
73038
73039 2004-11-30  Simon Josefsson  <jas@extundo.com>
73040
73041         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
73042         base64.
73043
73044         * tests/test-base64.c: New file.
73045
73046         * modules/base64: New file.
73047
73048 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73049
73050         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
73051         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
73052
73053         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
73054
73055 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73056
73057         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
73058         (__getcwd.c): Don't restore errno; glibc doesn't.
73059         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
73060         first, falling back to our code only if its results look suspicious.
73061         Ensure that the resulting buffer is only as large as necessary.
73062
73063         * lib/readutmp.c: Include readutmp.h first.
73064         Include <errno.h>, since readutmp.h no longer does that.
73065         * lib/readutmp.h: Don't include <errno.h>,
73066         <sys/param.h>, <time.h>; not needed to establish interface.
73067         (errno): Remove decl.
73068         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
73069         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
73070         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
73071
73072 2004-11-28  Simon Josefsson  <jas@extundo.com>
73073
73074         * lib/base64.h, base64.c: New file.
73075
73076 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73077
73078         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
73079
73080 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73081
73082         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
73083         (Depends-on): Remove pathmax, same.  Add mempcpy.
73084         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
73085         (Makefile.am): Append getcwd.h to lib_SOURCES.
73086         (Include): Add getcwd.h.
73087         (Maintainer): Change from Jim Meyering to "all, glibc",
73088         since getdate now uses intended-for-glibc code.
73089         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
73090         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
73091
73092 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73093
73094         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
73095         HP's ANSI C compiler.
73096         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
73097         Declaring int functions causes warnings on some modern systems and
73098         shouldn't be needed to compile on ancient ones.
73099         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
73100         defined.
73101
73102         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
73103         with the following changes.
73104         (__set_errno): Parenthesize properly.
73105         Include <stdbool.h>.
73106         (MIN, MAX, MATCHING_INO): New macros.
73107         (__getcwd): Define with prototype, not K&R form.
73108         Use heuristics to allocate default buffer on stack if possible.
73109         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
73110         behavior, and to avoid the PATH_MAX limit when computing
73111         ../../../../...
73112         Use MATCHING_INO to compare inode number to file.
73113         Check for arithmetic overflow in size calculations.
73114         Fix bug in reallocation of dot array that caused getcwd to fail
73115         on directories nested deeper than 75.
73116         Be more careful about saving errno on error.
73117         Do not use realloc; use only free+malloc, as this is a bit
73118         more flexible and avoids a needless copy operation.
73119         Do not inspect st_dev and st_ino for symbolic links; POSIX
73120         doesn't specify the latter.
73121         Check for closedir errors.
73122         Avoid needless casts.
73123         Use "#ifdef weak_alias" around weak_alias, to be like other
73124         glibc code.
73125         The following changes to getcwd.c have effect only when used in
73126         gnulib; they have no effect inside glibc proper.
73127         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
73128         as alloca isn't used.
73129         (alloca, __alloca): Likewise.
73130         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
73131         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73132         unconditionally, as gnulib assumes C89 or better.
73133         Do not include <sys/param.h>.
73134         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
73135         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
73136         better.
73137         (NULL) [!defined NULL]: Remove; we assume C89 or better.
73138         Include <dirent.h> in a way that is compatible with modern Autoconf.
73139         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
73140         New macros, if not already defined.
73141         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
73142         Use "_LIBC", not "defined _LIBC", for consistency.
73143         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
73144         a mempcpy module.
73145         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
73146         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
73147         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
73148         credit only to Jim Meyering and adjust the copyright dates.
73149         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
73150         <stdlib.h>, <unistd.h>, "pathmax.h".
73151         Instead, include "xgetcwd.h" (first) and "getcwd.h".
73152         (INITIAL_BUFFER_SIZE): Remove.
73153         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
73154
73155 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73156
73157         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
73158         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
73159         Use the _ONCE methods, for efficiency.
73160         Check for fcntl.h.  In test program, include <errno.h>
73161         and <fcntl.h> if available.  Remove old K&R cruft from
73162         test program.  Check for common errors in GNU/Linux,
73163         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
73164         don't do AC_LIBOBJ, as that's getcwd.m4's job.
73165         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
73166         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
73167         name accordingly.
73168         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
73169         accommodate new getcwd.c.
73170         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
73171         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
73172         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
73173         that's all we need now.
73174
73175 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73176
73177         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
73178         argp-parse.c depends on getopt internals, that means we should
73179         always use our getopt, to be on the safe side.
73180         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
73181         order not to spoil the result of an eventual previous invocation
73182         of gl_GETOPT_SUBSTITUTE.
73183
73184 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73185
73186         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
73187         redefinition warnings. To avoid them, include the defines
73188         in `#if !defined __need_getopt ... #endif'. The only place
73189         where __getopt_argv_const is used is in definitions
73190         of getopt_long and getopt_long_only below, which are as well
73191         protected by `#ifndef __need_getopt'.
73192         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
73193         __need_getopt after including <stdio.h> and <unistd.h> These
73194         headers might have defined it.
73195
73196 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73197
73198         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
73199
73200 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73201
73202         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
73203         (futimens): New function, which uses futimes if available.
73204         (futimens, utimens): Support timespec==NULL, with same semantics
73205         as utime and utimens.
73206         * lib/utimens.h (futimens): New decl.
73207
73208 2004-11-23  Jim Meyering  <jim@meyering.net>
73209
73210         * lib/getopt_.h: Remove trailing blanks.
73211
73212 2004-11-23  Jim Meyering  <jim@meyering.net>
73213
73214         * lib/__fpending.c: Add comment.
73215
73216 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
73217
73218         * modules/canonicalize (Depends-on): Add xreadlink.
73219         Problem reported by James Youngman.
73220
73221 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73222
73223         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
73224         New macros.
73225         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
73226         optopt): Use them instead of invoking ## directly; otherwise, the
73227         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
73228
73229 2004-11-19  Bruno Haible  <bruno@clisp.org>
73230
73231         * lib/strtok_r.c: Move comments from here...
73232         * lib/strtok_r.h: ... to here.
73233
73234 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73235
73236         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
73237         implementations that mishandle size_t overflow.
73238
73239 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73240
73241         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
73242         might fail.  Problem reported by Yoann Vandoorselaere.
73243         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
73244         implementations that mishandle size_t overflow.
73245
73246 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73247
73248         * modules/canon-host (Depends-on): Add strdup.
73249
73250 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73251
73252         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73253
73254 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73255
73256         * lib/canon-host.c: Include "strdup.h".
73257         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73258         Use strdup instead of malloc/strcpy to duplicate strings.
73259
73260         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73261         (human_space_before_unit): New constant.
73262         * lib/human.c (human_readable): Support it.
73263
73264         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73265         (xgetcwd): Set errno correctly when failing.
73266         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73267         the failure is actually due to a PATH_MAX problem.
73268
73269         Further getopt changes to make it more likely that glibc will
73270         buy the changes back.
73271         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73272         (getopt): Use it, so to preserve glibc semantic
73273         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73274         when compiling for libc.
73275         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73276         (getopt_long, getopt_long_only): Use it.
73277
73278         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73279         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73280         (getopt): Argv is now char * const *, as per standard.
73281         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73282         not char *__getopt_argv_const *.
73283         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73284         _getopt_long_only_r): Likewise.
73285         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73286         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73287         _getopt_long_r, _getopt_long_only_r): Likewise.
73288         * lib/getopt_.h (__getopt_argv_const): Remove.
73289         (getopt): Argv is now char * const *, as per standard.
73290
73291         * lib/getdate.y (tORDINAL): New token.
73292         (day, relunit): Allow it for relative times.
73293         (relative_time_table): Use tORDINAL for ordinals.
73294
73295 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73296
73297         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73298         Document that "second" isn't allowed as an ordinal number.
73299
73300 2004-11-16  Jim Meyering  <jim@meyering.net>
73301
73302         * modules/closeout (Depends-on): Add fpending.
73303
73304 2004-11-15  Jim Meyering  <jim@meyering.net>
73305
73306         * lib/closeout.c: Include "__fpending.h" once again.
73307         Include <stdbool.h>.
73308         (close_stdout): Don't fail just because stdout was closed initially,
73309         since some programs don't write to stdout in the normal course of
73310         operation (other than --version and --help), and we don't want this
73311         function to make e.g. `touch file >&-' fail.
73312         But do fail if it was closed and someone has tried to write to it.
73313         E.g., `printf foo >&-' must fail.
73314
73315 2004-11-13  Jim Meyering  <jim@meyering.net>
73316
73317         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73318
73319 2004-11-12  Simon Josefsson  <jas@extundo.com>
73320
73321         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73322         small doc fix is still pending.
73323
73324 2004-11-11  Simon Josefsson  <jas@extundo.com>
73325
73326         * modules/strtok_r: New file.
73327
73328         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73329         strtok_r.
73330
73331 2004-11-11  Simon Josefsson  <jas@extundo.com>
73332
73333         * m4/strtok_r.m4: New file.
73334
73335         * m4/getopt.m4: Replace opterr.
73336
73337 2004-11-11  Simon Josefsson  <jas@extundo.com>
73338
73339         * lib/strtok_r.h, strtok_r.c: New file.
73340
73341 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73342
73343         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73344         of replacing opterr, getopt, etc.  This should handle the
73345         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73346
73347 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73348
73349         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73350         we can stop lying to compilers about the constness of argv when we
73351         are compiled outside glibc.
73352         (getopt, getopt_long, getopt_long_only): Use it.
73353         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73354         _getopt_internal, getopt): Likewise.
73355         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73356         _getopt_long_only_r): Likewise.
73357         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73358         _getopt_long_r, _getopt_long_only_r): Likewise.
73359
73360         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73361         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73362         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73363         the other external symbols.
73364         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73365         declaration, since the above renaming now works around collisions.
73366
73367 2004-11-11  Jim Meyering  <jim@meyering.net>
73368
73369         * lib/linebreak.c: Remove trailing blanks.
73370         * lib/alloca_.h: Likewise.
73371         * lib/acosl.c: Likewise.
73372         * lib/euidaccess.c: Likewise.
73373         * lib/allocsa.h: Likewise.
73374
73375 2004-11-10  Simon Josefsson  <jas@extundo.com>
73376
73377         * m4/getaddrinfo.m4: New file.
73378
73379 2004-11-10  Simon Josefsson  <jas@extundo.com>
73380
73381         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73382
73383 2004-11-10  Simon Josefsson  <jas@extundo.com>
73384
73385         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73386         getaddrinfo.
73387
73388         * modules/getaddrinfo: New file.
73389
73390 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73391
73392         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73393
73394 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73395
73396         * lib/mktime.c (SHR): New macro, which is a portable
73397         substitute for >> that should work even on Crays.
73398         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73399         Problem reported by Mark D. Baushke in
73400         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73401         * lib/getdate.y (SHR): Likewise.
73402         (tm_diff): Use it.
73403         * lib/strftime.c (SHR): Likewise.
73404         (tm_diff): Use it.
73405         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73406         quote_these_too, so that right shifts are well defined.  All uses
73407         changed.
73408
73409 2004-11-10  Jim Meyering  <jim@meyering.net>
73410
73411         Ensure that no close failure goes unreported.
73412         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73413         return early when it seems there's nothing to flush.
73414         Don't include __fpending.h.
73415
73416 2004-11-10  Jim Meyering  <jim@meyering.net>
73417
73418         * modules/closeout (Depends-on): Remove fpending.
73419
73420 2004-11-10  Jim Meyering  <jim@meyering.net>
73421
73422         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73423
73424 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73425
73426         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73427         gl_FUNC_STRFTIME.
73428         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73429         and AC_REQUIRE when possible, to avoid duplicate checks.
73430         Check for <wchar.h>.
73431
73432 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73433
73434         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73435
73436 2004-11-09  Bruno Haible  <bruno@clisp.org>
73437
73438         * m4/sockpfaf.m4: New file.
73439
73440 2004-11-05  Bruno Haible  <bruno@clisp.org>
73441
73442         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73443         Reported by Mark D. Baushke <mdb@cvshome.org>.
73444
73445 2004-11-04  Bruno Haible  <bruno@clisp.org>
73446
73447         2004-09-11  Bruno Haible  <bruno@clisp.org>
73448                 * allocsa.valgrind: New file.
73449         2004-02-06  Bruno Haible  <bruno@clisp.org>
73450                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73451                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73452                 Reported by Christopher Seip <chris.seip@hp.com>.
73453
73454 2004-11-04  Bruno Haible  <bruno@clisp.org>
73455
73456         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73457         (Makefile.am): Distribute it.
73458
73459 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73460
73461         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73462         with errno == ERANGE if the buffer is too small.
73463         Problem reported by Mark D. Baushke.
73464
73465 2004-11-03  Albert Chin  <china@thewrittenword.com>
73466             Paul Eggert  <eggert@cs.ucla.edu>
73467
73468         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73469         equivalent, substitute $ac_type for equivalent type rather than
73470         blindly using uint32_t *always* which won't work if uint32_t is not
73471         available.  Define _UINT32_T to work around typedef of uint32_t if
73472         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
73473         2.5.1.
73474
73475 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73476
73477         * m4/jm-macros.m4: Sync from coreutils.
73478         (gl_MACROS): Check for mbrlen, for pathchk.
73479         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
73480
73481 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73482
73483         * lib/xreadlink.c (MAXSIZE): New macro.
73484         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
73485         size does not exceed MAXSIZE.  Avoid cast.
73486         As suggested by Mark D. Baushke in
73487         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
73488         if readlink fails with buffer size just under MAXSIZE, try again
73489         with MAXSIZE.
73490
73491 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73492
73493         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
73494
73495 2004-11-02  Derek R. Price  <derek@ximbiot.com>
73496         and  Paul Eggert  <eggert@cs.ucla.edu>
73497
73498         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
73499         (get_date): Overparenthesize to avoid GCC warning.
73500
73501 2004-11-02  Bruno Haible  <bruno@clisp.org>
73502
73503         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
73504         returns void.
73505
73506 2004-11-02  Bruno Haible  <bruno@clisp.org>
73507
73508         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
73509         function returns void.
73510
73511 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73512
73513         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
73514         fflush_unlocked, flockfile, funlockfile, funlockfile,
73515         fputs_unlocked, putc_unlocked.
73516
73517 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73518
73519         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73520         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
73521         already declared.
73522
73523 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73524
73525         * modules/getdate (Files): Add doc/getdate.texi.
73526         (Depends-on): Add setenv, xalloc.
73527
73528 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73529
73530         * lib/getdate.y: Add support for TZ="foo" within a date string.
73531         Fix some bugs near time_t boundaries.  Reject dates with
73532         out-of-range components, e.g., "Sept 31".
73533         Include <stdlib.h>, "setenv.h", "xalloc.h".
73534         (ISDIGIT_LOCALE): Remove; unused.
73535         Note that the TZ and time functions used here are not reentrant.
73536         (mktime_ok, get_tz): New functions.
73537         (TZBUFSIZE): New constant.
73538         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
73539         This requires that we sometimes generate our own TZ="XXX..." setting.
73540
73541 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73542
73543         * doc/getdate.texi: New file, from coreutils with modifications for
73544         the new TZ parsing.
73545
73546 2004-10-27  Derek R. Price  <derek@ximbiot.com>
73547
73548         * lib/mktime.c (not_equal_tm): Remove redundant check.
73549
73550 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73551
73552         * modules/regex (lib_SOURCES): Add regex.c.
73553         Reported by James Youngman in
73554         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
73555
73556 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73557
73558         * lib/getdate.y: Use Bison 1.875 features, and some minor
73559         code cleanups.  This change does not affect semantics.
73560         Don't include <stdlib.h>; no longer needed.
73561         Don't include unlocked-io.h; only the "#if TEST" code uses
73562         stdio, and performance isn't crucial there.
73563         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73564         Bison 1.875 features as described below.
73565         All uses of "PC." replaced by "pc->".
73566         (YYSTYPE): Add a forward declaration.
73567         (yylex, yyerror): Use full prototypes in forward decls.
73568         Use "%pure-parser" rather than obsolescent "%pure_parser".
73569         Use %parse-param and %lex-param instead of obsolescent
73570         YYPARSE_PARAM and YYLEX_PARAM.
73571         (meridian_table, month_and_day_table, time_units_table,
73572         relative_time_table, time_zone_table, military_table,
73573         lookup_zone, lookup_word, get_date):
73574         Use NULL instead of 0 where appropriate.
73575         (to_hour): Avoid abort (), to avoid a dependency on
73576         stdlib.h.
73577         (yyerror, yylex): Now accepts parser_control * arg.
73578         (main) [TEST]: Use '\0' rather than 0 for char.
73579
73580 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73581
73582         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73583
73584 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73585
73586         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73587         It's now the caller's responsibility to handle the case where
73588         !HAVE_GETPAGESIZE && !defined getpagesize.
73589
73590         * lib/mktime.c (leapyear): Arg is long int, not int.
73591
73592 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73593
73594         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73595
73596 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73597
73598         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73599         missing.  Problem reported by James Youngman.
73600
73601 2004-10-16  Simon Josefsson  <jas@extundo.com>
73602
73603         * gnulib-tool: Fix comments.  Fix parse problem.
73604         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73605
73606 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73607
73608         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73609         implementation of getopt_long.  Problem reported by Alexander Taler in:
73610         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73611
73612 2004-10-15  Bruno Haible  <bruno@clisp.org>
73613
73614         * gnulib-tool: Untabify. Initialize supplied_libname.
73615         (func_usage): More homogenous output.
73616         (func_modules_transitive_closure, func_modules_to_filelist,
73617         func_emit_lib_Makefile_am): New functions.
73618         (func_import): New function, extracted from big case statement. Use
73619         func_get_license, func_modules_transitive_closure,
73620         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73621         opt_lgpl. Don't use test -a, as it's not portable.
73622         (func_create_testdir): Use func_modules_transitive_closure,
73623         func_modules_to_filelist, func_emit_lib_Makefile_am.
73624
73625 2004-10-15  Bruno Haible  <bruno@clisp.org>
73626
73627         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73628
73629 2004-10-15  Bruno Haible  <bruno@clisp.org>
73630
73631         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73632         the portions belonging to each module.
73633         Suggested by Derek Robert Price <derek@ximbiot.com>.
73634
73635 2004-10-12  Simon Josefsson  <jas@extundo.com>
73636
73637         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73638         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
73639         to real functions.
73640
73641 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73642
73643         * modules/vsnprintf: New file.
73644
73645 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73646
73647         * m4/vsnprintf.m4: New file.
73648
73649 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73650
73651         * lib/vsnprintf.h: New file.
73652         * lib/vsnprintf.c: New file.
73653
73654 2004-10-11  Bruno Haible  <bruno@clisp.org>
73655
73656         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
73657         vsnprintf.
73658
73659 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73660
73661         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
73662
73663 2004-10-07  Bruno Haible  <bruno@clisp.org>
73664
73665         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
73666         fits into the provided buffer.
73667
73668 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73669
73670         * lib/diacrit.c, diacrit.h: Add GPL notice.
73671
73672         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
73673         notice.
73674         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
73675         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
73676         This avoids a potential constant-folding bug.
73677
73678 2004-10-05  Bruno Haible  <bruno@clisp.org>
73679
73680         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
73681         for the declaration of strsep.
73682
73683 2004-10-05  Bruno Haible  <bruno@clisp.org>
73684
73685         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
73686
73687 2004-10-04  Simon Josefsson  <jas@extundo.com>
73688
73689         * modules/memmem: New file.
73690         * tests/test-memmem.c: New file.
73691         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
73692
73693 2004-10-04  Simon Josefsson  <jas@extundo.com>
73694
73695         * m4/memmem.m4: New file.
73696
73697 2004-10-04  Simon Josefsson  <jas@extundo.com>
73698
73699         * lib/memmem.h: New file.
73700         * lib/memmem.c: New file, taken from glibc.
73701
73702 2004-10-04  Simon Josefsson  <jas@extundo.com>
73703
73704         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
73705         '#ifdef USE_UNLOCKED_IO'.
73706
73707 2004-10-04  Simon Josefsson  <jas@extundo.com>
73708
73709         * config/srclist.txt: Add memmem from glibc.
73710
73711 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73712
73713         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
73714
73715         * modules/argmatch, modules/argp, modules/closeout, modules/error,
73716         modules/exclude, modules/getdate, modules/getline,
73717         modules/getndelim2, modules/getpass, modules/getpass-gnu,
73718         modules/getusershell, modules/linebuffer, modules/md5,
73719         modules/mountlist, modules/posixtm, modules/readtokens,
73720         modules/readutmp, modules/regex, modules/sha1,
73721         modules/version-etc, modules/yesno:
73722         Remove dependency on unlocked-io.
73723
73724 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73725
73726         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
73727
73728         * m4/unlocked-io.m4: Add copyright notice.
73729         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
73730
73731 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73732
73733         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
73734         * lib/xmalloc.c (xmemdup): Likewise.
73735         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
73736         XFREE): Remove these long-obsolescent macros.
73737         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
73738         * lib/xstrdup.c: Remove.
73739
73740         * lib/regex.c (re_comp): Cast gettext return value to char *,
73741         Problem reported by Martin Neitzel via Mark D. Baushke.
73742
73743 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73744
73745         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
73746         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
73747         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
73748         regex.c, sha1.c, version-etc.c, yesno.c:
73749         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
73750         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
73751         the includer's responsibility.
73752
73753         Sync from coreutils.
73754
73755         * lib/modechange.c (mode_compile): Don't decrement a pointer that
73756         points to the start of a string, as the C Standard says the
73757         resulting behavior is undefined.
73758
73759         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
73760         simple -> simple_backups, numbered_existing ->
73761         numbered_existing_backups, numbered -> numbered_backups
73762         to avoid shadowing problems.  All uses changed.
73763         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
73764         * lib/backupfile.c (check_extension, numbered_backup):
73765         Rename locals to avoid shadowing 'basename'.
73766         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
73767         once.
73768
73769         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
73770         * lib/.cvsignore: Add getopt.h.
73771
73772 2004-10-04  Bruno Haible  <bruno@clisp.org>
73773
73774         * modules/README: New file.
73775         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
73776         not a module.
73777
73778 2004-10-02  Jim Meyering  <jim@meyering.net>
73779
73780         * lib/dirfd.h, getpagesize.h: Add copyright notice.
73781
73782 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73783
73784         * modules/strsep: New file.
73785
73786 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73787
73788         * m4/strsep.m4: New file.
73789
73790 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73791
73792         * lib/strsep.h: New file.
73793         * lib/strsep.c: New file.
73794
73795 2004-10-01  Simon Josefsson  <jas@extundo.com>
73796
73797         * lib/snprintf.c (snprintf): Handle size==0.
73798
73799 2004-10-01  Simon Josefsson  <jas@extundo.com>
73800             Bruno Haible  <bruno@clisp.org>
73801
73802         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
73803         (snprintf): Declare 'args'.
73804
73805 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
73806
73807         * lib/snprintf.c: Remove comments as to why each header is needed.
73808
73809 2004-10-01  Bruno Haible  <bruno@clisp.org>
73810
73811         * MODULES.html.sh: Add strsep.
73812
73813 2004-09-30  Simon Josefsson  <jas@extundo.com>
73814
73815         * modules/snprintf: New file.
73816
73817 2004-09-30  Simon Josefsson  <jas@extundo.com>
73818
73819         * m4/snprintf.m4: New file.
73820
73821 2004-09-30  Simon Josefsson  <jas@extundo.com>
73822
73823         * lib/snprintf.h, lib/snprintf.c: New files.
73824
73825 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73826
73827         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
73828         (hol_entry_help): Never translate an empty string.
73829         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
73830         * lib/argp.h (OPTION_NO_TRANS): New option.
73831
73832 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73833
73834         * modules/argp (Maintainer): Replace Simon Josefsson
73835         by Sergey Poznyakoff.
73836
73837 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73838
73839         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
73840         changes merged back into glibc.
73841
73842 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73843
73844         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
73845
73846 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73847
73848         * lib/xvasprintf.c: Include xalloc.h.
73849         (xvasprintf): Use xalloc_die, not xmalloc_die.
73850
73851 2004-09-29  Bruno Haible  <bruno@clisp.org>
73852
73853         * modules/alloca-opt: New file, derived from modules/alloca.
73854         * modules/allocsa: Depend on alloca-opt instead of alloca.
73855         * modules/setenv: Likewise.
73856         * modules/vasnprintf: Likewise.
73857         * MODULES.html.sh: Add alloca-opt.
73858
73859 2004-09-28  Simon Josefsson  <jas@extundo.com>
73860
73861         * gnulib-tool: New parameter --lgpl, to asseert that modules are
73862         LGPL, and to replace license template from GPL to LGPL.
73863
73864 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73865
73866         * modules/dummy: Change license to LGPL.
73867
73868 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73869
73870         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
73871
73872 2004-09-24  Simon Josefsson  <jas@extundo.com>
73873
73874         * modules/minmax (License): Change from GPL to LGPL.
73875
73876 2004-09-23  Simon Josefsson  <jas@extundo.com>
73877
73878         * gnulib-tool (--import): Typo.
73879
73880 2004-09-23  Simon Josefsson  <jas@extundo.com>
73881
73882         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
73883
73884 2004-09-22  Bruno Haible  <bruno@clisp.org>
73885
73886         * modules/*: Add 'License' field.
73887         * gnulib-tool: Accept --extract-license option.
73888         (func_get_license): New function.
73889
73890 2004-09-21  Bruno Haible  <bruno@clisp.org>
73891
73892         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
73893         Reported by Simon Josefsson.
73894
73895 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73896
73897         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
73898         gl_AC_TYPE_LONG_LONG.
73899
73900 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73901
73902         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
73903
73904 2004-09-18  Simon Josefsson  <jas@extundo.com>
73905         and  Paul Eggert  <eggert@cs.ucla.edu>
73906
73907         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
73908         calls with autoreconf.  Define GL_LIB.
73909
73910 2004-09-14  Karl Berry  <karl@gnu.org>
73911
73912         * config/srclist.txt: unsync setenv.c, sigh.
73913
73914 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73915
73916         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
73917         Problem reported by Bruno Haible in:
73918         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
73919
73920 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73921
73922         * config/srclist.txt: Comment out argp-pvh.c.
73923
73924 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
73925
73926         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
73927         in case some system header has #define'd it.  Problem reported by
73928         Soeren D. Schulze in
73929         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
73930
73931 2004-09-09  Karl Berry  <karl@gnu.org>
73932
73933         * regex.[ch]: delete from the root.  These were supposed to be
73934                 synced with emacs cvs, but this has not happened for about
73935                 a year, and anyway nothing else uses emacs regex.[ch].
73936                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
73937                 lib/regex[.ch] is untouched.
73938
73939 2004-09-09  Bruno Haible  <bruno@clisp.org>
73940
73941         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
73942
73943 2004-09-09  Bruno Haible  <bruno@clisp.org>
73944
73945         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
73946         modifications.
73947         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
73948
73949 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73950
73951         * modules/xvasprintf: New file.
73952         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
73953
73954 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73955
73956         * lib/xvasprintf.h: New file.
73957         * lib/xvasprintf.c: New file.
73958         * lib/xasprintf.c: New file.
73959
73960 2004-09-08  Bruno Haible  <bruno@clisp.org>
73961
73962         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
73963
73964 2004-09-08  Bruno Haible  <bruno@clisp.org>
73965
73966         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
73967         length is > INT_MAX.
73968         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
73969         more.
73970
73971 2004-09-08  Bruno Haible  <bruno@clisp.org>
73972
73973         * lib/stdint_.h: New file, taken from GNU clisp.
73974
73975 2004-09-08  Bruno Haible  <bruno@clisp.org>
73976             Oskar Liljeblad  <oskar@osk.mine.nu>
73977
73978         * modules/stdint: New file.
73979         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
73980
73981 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73982
73983         Import from coreutils.
73984         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
73985         strings on unbounded length.  alloca's performance benefits aren't
73986         that important here.
73987         (V_STRDUP): Remove.
73988         (parse_with_separator): New function, with most of the internals
73989         of the old parse_user_spec.  Allow user to omit both user and group,
73990         for compatibility with FreeBSD.
73991         Clone only the user name, not the entire spec.
73992         Do not set *uid, *gid unless entirely successful.
73993         Avoid memory leak in some failing cases.
73994         Fix regression for USER.GROUP reported by Dmitry V. Levin in
73995         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
73996         (parse_user_spec): Rewrite to use parse_with_separator.
73997
73998 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73999
74000         * modules/userspec: Don't depend on alloca.
74001
74002 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74003
74004         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
74005
74006 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74007
74008         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
74009         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
74010         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
74011
74012 2004-08-16  Simon Josefsson  <jas@extundo.com>
74013
74014         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
74015         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
74016         Add --dry-run for --import.
74017         Let user provided command line parameters override configure.ac
74018         settings.
74019
74020 2004-08-12  Simon Josefsson  <jas@extundo.com>
74021
74022         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
74023         as discussed with Paul Eggert in threads rooted at
74024         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
74025         and
74026         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
74027         Before, the test was empty, and relied on ELIDE_CODE in source
74028         code.)
74029         (gl_PREREQ_GETOPT): New macro.
74030         (gl_GETOPT): Use them.
74031
74032 2004-08-12  Simon Josefsson  <jas@extundo.com>
74033
74034         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
74035         * lib/getopt_.h: Renamed from getopt.h.
74036
74037 2004-08-12  Simon Josefsson  <jas@extundo.com>
74038
74039         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
74040         Change default library name from libfoo to libgnu.
74041         Now, if you have a configure.ac that says:
74042                 gl_SOURCE_BASE(gl)
74043                 gl_M4_BASE(gl/m4)
74044                 gl_MODULES(error getopt etcetera)
74045                 gl_INIT
74046         you can import all you need by running:
74047                 ../gnulib/gnulib-tool --import
74048
74049         * modules/getopt (Files): Rename getopt.h to getopt_.h.
74050         (Makefile.am): Rewrite, use logic from argz.
74051         (Include): Use <getopt.h> instead of "getopt.h".
74052
74053 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74054
74055         * modules/argp (Files): Add m4/unlocked-io.m4.
74056         (Depends-on): Add extensions.
74057
74058 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74059
74060         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
74061         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
74062         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
74063         Check for program_invocation_name, program_invocation_short_name,
74064         flockfile, funlockfile, features.h, _getopt_long_only_r.
74065
74066 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74067
74068         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
74069         its complicated substitute.
74070         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
74071         and program_invocation_name.
74072         (__argp_basename) [!_LIBC]: Remove; the only use was
74073         replaced by its body.
74074         (__argp_short_program_name): Change condition from
74075         !defined __argp_short_program_name to
74076         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
74077         to match argp-namefrob.h.
74078         (__argp_failure): Don't assume strerror_r returns char *.
74079         * lib/argp-parse.c (N_): Define unconditionally.
74080         (argp_default_options): Fill out initializers with 0 to avoid
74081         gcc warnings.
74082
74083 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74084
74085         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
74086         getopt1.c.
74087
74088 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74089
74090         Merge from coreutils.
74091
74092         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
74093
74094         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
74095         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
74096
74097 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74098
74099         Merge from coreutils.
74100
74101         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
74102         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
74103         for Reliant Unix 5.43.
74104
74105         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
74106         (union fooround): Use uintmax_t, not long int.
74107         The rest is a merge from libc:
74108         [defined _LIBC]: Include <shlib-compat.h>.
74109         (_obstack) [defined _LIBC]: Remove after 2.3.4.
74110
74111         * lib/settime.c (settime): Recode to avoid warning with
74112         Sun Forte C 6U2.
74113
74114         * lib/strverscmp.c: Convert to UTF-8.
74115
74116 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74117
74118         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74119         m4/uintmax_t.m4.
74120
74121 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74122
74123         * modules/xalloc-die: New file.
74124         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
74125
74126         * modules/md5 (Files): Add m4/uint32_t.m4.
74127         * modules/sha1: Renamed from modules/sha.
74128         (Files):
74129         Rename lib/sha.h to lib/sha1.h.
74130         Rename lib/sha.c to lib/sha1.c.
74131         Rename m4/sha.m4 to m4/sha1.m4.
74132         (lib_SOURCES): Likewise.
74133         (configure.ac): Rename gl_SHA to gl_SHA1.
74134         (Include): sha.h -> sha1.h.
74135
74136 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74137
74138         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
74139         * m4/sha1.m4: Renamed from sha.m4.
74140         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
74141
74142 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74143
74144         * lib/obstack.h (obstack_empty_p):
74145         Don't assume that chunk->contents is suitably aligned.
74146         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
74147         Likewise. Problem reported by Benno in
74148         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
74149
74150         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
74151         readable.  This could be improved further but it'd take some work.
74152
74153 2004-08-08  Simon Josefsson  <jas@extundo.com>
74154
74155         * modules/xgethostname (Depends-on): Remove exit and error (not
74156         used).
74157
74158         * modules/getpass-gnu: Add getpass.h.
74159         (Depends-on): Add stdbool.
74160         * modules/getpass: Add getpass.h.
74161
74162 2004-08-08  Simon Josefsson  <jas@extundo.com>
74163
74164         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
74165         Check getpass declaration.
74166
74167 2004-08-08  Simon Josefsson  <jas@extundo.com>
74168
74169         * lib/xgethostname.c: Don't include error.h (not used).
74170
74171         * lib/getpass.h: Add.
74172         * lib/getpass.c: Include getpass.h first.
74173
74174 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
74175
74176         * lib/xalloc-die.c: New file.
74177         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
74178         All uses removed.
74179         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
74180         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
74181         xalloc-die.c.
74182         (_, N_, xalloc_die): Move to xalloc-die.c.
74183         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
74184         so that we needn't mess with xalloc_msg_memory_exhausted.
74185
74186         * lib/sha1.h: Renamed from sha.h.
74187         (SHA1_H): Renamed from _SHA_H.
74188         (sha1_ctx): Renamed from sha_ctx.
74189         (sha1_init_ctx): Renamed from sha_init_ctx.
74190         (sha1_process_block): Renamed from sha_process_block.
74191         (sha1_process_bytes): Renamed from sha_process_bytes.
74192         (sha1_finish_ctx): Renamed from sha_finish_ctx.
74193         (sha1_read_ctx): Renamed from sha_read_ctx.
74194         (sha1_stream): Renamed from sha_stream.
74195         (sha1_buffer): Renamed from sha_buffer.
74196         * lib/sha1.c: Likewise; renamed from sha.c.
74197         Do not include <sys/types.h>.
74198         Include <stddef.h> rather than <stdlib.h>.
74199
74200 2004-08-08  Bruno Haible  <bruno@clisp.org>
74201
74202         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
74203         FILESYSTEM_PREFIX_LEN.
74204         * lib/progreloc.c: Likewise.
74205         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
74206
74207 2004-08-06  Simon Josefsson  <jas@extundo.com>
74208
74209         * modules/progname (Depends-on): Don't depend on stdbool.
74210
74211 2004-08-06  Simon Josefsson  <jas@extundo.com>
74212
74213         * modules/getsubopt: New file.
74214         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74215         getsubopt.
74216
74217 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74218
74219         More merge from coreutils.
74220
74221         * m4/utimens.m4, m4/utimecmp.m4: New files.
74222         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
74223         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
74224         prereq.m4, sha.m4: Import changes from coreutils.
74225
74226 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74227
74228         More merge from coreutils.
74229         * modules/raise, modules/readtokens0, modules/utimens:
74230         * modules/utimecmp, module/xnanosleep: New files.
74231         * modules/strftime: Add lib/strftime.h.
74232         Change include from <time.h> to "strftime.h".
74233         * modules/yesno: Add lib/yesno.h.
74234         * modules/backupfile: Remove lib/addext.c.
74235         * modules/euidaccess: Add stat-macros.h.
74236         * modules/canonicalize, modules/euidaccess,
74237         modules/filemode, modules/lchown, modules/makepath,
74238         modules/rmdir, modules/stat: Likewise.
74239
74240 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74241
74242         Merge from tar.
74243         * lib/argp-help.c (make_hol, hol_append): Don't assume that
74244         SIZE_MAX is a valid preprocessor constant.
74245         (__argp_basename): Change from "#ifndef _LIBC"
74246         to "#ifndef __argp_short_program_name", so that
74247         we don't compile these functions for tar.
74248
74249         More merges from coreutils.
74250         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
74251         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
74252         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74253         * lib/addext.c: Remove; no longer needed.
74254         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74255         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74256         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74257         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74258         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74259         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74260         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74261         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74262         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74263         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74264         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74265         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74266         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74267         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74268         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74269         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74270         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74271         Import changes from coreutils.
74272
74273 2004-08-05  Simon Josefsson  <jas@extundo.com>
74274
74275         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74276
74277 2004-08-05  Simon Josefsson  <jas@extundo.com>
74278
74279         * m4/getsubopt.m4: New file.
74280
74281 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74282
74283         Merge from coreutils.
74284
74285         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74286         * m4/getcwd-path-max.m4: New files.
74287
74288         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74289         FILESYSTEM_PREFIX_LEN ->
74290         FILE_SYSTEM_PREFIX_LEN.
74291         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74292         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74293         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74294         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74295
74296         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74297         prerequisite modules now handle the DOS stuff.
74298         Don't check for unistd.h.
74299
74300 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74301
74302         Merge from coreutils.
74303
74304         * lib/.gdb-history: Remove; this doesn't belong here.
74305
74306         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74307         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74308         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74309         * lib/getcwd.c: New files.
74310
74311         * lib/dirname.h: Include <stdbool.h>.
74312         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74313         for consistency with POSIX terminology.  All uses changed.
74314         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74315         (strip_trailing_slashes): Use bool for booleans.
74316         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74317
74318         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74319         sometimes returns a positive errno value even when it succeeds.
74320         (print_errno_message) [!LIBC]: Fall back on strerror if
74321         __strerror_r fails.
74322
74323         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74324         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74325         (longest_relative_suffix): New function.
74326         (path_concat): Use it.  Assume first argument is not NULL.
74327         Port to DOS.  Omit redundant separators.
74328         Report an error instead of returning NULL.
74329         Use mempcpy instead of memcpy.
74330         (xpath_concat): Remove: not declared or used.
74331
74332         * lib/same.h: Include <stdbool.h>
74333         (same_name): Return bool, not int.
74334         * lib/same.c (same_name): Likewise.
74335         (errno): Don't declare; we assume C89 or better now.
74336
74337         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74338         if not already defined.
74339
74340         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74341         * lib/dup-safer.c (errno): Likewise.
74342
74343 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74344
74345         Merge from coreutils.
74346         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74347         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74348         * modules/path-concat: Don't depend on strdup.
74349
74350 2004-08-03  Simon Josefsson  <jas@extundo.com>
74351
74352         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74353         * lib/progname.h: Don't include stdbool.h.
74354
74355 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74356
74357         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74358         * MODULES.html.sh (func_all_modules): Remove fatal.
74359
74360 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74361
74362         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74363
74364 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74365
74366         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74367         working.
74368
74369 2004-08-02  Simon Josefsson  <jas@extundo.com>
74370
74371         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74372         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74373         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74374
74375 2004-08-01  Simon Josefsson  <jas@extundo.com>
74376
74377         * lib/xgetdomainname.c: Include stdlib.h, for free().
74378
74379 2004-07-19  Bruno Haible  <bruno@clisp.org>
74380
74381         * MODULES.html.sh (func_all_modules): Add dummy.
74382
74383 2004-07-16  Simon Josefsson  <jas@extundo.com>
74384
74385         * modules/dummy: New file.
74386
74387 2004-07-16  Simon Josefsson  <jas@extundo.com>
74388
74389         * lib/dummy.c: New file.
74390
74391 2004-07-16  Bruno Haible  <bruno@clisp.org>
74392
74393         * lib/backupfile.h: Add extern "C" for C++.
74394         * lib/closeout.h: Likewise.
74395         * lib/copy-file.h: Likewise.
74396         * lib/findprog.h: Likewise.
74397         * lib/full-write.h: Likewise.
74398         * lib/pathname.h: Likewise.
74399         * lib/progname.h: Likewise.
74400         * lib/stpcpy.h: Likewise.
74401         * lib/stpncpy.h: Likewise.
74402         * lib/strcase.h: Likewise.
74403         * lib/strstr.h: Likewise.
74404         * lib/xalloc.h: Likewise.
74405
74406         * lib/mbswidth.h: Add extern "C" for C++.
74407         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74408
74409 2004-07-13  Robert Millan  <robertmh@gnu.org>
74410
74411         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74412
74413 2004-07-09  Simon Josefsson  <jas@extundo.com>
74414
74415         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74416         failed without this.)
74417
74418 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74419
74420         * modules/chown (Files): Add lib/fchown-stub.c, since
74421         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74422
74423 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74424
74425         * lib/fchown-stub.c: New file.
74426
74427 2004-06-24  Jim Meyering  <jim@meyering.net>
74428
74429         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74430
74431 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74432
74433         * modules/argz: Omit "#include".
74434
74435         * MODULES.html.sh (func_all_modules): Add calloc, to match
74436         2004-06-01 addition of calloc module.
74437
74438 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74439
74440         * m4/argz.m4: New file, which is autoupdated from libtool.
74441
74442 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74443
74444         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74445         libtool.
74446
74447 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74448
74449         * config/srclist-update: Don't insist on "USA." before the
74450         close-comment, as libtool omits the period and puts the */ on a
74451         separate line.
74452         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74453         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74454
74455 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74456
74457         * modules/argz: New file.
74458         * MODULES.html.sh (func_all_modules): Add argz.
74459
74460 2004-06-12  Jim Meyering  <jim@meyering.net>
74461         and  Paul Eggert  <eggert@cs.ucla.edu>
74462
74463         * modules/hash (Files): Add lib/xalloc.h.
74464         * modules/pipe (Depends-on): Add wait-process.
74465         * modules/stat (Depends-on): Add xalloc.
74466         * modules/userspec (Files): Add lib/userspec.h.
74467         * modules/xstrto
74468
74469         Upgrade from gettext-0.13.
74470         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
74471         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
74472         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
74473
74474 2004-06-10  Jim Meyering  <jim@meyering.net>
74475
74476         * lib/calloc.c: New file.
74477
74478 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
74479
74480         * lib/getdate.y (yylex): Allow space between sign and number.
74481         Problem reported by Dan Jacobson.
74482
74483 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74484
74485         Merge from coreutils CVS.
74486
74487         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
74488         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
74489         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
74490         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
74491         xstrtol.m4: Fix copyright date and/or serial number.
74492
74493         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
74494         See if we need an fchown replacement.
74495         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
74496         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
74497         and use the replacement function if we detect either defect.
74498
74499         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
74500         gl_UTIMECMP.
74501
74502 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74503         and  Jim Meyering  <jim@meyering.net>
74504
74505         Merge from coreutils CVS.
74506
74507         * lib/stat-macros.h: New file, with contents from file-type.h
74508         and coreutils' system.h.
74509         * lib/file-type.c: Include "stat-macros.h".
74510         * lib/file-type.h (file_type): Move all macro definitions to new file,
74511         stat-macros.h.
74512
74513         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
74514         Wrap old code with this conditional.
74515         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
74516         function that does not dereference symlinks.
74517         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
74518
74519         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
74520         dependency problems.
74521         (xreadlink): Accept new arg SIZE, for efficiency.
74522         All decls and uses changed.
74523         * lib/xreadlink.h: Include <stddef.h>, for size_t.
74524
74525         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
74526         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
74527
74528         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
74529         sysexits.h.
74530
74531 2004-06-01  Jim Meyering  <jim@meyering.net>
74532
74533         * m4/calloc.m4: New file.
74534
74535 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
74536
74537         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
74538         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
74539         Also, fix a typo in a diagnostic.
74540
74541 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74542
74543         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
74544         or AC_FUNC_REALLOC.
74545
74546 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74547
74548         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
74549         macros to be defined.
74550         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
74551         the allocator returns NULL because the requested size is zero.
74552
74553 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74554
74555         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
74556         var.  Add comment explaining why libc still defines it.  This
74557         merges the following patch from glibc:
74558         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
74559
74560 2004-05-20  Andreas Schwab  <schwab@suse.de>
74561
74562         * m4/free.m4: Replace free if it not known to work, not the other
74563         way round.
74564
74565 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74566
74567         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74568         present in glibc since revision 1.1 of this file.
74569         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74570         obstack_alignment_mask, obstack_alloc, obstack_base,
74571         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74572         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74573         obstack_grow0, obstack_init, obstack_int_grow,
74574         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74575         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74576         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74577         nonexistent functions.
74578
74579 2004-05-18  Karl Berry  <karl@gnu.org>
74580
74581         * config/srclist.txt: break link for vasnprintf.c.
74582
74583 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74584
74585         Port obstack to the AS/400, where pointers are 16 bytes wide and
74586         you cannot cast an integer to a valid pointer.  This patch is
74587         currently waiting to be integrated into glibc; see
74588         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74589
74590         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74591         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74592         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74593         (struct obstack): temp member is now a union of a pointer and
74594         an integer, instead of an integer.  All integer uses changed.
74595         This does not affect the physical layout of struct obstack,
74596         except on hosts (like the AS/400) where the size or alignment of
74597         void * is greater than that of ptrdiff_t.
74598         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74599         __STDC__)]: Store temporary in pointer member of union, not
74600         integer member.
74601         * lib/obstack.c: Include <stddef.h>, for offsetof.
74602         (struct fooalign): Remove; it doesn't need a name.
74603         (union fooround): Change double to long double, and add void *.
74604         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74605         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74606         not a macro.  Hence the values are always int; so remove all
74607         casts-to-int in uses.
74608
74609 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74610
74611         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74612         we can get this patch merged into glibc.
74613
74614 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74615             Paul Eggert  <eggert@cs.ucla.edu>
74616
74617         * m4/argp: Depend on alloca.
74618
74619 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74620             Paul Eggert  <eggert@cs.ucla.edu>
74621
74622         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74623         freecoding.
74624
74625 2004-05-17  Bruno Haible  <bruno@clisp.org>
74626
74627         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74628         precision that consists of a '.' followed by an empty digit string.
74629         Patch by Tor Lillqvist <tml@iki.fi>.
74630
74631 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74632
74633         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74634         for backward compatibility with older code.  We need our own
74635         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
74636         it under some other name, and our alloca.h will define it.
74637
74638 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74639             Derek Price  <derek@ximbiot.com>
74640
74641         * lib/alloca.c: Include <alloca.h>, to get our interface.
74642         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
74643         include <alloca.h> first.  Use C89 prototype for alloca; this
74644         requires including <stddef.h> for size_t.  Use extern "C" if C++.
74645         Use #elif for simplicity, since we can assume C89 now.
74646         Don't try to source the system alloca.h since it will not be found
74647         and to prevent recursively including its replacement.
74648         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
74649         * lib/regex.c: Likewise.
74650
74651 2004-05-16  Derek Price  <derek@ximbiot.com>
74652             Paul Eggert  <eggert@cs.ucla.edu>
74653
74654         getline cleanup.  This changes the getndelim2 API: both order of
74655         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
74656         no delimiter).
74657
74658         * lib/getline.c: Don't include stddef.h or stdio.h, since our
74659         interface does that.
74660         (getline): Always use getdelim, so that we don't have two
74661         copies of this code.
74662         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
74663         if available.
74664         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
74665         (GETNDELIM2_MAXIMUM): New macro.
74666         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
74667         instead of the old practice of delim2==0.  All callers changed.
74668         Return -1 on overflow, instead of returning junk.
74669         Do not set *linesize unless allocation succeeds.
74670         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
74671         that we include sys/types.h.
74672         * lib/getnline.h: Likewise.
74673         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
74674         (getndelim2): Reorder arguments.
74675         * lib/getnline.c (getnline, getndelim):
74676         Don't discard the NMAX argument.
74677         (getnline): Invoke getndelim, to avoid code duplication.
74678         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
74679         of (size_t) -1 by callers of the getnline family.
74680
74681 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74682
74683         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
74684         Check for gettimeofday.
74685         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
74686         Check for settimeofday, stime.
74687
74688 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74689
74690         * lib/nanosleep.c (suspended): Change its type from int to
74691         sig_atomic_t volatile.
74692         (first_call): Make it private to rpl_nanosleep, and have it
74693         be zero initially as that's a bit faster.
74694         (my_usleep): Round up fractional times instead of truncating them,
74695         as this is the usual meaning for 'sleep'.
74696
74697         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
74698         doesn't work.
74699         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
74700         (ENOSYS): Define if not defined.
74701         (settime): Fall back on stime if it exists and settimeofday fails.
74702         But don't bother with fallbacks if a method fails with errno == EPERM.
74703
74704 2004-05-11  Jim Meyering  <jim@meyering.net>
74705
74706         Prior to this change, the save_cwd caller required read access to the
74707         current directory on most systems (ones with the fchdir function).
74708
74709         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
74710         fails, try write-only, and finally, resort to using xgetcwd.
74711
74712 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74713
74714         * lib/obstack.c, obstack.h: Import changes from libc.
74715
74716 2004-04-28  Bruno Haible  <bruno@clisp.org>
74717
74718         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
74719         also implicitly appends .exe to executables.
74720         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
74721         accepts Windows pathnames.
74722         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74723         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74724         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74725         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74726         Reported by Derek Robert Price <derek@ximbiot.com>.
74727
74728 2004-04-21  Karl Berry  <karl@gnu.org>
74729
74730         * config/srclist.txt (localcharset.c): break sync.
74731
74732 2004-04-20  Paul Eggert  <eggert@twinsun.com>
74733
74734         * m4/host-os.m4: Add a copyright notice.
74735
74736 2004-04-20  Jim Meyering  <jim@meyering.net>
74737
74738         Change UTILS_ to gl_ in AC_DEFINE'd names.
74739         Change utils_- and jm_-prefixed variables, too.
74740         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
74741         UTILS_FUNC_MKDIR_TRAILING_SLASH.
74742         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
74743
74744         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
74745         Don't emit trailing blanks.
74746         Also rename jm_-prefixed variables to have gl_ prefix.
74747
74748         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
74749         Also rename jm_-prefixed variables to have gl_ prefix.
74750
74751         * m4/jm-macros.m4: Reflect the renamings.
74752         * m4/prereq.m4: Likewise.
74753
74754 2004-04-20  Jim Meyering  <jim@meyering.net>
74755
74756         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
74757         memory.
74758
74759 2004-04-20  Jim Meyering  <jim@meyering.net>
74760             Bruno Haible  <bruno@clisp.org>
74761
74762         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
74763         memory when realloc fails.
74764
74765 2004-04-19  Jim Meyering  <jim@meyering.net>
74766
74767         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
74768         now that readutmp.c may call `free (0)'.
74769
74770 2004-04-19  Bruno Haible  <bruno@clisp.org>
74771
74772         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
74773         * m4/inttypes_h.m4: Likewise.
74774         * m4/stdint_h.m4: Likewise.
74775         * m4/intmax_t.m4: Likewise.
74776         * m4/uintmax_t.m4: Likewise.
74777
74778 2004-04-18  Jim Meyering  <jim@meyering.net>
74779
74780         * m4/prereq.m4: Don't forbid jm_ prefix.
74781
74782         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
74783         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
74784         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
74785         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
74786         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
74787         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
74788         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
74789         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
74790         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
74791         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
74792         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
74793         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
74794         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
74795         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
74796         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
74797         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
74798         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
74799         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
74800         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
74801
74802 2004-04-18  Jim Meyering  <jim@meyering.net>
74803
74804         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
74805         failure, don't leak memory and do call END_UTMP_ENT.
74806
74807 2004-04-16  Jim Meyering  <jim@meyering.net>
74808
74809         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
74810         coreutils' stat program.
74811         (gl_PREREQ): Don't require jm_PREREQ_STAT.
74812
74813 2004-04-11  Paul Eggert  <eggert@twinsun.com>
74814
74815         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
74816         C89.
74817         (CHAR_BIT): Remove, since we assume C89.
74818         Include <stdint.h> if available, as per current Autoconf CVS advice.
74819
74820 2004-03-31  Jim Meyering  <jim@meyering.net>
74821
74822         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
74823         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
74824         * m4/xalloc.m4: Likewise.
74825
74826 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74827
74828         Merge from coreutils.
74829
74830         * m4/inttostr.m4: New file.
74831         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
74832         Require AM_STDBOOL_H and gl_TIMESPEC instead.
74833         Require gl_CLOCK_TIME.
74834         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
74835
74836 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74837
74838         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
74839         not bool, to be more consistent with Unix conventions.
74840         Suggested by Bruno Haible.
74841
74842         Merge from coreutils.
74843
74844         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
74845         * lib/umaxtostr.c: New files.
74846
74847         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
74848         the usual <time.h> dance.
74849         (get_date): Change signature to support fractional time stamps.
74850         All callers changed.
74851         * lib/getdate.y: Include "getdate.h" first, as we can now
74852         assume C89 and don't need to worry about 'const'.
74853         Similarly, include "unlocked-io.h" near start, not in middle.
74854         Include <limits.h>.
74855         (textint.value): Use long int rather than int.
74856         (textint.digits): Use size_t rather than int.
74857         (BILLION, LOG10_BILLION): New constants.
74858         (parser_control): New member rel_ns.  Members day_ordinal,
74859         time_zone, month, day, hour, minutes, rel_year, rel_month,
74860         rel_day, rel_hour, rel_minutes, rel_seconds
74861         are now long int, not int.  Member seconds is now struct timespec,
74862         not int.  New member timespec_seen.  Members dates_seen, days_seen,
74863         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
74864         not int.
74865         (%union.intval): Now long int, not int.
74866         New member timespec.
74867         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
74868         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
74869         (spec): Now is a timespec or an item list.
74870         (timespec, items): New nonterminals.
74871         (time, rel, relunit, number, get_date):
74872         Add support for fractional seconds.
74873         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
74874         (gmtime, localtime, mktime): Remove decls; not needed with C89.
74875         (to_hour): First arg is now long int, not int.
74876         (to_year): Returns long int, not int.
74877         Don't treat year -70 like 70.
74878         (tm_diff): Returns long int, not int.
74879         (lookup_word): Use bool instead of int when appropriate.
74880         (yylex): Use size_t for count, not int.
74881         Detect overflow when parsing large integer constants.
74882         Add support for fractions.
74883         (get_date): Make pointers 'const' if possible.
74884         Use more-portable code to detect integer overflow.
74885         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
74886         Don't use ctime; it's not reliable if the year has >4 digits.
74887
74888         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
74889         This is for compatibility with BSD.
74890
74891         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
74892         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
74893         From coreutils' system.h.
74894
74895         * lib/userspec.c: Don't include "posixver.h".
74896         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
74897         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
74898         compatible extension.  Simplify code by removing a boolean int
74899         that was always nonzero if a string was nonnull.
74900
74901 2004-03-30  Jim Meyering  <jim@meyering.net>
74902
74903         Merge from coreutils.
74904
74905         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
74906         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
74907         on some systems one must include <grp.h> before it.
74908         Reported by Christian Krackowizer.
74909
74910 2004-03-30  Jim Meyering  <jim@meyering.net>
74911
74912         Merge from coreutils.
74913
74914         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
74915
74916         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
74917         an empty input stream.
74918
74919         * lib/readtokens.c: Include <stdbool.h>.
74920         (readtoken): Use `size_t' rather than int/long.
74921         All callers adjusted.
74922         Use `bool' rather than `int' where appropriate.
74923         Use memset rather than an explicit loop.
74924         Use x2nrealloc rather than xrealloc.
74925         Allow the use of `\0' as a delimiter.
74926         (readtokens): Likewise.
74927         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
74928
74929 2004-03-30  Jim Meyering  <jim@meyering.net>
74930
74931         * m4/realloc.m4: Remove file, since now it does no more than
74932         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
74933         the `configure.ac' section of module/realloc.
74934         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
74935
74936 2004-03-30  Bruno Haible  <bruno@clisp.org>
74937
74938         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
74939         nonnull.
74940
74941 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74942
74943         Merge changes to getloadavg.c from coreutils and Emacs.
74944
74945         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
74946         Define to an expression, not to the empty string.
74947         Include cloexec.h and xalloc.h.
74948         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
74949         Use set_cloexec_flag rather than rolling our own.
74950         * lib/cloexec.c, lib/cloexec.h: New files.
74951
74952 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74953
74954         * m4/cloexec.m4: New file.
74955
74956 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74957
74958         * lib/getopt.h: Sync with libc CVS.
74959
74960 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74961             Bruno Haible  <bruno@clisp.org>
74962
74963         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
74964         mbswidth.
74965
74966 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74967             Bruno Haible  <bruno@clisp.org>
74968
74969         * lib/mbswidth.h: Include <wchar.h> only if
74970         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
74971         <wchar.h>.
74972         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
74973
74974 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74975
74976         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
74977         Sync with libc CVS.
74978         * lib/getopt_int.h: New file, also synced from libc.
74979
74980 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74981
74982         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
74983         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
74984         Bring back getopt.c, getopt.h, getopt1.c.
74985
74986 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74987
74988         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
74989         All uses changed.  Check for sa_sigaction member; this fixes
74990         a bug first reported by Jason Andrade in
74991         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74992
74993 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74994
74995         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
74996         '#if' expressions.  Unlike the code it replaces, it does not
74997         depend on (defined _SC_PAGESIZE).  However, it does depend on
74998         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
74999         first reported by Jason Andrade in
75000         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75001
75002 2004-02-25  Simon Josefsson  <jas@extundo.com>
75003
75004         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
75005
75006 2004-02-25  Simon Josefsson  <jas@extundo.com>
75007
75008         * lib/strdup.h: New file.
75009         * lib/strdup.c: Include it.
75010         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
75011         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
75012
75013 2004-02-23  Karl Berry  <karl@gnu.org>
75014
75015         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
75016         (from fencepost.gnu.org:/gd/gnuorg).
75017
75018 2004-02-23  Karl Berry  <karl@gnu.org>
75019
75020         * config/srclistvars.sh (GNUORG) [karl]: redefine.
75021         * config/srclist.txt: add maintain/standards documents.
75022
75023 2004-02-18  Bruno Haible  <bruno@clisp.org>
75024
75025         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
75026         Reported by Derek Robert Price <derek@ximbiot.com>.
75027
75028 2004-02-16  Karl Berry  <karl@gnu.org>
75029
75030         * config/mkinstalldirs, install-sh: update from automake.
75031
75032 2004-02-06  Karl Berry  <karl@gnu.org>
75033
75034         * m4/po.m4: update from gettext 0.14.1.
75035
75036 2004-02-06  Karl Berry  <karl@gnu.org>
75037
75038         * lib/config.charset: update from gettext 0.14.1.
75039
75040 2004-02-05  Paul Eggert  <eggert@twinsun.com>
75041
75042         Add comments and code, prompted by suggestions from Bruno Haible
75043         for sh-quote.
75044         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
75045         describing the enum quoting_style values.
75046         * lib/quotearg.c (quotearg_alloc): New function.
75047         (quotearg_buffer_restyled): Treat lone { and } as special.
75048         Treat = as special.  Work around bug with older shells
75049         that "see" a '\' that is really the 2nd byte of a multibyte char.
75050         Quote empty string with shell_quoting_style.
75051
75052 2004-02-03  Bruno Haible  <bruno@clisp.org>
75053
75054         * m4/pipe.m4: New file, from GNU gettext.
75055
75056 2004-02-03  Bruno Haible  <bruno@clisp.org>
75057
75058         * lib/pipe.h: New file, from GNU gettext.
75059         * lib/pipe.c: New file, from GNU gettext.
75060
75061 2004-01-27  Bruno Haible  <bruno@clisp.org>
75062
75063         * m4/execute.m4: New file, from GNU gettext.
75064
75065 2004-01-27  Bruno Haible  <bruno@clisp.org>
75066
75067         * lib/execute.h: New file, from GNU gettext.
75068         * lib/execute.c: New file, from GNU gettext.
75069         * lib/w32spawn.h: New file, from GNU gettext.
75070
75071 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75072
75073         Merge from diffutils.
75074
75075         * lib/file-type.c (file_type): Add typed memory objects.
75076         * lib/file-type.h (S_TYPEISTMO): New macro.
75077
75078         * lib/c-stack.h (c_stack_action): Remove argv argument.
75079         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
75080         (die): Don't calculate message unless segv_action returns.
75081         (get_stack_location, min_address_from_argv, max_address_from_argv,
75082         volatile stack_base, volatile_stack_size): Remove.
75083         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
75084         that every segmentation violation is a stack overflow.  (Ouch!)
75085         See Debian bug 136249 (still outstanding) for more info about why
75086         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
75087
75088 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75089
75090         Exit-status fix from coreutils.
75091
75092         Use exit_failure consistently in place of EXIT_FAILURE,
75093         so that program exit statuses are consistent on failure.
75094
75095         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
75096         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
75097         * lib/argmatch.h: Comment fix to match the above.
75098         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
75099         Now a macro referring to exit_failure, instead of a separate
75100         variable.  Include "exitfail.h" to get it.
75101         * lib/xstrtol.h: Include "exitfail.h".
75102         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
75103
75104         * lib/long-options.c (parse_long_options): Use prototype
75105         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
75106         for clarity.
75107
75108 2004-01-21  Jim Meyering  <jim@meyering.net>
75109
75110         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
75111         so as not to conflict with a different-sized __mktime_internal
75112         function in GNU libc.
75113         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
75114         Problem building statically-linked `ls' reported by Michael Brunnbauer.
75115
75116 2004-01-20  Karl Berry  <karl@gnu.org>
75117
75118         * config/config.guess: update from config.
75119
75120         * config/srclistvars.sh: GNUWWWLICENSES for karl.
75121
75122 2004-01-20  Bruno Haible  <bruno@clisp.org>
75123
75124         Safer stack allocation.
75125         * lib/setenv.c: Include allocsa.h.
75126         (alloca): Remove fallback definition.
75127         (freea): Remove macro.
75128         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
75129         instead of freea.
75130
75131 2004-01-20  Bruno Haible  <bruno@clisp.org>
75132
75133         * m4/eealloc.m4: New file, from GNU gettext.
75134
75135 2004-01-20  Bruno Haible  <bruno@clisp.org>
75136
75137         * m4/allocsa.m4: New file, from GNU gettext.
75138
75139 2004-01-20  Bruno Haible  <bruno@clisp.org>
75140
75141         * lib/xallocsa.h: New file, from GNU gettext.
75142         * lib/xallocsa.c: New file, from GNU gettext.
75143
75144 2004-01-20  Bruno Haible  <bruno@clisp.org>
75145
75146         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
75147
75148 2004-01-20  Bruno Haible  <bruno@clisp.org>
75149
75150         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
75151         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
75152         specially.
75153
75154 2004-01-20  Bruno Haible  <bruno@clisp.org>
75155
75156         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
75157         patch.
75158
75159 2004-01-20  Bruno Haible  <bruno@clisp.org>
75160
75161         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
75162
75163 2004-01-20  Bruno Haible  <bruno@clisp.org>
75164
75165         * lib/eealloc.h: New file.
75166
75167 2004-01-20  Bruno Haible  <bruno@clisp.org>
75168
75169         * lib/binary-io.h: Avoid warnings on Cygwin.
75170
75171 2004-01-20  Bruno Haible  <bruno@clisp.org>
75172
75173         * lib/allocsa.h: New file, from GNU gettext.
75174         * lib/allocsa.c: New file, from GNU gettext.
75175
75176 2004-01-18  Karl Berry  <karl@gnu.org>
75177
75178         * doc/gpl.texi, doc/lgpl.texi: new files.
75179
75180 2004-01-18  Karl Berry  <karl@gnu.org>
75181
75182         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
75183         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
75184
75185 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75186
75187         Merge from coreutils.
75188
75189         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
75190         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
75191         (gl_DEFAULT_POSIX2_VERSION): Move
75192         the documentation from 'configure' into 'config.hin',
75193         so that 'configure --help' isn't burdened by it and
75194         we don't have to worry about its formatting there.
75195         Reword the documentation so that it's more succinct
75196         and can be run together into a single paragraph.
75197         * m4/same.m4 (gl_SAME): Check for pathconf.
75198
75199 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75200
75201         Merge from coreutils.
75202
75203         * lib/posixver.c: Include posixver.h.
75204
75205         * lib/same.c: Include <stdbool.h>, <limits.h>.
75206         (_POSIX_NAME_MAX): Define if not defined.
75207         (MIN): New macro.
75208         (same_name): If file names are silently truncated, report
75209         that the file names are the same if they are the same after
75210         the silent truncation.
75211
75212         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
75213         conversion function.
75214         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
75215         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
75216         longer needed.
75217
75218 2004-01-15  Jim Meyering  <jim@meyering.net>
75219
75220         Merge from coreutils.
75221
75222         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
75223         if no library is required.
75224         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
75225         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
75226         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
75227         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
75228         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
75229         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
75230         value, $ac_cv_search_crypt, if it's "none required".
75231         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
75232         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
75233         not gl_FUNC_GETLOADAVG.
75234         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
75235         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
75236
75237 2004-01-15  Jim Meyering  <jim@meyering.net>
75238
75239         Merge from coreutils.
75240
75241         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
75242         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
75243         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
75244
75245         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
75246         optional configure-time default.
75247
75248         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75249
75250         * lib/xreadlink.c (xreadlink): Correct outdated comment.
75251
75252 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75253
75254         Merge from coreutils.
75255
75256         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75257         value, $ac_cv_search_nanosleep, if it's "none required".
75258
75259 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75260
75261         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75262         with like-named macro in fnmatch.c.
75263         (EXT): Use an internal constant instead.
75264
75265         Merge fnmatch patches from glibc.
75266         * lib/fnmatch.c (mbsinit): Remove define.
75267         Add libc_hidden_ver (__fnmatch, fnmatch).
75268         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75269         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75270
75271 2004-01-14  Karl Berry  <karl@gnu.org>
75272
75273         * config/install-sh: update from automake.
75274
75275 2004-01-13  Karl Berry  <karl@gnu.org>
75276
75277         * config/install-sh: update from automake.
75278
75279 2004-01-09  Karl Berry  <karl@gnu.org>
75280
75281         * config/install-sh: update from automake.
75282
75283 2004-01-05  Karl Berry  <karl@gnu.org>
75284
75285         * config/config.{sub,guess}: update from config.
75286
75287 2003-12-31  Karl Berry  <karl@gnu.org>
75288
75289         * config/depcomp: update from automake.
75290
75291 2003-12-14  Karl Berry  <karl@gnu.org>
75292
75293         * lib/config.charset: update from gettext-runtime.
75294
75295 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75296
75297         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75298         Bug reported by Alfred M. Szmidt.
75299
75300 2003-12-03  Bruno Haible  <bruno@clisp.org>
75301
75302         * m4/gettext.m4: Upgrade from gettext-0.13.
75303         * m4/po.m4: Upgrade from gettext-0.13.
75304         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75305         * m4/intmax.m4: New file, from gettext-0.13.
75306         * m4/printf-posix.m4: New file, from gettext-0.13.
75307
75308 2003-11-29  Karl Berry  <karl@gnu.org>
75309
75310         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75311
75312 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75313             Bruno Haible  <bruno@clisp.org>
75314
75315         * lib/printf-parse.h: Don't include sys/types.h.
75316         (ARG_NONE): New macro.
75317         (char_directive): Change type of *arg_index fields to size_t.
75318         * lib/printf-parse.c: Don't include sys/types.h.
75319         (SSIZE_MAX): Remove macro.
75320         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75321         Remove unnecessary overflow check.
75322         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75323         fields.
75324
75325 2003-11-25  Bruno Haible  <bruno@clisp.org>
75326
75327         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75328
75329 2003-11-25  Bruno Haible  <bruno@clisp.org>
75330
75331         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75332         gt_TYPE_SSIZE_T.
75333
75334 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75335
75336         * modules/alloca: Remove dependency on xalloc.
75337
75338 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75339
75340         * lib/alloca.c: Remove dependency on xalloc module.
75341         (xalloc_die): Remove.
75342         (memory_full) [!defined emacs]: New macro.
75343         [!defined emacs]: Don't include xalloc.h.
75344         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75345         address arithmetic overflows.  Change datatypes a bit to avoid
75346         unnecessary casts.
75347
75348 2003-11-22  Jim Meyering  <jim@meyering.net>
75349
75350         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75351         s/size/size_t/.
75352
75353 2003-11-21  Karl Berry  <karl@gnu.org>
75354
75355         * config/config.{sub,guess}: update from config.
75356
75357 2003-11-18  Karl Berry  <karl@gnu.org>
75358
75359         * config/config.{sub,guess}: update from config.
75360
75361         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75362
75363 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75364
75365         * README: Mention that S+T cannot overflow if S is the size of
75366         an existing object and T is sufficiently small.
75367
75368 2003-11-17  Jim Meyering  <jim@meyering.net>
75369
75370         On systems without utime and without a utimes function capable of
75371         dealing with a NULL struct utimbuf* argument, this utime replacement
75372         could -- in unusual circumstances -- leak a file descriptor.
75373         * lib/utime.c: Include <unistd.h> and <errno.h>.
75374         (utime_null): Be sure to close `fd' and to preserve errno.
75375         Reported by Geoff Collyer via Arnold Robbins.
75376
75377 2003-11-17  Bruno Haible  <bruno@clisp.org>
75378
75379         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75380         (Depends-on): Add xsize.
75381
75382 2003-11-17  Bruno Haible  <bruno@clisp.org>
75383
75384         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75385
75386 2003-11-17  Bruno Haible  <bruno@clisp.org>
75387
75388         * lib/vasnprintf.c (alloca): Remove fallback definition.
75389         (freea): Remove definition.
75390         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75391         Reported by Paul Eggert.
75392
75393 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75394             Bruno Haible  <bruno@clisp.org>
75395
75396         Protect against address arithmetic overflow.
75397         * lib/printf-args.h: Include stddef.h.
75398         (arguments): Change type of field 'count' to size_t.
75399         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75400         'unsigned int' where appropriate.
75401         * lib/printf-parse.h: Include sys/types.h.
75402         (char_directive): Change type of *arg_index fields to ssize_t.
75403         (char_directives): Change type of fields 'count', max_*_length to
75404         size_t.
75405         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75406         (SSIZE_MAX): Define fallback value.
75407         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75408         instead of 'int' where appropriate. Check a_allocated, d_allocated
75409         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75410         * lib/vasnprintf.c: Include xsize.h.
75411         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75412         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75413         overflow. Avoid wraparound when converting a width or precision from
75414         decimal to binary.
75415
75416 2003-11-16  Bruno Haible  <bruno@clisp.org>
75417
75418         Update from GNU gettext.
75419         * lib/printf-parse.c: Generalize to it can be compiled for wide
75420         strings.
75421         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75422         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75423         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75424         SNPRINTF): New macros.
75425         Don't include <alloca.h> if the file is used inside libintl.
75426         (local_wcslen): New function, for Solaris 2.5.1.
75427         (VASNPRINTF): Use it instead of wcslen.
75428
75429 2003-11-16  Bruno Haible  <bruno@clisp.org>
75430
75431         * lib/xsize.h (xmax): New function.
75432         (xsum, xsum3, xsum4): Declare as "pure" functions.
75433
75434 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75435
75436         * modules/xalloc (Files): Undo latest change, since xalloc.h
75437         no longer needs SIZE_MAX or PTRDIFF_MAX.
75438
75439 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75440
75441         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75442         gl_PTRDIFF_MAX.
75443
75444 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75445
75446         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75447         "return", to pacify some unknown compiler.  Problem reported
75448         by Joerg Schilling.
75449
75450 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75451
75452         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75453         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75454         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75455         heuristic is just as accurate as far as we know, and it removes a
75456         dependency on size_max.m4 and ptrdiff_max.m4.
75457
75458 2003-11-11  Bruno Haible  <bruno@clisp.org>
75459
75460         * modules/xsize (Files): Add m4/size_max.m4.
75461         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75462
75463 2003-11-11  Bruno Haible  <bruno@clisp.org>
75464
75465         * m4/size_max.m4: New file.
75466         * m4/ptrdiff_max.m4: New file.
75467         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75468         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75469         (gl_XALLOC): Invoke it.
75470
75471 2003-11-11  Bruno Haible  <bruno@clisp.org>
75472
75473         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
75474         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
75475         defined.
75476
75477 2003-11-10  Paul Eggert  <eggert@twinsun.com>
75478
75479         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
75480         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
75481         rejected some allocations of exactly SIZE_MAX - 2 bytes.
75482         From Bruno Haible.
75483         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
75484         not (size_t) -1, since it's defined here.
75485
75486 2003-11-09  Karl Berry  <karl@gnu.org>
75487
75488         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
75489
75490 2003-11-06  Paul Eggert  <eggert@twinsun.com>
75491
75492         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
75493         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
75494         Reject sizes of exactly SIZE_MAX bytes.
75495         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
75496         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
75497
75498 2003-11-05  Bruno Haible  <bruno@clisp.org>
75499
75500         * lib/xsize.h: Include limits.h, to avoid a possible collision with
75501         SIZE_MAX defined in <limits.h> on Solaris.
75502
75503 2003-11-04  Jim Meyering  <jim@meyering.net>
75504
75505         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
75506         variable names, rather than @VAR@.
75507         * modules/poll: Likewise.
75508
75509 2003-11-04  Bruno Haible  <bruno@clisp.org>
75510
75511         * modules/xsize: New file.
75512         * modules/linebreak: Depend on xsize.
75513         * MODULES.html.sh (func_all_modules): Add xsize.
75514
75515 2003-11-04  Bruno Haible  <bruno@clisp.org>
75516
75517         * m4/xsize.m4: New file.
75518
75519 2003-11-04  Bruno Haible  <bruno@clisp.org>
75520
75521         * lib/xsize.h: New file.
75522         * lib/linebreak.c: Include xsize.h.
75523         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
75524         argument for overflow.
75525         Suggested by Paul Eggert.
75526
75527 2003-11-03  Karl Berry  <karl@gnu.org>
75528
75529         * config/config.{guess,sub}: update from config.
75530
75531 2003-11-03  Jim Meyering  <jim@meyering.net>
75532
75533         * modules/userspec (lib_SOURCES): Add userspec.h.
75534         (Include): Add "userspec.h".
75535         Improve description.
75536
75537 2003-11-03  Jim Meyering  <jim@meyering.net>
75538
75539         * lib/userspec.c: Include "userspec.h".
75540         * lib/userspec.h: New file.
75541
75542 2003-11-03  Bruno Haible  <bruno@clisp.org>
75543
75544         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
75545
75546 2003-11-03  Bruno Haible  <bruno@clisp.org>
75547
75548         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
75549         available, to avoid (extremely rare) race condition.
75550         Suggested by Paul Eggert.
75551
75552 2003-11-02  Karl Berry  <karl@gnu.org>
75553
75554         * config/srclist.txt (vasprintf.c): sync broken, sigh.
75555
75556 2003-10-31  Paul Eggert  <eggert@twinsun.com>
75557
75558         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
75559         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
75560         (read_filesystem_list): Set and use me_type_malloced.
75561         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75562         whatever the type happens to be), for brevity and consistency.
75563         Check for size calculation overflow on Alphas running OSF/1.
75564
75565 2003-10-31  Jim Meyering  <jim@meyering.net>
75566
75567         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75568
75569         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75570
75571 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75572             Bruno Haible  <bruno@clisp.org>
75573
75574         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75575         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75576
75577 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75578
75579         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75580         netbsd*-gnu*.  Suggested by Robert Millan.
75581
75582 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75583
75584         * modules/group-member: Depend on stdbool.
75585
75586 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75587
75588         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75589
75590 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75591
75592         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75593         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75594         after the 'gnu' in these cases.  This fixes some bugs in the
75595         previous change, and is based on suggestions by Robert Millan.
75596
75597 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75598
75599         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75600         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75601         no longer needed.
75602         * lib/quotearg.c (quotearg_n_options): Use it.
75603         * lib/group-member.c: Include <stdbool.h>.
75604         (free_group_info): Arg is now const *; don't free arg.
75605         (get_group_info): Now returns bool and accepts struct group_info *,
75606         rather than returning a malloc'ed struct group_info *.
75607         All uses changed.  Check for overflow in internal size calculation.
75608
75609         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75610         rather than xmalloc/xrealloc.
75611         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75612         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75613         conformance bug: the old code used a pointer after freeing the
75614         storage that it addressed.
75615         * lib/hash.c (hash_initialize): Simplify the code by using
75616         xalloc_oversized rather than doing it by hand.
75617         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75618         the buffer preserved.  Use free and xmalloc instead.
75619         * lib/quotearg.c (quotearg_n_options): Likewise.
75620         Use a simpler test for size overflow.  Don't use xalloc_oversized
75621         because unsigned int might be wider than size_t (!); this suggests
75622         that we should switch from unsigned int to size_t for slot numbers.
75623
75624 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75625
75626         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75627         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75628         NetBSD kernels.  Requested by Richard Stallman.
75629
75630 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75631
75632         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75633         to allocate the returned structure.  Do not allocate a subarray,
75634         as x2nrealloc will do that.
75635         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
75636         instead of xnrealloc.
75637         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
75638
75639 2003-10-27  Bruno Haible  <bruno@clisp.org>
75640
75641         * lib/stdbool_.h: Better support for BeOS.
75642
75643 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75644
75645         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
75646         now uses inline.
75647
75648 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75649
75650         * lib/xalloc.h (xalloc_oversized): New static inline function, for
75651         callers that want to do their own size-overflow checking.  Include
75652         <stdbool.h>, since xalloc_oversized returns bool.
75653         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
75654         to use xalloc_oversized.
75655
75656         Add two functions x2realloc, x2nrealloc, for programs that grow
75657         arrays dynamically by doubling their sizes.
75658         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
75659         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
75660         New functions.
75661
75662         Port to C99 semantics for 'inline' of external functions.
75663         Bug reported by Bruno Haible.
75664         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
75665         with the old contents of xnmalloc.
75666         (xnmalloc, xmalloc): Use it.
75667         (xnrealloc_inline): New static inline function,
75668         with the old contents of xnrealloc.
75669         (xnrealloc, xrealloc): Use it.
75670
75671         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
75672         that.
75673
75674 2003-10-26  Karl Berry  <karl@gnu.org>
75675
75676         * config/srclist.txt (COPYING.DOC): no longer available from
75677         /gd/gnuorg; don't know where the ultimate source is.
75678
75679 2003-10-25  Paul Eggert  <eggert@twinsun.com>
75680
75681         Fix several address-calculation bugs in the hash modules,
75682         plus some minor code cleanup.
75683
75684         * lib/hash.h: Include <stdbool.h>, for bool.
75685         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
75686         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
75687         hash_get_n_entries, hash_get_max_bucket_length,
75688         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
75689         hash_rehash): Use size_t rather than unsigned.
75690         * lib/hash.c (struct hash_table, hash_get_n_buckets,
75691         hash_get_n_buckets_used, hash_get_n_entries,
75692         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
75693         hash_get_entries, hash_do_for_each, hash_string, is_prime,
75694         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
75695         Likewise.
75696         (SIZE_MAX): Define if not defined.
75697         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
75698         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
75699         hash_print):
75700         Use const * when possible.
75701         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
75702         (check_tuning): Fix bug: if tuning parameters were very close to
75703         0 or 1, rounding errors could have caused subscript violations.
75704         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
75705         (hash_initialize): Add 'fail:' label
75706         to free table and return NULL, and use it to simplify code.
75707         Use calloc rather than clearing the storage ourself.
75708         (hash_initialize, hash_rehash): Check for arithmetic overflow in
75709         buffer size calculations.
75710         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
75711         Include <stddef.h>, for size_t.
75712         * lib/hash-pjw.c (hash_pjw): Likewise.
75713         Switch to method described by Bruno Haible.
75714         Include <limits.h>, for CHAR_BIT.
75715         (SIZE_BITS): New macro.
75716
75717 2003-10-23  Paul Eggert  <eggert@twinsun.com>
75718
75719         * m4/getline.m4 (AM_FUNC_GETLINE):
75720         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
75721         hosts.  Problem reported by Derek Robert Price in
75722         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
75723         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
75724         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
75725
75726 2003-10-21  Paul Eggert  <eggert@twinsun.com>
75727
75728         * lib/getndelim2.c (getndelim2): When size calculation overflows,
75729         ceiling the allocation at NMAX bytes rather than silently
75730         discarding input bytes before NMAX is reached.  This makes
75731         a difference only if NMAX exceeds SIZE_MAX / 2.
75732
75733         * lib/obstack.c: Merge from glibc.
75734         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
75735         Add libc_hidden_def (_obstack_newchunk).
75736         (_obstack_free) [! defined _LIBC]: Remove.
75737         [defined _LIBC]: Make a strong alias from obstack_free, rather than
75738         a clone of the function body.
75739         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
75740         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
75741
75742         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
75743         glibc.
75744         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
75745         arg to memcpy.
75746
75747         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
75748         (obstack_ptr_grow_fast, obstack_int_grow_fast):
75749         Don't use lvalue casts, as GCC plans to remove support for them
75750         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
75751         was also present in the non-GCC version, indicating that this
75752         code had always been buggy and had never been widely used.
75753         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
75754         Use the fast variant of each macro, rather than copying the
75755         definiens of the fast variant; that way, we'll be more likely to
75756         catch future bugs in the fast variants.
75757
75758 2003-10-20  Bruno Haible  <bruno@clisp.org>
75759
75760         * modules/wait-process: New file.
75761         * MODULES.html.sh (func_all_modules): Add wait-process.
75762
75763 2003-10-20  Bruno Haible  <bruno@clisp.org>
75764
75765         * m4/wait-process.m4: New file.
75766
75767 2003-10-20  Bruno Haible  <bruno@clisp.org>
75768
75769         * lib/wait-process.h: New file, from GNU gettext.
75770         * lib/wait-process.c: New file, from GNU gettext.
75771
75772 2003-10-19  Jim Meyering  <jim@meyering.net>
75773
75774         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
75775         HPUX 10.20.
75776
75777 2003-10-18  Karl Berry  <karl@gnu.org>
75778
75779         * config/config.guess: update from config.
75780
75781 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75782
75783         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
75784         (getgroups): First arg is int, not size_t.
75785         Don't let 'free' mangle errno.
75786
75787 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75788
75789         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
75790
75791 2003-10-16  Karl Berry  <karl@gnu.org>
75792
75793         * config/config.{guess,sub}: update from config.
75794
75795 2003-10-16  Jim Meyering  <jim@meyering.net>
75796
75797         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
75798         memcpy.
75799
75800 2003-10-15  Paul Eggert  <eggert@twinsun.com>
75801
75802         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
75803         (SIZE_MAX): Remove.
75804         (new_exclude, add_exclude_file): Initial size no longer needs to
75805         be a power of 2.
75806         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
75807         our own address arithmetic overflow checking.
75808
75809         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
75810         (fnmatch): Do not alloca more than 2000 wide characters;
75811         instead, use malloc for large buffers.
75812         Check for address arithmetic overflow, and return -1
75813         with errno set to ENOMEM in that case.
75814         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
75815         (NEW_PATTERN): Do not alloca more than 8000 bytes;
75816         instead, return -1.  Check for address arithmetic overflow.
75817
75818 2003-10-14  Paul Eggert  <eggert@twinsun.com>
75819
75820         Handle invalid suffixes and overflow independently, so that
75821         callers can treat them independently as needed.  Fix some bugs in
75822         suffix handling, e.g., "100k@" was not diagnosed as an invalid
75823         suffix for a human-readable blocksize.  The major caller-visible
75824         change is the addition of a new
75825         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
75826         that both overflow and suffix chars were found.
75827
75828         * lib/human.c (humblock): Don't check separately for invalid suffix
75829         char; that is xstrtoumax's job (now that its bug is fixed).
75830         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
75831         INTMAX_MAX]: New macros.
75832         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
75833         TYPE_MAXIMUM): New macros.
75834         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
75835         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
75836         if overflow occurs, as it's what __strtol does and it's more useful
75837         in practice.
75838         (__xstrtol): If __strtol reports some error other than ERANGE,
75839         reflect it to the caller as LONGINT_INVALID.  If it reports
75840         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
75841         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
75842         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
75843         value.
75844         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
75845         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
75846         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
75847         [defined UINTMAX_MAX]: New macros.
75848
75849 2003-10-14  Bruno Haible  <bruno@clisp.org>
75850
75851         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
75852
75853 2003-10-14  Bruno Haible  <bruno@clisp.org>
75854
75855         * m4/sig_atomic_t: New file, from GNU gettext.
75856         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
75857
75858 2003-10-14  Bruno Haible  <bruno@clisp.org>
75859
75860         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
75861         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
75862         Also use volatile where needed.
75863
75864 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75865
75866         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
75867         Change maintainer from Bruno Haible to 'all'.
75868
75869 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75870
75871         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
75872
75873 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75874
75875         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
75876         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
75877         and define in terms of the other primitives.
75878         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
75879         (SIZE_MAX): Define if not already defined.
75880         (array_size_overflow): New function.
75881         (xalloc_die): Abort instead of exiting if 'error' returns.
75882         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
75883         (xmalloc, xrealloc): Use them.
75884         (xcalloc): Check for address arithmetic overflow.
75885         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
75886         a bit faster than strcpy.
75887
75888 2003-10-10  Simon Josefsson  <jas@extundo.com>
75889
75890         * modules/argp (Depends-on): Add restrict and strcase.
75891
75892 2003-10-10  Simon Josefsson  <jas@extundo.com>
75893
75894         * m4/argp.m4: Add AC_C_INLINE.
75895
75896 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75897
75898         Merge getpass from libc, plus a few fixes.
75899
75900         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
75901         Include <stdbool.h>.
75902         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
75903         __fsetlocking to empty.
75904         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
75905         do include <bits/libc-lock.h>.
75906         Do not include <fcntl.h>; not needed.
75907         [_LIBC]: Include <wchar.h>.
75908         (NOTCANCEL_MODE): New macro.
75909         (flockfile, funlockfile) [_LIBC]: New macros.
75910         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
75911         [!_LIBC]: New macros.
75912         (call_fclose): New function.
75913         (getpass): Use it.  Save tty stream separately; this simplifies the
75914         code and makes it more reliable if stdin happens to equal stdout.
75915         Invoke __fsetlocking on tty.
75916         Handle thread cancellation if needed.
75917         Namespace cleanup (use __tcgetattr, __getline).
75918         Use bool for Booleans.
75919         [USE_IN_LIBIO]: Handle wide streams.
75920         [!_LIBC]: Unconditionally do the fseek, since we don't know what
75921         stream might go where.
75922
75923         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
75924         doesn't have to include <stdio.h> before us.
75925         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
75926         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
75927         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
75928         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
75929         if not declared, so that we can use getpass.c code from libc without
75930         rewriting it.
75931         (flockfile, ftrylockfile, funlockfile): New macros.
75932
75933 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75934
75935         * modules/getpass: Depend on stdbool.
75936
75937 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75938
75939         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
75940
75941 2003-10-07  Karl Berry  <karl@gnu.org>
75942
75943         * config/config.{guess,sub}: update from config.
75944
75945 2003-10-06  Jim Meyering  <jim@meyering.net>
75946             Bruno Haible  <bruno@clisp.org>
75947
75948         This lets translators provide better translations for the
75949         "Written by ..." part of --version output.
75950         * lib/version-etc.h: Include stdarg.h.
75951         (version_etc_copyright): Declare as readonly.
75952         (version_etc): Make this function variadic with a NULL-terminated list
75953         of author name strings.
75954         (version_etc_va): New declaration.
75955         * lib/version-etc.c: Include stdarg.h, stdlib.h.
75956         (version_etc_copyright): Declare as readonly.
75957         (version_etc_va): New function. Provide a different translatable string
75958         for each possible number of authors < 10. Abbreviate when there are 10
75959         authors or more.
75960         (version_etc): Make this function variadic. Call version_etc_va.
75961         Suggestion from Gary V. Vaughan.
75962
75963         * lib/long-options.h (parse_long_options): Change prototype: the
75964         authors string is moved to the end and becomes variadic.
75965         * lib/long-options.c: Include stdarg.h.
75966         (parse_long_options): Make this function variadic, too.
75967         Call version_etc_va, not version_etc.
75968
75969 2003-10-06  Bruno Haible  <bruno@clisp.org>
75970
75971         * modules/version-etc-2: Remove file.
75972         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
75973
75974 2003-10-06  Bruno Haible  <bruno@clisp.org>
75975
75976         * modules/fatal-signal: New file.
75977         * MODULES.html.sh (func_all_modules): Add fatal-signal.
75978
75979 2003-10-06  Bruno Haible  <bruno@clisp.org>
75980
75981         * m4/fatal-signal.m4: New file.
75982         * m4/signalblocking.m4: New file, from GNU gettext.
75983
75984 2003-10-06  Bruno Haible  <bruno@clisp.org>
75985
75986         * lib/version-etc-2.h: Remove file.
75987         * lib/version-etc-2.c: Remove file.
75988
75989 2003-10-06  Bruno Haible  <bruno@clisp.org>
75990
75991         * lib/fatal-signal.h: New file, from GNU gettext.
75992         * lib/fatal-signal.c: New file, from GNU gettext.
75993
75994 2003-10-05  Paul Eggert  <eggert@twinsun.com>
75995
75996         * README: Rework advice for preventing empty .o files.
75997         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
75998         not <sys/types.h>.
75999
76000 2003-10-04  Karl Berry  <karl@gnu.org>
76001
76002         * lib/argp*: update from libc.
76003
76004 2003-10-04  Karl Berry  <karl@gnu.org>
76005
76006         * config/config.{guess,sub}: update from config.
76007
76008 2003-10-02  Bruno Haible  <bruno@clisp.org>
76009
76010         * modules/lchown (Include): Add lchown.h.
76011         * modules/time_r (Include): Use "..." syntax.
76012         * modules/xgetdomainname (Include): Add xgetdomainname.h.
76013
76014 2003-10-01  Simon Josefsson  <jas@extundo.com>
76015
76016         * MODULES.html.sh (func_all_modules): Move gethostname from section
76017         'based on' to section 'lacking' POSIX:2001.
76018
76019 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
76020
76021         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
76022         to output mode on the same stream.
76023
76024 2003-09-29  Paul Eggert  <eggert@twinsun.com>
76025
76026         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
76027         Fix arg typo in previous patch.
76028
76029 2003-09-28  Jim Meyering  <jim@meyering.net>
76030
76031         * lib/error.c: Correct cpp indentation.
76032
76033 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76034
76035         * modules/free: New file.
76036
76037 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76038
76039         * m4/free.m4: New file.
76040
76041 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76042
76043         * lib/minmax.h (MIN, MAX)
76044         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
76045         Omit the special code that used __typeof__, since we worry that
76046         it could be more trouble than it's worth.  See:
76047         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
76048         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
76049
76050         * lib/free.c: New file.
76051
76052 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
76053
76054         Trivial fixes to Makefile.am parts of module listings.
76055         * modules/strstr: Append strstr.h to lib_SOURCES.
76056         * modules/strcase: Likewise, for strcase.h.
76057
76058 2003-09-27  Karl Berry  <karl@gnu.org>
76059
76060         * config/mkinstalldirs: update from automake.
76061
76062 2003-09-26  Paul Eggert  <eggert@twinsun.com>
76063
76064         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
76065         (error_tail): Do not loop, reallocating temporary buffer, since
76066         the output cannot contain more wide characters than the input
76067         contains bytes, the size must be big enough already.  This avoids
76068         one potential size overflow calculation.  Check for size overflow
76069         when calculating temporary buffer size.  Free temporary buffer
76070         when done, if it was allocated with malloc; this plugs a memory
76071         leak.  Remove casts from void * to pointers, that are no longer
76072         needed now that we're assuming C89 or better.
76073
76074         Merge error changes from glibc.
76075
76076         * lib/error.c, error.h: Update copyright notice header to match glibc.
76077         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
76078         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
76079         Disable cancellation while printing error.
76080         * lib/error.h: Prepend __ to parameter names.
76081
76082 2003-09-26  Jim Meyering  <jim@meyering.net>
76083
76084         * lib/error.c (error_tail): Move some declarations
76085         into inner scope where the local variables are used.
76086
76087 2003-09-26  Bruno Haible  <bruno@clisp.org>
76088
76089         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
76090         stpncpy().
76091         Don't define stpncpy through config.h; it's now done through stpncpy.h.
76092
76093 2003-09-26  Bruno Haible  <bruno@clisp.org>
76094
76095         * lib/stpncpy.h (gnu_stpncpy): New declaration.
76096         (stpncpy): Define as alias for gnu_stpncpy.
76097         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
76098
76099 2003-09-25  Simon Josefsson  <jas@extundo.com>
76100
76101         * lib/xgetdomainname.h: New file.
76102         * lib/xgetdomainname.c: New file.
76103
76104 2003-09-25  Simon Josefsson  <jas@extundo.com>
76105             Bruno Haible  <bruno@clisp.org>
76106
76107         * modules/getdomainname: New file.
76108         * modules/xgetdomainname: New file.
76109         * MODULES.html.sh (func_all_modules): Add getdomainname,
76110         xgetdomainname.
76111
76112 2003-09-25  Simon Josefsson  <jas@extundo.com>
76113             Bruno Haible  <bruno@clisp.org>
76114
76115         * m4/getdomainname.m4: New file.
76116
76117 2003-09-25  Simon Josefsson  <jas@extundo.com>
76118             Bruno Haible  <bruno@clisp.org>
76119
76120         * lib/getdomainname.h: New file.
76121         * lib/getdomainname.c: New file.
76122
76123 2003-09-25  Karl Berry  <karl@gnu.org>
76124
76125         * lib/argp-fmtstream.c, argp-help.c: update from libc.
76126
76127 2003-09-25  Karl Berry  <karl@gnu.org>
76128
76129         * config/install-sh: update from automake.
76130
76131 2003-09-25  Bruno Haible  <bruno@clisp.org>
76132
76133         * modules/version-etc-2: New file, from modules/version-etc with
76134         modifications.
76135         * MODULES.html.sh (func_all_modules): Add version-etc-2.
76136
76137 2003-09-25  Bruno Haible  <bruno@clisp.org>
76138
76139         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
76140         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
76141
76142 2003-09-24  Simon Josefsson  <jas@extundo.com>
76143
76144         * modules/xgethostname: Add xgethostname.h.
76145
76146 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76147
76148         * lib/linebuffer.c (freebuffer): Don't free the argument, just
76149         the buffer associated with the argument.  Bug reported by
76150         Simon Josefsson.
76151
76152 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76153
76154         * README: Document assumptions that 'int' is at least 32 bits
76155         wide, that integer arithmetic is 2's complement without overflow,
76156         that there are no holes in integer values, that adding sizes of
76157         two nonoverlapping objects can't overflow, and that all-bits-zero
76158         yields scalar zero.  Fix spelling and capitalization typos.
76159
76160 2003-09-19  Karl Berry  <karl@gnu.org>
76161
76162         * lib/argp.h: update from libc.
76163
76164 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76165
76166         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
76167         to avoid spurious warnings like "AC_RUN_IFELSE was called before
76168         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
76169
76170 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76171
76172         * gnulib-tool: Use "test -h", not "test -L", for portability
76173         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
76174         (tags_regexp): Remove, since \| doesn't conform to POSIX.
76175         (sed_extract_prog): Issue s commands one-by-one, rather than
76176         using \| in one s command.
76177
76178 2003-09-16  Paul Eggert  <eggert@twinsun.com>
76179
76180         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
76181         input error, instead of returning NULL the next time we are called
76182         (and therefore losing track of errno).
76183
76184 2003-09-16  Bruno Haible  <bruno@clisp.org>
76185
76186         * gnulib-tool (func_create_testdir): Warn about duplicated
76187         dependencies.
76188
76189 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76190
76191         * modules/argmatch, modules/fatal, modules/obstack,
76192         modules/xalloc, modules/xgethostname: Sort dependencies by
76193         importance, not alphabetically.
76194
76195 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76196
76197         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
76198         fails, so that the caller gets the proper errno.
76199
76200         * lib/readutmp.c (read_utmp): Likewise.
76201         Check for fstat error.  Close stream and free storage
76202         when failing.
76203
76204 2003-09-14  Karl Berry  <karl@gnu.org>
76205
76206         * config/srclist.txt (strdup.c): disable for c89 changes.
76207
76208 2003-09-14  Jim Meyering  <jim@meyering.net>
76209
76210         * lib/getloadavg.c: Correct cpp indentation.
76211         * lib/strdup.c: Likewise.
76212         * lib/vasnprintf.c: Likewise.
76213
76214 2003-09-14  Bruno Haible  <bruno@clisp.org>
76215
76216         * modules/fwriteerror: New file.
76217         * MODULES.html.sh (func_all_modules): Add fwriteerror.
76218
76219 2003-09-14  Bruno Haible  <bruno@clisp.org>
76220
76221         * lib/fwriteerror.h: New file.
76222         * lib/fwriteerror.c: New file.
76223
76224 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76225
76226         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
76227         modules/xgethostname, modules/xalloc: Depend on exit.
76228
76229 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76230
76231         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
76232
76233         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
76234         and AC_MINIX, too, so that their extensions are available.
76235
76236         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
76237         This macro has been superseded by gl_BACKUPFILE.
76238
76239         More patches to assume C89 or better.
76240
76241         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
76242
76243         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
76244         unconditionally.
76245         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
76246         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
76247         Include <string.h>, <stdlib.h> unconditionally.
76248         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
76249         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
76250         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
76251         headers or for string.h.
76252         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76253         or strtoul.
76254
76255         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76256         headers.
76257         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76258         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76259         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76260         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76261         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76262         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76263         memcpy, memset.
76264         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76265         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76266         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76267         strtol.
76268         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76269         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76270         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76271         strtoul.
76272
76273 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76274
76275         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76276         * lib/obstack.c [!defined _LIBC]: Likewise.
76277         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76278         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76279         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76280
76281         More changes to assume C89 or better.
76282
76283         * lib/error.c (error_tail): Assume vprintf.
76284
76285         * lib/argmatch.c (getenv): Remove decl.
76286         * lib/progreloc.c (get_full_program_name): Define via prototype.
76287         * lib/setenv.c (clearenv): Likewise.
76288         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76289         needed.
76290         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76291         (malloc, memcpy): Remove decls.
76292         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76293         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76294         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76295         (memcpy): Remove macro.
76296         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76297         (__P): Remove.  All uses removed.
76298         (PTR): Remove.  All uses changed to void *.
76299         (CHAR_BIT, NULL): Remove.
76300         (spaces, zeros, memset_space, memset_zero)
76301         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76302         Remove.
76303         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76304         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76305         Define with prototype.
76306         Remove now-unnecessary prototype decl.
76307         (extra_args_spec): Assume ANSI C.  All uses changed.
76308         (extra_args_spec_iso): Remove.
76309         (my_strftime, emacs_strftimeu): Define via prototype.
76310         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76311         unconditionally.
76312         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76313         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76314         (strtoul, strtol): Remove decls.
76315         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76316         LONG_MAX): Remove.
76317         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76318         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76319         (LOCALE_PARAM_PROTO): New macro.
76320         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76321         (INTERNAL (strtol), strtol): Define with a prototype.
76322         (PARAMS): Remove.  All uses removed.
76323         * lib/tempname.c: Include <string.h> unconditionally.
76324         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76325         * lib/xgethostname.c (main): Define with a prototype.
76326         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76327         Include <stdlib.h> unconditionally.
76328         (calloc, malloc, realloc, free): Remove decls.
76329         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76330         Include <stdlib.h> unconditionally.  Sort include file names.
76331         (strtod): Remove.
76332         (xstrtod): Define with a prototype.
76333         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76334         (strtol, strtoul): Remove decls.
76335
76336 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76337
76338         More patches to assume C89 or better.
76339         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76340         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76341         string.h, memchr, STDC_HEADERS.
76342
76343 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76344
76345         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76346         Include <stdlib.h>, <string.h> unconditionally.
76347         Remove now-unnecessary cast to char *.
76348         * lib/strnlen.c: Include <string.h> unconditionally.
76349         * lib/yesno.c (yesno): Define with a prototype.
76350
76351 2003-09-11  Bruno Haible  <bruno@clisp.org>
76352
76353         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76354
76355 2003-09-10  Jim Meyering  <jim@meyering.net>
76356
76357         * lib/error.c: Correct indentation of cpp directives.
76358
76359 2003-09-10  Bruno Haible  <bruno@clisp.org>
76360
76361         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76362         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76363         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76364         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76365         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76366         <stdlib.h> and <string.h> checks.
76367         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76368         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76369
76370 2003-09-10  Bruno Haible  <bruno@clisp.org>
76371
76372         * lib/strcspn.c: Include <string.h> unconditionally.
76373         * lib/strpbrk.c: Include <string.h> unconditionally.
76374         * lib/strstr.c: Include <string.h> unconditionally.
76375         * lib/unicodeio.c: Include <string.h> unconditionally.
76376         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76377         * lib/unsetenv.c: Likewise.
76378         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76379         * lib/yesno.c: Include <stdlib.h> unconditionally.
76380         (rpmatch): Add prototype.
76381
76382 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76383
76384         More patches to assume C89 or better.
76385         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76386         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76387         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76388         or for string.h.
76389         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76390         stdlib.h.
76391         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76392         C headers.
76393         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76394         string.h.
76395         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76396         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76397         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76398         or for string.h.
76399         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76400         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76401         C headers.
76402         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76403         memcpy.
76404         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76405         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76406         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76407         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76408         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76409         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76410         string.h, free.
76411         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76412         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76413         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76414         C headers, or for string.h.
76415         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76416         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76417         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76418         headers, memory.h, stdlib.h, string.h, strings.h.
76419         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76420         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76421         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76422         strchr.
76423         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76424         headers, memory.h, string.h.
76425         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76426         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76427         free.
76428         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76429         headers.
76430         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76431         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76432         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76433         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76434         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76435
76436 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76437
76438         More K&R removal.
76439
76440         * lib/acosl.c (main): Use a prototype.
76441         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76442         tanl.c: Likewise.
76443
76444         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76445
76446         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76447         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76448         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76449         with a prototype.
76450         * lib/getopt.c (const): Remove macro.
76451         Include <string.h> unconditionally.
76452         (my_index): Remove; all uses changed to strchr.
76453         (strlen): Remove decl.
76454         (exchange): Remove forward decl; no longer needed.
76455         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76456         Define with prototype.
76457         * lib/getopt1.c (const): Remove macro.
76458         (getopt_long, getopt_long_only, main): Define with prototype.
76459
76460         * lib/getugroups.c: Include <string.h> unconditionally.
76461
76462         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76463         (getusershell, setusershell, endusershell, readname, main):
76464         Define with prototypes.
76465
76466         * lib/group-member.c: Include group-member.h first.
76467         Include <stdlib.h> unconditionally.
76468
76469         * lib/hard-locale.c: Include hard-locale.h first.
76470         Include <stdlib.h>, <string.h> unconditionally.
76471
76472         * lib/hash.c (free, malloc): Remove decls.
76473         Include <stdlib.h> unconditionally.
76474
76475         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
76476         (getenv): Do not declare.
76477
76478         * lib/idcache.c: Include <string.h> unconditionally.
76479
76480         * lib/long-options.c: Include long-options.h first, to test interface.
76481         Include <stdlib.h> unconditionally.
76482
76483         * lib/makepath.c: Include makepath.h first, to test interface.
76484         Include <stdlib.h> and <string.h> unconditionally.
76485
76486         * lib/linebuffer.c: Include <stdlib.h>.
76487         (free): Remove decl.
76488
76489         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
76490         stddef.h. rpl_malloc returns void *, not char *.
76491         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
76492         prototype.
76493
76494         * lib/md5.h: Include <limits.h> unconditionally.
76495         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
76496         (__P): Remove; all uses removed.
76497         * lib/md5.c: Include "md5.h" first.
76498         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
76499         md5_buffer, md5_process_bytes, md5_process_block):
76500         Define with prototypes.
76501         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
76502         * lib/sha.c: Include "sha.h" first.
76503         Include <stdlib.h>, <string.h> unconditionally.
76504
76505         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
76506         * lib/memcmp.c (__ptr_t): Likewise.
76507         * lib/memrchr.c (__ptr_t): Likewise.
76508         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
76509         Include <string.h> unconditionally.
76510         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
76511         * lib/memchr.c: Include <stdlib.h> unconditionally.
76512         * lib/memchr.c (LONG_MAX): Remove.
76513         * lib/memrchr.c (LONG_MAX): Likewise.
76514         * lib/memchr.c (__memchr): Define via a prototype.
76515         * lib/memrchr.c (__memrchr): Likewise.
76516         * lib/memcmp.c (__P): Remove, and remove all uses.
76517         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
76518         Remove forward decls; no longer needed.
76519         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
76520         Use types required by C89 in prototype.
76521
76522         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
76523         * lib/savedir.c: Likewise.
76524         * lib/mkdir.c (free): Remove decl.
76525         * lib/rmdir.c (rmdir): Define with a prototype.
76526         * lib/savedir.c: Include savedir.h first, to test interface.
76527
76528         * lib/mktime.c (STDC_HEADERS): Remove.
76529         Include <stdlib.h>, <string.h> unconditionally.
76530
76531         * lib/modechange.c: Include <stdlib.h> unconditionally.
76532         (malloc): Remove decl.
76533
76534         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
76535         (free): Remove decl.
76536
76537         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
76538         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
76539         (This type really should be intptr_t, but that's a C99ism.)
76540         (_obstack_memcpy): Remove: all uses changed to memcpy.
76541         Include <string.h> unconditionally.
76542         (struct obstack): Assume __STDC__ for types of members
76543         chunkfun, freefun, extra_arg.
76544         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
76545         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
76546         obstack_begin, obstack_specify_allocation,
76547         obstack_specify_allocation_with_arg, obstack_chunkfun,
76548         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
76549         Remove unprototyped decls and the macros that use them.
76550         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
76551         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
76552         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
76553         (defined __STDC__ && __STDC__)]:
76554         Remove nonprototyped code.
76555         Include <stdlib.h> unconditionally.
76556         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
76557         _obstack_allocated_p, _obstack_free, obstack_free,
76558         _obstack_memory_used, print_and_abort):
76559         Define using prototypes.
76560         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
76561         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76562         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76563         obstack_next_free, obstack_object_size, obstack_room) [0]:
76564         Remove unused, unprototyped code.
76565
76566         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76567
76568         * lib/physmem.c (physmem_total, physmem_available, main): Define
76569         with prototypes.
76570
76571         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76572         (main): Define with a prototype.
76573
76574         * lib/posixver.c (getenv): Remove decl.
76575
76576         * lib/putenv.c (malloc): Returns void *, not char *.
76577         Include <string.h> unconditionally.
76578         (strchr, memcpy, NULL): Do not define.
76579
76580         * lib/readtokens.c: Include readtokens.h first, to test interface.
76581         Include <stdlib.h>, <string.h> unconditionally.
76582         (init_tokenbuffer): Define with a prototype.
76583
76584         * lib/regex.c (PARAMS): Remove.  All uses removed.
76585         All uses of _RE_ARGS removed, too.
76586         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76587         unconditionally.
76588         (bzero): Assume memset exists.
76589         (memcmp, memcpy, NULL): Remove.
76590         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76591         char, or assignments to local vars of type signed char.
76592         (init_syntax_once, PREFIX(extract_number_and_incr),
76593         PREFIX(print_partial_compiled_pattern),
76594         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76595         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76596         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76597         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76598         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76599         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76600         wcs_compile_range, byte_compile_range, truncate_wchar,
76601         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76602         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76603         count_mbs_length, wcs_re_match_2_internal,
76604         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76605         PREFIX(alt_match_null_string_p),
76606         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76607         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76608         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76609         now-unnecessary declaration, if any.
76610         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76611         regcomp, regexec):
76612         Remove now-unnecessary casts among pointer types.
76613         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76614
76615         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76616         (free): Remove decl.
76617
76618         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76619
76620         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76621         (free): Remove decl.
76622
76623         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76624         * lib/xgetcwd.c: Likewise.
76625
76626         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76627         (free): Remove decl.
76628
76629         * lib/strchrnul.c (strchrnul): Define with a prototype.
76630         Fix bug: c_in was not converted to char before searching.
76631
76632         The following changes are not K&R related:
76633
76634         * lib/group-member.h: Include <sys/types.h>, so that this file is
76635         self-contained.
76636         * lib/makepath.h: Likewise.
76637
76638         * lib/getusershell.c (readname, default_index, line_size, readname):
76639         Use size_t, not int, for sizes.
76640         (readname): If the size overflows, report an error instead of
76641         looping forever.
76642
76643 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76644
76645         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
76646         libc.
76647
76648 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76649
76650         * README: New section: portability guidelines.
76651
76652 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76653
76654         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
76655         C89 spec.
76656
76657 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76658
76659         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
76660
76661 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76662
76663         Assume C89 or better; remove K&R cruft.
76664         A few of these changes were first proposed by Derek Robert Price
76665         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
76666
76667         * lib/addext.c: Include <string.h> unconditionally.
76668         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
76669         Don't declare getenv or malloc.
76670
76671         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
76672         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
76673         (NULL): Remove.
76674         (find_stack_direction, alloca): Use prototypes.
76675
76676         * lib/atexit.c (atexit): Define using a prototype.
76677
76678         * lib/basename.c, dirname.c, stripslash.c:
76679         Include <string.h> unconditionally.
76680
76681         * lib/bcopy.c: Include <stddef.h>.
76682         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
76683
76684         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
76685
76686         * lib/error.h (error, error_at_line, error_print_progname)
76687         [! (defined (__STDC__) && __STDC__)]: Remove decls.
76688         * lib/error.c: Include error.h first, to check interface.
76689         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76690         (VA_START): Remove; all uses changeed to va_start.
76691         (exit, strerror): Remove decls.
76692         (error_print_progname): Prototype uncondionally.
76693         Don't include <errno.h>; no longer needed.
76694         (private_strerror): Remove.
76695         (error_tail): Always define.
76696         (error, error_at_line): Assume C89 or better; always use prototypes.
76697         * lib/fatal.c: Include "fatal.h" first, to test interface.
76698         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76699         (VA_START): Remove; all uses changed to va_start.
76700         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
76701         this case.
76702         (exit): Remove decl.
76703         (fatal): Prototype unconditionally.  Assume va_start works.
76704         Abort at end, to pacify gcc.
76705
76706         * lib/euidaccess.c (main): Define with a prototype.
76707
76708         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
76709
76710         * lib/exitfail.c: Include <stdlib.h> unconditionally.
76711
76712         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
76713         prototypes.
76714         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
76715         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
76716         (getenv): Remove decl.
76717         (fnmatch): Define using a prototype.
76718         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
76719         (FCT): Define using a prototype.
76720
76721         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
76722
76723         * lib/gethostname.c: Include <stddef.h>.
76724         (gethostname): Define with prototype.  Length is size_t, not int.
76725
76726 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76727
76728         Assume C89 or better; remove K&R cruft.
76729         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
76730         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
76731         string.h, getenv, malloc.
76732         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
76733         headers.
76734         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
76735         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
76736         do not check for strerror.
76737         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
76738         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
76739         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
76740         do not check for doprnt or vprintf.
76741         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
76742         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
76743
76744 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76745
76746         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
76747         getversion.c should have been removed then, but was accidentally
76748         preserved.
76749
76750         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
76751         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
76752
76753 2003-09-08  Karl Berry  <karl@gnu.org>
76754
76755         * config/config.sub, config.guess, srclistvars.sh: update from savannah
76756                 config, forget about prep.
76757
76758         * config/depcomp, missing: update from automake.
76759
76760 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76761
76762         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
76763         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76764
76765 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76766
76767         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
76768         copy_tm_result.  Bug reported by Simon Josefsson in
76769         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76770
76771 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76772
76773         * m4/time_r.m4: New file.
76774         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
76775         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
76776         is. Check for timegm declaration.
76777         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
76778         Do not check for gmtime_r.
76779         Replace mktime if __mktime_internal does not exist and if mktime
76780         hasn't been replaced already.
76781
76782 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76783
76784         * lib/time_r.c, lib/time_r.h: New files.
76785
76786         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
76787         __localtime_r.
76788         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
76789         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
76790
76791         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
76792         __gmtime_r.
76793         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
76794         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
76795         Include <time_r.h>.
76796
76797         * lib/timegm.c: Switch to glibc implementation, with the following
76798         changes:
76799         [defined HAVE_CONFIG_H]: Include <config.h>.
76800         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
76801         (__mktime_internal) [!defined _LIBC]: New decl.
76802         (__gmtime_r) [!defined _LIBC]: New macro and function.
76803         (timegm): Use a prototype, since gnulib assumes C89.
76804         Do not bother declaring tmp to be const, as it's not really usefu.
76805         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
76806         (timegm): Declare only if HAVE_DECL_TIMEGM.
76807
76808 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76809
76810         * MODULES.html.sh (func_all_modules): Add time_r.
76811         * modules/time_r: New file.
76812         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
76813         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
76814
76815 2003-09-03  Paul Eggert  <eggert@twinsun.com>
76816
76817         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
76818         Bug reported by Lute Kamstra in
76819         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
76820
76821         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
76822         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
76823         course with correspondingly smaller numbers for tomorrow and
76824         yesterday.  From Tadayoshi Funaba.  Originally installed into
76825         sh-utils on 1999-08-07, but the patch got lost (I guess during the
76826         coreutils merge?).
76827
76828 2003-08-31  Simon Josefsson  <jas@extundo.com>
76829
76830         * modules/timegm: New file.
76831         * MODULES.html.sh (func_all_modules): Add timegm.
76832
76833 2003-08-31  Simon Josefsson  <jas@extundo.com>
76834
76835         * m4/timegm.m4: New file.
76836
76837 2003-08-31  Simon Josefsson  <jas@extundo.com>
76838
76839         * lib/timegm.h: New file.
76840         * lib/timegm.c: New file.  Based on
76841         wget-1.8.2/src/http.c:mktime_from_utc.
76842
76843 2003-08-31  Karl Berry  <karl@gnu.org>
76844
76845         * lib/argp.h: update from libc.
76846
76847 2003-08-28  Bruno Haible  <bruno@clisp.org>
76848
76849         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
76850         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
76851         followed by '#define fnmatch fnmatch_posix' gives an error.
76852
76853 2003-08-28  Bruno Haible  <bruno@clisp.org>
76854
76855         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
76856         warning on QNX, which defines O_BINARY to 000000.
76857
76858 2003-08-27  Jim Meyering  <jim@meyering.net>
76859
76860         * m4/mkstemp.m4: Require that the system mkstemp be able to create
76861         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
76862         would fail after 32.  Reported by Danny Levinson.  Details here:
76863         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
76864
76865 2003-08-24  Bruno Haible  <bruno@clisp.org>
76866
76867         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
76868         MSVC7 <stdio.h> is included later.
76869
76870 2003-08-22  Simon Josefsson  <jas@extundo.com>
76871
76872         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
76873
76874 2003-08-20  Karl Berry  <karl@gnu.org>
76875
76876         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
76877
76878 2003-08-20  Bruno Haible  <bruno@clisp.org>
76879
76880         * modules/progname: New file.
76881         * MODULES.html.sh (func_all_modules): Add progname.
76882
76883 2003-08-20  Bruno Haible  <bruno@clisp.org>
76884
76885         * lib/progname.h: New file, from GNU gettext.
76886         * lib/progname.c: New file, from GNU gettext.
76887         * lib/progreloc.c: New file, from GNU gettext.
76888
76889 2003-08-19  Jim Meyering  <jim@meyering.net>
76890
76891         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
76892         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
76893
76894 2003-08-19  Bruno Haible  <bruno@clisp.org>
76895
76896         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
76897         more.
76898
76899 2003-08-19  Bruno Haible  <bruno@clisp.org>
76900
76901         * lib/xstrdup.c: Assume <string.h> exists.
76902
76903 2003-08-18  Paul Eggert  <eggert@twinsun.com>
76904
76905         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
76906         in makefile rules.
76907
76908 2003-08-18  Jim Meyering  <jim@meyering.net>
76909
76910         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
76911         * m4/lib-ld.m4: Likewise.
76912
76913 2003-08-18  Jim Meyering  <jim@meyering.net>
76914
76915         * lib/setenv.h: Indent nested cpp directive.
76916         * lib/vasnprintf.c: Remove trailing blanks.
76917
76918 2003-08-17  Simon Josefsson  <jas@extundo.com>
76919
76920         * modules/xstrndup: New file.
76921         * MODULES.html.sh (func_all_modules): Add xstrndup.
76922
76923 2003-08-17  Simon Josefsson  <jas@extundo.com>
76924
76925         * modules/argp: Fix autoconf macro name. Add more dependencies.
76926
76927 2003-08-17  Simon Josefsson  <jas@extundo.com>
76928
76929         * m4/xstrndup.m4: New file.
76930
76931 2003-08-17  Simon Josefsson  <jas@extundo.com>
76932
76933         * m4/argp.m4: New file.
76934
76935 2003-08-17  Simon Josefsson  <jas@extundo.com>
76936             Bruno Haible  <bruno@clisp.org>
76937
76938         * lib/xstrndup.h: New file.
76939         * lib/xstrndup.c: New file.
76940
76941 2003-08-17  Bruno Haible  <bruno@clisp.org>
76942
76943         * modules/strndup (Files, Include): Add lib/strndup.h.
76944
76945 2003-08-17  Bruno Haible  <bruno@clisp.org>
76946
76947         * modules/euidaccess (Files): Add lib/euidaccess.h.
76948
76949 2003-08-17  Bruno Haible  <bruno@clisp.org>
76950
76951         * lib/strndup.h: New file.
76952
76953 2003-08-17  Bruno Haible  <bruno@clisp.org>
76954
76955         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
76956         like AC_GNU_SOURCE.
76957         * modules/extensions (configure.ac): Comment out the invocation of
76958         gl_USE_SYSTEM_EXTENSIONS.
76959
76960 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76961
76962         Merges from coreutils, etc.
76963         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
76964         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
76965         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
76966         fixing a typo.
76967         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
76968         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
76969
76970 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76971
76972         Document merge from coreutils.
76973         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
76974         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
76975         * modules/utime: Add m4/utimes-null.m4.
76976
76977 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76978
76979         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
76980         space, undoing this 2003-08-12 change:
76981         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76982
76983 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76984
76985         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
76986         strtoul.c from libc, undoing this 2003-08-12 change:
76987         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76988
76989 2003-08-16  Jim Meyering  <jim@meyering.net>
76990
76991         Merges from coreutils.
76992         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
76993         prefix.  Adjust cache variables similarly.  Create 500 rather than
76994         just 300 files, to exercise bug on Darwin6.5, too.
76995         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
76996         $missing_dir.
76997         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
76998         AM_SYS_POSIX_TERMIOS.
76999         Reported by mkc@mathdogs.com.
77000         Also change use of $am_cv_sys_posix_termios
77001         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
77002         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
77003         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
77004         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
77005         in /proc/mounts until it finds one with matching device number.  This
77006         is unnecessary when the FILE argument *is* a mount point.  No stat call
77007         is necessary in that case.  So, disable the statvfs-testing code on
77008         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
77009         as RedHat bug# 84846.
77010         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77011         to 1MB, so as not to render systems with no stack size limit (e.g.,
77012         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77013         Include <unistd.h>.  On some systems,
77014         it is required for the definition of _SC_PAGESIZE.
77015
77016 2003-08-16  Jim Meyering  <jim@meyering.net>
77017
77018         Merge from coreutils.
77019         * lib/xstrtoimax.c: #else #if -> #elif.
77020         * lib/xstrtoumax.c: Likewise.
77021
77022 2003-08-16  Jim Meyering  <jim@meyering.net>
77023
77024         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
77025         * m4/utimes.m4: Removed.
77026         * m4/utimes-null.m4: Renamed from utimes.m4.
77027
77028         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77029         to 1MB, so as not to render systems with no stack size limit (e.g.,
77030         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77031         Include <unistd.h>.  On some systems,
77032         it is required for the definition of _SC_PAGESIZE.
77033
77034 2003-08-16  Jim Meyering  <jim@meyering.net>
77035         and Paul Eggert  <eggert@cs.ucla.edu>
77036
77037         Merges from coreutils, etc.
77038
77039         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
77040         using the latest version from cvs.  This avoids problems with #line
77041         directives using a vendor (Sun) compiler.
77042         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
77043         Don't set GETGROUPS_LIB here; now it's
77044         done via getgroups.m4's wrapper function.
77045         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
77046         rather than just in sh-util/configure.in, so that the
77047         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
77048         same.
77049         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
77050         AC_FUNC_GETLOADAVG where to find getloadavg.c.
77051         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
77052         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
77053         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
77054         Remove code that is now done by the newly-required macros.
77055         Append $(EXEEXT) to DF_PROG.
77056         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
77057         Do not invoke or require the following here,
77058         since prereq.m4 or some gnulib .m4 now does this for us:
77059         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
77060         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
77061         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
77062         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
77063         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
77064         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
77065         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
77066         AC_FUNC_OBSTACK.
77067         Do not replace the following functions, as this is now the job
77068         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
77069         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
77070         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
77071         atexit getpass, strdup, getpagesize.
77072         Replace 'raise'.
77073         Do not check for the following functions, as this is now the job
77074         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
77075         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
77076         setregid.
77077         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
77078         Check for sys/sysctl.h.
77079         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
77080         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
77081         of checking for ssize_t ourselves.
77082
77083         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
77084         Require every macro that gnulib/modules/* suggests for us.
77085         (jm_PREREQ_ADDEXT): New macro.
77086         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
77087         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
77088
77089         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
77090         (gl_PHYSMEM): Use it.
77091         Also check for `table' function.
77092         Check for new headers and functions.
77093         Add check for sys/sysmp.h.
77094         With suggestions from Kaveh Ghazi.
77095         Ignore headers that are present but cannot be compiled.  This
77096         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
77097         C 5.4.
77098
77099 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77100
77101         Document merge from coreutils.
77102         * modules/userspec: Depend on posixver.
77103         * modules/strftime: Depend on tzset.
77104
77105 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77106
77107         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
77108         rather than tab, after '#' in shell-script copyright notices.
77109         Suggested by Bruno Haible.
77110
77111 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77112
77113         * config/srclist-update: Use three spaces, rather than tab, after '#'
77114         in shell-script copyright notices.  Suggested by Bruno Haible.
77115         Remove unnecessary parenthesization in regular expression.
77116
77117 2003-08-15  Jim Meyering  <jim@meyering.net>
77118
77119         Merge from coreutils.
77120         * lib/xgethostname.c: Include <stdlib.h>.
77121         (xghostname): Don't exit for anything other than memory-related
77122         failure; just return NULL.
77123         * lib/userspec.c: Include "posixver.h".
77124         (parse_user_spec): Accept `.' as a separator only
77125         in pre-POSIX-200112 mode.
77126         * lib/strtoimax.c: Use #elif rather than #else #if.
77127         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
77128         Remove function, now that we can rely on a working tzset function.
77129         [!_LIBC]: Ensure that the required autoconf test has been run.
77130         [!defined _NL_CURRENT && HAVE_STRFTIME]:
77131         Use underlying_strftime for %r.
77132         * lib/sha.c: Merge in some clean-up and optimization changes from
77133         glibc.
77134         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
77135         Ensure that it is a multiple of 64.
77136         Rearrange loop exit tests so as to avoid performing an
77137         additional fread after encountering an error or EOF.
77138         * lib/realloc.c: Update copyright date.
77139
77140 2003-08-15  Jim Meyering  <jim@meyering.net>
77141         and Paul Eggert  <eggert@twinsun.com>
77142
77143         Merge from coreutils.
77144         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
77145         member but strut utmpx does not.  Needed for AIX 4.3.3.
77146         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
77147
77148 2003-08-15  Jim Meyering  <jim@meyering.net>
77149         and Paul Eggert  <eggert@cs.ucla.edu>
77150
77151         Merges from coreutils, etc.
77152         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
77153         Require gl_FUNC_TZSET_CLOBBER.
77154         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
77155         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
77156         members.
77157
77158 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77159
77160         Help the merge from coreutils.
77161         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
77162         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
77163         * m4/tzset.m4: Use it too.
77164
77165 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77166
77167         * modules/tzset: New file.
77168
77169 2003-08-14  Jim Meyering  <jim@meyering.net>
77170
77171         Merges from coreutils.
77172         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
77173         variable names, rather than @FNMATCH_H@.
77174         * modules/alloca: Likewise for $(ALLOCA_H).
77175
77176         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
77177         the three copies of the literal target, `fnmatch.h'.
77178         * modules/alloca (alloca.h): Likewise.
77179
77180 2003-08-14  Jim Meyering  <jim@meyering.net>
77181
77182         Merge from coreutils.
77183         * m4/tzset.m4: New file.
77184         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
77185         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
77186         otherwise, AIX 5.1 systems would end up using the latter.
77187         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
77188         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
77189         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
77190         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
77191
77192 2003-08-14  Jim Meyering  <jim@meyering.net>
77193
77194         Merge from coreutils.
77195         * lib/obstack.h: Whitespace changes.
77196         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
77197         and xcalloc return values.
77198         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
77199         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
77200         hang on OSF/1 5.1 for DIR on both local and remote file systems.
77201         Reported by (and fix confirmed by) Nelson H. F. Beebe.
77202         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77203         error from mntctl.
77204         Use mntctl's return value to drive the entry-processing loop, since
77205         we can't rely on the value of the vmt_length member in the last
77206         entry.  On some systems doing so could result in exhausting
77207         virtual memory.  Based in part on a patch from Mike Jetzer.
77208
77209 2003-08-14  Jim Meyering  <jim@meyering.net>
77210         and Paul Eggert  <eggert@twinsun.com>
77211
77212         Merges from coreutils, plus other fixes.
77213         * lib/physmem.c: Merge in portability changes from gcc/libiberty
77214         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
77215         for credits and details.  Thanks to Kaveh Ghazi for helping
77216         to keep these files in sync.
77217         (ARRAY_SIZE): Define it.
77218         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
77219         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
77220         (memcasecmp): Don't assume size_t fits in unsigned int.
77221         Remove casts and duplicate code.
77222         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
77223         (memcpy): Remove definition.
77224         Merge in some clean-up and optimization changes from glibc.
77225         [BLOCKSIZE]: Move definition to top of file.
77226         Ensure that it is a multiple of 64.
77227         Rearrange loop exit tests so as to avoid performing an
77228         additional fread after encountering an error or EOF.
77229         * lib/md5.h (md5_uintptr): Define.
77230         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
77231         return to the initial working directory.  Preserve errno
77232         for caller.
77233         * lib/idcache.c: Include "xalloc.h".
77234         (xmalloc, xrealloc): Remove decls.
77235         (getuser): Remove casts no longer required in C89.
77236         * lib/human.c: Include stdio.h, for sprintf.
77237         * lib/group-member.c: Include "xalloc.h".
77238         (xmalloc, xrealloc): Remove decls.
77239         (get_group_info): Remove casts no longer required in C89.
77240         * lib/getusershell.c (readname): Remove casts no longer required in
77241         C89.
77242         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
77243         * lib/getline.c: Whitespace fix, from coreutils.
77244
77245 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77246
77247         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
77248         Check for isascii.
77249
77250         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77251         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77252         Undo previous (whitespace-only) change.
77253
77254 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77255
77256         * lib/exclude.c: Include <ctype.h>
77257         (IN_CTYPE_DOMAIN): New macro.
77258         (is_space): New fn.
77259         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77260         and empty lines.
77261
77262         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77263         Undo previous (whitespace-only) change.
77264
77265 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77266
77267         * config/srclist-update: Change update back to the old behavior,
77268         leaving whitespace alone.  Use one 'sed' command rather than a
77269         pipeline.
77270         (fixlicense): Now a variable, not a function.
77271         (remove_trailing_blanks): Remove.
77272         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77273         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77274         Undo previous (whitespace-only) change.
77275
77276 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77277
77278         Merge from coreutils.
77279         * modules/euidaccess: Add lib_SOURCES, include for new
77280         file euidaccess.h
77281
77282 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77283
77284         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77285         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77286         Normalize leading white space and remove trailing white space.
77287
77288         Merge from coreutils
77289         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77290
77291         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77292         0.12.1.  These files are now being upgraded automatically by
77293         ../config/srclist-update.
77294
77295 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77296
77297         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77298         Normalize leading white space and remove trailing white space.
77299         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77300         notice, as per ../config/srclist-update.
77301
77302         Merge from coreutils.
77303         * lib/euidaccess.h: New file.
77304         * lib/euidaccess.c: Include it.
77305         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77306         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77307         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77308
77309 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77310
77311         * config/srclist-update: Add copyright notice.
77312         (remove_id_lines, remove_trailing_blanks): New constants.
77313         (fixfile): Use them to normalize spacing a bit in copied files.
77314         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77315         Normalize leading white space and remove trailing white space.
77316
77317         * config/texinfo.tex: Sync with texinfo.
77318
77319         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77320         strtoul.c from libc, to merge coreutils whitespace changes.
77321
77322         * config/srclist.txt: Get the following m4 files from gettext:
77323         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77324         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77325         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77326         wint_t.m4.
77327
77328 2003-08-12  Karl Berry  <karl@gnu.org>
77329
77330         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77331         been made.
77332
77333 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77334
77335         * modules/gnu-source, m4/gnu-source.m4:
77336         Remove; we're assuming Autoconf 2.54 or later now.
77337         Suggested by Bruno Haible.
77338         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77339
77340 2003-08-11  Bruno Haible  <bruno@clisp.org>
77341
77342         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77343
77344 2003-08-11  Bruno Haible  <bruno@clisp.org>
77345
77346         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77347         (vasnprintf): Use it instead of wcslen.
77348
77349 2003-08-11  Bruno Haible  <bruno@clisp.org>
77350
77351         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77352         value to ensure that _Bool promotes to int. Use #define for _Bool when
77353         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77354
77355 2003-08-10  Karl Berry  <karl@gnu.org>
77356
77357         * lib/regex.h: update from libc (whitespace fix).
77358
77359 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77360
77361         Merge some files from coreutils.  These changes were
77362         originally made by Jim Meyering.
77363         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77364         many older Unixes require this.
77365         * lib/alloca.c (alloca): Remove cast to argument of free;
77366         no longer needed in C89.
77367         * lib/alloca_.h, regex.h: Fix white space to match
77368         what GNU indent does.
77369
77370 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77371
77372         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77373         apparently Emacs's Unicode mode got confused before my 2003-08-05
77374         checkin.
77375
77376 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77377
77378         * m4/extensions.m4: New file.
77379         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77380         Require gl_USE_SYSTEM_EXTENSIONS.
77381         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77382         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77383
77384 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77385
77386         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77387         * modules/extensions, modules/gnu-source: New files.
77388         * modules/timespec, modules/unlocked-io: Depend on extensions.
77389
77390 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77391
77392         * modules/restrict: New file.
77393         * MODULES.html.sh (func_all_modules): Add restrict.
77394         * modules/regex: Depend on restrict.
77395
77396 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77397
77398         * m4/restrict.m4: New file.
77399         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77400
77401 2003-08-07  Bruno Haible  <bruno@clisp.org>
77402
77403         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77404         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77405
77406 2003-08-07  Bruno Haible  <bruno@clisp.org>
77407
77408         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77409         makes the module 'getndelim2' compatible with the module 'getline'.
77410
77411 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77412
77413         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77414         byte with "\201" to avoid glitches when editing that source file
77415         with multi-gnome-terminal.
77416
77417 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77418
77419         * lib/bumpalloc.h: Remove.
77420
77421 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77422
77423         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77424         * modules/bumpalloc: Remove.
77425
77426 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77427
77428         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77429         GNU coding style.
77430
77431         Merge from coreutils.
77432         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77433         1. From glibc.
77434         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77435         from Karl Berry, implemented by Jim Meyering.
77436         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77437         from Dmitry V. Levin.
77438         Remove anachronistic cast of xrealloc.
77439         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77440         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77441         type. Otherwise, it wouldn't compile with at least /bin/cc on
77442         ymp-cray-unicos9.0.2.X.
77443         Combine two mostly-identical uses of alloca into one.
77444         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77445
77446 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77447
77448         [From Emacs.]
77449
77450         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77451         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77452         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77453         obsolete NLIST_NAME_UNION.
77454         [__GNU__]: Undef BSD and FSCALE.
77455         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77456
77457 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77458
77459         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77460         an enum type, so that it's guaranteed to promote to int.  See:
77461         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77462
77463 2003-08-03  Karl Berry  <karl@gnu.org>
77464
77465         * config/depcomp: update from automake.
77466
77467 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77468
77469         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77470         (strerror): Don't assume that a printable int fits in 14 bytes.
77471
77472 2003-07-31  Bruno Haible  <bruno@clisp.org>
77473
77474         * modules/getpass-gnu: New file.
77475         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
77476
77477 2003-07-31  Bruno Haible  <bruno@clisp.org>
77478
77479         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
77480
77481 2003-07-24  Karl Berry  <karl@gnu.org>
77482
77483         * config/missing: update from automake.
77484
77485 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
77486             Bruno Haible  <bruno@clisp.org>
77487
77488         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
77489         * lib/getline.c (getline, getdelim): Likewise.
77490         Remove _GNU_SOURCE define; now it's defined in config.h through
77491         m4/getline.m4.
77492
77493 2003-07-23  Karl Berry  <karl@gnu.org>
77494
77495         * config/config.sub: update from prep.
77496
77497 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77498
77499         * modules/xalloc (Depends-on): Add exitfail.
77500         * modules/xmemcoll: Likewise.
77501
77502 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77503
77504         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
77505         over-parenthesization in macros.
77506
77507         Sync with coreutils.
77508
77509         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
77510         required by C99.
77511
77512         Use `exit_failure' for xalloc and xmemcoll instead of their own
77513         private exit-failure variables.
77514         * lib/xalloc.h (xalloc_exit_failure): Remove.
77515         * lib/xmalloc.c: Likewise.  Include exitfail.h.
77516         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
77517         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
77518         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
77519         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
77520
77521 2003-07-20  Jim Meyering  <jim@meyering.net>
77522
77523         * modules/closeout (Depends-on): Add exitfail.
77524         Suggestion from Bruno Haible.
77525
77526 2003-07-19  Karl Berry  <karl@gnu.org>
77527
77528         * config/config.sub: update from prep.
77529
77530 2003-07-18  Paul Eggert  <eggert@twinsun.com>
77531
77532         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
77533         Remove.
77534         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
77535         to test that it can stand by itself.  Include "exitfail.h".
77536         Clients should set exit_failure instead.
77537         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
77538
77539 2003-07-18  Bruno Haible  <bruno@clisp.org>
77540
77541         * modules/getndelim2: New file.
77542         * modules/getline: Share files with module getndelim2.
77543         * modules/getnline: Depend on getndelim2 instead of sharing files with
77544         it. Add getnline.c to lib_SOURCES.
77545         * MODULES.html.sh (func_all_modules): Add getndelim2.
77546
77547 2003-07-18  Bruno Haible  <bruno@clisp.org>
77548
77549         * m4/getndelim2.m4: New file.
77550         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
77551         invoke gl_PREREQ_GETNDELIM2.
77552         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
77553         gl_PREREQ_GETNDELIM2.
77554         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
77555         gl_GETNDELIM2.
77556
77557 2003-07-18  Bruno Haible  <bruno@clisp.org>
77558
77559         * lib/getndelim2.h: New file.
77560         * lib/getndelim2.c: Make into a module of its own. Include config.h,
77561         getndelim2.h.
77562         (getndelim2): Make non-static. Change return type to ssize_t.
77563         * lib/getline.h: Change argument names.
77564         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77565         * lib/getnline.c: Include getndelim2.h.
77566
77567 2003-07-18  Andreas Schwab  <schwab@suse.de>
77568
77569         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77570
77571 2003-07-17  Karl Berry  <karl@gnu.org>
77572
77573         * config/config.sub: update from prep.
77574
77575 2003-07-17  Bruno Haible  <bruno@clisp.org>
77576
77577         * modules/getnline: New file.
77578         * modules/getline: Add lib/getndelim2.c to source file list.
77579         * MODULES.html.sh (func_all_modules): Add getnline.
77580
77581 2003-07-17  Bruno Haible  <bruno@clisp.org>
77582
77583         * m4/getnline.m4: New file.
77584
77585 2003-07-17  Bruno Haible  <bruno@clisp.org>
77586
77587         * m4/Makefile.am.in: Remove file.
77588         * m4/Makefile.am: Remove file.
77589         * m4/Makefile.in: Remove file.
77590
77591 2003-07-17  Bruno Haible  <bruno@clisp.org>
77592
77593         * lib/getnline.h: New file.
77594         * lib/getnline.c: New file.
77595         * lib/getndelim2.c: New file, extracted from getline.c.
77596         (getndelim2): Renamed from getdelim2, with added nmax argument.
77597         * lib/getline.c: Include getndelim2.c.
77598         (getdelim2): Moved out to getndelim2.c.
77599         (getline, getdelim): Update.
77600
77601 2003-07-17  Bruno Haible  <bruno@clisp.org>
77602
77603         * lib/Makefile.am: Remove file.
77604         * lib/Makefile.in: Remove file.
77605
77606 2003-07-17  Bruno Haible  <bruno@clisp.org>
77607
77608         * configure.in: Remove file.
77609         * Makefile.in: Remove file.
77610
77611 2003-07-17  Bruno Haible  <bruno@clisp.org>
77612
77613         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77614
77615 2003-07-16  Karl Berry  <karl@gnu.org>
77616
77617         * config/srclist-update: was running fixlicense twice, which caused
77618                 texinfo.tex to be nullified for some reason.  Simplify,
77619                 $gplsrc is no longer needed as far as I can see?
77620
77621 2003-07-16  Jim Meyering  <jim@meyering.net>
77622
77623         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77624
77625 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77626
77627         * config/srclist.txt: Get the following files from gettext-runtime/intl
77628         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77629         ref-del.sin.  From Bruno Haible.
77630         * config/srclist-update (fixfile): Change grep pattern again, since the
77631         previous fix didn't work (there was another trailing $).  Use
77632         '[$]' to escape the $s.
77633
77634 2003-07-15  Karl Berry  <karl@gnu.org>
77635
77636         * lib/vasnprintf.c: update from gettext.
77637
77638 2003-07-15  Karl Berry  <karl@gnu.org>
77639
77640         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
77641         gets expanded when surrounded by '$'.
77642
77643 2003-07-15  Jim Meyering  <jim@meyering.net>
77644
77645         * modules/save-cwd: Don't depend on error.  From Derek Price.
77646
77647 2003-07-15  Jim Meyering  <jim@meyering.net>
77648
77649         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
77650
77651 2003-07-14  Simon Josefsson  <jas@extundo.com>
77652
77653         * modules/mempcpy: New file.
77654         * MODULES.html.sh (func_all_modules): Add mempcpy.
77655
77656 2003-07-14  Simon Josefsson  <jas@extundo.com>
77657
77658         * m4/mempcpy.m4: New file.
77659
77660 2003-07-14  Simon Josefsson  <jas@extundo.com>
77661
77662         * lib/mempcpy.h: New file.
77663         * lib/mempcpy.c: New file.
77664
77665 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77666
77667         * modules/getdate, modules/posixtm: Depend on mktime.
77668
77669 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77670
77671         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
77672         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
77673         unicodeio.c, unicodeio.h, unlocked-io.h:
77674         Switch from LGPL to GPL.
77675
77676 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77677
77678         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
77679         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
77680         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
77681         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
77682         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
77683         updated automatically by ../config/srclist-update.  This changes
77684         their license from LPGL to GPL.
77685
77686 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77687
77688         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
77689         assumed to refer to the root of the most recent stable gettext version.
77690         * config/srclistvars.sh: Add defaults for eggert.
77691         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
77692         Match "This program" as well as "The program".  This is needed
77693         for gettext.
77694
77695 2003-07-14  Jim Meyering  <jim@meyering.net>
77696
77697         Don't emit diagnostics.  Let callers do that.
77698         * lib/save-cwd.c: Don't include "error.h".
77699         (save_cwd): Don't call error.  Ensure that errno is valid
77700         when returning nonzero.
77701
77702         * lib/save-cwd.h (restore_cwd): Update prototype.
77703         * lib/save-cwd.c (restore_cwd): Remove two parameters.
77704         Simplify.  Don't call error upon failure.  Let callers do that.
77705         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
77706         when auditing is enabled.  But don't bother updating the #if.
77707
77708 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
77709
77710         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
77711         it breaks C++ compilation.
77712         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
77713
77714 2003-07-10  Simon Josefsson  <jas@extundo.com>
77715
77716         * modules/strchrnul (Makefile.am): Add strchrnul.h.
77717
77718 2003-07-10  Jim Meyering  <jim@meyering.net>
77719
77720         * m4/clock_time.m4: Remove trailing blank.
77721         * m4/intmax_t.m4: Likewise.
77722
77723 2003-07-10  Jim Meyering  <jim@meyering.net>
77724
77725         * lib/vasnprintf.c: Remove trailing blanks.
77726         Make cpp indentation consistent.
77727
77728 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77729
77730         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
77731         posixver.c, strftime.c, strnlen.c, strverscmp.c:
77732         Switch from LGPL to GPL.
77733
77734 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77735
77736         * config/srclist.txt: Sort sublists.  Add
77737         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
77738         that differ from gnulib for one reason or another; we'd like this list
77739         to be smaller but for now let's document what we have.
77740
77741 2003-07-08  Paul Eggert  <eggert@twinsun.com>
77742
77743         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
77744         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
77745         and sweeter "eval x=$x".
77746         * config/srclist.txt: Get lib/argp* from glibc.
77747
77748 2003-07-07  Paul Eggert  <eggert@twinsun.com>
77749
77750         * lib/mktime.c: Fix some boundary cases and remove need for floating
77751         point.
77752
77753         Issue a compile-time diagnostic if time_t is floating point, or if
77754         two's complement arithmetic is not in effect, or if arithmetic
77755         right shift does not propagate the sign.  These assumptions were
77756         all in the original code but they weren't checked.
77757
77758         (TIME_T_MIDPOINT, verify): New macros.
77759         (__isleap): Remove; it has integer overflow problems.
77760         (leapyear): New function, without those problems.
77761         (ydhms_tm_diff): Remove; splitting into two parts.
77762         (ydhms_diff): New function, containing the arithmetic part of
77763         the old ydhms_tm_diff function.  Issue a compile-time
77764         diagnostic if we are not using C99 integer division.
77765         Avoid casts when possible.
77766         (guess_time_tm): New function, containing the checking part of
77767         the old ydhms_tm_diff function.  Return the new value, rather than
77768         the difference between it and the old.  Accept a new argument T
77769         so that *T specifies the old value.  Check for overflow in the result.
77770
77771         (__mktime_internal): Use a time_t offset, not a long int offset.
77772         This undoes the 2003-06-04 change, which is no longer needed now
77773         that we have better overflow checking.
77774         (localtime_offset): Likewise.
77775
77776         (__mktime_internal): Avoid harmful overflow on hosts where time_t
77777         and long are 64-bit but int is only 32-bit.
77778         (ydhms_diff): Use long int to store year1 and yday1.
77779         Issue a compile-time diagnostic if long int is not wide enough.
77780
77781         (__mktime_internal): Use long int to store adjusted year and yday.
77782         Use plain C rather than preprocessor commands, if that doesn't
77783         affect efficiency.
77784         Check for overflow (and try to repair) after each probe
77785         rather than checking only at the very end.  This avoids some bugs
77786         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
77787         does not equal GMT offset at maximum time).
77788         Use integer to check for overflow rather than floating point; this
77789         is more portable to non-IEEE hosts, and is a tad faster.
77790         When we detect that we are oscillating between two values,
77791         don't check whether tm_isdst has the requested value, since
77792         we already know the answer.  When tm_isdst has the wrong value,
77793         use a different heuristic to find the right one, based on the
77794         extreme values actually observed in practice in tz2003a,
77795         rather than the (overly optimistic) "previous 3 calendar quarters".
77796
77797         (not_equal_tm, print_tm, check_result): Use "const T" rather than
77798         "T const" to accommodate glibc style.
77799         (check_result): Use less-confusing report format.  "long" -> "long int.
77800         (main): Likewise.
77801         Don't loop if the iteration overflows time_t.
77802         Allow a negative step in the iteration.
77803
77804 2003-07-06  Karl Berry  <karl@gnu.org>
77805
77806         * config/depcomp: update from automake.
77807         * config/config.sub: update from prep.
77808
77809 2003-07-03  Karl Berry  <karl@gnu.org>
77810
77811         * config/config.guess: update from prep.
77812
77813 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77814
77815         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
77816         xreadlink.c now includes it unconditionally.
77817
77818 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77819
77820         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
77821         having it depend on HAVE_SYS_TYPES_H.
77822
77823 2003-07-01  Bruno Haible  <bruno@clisp.org>
77824
77825         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
77826         <sys/types.h> should be sufficient.
77827         Reported by Paul Eggert.
77828
77829 2003-06-26  Karl Berry  <karl@gnu.org>
77830
77831         * config/depcomp: update from automake.
77832
77833 2003-06-26  Bruno Haible  <bruno@clisp.org>
77834
77835         * modules/human: Depend on module stdbool.
77836
77837 2003-06-25  Bruno Haible  <bruno@clisp.org>
77838
77839         * modules/readlink: New file.
77840         * modules/xreadlink: Depend on it.
77841         * MODULES.html.sh (func_all_modules): Add readlink.
77842
77843 2003-06-25  Bruno Haible  <bruno@clisp.org>
77844
77845         * m4/readlink.m4: New file.
77846
77847 2003-06-25  Bruno Haible  <bruno@clisp.org>
77848
77849         * lib/readlink.c: New file.
77850
77851 2003-06-22  Karl Berry  <karl@gnu.org>
77852
77853         * config/srclist.txt: update mkinstalldirs from automake.
77854         * config/mkinstalldirs: update.
77855
77856 2003-06-22  Bruno Haible  <bruno@clisp.org>
77857
77858         Portability to mingw32.
77859         * m4/ssize_t.m4: New file, from GNU gettext.
77860         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
77861         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
77862
77863 2003-06-22  Bruno Haible  <bruno@clisp.org>
77864
77865         * modules/safe-read: Add m4/ssize_t.m4.
77866         * modules/xreadlink: Add m4/ssize_t.m4.
77867
77868 2003-06-20  Bruno Haible  <bruno@clisp.org>
77869
77870         Assume C89, so PARAMS isn't needed.
77871         * lib/unicodeio.h (PARAMS): Remove.
77872         * lib/unicodeio.c: Don't use PARAMS.
77873
77874 2003-06-18  Karl Berry  <karl@gnu.org>
77875
77876         * config/config.{guess,sub}: update from prep.
77877
77878 2003-06-18  Jim Meyering  <jim@meyering.net>
77879
77880         Merge changes from coreutils.
77881         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
77882         Remove explicit declarations of xmalloc and realloc.
77883         Include xalloc.h.
77884         (read_utmp): Remove anachronistic cast of xmalloc.
77885
77886 2003-06-17  Paul Eggert  <eggert@twinsun.com>
77887
77888         Assume C89, so PARAMS isn't needed.
77889         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
77890         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
77891         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
77892         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
77893         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
77894         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
77895         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
77896         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
77897         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
77898         lib/xstrtod.h, lib/xstrtol.h: Likewise.
77899         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
77900         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
77901         no longer needed. Anyway, config.h should always be included before any
77902         other file.
77903
77904 2003-06-11  Simon Josefsson  <jas@extundo.com>
77905
77906         * modules/sysexits: New file.
77907         * MODULES.html.sh (func_all_modules): Add sysexits.
77908
77909 2003-06-11  Simon Josefsson  <jas@extundo.com>
77910
77911         * lib/sysexit_.h: New file.
77912
77913 2003-06-11  Derek Price  <derek@ximbiot.com>
77914
77915         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
77916         necessary.
77917
77918 2003-06-11  Bruno Haible  <bruno@clisp.org>
77919
77920         * m4/sysexits.m4: New file.
77921
77922 2003-06-10  Simon Josefsson  <jas@extundo.com>
77923
77924         * lib/argp.h: New file, from glibc.
77925         * lib/argp-ba.c: New file, from glibc.
77926         * lib/argp-eexst.c: New file, from glibc.
77927         * lib/argp-fmtstream.c: New file, from glibc.
77928         * lib/argp-fmtstream.h: New file, from glibc.
77929         * lib/argp-fs-xinl.c: New file, from glibc.
77930         * lib/argp-help.c: New file, from glibc.
77931         * lib/argp-namefrob.h: New file, from glibc.
77932         * lib/argp-parse.c: New file, from glibc.
77933         * lib/argp-pv.c: New file, from glibc.
77934         * lib/argp-pvh.c: New file, from glibc.
77935         * lib/argp-xinl.c: New file, from glibc.
77936
77937 2003-06-10  Simon Josefsson  <jas@extundo.com>
77938
77939         * modules/strchrnul: New file.
77940
77941 2003-06-10  Simon Josefsson  <jas@extundo.com>
77942
77943         * modules/argp: New file.
77944
77945 2003-06-10  Simon Josefsson  <jas@extundo.com>
77946
77947         * m4/strchrnul.m4: New file.
77948
77949 2003-06-10  Simon Josefsson  <jas@extundo.com>
77950
77951         * lib/strchrnul.h: New file.
77952         * lib/strchrnul.c: New file.
77953
77954 2003-06-10  Bruno Haible  <bruno@clisp.org>
77955
77956         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
77957
77958 2003-06-07  Karl Berry  <karl@gnu.org>
77959
77960         * config/config.{guess,sub}: update from prep.
77961
77962 2003-06-07  Jim Meyering  <jim@meyering.net>
77963
77964         * modules/strtod: Use $(...) notation, not @...@ for
77965         AC_REPLACE'd variables.
77966         * modules/localcharset: Likewise.
77967
77968 2003-06-07  Jim Meyering  <jim@meyering.net>
77969
77970         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
77971         in place of my name in the copyright comment.
77972         Remove definition and uses of __P.
77973
77974         From coreutils.
77975         * lib/stat.c: Don't declare xmalloc explicitly.
77976         Instead, include "xalloc.h".
77977         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
77978         xrealloc, and xcalloc return values.
77979         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
77980         Improve comment.
77981         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
77982
77983 2003-06-07  Bruno Haible  <bruno@clisp.org>
77984
77985         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
77986         avoid AC_CONFIG_LINKS.
77987         * modules/fnmatch (Makefile.am): Use explicit creation rule for
77988         fnmatch.h, to avoid AC_CONFIG_LINKS.
77989         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
77990
77991 2003-06-07  Bruno Haible  <bruno@clisp.org>
77992
77993         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
77994         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
77995         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77996         directory.
77997         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
77998         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77999         directory.
78000
78001 2003-06-06  Jim Meyering  <jim@meyering.net>
78002
78003         Merge from coreutils.
78004         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
78005         Consolidate declarations and initializations of *_base* locals.
78006
78007         Merge from coreutils.
78008         This avoids a core dump on systems without GNU putenv,
78009         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
78010         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
78011         (unsetenv): New static function, from GNU libc.
78012         (rpl_putenv): Use it.
78013
78014         * lib/modechange.c: Remove trailing blanks.
78015
78016         Merge from coreutils.
78017         * lib/fsusage.c: Remove declaration of statfs.
78018         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
78019
78020         * lib/posixtm.c: Include <stdbool.h> unconditionally.
78021
78022 2003-06-06  Jim Meyering  <jim@meyering.net>
78023
78024         * lib/stdbool_.h: Renamed from stdbool.h.in.
78025
78026 2003-06-06  Jim Meyering  <jim@meyering.net>
78027             Bruno Haible  <bruno@clisp.org>
78028
78029         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
78030         Adjust Makefile.am snippet not to redirect directly to target.
78031         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
78032
78033 2003-06-05  Paul Eggert  <eggert@twinsun.com>
78034
78035         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
78036         mismatch, look in future quarters as well as past.  This fixes a
78037         bug when processing fall-backwards gaps immediately after a long
78038         period of daylight-saving time.
78039
78040         * lib/mktime.c: Assume freestanding C89 or better.
78041         (HAVE_LIMITS_H): Remove.  Assume it's 1.
78042         (__P): Remove; not used.
78043         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
78044         (mktime, not_equal_tm, print_tm, check_result,
78045         main): Use prototypes.  Use const * where appropriate.
78046         (main): Fix typo in testing code that uncovered by above changes.
78047         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
78048
78049 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78050
78051         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
78052         locale.h, localeconv.  This merges changes from coreutils.
78053
78054         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
78055         It can be removed after the next Autoconf is released.
78056         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
78057         needed.
78058
78059 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78060
78061         * lib/mktime.c: Fix Debian bug 177940
78062         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
78063         (localtime_offset): Now long int, not time_t, because we want it
78064         to be guaranteed to be signed.  All uses changed.
78065         (__mktime_internal): If overflow would occur when adding offset,
78066         don't add it.
78067
78068         Merge 'human' changes from coreutils.  Rewrite to support
78069         locale-specific notations like thousands separators.
78070         * lib/human.c: Simplify authorship notice.
78071         Include human.h immediately after config.h.
78072         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
78073         <limits.h>: Do not include, since human.h does.
78074         (SIZE_MAX, UINTMAX_MAX): New macros.
78075         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
78076         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
78077         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
78078         (power_letter): Renamed from suffixes.
78079         (generate_suffix_backwards): Remove.
78080         (adjust_value): Now takes int style (because of human.h changes)
78081         and long double value (for greater precision on some platforms).
78082         (group_number): New function.
78083         (human_readable): Use it.  Use integer options, not enum.
78084         Put the options before the sizes in the arg list.
78085         Support all the new options.
78086         The old human_readable function has been removed;
78087         use inttostr.h instead.
78088         (human_readable, default_block_size, humblock):
78089         Use uintmax_t, not int, for block sizes.
78090         (human_readable_inexact, block_size_types): Remove.
78091         (block_size_opts): New constant.
78092         (human_options): Renamed from human_block_size, with new signature
78093         that allows block sizes up to UINTMAX_MAX.  All callers changed.
78094         * lib/human.h: Add copyright and authorship notice.
78095         Include <limits.h> and <stdbool.h> unconditionally.
78096         (PARAMS): Remove.  All uses removed.
78097         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
78098         (enum human_inexact_style): Remove tag; now a nameless enum.
78099         (human_floor, human_ceiling, human_round_to_even): Now have
78100         values 2, 0, 1 rather than -1, 1, 0.
78101         (human_group_digits, human_suppress_point_zero, human_autoscale,
78102         human_base_1024, human_SI, human_B): New constants.
78103         (human_readable_inexact, human_block_size): Remove.
78104         (human_readable): Size args are now uintmax_t, not int.
78105         (human_options): New decl.
78106
78107         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
78108         unnecessary now that we assume C89 or better.  This change
78109         imported from coreutils.
78110
78111         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78112         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
78113         in the 2003-05-30 sync from glibc.
78114
78115         .h files should stand alone, but we shouldn't include <sys/types.h>
78116         if we can get away with just <stddef.h>.
78117
78118         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
78119         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
78120         rather than <sys/types.h>, as we merely need size_t.
78121         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
78122         to get size_t.
78123         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
78124         Include <stdio.h>, to get FILE.
78125         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
78126         memcasecmp.h has included <stddef.h> and all we need is size_t.
78127         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
78128         our interface, instead of including <sys/types.h>
78129
78130 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78131
78132         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
78133         now, as glibc mktime is buggy on non-glibc systems.
78134
78135 2003-06-03  Karl Berry  <karl@gnu.org>
78136
78137         * config/config.sub: update from prep.
78138
78139 2003-06-02  Paul Eggert  <eggert@twinsun.com>
78140
78141         [from coreutils]
78142         Fix some minor time-related bugs with POSIX time arguments.
78143         Some valid time stamps were being rejected (notably -1, and
78144         time stamps before 1900 on 64-bit hosts).  And some invalid
78145         time stamps were being accepted, e.g. September 31.
78146
78147         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
78148         that we can return (time_t) -1 successfully.
78149         * lib/posixtm.c: Likewise.
78150         [HAVE_STDBOOL_H]: Include <stdbool.h>.
78151         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
78152         (t): Remove static var.
78153         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
78154         of static var.  All uses changed.
78155         (year): Do not reject years before 1900; they can occur with
78156         64-bit time_t.
78157         (posix_time_parse): Do not check for out-of-range components;
78158         that is now the caller's responsibility, since our checks were
78159         only approximations.
78160         (posixtime): Use mktime to check for out-of-range components,
78161         since it knows them exactly.
78162         If mktime returns (time_t) -1, check whether an error actually occurred
78163         by invoking localtime on -1.
78164         (main) [TEST_POSIXTIME]: Check for input data errors, and report
78165         posixtime failures better.
78166         Improve the test data (in comments only).
78167
78168 2003-06-02  Karl Berry  <karl@gnu.org>
78169
78170         * config/mkinstalldirs (version): new variable.
78171         (--version): new option.
78172         (usage): improve message.
78173
78174 2003-05-30  Karl Berry  <karl@gnu.org>
78175
78176         * lib/mktime.c: update from libc.
78177
78178 2003-05-30  Bruno Haible  <bruno@clisp.org>
78179
78180         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
78181         * config/config.rpath: Upgrade to gettext-0.12.1.
78182
78183 2003-05-30  Bruno Haible  <bruno@clisp.org>
78184
78185         * m4/gettext.m4: Upgrade to gettext-0.12.1.
78186         * m4/nls.m4: New file, from gettext-0.12.1.
78187         * m4/po.m4: New file, from gettext-0.12.1.
78188         * m4/progtest.m4: Upgrade to gettext-0.12.1.
78189
78190 2003-05-30  Bruno Haible  <bruno@clisp.org>
78191
78192         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
78193         * lib/localcharset.h: Likewise.
78194         * lib/localcharset.c: Likewise.
78195
78196 2003-05-29  Karl Berry  <karl@gnu.org>
78197
78198         * config/config.rpath: update from gettext.
78199
78200 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78201
78202         Assume the headers required for C89 freestanding compilers.
78203         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
78204         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
78205         * m4/human.m4 (gl_HUMAN): Likewise.
78206         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
78207         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
78208         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78209         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
78210         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78211         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
78212
78213 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78214
78215         Assume the headers required for C89 freestanding compilers.
78216         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
78217         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
78218         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
78219         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
78220         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
78221         define, since <limits.h> is guaranteed to do that.
78222         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
78223         * lib/exclude.c: Include <stdbool.h> unconditionally.
78224         * lib/tempname.c: Include <stddef.h> unconditionally.
78225         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
78226         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
78227         <stddef.h> does that.
78228         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
78229         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
78230         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
78231         needed.
78232         * lib/xstrtol.c: Likewise.
78233         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
78234         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
78235
78236         * lib/addext.c (addext): Use assignment rather than cast, to avoid
78237         warnings on some platforms.
78238
78239         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78240         arbitrarily.
78241
78242 2003-05-26  Jim Meyering  <jim@meyering.net>
78243
78244         Merge in a change from coreutils:
78245         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
78246         that is guaranteed to be `no'.  Use `no_such_member' to indicate
78247         that condition, rather than `-1' which is slightly misleading.
78248         Change the name of the cache variable to have the gl_ prefix.
78249         Prompted by a patch from Richard Dawe for DJGPP.
78250
78251 2003-05-24  Karl Berry  <karl@gnu.org>
78252
78253         * config/config.guess: update from prep.
78254
78255 2003-05-22  Karl Berry  <karl@gnu.org>
78256
78257         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78258
78259 2003-05-20  Karl Berry  <karl@gnu.org>
78260
78261         * config/config.guess: update from prep.
78262
78263 2003-05-18  Karl Berry  <karl@gnu.org>
78264
78265         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78266         might actually be set by the user.
78267
78268         * config/depcomp, install-sh, mdate-sh: update from automake.
78269
78270 2003-05-17  Bruno Haible  <bruno@clisp.org>
78271
78272         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78273         invalid expansion for AC_EGREP_CPP.
78274         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78275         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78276         Suggested by Akim Demaille <akim@epita.fr> in
78277         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78278
78279 2003-05-12  Jim Meyering  <jim@meyering.net>
78280
78281         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78282         the space-padded-by-default conversion specifiers, %e, %k, %l.
78283
78284 2003-05-12  Bruno Haible  <bruno@clisp.org>
78285
78286         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78287         the string is longer than 4 KB.
78288
78289 2003-05-11  Karl Berry  <karl@gnu.org>
78290
78291         * config/config.{guess,sub}: update from prep.
78292
78293 2003-05-09  Bruno Haible  <bruno@clisp.org>
78294
78295         * modules/error: Add m4/strerror_r.m4 to file list.
78296
78297 2003-05-03  Bruno Haible  <bruno@clisp.org>
78298
78299         Upgrade to Unicode-4.0.
78300         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78301         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78302         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78303         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78304         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78305         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78306         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78307         Change width of U+E0100..U+E01EF from 1 to 0.
78308
78309 2003-04-25  Jim Meyering  <jim@meyering.net>
78310
78311         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78312         of type size_t, not int.
78313
78314 2003-04-25  Bruno Haible  <bruno@clisp.org>
78315
78316         * lib/copy-file.c: Include <stddef.h>, for size_t.
78317
78318 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78319
78320         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78321         code which expansion is under static control.  Patch imported from
78322         Akim Demaille's patch to Bison; see
78323         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78324
78325 2003-04-14  Bruno Haible  <bruno@clisp.org>
78326
78327         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78328
78329 2003-04-11  Jim Meyering  <jim@meyering.net>
78330
78331         Merge changes from Coreutils.
78332
78333         2003-03-22  Jim Meyering  <jim@meyering.net>
78334
78335         * lib/strftime.c (widen): Cast alloca return value to proper type.
78336
78337         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78338
78339         From GNU libc.
78340         * lib/strftime.c (my_strftime): Handle very large width
78341         specifications for numeric values correctly.  Improve checks for
78342         overflow.
78343
78344         2003-01-19  Jim Meyering  <jim@meyering.net>
78345
78346         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78347         definitions.
78348         (nl_get_alt_digit) [! defined my_strftime]: Define.
78349         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78350         _nl_get_alt_digit and _nl_get_walt_digit.
78351
78352         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78353         libc. These changes have no effect outside of _LIBC.
78354
78355 2003-04-10  Bruno Haible  <bruno@clisp.org>
78356
78357         * modules/findprog: New file.
78358         * MODULES.html.sh (func_all_modules): Add it.
78359
78360 2003-04-10  Bruno Haible  <bruno@clisp.org>
78361
78362         * m4/findprog.m4: New file.
78363         * m4/eaccess.m4: New file.
78364
78365 2003-04-10  Bruno Haible  <bruno@clisp.org>
78366
78367         * lib/findprog.h: New file, from GNU gettext.
78368         * lib/findprog.c: New file, from GNU gettext.
78369
78370 2003-04-05  Jim Meyering  <jim@meyering.net>
78371
78372         Merge changes from Coreutils.
78373
78374         * lib/exclude.h (PARAMS): Remove definition and uses.
78375         * lib/exclude.c: Remove uses of `PARAMS'.
78376
78377         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78378         Add test-cases for DOS filenames. Declare program_name.
78379         (main): Set up program_name.  Patch by Rich Dawe.
78380
78381         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78382         error from mntctl.
78383         Use mntctl's return value to drive the entry-processing loop, since
78384         we can't rely on the value of the vmt_length member in the last
78385         entry.  On some systems doing so could result in exhausting
78386         virtual memory.  Based in part on a patch from Mike Jetzer.
78387
78388 2003-04-04  Bruno Haible  <bruno@clisp.org>
78389
78390         * modules/linebreak: New file.
78391         * MODULES.html.sh (func_all_modules): Add it.
78392
78393 2003-04-04  Bruno Haible  <bruno@clisp.org>
78394
78395         * m4/linebreak.m4: New file.
78396
78397 2003-04-04  Bruno Haible  <bruno@clisp.org>
78398
78399         * lib/linebreak.h: New file, from GNU gettext.
78400         * lib/linebreak.c: New file, from GNU gettext with slight
78401         modifications.
78402         * lib/lbrkprop.h: New file, from GNU gettext.
78403
78404 2003-04-03  Bruno Haible  <bruno@clisp.org>
78405
78406         * modules/utf8-ucs4: New file.
78407         * modules/utf16-ucs4: New file.
78408         * modules/ucs4-utf8: New file.
78409         * modules/ucs4-utf16: New file.
78410         * MODULES.html.sh (func_all_modules): Add them.
78411
78412 2003-04-03  Bruno Haible  <bruno@clisp.org>
78413
78414         * m4/utf-ucs4.m4: New file.
78415         * m4/ucs4-utf.m4: New file.
78416
78417 2003-04-03  Bruno Haible  <bruno@clisp.org>
78418
78419         * lib/utf8-ucs4.h: New file, from GNU gettext.
78420         * lib/utf16-ucs4.h: New file, from GNU gettext.
78421         * lib/ucs4-utf8.h: New file, from GNU gettext.
78422         * lib/ucs4-utf16.h: New file, from GNU gettext.
78423
78424 2003-04-02  Bruno Haible  <bruno@clisp.org>
78425
78426         * modules/binary-io: New file.
78427         * MODULES.html.sh (func_all_modules): Add it.
78428
78429 2003-04-02  Bruno Haible  <bruno@clisp.org>
78430
78431         * lib/binary-io.h: New file, from GNU gettext.
78432
78433 2003-04-01  Bruno Haible  <bruno@clisp.org>
78434
78435         * modules/pathname: New file.
78436         * MODULES.html.sh (func_all_modules): Add it.
78437
78438 2003-04-01  Bruno Haible  <bruno@clisp.org>
78439
78440         * lib/pathname.h: New file, from GNU gettext.
78441         * lib/concatpath.c: New file, from GNU gettext.
78442
78443 2003-03-30  Bruno Haible  <bruno@clisp.org>
78444
78445         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78446
78447 2003-03-30  Bruno Haible  <bruno@clisp.org>
78448
78449         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78450         function chown() doesn't exist.
78451
78452 2003-03-28  Bruno Haible  <bruno@clisp.org>
78453
78454         * modules/copy-file: New file.
78455         * MODULES.html.sh (func_all_modules): Add it.
78456
78457 2003-03-28  Bruno Haible  <bruno@clisp.org>
78458
78459         * m4/copy-file.m4: New file.
78460
78461 2003-03-28  Bruno Haible  <bruno@clisp.org>
78462
78463         * lib/copy-file.h: New file, from GNU gettext.
78464         * lib/copy-file.c: New file, from GNU gettext.
78465
78466 2003-03-18  Jim Meyering  <jim@meyering.net>
78467
78468         * lib/quote.c (quote_n): Fix typo in comment.
78469
78470 2003-03-18  Bruno Haible  <bruno@clisp.org>
78471
78472         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
78473         checking.
78474         * m4/onceonly_2_57.m4: Likewise.
78475
78476 2003-03-17  Bruno Haible  <bruno@clisp.org>
78477
78478         * m4/onceonly.m4: Require autoconf 2.54 or newer.
78479         (m4_quote): Remove macro.
78480         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
78481
78482 2003-03-14  Jim Meyering  <jim@meyering.net>
78483
78484         Merge changes from Coreutils.
78485         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
78486         to be const, in order to avoid warnings.
78487         (obstack_room): Likewise.
78488         (obstack_empty_p): Likewise.
78489
78490 2003-03-14  Bruno Haible  <bruno@clisp.org>
78491
78492         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
78493         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
78494
78495 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78496
78497         Merge changes from Bison.
78498         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
78499         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
78500         when compiling Bison 1.875's `bitset bset = obstack_alloc
78501         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
78502         * lib/hash.c: Include <stdbool.h> unconditionally.
78503
78504 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78505
78506         * m4/onceonly.m4 (m4_quote): New macro.
78507         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
78508         Quote AC_FOREACH variable-expansions properly.
78509
78510 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78511
78512         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
78513
78514 2003-03-09  Paul Eggert  <eggert@twinsun.com>
78515
78516         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
78517         Reported by Bruce Becker; see:
78518         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
78519
78520 2003-03-03  Paul Eggert  <eggert@twinsun.com>
78521             Bruno Haible  <bruno@clisp.org>
78522
78523         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
78524         Reported by John Hughes, see
78525         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
78526
78527 2003-02-20  Bruno Haible  <bruno@clisp.org>
78528
78529         * MODULES.html.sh (func_all_modules): Add poll.
78530
78531 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78532
78533         * modules/poll: New file.
78534
78535 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78536
78537         * lib/poll_.h: New file.
78538         * lib/poll.c: New file.
78539
78540 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78541
78542         * m4/poll.m4: New file.
78543
78544 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78545
78546         * modules/mathl: New file.
78547
78548 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78549
78550         * lib/mathl.h: New file.
78551         * lib/acosl.c: New file.
78552         * lib/asinl.c: New file.
78553         * lib/atanl.c: New file.
78554         * lib/ceill.c: New file.
78555         * lib/cosl.c: New file.
78556         * lib/expl.c: New file.
78557         * lib/floorl.c: New file.
78558         * lib/frexpl.c: New file.
78559         * lib/ldexpl.c: New file.
78560         * lib/logl.c: New file.
78561         * lib/sincosl.c: New file.
78562         * lib/sinl.c: New file.
78563         * lib/sqrtl.c: New file.
78564         * lib/tanl.c: New file.
78565         * lib/trigl.c: New file.
78566         * lib/trigl.h: New file.
78567
78568 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78569
78570         * m4/mathl.m4: New file.
78571
78572 2003-02-18  Bruno Haible  <bruno@clisp.org>
78573
78574         * MODULES.html.sh (func_all_modules): Add mathl.
78575
78576 2003-02-17  Bruno Haible  <bruno@clisp.org>
78577
78578         * modules/mkdtemp: New module.
78579         * MODULES.html.sh (func_all_modules): Add it.
78580
78581 2003-02-17  Bruno Haible  <bruno@clisp.org>
78582
78583         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78584
78585 2003-02-17  Bruno Haible  <bruno@clisp.org>
78586
78587         * lib/mkdtemp.h: New file, from GNU gettext.
78588         * lib/mkdtemp.c: New file, from GNU gettext.
78589
78590 2003-02-02  Jim Meyering  <jim@meyering.net>
78591
78592         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78593         e.g. glibc-2.2.93.
78594
78595 2003-01-31  Bruno Haible  <bruno@clisp.org>
78596
78597         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78598         'rpl_rename'.
78599         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78600         'rpl_strnlen'.
78601         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78602         'rpl_strtod'.
78603         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78604         'rpl_utime'.
78605
78606 2003-01-31  Bruno Haible  <bruno@clisp.org>
78607
78608         * lib/rename.c: #undef rename before defining rpl_rename.
78609         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78610
78611 2003-01-30  Bruno Haible  <bruno@clisp.org>
78612
78613         * modules/vasnprintf, modules/vasprintf: New modules.
78614         * MODULES.html.sh (func_all_modules): Add them.
78615
78616 2003-01-30  Bruno Haible  <bruno@clisp.org>
78617
78618         * m4/signed.m4: New file, from GNU gettext.
78619         * m4/longdouble.m4: New file, from GNU gettext.
78620         * m4/wchar_t.m4: New file, from GNU gettext.
78621         * m4/wint_t.m4: New file, from GNU gettext.
78622         * m4/vasnprintf.m4: New file.
78623         * m4/vasprintf.m4: New file.
78624
78625 2003-01-30  Bruno Haible  <bruno@clisp.org>
78626
78627         * lib/printf-args.h: New file, from GNU gettext.
78628         * lib/printf-args.c: New file, from GNU gettext.
78629         * lib/printf-parse.h: New file, from GNU gettext.
78630         * lib/printf-parse.c: New file, from GNU gettext.
78631         * lib/vasnprintf.h: New file, from GNU gettext.
78632         * lib/vasnprintf.c: New file, from GNU gettext.
78633         * lib/asnprintf.c: New file, from GNU gettext.
78634         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78635         * lib/vasprintf.c: New file, from GNU gettext.
78636         * lib/asprintf.c: New file, from GNU gettext.
78637
78638 2003-01-29  Bruno Haible  <bruno@clisp.org>
78639
78640         * modules/stpncpy: New module.
78641         * MODULES.html.sh (func_all_modules): Add it.
78642
78643 2003-01-29  Bruno Haible  <bruno@clisp.org>
78644
78645         * m4/stpncpy.m4: New file.
78646
78647 2003-01-29  Bruno Haible  <bruno@clisp.org>
78648
78649         * lib/stpncpy.h: New file, from GNU gettext with modifications.
78650         * lib/stpncpy.c: New file, from GNU gettext with modifications.
78651
78652 2003-01-28  Bruno Haible  <bruno@clisp.org>
78653
78654         * modules/c-ctype: New module.
78655         * MODULES.html.sh (func_all_modules): Add it.
78656
78657 2003-01-28  Bruno Haible  <bruno@clisp.org>
78658
78659         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
78660         Paul Eggert.
78661         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
78662         Paul Eggert.
78663
78664 2003-01-27  Bruno Haible  <bruno@clisp.org>
78665
78666         * modules/xsetenv: New module.
78667         * MODULES.html.sh (func_all_modules): Add it.
78668
78669 2003-01-27  Bruno Haible  <bruno@clisp.org>
78670
78671         * lib/xsetenv.h: New file, from GNU gettext.
78672         * lib/xsetenv.c: New file, from GNU gettext.
78673
78674 2003-01-23  Jim Meyering  <jim@meyering.net>
78675
78676         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
78677         from working on systems without dirfd (at least Irix and OSF1/Tru64).
78678
78679 2003-01-23  Bruno Haible  <bruno@clisp.org>
78680
78681         * modules/minmax: New module.
78682         * MODULES.html.sh (func_all_modules): Add it.
78683
78684 2003-01-23  Bruno Haible  <bruno@clisp.org>
78685
78686         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
78687         Eggert.
78688
78689 2003-01-22  Bruno Haible  <bruno@clisp.org>
78690
78691         * modules/exit: New module.
78692         * MODULES.html.sh (func_all_modules): Add it.
78693
78694 2003-01-22  Bruno Haible  <bruno@clisp.org>
78695
78696         * lib/exit.h: New file, from GNU gettext.
78697
78698 2003-01-19  Bruno Haible  <bruno@clisp.org>
78699
78700         * gnulib-tool: Recognize option --extract-maintainer.
78701         (func_get_maintainer): New function.
78702         * modules/*: Add Maintainer entry.
78703
78704 2003-01-16  Jim Meyering  <jim@meyering.net>
78705
78706         * m4/regex.m4: The `regex' struct is both input and output.
78707         Initialize it before each use.  Patch by Tim Waugh.
78708
78709 2003-01-16  Bruno Haible  <bruno@clisp.org>
78710
78711         * MODULES.html.sh: Add a table of contents. Add the module name as
78712         leftmost column. Add hyperlinks.
78713
78714 2003-01-15  Bruno Haible  <bruno@clisp.org>
78715
78716         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
78717
78718 2003-01-15  Bruno Haible  <bruno@clisp.org>
78719
78720         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
78721         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
78722         suffix.
78723
78724 2003-01-15  Bruno Haible  <bruno@clisp.org>
78725
78726         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
78727
78728 2003-01-15  Bruno Haible  <bruno@clisp.org>
78729
78730         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
78731         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
78732
78733 2003-01-14  Jim Meyering  <jim@meyering.net>
78734
78735         * lib/same.c (same_name): Tweak a comment.
78736
78737 2003-01-14  Bruno Haible  <bruno@clisp.org>
78738
78739         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
78740         when a string comparison is sufficient.
78741
78742 2003-01-14  Bruno Haible  <bruno@clisp.org>
78743
78744         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
78745         'unsigned int'.
78746
78747 2003-01-14  Bruno Haible  <bruno@clisp.org>
78748
78749         * lib/hash-pjw.c: Add comment about low quality of this function.
78750
78751 2003-01-13  Bruno Haible  <bruno@clisp.org>
78752
78753         * modules/stpcpy: Distribute lib/stpcpy.h.
78754         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
78755
78756 2003-01-13  Bruno Haible  <bruno@clisp.org>
78757
78758         * modules/*: Add a description.
78759         * modules/strpbrk: Fix Makefile.am snippet.
78760         * modules/strtoimax: Fix dependencies.
78761         * modules/strtoumax: Likewise.
78762
78763 2003-01-13  Bruno Haible  <bruno@clisp.org>
78764
78765         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
78766         * modules/alloca (Makefile.am): All object files depend on alloca.h.
78767         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
78768
78769 2003-01-13  Bruno Haible  <bruno@clisp.org>
78770
78771         * gnulib-tool (func_create_testdir): Store config/* files in the main
78772         directory.
78773         * config.rpath: Move to ...
78774         * config/config.rpath: ... here.
78775         * modules/gettext: Contains config/config.rpath, not config.rpath.
78776         * modules/iconv: Likewise.
78777
78778 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78779
78780         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78781         to avoid collisions with libcurses and libreadline.
78782
78783         * m4/getstr.m4: Remove.
78784         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
78785
78786 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78787
78788         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78789         to avoid collisions with libcurses and libreadline.
78790
78791         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
78792         * lib/getstr.h, getstr.c: Remove.
78793         * lib/getline.c: Include "getline.h", to check interface.
78794         Move body of old getstr.c here: this defines MIN_CHUNK and
78795         declares getdelim2, which is renamed from getstr.
78796         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
78797
78798         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
78799         All uses changed.
78800         * lib/linebuffer.h: Likewise.
78801         (readline): Remove backward-compatibility macro.
78802
78803 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78804
78805         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78806         to avoid collisions with libcurses and libreadline.
78807         * getstr: Remove.
78808         * MODULES.html.sh: Remove getstr.
78809         * modules/getline: Depend on unlocked-io, not getstr.
78810
78811 2003-01-12  Jim Meyering  <jim@meyering.net>
78812
78813         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
78814
78815 2003-01-10  Bruno Haible  <bruno@clisp.org>
78816
78817         * modules/alloca: Change Makefile.am requirements. Simplify Include
78818         requirements. Add lib/alloca_.h to file list.
78819
78820 2003-01-10  Bruno Haible  <bruno@clisp.org>
78821
78822         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
78823
78824 2003-01-10  Bruno Haible  <bruno@clisp.org>
78825
78826         * lib/alloca_.h: New file.
78827         * lib/getdate.y: Unconditionally include alloca.h.
78828         * lib/makepath.c: Likewise.
78829         * lib/setenv.c: Likewise.
78830         * lib/userspec.c: Likewise.
78831
78832 2003-01-09  Karl Berry  <karl@gnu.org>
78833
78834         * MODULES.html.sh: include `dirname $0` in PATH, to find
78835         gnulib-tool.
78836
78837 2003-01-09  Bruno Haible  <bruno@clisp.org>
78838
78839         * modules/stdbool: Change configure.ac, Makefile.am requirements.
78840         Simplify Include requirements. Add lib/stdbool.h.in to file list.
78841
78842 2003-01-09  Bruno Haible  <bruno@clisp.org>
78843
78844         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
78845
78846 2003-01-09  Bruno Haible  <bruno@clisp.org>
78847
78848         * lib/stdbool.h.in: New file.
78849
78850 2003-01-09  Bruno Haible  <bruno@clisp.org>
78851
78852         * gnulib-tool (func_all_modules): Ignore files ending in ~.
78853         * MODULES.html.sh: Likewise.
78854
78855 2003-01-08  Jim Meyering  <jim@meyering.net>
78856
78857         * lib/full-write.c: Undefine and define-away `const' after inclusion
78858         of errno.h, not before.  Suggestion from Bruno Haible.
78859
78860 2003-01-08  Bruno Haible  <bruno@clisp.org>
78861
78862         * modules/full-read: Depend on full-write.
78863
78864 2003-01-08  Bruno Haible  <bruno@clisp.org>
78865
78866         * lib/safe-read.c: Include specification header first, to ensure its
78867         selfcontainedness.
78868         * lib/full-write.c: Likewise.
78869
78870 2003-01-07  Jim Meyering  <jim@meyering.net>
78871
78872         * lib/full-write.c: Rework so that it may serve to define full_read,
78873         too.
78874         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
78875
78876 2003-01-07  Bruno Haible  <bruno@clisp.org>
78877
78878         * lib/strtoimax.c: Include <stdint.h> as an alternative to
78879         <inttypes.h>.
78880         * lib/xstrtol.h: Likewise.
78881         * lib/xstrtoimax.c: Likewise.
78882         * lib/xstrtoumax.c: Likewise.
78883         * lib/human.h: Likewise.
78884
78885         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
78886         on systems that have <inttypes.h> but not <stdint.h>.
78887
78888 2003-01-07  Bruno Haible  <bruno@clisp.org>
78889
78890         * MODULES.html.sh: Add copyright notice.
78891         (missed_files): Omit CVS directory entries.
78892         (func_module): Make it work with sed-3.02.
78893         * MODULES.txt: Remove file.
78894
78895 2003-01-06  Jim Meyering  <jim@meyering.net>
78896
78897         * lib/version-etc.c: Update year in translatable copyright string.
78898
78899 2003-01-03  Karl Berry  <karl@gnu.org>
78900
78901         * config/config.{guess,sub}: update from prep.
78902
78903 2003-01-02  Karl Berry  <karl@gnu.org>
78904
78905         * doc/COPYING.DOC: belatedly updated to 1.2.
78906
78907 2003-01-01  Karl Berry  <karl@gnu.org>
78908
78909         * gnulib-tool (func_verify_module): report module name $module in
78910         error message, not $1.
78911         * gnulib-tool (create-testdir): don't complain if destdir couldn't
78912         be created, only if it doesn't exist.
78913         * gnulib-tool (last_checkin_date): don't expand the $Date here.
78914
78915 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78916
78917         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
78918
78919 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78920
78921         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
78922         memcmp if strcoll doesn't work.
78923
78924 2002-12-31  Bruno Haible  <bruno@clisp.org>
78925
78926         * lib/utime.c (utime_null): No need to call ftruncate if the file was
78927         nonempty.
78928
78929 2002-12-31  Bruno Haible  <bruno@clisp.org>
78930
78931         * lib/memcoll.c (STRCOLL): New macro.
78932         (memcoll): Use it.
78933
78934 2002-12-31  Bruno Haible  <bruno@clisp.org>
78935
78936         * lib/localcharset.h: New file.
78937         * lib/localcharset.c: Include it.
78938         * lib/unicodeio.c: Likewise.
78939
78940 2002-12-31  Bruno Haible  <bruno@clisp.org>
78941
78942         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
78943         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
78944
78945 2002-12-31  Bruno Haible  <bruno@clisp.org>
78946
78947         * lib/getline.h: Include <stddef.h>, for size_t.
78948
78949         * lib/unicodeio.h: Include <stddef.h>, for size_t.
78950         * lib/unicodeio.c: Don't include <stddef.h>.
78951
78952 2002-12-31  Bruno Haible  <bruno@clisp.org>
78953
78954         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
78955         HAVE_TM_ZONE.
78956
78957 2002-12-24  Karl Berry  <karl@gnu.org>
78958
78959         * config/config.guess: update from prep.
78960
78961 2002-12-24  Bruno Haible  <bruno@clisp.org>
78962
78963         General infrasructure.
78964         * m4/README: Rewritten.
78965         * m4/onceonly.m4: New file.
78966         * m4/onceonly_2_57.m4: New file.
78967
78968         Module atexit.
78969         * m4/atexit.m4: New file.
78970
78971         Module strtod.
78972         * m4/strtod.m4: New file.
78973
78974         Module strtol.
78975         * m4/strtol.m4: New file.
78976
78977         Module strtoul.
78978         * m4/strtoul.m4: New file.
78979
78980         Module memchr.
78981         * m4/memchr.m4: New file.
78982
78983         Module memcmp.
78984         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
78985         (jm_FUNC_MEMCMP): Invoke it.
78986
78987         Module memcpy.
78988         * m4/memcpy.m4: New file.
78989
78990         Module memmove.
78991         * m4/memmove.m4: New file.
78992
78993         Module memset.
78994         * m4/memset.m4: New file.
78995
78996         Module strcspn.
78997         * m4/strcspn.m4: New file.
78998
78999         Module strpbrk.
79000         * m4/strpbrk.m4: New file.
79001
79002         Module strstr.
79003         * m4/strstr.m4: New file.
79004
79005         Module strerror.
79006         * m4/strerror.m4: New file.
79007
79008         Module mktime.
79009         * m4/mktime.m4: Renamed from jm-mktime.m4.
79010         (gl_PREREQ_MKTIME): New macro.
79011         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
79012
79013         Module malloc.
79014         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
79015         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
79016         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
79017
79018         Module realloc.
79019         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
79020         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
79021         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
79022
79023         Module strftime.
79024         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
79025         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
79026         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
79027         gl_TM_GMTOFF.
79028         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
79029
79030         Module xalloc.
79031         * m4/xalloc.m4: New file.
79032
79033         Module alloca.
79034         * m4/alloca.m4: New file.
79035
79036         Module putenv.
79037         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
79038         (jm_FUNC_PUTENV): Invoke it.
79039
79040         Module setenv.
79041         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
79042         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
79043         when invoked twice.
79044         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
79045         gt_FUNC_SETENV.
79046
79047         Module memrchr.
79048         * m4/memrchr.m4: New file.
79049
79050         Module stpcpy.
79051         * m4/stpcpy.m4: New file.
79052
79053         Module strcase.
79054         * m4/strcase.m4: New file.
79055
79056         Module strdup.
79057         * m4/strdup.m4: New file.
79058
79059         Module strnlen.
79060         * m4/strnlen.m4: New file.
79061
79062         Module strndup.
79063         * m4/strndup.m4: New file.
79064
79065         Module xstrtod.
79066         * m4/xstrtod.m4: New file.
79067
79068         Module xstrtol.
79069         * m4/xstrtol.m4: New file.
79070
79071         Module getdate.
79072         * m4/getdate.m4: New file.
79073
79074         Module unlocked-io.
79075         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
79076         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
79077         * m4/jm-glibc-io.m4n: Remove file.
79078
79079         Module long-options.
79080         * m4/long-options.m4: New file.
79081
79082         Module md5.
79083         * m4/md5.m4: New file.
79084
79085         Module sha.
79086         * m4/sha.m4: New file.
79087
79088         Module getstr.
79089         * m4/getstr.m4: New file.
79090
79091         Module getline.
79092         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
79093         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
79094         <sys/types.h>, for size_t. Use the function name gnu_getline, not
79095         simply getline. Infoke gl_PREREQ_GETLINE.
79096
79097         Module obstack.
79098         * m4/obstack.m4: New file.
79099
79100         Module hash.
79101         * m4/hash.m4: New file.
79102
79103         Module readtokens.
79104         * m4/readtokens.m4: New file.
79105
79106         Module strverscmp.
79107         * m4/strverscmp.m4: New file.
79108
79109         Module stdbool.
79110         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
79111         OSF/1.
79112
79113         Module strtoll.
79114         * m4/strtoll.m4: New file.
79115
79116         Module strtoull.
79117         * m4/strtoull.m4: New file.
79118
79119         Module strtoimax.
79120         * m4/strtoimax.m4: New file.
79121
79122         Module strtoumax.
79123         * m4/strtoumax.m4: New file.
79124
79125         Module xstrtoimax.
79126         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
79127         jm_AC_PREREQ_XSTRTOIMAX.
79128         Moved the strtol prerequisites to strtol.m4.
79129         Moved the strtoll prerequisites to strtoll.m4.
79130         Moved the strtoimax prerequisites to strtoimax.m4.
79131
79132         Module xstrtoumax.
79133         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
79134         jm_AC_PREREQ_XSTRTOUMAX.
79135         Moved the strtoul prerequisites to strtoul.m4.
79136         Moved the strtoull prerequisites to strtoull.m4.
79137         Moved the strtoumax prerequisites to strtoumax.m4.
79138
79139         Module chown.
79140         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
79141         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
79142
79143         Module dup2.
79144         * m4/dup2.m4: New file.
79145
79146         Module ftruncate.
79147         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
79148         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
79149
79150         Module getgroups.
79151         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
79152         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
79153
79154         Module gettimeofday.
79155         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
79156         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
79157         gl_PREREQ_GETTIMEOFDAY.
79158
79159         Module mkdir.
79160         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
79161         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
79162
79163         Module mkstemp.
79164         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
79165         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
79166         jm_AC_TYPE_UINTMAX_T.
79167         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
79168
79169         Module stat.
79170         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
79171         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
79172
79173         Module lstat.
79174         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
79175         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
79176
79177         Module timespec.
79178         * m4/timespec.m4 (gl_TIMESPEC): New macro.
79179         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
79180         * m4/st_mtim.m4: Indentation.
79181
79182         Module nanosleep.
79183         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
79184         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
79185         gl_PREREQ_NANOSLEEP.
79186
79187         Module regex.
79188         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
79189         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
79190         (gl_REGEX): New macro.
79191
79192         Module rename.
79193         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
79194         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
79195
79196         Module rmdir.
79197         * m4/rmdir.m4: New file.
79198
79199         Module utime.
79200         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
79201         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
79202         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
79203
79204         Module dirname.
79205         * m4/dirname.m4: New file.
79206
79207         Module getopt.
79208         * m4/getopt.m4: New file.
79209
79210         Module unistd-safer.
79211         * m4/unistd-safer.m4: New file.
79212
79213         Module fnmatch.
79214         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
79215         declaration.
79216         (gl_PREREQ_FNMATCH_EXTRA): New macro.
79217         (gl_FUNC_FNMATCH_POSIX): New macro.
79218         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
79219         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
79220         simply fnmatch.
79221
79222         Module exclude.
79223         * m4/exclude.m4: New file.
79224
79225         Module human.
79226         * m4/human.m4: New file.
79227
79228         Module acl.
79229         * m4/acl.m4: Nop.
79230
79231         Module backupfile.
79232         * m4/backupfile.m4: New file.
79233         * m4/d-ino.m4: Indentation.
79234
79235         Module fsusage.
79236         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
79237         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
79238         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
79239
79240         Module dirfd.
79241         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
79242         requirements.
79243
79244         Module euidaccess.
79245         * m4/euidaccess.m4: New file.
79246
79247         Module file-type.
79248         * m4/file-type.m4: New file.
79249
79250         Module fileblocks.
79251         * m4/fileblocks.m4: New file.
79252
79253         Module filemode.
79254         * m4/filemode.m4: New file.
79255
79256         Module isdir.
79257         * m4/isdir.m4: New file.
79258
79259         Module lchown.
79260         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79261         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79262
79263         Module makepath.
79264         * m4/makepath.m4: New file.
79265
79266         Module modechange.
79267         * m4/modechange.m4: New file.
79268
79269         Module mountlist.
79270         * m4/mountlist.m4: New file.
79271         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79272         Indentation.
79273
79274         Module path-concat.
79275         * m4/path-concat.m4: New file.
79276
79277         Module pathmax.
79278         * m4/pathmax.m4: New file.
79279
79280         Module same.
79281         * m4/same.m4: New file.
79282
79283         Module save-cwd.
79284         * m4/save-cwd.m4: New file.
79285
79286         Module savedir.
79287         * m4/savedir.m4: New file.
79288
79289         Module xgetcwd.
79290         * m4/xgetcwd.m4: New file.
79291         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79292
79293         Module xreadlink.
79294         * m4/xreadlink.m4: New file.
79295
79296         Module safe-read.
79297         * m4/safe-read.m4: New file.
79298
79299         Module safe-write.
79300         * m4/safe-write.m4: New file.
79301
79302         Module closeout.
79303         * m4/closeout.m4: New file.
79304
79305         Module stdio-safer.
79306         * m4/stdio-safer.m4: New file.
79307
79308         Module getpass.
79309         * m4/getpass.m4: New file.
79310
79311         Module getugroups.
79312         * m4/getugroups.m4: New file.
79313
79314         Module group-member.
79315         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79316         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79317
79318         Module idcache.
79319         * m4/idcache.m4: New file.
79320
79321         Module userspec.
79322         * m4/userspec.m4: New file.
79323
79324         Module gettime.
79325         * m4/clock_time.m4: New file.
79326         * m4/gettime.m4: New file.
79327
79328         Module settime.
79329         * m4/settime.m4: New file.
79330
79331         Module posixtm.
79332         * m4/posixtm.m4: New file.
79333
79334         Module gethostname.
79335         * m4/gethostname.m4: New file.
79336
79337         Module canon-host.
79338         * m4/canon-host.m4: New file.
79339
79340         Module gettext.
79341         * m4/codeset.m4: New file, from gettext-0.11.5.
79342         * m4/gettext.m4: New file, from gettext-0.11.5.
79343         * m4/glibc21.m4: New file, from gettext-0.11.5.
79344         * m4/iconv.m4: New file, from gettext-0.11.5.
79345         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79346         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79347         * m4/inttypes.m4: New file, from gettext-0.11.5.
79348         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79349         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79350         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79351         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79352         * m4/lib-link.m4: New file, from gettext-0.11.5.
79353         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79354         * m4/progtest.m4: New file, from gettext-0.11.5.
79355         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79356         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79357         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79358
79359         Module localcharset.
79360         * m4/localcharset.m4: New file.
79361
79362         Module hard-locale.
79363         * m4/hard-locale.m4: New file.
79364
79365         Module mbswidth.
79366         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79367         onceonly macros.
79368         * m4/mbrtowc.m4: Add comment.
79369
79370         Module memcasecmp.
79371         * m4/memcasecmp.m4: New file.
79372
79373         Module memcoll.
79374         * m4/memcoll.m4: New file.
79375
79376         Module unicodeio.
79377         * m4/unicodeio.m4: New file.
79378
79379         Module rpmatch.
79380         * m4/rpmatch.m4: New file.
79381
79382         Module yesno.
79383         * m4/yesno.m4: New file.
79384
79385         Module exitfail.
79386         * m4/exitfail.m4: New file.
79387
79388         Module c-stack.
79389         * m4/c-stack.m4 (gl_C_STACK): New macro.
79390         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79391
79392         Module error.
79393         * m4/error.m4 (gl_ERROR): New macro.
79394         (jm_PREREQ_ERROR): Use onceonly macros.
79395
79396         Module fatal.
79397         * m4/fatal.m4: New file.
79398
79399         Module getloadavg.
79400         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79401         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79402
79403         Module getpagesize.
79404         * m4/getpagesize.m4: New file.
79405
79406         Module getusershell.
79407         * m4/getusershell.m4: New file.
79408
79409         Module physmem.
79410         * m4/physmem.m4: New file.
79411
79412         Module posixver.
79413         * m4/posixver.m4: New file.
79414
79415         Module quotearg.
79416         * m4/quotearg.m4: New file.
79417
79418         Module quote.
79419         * m4/quote.m4: New file.
79420
79421         Module readutmp.
79422         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79423
79424         Module sig2str.
79425         * m4/sig2str.m4: New file.
79426
79427         Other.
79428         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79429         ulonglong.m4.
79430         * m4/intmax_t.m4: New file.
79431         * m4/d-type.m4: Indentation.
79432         * m4/jm-macros.m4: Update.
79433         * m4/prereq.m4 (jm_PREREQ): Update.
79434         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79435         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79436         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79437         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79438         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79439         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79440         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79441         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79442         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79443         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79444         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79445         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79446         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79447         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79448         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79449         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79450         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79451         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79452         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79453
79454 2002-12-24  Bruno Haible  <bruno@clisp.org>
79455
79456         * MODULES.txt: Update according to m4/ changes.
79457
79458         Module gettext.
79459         * config.rpath: New file, from gettext-0.11.5.
79460
79461         * modules/*: New module descriptions.
79462         * gnulib-tool: New file.
79463         * MODULES.html.sh: New file.
79464
79465 2002-12-21  Karl Berry  <karl@gnu.org>
79466
79467         * doc/fdl.texi: update to version 1.2.
79468
79469 2002-12-19  Karl Berry  <karl@gnu.org>
79470
79471         * config/config.guess: update from prep.
79472
79473 2002-12-18  Bruno Haible  <bruno@clisp.org>
79474
79475         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
79476         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
79477
79478 2002-12-17  Bruno Haible  <bruno@clisp.org>
79479
79480         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
79481         stdlib.h, string.h.
79482
79483 2002-12-17  Bruno Haible  <bruno@clisp.org>
79484
79485         * lib/canon-host.c (strdup): Remove unused declaration.
79486
79487         * lib/fsusage.c: Include full_read.h.
79488         (get_fs_usage): Use full_read instead of safe_read.
79489
79490         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
79491
79492 2002-12-12  Karl Berry  <karl@gnu.org>
79493
79494         * config/config.guess: update from prep.
79495
79496 2002-12-11  Bruno Haible  <bruno@clisp.org>
79497
79498         * m4/setenv.m4: New file, from gettext-0.11.5.
79499
79500 2002-12-11  Bruno Haible  <bruno@clisp.org>
79501
79502         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
79503         not unsetenv().
79504         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
79505         modifications:
79506
79507         2002-12-11  Bruno Haible  <bruno@clisp.org>
79508
79509                 * setenv.c (alloca): Fall back to malloc.
79510                 (freea): New macro.
79511                 (setenv): Use freea() to free memory allocated with alloca().
79512
79513         2002-11-13  Bruno Haible  <bruno@clisp.org>
79514
79515                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
79516                 function declarations.
79517                 * unsetenv.c (unsetenv): Likewise.
79518
79519         2002-03-04  Bruno Haible  <bruno@clisp.org>
79520
79521                 Portability to AIX 4.3.3.
79522                 * unsetenv.c: New file, extracted from setenv.c.
79523                 * setenv.c: Move the unsetenv() function to unsetenv.c.
79524
79525         2001-12-20  Bruno Haible  <bruno@clisp.org>
79526
79527                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
79528                 use malloc instead. For SunOS 4.
79529
79530         2001-12-11  Bruno Haible  <bruno@clisp.org>
79531
79532                 * setenv.c: Declare alloca.
79533                 (compar_fn_t): New typedef.
79534                 (KNOWN_VALUE, STORE_VALUE): Use it.
79535
79536         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79537         setenv.h.
79538
79539 2002-12-10  Paul Eggert  <eggert@twinsun.com>
79540
79541         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
79542         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
79543         Choose values that are less likely to collide with system fnmatch
79544         options.
79545         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
79546         defined (e.g., a pure POSIX system).
79547         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
79548         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
79549
79550 2002-12-06  Paul Eggert  <eggert@twinsun.com>
79551
79552         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
79553         a pain in practice to deal with generated m4 files.  This change
79554         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
79555
79556         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
79557         and jm-glibc-io.m4, as they are no longer a special case.
79558         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
79559         kludge and the auto-generation stuff.  Check only whether the
79560         functions are declared, not whether they exist, since older hosts
79561         that don't declare the functions can't use the optimization anyway.
79562
79563 2002-12-06  Jim Meyering  <jim@meyering.net>
79564
79565         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79566
79567         Merge in changes from libc's misc/error.c, in preparation
79568         for the merge of gnulib's changes back into libc.
79569
79570         * lib/error.c (_): Define only if not already defined.
79571         Move definition to follow all #include directives.
79572         Include unlocked-io.h only if !_LIBC.
79573         [_LIBC]: Include <libio/libioP.h>.
79574         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79575         (fflush): Tweak definition to use INTUSE.
79576         (putc): Define.
79577
79578 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79579
79580         * lib/alloca.c [defined emacs]: Include "lisp.h".
79581         (xalloc_die) [defined emacs]: New macro.
79582         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79583         [! defined emacs]: Include <xalloc.h>.
79584         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79585         (pointer): Typedef to POINTER_TYPE *.
79586         (malloc): Remove decl; we now always use xmalloc.
79587         (alloca): Use old-style definition, since Emacs needs this.
79588         Check for arithmetic overflow when computing combined size.
79589
79590 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79591
79592         Do not generate unlocked-io.h automatically, since it's easier to
79593         maintain it by hand.
79594
79595         * lib/unlocked-io.h: New file, from GNU diffutils,
79596         but with proper copyright notice and attribution.
79597         * lib/gen-uio: Remove.
79598         * lib/Makefile.am: Add copyright notice.
79599         (libfetish_a_SOURCES): Add unlocked-io.h.
79600         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79601         (DISTCLEANFILES, io_functions): Remove macros.
79602         (EXTRA_DIST): Remove gen_uio.
79603         (unlocked-io.h): Remove rule.
79604
79605 2002-12-04  Jim Meyering  <jim@meyering.net>
79606
79607         Reflect the fact that stat.c and lstat.c are no longer generated.
79608         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79609         (DISTCLEANFILES): Likewise.
79610         (EXTRA_DIST): Likewise.
79611         (all_local): Don't depend on stat.c or lstat.c.
79612         (stat.c, lstat.c): Remove rules.
79613         (EXTRA_DIST): Remove xstat.in.
79614
79615         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79616         * lib/stat.c: New file.  Contents mostly from xstat.in.
79617         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79618         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79619
79620         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79621         too.
79622         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79623
79624 2002-12-03  Jim Meyering  <jim@meyering.net>
79625
79626         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79627         but not semantics, to minimize the differences between these two files.
79628         (safe_read): Change comment to mention SAFE_READ_ERROR.
79629
79630         * lib/safe-read.c (IS_EINTR): Define.
79631         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79632
79633 2002-12-02  Jim Meyering  <jim@meyering.net>
79634
79635         * lib/safe-read.c (EINTR): Define.
79636         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79637         (INT_MAX): Provide fallback.
79638         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
79639
79640         * lib/safe-read.h (SAFE_READ_ERROR): Define.
79641
79642 2002-12-02  Bruno Haible  <bruno@clisp.org>
79643
79644         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
79645         Define, taken from safe-read.c.
79646         (INT_MAX): Provide fallback.
79647         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
79648         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
79649
79650         * lib/safe-read.c (EINTR): Remove definition.
79651         (safe_read): Don't use EINTR if it is absent.
79652
79653 2002-12-01  Jim Meyering  <jim@meyering.net>
79654
79655         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
79656         zero.
79657         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
79658
79659 2002-11-27  Paul Eggert  <eggert@twinsun.com>
79660
79661         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
79662         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
79663         with `if (! (value < limit)) abort ();', for readability.
79664
79665 2002-11-26  Karl Berry  <karl@gnu.org>
79666
79667         * lib/strdup.c: copy from libc again, with jim's ok.
79668         * lib/.cppi-disable: re-add strdup.c
79669
79670 2002-11-25  Karl Berry  <karl@gnu.org>
79671
79672         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
79673         instead of "strtol.c".
79674
79675 2002-11-25  Karl Berry  <karl@gnu.org>
79676
79677         * config/install-sh: update from automake for variable quoting, $0 in
79678         error msgs, etc.
79679
79680         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
79681         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
79682         entry.
79683
79684 2002-11-25  Jim Meyering  <jim@meyering.net>
79685
79686         * lib/mktime.c: Sync from libc, now that it has the latest fix.
79687
79688 2002-11-24  Karl Berry  <karl@gnu.org>
79689
79690         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
79691         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
79692
79693 2002-11-24  Jim Meyering  <jim@meyering.net>
79694
79695         Update from coreutils:
79696
79697         * lib/mktime.c: Merge in changes from libc.
79698
79699         Avoid a link-time failure on some Linux systems.
79700         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
79701         (otherwise).
79702         (__mon_yday): Declare with the STATIC attribute.
79703         (__mktime_internal): Likewise.
79704         Based on a report from Greg Schafer.
79705
79706 2002-11-23  Jim Meyering  <jim@meyering.net>
79707
79708         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
79709         Use `unsigned', not `int', as type of index.
79710
79711         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
79712
79713         * lib/fsusage.c: Remove unneeded parentheses around operands of
79714         `defined'.
79715
79716 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79717
79718         * lib/quotearg.h: Allow multiple inclusion by surrounding with
79719         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
79720         so that we can be included first.
79721         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
79722         * lib/quotearg.c: Include quotearg.h immediately after config.h.
79723         No need to include stddef.h or sys/types.h any more.
79724         Surround local include files with "", not "<>".
79725         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
79726         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
79727         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
79728         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
79729         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
79730         (ISPRINT): Remove; no longer needed now that we assume C89.
79731
79732         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
79733         Preserve errno.
79734
79735         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
79736         quotearg_char): Use SIZE_MAX rather than
79737         (size_t) -1 when we are talking about "infinity".
79738
79739         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
79740
79741 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79742
79743         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
79744         hint that one should use `if (! x) abort ();' rather than `assert
79745         (x);', and anyway it's one less thing to worry about configuring.
79746         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
79747         hash_rehash, hash_insert): Use abort rather than assert.
79748
79749 2002-11-22  Bruno Haible  <bruno@clisp.org>
79750
79751         * lib/safe-read.h: Assume C89. Add comments.
79752         (safe_read): Change return type to size_t.
79753         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
79754         byte counts > SSIZE_MAX correctly.
79755         * lib/safe-write.h: New file.
79756         * lib/safe-write.c: New file.
79757         * lib/full-read.h: New file.
79758         * lib/full-read.c: New file.
79759         * lib/full-write.h: Assume C89. Add comments.
79760         * lib/full-write.c: Include safe-write.h.
79761         (full_write): Rewritten to use safe_write.
79762         Suggested by Jim Meyering and Paul Eggert.
79763
79764 2002-11-21  Jim Meyering  <jim@meyering.net>
79765
79766         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
79767
79768         Merge in changes from the coreutils.
79769
79770         2002-09-25  Paul Eggert  <eggert@twinsun.com>
79771         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
79772         <stdint.h>.
79773         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
79774         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
79775         int.  Work more efficiently if X is the same width as uintmax_t.
79776         Do not compare X to -1, to avoid bogus compiler warning.
79777         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
79778         Don't assume that f_frsize and f_bsize are the same type.
79779
79780         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
79781         warning on FreeBSD.
79782
79783         * lib/makepath.c (make_path): Restore umask *before* creating the final
79784         component.
79785         (make_path): Minor reformatting.
79786
79787         * lib/xmalloc.c: Adjust to work with new autoconf macros,
79788         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
79789         HAVE_MALLOC/HAVE_REALLOC.
79790
79791         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
79792         dummy ones.  At least on GNU/Linux systems, `auto' means something
79793         else.
79794         From Michael Stone.
79795
79796 2002-11-21  Bruno Haible  <bruno@clisp.org>
79797
79798         Remove case insensitive option matching.
79799         * lib/argmatch.h (argcasematch): Remove declaration.
79800         (ARGCASEMATCH): Remove macro.
79801         (__xargmatch_internal): Remove case_sensitive argument.
79802         (XARGMATCH): Update.
79803         (XARGCASEMATCH): Remove macro.
79804         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
79805         case_sensitive argument.
79806         (argcasematch): Remove function.
79807         (__xargmatch_internal): Remove case_sensitive argument.
79808         (main): Use XARGMATCH instead of XARGCASEMATCH.
79809
79810         * lib/xmalloc.c: Change compile-time error message. Add comment about
79811         required autoconf version.
79812
79813 2002-11-20  Paul Eggert  <eggert@twinsun.com>
79814
79815         Merge argmatch cleanups from Bison.  Assume C89.
79816
79817         * lib/argmatch.c: Include config.h here, not in argmatch.h.
79818         Include stdlib.h, for EXIT_FAILURE.
79819         Always include <string.h>, since we assume C89.
79820         (EXIT_FAILURE): Remove pre-C89 bug workaround.
79821         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
79822         Include <stddef.h> instead, since it's all we need for size_t.
79823         (PARAMS): Remove.  All uses removed.
79824         (ARRAY_CARDINALITY): Do not bother to #undef.
79825         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
79826         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79827         Remove unnecessary parentheses.
79828         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79829         Insert necessary parentheses.
79830         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
79831         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
79832
79833 2002-11-19  Bruno Haible  <bruno@clisp.org>
79834
79835         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
79836         * lib/mbswidth.h: Include <stddef.h>, for size_t.
79837
79838         * lib/mbswidth.h (PARAMS): Remove macro.
79839         (mbswidth, mbsnwidth): Use ANSI C function declarations.
79840         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
79841
79842         * lib/gcd.h (PARAMS): Remove macro.
79843         (gcd): Use ANSI C function declarations.
79844         * lib/gcd.c (gcd): Likewise.
79845
79846 2002-11-15  Bruno Haible  <bruno@clisp.org>
79847
79848         * lib/strcspn.c: Include <stddef.h>.
79849         (strcspn): Use ANSI C function declaration. Change return type to
79850         size_t. Use NULL.
79851         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
79852         (strpbrk): Use NULL.
79853         * lib/strpbrk.h (PARAMS): Remove macro.
79854         (strpbrk): Use ANSI C function declaration.
79855         * lib/strstr.c: Don't include <sys/types.h>.
79856         * lib/strstr.h (PARAMS): Remove macro.
79857         (strstr): Use ANSI C function declarations.
79858
79859 2002-11-14  Karl Berry  <karl@gnu.org>
79860
79861         * config/mkinstalldirs: `do' on separate line, instead of
79862         `for var; do'.
79863
79864 2002-11-06  Bruno Haible  <bruno@clisp.org>
79865
79866         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
79867         * lib/gcd.c (gcd): Likewise.
79868
79869 2002-11-05  Bruno Haible  <bruno@clisp.org>
79870
79871         * lib/gcd.h: New file, from gettext-0.11.5.
79872         * lib/gcd.c: New file, from gettext-0.11.5.
79873
79874 2002-11-05  Bruno Haible  <bruno@clisp.org>
79875
79876         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79877         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79878         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79879         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79880
79881         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
79882         <libintl.h>.
79883         * lib/makepath.c: Include gettext.h instead of <locale.h> and
79884         <libintl.h>.
79885
79886         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
79887         * lib/human.c: Include gettext.h instead of <libintl.h>.
79888         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
79889         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
79890         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
79891         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
79892         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
79893         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
79894         (textdomain): Remove definition.
79895         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
79896
79897         * lib/long-options.c: Remove include of <libintl.h> and definition of
79898         _.
79899         * lib/same.c: Remove include of <libintl.h> and definition of _.
79900
79901 2002-11-04  Owen Taylor  <otaylor@redhat.com>
79902
79903         * lib/config.charset: A few additions for Solaris.
79904
79905 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79906
79907         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
79908         * lib/localcharset.c (locale_charset): Declare as extern "C".
79909
79910 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79911
79912         * lib/config.charset: msdos in uk_UA uses CP1125.
79913
79914 2002-11-04  Bruno Haible  <bruno@clisp.org>
79915
79916         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
79917         * lib/strcase.h: New file, from GNU gettext-0.11.5.
79918         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
79919         * lib/strstr.h: New file, from GNU gettext-0.11.5.
79920         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
79921
79922 2002-11-04  Bruno Haible  <bruno@clisp.org>
79923
79924         * lib/localcharset.c (locale_charset): Don't return an empty string.
79925
79926 2002-11-04  Bruno Haible  <bruno@clisp.org>
79927
79928         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
79929         aliases.
79930
79931 2002-11-04  Bruno Haible  <bruno@clisp.org>
79932
79933         * lib/config.charset: Update for newest glibc. Add canonical names
79934         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
79935
79936 2002-11-04  Bruno Haible  <bruno@clisp.org>
79937
79938         * lib/config.charset: Add support for NetBSD.
79939
79940 2002-11-04  Bruno Haible  <bruno@clisp.org>
79941
79942         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
79943
79944 2002-11-01  Bruno Haible  <bruno@clisp.org>
79945
79946         * configure.in: Add AC_CONFIG_AUX_DIR call.
79947         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
79948         test/Makefile.
79949         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
79950
79951 2002-09-28  Karl Berry  <karl@gnu.org>
79952
79953         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
79954         installed automake until the next release, since changes have been
79955         made.
79956
79957 2002-09-25  Karl Berry  <karl@gnu.org>
79958
79959         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
79960         * lib/getopt*: copy from libc/posix.
79961         * lib/gettext.h: copy from gettext.
79962         * lib/.cppi-disable: add strdup.c, gettext.h.
79963
79964 2002-09-25  Karl Berry  <karl@gnu.org>
79965
79966         * config/srclist.txt: enable gettext.h check.
79967         * config/config.{guess,sub}: update from prep.
79968         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
79969                 from automake 1.6.3.
79970         See srclist*.
79971
79972 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
79973
79974         * regex.c (PATFETCH): Remove the translating fetch.
79975         (PATFETCH_RAW): Rename to PATFETCH.
79976         (set_image_of_range): New fun.
79977         (SET_RANGE_TABLE_WORK_AREA): Use it.
79978         (regex_compile): Don't translate the pattern chars so eagerly.
79979         Only do it when inserting an `exactn' bytecode or when handling
79980         a char-range.
79981         (mutually_exclusive_p): Avoid empty statement.
79982
79983 2002-07-06  Jim Meyering  <meyering@lucent.com>
79984
79985         * m4/README: Don't mention Makefile.am.in.
79986         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
79987
79988 2002-07-01  Jim Meyering  <meyering@lucent.com>
79989
79990         * lib/c-stack.c: Include sys/time.h.
79991         From Volker Borchert.
79992
79993 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79994
79995         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
79996
79997 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79998
79999         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
80000         New macro.  Use it uniformly instead of
80001         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
80002         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
80003         reported by Vin Shelton.
80004
80005 2002-06-22  Paul Eggert  <eggert@twinsun.com>
80006
80007         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
80008         Do not assume SA_SIGINFO behavior.
80009         Bug reported by Jim Meyering on NetBSD 1.5.2.
80010
80011 2002-06-22  Jim Meyering  <meyering@lucent.com>
80012
80013         * m4/c-stack.m4: New file, from diffutils-2.8.2.
80014         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
80015
80016         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
80017         now that configure.ac uses AC_GNU_SOURCE.
80018         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
80019         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
80020
80021         Update to latest tools.  Suggestions from Paul Eggert.
80022         * m4/stdbool.m4: New file, from diffutils-2.8.2.
80023         * m4/gnu-source.m4: Update from diffutils-2.8.2.
80024         * m4/fnmatch.m4: Likewise.
80025         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
80026         to AC_HEADER_STDBOOL
80027
80028 2002-06-22  Jim Meyering  <meyering@lucent.com>
80029
80030         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
80031         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
80032
80033 2002-06-22  Jim Meyering  <meyering@lucent.com>
80034
80035         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
80036
80037         * lib/exitfail.c, exitfail.h: Likewise.
80038         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
80039
80040         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
80041         of fnmatch.h.
80042         (EXTRA_DIST): Add fnmatch_loop.c.
80043         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
80044
80045         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
80046         * lib/fnmatch.c: Update from diffutils-2.8.2.
80047         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
80048         * lib/fnmatch.h: Remove file.
80049
80050 2002-06-21  Jim Meyering  <meyering@lucent.com>
80051
80052         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
80053         * m4/mbrtowc.m4: Likewise.
80054
80055         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
80056         * m4/mbswidth.m4: Reflect name change:
80057         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
80058         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80059
80060         * m4/lib-link.m4: Update from gettext-0.11.2.
80061         * m4/gettext.m4: Likewise.
80062
80063         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
80064         From Alfred M. Szmidt.
80065
80066 2002-06-18  Paul Eggert  <eggert@twinsun.com>
80067
80068         * lib/file-type.h: Report an error if neither S_ISREG nor
80069         S_IFREG is defined, instead of using a test specific to glibc
80070         2.2.  This should be safe, since POSIX requires S_ISREG and
80071         Unix Version 7 had S_IFREG.  We don't need to check for
80072         <sys/types.h> since we don't use any symbols that it defines.
80073
80074 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
80075
80076         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
80077         $@-t, so that each temporary file name is unique and valid in the first
80078         8 characters, for operation under DOS.
80079
80080 2002-06-15  Paul Eggert  <eggert@twinsun.com>
80081
80082         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
80083
80084 2002-06-15  Jim Meyering  <meyering@lucent.com>
80085
80086         Work even with DJGPP 2.03, which lacks support for symlinks.
80087         From Richard Dawe.
80088         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
80089         is defined.
80090         * lib/lchown.c (S_ISLNK): Likewise.
80091
80092 2002-06-15  Jim Meyering  <meyering@lucent.com>
80093
80094         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
80095         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
80096         have been included before this file.
80097
80098 2002-06-14  Jim Meyering  <meyering@lucent.com>
80099
80100         * lib/file-type.h: Use the version from diffutils-2.8.2.
80101         * lib/file-type.c: Likewise.
80102
80103 2002-06-07  Jim Meyering  <meyering@lucent.com>
80104
80105         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
80106         They're needed at least for NetBSD 1.5.2.
80107         ($statxfs_includes): Include those same headers.
80108         ($statxfs_includes): Include sys/vfs.h if available.
80109         ($statxfs_includes): Likewise for sys/statvfs.h.
80110         Check for the following members in both structs statfs and statvfs:
80111         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
80112
80113 2002-06-01  Jim Meyering  <meyering@lucent.com>
80114
80115         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
80116         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
80117
80118 2002-05-28  Jim Meyering  <meyering@lucent.com>
80119
80120         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
80121         Reported by Volker Borchert.
80122
80123 2002-05-27  Jim Meyering  <meyering@lucent.com>
80124
80125         Fix a problem seen only on nonconforming systems whereby ls.c's
80126         use of localtime, and then of gettimeofday would cause trouble:
80127         the localtime call used to initialize rpl_gettimeofday's save
80128         mechanism would clobber ls's current local time information so
80129         that in any long listing the first file would always be listed
80130         with date 1970-01-01.  Analysis by Volker Borchert.
80131
80132         * lib/gettimeofday.c (localtime): Undefine.
80133         (rpl_localtime): New function.
80134
80135 2002-05-27  Jim Meyering  <meyering@lucent.com>
80136
80137         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
80138         localtime.
80139
80140         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
80141         use the replacement function; it wouldn't resolve at link time.
80142         Reported by Volker Borchert.
80143
80144 2002-05-22  Jim Meyering  <meyering@lucent.com>
80145
80146         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
80147         file-type.h.
80148         * lib/file-type.h: New file.
80149         * lib/file-type.c (file_type): New file/function.  Extracted from
80150         diffutils.
80151
80152 2002-04-30  Jim Meyering  <meyering@lucent.com>
80153
80154         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
80155
80156 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80157
80158         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
80159
80160 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80161
80162         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
80163         Do not check for alloca.h (no longer used) or stdbool.h (was never
80164         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
80165
80166 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80167
80168         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
80169
80170 2002-04-29  Jim Meyering  <meyering@lucent.com>
80171
80172         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
80173         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
80174         Use AC_FUNC_STRNLEN here instead.
80175
80176         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
80177         With autoconf-2.53a, it's part of AC_PROG_CC.
80178
80179 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80180
80181         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
80182         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
80183
80184 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80185
80186         * lib/sig2str.h, lib/sig2str.c: New files.
80187         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
80188
80189 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80190
80191         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
80192         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
80193         of 127, since 64 is the largest conceivable number for ancient
80194         nonstandard hosts.
80195         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
80196
80197 2002-04-28  Jim Meyering  <meyering@lucent.com>
80198
80199         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
80200
80201 2002-04-24  Jim Meyering  <meyering@lucent.com>
80202
80203         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
80204         (jm_PREREQ): Use it.
80205
80206         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
80207         mach/mach.h fcntl.h.
80208         Check for this function: setlocale.
80209
80210 2002-04-24  Jim Meyering  <meyering@lucent.com>
80211
80212         * lib/gettext.h: New file, from Gettext.
80213         * lib/Makefile.am (INCLUDES): Remove -I../intl.
80214         (libfetish_a_SOURCES): Add gettext.h.
80215
80216 2002-04-16  Jim Meyering  <meyering@lucent.com>
80217
80218         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
80219         ut_pid, ut_id, ut_exit.
80220
80221 2002-04-16  Jim Meyering  <meyering@lucent.com>
80222
80223         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
80224         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
80225         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
80226
80227 2002-04-12  Jim Meyering  <meyering@lucent.com>
80228
80229         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
80230         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
80231         existence of the getmntinfo function.  Needed for Darwin 5.3.
80232
80233         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
80234         This is necessary at least on Darwin 5.3.
80235
80236         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
80237         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
80238         strnlen.o in the library, and that makes some versions of ranlib
80239         object.
80240
80241 2002-04-12  Jim Meyering  <meyering@lucent.com>
80242
80243         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
80244
80245 2002-04-09  Jim Meyering  <meyering@lucent.com>
80246
80247         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
80248         to be more precise.  Rather than saying we're checking whether the
80249         function `works', say what we're testing.
80250         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
80251         Reported by Bruno Haible.
80252
80253 2002-03-10  Jim Meyering  <meyering@lucent.com>
80254
80255         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80256         Suggestion from Santiago Vila.
80257
80258 2002-03-08  Jim Meyering  <meyering@lucent.com>
80259
80260         * lib/rename.c: Mention that this wrapper is needed also on
80261         mips-dec-ultrix4.4 systems.
80262
80263 2002-03-02  Jim Meyering  <meyering@lucent.com>
80264
80265         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80266         not HAVE_CLOCK_SETTIME.
80267
80268 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80269
80270         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80271         Check for clock_settime.
80272
80273 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80274
80275         * lib/nanosleep.h: Rename to....
80276         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80277
80278         * lib/gettime.c: New file.
80279         * lib/settime.c: New file.
80280         * lib/stime.c: Remove.
80281
80282         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80283         timespec.h.  Remove nanosleep.h.
80284
80285 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80286
80287         * m4/acl.m4: New file.
80288         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80289         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80290
80291 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80292
80293         * lib/acl.c, lib/acl.h: New files.
80294         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80295
80296 2002-02-24  Jim Meyering  <meyering@lucent.com>
80297
80298         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80299         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80300         cause trouble.  Reported by Nelson Beebe.
80301
80302 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80303
80304         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80305         compilers that don't know that xalloc_die never returns.
80306
80307 2002-02-20  Jim Meyering  <meyering@lucent.com>
80308
80309         * lib/getdate.c: Regenerate using bison-1.33.
80310
80311 2002-02-17  Jim Meyering  <meyering@lucent.com>
80312
80313         * config/config.guess (main): Don't use `head -1'; it's no longer
80314         portable. Use `sed 1q' instead.
80315
80316 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80317
80318         * m4/codeset.m4: Upgrade to gettext-0.11.
80319         * m4/gettext.m4: Upgrade to gettext-0.11.
80320         * m4/glibc21.m4: Upgrade to gettext-0.11.
80321         * m4/iconv.m4: Upgrade to gettext-0.11.
80322         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80323         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80324         * m4/lib-ld.m4: New file, from gettext-0.11.
80325         * m4/lib-link.m4: New file, from gettext-0.11.
80326         * m4/lib-prefix.m4: New file, from gettext-0.11.
80327         * m4/progtest.m4: Upgrade to gettext-0.11.
80328
80329 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80330
80331         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80332         (jm_PREREQ): Use it.
80333
80334 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80335
80336         * lib/posixver.c, lib/posixver.h: New files.
80337         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80338
80339 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80340             Bruno Haible  <bruno@clisp.org>
80341
80342         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80343         (fwrite_success_callback): New declaration.
80344         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80345         print_unicode_char. Call failure callback instead of error.
80346         (fwrite_success_callback): New function.
80347         (exit_failure_callback): New function.
80348         (fallback_failure_callback): New function.
80349         (print_unicode_char): Call unicode_to_mb.
80350
80351 2002-01-26  Jim Meyering  <meyering@lucent.com>
80352
80353         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80354         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80355
80356 2002-01-26  Jim Meyering  <meyering@lucent.com>
80357
80358         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80359
80360 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80361
80362         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80363
80364 2002-01-22  Jim Meyering  <meyering@lucent.com>
80365
80366         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80367         Otherwise, some versions of automake would omit the rule that makes
80368         Makefile from Makefile.in.
80369
80370 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80371
80372         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80373         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80374         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80375         (memcoll): Set errno to zero if there is no error.
80376
80377         * lib/quotearg.c (quotearg_buffer_restyled):
80378         Fix bug with quoting buffers containing NUL when backslashing escapes.
80379         This bug was exposed by the other changes in this patch.
80380         (quotearg_n_options): New arg ARGSIZE.
80381         All callers changed.
80382         (quoting_options_from_style): New function.
80383         (quotearg_n_style): Use it.
80384         (quotearg_n_style_mem): New function.
80385
80386         * lib/quotearg.h (quotearg_n_style_mem): New function.
80387
80388 2002-01-19  Jim Meyering  <meyering@lucent.com>
80389
80390         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80391         Remove useless quotes: DF_PROG="df".
80392         * m4/strnlen.m4: New file.
80393
80394 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80395
80396         * lib/backupfile.c (ISDIGIT): Comment fix.
80397         * lib/getdate.y (ISDIGIT): Likewise.
80398         * lib/posixtm.c (ISDIGIT, year): Likewise.
80399         * lib/strverscmp.c (ISDIGIT): Likewise.
80400         * lib/userspec.c (ISDIGIT): Likewise.
80401
80402 2002-01-16  Jim Meyering  <meyering@lucent.com>
80403
80404         * lib/getdate.y: Add three semicolons, each just before a closing
80405         brace. Bison (as of version 1.31) no longer papers over that mistake.
80406
80407 2002-01-05  Jim Meyering  <meyering@lucent.com>
80408
80409         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80410
80411 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80412
80413         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80414         not silently exit merely because the output buffer happens to
80415         have nothing pending.
80416
80417 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80418
80419         See the big note in ../ChangeLog.
80420         * lib/human.c (suffixes): Prefer K to k for 1024.
80421         (generate_suffix_backwards): New function.
80422         (human_readable_inexact): Use it.
80423         * lib/xstrtol.c (__xstrtol): If there is no number but there
80424         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80425         Accept 'K' as well as 'k'.
80426
80427 2001-12-15  Jim Meyering  <meyering@lucent.com>
80428
80429         * lib/regex.h (__restrict_arr): Update from libc.
80430
80431         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80432         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80433         (STREQ): Define.
80434
80435 2001-12-14  Jim Meyering  <meyering@lucent.com>
80436
80437         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80438         Suggestion from Bruno Haible.
80439
80440 2001-12-10  Jim Meyering  <meyering@lucent.com>
80441
80442         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80443         xrealloc, Instead, include "xalloc.h".
80444         (initbuffer): Don't cast xmalloc return value to char*.
80445         (readline): Reword comment.
80446         Don't cast xrealloc return value to char*
80447         Return NULL, not 0.
80448
80449 2001-12-09  Jim Meyering  <meyering@lucent.com>
80450
80451         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80452         about `signed and unsigned type in conditional expression'.
80453         * lib/posixtm.c (posix_time_parse): Likewise.
80454
80455         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80456
80457         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80458         to avoid a pedantic warning.
80459
80460         * lib/getstr.c: Don't include assert.h.
80461         (getstr): Remove warning-evoking assertions.
80462         Return -1 if offset parameter is out of bounds.
80463         Change the type of a local from int to size_t.
80464
80465         * lib/strftime.c (my_strftime_localtime_r): Include this function
80466         definition in the `#if ! HAVE_TM_GMTOFF' block.
80467
80468         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80469         Include xalloc.h instead.
80470
80471 2001-12-02  Jim Meyering  <meyering@lucent.com>
80472
80473         * lib/tempname.c: Don't declare getenv, thus reverting the change of
80474         2001-11-18.  It's no longer necessary, now that stdlib.h is always
80475         included.
80476
80477         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
80478         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
80479
80480 2001-11-30  Akim Demaille  <akim@epita.fr>
80481
80482         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
80483         before being defined.
80484
80485 2001-11-27  Paul Eggert  <eggert@twinsun.com>
80486
80487         * lib/quotearg.h (quotearg_n, quotearg_n_style):
80488         First arg is int, not unsigned.
80489         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
80490         (SIZE_MAX, UINT_MAX): New macros.
80491         (quotearg_n_options): Abort if N is negative.
80492         Avoid overflow check on hosts where size_t is 64 bits and int
80493         is 32 bits, as overflow is impossible there.
80494         Fix off-by-one typo that caused unnecessary reallocation.
80495
80496 2001-11-27  Jim Meyering  <meyering@lucent.com>
80497
80498         * lib/tempname.c: Merge with version from libc.
80499         * lib/regex.c: Likewise.
80500
80501         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
80502         systems for which STDC_HEADERS is 0, it was not included, resulting in
80503         a warning about an integer-to-pointer conversion problem with getenv.
80504         Reported by Volker Borchert.
80505
80506 2001-11-26  Jim Meyering  <meyering@lucent.com>
80507
80508         * lib/gtod.h: Remove file.
80509         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
80510         * lib/gettimeofday.c: Don't include gtod.h.
80511         (GTOD_init): Remove function.
80512         (rpl_gettimeofday): Do its job here instead, rather than aborting.
80513         Suggestion from Volker Borchert.
80514
80515 2001-11-23  Jim Meyering  <meyering@lucent.com>
80516
80517         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
80518         it.
80519         * lib/hash.c (struct hash_table): Define it here instead.
80520
80521 2001-11-22  Jim Meyering  <meyering@lucent.com>
80522
80523         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
80524
80525 2001-11-20  Jim Meyering  <meyering@lucent.com>
80526
80527         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
80528         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
80529
80530 2001-11-19  Jim Meyering  <meyering@lucent.com>
80531
80532         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
80533         directory.  Use "conftestXXXXXX" as the template.
80534         Suggestion from Paul Eggert.
80535
80536         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
80537         immediately, so the test doesn't mistakenly hit the max-open-files
80538         limit.
80539
80540 2001-11-18  Paul Eggert  <eggert@twinsun.com>
80541
80542         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
80543         (TEMPORARIES): New macro.
80544         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
80545         removes an artificial limitation (e.g. HP-UX 10.20, where
80546         TMP_MAX is 17576).
80547
80548 2001-11-18  Jim Meyering  <meyering@lucent.com>
80549
80550         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
80551
80552 2001-11-18  Jim Meyering  <meyering@lucent.com>
80553
80554         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
80555         on SunOS 4.
80556
80557         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
80558         files will be created before anything else.
80559
80560 2001-11-17  Paul Eggert  <eggert@twinsun.com>
80561
80562         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80563         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80564
80565 2001-11-17  Jim Meyering  <meyering@lucent.com>
80566
80567         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80568         Prompted by a report from Bob Proulx.
80569
80570         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80571         Instead, require UTILS_FUNC_MKSTEMP.
80572
80573 2001-11-17  Jim Meyering  <meyering@lucent.com>
80574
80575         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80576         Now, that's done as part of AC_FUNC_STRTOD.
80577
80578 2001-11-17  Jim Meyering  <meyering@lucent.com>
80579
80580         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80581         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80582         rather than group writable.  Patch by Juan F. Codagnone.
80583
80584         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80585         xrealloc, Instead, include "xalloc.h".
80586
80587         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80588         Remove explicit declarations of xmalloc, xrealloc,
80589         and xstrdup.  Instead, include "xalloc.h".
80590
80591         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80592         unlocked-io.h.
80593         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80594         Likewise.
80595         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80596
80597         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80598         Reported by Padraig Brady.
80599
80600         * lib/mkstemp.c: #undef mkstemp.
80601         Include config.h.
80602         (rpl_mkstemp): Rename from mkstemp.
80603         Protoize.
80604
80605 2001-11-16  Jim Meyering  <meyering@lucent.com>
80606
80607         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80608         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80609         determine the amount of total physical memory, use pstat_getstatic.
80610         HPUX-11 doesn't define _SC_PHYS_PAGES.
80611         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80612         If sysconf couldn't be used to determine the amount of available
80613         physical memory, use both pstat_getstatic and pstat_getdynamic.
80614         Based on a patch from Bob Proulx.
80615
80616 2001-11-10  Jim Meyering  <meyering@lucent.com>
80617
80618         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80619         (jm_PREREQ): Use it.
80620
80621 2001-11-09  Jim Meyering  <meyering@lucent.com>
80622
80623         * m4/jm-macros.m4: Require autoconf-2.52f.
80624         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80625         Use these AC_-prefixed names, not the AM_-prefixed ones.
80626
80627         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80628
80629 2001-11-05  Jim Meyering  <meyering@lucent.com>
80630
80631         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80632
80633 2001-11-04  Jim Meyering  <meyering@lucent.com>
80634
80635         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
80636         $DEFS.
80637
80638 2001-11-03  Jim Meyering  <meyering@lucent.com>
80639
80640         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
80641         of AC_DEFUN.
80642
80643         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
80644         know the name of the variable in the macro definition.
80645
80646 2001-11-03  Jim Meyering  <meyering@lucent.com>
80647
80648         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
80649         in argmatch_to_argument call.
80650
80651         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
80652         argument.
80653
80654         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
80655         e.g., a fault due to an attempt to free a NULL pointer.
80656
80657 2001-11-01  Jim Meyering  <meyering@lucent.com>
80658
80659         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
80660         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
80661
80662 2001-11-01  Jim Meyering  <meyering@lucent.com>
80663
80664         * lib/dirfd.c, lib/dirfd.h: New files.
80665         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
80666
80667         * lib/hash.c (hash_print) [TESTING]: Clean up.
80668
80669 2001-10-22  Paul Eggert  <eggert@twinsun.com>
80670
80671         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
80672         to avoid a warning if -Wall.
80673
80674 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
80675
80676         * README: New file
80677         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
80678         (per RMS's instructions, this is now the canonical source)
80679         * lgpl/, gpl/: New directories.
80680
80681 2001-10-21  Paul Eggert  <eggert@twinsun.com>
80682
80683         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
80684
80685 2001-10-21  Jim Meyering  <meyering@lucent.com>
80686
80687         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
80688         this code would end up calling gettext even in packages built
80689         with --disable-nls.
80690         * lib/getopt.c (_): Likewise.
80691         * lib/regex.c (_): Likewise.
80692
80693 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80694
80695         * m4/error.m4 (jm_PREREQ_ERROR):
80696         Do not invoke AC_CHECK_FUNCS with strerror_r, as
80697         AC_FUNC_STRERROR_R does that.
80698         Check for strerror declaration.
80699
80700         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
80701         are supposed to have them these days.
80702         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
80703         Merge changes from latest Autoconf CVS.
80704         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
80705         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
80706         POSIX decided to standardize on the int flavor of strerror_r.
80707
80708 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80709
80710         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
80711         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
80712         Use strerror_r that is only a macro, even if it is not a function.
80713         (strerror): Check for HAVE_DECL_STRERROR before declaring.
80714         (private_strerror): Use prototypes, not old-style function definition.
80715         (print_errno_message): New function.
80716         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
80717         char*-flavored one.
80718         (error_tail, error, error_at_line): Use it.
80719
80720 2001-10-11  Jim Meyering  <meyering@lucent.com>
80721
80722         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
80723         and quote_n (1, ... to avoid clobbering a buffer.
80724
80725 2001-10-05  Jim Meyering  <meyering@lucent.com>
80726
80727         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
80728         hash-pjw.h.
80729         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
80730         * lib/hash-pjw.h: New file.
80731
80732 2001-09-30  Jim Meyering  <meyering@lucent.com>
80733
80734         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
80735         `struct fsstat' has the `f_fstypename' member.
80736         Use that to define FS_TYPE, which is now used to make
80737         the getfsstat link test tighter.
80738
80739 2001-09-30  Jim Meyering  <meyering@lucent.com>
80740
80741         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
80742         Include <sys/ucred.h>, for Apple Darwin.
80743         Include sys/mount.h and sys/fs_types.h only if available.
80744         (FS_TYPE): Define.
80745         (read_filesystem_list): Use FS_TYPE.
80746
80747 2001-09-29  Paul Eggert  <eggert@twinsun.com>
80748
80749         * lib/exclude.c (excluded_filename): 0 -> false, since it's
80750         a boolean context.
80751
80752 2001-09-29  Jim Meyering  <meyering@lucent.com>
80753
80754         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80755         [one-argument getmntent function]): Include stdio.h before mntent.h.
80756         SunOS 4.1.x needs it for the declaration of `FILE'.
80757         Patch by Volker Borchert.
80758
80759         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80760         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
80761         sys/fs_types.h, and make the link-test for getfsstat guard #include
80762         directives with appropriate #if HAVE_*_H tests so that we can
80763         detect getfsstat on Apple Darwin1.3.7 systems.
80764         Reported by Nelson Beebe.
80765         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
80766
80767 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80768
80769         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80770         #defines strtoimax.  Also treat the other strto* functions
80771         like strtoimax.
80772
80773         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80774         Check for strtoul and strtoumax,
80775         as those declarations are made even in the signed case.
80776         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
80777         Likewise, for strtol and strtoimax.
80778
80779 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80780
80781         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80782         #defines strtoimax.  Also treat the other strto* functions
80783         like strtoimax.
80784
80785         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
80786         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
80787         (strtoimax, strtoumax): Do not declare if already defined as a macro.
80788
80789 2001-09-26  Jim Meyering  <meyering@lucent.com>
80790
80791         Most macros in unlocked-io.h had the wrong number of arguments.
80792         * lib/gen-uio: New script.
80793         (USE_UNLOCKED_IO): Define to 1 if not already defined.
80794         * lib/unlocked-io.hin: Remove file.
80795         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
80796         rather than trying to embed it here.
80797         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
80798         Reported by Padraig Brady.
80799
80800 2001-09-25  Volker Borchert  <bt@teknon.de>
80801
80802         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
80803         `result'.
80804
80805 2001-09-24  Jim Meyering  <meyering@lucent.com>
80806
80807         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
80808
80809 2001-09-23  Jim Meyering  <meyering@lucent.com>
80810
80811         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
80812         instead of the mere test for existence of mntent.h.  The latter
80813         would get a false-positive on AIX 3.4 systems.
80814         In the outer getmntent if-block, don't die if neither of the getmntent
80815         tests succeeds.  Instead, just fall through and continue with the
80816         remaining tests.
80817
80818 2001-09-23  Jim Meyering  <meyering@lucent.com>
80819
80820         * lib/mountlist.c: Remove useless parentheses in #if directives.
80821         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
80822         the deprecated MOUNTED symbol is no longer defined in mntent.h.
80823
80824 2001-09-22  Jim Meyering  <meyering@lucent.com>
80825
80826         * m4/gettext.m4: New file.  From gettext.
80827         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
80828         * m4/progtest.m4: Likewise
80829         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
80830         * m4/glibc21.m4: Likewise.
80831
80832         * m4/libintl.m4: Remove.  No longer used.
80833
80834 2001-09-22  Jim Meyering  <meyering@lucent.com>
80835
80836         * lib/localcharset.c: Update from latest gettext.
80837         * lib/config.charset: Likewise.
80838
80839 2001-09-20  Jim Meyering  <meyering@lucent.com>
80840
80841         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
80842         strtoimax.
80843         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
80844         strtoumax.
80845
80846 2001-09-20  Jim Meyering  <meyering@lucent.com>
80847
80848         * lib/xstrtol.c (strtoimax): Guard declaration with
80849         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
80850         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
80851         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
80852         (strtoumax): Likewise, for completeness (it wasn't necessary).
80853
80854 2001-09-17  Paul Eggert  <eggert@twinsun.com>
80855
80856         * lib/strtoimax.c (HAVE_LONG_LONG):
80857         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
80858         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
80859         to work around bug in IBM C compiler.
80860
80861 2001-09-17  Jim Meyering  <meyering@lucent.com>
80862
80863         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
80864         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
80865         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
80866         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
80867         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
80868         whenever the right hand side need not be expanded by the shell.
80869
80870 2001-09-16  Paul Eggert  <eggert@twinsun.com>
80871
80872         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
80873         library.  It's not correct, as some older glibcs are buggy.
80874         fnmatch wasn't fixed until glibc 2.2.
80875
80876         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
80877         special shell magic here.
80878
80879 2001-09-16  Jim Meyering  <meyering@lucent.com>
80880
80881         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
80882         * m4/jm-macros.m4: Require it.
80883
80884 2001-09-16  Jim Meyering  <meyering@lucent.com>
80885
80886         * lib/mkdir.c: New file.
80887
80888 2001-09-15  Jim Meyering  <meyering@lucent.com>
80889
80890         * m4/jm-macros.m4: Check for help2man.
80891
80892 2001-09-11  Jim Meyering  <meyering@lucent.com>
80893
80894         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
80895         The body, by Paul Eggert, was moved here from configure.in.
80896         * m4/jm-macros.m4: Require UTILS_HOST_OS.
80897
80898 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80899
80900         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
80901         (jm_PREREQ): Use it.
80902
80903 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80904
80905         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
80906         Use ssize_t, not int, to store result of readlink.
80907         Check for ssize_t overflow as well as size_t overflow,
80908         as POSIX says the result of readlink is implementation-defined
80909         when ssize_t overflows.
80910         Remove unnecessary cast to char*.
80911         Use free+malloc instead of realloc, as the storage doesn't need
80912         to be preserved and it's clearer and can be more efficient that way.
80913         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
80914         * lib/xreadlink.h (xreadlink): Update prototype.
80915
80916 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80917
80918         * lib/xgetcwd.c: Revert some of the previous change; intead,
80919         fix the HAVE_GETCWD_NULL code to behave more like the
80920         !HAVE_GETCWD_NULL code used to.
80921
80922         Include "xalloc.h".
80923         (xgetcwd): Do not return NULL when memory is exhausted; instead,
80924         invoke xalloc_die.
80925
80926 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80927
80928         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
80929         sys/param.h, as pathmax.h includes them.
80930
80931 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80932
80933         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
80934         (jm_PREREQ_XGETCWD): New macro.
80935
80936         * m4/getcwd.m4: New file.
80937
80938 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80939
80940         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
80941         like the HAVE_GETCWD_NULL code.
80942         Include pathmax.h if not HAVE_GETCWD.
80943         Do not include xalloc.h.
80944         (INITIAL_BUFFER_SIZE): New symbol.
80945         Do not use xmalloc / xrealloc, since the caller is responsible for
80946         handling errors.  Preserve errno around `free' during failure.
80947         Do not overrun buffer when using getwd.
80948
80949 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80950
80951         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
80952         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
80953         getcwd (NULL, 0).
80954
80955 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80956
80957         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
80958         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
80959         spotted by Jim Meyering.
80960
80961 2001-09-03  Jim Meyering  <meyering@lucent.com>
80962
80963         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
80964         failure.
80965
80966 2001-09-02  Jim Meyering  <meyering@lucent.com>
80967
80968         * lib/error.c: Update from GNU libc.
80969
80970 2001-09-01  Jim Meyering  <meyering@lucent.com>
80971
80972         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
80973         Used by df.
80974
80975 2001-09-01  Jim Meyering  <meyering@lucent.com>
80976
80977         * lib/xreadlink.c: New file.
80978         * lib/xreadlink.h: New file.
80979         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
80980         xreadlink.h.
80981
80982         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
80983         doesn't conflict with sparc Solaris 7's definition in
80984         /usr/include/sys/int_types.h.
80985
80986         * lib/exclude.c: Use `""', not `<>' to #include non-system header
80987         files.
80988         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
80989         and strncasecmp as r-values.  Unixware didn't have declarations.
80990
80991 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80992
80993         * lib/xstrtol.h: Add copyright notice.
80994         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
80995         LONGINT_INVALID_SUFFIX_CHAR.
80996
80997 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80998
80999         * lib/xstrtol.c (strtoimax): New decl.
81000
81001 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81002
81003         * lib/xgetcwd.c: Don't include pathmax.h.
81004         Include stdlib.h and unistd.h if available.
81005         Include xalloc.h.
81006         (xmalloc, xstrdup, free): Remove decls.
81007         (xgetcwd): Don't assume sizes fit in unsigned.
81008         Check for overflow when computing sizes.
81009         Simplify reallocation code.
81010
81011 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81012
81013         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
81014         a directory's st_size can have an arbitrary value, so the old
81015         usage could waste an arbitrary amount of memory.  All uses
81016         changed.
81017         * lib/savedir.h: Update prototype.
81018
81019 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81020
81021         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
81022
81023         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
81024         old strtoimax.c.
81025
81026         Also, make the following further changes to make this file's
81027         configuration more similar to that of strtol.c:
81028         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
81029         (strtoumax, uintmax_t, strtoull, strtol): Remove.
81030         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
81031         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
81032         changed to signed values.
81033
81034         And make the following changes as well:
81035         Fix copyright notice, as 1999 was missing.
81036         (verify): New macro.
81037         (strtoimax): Check sizes at compile-time, not run-time.
81038         Prefer strtol to strtoll if both work.
81039         (main): Remove; it was not that useful and was a pain to maintain.
81040
81041         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
81042
81043 2001-08-31  Jim Meyering  <meyering@lucent.com>
81044
81045         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
81046         Use an initial, malloc'd, buffer of length 128 rather than
81047         a statically allocated one of length 1024.
81048
81049 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81050
81051         Simplify code, partly by assuming autoconf 2.52 semantics.
81052
81053         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
81054
81055         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
81056         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
81057         All uses removed.
81058         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
81059         Move AC_REQUIRE to next-to-top level, to avoid confusion.
81060         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
81061         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
81062         jm_AC_HEADER_INTTYPES_H.
81063         * m4/jm-macros.m4 (jm_MACROS): Likewise.
81064
81065         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
81066
81067         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81068         Quote first arg of AC_DEFUN.
81069         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
81070         since they are needed to parse the include file even if we need
81071         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
81072         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
81073         but with opposite signedness.
81074
81075 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81076
81077         Merge 'exclude' changes from tar 1.13.22.
81078         This fixes one or two unlikely storage allocation overflow bugs,
81079         but doesn't change user-visible behavior otherwise.
81080
81081 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81082
81083         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
81084         (jm_PREREQ_EXCLUDE): New macro.
81085
81086 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81087
81088         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
81089         tm to be declared.
81090
81091 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81092
81093         * lib/hash.c: Remove '2001' from copyright notice.
81094
81095 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81096
81097         * lib/full-write.h: New file.
81098         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
81099         * lib/full-write.c: Correct credits, as cccp.c no longer
81100         exists and anyway it was so heavily changed from the old cccp
81101         code as to be unrecognizable.  Include full-write.h.
81102         (full_write): Return size_t, with short writes meaning failure.
81103         All callers changed.  This fixes a bug with large buffers
81104         on 64-bit hosts.
81105         * lib/utime.c: Include full-write.h.
81106
81107 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81108
81109         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
81110         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
81111         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
81112         Include if available.
81113         (<xalloc.h>): Include
81114         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
81115         (verify): New macro.  Use it to verify that EXCLUDE macros do not
81116         collide with FNM macros.
81117         (struct patopts): New struct.
81118         (struct exclude): Use it, as exclude patterns now come with options.
81119         (new_exclude): Support above changes.
81120         (new_exclude, add_exclude_file):
81121         Initial size must now be a power of two to simplify overflow checking.
81122         (free_exclude, fnmatch_no_wildcards): New function.
81123         (excluded_filename): No longer requires options arg, as the options
81124         are determined by add_exclude.  Now returns bool, not int.
81125         (excluded_filename, add_exclude):
81126         Add support for the fancy new exclusion options.
81127         (add_exclude, add_exclude_file): Now takes int options arg.
81128         Check for arithmetic overflow when computing sizes.
81129         (add_exclude_file): xrealloc might modify errno, so don't
81130         realloc until after errno might be used.
81131
81132         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
81133         New macros.
81134         (free_exclude): New decl.
81135         (add_exclude, add_exclude_file): Now takes int options arg.
81136         (excluded_filename): No longer requires options arg, as the options
81137         are determined by add_exclude.  Now returns bool, not int.
81138
81139 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81140
81141         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
81142
81143 2001-08-27  Jim Meyering  <meyering@lucent.com>
81144
81145         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
81146
81147         * lib/version-etc.c (N_): Remove definition.
81148         Revert most of last change.
81149         Instead, simply don't mark the `Copyright...' string for translation.
81150         Based on advice from Paul Eggert.
81151
81152         * lib/strtoxmax.c: Tweak comment.
81153
81154 2001-08-26  Jim Meyering  <meyering@lucent.com>
81155
81156         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
81157
81158         * m4/xstrtoimax.m4: New file.
81159         * m4/xstrtoumax.m4: Add comments explaining why we
81160         AC_REPLACE_FUNCS(strtol).
81161
81162 2001-08-26  Jim Meyering  <meyering@lucent.com>
81163
81164         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
81165         of copyright with `%s' so translators don't get an untranslated
81166         message in 2002.
81167         (COPYRIGHT_YEAR): Define.
81168         (version_etc): Use fprintf rather than fputs.
81169         Suggestion from Ulrich Drepper.
81170
81171         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
81172
81173         * lib/strtoll.c: New file, from GNU libc.
81174         * lib/xstrtoimax.c: New file.
81175
81176         * lib/xstrtol.h: Add xstrtoimax.
81177         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
81178         * lib/strtoimax.c: New file.  Likewise, but first define
81179         STRTOUXMAX_SIGNED.
81180
81181         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
81182         ...
81183         * lib/strtoxmax.c: ... then renamed to this.
81184
81185 2001-08-18  Paul Eggert  <eggert@twinsun.com>
81186
81187         * m4/inttypes.m4: Add AC_PREREQ(2.13).
81188         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
81189         (jm_AC_TYPE_INTMAX_T): New macro.
81190         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
81191
81192         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
81193
81194         * m4/longlong.m4: Renamed from ulonglong.m4.
81195         * m4/inttypes.m4: Renamed from inttypes_h.m4.
81196         * m4/uintmax_t.m4: Removed.
81197
81198 2001-08-13  Paul Eggert  <eggert@twinsun.com>
81199
81200         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
81201         Port to Solaris 8, where 'sed' requires a space after the 'r'
81202         command, and where sh dislikes "$/".  Clean up the spacing a bit.
81203         Redirect output to $tmp just once.
81204
81205 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
81206
81207         * lib/addext.c (<errno.h>): Include.
81208         (errno): Declare if not defined.
81209         (addext): Work correctly when pathconf returns -1 and leaves
81210         errno alone because there is no limit.  Also, work even if
81211         pathconf returns a value greater than SIZE_MAX.
81212
81213 2001-08-12  Jim Meyering  <meyering@lucent.com>
81214
81215         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
81216         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
81217         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
81218         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
81219         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
81220         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
81221         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
81222         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
81223         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
81224         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
81225         utime.m4, utimes.m4, xstrtoumax.m4:
81226         Quote the first argument in each use of AC_DEFUN.
81227
81228 2001-08-12  Jim Meyering  <meyering@lucent.com>
81229
81230         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
81231         Simply `return getcwd (NULL, 0);'.
81232         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
81233         Use 1300 as initial value for length, not PATH_MAX.
81234
81235         * lib/pathmax.h: Clean up cpp syntax.
81236
81237 2001-08-12  Jim Meyering  <meyering@lucent.com>
81238
81239         * lib/gettimeofday.c: New file.
81240         * lib/gtod.h: New file.
81241         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
81242
81243 2001-08-05  Jim Meyering  <meyering@lucent.com>
81244
81245         * m4/jm-macros.m4: Require autoconf-2.52.
81246
81247 2001-08-04  Jim Meyering  <meyering@lucent.com>
81248
81249         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
81250         stmt, to get in sync with glibc.
81251
81252 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81253
81254         The following changes are from gettext 0.10.39 as maintained by
81255         Bruno Haible.
81256
81257         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81258         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81259         with inverted sense.  All uses changed.
81260
81261         * lib/mbswidth.c: Don't include <limits.h>.
81262         Include <stdlib.h> and <string.h> unconditionally.
81263         (iswcntrl, mbsinit, ISCNTRL): New macros.
81264         (mbsnwidth): Use K&R style function declarations.
81265         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81266         can optimize it when MB_CUR_MAX == 1.
81267         The width of control characters is zero, not 1.
81268
81269 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81270
81271         The following changes are from gettext 0.10.39 as maintained by
81272         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81273
81274         * m4/codeset.m4: Upgrade to serial AM1.
81275         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81276         all uses changed.  Quote first arg of AC_DEFUN.
81277         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81278
81279         * m4/iconv.m4: Upgrade to serial AM2.
81280         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81281         Add --with-libconv-prefix.
81282         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81283         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81284         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81285         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81286         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81287
81288         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81289         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81290         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81291         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81292         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81293         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81294         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81295         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81296         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81297
81298         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81299         string.h any more.
81300
81301         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81302         not the default value.
81303
81304         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81305         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81306         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81307         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81308         Also check for iswcntrl, used for wcwidth fallback.
81309         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81310         to Autoconf 2.13.
81311
81312 2001-08-03  Jim Meyering  <meyering@lucent.com>
81313
81314         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81315         as it was in the original.  Reported by Paul Eggert.
81316
81317 2001-07-16  Jim Meyering  <meyering@lucent.com>
81318
81319         * m4/gettimeofday.m4: New file.
81320         Prompted by a report from Bernhard Baehr.
81321
81322 2001-07-15  Jim Meyering  <meyering@lucent.com>
81323
81324         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81325         stuff. Now it's in ../Makefile.cfg.
81326
81327 2001-07-15  Jim Meyering  <meyering@lucent.com>
81328
81329         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81330         (BUILT_SOURCES): Add unlocked-io.h.
81331         (io_functions): Define.
81332         (unlocked-io.h): New rule.
81333         (DISTCLEANFILES): Add unlocked-io.h.
81334         (all-local): Depend on unlocked-io.h, to ensure it is created.
81335
81336         * lib/unlocked-io.hin: New file
81337
81338         * lib/regex.c: Update from glibc.
81339
81340 2001-07-05  Jim Meyering  <meyering@lucent.com>
81341
81342         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81343         recommendation.
81344         (libfetish_a_SOURCES): Put all .h files here instead.
81345         Remove a thus-exposed (better checks in automake) duplicate and
81346         two unnecessary .h files.
81347
81348 2001-07-04  Jim Meyering  <meyering@lucent.com>
81349
81350         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81351         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81352         distcheck failure.
81353
81354 2001-07-02  Jim Meyering  <meyering@lucent.com>
81355
81356         The following changes were prompted by suggestions from Bruno Haible.
81357
81358         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81359         is now generated.
81360         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81361         definition of EXTRA_DIST.
81362         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81363         ensure that the generated file is created/updated whenever the list
81364         of $(unlocked_functions) is changed.
81365         (jm-glibc-io.m4): New rule.
81366         (unlocked-io.h): New rule -- currently unused.
81367
81368 2001-06-24  Jim Meyering  <meyering@lucent.com>
81369
81370         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81371         unmatched right bracket, rather than kludging it with an extra,
81372         falsely-matching quote in a comment.  Patch by Akim Demaille.
81373
81374 2001-06-11  Jim Meyering  <meyering@lucent.com>
81375
81376         * lib/regex.c: Update from GNU libc.
81377
81378 2001-05-27  Jim Meyering  <meyering@lucent.com>
81379
81380         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81381         Check for ut_type in struct utmp.
81382
81383 2001-05-27  Jim Meyering  <meyering@lucent.com>
81384
81385         * lib/readutmp.h (UT_TYPE): Define.
81386
81387 2001-05-24  Jim Meyering  <meyering@lucent.com>
81388
81389         * lib/argmatch.c: Include "quote.h".
81390         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81391         quote function.  Reported by Göran Uddeborg.
81392
81393 2001-05-22  Jim Meyering  <meyering@lucent.com>
81394
81395         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81396         now that we use the package-supplied version unconditionally.
81397         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81398
81399 2001-05-21  Jim Meyering  <meyering@lucent.com>
81400
81401         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81402         shell syntax errors.
81403
81404 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81405
81406         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81407
81408 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81409
81410         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81411         Don't bother to check library strftime, since
81412         we'll be using our own my_strftime function anyway.
81413         Define my_strftime instead of strftime.
81414
81415 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81416
81417         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81418         which is not yet declared.
81419
81420 2001-05-15  Jim Meyering  <meyering@lucent.com>
81421
81422         * m4/regex.m4: Use proper quoting so brackets appear in the test
81423         program.
81424         Reported by, and with help from, Bruno Haible.
81425
81426 2001-05-13  Jim Meyering  <meyering@lucent.com>
81427
81428         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81429         undefined.
81430
81431 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81432
81433         dirname code cleanup.  base_name now behaves more compatibly
81434         with POSIX basename when given file names that have trailing
81435         slashes, and similarly for dir_name.  Add new primitives
81436         base_len and dir_len.  Put the directory-name-related decls
81437         into dirname.h.
81438
81439         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81440         * lib/backupfile.c (base_name): Likewise.
81441         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81442         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81443         * lib/makepath.c (strip_trailing_slashes): Likewise.
81444         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81445         ISSLASH): Likewise.
81446         * lib/rename.c (strip_trailing_slashes): Likewise.
81447         * lib/same.c (base_name): Likewise.
81448         * lib/stripslash.c (ISSLASH): Likewise.
81449
81450         * lib/addext.c: Include <dirname.h> after size_t is defined.
81451         * lib/backupfile.c: Likewise.
81452
81453         * lib/addext.c (addext): Use base_len to trim redundant
81454         trailing slashes instead of doing it ourselves.
81455         But do not trim the last slash if it is not redundant.
81456
81457         * lib/backupfile.c (find_backup_file_name,
81458         max_backup_version): Use base_len instead of rolling it ourselves.
81459         Handle the case of "" and (on DOS) "C:" correctly.
81460
81461         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81462         needed. Include <string.h>, <dirname.h>.
81463         (base_name): Allow file names ending in slashes, other than names
81464         that are all slashes.  In this case, return the basename followed
81465         by the slashes.  This is more general, and can be used in places
81466         where the original base_name purposely had an assertion failure.
81467         (base_len): New function.
81468
81469         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81470         Do not include <assert.h>; no longer needed.
81471         Include xalloc.h.
81472         (memrchr): Remove decl.
81473         (dir_name_r): Remove.
81474         (dir_len): Renamed from dirlen.  All callers changed.
81475         Rewrite in terms of base_name, for simplicity and consistency.
81476         (dir_name): Never return NULL.  All callers changed.
81477         Do not include <stdlib.h> in test program; no longer needed.
81478         return 0; is fine for test program.
81479
81480         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
81481         New macros.
81482         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
81483
81484         * lib/path-concat.c (path_concat): Use base_len to compute
81485         base length, not strlen; this means we cannot rely on memcpy
81486         to null-terminate.
81487
81488         * lib/same.c (STREQ): Remove.
81489         (same_name): Handle the case where the basename ends in trailing '/'.
81490
81491         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
81492         a slash was stripped.  Do not strip the last slash after a
81493         file system prefix.
81494
81495 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81496
81497         * lib/Makefile.am (libfetish_a_SOURCES):
81498         Add strftime.c, since we now compile it on all hosts.
81499
81500         * lib/strftime.c (my_strftime):
81501         Define to nstrftime if emacs, but only if my_strftime is not defined.
81502         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
81503         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
81504         Add one more extra argument: a nanoseconds value.
81505         All uses changed.
81506         (ns): New macro.
81507         (my_strftime function): Add %N format.
81508         (emacs_strftimeu): Renamed from emacs_strftime,
81509         with extra ut argument.
81510
81511 2001-05-09  Paul Eggert  <eggert@twinsun.com>
81512
81513         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
81514
81515 2001-04-21  Jim Meyering  <meyering@lucent.com>
81516
81517         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
81518         doesn't interfere.
81519
81520 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81521
81522         * m4/ftruncate.m4: Check for chsize.
81523         Link with ftruncate.o unconditionally if ftruncate is missing.
81524         This was required when cross-compiling to i586-mingw32msvc.
81525
81526 2001-04-08  Jim Meyering  <meyering@lucent.com>
81527
81528         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
81529         recomputed; that's necessary when the offset spans a DST transition.
81530         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
81531
81532 2001-04-02  Jim Meyering  <meyering@lucent.com>
81533
81534         * lib/regex.h, regex.c: Update from GNU libc.
81535
81536 2001-03-24  Jim Meyering  <meyering@lucent.com>
81537
81538         * m4/jm-macros.m4: Require autoconf-2.49d.
81539
81540 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
81541
81542         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
81543
81544 2001-03-19  Paul Eggert  <eggert@twinsun.com>
81545
81546         * lib/version-etc.c (version_etc_copyright): Update to 2001.
81547
81548 2001-03-17  Jim Meyering  <meyering@lucent.com>
81549
81550         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
81551         now that the version in autoconf is equivalent.
81552         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
81553
81554         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
81555         Suggestion from Akim Demaille.
81556
81557         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
81558         (jm_PREREQ_TEMPNAME): New function.
81559
81560 2001-03-16  Paul Eggert  <eggert@twinsun.com>
81561
81562         * lib/tempname.c (uint64_t): Define to uintmax_t if
81563         not defined, and if UINT64_MAX is not defined.
81564         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81565         Reported by John David Anglin.
81566
81567 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81568
81569         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81570         resolve alias if codeset is empty.
81571         * lib/config.charset (BeOS): Use wildcard syntax.
81572
81573 2001-03-13  Jim Meyering  <meyering@lucent.com>
81574
81575         * lib/path-concat.c (path_concat)
81576         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81577         concatenating e.g., `C:' and `foo'.
81578         From Bruno Haible.
81579
81580 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81581
81582         * lib/localcharset.c (locale_charset): Don't use
81583         setlocale(LC_CTYPE,NULL). Don't return NULL.
81584         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81585
81586 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81587
81588         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81589         support for DOS/DJGPP.
81590
81591 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81592
81593         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81594         lacks mkstemp.  Compile our own tempname.c if we compile our own
81595         mkstemp.c, as mkstemp relies on tempname.
81596
81597 2001-03-01  Jim Meyering  <meyering@lucent.com>
81598
81599         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81600         AH_VERBATIM really does output its argument verbatim.
81601
81602 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81603
81604         * lib/Makefile.am (libfetish_a_SOURCES):
81605         Add dup-safer.c, fopen-safer.c.
81606         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81607
81608         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81609         * lib/unistd-safer.h: New files.
81610
81611 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81612
81613         The mkstemp replacement is taken from glibc 2.2.2, with some
81614         portability fixes for use outside glibc, as follows:
81615
81616         * lib/tempname.c (struct_stat64): New macro.
81617         (direxists, __gen_tempname): Use it.
81618         This avoids a portability problem with Solaris 8.
81619
81620         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81621         (<stddef.h>, <stdint.h>, <string.h>):
81622         Include only if STDC_HEADERS || _LIBC.
81623         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81624         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81625         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81626         (__set_errno): Define this macro if <errno.h> doesn't.
81627         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81628         Define these macros if <stdio.h> doesn't.
81629         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81630         Define these macros if <sys/stat.h>
81631         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81632         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81633         __xstat64): Define if not _LIBC.
81634         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81635         (__gen_tempname): Invoke gettimeofday only if
81636         HAVE_GETTIMEOFDAY || _LIBC;
81637         otherwise, fall back on plain "time".
81638         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
81639
81640         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
81641
81642         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
81643
81644 2001-02-18  Paul Eggert  <eggert@twinsun.com>
81645
81646         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
81647
81648 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81649
81650         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
81651         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
81652         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
81653         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81654
81655 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81656
81657         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
81658         Remove workaround macros for hosts that have mbrtowc but not
81659         mbstate_t, as we now insist on proper declarations for both
81660         before using mbrtowc.
81661
81662 2001-02-17  Jim Meyering  <meyering@lucent.com>
81663
81664         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
81665         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
81666         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
81667         UnixWare 7.1.1.
81668
81669         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
81670         rather than AC_CACHE_VAL.
81671
81672 2001-02-17  Jim Meyering  <meyering@lucent.com>
81673
81674         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
81675         around included file name.
81676
81677         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
81678
81679         * lib/strftime.c: Update from GNU libc (the only changes were to
81680         comments).
81681
81682 2001-02-17  Jim Meyering  <meyering@lucent.com>
81683
81684         * lib/regex.c: Update from libc.
81685
81686 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
81687
81688         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
81689         clash.
81690
81691 2001-02-16  Paul Eggert  <eggert@twinsun.com>
81692
81693         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
81694         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
81695         Reported by Mark Hounschell via Paul Eggert.
81696
81697 2001-02-07  Jim Meyering  <meyering@lucent.com>
81698
81699         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
81700
81701 2001-02-05  Jim Meyering  <meyering@lucent.com>
81702
81703         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
81704         it includes the patch required for `large file' support with at least
81705         HP-UX's 10.20 /bin/cc.
81706
81707 2001-02-03  Jim Meyering  <meyering@lucent.com>
81708
81709         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
81710         AS_IF, now that it works once again (mysteriously).
81711         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81712
81713 2001-01-30  Jim Meyering  <meyering@lucent.com>
81714
81715         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
81716         * m4/chown.m4: Rename conftestchown to conftest.chown.
81717         * m4/rename.m4: s/conftestdir/conftest.d1/ and
81718         s/conftestdir2/conftest.d2/.
81719         * m4/utimes.m4: s/conftestdata/conftest.data/
81720         Inspired by Pavel Roskin's change in autoconf.
81721
81722 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
81723
81724         * lib/config.charset: Update for FreeBSD 4.2.
81725
81726 2001-01-27  Jim Meyering  <meyering@lucent.com>
81727
81728         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
81729         a use of AS_IF.
81730         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81731
81732 2001-01-26  Jim Meyering  <meyering@lucent.com>
81733
81734         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
81735         quotearg.c includes it.
81736
81737 2001-01-26  Jim Meyering  <meyering@lucent.com>
81738
81739         * lib/quotearg.c: Include stddef.h.
81740         * lib/quote.c: Include stddef.h.
81741         Reported by Axel Kittenberger.
81742
81743         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
81744         line in double quotes so that it evokes a better diagnostic.
81745         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
81746         Reported by Axel Kittenberger.
81747
81748 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
81749
81750         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
81751         as if it was a `charset'.
81752
81753 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81754
81755         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
81756         has const.
81757
81758 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81759
81760         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
81761         to avoid a warning.  Add back 'const' to inptr.
81762
81763 2001-01-20  Jim Meyering  <meyering@lucent.com>
81764
81765         Be sure that headers are checked before used in code compiled
81766         for the type checks.
81767         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
81768         In place of that, invoke jm_CHECK_ALL_TYPES.
81769         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
81770         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
81771         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
81772         The check for ssize_t was mistakenly run before the test for unistd.h.
81773
81774         The configure-time check for stdbool.h was missing.
81775         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
81776         (jm_PREREQ_HASH): New function.
81777
81778 2001-01-17  Jim Meyering  <meyering@lucent.com>
81779
81780         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
81781         for autoconf-2.49c.
81782         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
81783
81784 2001-01-16  Jim Meyering  <meyering@lucent.com>
81785
81786         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
81787         From Bruno Haible.
81788
81789 2001-01-14  Jim Meyering  <meyering@lucent.com>
81790
81791         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
81792         foo and bar.  Create conftestdir/ in the script, not in the C code.
81793         Remove directories in the script, not in the C code.
81794         Remove conftestdir{,2} before trying to create the directory.
81795         Make the entire configure script fail if the mkdir fails.
81796
81797 2001-01-14  Jim Meyering  <meyering@lucent.com>
81798
81799         * lib/rename.c: New file.  From Volker Borchert.
81800         Include stdlib.h, string.h or strings.h, and xalloc.h.
81801         Use strip_trailing_slashes rather than open-coding it.
81802
81803 2001-01-03  Paul Eggert  <eggert@twinsun.com>
81804
81805         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
81806
81807 2001-01-03  Jim Meyering  <meyering@lucent.com>
81808
81809         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
81810         of local `inptr' to avoid warning with some system declarations of
81811         iconv.
81812
81813 2001-01-02  Volker Borchert  <bt@teknon.de>
81814
81815         * m4/rename.m4: New file.
81816         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
81817
81818 2001-01-01  Jim Meyering  <meyering@lucent.com>
81819
81820         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
81821         even on systems with utmpx.h.  It's necessary for the declaration of
81822         utmp's ut_user member.  Reported by Andreas Jaeger.
81823
81824         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
81825         available. They are required for the declarations of getgrgid and
81826         getpwuid resp.
81827         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
81828         Reported by Andreas Jaeger.
81829
81830 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
81831
81832         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
81833         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
81834         so `make install' also works in VPATH builds.
81835
81836 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
81837
81838         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
81839         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
81840         can be used in subdirectories.
81841
81842 2000-12-29  Paul Eggert  <eggert@twinsun.com>
81843
81844         * lib/modechange.c: Do not assume that mode_t uses the
81845         traditional octal encoding.  E.g. "chmod 1 FOO" should set
81846         the other-execute bit of FOO even if S_IXOTH != 1.
81847
81848         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
81849         WOTH, XOTH, ALLM): New macros.
81850         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
81851          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
81852         Use them.
81853         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
81854         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
81855         (mode_compile):
81856         No need to use uintmax_t; unsigned long is long enough.
81857         Don't bother to get suffix since we don't use it.
81858
81859 2000-12-26  Jim Meyering  <meyering@lucent.com>
81860
81861         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
81862         better with autoheader.
81863
81864 2000-12-24  Jim Meyering  <meyering@lucent.com>
81865
81866         * lib/hash.c (is_prime): Return explicit boolean values.
81867         (hash_get_first): Return NULL to appease Irix5.6's 89.
81868         Reported by Nelson Beebe.
81869
81870 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
81871
81872         * lib/localcharset.c (locale_charset): Add support for Win32.
81873
81874 2000-12-18  Paul Eggert  <eggert@twinsun.com>
81875
81876         * lib/physmem.h, lib/physmem.c: New files.
81877
81878         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
81879         (noinst_HEADERS): Add physmem.h.
81880
81881         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
81882         't' for compatibility with Solaris 8 sort.
81883
81884 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
81885
81886         * lib/config.charset: Add support for BeOS.
81887
81888 2000-12-17  Jim Meyering  <meyering@lucent.com>
81889
81890         * m4/dos.m4 (jm_AC_DOS): New file and macro.
81891         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
81892
81893 2000-12-16  Jim Meyering  <meyering@lucent.com>
81894
81895         This bug had a serious impact on chown: `chown N:M FILE' (for integer
81896         N and M) would have treated it like `chown N:N FILE'.
81897
81898         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
81899
81900 2000-12-16  Jim Meyering  <meyering@lucent.com>
81901
81902         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
81903         SHELLS_FILE to a file name that's useful on djgpp systems.
81904         Include stdlib.h.
81905         (ADDITIONAL_DEFAULT_SHELLS): Define.
81906         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
81907         Based mostly on a patch from Prashant TR.
81908
81909 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
81910
81911         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
81912         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
81913         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
81914
81915 2000-12-08  Andreas Schwab  <schwab@suse.de>
81916
81917         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
81918         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
81919
81920 2000-12-07  Jim Meyering  <meyering@lucent.com>
81921
81922         * lib/stripslash.c (ISSLASH): Define.
81923         (strip_trailing_slashes): Use ISSLASH rather than comparing against
81924         `/'.
81925         From Prashant TR.
81926
81927         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
81928         (dir_name_r): Declare this function as static.
81929         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
81930         manifest itself on a name containing a mix of slashes and
81931         backslashes.
81932         Make this function work with names starting with a DOS-style
81933         drive letter and colon prefix.
81934         (dir_name): Append `.' if necessary.
81935         Based mostly on patches from Prashant TR and Eli Zaretskii.
81936
81937         * lib/dirname.h (dir_name_r): Remove prototype.
81938
81939 2000-12-06  Paul Eggert  <eggert@twinsun.com>
81940
81941         * m4/off_t-format.m4: Remove this file.
81942         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
81943
81944 2000-12-06  Jim Meyering  <meyering@lucent.com>
81945
81946         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
81947         replacement strtoull, we may well need the replacement strtoul, too.
81948         Check for declarations of strtoul and strtoull.
81949         Check for strtol.  Mainly as a cue to cause automake to include
81950         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
81951         Check for limits.h -- strtol.c needs it.
81952
81953 2000-12-05  Jim Meyering  <meyering@lucent.com>
81954
81955         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
81956
81957 2000-12-04  Jim Meyering  <meyering@lucent.com>
81958
81959         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
81960         Also include memory.h, stdlib.h, unistd.h if appropriate.
81961         Reported by Andreas Jaeger (conflicting declaration of malloc).
81962
81963 2000-12-02  Jim Meyering  <meyering@lucent.com>
81964
81965         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
81966         * m4/jm-macros.m4 (jm_MACROS): require it.
81967
81968 2000-12-02  Jim Meyering  <meyering@lucent.com>
81969
81970         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
81971
81972 2000-12-01  Paul Eggert  <eggert@twinsun.com>
81973
81974         * lib/memrchr.c: Include <config.h> before any system include file.
81975
81976 2000-11-30  Jim Meyering  <meyering@lucent.com>
81977
81978         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
81979
81980 2000-11-30  Jim Meyering  <meyering@lucent.com>
81981
81982         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
81983
81984 2000-11-29  Paul Eggert  <eggert@twinsun.com>
81985
81986         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
81987
81988 2000-11-26  Jim Meyering  <meyering@lucent.com>
81989
81990         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
81991
81992 2000-11-22  Paul Eggert  <eggert@twinsun.com>
81993
81994         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
81995         size of (size_t) -1; it's not portable.
81996
81997 2000-11-17  Jim Meyering  <meyering@lucent.com>
81998
81999         * lib/strstr.c: Update from GNU libc.
82000
82001 2000-11-17  Akim Demaille  <akim@epita.fr>
82002
82003         * lib/obstack.h: Formatting changes.
82004         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
82005         prevent type checking.
82006         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
82007         cast the value to (void *): assigning a `foo *' to a `void *'
82008         variable is valid.
82009         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
82010
82011 2000-11-16  Jim Meyering  <meyering@lucent.com>
82012
82013         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
82014
82015 2000-11-11  Jim Meyering  <meyering@lucent.com>
82016
82017         * lib/error.c: Add a couple #includes, merging from GNU libc version.
82018
82019 2000-11-10  Jim Meyering  <meyering@lucent.com>
82020
82021         * lib/obstack.h: Update from GNU libc.
82022         * lib/obstack.c: Likewise.
82023
82024 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
82025
82026         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
82027
82028 2000-11-06  Paul Eggert  <eggert@twinsun.com>
82029
82030         * lib/getusershell.c (setusershell): Use rewind rather than
82031         fseek/fseeko, to avoid configuration hassles with fseeko.
82032         Don't bother opening SHELLS_FILE if shellstream is NULL;
82033         it's not necessary.
82034
82035 2000-11-05  Jim Meyering  <meyering@lucent.com>
82036
82037         * lib/makepath.h (make_dir): Declare.
82038         * lib/makepath.c (make_dir): Remove `static' attribute.
82039         Tweak a comment.
82040
82041 2000-11-04  Jim Meyering  <meyering@lucent.com>
82042
82043         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
82044
82045 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
82046
82047         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
82048         last one in a bucket, advance to the next bucket.
82049
82050 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
82051
82052         * lib/fnmatch.c: Do not comment out all the code if we are using
82053         the GNU C library, because in some cases we are replacing buggy
82054         code in the GNU C library itself.
82055
82056 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
82057
82058         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
82059         (regex_compile): Catch bogus \(\1\).
82060
82061 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82062
82063         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
82064         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
82065         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
82066
82067 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82068
82069         * lib/error.h, getline.h, modechange.h:
82070         Remove "2000" from Copyright line, as the file hasn't been
82071         changed this year other than in the copyright notice.
82072
82073         * lib/xalloc.h: Add "2000" to Copyright line, as this file
82074         was changed this year.
82075
82076 2000-10-29  Jim Meyering  <meyering@lucent.com>
82077
82078         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
82079         renaming.
82080         * m4/ls-mntd-fs.m4: Likewise
82081
82082 2000-10-29  Jim Meyering  <meyering@lucent.com>
82083
82084         * lib/xstat.in: Fix grammar in comment.
82085
82086 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
82087
82088         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
82089         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
82090         doesn't define __restrict_arr.
82091
82092 2000-10-28  Jim Meyering  <meyering@lucent.com>
82093
82094         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
82095         (jm_PREREQ_MEMCHR): New function.
82096
82097 2000-10-28  Jim Meyering  <meyering@lucent.com>
82098
82099         * lib/memchr.c: Update from libc.
82100         Adjust for portability:
82101         [HAVE_STDLIB_H]: Include stdlib.h.
82102         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
82103         Undef __memchr, too.
82104         [!weak_alias]: Define __memchr to memchr.
82105
82106         * lib/regex.c: Update from libc.
82107         * lib/regex.h: Likewise.
82108         * lib/getopt1.c: Likewise.
82109         * lib/memcmp.c: Likewise.
82110
82111         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
82112         Avoid using fseek, when possible -- it's broken by design.
82113         Patch by Ulrich Drepper.
82114
82115 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
82116
82117         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
82118         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
82119         Giving in to popular pressure to shut up the compiler with casts.
82120
82121 2000-10-26  Jim Meyering  <meyering@lucent.com>
82122
82123         * lib/strftime.c: Update from libc.
82124
82125 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
82126
82127         * regex.c: More `unsigned char' -> `re_char' changes.
82128         Also change several `int' into `re_wchar_t'.
82129         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
82130         (PUSH_FAILURE_POINTER): Don't cast any more.
82131         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
82132         We want GCC to complain, since this piece of code makes
82133         re_match non-reentrant, which *should* be fixed.
82134         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
82135         (EXTEND_BUFFER): Use RETALLOC.
82136         (SET_LIST_BIT): Don't cast.
82137         (re_wchar_t): New type.
82138         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
82139         that those two functions will always properly return.
82140         (IMMEDIATE_QUIT_CHECK): Cast to void.
82141         (analyse_first): Use recursion rather than an explicit stack.
82142         (re_compile_fastmap): Can't fail anymore.
82143         (re_search_2): Don't check re_compile_fastmap for failure.
82144         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
82145         Now also sets the new value (passed in a new argument).
82146         (re_match_2_internal): Use it.
82147         Also, use a new var `reg' of type size_t when looping through regs
82148         rather than reuse the inappropriate `mcnt'.
82149
82150 2000-10-25  Jim Meyering  <meyering@lucent.com>
82151
82152         * lib/obstack.c: Update from libc.
82153
82154 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
82155
82156         * regex.c (regex_compile): Change the way of handling a range from
82157         a char less than 256 to a char not less than 256.
82158
82159 2000-10-24  Andrew Innes  <andrewi@gnu.org>
82160
82161         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
82162         NT-Emacs only.
82163         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
82164         so that re_search functions only quit when callers expect them to.
82165
82166 2000-10-23  Jim Meyering  <meyering@lucent.com>
82167
82168         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
82169         wrong.  That set_locale call must not have any side effects.
82170         From Paul Eggert.
82171
82172 2000-10-22  Jim Meyering  <meyering@lucent.com>
82173
82174         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
82175         [CYCLIC]: Remove now-unused definition.
82176
82177         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
82178         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
82179         Suggestion from Ulrich Drepper.
82180
82181 2000-10-21  Jim Meyering  <meyering@lucent.com>
82182
82183         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
82184         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
82185         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
82186
82187 2000-10-21  Jim Meyering  <meyering@lucent.com>
82188
82189         * lib/dirname.c (memrchr): Declare if necessary.
82190         (dir_name): Remove the restriction that there be no
82191         trailing slashes.  Now, this code skips past them, effectively
82192         ignoring them.
82193         [TEST_DIRNAME] (main): New unit tests.
82194
82195         * lib/memrchr.c: New file from GNU libc.
82196         Undef __memrchr, too.
82197         [!weak_alias]: Define __memrchr to memrchr.
82198         Guard weak_alias use with `#ifdef weak_alias'.
82199
82200 2000-10-21  Jim Meyering  <meyering@lucent.com>
82201
82202         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
82203         (dir_name): Use dir_name_r.
82204         * lib/dirname.h (dir_name_r): Declare it.
82205
82206 2000-10-17  Jim Meyering  <meyering@lucent.com>
82207
82208         * lib/quote.h (PARAMS): Define and use.
82209         Reported by Akim Demaille.
82210
82211         * lib/getopt.c: Update from libc.
82212
82213 2000-10-16  Jim Meyering  <meyering@lucent.com>
82214
82215         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
82216         setlocale.
82217         From Jan Fedak.
82218
82219 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
82220
82221         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
82222
82223 2000-09-25  Jim Meyering  <meyering@lucent.com>
82224
82225         * lib/md5.h (rol): Define (from GnuPG).
82226
82227         * lib/sha.c: Give credit (GnuPG) where due.
82228         (M): Use rol rather than open-coding it.
82229         Add a FIXME comment.
82230
82231 2000-09-21  Jim Meyering  <meyering@lucent.com>
82232
82233         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
82234         Reported by Michael Stone.
82235
82236 2000-09-20  Jim Meyering  <meyering@lucent.com>
82237
82238         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
82239         (noinst_HEADERS): Add sha.h.
82240         Based on code from Scott G. Miller and from GnuPG.
82241
82242 2000-09-18  Jim Meyering  <meyering@lucent.com>
82243
82244         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
82245         LIBS. Otherwise, everyone ends up linking with -lelf for some
82246         configurations.
82247         Reported by Mike Stone.
82248
82249 2000-09-15  Jim Meyering  <meyering@lucent.com>
82250
82251         * lib/regex.c: Update from libc.
82252
82253 2000-09-10  Jim Meyering  <meyering@lucent.com>
82254
82255         * lib/getopt.c (_getopt_internal): Update from glibc.
82256
82257 2000-09-09  Jim Meyering  <meyering@lucent.com>
82258
82259         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82260         think it should be used as a general replacement for isascii.
82261         * lib/fnmatch.c: Likewise.
82262         * lib/mbswidth.c: Likewise
82263         * lib/regex.c: Likewise.
82264
82265         Don't use atoi.
82266         * lib/userspec.c: Include sys/param.h and limits.h.
82267         Include xstrtol.h.
82268         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82269         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82270         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82271         UID, GID.  Check range.
82272
82273 2000-09-06  Jim Meyering  <meyering@lucent.com>
82274
82275         * lib/getopt.c (_getopt_internal): Update from glibc.
82276
82277 2000-08-30  Jim Meyering  <meyering@lucent.com>
82278
82279         * lib/strftime.c: Merge in changes from GNU libc.
82280
82281 2000-08-26  Jim Meyering  <meyering@lucent.com>
82282
82283         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82284         * m4/fpending.m4: New file.
82285
82286 2000-08-26  Jim Meyering  <meyering@lucent.com>
82287
82288         * lib/closeout.c: Include "__fpending.h".
82289         (close_stdout_status): Return right away if there's nothing to flush.
82290
82291         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82292         * lib/__fpending.c: New file.
82293         * lib/__fpending.h: New file.
82294
82295 2000-08-20  Jim Meyering  <meyering@lucent.com>
82296
82297         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82298         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82299         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82300
82301 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82302
82303         Improve fileutils installation on systems where running
82304         programs (like install) can't be unlinked.
82305         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82306         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82307
82308 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82309
82310         Standardize on "memory exhausted" instead of "Memory exhausted"
82311         or "virtual memory exhausted".
82312         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82313         "virtual memory exhausted".
82314         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82315         our own message.
82316         * lib/userspec.c (parse_user_spec): Likewise.
82317         * lib/bumpalloc.h: comment fix
82318         * lib/same.c, userspec.c: Include xalloc.h.
82319
82320         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82321         not char *const and pointing to a constant array.
82322         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82323         (xrealloc): Comment fix.
82324
82325         * lib/userspec.c (parse_user_spec):
82326         Don't translate a message until just before returning,
82327         to avoid unnecessary translation.
82328
82329 2000-08-07  Jim Meyering  <meyering@lucent.com>
82330
82331         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82332         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82333         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82334         getgroups.c, gethostname.c, getopt.h, group-member.c,
82335         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82336         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82337         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82338         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82339         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82340         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82341         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82342         yesno.c: Back out Copyright date changes for each file with no change
82343         this year.  This eases coordination with other programs using the same
82344         source code modules.  From Paul Eggert.
82345
82346 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82347
82348         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82349         not char, for compatibility with glibc 2.1.3 strftime.c.
82350
82351 2000-08-03  Greg McGary  <greg@mcgary.org>
82352
82353         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82354         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82355         (EXTEND_BUFFER): Use them.
82356
82357 2000-08-01  Jim Meyering  <meyering@lucent.com>
82358
82359         * lib/dirname.c (ISSLASH): Define.
82360         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82361         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82362         both `\' and `/' may be use as path separators.
82363         Based on a patch from Prashant TR.
82364
82365 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82366
82367         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82368         slot vector a constant, since it might get modified.
82369
82370 2000-07-31  Jim Meyering  <meyering@lucent.com>
82371
82372         * lib/xmalloc.c: Use `virtual memory exhausted', not
82373         `Memory exhausted'.
82374         * lib/obstack.c (print_and_abort): Likewise.
82375
82376 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82377
82378         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82379         buffer, so that the caller can always quote one small
82380         component of a "memory exhausted" message in slot 0.
82381         From a suggestion by Jim Meyering.
82382
82383 2000-07-30  Jim Meyering  <meyering@lucent.com>
82384
82385         * lib/makepath.c (make_path): Quote the other instance, too.
82386
82387         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82388         (STATIC_BUF_SIZE): Define.
82389         (quotearg_n_options): Use only statically allocated storage when
82390         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82391         than STATIC_BUF_SIZE.
82392
82393 2000-07-29  Jim Meyering  <meyering@lucent.com>
82394
82395         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82396         * lib/dirname.c (dir_name): Likewise.
82397
82398         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82399         `/'.
82400
82401         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82402         (dir_name): Assert that there are no trailing slashes.
82403
82404 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82405
82406         * lib/mbswidth.h (mbswidth): Add a flags argument.
82407         (mbswidth): New declaration.
82408         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82409         * lib/mbswidth.c (mbswidth): Add a flags argument.
82410         (mbsnwidth): New function.
82411
82412 2000-07-24  Jim Meyering  <meyering@lucent.com>
82413
82414         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82415
82416 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82417
82418         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82419
82420 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82421
82422         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82423         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82424         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82425         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82426         invoke multibyte primitives.
82427
82428 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82429
82430         * lib/quotearg.c:
82431         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82432         so that mbstate_t is always defined.
82433
82434         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82435         be 1 in at least one GCC installation, and this configuration
82436         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82437         performance on hosts that have mbrtowc but have only unibyte
82438         locales, but I assume these hosts are rare.
82439
82440 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82441
82442         * lib/mbswidth.c (_XOPEN_SOURCE):
82443         Don't define; this causes problems on Solaris 7.
82444         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82445
82446 2000-07-23  Jim Meyering  <meyering@lucent.com>
82447
82448         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82449         too: getgrgid, getpwuid, getuid.
82450
82451 2000-07-23  Jim Meyering  <meyering@lucent.com>
82452
82453         * lib/basename.c (base_name): Add an assertion.
82454
82455 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82456
82457         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82458         shadow its mbsinit function.
82459
82460 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82461
82462         * lib/mbswidth.h: New file.
82463         * lib/mbswidth.c: New file.
82464         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82465         (noinst_HEADERS): Add mbswidth.h.
82466
82467 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82468
82469         * lib/config.charset: Add support for FreeBSD. Improve support for
82470         HP-UX and IRIX 6.
82471
82472 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
82473
82474         * m4/mbswidth.m4: New file.
82475         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
82476
82477 2000-07-15  Jim Meyering  <meyering@lucent.com>
82478
82479         * lib/makepath.c: Include quote.h.
82480         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
82481         corresponding argument in a `quote (...)' call.
82482         Give better diagnostics.
82483
82484         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
82485         (noinst_HEADERS): Add quote.h.
82486
82487         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
82488         from tar's src/misc.c.
82489         * lib/quote.h: New file.  Prototypes for same.
82490
82491 2000-07-14  Paul Eggert  <eggert@twinsun.com>
82492
82493         From a suggestion by Bruno Haible.
82494         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
82495         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
82496         to decide whether to define the BeOS workaround macro;
82497         this adjusts to the change to AC_MBSTATE_T.
82498
82499 2000-07-14  Jim Meyering  <meyering@lucent.com>
82500
82501         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
82502         jm_AC_TYPE_UINTMAX_T.
82503
82504 2000-07-13  Paul Eggert  <eggert@twinsun.com>
82505
82506         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
82507
82508         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
82509         quotearg_buffer_restyled): Add support for
82510         clocale_quoting_style.  Undo previous change to
82511         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
82512         and "{RIGHT QUOTATION MARK}" msgids.
82513
82514 2000-07-10  Paul Eggert  <eggert@twinsun.com>
82515
82516         From a suggestion by Bruno Haible.
82517         * m4/mbstate_t.m4 (AC_MBSTATE_T):
82518         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
82519         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
82520         and mbstate_t, to a single-part test that simply defines mbstate_t.
82521         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
82522         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
82523
82524 2000-07-10  Jim Meyering  <meyering@lucent.com>
82525
82526         * m4/strerror_r.m4: Mirror the correction made in autoconf.
82527
82528         * m4/gnu-source.m4: Output to confdefs.h directly.
82529         Suggestion from Akim Demaille.
82530
82531 2000-07-09  Paul Eggert  <eggert@twinsun.com>
82532
82533         The old behavior of quoting `like this' doesn't look good with
82534         newer, ISO-style fonts.  See:
82535         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
82536
82537         Instead, quote "like this" by default.  Let the translator
82538         tailor the locale-specific quoting behavior by providing
82539         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
82540
82541         * lib/quotearg.c (N_): New macro.
82542         (gettext_default): New function.
82543         (quotearg_buffer_restyled): Use
82544         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
82545         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
82546
82547 2000-07-09  Jim Meyering  <meyering@lucent.com>
82548
82549         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
82550         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
82551
82552         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
82553         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
82554
82555 2000-07-09  Jim Meyering  <meyering@lucent.com>
82556
82557         * lib/Most files: Update copyright dates to include 2000.
82558
82559 2000-07-08  Jim Meyering  <meyering@lucent.com>
82560
82561         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82562         if not defined.
82563         (xgethostname): Remove now-unnecessary #ifdef.
82564         Move declaration of `err' into loop where it's used.
82565
82566 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82567         and Bruno Haible  <haible@clisp.cons.org>
82568
82569         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82570         only if the test for an object-type mbstate_t fails.  This
82571         prevents us from mistakenly reporting that mbstate_t is a
82572         system object type after we "#define mbstate_t int" to work
82573         around its lack.
82574
82575 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82576         and Bruno Haible  <haible@clisp.cons.org>
82577
82578         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82579
82580 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82581
82582         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82583         to strerror_r.
82584         Include <ctype.h> for use of isalpha.
82585
82586 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82587
82588         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82589         by allocating a larger buffer. Test the gethostname return value for
82590         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82591         returns an error and ENAMETOOLONG isn't defined.
82592
82593 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82594
82595         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82596         dimension.
82597
82598 2000-07-04  Jim Meyering  <meyering@lucent.com>
82599
82600         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82601         of the deprecated AC_CHECKING.
82602
82603 2000-07-04  Jim Meyering  <meyering@lucent.com>
82604
82605         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82606         Reported by Bruno Haible.
82607
82608 2000-07-04  Jim Meyering  <meyering@lucent.com>
82609
82610         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82611         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82612         lacks mbrtowc.
82613
82614 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82615
82616         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82617         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82618
82619 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82620         and Bruno Haible  <haible@clisp.cons.org>
82621
82622         * lib/quotearg.c (mbrtowc):
82623         Assign to *pwc, and return 1 only if result is nonzero.
82624         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82625
82626 2000-07-03  Jim Meyering  <meyering@lucent.com>
82627
82628         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82629
82630 2000-07-03  Jim Meyering  <meyering@lucent.com>
82631
82632         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82633         This is necessary to get a definition of e.g., UTMP_FILE on
82634         HP-UX 10.20.
82635         From Bob Proulx.
82636
82637 2000-07-02  Jim Meyering  <meyering@lucent.com>
82638
82639         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
82640
82641         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
82642         AC_LIBOBJ(function_name).
82643         * m4/chown.m4: Likewise.
82644         * m4/fnmatch.m4: Likewise.
82645         * m4/ftruncate.m4: Likewise.
82646         * m4/getgroups.m4: Likewise.
82647         * m4/getline.m4: Likewise.
82648         * m4/group-member.m4: Likewise.
82649         * m4/jm-macros.m4: Likewise.
82650         * m4/lstat.m4: Likewise.
82651         * m4/malloc.m4: Likewise.
82652         * m4/memcmp.m4: Likewise.
82653         * m4/nanosleep.m4: Likewise.
82654         * m4/putenv.m4: Likewise.
82655         * m4/realloc.m4: Likewise.
82656         * m4/regex.m4: Likewise.
82657         * m4/stat.m4: Likewise.
82658         * m4/strftime.m4: Likewise.
82659
82660 2000-07-02  Jim Meyering  <meyering@lucent.com>
82661
82662         * lib/quotearg.c (mbstate_t): Don't define here.
82663
82664 2000-07-02  Jim Meyering  <meyering@lucent.com>
82665
82666         * lib/nanosleep.c (SIGCONT): Define if not already defined.
82667
82668 2000-07-01  Jim Meyering  <meyering@lucent.com>
82669
82670         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
82671
82672 2000-07-01  Jim Meyering  <meyering@lucent.com>
82673
82674         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
82675         problem.
82676
82677 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82678
82679         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
82680         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
82681
82682 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82683
82684         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
82685         per change in ../m4/ls-mntd-fs.m4.
82686         (read_filesystem_list): Ignore symbolic links.
82687
82688 2000-06-29  Jim Meyering  <meyering@lucent.com>
82689
82690         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
82691         for declaration of strcmp.
82692
82693         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
82694
82695         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
82696         Avoid warning by casting result to `char *' to remove `const'.
82697
82698 2000-06-28  Jim Meyering  <meyering@lucent.com>
82699
82700         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
82701         included by quotearg.c, for which we perform this test.  From
82702         Bruno Haible.
82703
82704 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82705
82706         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
82707         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
82708         <utmpx.h> exists, put readutmp.o into LIBOBJS.
82709
82710 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82711
82712         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
82713
82714 2000-06-26  Paul Eggert  <eggert@twinsun.com>
82715
82716         savedir now sets errno on failure and invokes xmalloc to get memory.
82717         Fix a couple of other minor bugs while we're at it.
82718
82719         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
82720         (NAMLEN): Remove macro.
82721         (malloc, realloc): Remove decls.
82722         (stpcpy): Likewise.
82723         ("xalloc.h"): Include.
82724         (NAME_SIZE_DEFAULT): New macro.
82725         (savedir): Use xmalloc / xrealloc to allocate memory.
82726         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
82727         Skip "" directory entries.
82728         Use strlen to calculate directory entry length, since the old method
82729         is rarely used these days and isn't worth supporting.
82730         Don't use a pointer after freeing it.
82731         Check for integer overflow when calculating allocation size.
82732         Use memcpy to copy entries, instead of stpcpy.
82733         Set errno properly when returning NULL.
82734         Check for readdir error.
82735
82736 2000-06-26  Jim Meyering  <meyering@lucent.com>
82737
82738         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
82739
82740 2000-06-25  Jim Meyering  <meyering@lucent.com>
82741
82742         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
82743         Linux header bug when _XOPEN_SOURCE is defined to 500.
82744
82745 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82746
82747         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
82748         deficiency.
82749
82750 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82751
82752         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
82753         Include xalloc.h.
82754         Don't include <stdlib.h>.  Don't declare malloc, realloc.
82755
82756 2000-06-24  Jim Meyering  <meyering@lucent.com>
82757
82758         * m4/strerror_r.m4: Revive this file -- to try out an experimental
82759         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
82760         for which strerror does return char*, but which lacks a conveniently
82761         accessible declaration of the function.  If the compile-test says
82762         strerror_r doesn't work, then resort to a `run'-test that works on
82763         BeOS and segfaults on DEC Unix.
82764
82765 2000-06-24  Jim Meyering  <meyering@lucent.com>
82766
82767         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
82768
82769 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82770
82771         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
82772         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
82773
82774 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82775
82776         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
82777         (mbrtowc, mbstate_t): Define substitutes if
82778         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
82779         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
82780         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
82781
82782 2000-06-23  Jim Meyering  <meyering@lucent.com>
82783
82784         * m4/afs.m4: Add missing AC_MSG_RESULT.
82785         Reported by Bruno Haible.
82786
82787         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
82788         Suggestion from Bruno Haible.
82789
82790 2000-06-23  Jim Meyering  <meyering@lucent.com>
82791
82792         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
82793
82794 2000-06-21  Jim Meyering  <meyering@lucent.com>
82795
82796         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
82797
82798 2000-06-21  Jim Meyering  <meyering@lucent.com>
82799
82800         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
82801         (noinst_HEADERS): Add getstr.h.
82802
82803         * lib/getline.c (getstr): Move into a separate file.
82804         * lib/getstr.c (getstr): New file, extracted from getline.c, with
82805         the following changes: new parameter, delim2; both delim[12]
82806         parameters have type `int', not `char'.  The latter would lose
82807         with 8-bit delimiters.
82808         * lib/getstr.h: New file.
82809
82810 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82811
82812         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
82813         than 1024, return a memory chunk of least possible size, instead
82814         of size PATH_MAX + 2. In the loop, increment the size proportionally.
82815         Use free/xmalloc instead of xrealloc to avoid copying for very long
82816         paths.
82817
82818 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82819
82820         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
82821         the empty string.
82822
82823 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82824
82825         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
82826         address, not strdup.  Include <stdlib.h> and don't declare free().
82827
82828 2000-06-19  Jim Meyering  <meyering@lucent.com>
82829
82830         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
82831
82832 2000-06-18  Jim Meyering  <meyering@lucent.com>
82833
82834         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
82835
82836         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
82837         `checking whether...' message to be consistent with that of the
82838         lstat test.
82839
82840 2000-06-18  Jim Meyering  <meyering@lucent.com>
82841
82842         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
82843         Besides, these days every porting target provides a mkdir function.
82844
82845         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
82846         needed. (this snippet comes from src/system.h).
82847
82848 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
82849
82850         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
82851
82852 2000-06-15  Paul Eggert  <eggert@twinsun.com>
82853
82854         * lib/human.c (adjust_value): New function.
82855         (human_readable_inexact): Apply rounding style even when
82856         printing approximate values.
82857
82858 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82859
82860         * lib/human.c (human_readable_inexact): Allow an input block
82861         size that is not a multiple of the output block size, and vice versa.
82862         Reported by Piergiorgio Sartor.
82863
82864 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82865
82866         * lib/getdate.y (get_date): Apply relative times after time
82867         zone indicator, not before.  Reported by Todd A. Jacobs.
82868
82869 2000-06-13  Jim Meyering  <meyering@lucent.com>
82870
82871         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
82872
82873         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
82874
82875 2000-06-12  Paul Eggert  <eggert@twinsun.com>
82876
82877         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
82878
82879 2000-06-12  Jim Meyering  <meyering@lucent.com>
82880
82881         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
82882         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
82883         optional argument.
82884         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
82885         the optional argument, `lib'.
82886
82887 2000-06-08  Jim Meyering  <meyering@lucent.com>
82888
82889         * m4/largefile.m4: Remove file (now that it's part of autoconf).
82890
82891 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82892
82893         Rewrite largefile configuration so that we don't need to run
82894         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
82895         AC_CANONICAL_HOST in configure.in -- jmm]
82896
82897         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
82898         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
82899         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
82900         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
82901         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
82902         All uses changed.
82903         Instead of inspecting the output of getconf, try to compile the
82904         test program without and with the macro definition.
82905         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
82906         for getconf.  Instead, check for the needed flags by compiling
82907         test programs.
82908
82909 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82910
82911         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
82912
82913 2000-06-04  Jim Meyering  <meyering@lucent.com>
82914
82915         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
82916         SunOS 4.1.4 for which gid_t is an unsigned type.
82917
82918 2000-06-03  Jim Meyering  <meyering@lucent.com>
82919
82920         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
82921         now that autoconf requires that.
82922
82923         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
82924         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
82925         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
82926
82927 2000-06-03  Jim Meyering  <meyering@lucent.com>
82928
82929         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
82930
82931 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82932
82933         * m4/glibc21.m4: New file.
82934         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
82935
82936 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82937
82938         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
82939         newer, don't install charset.alias.
82940         * lib/config.charset: Change the Linux/glibc rules so they become empty
82941         on glibc-2.1 or newer.
82942
82943 2000-06-02  Jim Meyering  <meyering@lucent.com>
82944
82945         * lib/mountlist.c: Back out last change.  Instead, do this...
82946         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
82947         me_dummy member using the same `ignore'-testing code.
82948         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
82949         fs_type strings.
82950         From Mark D. Roth.
82951
82952 2000-05-29  Jim Meyering  <meyering@lucent.com>
82953
82954         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
82955         mounts with the `ignore' attribute.  Based on a patch from
82956         Mark D. Roth.
82957
82958 2000-05-28  Jim Meyering  <meyering@lucent.com>
82959
82960         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
82961         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82962         * m4/stat.m4: Likewise.
82963         * m4/lstat.m4: Likewise.
82964         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
82965
82966         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
82967         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
82968
82969 2000-05-26  Jim Meyering  <meyering@lucent.com>
82970
82971         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
82972
82973 2000-05-24  Jim Meyering  <meyering@lucent.com>
82974
82975         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
82976         autoconf requires that.
82977         * m4/lib-check.m4: Likewise.
82978         * m4/jm-macros.m4: Likewise.
82979         * m4/strftime.m4: Likewise.
82980
82981         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
82982         AC_CHECK_DECLS, now that autoconf requires that.
82983
82984 2000-05-22  Jim Meyering  <meyering@lucent.com>
82985
82986         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82987         * m4/lstat.m4: Likewise.
82988
82989 2000-05-22  Jim Meyering  <meyering@lucent.com>
82990
82991         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
82992
82993 2000-05-20  Jim Meyering  <meyering@lucent.com>
82994
82995         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
82996         (jm_PREREQ): Use it.
82997
82998 2000-05-18  Jim Meyering  <meyering@lucent.com>
82999
83000         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
83001         back, too, since it may have been modified by allocate_entry.
83002         (hash_delete): Rewrite to use neither the assignment operator
83003         nor the comma operator in an if-expression.
83004
83005 2000-05-15  Paul Eggert  <eggert@twinsun.com>
83006
83007         * lib/closeout.c:
83008         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
83009         Remove; no longer needed.
83010         "quotearg.h": Add include.
83011         (file_name): Do not bother to explicitly initialize to NULL; it's less
83012         efficient on some hosts.
83013         (close_stdout_status): Remove test as to whether stdout was already
83014         closed; it breaks for the case "echo x | sort >&-".
83015         Quote file name colons.
83016         Do not assume that _("write error") lacks format strings.
83017
83018 2000-05-15  Jim Meyering  <meyering@lucent.com>
83019
83020         * lib/version-etc.c (version_etc_copyright): Update the copyright
83021         string used in all --version output.
83022
83023 2000-05-14  Jim Meyering  <meyering@lucent.com>
83024
83025         * lib/closeout.c (close_stdout_set_file_name): New function.
83026         (close_stdout_status): Use new file-scoped global.
83027         Return right away if fstat says the stdout file descriptor is invalid.
83028         * lib/closeout.h (close_stdout_set_file_name): Declare.
83029
83030 2000-05-10  Jim Meyering  <meyering@lucent.com>
83031
83032         * lib/closeout.c [default_exit_status]: New file-scoped variable.
83033         (close_stdout_set_status): New function.
83034         * lib/closeout.h (close_stdout_set_status): Declare.
83035
83036 2000-05-09  Jim Meyering  <meyering@lucent.com>
83037
83038         * m4/gettext.m4: Rename this...
83039         * m4/libintl.m4: ...to this.
83040
83041 2000-05-08  Jim Meyering  <meyering@lucent.com>
83042
83043         * lib/long-options.c: Don't include closeout.h.
83044         (parse_long_options): Don't call close_stdout for --version.
83045
83046 2000-05-06  Paul Eggert  <eggert@twinsun.com>
83047
83048         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
83049         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
83050         2.1.3 bug.  This avoids a clash when files like regex.c define
83051         _GNU_SOURCE.
83052
83053 2000-05-06  Jim Meyering  <meyering@lucent.com>
83054
83055         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
83056         (AC_REPLACE_FUNCS): Add strnlen.
83057
83058         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
83059         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
83060
83061         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
83062         AC_SEARCH_LIBS call for nanosleep.
83063         (LIB_NANOSLEEP): Set and AC_SUBST.
83064
83065 2000-05-06  Jim Meyering  <meyering@lucent.com>
83066
83067         * lib/strnlen.c: Undefine __strnlen and strnlen.
83068         [!weak_alias]: Define __strnlen to strnlen.
83069
83070         * lib/atexit.c: New file, from libiberty.
83071
83072 2000-05-06  Jim Meyering  <meyering@lucent.com>
83073
83074         * lib/closeout.c (close_stdout_status): Also check for errors on the
83075         stderr stream.
83076
83077 2000-05-05  Jim Meyering  <meyering@lucent.com>
83078
83079         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
83080         AC_SEARCH_LIBS call for clock_gettime.
83081         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
83082
83083         * m4/search-libs.m4: Update from autoconf.
83084
83085         su doesn't work on Solaris 2.6.
83086         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
83087         <shadow.h>.  Reported by Dragos Harabor.
83088
83089 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
83090
83091         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
83092         memcpy instead of xmalloc, xrealloc, path_concat.
83093         (locale_charset): Treat empty environment variables as absent.
83094         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
83095
83096 2000-05-04  Jim Meyering  <meyering@lucent.com>
83097
83098         * lib/getopt.c: Update from glibc.
83099         * lib/obstack.c: Likewise.
83100         * lib/obstack.h: Likewise.
83101         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
83102         file
83103
83104         * lib/regex.h: Likewise.
83105         * lib/strndup.c: Likewise.
83106         * lib/strnlen.c: New file, from glibc.
83107
83108 2000-05-03  Jim Meyering  <meyering@lucent.com>
83109
83110         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
83111
83112 2000-05-02  Paul Eggert  <eggert@twinsun.com>
83113
83114         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
83115         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
83116         compile-time test, rather than inspecting host and OS, to
83117         decide whether to define _LARGEFILE_SOURCE.
83118
83119 2000-05-01  Jim Meyering  <meyering@lucent.com>
83120
83121         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
83122
83123         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
83124         Based on a patch from Bruno Haible.
83125
83126 2000-05-01  Jim Meyering  <meyering@lucent.com>
83127
83128         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
83129
83130 2000-04-29  Jim Meyering  <meyering@lucent.com>
83131
83132         * lib/path-concat.c: Declare strdup only if it's not defined.
83133         * lib/canon-host.c: Likewise.
83134
83135 2000-04-28  Jim Meyering  <meyering@lucent.com>
83136
83137         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
83138         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
83139         is included first, then limits.h is included by locale.h by libintl.h.
83140         From John David Anglin.
83141
83142 2000-04-25  Jim Meyering  <meyering@lucent.com>
83143
83144         * lib/makepath.c (S_IRWXUGO): Define.
83145         (make_path): Always perform explicit chmod if MODE specifies any
83146         of the `special' permission bits.  Prompted by a bug report against
83147         install from Mate Wierdl and Joost van Baal.
83148
83149 2000-04-18  Jim Meyering  <meyering@lucent.com>
83150
83151         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
83152         (jm_PREREQ): Use it.
83153
83154 2000-04-18  Jim Meyering  <meyering@lucent.com>
83155
83156         * lib/README: New file.
83157
83158         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
83159         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
83160
83161 2000-04-17  Jim Meyering  <meyering@lucent.com>
83162
83163         Get it right :-)
83164         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
83165         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
83166         Suggestion from Akim Demaille.
83167
83168 2000-04-17  Jim Meyering  <meyering@lucent.com>
83169
83170         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
83171         the definition of it to rpl_strftime also defined-away the system's
83172         declaration.
83173
83174 2000-04-15  Jim Meyering  <meyering@lucent.com>
83175
83176         Use `C' to denote so-called `contiguous' files, the same way
83177         that tar does.
83178         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
83179         (ftypelet): Use S_ISCTG.
83180         From Michael Deutschmann.
83181
83182 2000-04-14  Jim Meyering  <meyering@lucent.com>
83183
83184         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
83185         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
83186         clobbered.
83187
83188 2000-04-14  Jim Meyering  <meyering@lucent.com>
83189
83190         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
83191
83192 2000-04-13  Jim Meyering  <meyering@lucent.com>
83193
83194         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
83195         AH_VERBATIM to insert required #ifndef into config.h.in.
83196         Suggestion from Akim Demaille.
83197
83198 2000-04-12  Jim Meyering  <meyering@lucent.com>
83199
83200         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
83201         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
83202         Christian Krackowizer.
83203
83204         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
83205         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
83206         (AC_SYS_LARGEFILE): Require.
83207         (AM_C_PROTOTYPES): Require.
83208
83209 2000-04-08  Jim Meyering  <meyering@lucent.com>
83210
83211         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
83212         names don't conflict.  Reported by Eli Zaretskii.
83213
83214 2000-04-07  Jim Meyering  <meyering@lucent.com>
83215
83216         * lib/putenv.c: Move inclusion of errno.h so it follows that of
83217         sys/types.h, to work around system header problems on AIX 3.2.5.
83218         From Bruno Haible.
83219
83220 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
83221
83222         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
83223         bug.  Deal with the different error behavior of Irix iconv.
83224
83225 2000-04-05  Paul Eggert  <eggert@twinsun.com>
83226
83227         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
83228         IRIX if the installer said otherwise.
83229
83230 2000-04-05  Jim Meyering  <meyering@lucent.com>
83231
83232         Portability tweaks required for ultrix4.3.
83233         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
83234         (jm_CHECK_DECLS): Add getutent to the list of functions.
83235         (_jm_DECL_HEADERS): Add utmpx.h.
83236         From John David Anglin.
83237
83238         * m4/strftime.m4: Back out the 2000-04-02 change.
83239         Instead of that change, simply undefine putenv in the test program.
83240
83241 2000-04-05  Jim Meyering  <meyering@lucent.com>
83242
83243         Portability tweaks required for ultrix4.3.
83244         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
83245         getutent.
83246         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
83247         * lib/canon-host.c: Declare strdup.
83248         * lib/path-concat.c: Likewise.
83249         From John David Anglin.
83250
83251 2000-04-04  Jim Meyering  <meyering@lucent.com>
83252
83253         Be more DOS 8.3-friendly.
83254         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83255         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83256         * lib/Makefile.am: Reflect renaming.
83257         Reported by Eli Zaretskii.
83258
83259         Use a temporary file name that won't clash with `charset.alias'
83260         in the DOS 8.3 name space.
83261         * lib/Makefile.am (charset_tmp): Define.
83262         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83263         (uninstall-local): Likewise.
83264         Reported by Eli Zaretskii.
83265
83266 2000-04-03  Jim Meyering  <meyering@lucent.com>
83267
83268         * m4/gettext.m4: Fix typo in comment.
83269
83270         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83271         textutils/configure.in).  Suggestion from Paul Eggert.
83272         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83273
83274 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83275
83276         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83277         variable in the shell rather than using putenv, which isn't
83278         portable.  This avoids the configure-time inter-test dependency
83279         on the potentially-renamed putenv function.
83280
83281 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83282
83283         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83284         before checking struct stat.st_blksize, so that
83285         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83286
83287 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83288
83289         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83290         since strftime.c uses HAVE_STRFTIME to decide whether to use
83291         the underlying strftime.
83292
83293 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83294
83295         * lib/time/strftime.c (my_strftime): Make sure we call the system
83296         strftime, not ourselves, when invoking the underlying strftime.
83297
83298 2000-03-24  Jim Meyering  <meyering@lucent.com>
83299
83300         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83301         (charset_alias): Define.
83302         (install-exec-local): Factor out common code.
83303         (uninstall-local): Split lines longer than 80.
83304         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83305         (SUFFIXES): Define.
83306         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83307         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83308
83309 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83310
83311         * lib/config.charset: Output a line containing "Packages using this
83312         file".
83313         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83314         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83315         ref-del.sed): New rules.
83316
83317 2000-03-17  Jim Meyering  <meyering@lucent.com>
83318
83319         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83320         Otherwise, include <strings.h>
83321
83322 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83323
83324         * lib/unicodeio.c (utf8_wctomb): New function.
83325         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83326         format instead of in UCS-4 with platform dependent endianness.
83327
83328 2000-03-10  Jim Meyering  <meyering@lucent.com>
83329
83330         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83331         From Marco Franzen.
83332
83333 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83334
83335         * lib/savedir.c (savedir): Work even if directory size is
83336         negative; this can happen with some screwy NFS configurations.
83337
83338 2000-03-06  Jim Meyering  <meyering@lucent.com>
83339
83340         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83341         if it's NULL (because we ran out of memory).  From Bruno Haible.
83342
83343 2000-03-05  Jim Meyering  <meyering@lucent.com>
83344
83345         * lib/localcharset.c ("path-concat.h"): Include.
83346         (get_charset_aliases): Use path_concat instead of ANSI string
83347         concatenation.
83348
83349         * lib/unicodeio.h (PARAMS): Define.
83350         Use it to guard prototype.
83351
83352 2000-03-04  Jim Meyering  <meyering@lucent.com>
83353
83354         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83355         for lib/localcharset.c.
83356
83357 2000-03-04  Jim Meyering  <meyering@lucent.com>
83358
83359         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83360         installing into it.
83361         (uninstall-local): Uncomment this rule so `make distcheck' works
83362         once again.
83363
83364         * lib/unicodeio.c (<errno.h>): Include it.
83365         (errno): Declare if not defined.
83366
83367         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83368
83369         * lib/config.charset: New version, incorporating remarks from a linux
83370         i18n mailing list.  From Bruno Haible.
83371
83372 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83373
83374         * m4/codeset.m4: New file.
83375         * m4/iconv.m4: New file.
83376         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83377
83378 2000-03-03  Jim Meyering  <meyering@lucent.com>
83379
83380         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83381
83382 2000-03-02  Jim Meyering  <meyering@lucent.com>
83383
83384         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83385         the messages come out on separate lines.
83386
83387         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83388         rather than jm_CHECK_DECLARATIONS.
83389         * m4/decl.m4: Remove now-unused file.
83390
83391         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83392         geteuid.
83393
83394 2000-03-02  Jim Meyering  <meyering@lucent.com>
83395
83396         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83397
83398 2000-03-01  Jim Meyering  <meyering@lucent.com>
83399
83400         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83401         * lib/unicodeio.c: Likewise.
83402
83403 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83404
83405         * lib/config.charset: New file.
83406         * lib/localcharset.c: New file.
83407         * lib/unicodeio.h, lib/unicodeio.c: New files.
83408         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83409         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83410         (noinst_HEADERS): Add unicodeio.h.
83411         (all-local, install-exec-local, charset.alias): New targets.
83412
83413 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83414
83415         * lib/quotearg.c (ALERT_CHAR): New macro.
83416         (quotearg_buffer_restyled): Use it.
83417
83418 2000-02-27  Jim Meyering  <meyering@lucent.com>
83419
83420         * m4/check-decl.m4: Add getenv to the list.
83421
83422 2000-02-27  Jim Meyering  <meyering@lucent.com>
83423
83424         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83425         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83426
83427         * lib/backupfile.c: Guard inclusion of stdlib.h with
83428         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83429         Declare malloc if needed.
83430
83431         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83432         `#ifndef HAVE_DECL..'
83433         now that autoconf always defines the HAVE_DECL_ symbols.
83434         * lib/human.c: Likewise.
83435         * lib/same.c: Likewise.
83436         * lib/strtoumax.c: Likewise.
83437
83438         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83439         declaration check was not run.
83440         * lib/hash.c: Likewise.
83441         * lib/human.c: Likewise.
83442         * lib/same.c: Likewise.
83443         * lib/strtoumax.c: Likewise.
83444
83445         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83446         `.', then first look up the entire `.'-containing string as a login
83447         name.
83448
83449 2000-02-23  Jim Meyering  <meyering@lucent.com>
83450
83451         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83452         in place of my hack.
83453
83454 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83455
83456         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83457         (textint): New typedef.
83458         (parser_control): Member year changed from int to textint.
83459         All uses changed.
83460         (YYSTYPE): Removed; replaced by %union with int and textint members.
83461         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83462         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83463         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83464         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83465         (date, number, to_year): Use width of number in digits, not its value,
83466         to determine whether it's a 2-digit year, or a 2-digit time.
83467         (yylex): Store number of digits of numeric tokens.
83468         Reported by John Kendall.
83469
83470         (parser_control): Changed from struct parser_control to typedef (for
83471         consistency).  All uses changed.
83472
83473         (tID): Removed; not used.
83474         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
83475
83476 2000-02-14  Paul Eggert  <eggert@twinsun.com>
83477
83478         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
83479         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
83480
83481 2000-02-12  Jim Meyering  <meyering@lucent.com>
83482
83483         * lib/userspec.c (ISDIGIT): Define it.
83484         (isdigit): Remove definition.
83485         (is_number): Use ISDIGIT, not isdigit.
83486         <libintl.h>: Include.
83487         (_ and N_): Define.
83488         (parse_user_spec): Mark translatable strings.
83489
83490 2000-02-10  Jim Meyering  <meyering@lucent.com>
83491
83492         With these changes, nanosleep.[ch] are finally enough like the other
83493         lib/* replacement files to compile on a few more losing systems.
83494
83495         * lib/nanosleep.h: Don't include config.h.
83496         Remove prototype from declaration of nanosleep.
83497         (PARAMS): Remove now-unneeded definition.
83498         * lib/nanosleep.c: #undef nanosleep.
83499         (rpl_nanosleep): Rename from nanosleep.
83500
83501 2000-02-10  Jim Meyering  <meyering@lucent.com>
83502
83503         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
83504         gnu_nanosleep to rpl_nanosleep.
83505
83506 2000-02-09  Jim Meyering  <meyering@lucent.com>
83507
83508         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
83509         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
83510
83511 2000-02-08  Akim Demaille  <akim@epita.fr>
83512
83513         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
83514         `[' and `]' and remove uses of `changequote'.
83515         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
83516         (AC_SYS_LARGEFILE): Likewise.
83517         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83518         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
83519         of changequote.
83520         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
83521         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
83522         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
83523         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
83524
83525 2000-02-05  Jim Meyering  <meyering@lucent.com>
83526
83527         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
83528         Remove explicit use of AC_HEADER_TIME.  It is required by
83529         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
83530         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
83531         in autoconf whereby the expansion of the latter ended up preceding
83532         the expansion of its prerequisite, AC_HEADER_TIME.
83533         Reported by Volker Borchert.
83534
83535 2000-02-03  Jim Meyering  <meyering@lucent.com>
83536
83537         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
83538
83539 2000-02-03  Jim Meyering  <meyering@lucent.com>
83540
83541         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
83542         rather than with `#if HAVE_UTMPNAME'.
83543
83544 2000-02-02  Jim Meyering  <meyering@lucent.com>
83545
83546         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
83547         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
83548         Reported by Eli Zaretskii.
83549
83550 2000-02-01  Jim Meyering  <meyering@lucent.com>
83551
83552         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
83553
83554 2000-01-31  Jim Meyering  <meyering@lucent.com>
83555
83556         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
83557         functions.  Add the time.h and sys/time.h headers along with the
83558         AC_REQUIRE'ment of AC_HEADER_TIME.
83559
83560 2000-01-31  Jim Meyering  <meyering@lucent.com>
83561
83562         * lib/nanosleep.h (nanosleep): Guard declaration with
83563         `#if ! HAVE_DECL_NANOSLEEP'.
83564         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83565         the declaration in that vendor's sys/timers.h.
83566         Reported by Christian Krackowizer.
83567
83568         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83569         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83570         (ISPRINT): Likewise.
83571         Reported by Tom Tromey.
83572
83573 2000-01-30  Jim Meyering  <meyering@lucent.com>
83574
83575         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83576
83577         * m4/prereq.m4 (utmp_includes): Define.
83578         Check for ut_user and ut_name members in both struct utmpx
83579         and struct utmp.
83580
83581 2000-01-30  Jim Meyering  <meyering@lucent.com>
83582
83583         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83584         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83585         header files where only utmpx.ut_user is declared.
83586
83587         * lib/readutmp.h (UT_USER): Define.
83588
83589 2000-01-29  Jim Meyering  <meyering@lucent.com>
83590
83591         * m4/lib-check.m4: New file containing library-related checks from
83592         fileutils and sh-utils (textutils had none).
83593
83594 2000-01-28  Jim Meyering  <meyering@lucent.com>
83595
83596         * m4/perl.m4: Change format of warning message to look more like that
83597         from the missing script.  Suggestion from François Pinard.
83598
83599 2000-01-25  Jim Meyering  <meyering@lucent.com>
83600
83601         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83602         well as time.h in the compile check.
83603         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83604         Fix typo in cross-compiling case: s/yes/no/.
83605
83606 2000-01-23  Jim Meyering  <meyering@lucent.com>
83607
83608         * m4/jm-macros.m4: Move df-related tests here from
83609         fileutils/configure.in
83610
83611         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83612         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83613
83614         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83615         s/space/ac_fsusage_space/.
83616         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83617
83618         * m4/ftruncate.m4: New file (derived from part of
83619         fileutils/configure.in).
83620         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83621         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83622
83623         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83624         AC_SUBST these here, rather than just in sh-util/configure.in, so
83625         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83626         all the same.
83627         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83628         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83629         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83630         (AC_SUBST(POW_LIBM)): Likewise.
83631         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83632
83633 2000-01-23  Jim Meyering  <meyering@lucent.com>
83634
83635         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
83636         obstack.c.
83637
83638 2000-01-22  Jim Meyering  <meyering@lucent.com>
83639
83640         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
83641
83642         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
83643
83644         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
83645         configure.in
83646         (AC_CHECK_HEADERS): Likewise for sh-utils.
83647         (AC_CHECK_HEADERS): Likewise for textutils.
83648         Merge the three lists of headers.
83649
83650         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
83651         from fileutils' configure.in.
83652
83653         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
83654         code. Moved tests into their own function (_jm_DECL_HEADERS) in
83655         check-decl.m4.
83656
83657         * m4/check-decl.m4: Use #if rather than #ifdef.
83658         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
83659         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
83660         (_jm_DECL_HEADERS): Define new function.
83661         (jm_CHECK_DECLARATIONS): Require it.
83662
83663 2000-01-22  Jim Meyering  <meyering@lucent.com>
83664
83665         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
83666         [! HAVE_DECL_STRTOULL]: Declare strtoull.
83667         Required for some AIX systems.  Reported by Christian Krackowizer.
83668         [TESTING] (main): New function.
83669
83670         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
83671         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
83672         letters.
83673
83674         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
83675         iswprint.
83676
83677         * lib/strverscmp.c (ISDIGIT): Define.
83678         (strverscmp): Use ISDIGIT, not isdigit.
83679
83680 2000-01-19  Jim Meyering  <meyering@lucent.com>
83681
83682         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
83683         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
83684         defines `struct timespec' in <sys/time.h>
83685
83686         * m4/c-bs-a.m4: Remove uses of changequote altogether.
83687         Thanks to Akim for explaining.
83688
83689 2000-01-17  Paul Eggert  <eggert@twinsun.com>
83690
83691         * lib/nanosleep.c (nanosleep):
83692         Don't use SA_INTERRUPT to decide whether to call sigaction, as
83693         POSIX.1 doesn't require SA_INTERRUPT and some systems
83694         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
83695         it's been part of POSIX.1 since day 1 (in 1988).
83696
83697 2000-01-17  Jim Meyering  <meyering@lucent.com>
83698
83699         * lib/interlock: Remove unused file.  Reported by François Pinard.
83700
83701 2000-01-16  Paul Eggert  <eggert@twinsun.com>
83702
83703         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
83704         alert, backslash, formfeed, and vertical tab unnecessarily in
83705         shell quoting style.
83706
83707 2000-01-16  Jim Meyering  <meyering@lucent.com>
83708
83709         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
83710         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
83711         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
83712         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
83713
83714 2000-01-16  Jim Meyering  <meyering@lucent.com>
83715
83716         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
83717         because the latter didn't work.
83718
83719 2000-01-15  Jim Meyering  <meyering@lucent.com>
83720
83721         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
83722         (AC_REPLACE_FUNCS): Add memcpy and memset.
83723         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
83724         Add strpbrk.
83725         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
83726
83727 2000-01-12  Jim Meyering  <meyering@lucent.com>
83728
83729         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
83730         (jm_PREREQ): Use it.
83731         (jm_PREREQ_READUTMP): New macro.
83732         (jm_PREREQ): Use it.
83733
83734 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83735
83736         Quote multibyte characters correctly.
83737         * m4/c-bs-a.m4: New file.
83738         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
83739         (jm_PREREQ): Use it.
83740
83741 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83742
83743         * m4/uintmax_t.m4: Port to autoconf 2.13.
83744
83745 2000-01-08  Jim Meyering  <meyering@ascend.com>
83746
83747         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
83748         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
83749
83750 2000-01-04  Jim Meyering  <meyering@ascend.com>
83751
83752         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
83753         jm_STRUCT_DIRENT_D_TYPE.
83754         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
83755         jm_STRUCT_DIRENT_D_INO.
83756         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
83757         jm_STRUCT_UTIMBUF.
83758         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
83759         renamings.
83760         * m4/utime.m4: Likewise.
83761
83762         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
83763         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
83764
83765 2000-01-03  Paul Eggert  <eggert@twinsun.com>
83766
83767         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
83768         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
83769
83770 2000-01-02  Jim Meyering  <meyering@ascend.com>
83771
83772         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
83773         remember if this is necessary.
83774
83775 1999-12-26  Jim Meyering  <meyering@ascend.com>
83776
83777         * m4/jm-macros.m4: Use it here.
83778         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
83779
83780 1999-12-23  Jim Meyering  <meyering@ascend.com>
83781
83782         * m4/jm-macros.m4: Check for clock_gettime (moved from
83783         fileutils/configure.in)
83784         Check for gettimeofday.
83785
83786 1999-12-20  Jim Meyering  <meyering@ascend.com>
83787
83788         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
83789         autoconf-2.14a-1999-12-20.
83790
83791 1999-12-19  Jim Meyering  <meyering@ascend.com>
83792
83793         * m4/lstat-slash.m4: New file.
83794         * m4/jm-macros.m4: Use the new macro:
83795         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83796
83797 1999-12-07  Jim Meyering  <meyering@ascend.com>
83798
83799         * m4/perl.m4: Require that File::Compare be available, too.
83800         Too many systems seem to lack it.
83801
83802         * m4/strftime.m4: Add checks for most of the cpp macros tested in
83803         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
83804
83805 1999-11-18  Paul Eggert  <eggert@twinsun.com>
83806
83807         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
83808         problem with the QNX 4.25 shell, which doesn't propagate exit
83809         status of failed commands inside shell assignments.
83810
83811 1999-11-17  Jim Meyering  <meyering@ascend.com>
83812
83813         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
83814
83815 1999-11-07  Jim Meyering  <meyering@ascend.com>
83816
83817         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
83818
83819 1999-11-06  Jim Meyering  <meyering@ascend.com>
83820
83821         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
83822         * m4/jm-macros.m4 (jm_MACROS): Use it here.
83823
83824 1999-11-05  Jim Meyering  <meyering@ascend.com>
83825
83826         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
83827         configure.in of textutils, fileutils, and sh-utils into this one
83828         (shared between those packages) file.
83829         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
83830         AC_STRUCT_ST_BLKSIZE.
83831
83832 1999-11-03  Jim Meyering  <meyering@ascend.com>
83833
83834         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
83835         of AC_CHECK_TYPE checks includes unistd.h.
83836         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
83837         Suggestion from Akim Demaille.
83838
83839 1999-10-30  Jim Meyering  <meyering@ascend.com>
83840
83841         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
83842         m4-quoted string.
83843         * m4/ls-mntd-fs.m4: Likewise.
83844         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
83845         * m4/jm-winsz1.m4: Likewise.
83846
83847         * m4/const.m4: Remove file, since the fix made it into the experimental
83848         version of autoconf.
83849         * m4/mktime.m4: Likewise.
83850
83851         * m4/check-type.m4: Remove file, now that the latest version of
83852         AC_CHECK_TYPE takes a third arg to specify additional #includes.
83853
83854         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
83855         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
83856         AC_CHECK_TYPE.
83857
83858 1999-10-04  Jim Meyering  <meyering@ascend.com>
83859
83860         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
83861
83862 1999-09-22  Paul Eggert  <eggert@twinsun.com>
83863
83864         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
83865         2.95.1 bug with HP-UX 10.20.
83866
83867 1999-09-17  Jim Meyering  <meyering@ascend.com>
83868
83869         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
83870         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
83871         due to missing strdup (against sh-utils-2.0).
83872
83873 1999-08-29  Jim Meyering  <meyering@ascend.com>
83874
83875         * m4/jm-macros.m4: Require jm_BISON.
83876         * m4/bison.m4: New file.
83877
83878 1999-08-17  Paul Eggert  <eggert@twinsun.com>
83879
83880         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
83881         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
83882
83883 1999-08-05  Jim Meyering  <meyering@ascend.com>
83884
83885         * m4/getline.m4: Rename test file from conftestdata to conftest.data
83886         to avoid conflicts with `conftest' on 8+3 filesystems.
83887         Suggestion from Eli Zaretskii.
83888
83889 1999-08-04  Jim Meyering  <meyering@ascend.com>
83890
83891         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
83892         fileutils and sh-utils (textutils's getline test was inadequate).
83893         (AM_FUNC_GETLINE): Run this test.
83894         (AC_CHECK_FUNCS): Check for getdelim.
83895         Reported by Bob Proulx.
83896
83897 1999-08-02  Jim Meyering  <meyering@ascend.com>
83898
83899         * m4/jm-macros.m4: Add a comment.
83900
83901 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83902
83903         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
83904         <inttypes.h> defines strtoumax as a macro (and not as a
83905         function).
83906
83907 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83908
83909         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
83910         that we can shift, multiply and divide unsigned long long
83911         values; Ultrix cc can't do it.
83912
83913 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83914
83915         * m4/mktime.m4: New file, which is a preview of what should appear
83916         in the next public autoconf release.
83917
83918 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83919
83920         * m4/lfs.m4: Remove this file.
83921         * m4/largefile.m4: New file.  It contains the old contents of
83922         lfs.m4, except that all names with prefix AC_LFS have been
83923         changed to use the prefix AC_SYS_LARGEFILE instead, to be
83924         compatible with future autoconf versions.  Also, some minor m4
83925         quoting problems have been fixed.
83926
83927 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83928
83929         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
83930         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
83931         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
83932         and simplify the shell code.
83933
83934 1999-08-01  Jim Meyering  <meyering@ascend.com>
83935
83936         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
83937         m4.
83938
83939 1999-07-20  Jim Meyering  <meyering@ascend.com>
83940
83941         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
83942
83943 1999-07-15  Jim Meyering  <meyering@ascend.com>
83944
83945         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
83946
83947 1999-05-22  Jim Meyering  <meyering@ascend.com>
83948
83949         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
83950
83951 1999-05-20  Jim Meyering  <meyering@ascend.com>
83952
83953         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
83954         Add a colon after each `then' in case $4 is empty.
83955
83956 1999-05-16  Jim Meyering  <meyering@ascend.com>
83957
83958         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
83959
83960 1999-05-10  Jim Meyering  <meyering@ascend.com>
83961
83962         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
83963
83964         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
83965         AC_FUNC_MKTIME.
83966
83967 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
83968
83969         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
83970
83971 1999-05-04  Paul Eggert  <eggert@twinsun.com>
83972
83973         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
83974         not CPPFLAGS, so that linking works correctly in IRIX.
83975
83976 1999-04-30  Paul Eggert  <eggert@twinsun.com>
83977
83978         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
83979
83980 1999-04-20  Paul Eggert  <eggert@twinsun.com>
83981
83982         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
83983         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
83984         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
83985         jm_AC_TYPE_UNSIGNED_LONG_LONG.
83986         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
83987
83988         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
83989
83990 1999-04-20  Jim Meyering  <meyering@ascend.com>
83991
83992         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
83993         AC_REPLACE xstroull if necessary.  From Paul Eggert.
83994         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
83995
83996 1999-04-18  Jim Meyering  <meyering@ascend.com>
83997
83998         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
83999         * m4/jm-macros.m4: Use it.
84000
84001 1999-04-06  Jim Meyering  <meyering@ascend.com>
84002
84003         * m4/strftime.m4: Remove test for %f.
84004
84005 1999-03-29  Jim Meyering  <meyering@ascend.com>
84006
84007         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
84008         superset of the AC_TYPE_* checks in the textutils, fileutils,
84009         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
84010         AC_TYPE_PID_T.
84011
84012 1999-03-28  Jim Meyering  <meyering@ascend.com>
84013
84014         * m4/jm-macros.m4: Define GNU_PACKAGE here.
84015         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
84016         replaced e.g., in the *.sh files of the sh-utils.
84017
84018 1999-03-20  Jim Meyering  <meyering@ascend.com>
84019
84020         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
84021         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
84022         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
84023
84024 1999-03-19  Jim Meyering  <meyering@ascend.com>
84025
84026         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
84027
84028 1999-03-12  Jim Meyering  <meyering@ascend.com>
84029
84030         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
84031
84032 1999-03-07  Jim Meyering  <meyering@ascend.com>
84033
84034         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
84035         declared.
84036
84037 1999-02-17  Jim Meyering  <meyering@ascend.com>
84038
84039         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
84040         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
84041
84042 1999-02-07  Jim Meyering  <meyering@ascend.com>
84043
84044         * m4/group-member.m4: New file -- extracted from sh-utils'
84045         configure.in.
84046
84047         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
84048         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
84049
84050 1999-02-06  Jim Meyering  <meyering@ascend.com>
84051
84052         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
84053         * m4/fnmatch.m4: Likewise.
84054         * m4/getgroups.m4: Likewise.
84055         * m4/lstat.m4: Likewise.
84056         * m4/malloc.m4: Likewise.
84057         * m4/putenv.m4: Likewise.
84058         * m4/realloc.m4: Likewise.
84059         * m4/regex.m4: Likewise.
84060         * m4/stat.m4: Likewise.
84061         * m4/strftime.m4: Likewise.
84062         Suggestion from Alain Magloire.
84063
84064         * m4/chown.m4: Use `.$ac_objext', not `.o'.
84065         * m4/fnmatch.m4: Likewise.
84066         * m4/getgroups.m4: Likewise.
84067         * m4/getline.m4: Likewise.
84068         * m4/lstat.m4: Likewise.
84069         * m4/malloc.m4: Likewise.
84070         * m4/memcmp.m4: Likewise.
84071         * m4/putenv.m4: Likewise.
84072         * m4/realloc.m4: Likewise.
84073         * m4/regex.m4: Likewise.
84074         * m4/stat.m4: Likewise.
84075         * m4/strftime.m4: Likewise.
84076         Suggestion from Alain Magloire.
84077
84078         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
84079         an argument.
84080
84081         * m4/regex.m4: Add a run-time Test for proper operation of
84082         re_compile_pattern.
84083
84084 1999-01-31  Jim Meyering  <meyering@ascend.com>
84085
84086         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
84087
84088 1999-01-30  Jim Meyering  <meyering@ascend.com>
84089
84090         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
84091
84092         * m4/jm-mktime.m4: Make this a wrapper around the official
84093         AM_FUNC_MKTIME rather than my private copy, now that the official one
84094         is up to date.
84095         * m4/mktime.m4: Remove file.
84096
84097         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
84098         * m4/uptime.m4: Likewise.
84099         * m4/uintmax_t.m4: Likewise.
84100
84101 1999-01-28  Jim Meyering  <meyering@ascend.com>
84102
84103         * m4/jm-macros.m4: Use jm_AFS.
84104         * m4/afs.m4: New file (from fileutils' configure.in).
84105
84106         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
84107         * m4/chown.m4: Likewise.
84108         * m4/d-ino.m4: Likewise.
84109         * m4/d-type.m4: Likewise.
84110         * m4/fnmatch.m4: Likewise.
84111         * m4/getgroups.m4: Likewise.
84112         * m4/gettext.m4: Likewise.
84113         * m4/jm-mktime.m4: Likewise.
84114         * m4/jm-winsz2.m4: Likewise.
84115         * m4/lcmessage.m4: Likewise.
84116         * m4/ls-mntd-fs.m4: Likewise.
84117         * m4/malloc.m4: Likewise.
84118         * m4/memcmp.m4: Likewise.
84119         * m4/putenv.m4: Likewise.
84120         * m4/realloc.m4: Likewise.
84121         * m4/st_mtim.m4: Likewise.
84122         * m4/strftime.m4: Likewise.
84123
84124 1999-01-16  Jim Meyering  <meyering@ascend.com>
84125
84126         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
84127         (ARGMATCH_DIE_DECL): Define.
84128
84129 1999-01-12  Jim Meyering  <meyering@ascend.com>
84130
84131         * m4/Makefile.am.in: Rewrite to avoid using fmt.
84132         Reported by Lars Hecking.
84133
84134 1999-01-10  Jim Meyering  <meyering@ascend.com>
84135
84136         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
84137         gross kludge.
84138         * m4/inttypes_h.m4: Likewise.
84139         * m4/lstat.m4: Likewise.
84140         * m4/malloc.m4: Likewise.
84141         * m4/readdir.m4: Likewise.
84142         * m4/realloc.m4: Likewise.
84143         * m4/st_dm_mode.m4: Likewise.
84144         * m4/stat.m4: Likewise.
84145         * m4/utimbuf.m4: Likewise.
84146         * m4/utimes.m4: Likewise.
84147
84148         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
84149         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
84150         comments in config.h.in are meaningful.
84151
84152         * m4/jm-macros.m4: Require autoconf-2.13 here.
84153
84154         * m4/regex.m4: By default, don't use the included regex.c on systems
84155         with glibc 2.  Suggestion from Uli Drepper.
84156
84157 1999-01-02  Jim Meyering  <meyering@ascend.com>
84158
84159         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
84160
84161 1998-12-18  Jim Meyering  <meyering@ascend.com>
84162
84163         * m4/Makefile.am.in (Makefile.am): Simplify rule.
84164         Based on a suggestion from Lars Hecking.
84165
84166 1998-11-16  Paul Eggert  <eggert@twinsun.com>
84167
84168         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
84169
84170 1998-11-16  Jim Meyering  <meyering@ascend.com>
84171
84172         * m4/lfs.m4: Double-quote the `uname...` expression.
84173
84174 1998-11-14  Jim Meyering  <meyering@ascend.com>
84175
84176         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
84177         * m4/stat.m4: Likewise.
84178
84179 1998-11-03  Jim Meyering  <meyering@ascend.com>
84180
84181         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
84182         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
84183
84184 1998-10-18  Jim Meyering  <meyering@ascend.com>
84185
84186         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
84187
84188 1998-10-17  Jim Meyering  <meyering@ascend.com>
84189
84190         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
84191         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
84192         calls for those previously hard-coded headers.  Instead, take a new
84193         parameter.
84194         (jm_CHECK_DECLARATIONS): Reflect interface change.
84195         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
84196         (jm_CHECK_DECL_LOCALTIME_R): New macro.
84197
84198         * m4/mktime.m4: Test for spring-forward gap before long-running test.
84199
84200 1998-10-14  Jim Meyering  <meyering@ascend.com>
84201
84202         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
84203         instead of "TZ=America/Vancouver".  From Paul Eggert.
84204
84205 1998-10-11  Jim Meyering  <meyering@ascend.com>
84206
84207         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
84208         This adds a test for a recently added compatibility fix for mktime.c.
84209         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
84210
84211 1998-09-27  Jim Meyering  <meyering@ascend.com>
84212
84213         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
84214
84215         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
84216         ../configure.in, including a change from Gordon Matzigkeit to allow
84217         cross-compiling for the Hurd.
84218
84219         * m4/glibc.m4: New file/macro to test for the GNU C Library
84220         versions 1 and 2.  From Gordon Matzigkeit.
84221         Indent.
84222
84223 1998-09-21  Jim Meyering  <meyering@ascend.com>
84224
84225         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
84226
84227 1998-08-18  Paul Eggert  <eggert@twinsun.com>
84228
84229         Port nanosecond-resolution times to UnixWare 2.1.2 and
84230         pedantic Solaris 2.6.
84231
84232         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
84233         AC_STRUCT_ST_MTIM.
84234         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
84235         Generate name of ns member, instead of just 1 or undef.
84236         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
84237
84238 1998-08-15  Jim Meyering  <meyering@ascend.com>
84239
84240         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
84241         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
84242         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
84243         instead of jm_TYPE_SSIZE_T.
84244
84245 1998-08-12  Jim Meyering  <meyering@ascend.com>
84246
84247         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
84248
84249 1998-08-02  Jim Meyering  <meyering@ascend.com>
84250
84251         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
84252         in acconfig.h manually.
84253
84254 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84255
84256         * m4/st_mtim.m4: New file.
84257
84258 1998-07-28  Jim Meyering  <meyering@ascend.com>
84259
84260         * m4/utimes.m4: Undef stat.
84261
84262 1998-07-25  Jim Meyering  <meyering@ascend.com>
84263
84264         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84265         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84266
84267 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84268
84269         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84270         uid and gid actually remain unchanged.
84271
84272 1998-07-07  Jim Meyering  <meyering@ascend.com>
84273
84274         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84275
84276 1998-07-04  Jim Meyering  <meyering@ascend.com>
84277
84278         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84279         to prove that this macro can be used in packages without regex.c.
84280
84281 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84282
84283         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84284         is to be used.
84285
84286 1998-07-03  Jim Meyering  <meyering@ascend.com>
84287
84288         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84289
84290         * m4/gettext.m4: New file -- from gettext-0.10.35.
84291         * m4/lcmessage.m4: Likewise.
84292         * m4/progtest.m4: Likewise.
84293
84294         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84295         * m4/jm-macros.m4: Require the new macro.
84296
84297 1998-06-29  Jim Meyering  <meyering@ascend.com>
84298
84299         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84300         for the definition of NGROUPS (used in a system header included
84301         by sys/mount.h).
84302
84303 1998-06-28  Jim Meyering  <meyering@ascend.com>
84304
84305         * m4/ls-mntd-fs.m4: New file.
84306         * m4/fstypename.m4: New file.
84307
84308         * m4/jm-macros.m4: Require the new macro.
84309         * m4/jm-glibc-io.m4: New file.
84310
84311 1998-05-19  Jim Meyering  <meyering@ascend.com>
84312
84313         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84314         * m4/lchown.m4: New file.
84315
84316         * m4/Makefile.am.in: New file.
84317         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84318
84319 1998-05-14  Jim Meyering  <meyering@ascend.com>
84320
84321         * m4/Makefile.am (EXTRA_DIST): Add them.
84322         * m4/jm-macros.m4: New file.
84323         * m4/utimbuf.m4: New file.
84324
84325 1998-05-12  Jim Meyering  <meyering@ascend.com>
84326
84327         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84328
84329 1998-05-11  Jim Meyering  <meyering@ascend.com>
84330
84331         * m4/isc-posix.m4: New file.
84332
84333 1998-05-10  Jim Meyering  <meyering@ascend.com>
84334
84335         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84336
84337 1998-05-09  Jim Meyering  <meyering@ascend.com>
84338
84339         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84340         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84341         with automake.
84342
84343         * m4/ssize_t.m4: New file.
84344         * m4/mktime.m4: Remove file -- the new automake has this now.
84345
84346 1998-04-26  Jim Meyering  <meyering@ascend.com>
84347
84348         * m4/assert.m4: New file.
84349         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84350
84351 1998-04-05  Jim Meyering  <meyering@ascend.com>
84352
84353         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84354         (jm_PREREQ): Use it here.
84355
84356 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84357
84358         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84359         in acconfig.h.
84360
84361 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84362
84363         * m4/prereq.m4: New file.
84364         * m4/error.m4: New file.
84365         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84366
84367 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84368
84369         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84370         cache-check for the same variable -- that defeated the purpose of
84371         the test; the test program was never run.  This was a problem only
84372         on systems with losing getline functions -- HP-UX 10.20 is one.
84373         Reported by Bjorn Helgaas.
84374
84375 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84376
84377         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84378
84379 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84380
84381         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84382
84383         * m4/const.m4: New file.  Use an initializer in this declaration
84384         typedef int charset[2]; const charset x;
84385         Reported by Bob Glickstein.
84386
84387 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84388
84389         * m4/chown.m4: Fix reversed types on -1 args to chown.
84390         From Kaveh Ghazi.
84391
84392 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84393
84394         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84395         Add lseek and memchr.
84396
84397         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84398         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84399         have a 20-character limit on names.
84400
84401 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84402
84403         * m4/inttypes_h.m4: New file.
84404         * m4/uintmax_t.m4: New file.
84405         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84406
84407
84408         -----
84409
84410         Local Variables:
84411         coding: utf-8
84412         End:
84413
84414         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84415
84416         Copying and distribution of this file, with or without
84417         modification, are permitted provided the copyright notice
84418         and this notice are preserved.