e72af4c8c524a468cf8bf9b58e0cf80eaaf9c30e
[pspp] / ChangeLog
1 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2
3         getopt-gnu: suppress core dumps from detection code
4         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5         to suppress core dumps that may well occur on glibc systems.
6         * modules/getopt-gnu: Depend on nocrash.
7
8 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
9
10         pthread_sigmask: ensure usleep is declared
11         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
12         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
13
14 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15
16         doc: Document NonStop portability issues.
17         * doc/posix-functions/sigaction.texi (sigaction):
18         * doc/posix-headers/signal.texi (signal.h):
19         Document NonStop.  See Joachim Schmitz in
20         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
21
22 2011-07-15  Bruno Haible  <bruno@clisp.org>
23
24         ffsl, ffsll: Avoid unportable behaviour.
25         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
26
27 2011-07-15  Bruno Haible  <bruno@clisp.org>
28
29         ffs: More tests.
30         * tests/test-ffs.c (NBITS): New macro.
31         (main): Add more tests.
32         * tests/test-ffsl.c (NBITS): New macro.
33         (main): Add more tests.
34         * tests/test-ffsll.c (NBITS): New macro.
35         (main): Add more tests.
36
37 2011-07-15  Eric Blake  <eblake@redhat.com>
38
39         ffsl, ffsll: new modules
40         * modules/ffsl: New file.
41         * modules/ffsll: Likewise.
42         * m4/ffsl.m4: Likewise.
43         * m4/ffsll.m4: Likewise.
44         * lib/ffsl.c: Likewise.
45         * lib/ffsl.h: Likewise.
46         * lib/ffsll.c: Likewise.
47         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
48         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
49         * modules/string (Makefile.am): Substitute witnesses.
50         * lib/strings.in.h (ffsl, ffsll): Declare.
51         * modules/ffsl-tests: New test file.
52         * modules/ffsll-tests: Likewise.
53         * tests/test-ffsl.c: Likewise.
54         * tests/test-ffsll.c: Likewise.
55         * MODULES.html.sh (Integer arithmetic functions): Mention it.
56         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
57         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
58
59         ffs: fix m4 prerequisite
60         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
61
62         ffs: avoid undefined behavior
63         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
64         * tests/test-ffs.c (naive, main): Avoid signed shifts.
65         Reported by Bruno Haible.
66
67 2011-07-12  Bruno Haible  <bruno@clisp.org>
68
69         pthread_sigmask: Rely on module 'threadlib'.
70         * modules/pthread_sigmask (Depends-on): Add threadlib.
71         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
72         is defined.
73
74 2011-07-12  Bruno Haible  <bruno@clisp.org>
75
76         regex: Depend on module 'strcase'.
77         * modules/regex (Depends-on): Add strcase, for strcasecmp().
78
79 2011-07-12  Jim Meyering  <meyering@redhat.com>
80
81         warn-on-use: fix typo in file name
82         * modules/snippet/warn-on-use (Files): Correct file name:
83         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
84
85 2011-07-12  Bruno Haible  <bruno@clisp.org>
86
87         strings: Document module.
88         * doc/posix-headers/strings.texi: Mention module 'strings'.
89
90 2011-07-12  Bruno Haible  <bruno@clisp.org>
91
92         Rename module '_Noreturn' to 'snippet/_Noreturn'.
93         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
94         (Files, Makefile.am): Update.
95         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
96         * modules/stdlib (Depends-on): Update.
97
98 2011-07-12  Bruno Haible  <bruno@clisp.org>
99
100         * NEWS: Mention the changes.
101
102         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
103         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
104         (Files, Makefile.am): Update.
105         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
106         * modules/arpa_inet (Depends-on): Update.
107         * modules/ctype (Depends-on): Update.
108         * modules/dirent (Depends-on): Update.
109         * modules/fcntl-h (Depends-on): Update.
110         * modules/glob (Depends-on): Update.
111         * modules/iconv-h (Depends-on): Update.
112         * modules/inttypes-incomplete (Depends-on): Update.
113         * modules/langinfo (Depends-on): Update.
114         * modules/locale (Depends-on): Update.
115         * modules/math (Depends-on): Update.
116         * modules/netdb (Depends-on): Update.
117         * modules/poll-h (Depends-on): Update.
118         * modules/pty (Depends-on): Update.
119         * modules/search (Depends-on): Update.
120         * modules/signal (Depends-on): Update.
121         * modules/spawn (Depends-on): Update.
122         * modules/stdio (Depends-on): Update.
123         * modules/stdlib (Depends-on): Update.
124         * modules/string (Depends-on): Update.
125         * modules/strings (Depends-on): Update.
126         * modules/sys_file (Depends-on): Update.
127         * modules/sys_ioctl (Depends-on): Update.
128         * modules/sys_select (Depends-on): Update.
129         * modules/sys_socket (Depends-on): Update.
130         * modules/sys_stat (Depends-on): Update.
131         * modules/sys_time (Depends-on): Update.
132         * modules/sys_times (Depends-on): Update.
133         * modules/sys_utsname (Depends-on): Update.
134         * modules/sys_wait (Depends-on): Update.
135         * modules/termios (Depends-on): Update.
136         * modules/time (Depends-on): Update.
137         * modules/unistd (Depends-on): Update.
138         * modules/wchar (Depends-on): Update.
139         * modules/wctype-h (Depends-on): Update.
140         * MODULES.html.sh (Support for building libraries and executables):
141         Update.
142
143         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
144         * modules/snippet/unused-parameter: Renamed from
145         modules/unused-parameter.
146         (Files, Makefile.am): Update.
147         * build-aux/snippet/unused-parameter.h: Renamed from
148         build-aux/unused-parameter.h.
149         * modules/selinux-h (Depends-on): Update.
150         * modules/unistr/base (Depends-on): Update.
151         * MODULES.html.sh (Core language properties): Update.
152
153         Rename module 'link-warning' to 'snippet/link-warning'.
154         * modules/snippet/link-warning: Renamed from modules/link-warning.
155         (Files, Makefile.am): Update.
156         * build-aux/snippet/link-warning.h: Renamed from
157         build-aux/link-warning.h.
158         * MODULES.html.sh (Support for building libraries and executables):
159         Update.
160
161         Rename module 'c++defs' to 'snippet/c++defs'.
162         * modules/snippet/c++defs: Renamed from modules/c++defs.
163         (Files, Makefile.am): Update.
164         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
165         * modules/arpa_inet (Depends-on): Update.
166         * modules/ctype (Depends-on): Update.
167         * modules/dirent (Depends-on): Update.
168         * modules/fcntl-h (Depends-on): Update.
169         * modules/glob (Depends-on): Update.
170         * modules/iconv-h (Depends-on): Update.
171         * modules/langinfo (Depends-on): Update.
172         * modules/locale (Depends-on): Update.
173         * modules/math (Depends-on): Update.
174         * modules/netdb (Depends-on): Update.
175         * modules/poll-h (Depends-on): Update.
176         * modules/pty (Depends-on): Update.
177         * modules/search (Depends-on): Update.
178         * modules/signal (Depends-on): Update.
179         * modules/spawn (Depends-on): Update.
180         * modules/stdio (Depends-on): Update.
181         * modules/stdlib (Depends-on): Update.
182         * modules/string (Depends-on): Update.
183         * modules/strings (Depends-on): Update.
184         * modules/sys_ioctl (Depends-on): Update.
185         * modules/sys_select (Depends-on): Update.
186         * modules/sys_socket (Depends-on): Update.
187         * modules/sys_stat (Depends-on): Update.
188         * modules/sys_time (Depends-on): Update.
189         * modules/sys_wait (Depends-on): Update.
190         * modules/termios (Depends-on): Update.
191         * modules/time (Depends-on): Update.
192         * modules/unistd (Depends-on): Update.
193         * modules/wchar (Depends-on): Update.
194         * modules/wctype-h (Depends-on): Update.
195
196         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
197         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
198         (Files, Makefile.am): Update.
199         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
200         * modules/argv-iter (Depends-on): Update.
201         * modules/arpa_inet (Depends-on): Update.
202         * modules/dirent (Depends-on): Update.
203         * modules/fcntl-h (Depends-on): Update.
204         * modules/fnmatch (Depends-on): Update.
205         * modules/getopt-posix (Depends-on): Update.
206         * modules/glob (Depends-on): Update.
207         * modules/iconv-h (Depends-on): Update.
208         * modules/inttypes-incomplete (Depends-on): Update.
209         * modules/locale (Depends-on): Update.
210         * modules/math (Depends-on): Update.
211         * modules/netdb (Depends-on): Update.
212         * modules/search (Depends-on): Update.
213         * modules/signal (Depends-on): Update.
214         * modules/spawn (Depends-on): Update.
215         * modules/stdio (Depends-on): Update.
216         * modules/stdlib (Depends-on): Update.
217         * modules/string (Depends-on): Update.
218         * modules/strings (Depends-on): Update.
219         * modules/sys_socket (Depends-on): Update.
220         * modules/sys_stat (Depends-on): Update.
221         * modules/sys_time (Depends-on): Update.
222         * modules/sys_times (Depends-on): Update.
223         * modules/sys_utsname (Depends-on): Update.
224         * modules/time (Depends-on): Update.
225         * modules/unistd (Depends-on): Update.
226         * modules/wchar (Depends-on): Update.
227         * MODULES.html.sh (Support for building libraries and executables):
228         Update.
229
230 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
231
232         Improvements on _Noreturn and related modules.
233
234         modules/_Exit-tests: test _Noreturn too
235         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
236         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
237         (main): Use them.
238
239         stdnoreturn, stdnoreturn-tests: remove modules
240         They're not needed here and a bit premature for use elsewhere.  See
241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
242         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
243         * tests/test-stdnoreturn.c: Remove files.
244         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
245         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
246         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
247         and using noreturn.
248         * modules/openat, modules/sigpipe-die, modules/xalloc:
249         * modules/xmemdup0, modules/xstrtol:
250         Remove dependency on stdnoreturn.
251
252         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
253         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
254         Reparenthesize to avoid GCC warning.
255         Support Microsoft's syntax.
256         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
257
258         _Noreturn-tests: remove module
259         * modules/_Noreturn-tests: Remove.
260         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
261         * tests/test-_Noreturn.c: Remove.
262         * tests/test-stdnoreturn.c: Merge from the old
263         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
264
265 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
266
267         _Noreturn, stdnoreturn, and related modules.
268
269         * top/maint.mk: Adjust to new noreturn support.
270         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
271         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
272
273         xalloc: use stdnoreturn.h
274         * lib/xalloc.h: Include <stdnoreturn.h>.
275         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
276         * modules/xalloc (Depends-on): Add stdnoreturn.
277
278         xstrtol: use stdnoreturn.h
279         * lib/xstrtol.h: Include <stdnoreturn.h>.
280         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
281         * modules/xstrtol (Depends-on): Add stdnoreturn.
282
283         xmemdup0: use stdnoreturn.h
284         * lib/xmemdup0.h: Include <stdnoreturn.h>.
285         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
286         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
287
288         sigpipe-die: use stdnoreturn.h
289         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
290         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
291         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
292
293         openat: use stdnoreturn.h
294         * lib/openat.h: Include <stdnoreturn.h>.
295         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
296         * modules/openat (Depends-on): Add stdnoreturn.
297
298         * lib/openat-die.c (openat_save_fail): Modernize comment.
299
300         * lib/xalloc-die.c (xalloc_die): Modernize comment.
301
302         * lib/glthread/thread.h: Modernize comment.
303
304         obstack: use _Noreturn
305         * lib/obstack.c (__attribute__): Remove macro.
306         (print_and_abort): Use _Noreturn.
307
308         c-stack: use _Noreturn
309         * lib/c-stack.c (die, overflow_handler, segv_handler):
310         Use _Noreturn rather than __attribute__((noreturn)).
311
312         argmatch-tests, exclude_tests: use _Noreturn
313         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
314         Remove.
315         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
316
317         stdlib: use _Noreturn
318         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
319         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
320         * modules/stdlib (Depends-on): Add _Noreturn.
321         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
322
323         stdnoreturn-tests: new module
324         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
325
326         stdnoreturn: new module
327         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
328         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
329
330         _Noreturn-tests: new module
331         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
332
333         _Noreturn: new module
334         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
335         New section, mentioning it.
336         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
337
338         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
339
340 2011-07-11  Eric Blake  <eblake@redhat.com>
341
342         ffs: new module
343         * modules/ffs: New file.
344         * m4/ffs.m4: Likewise.
345         * lib/ffs.c: Likewise.
346         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
347         * modules/strings (Makefile.am): Substitute witness.
348         (Depends-on): Add c++defs.
349         * lib/strings.in.h (ffs): Declare.
350         * modules/ffs-tests: New test file.
351         * tests/test-ffs.c: Test new module.
352         * MODULES.html.sh (Integer arithmetic functions): Mention it.
353         * doc/posix-functions/ffs.texi (ffs): Likewise.
354
355         regex: avoid compiler warning
356         * lib/regex.c (includes): Include <strings.h>, for use of
357         strcasecmp in regcomp.c.
358         Reported by Joachim Schmitz.
359
360 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
361
362         stdint: respect system's intmax_t if INTMAX_MAX
363         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
364         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
365         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
366         long but int64_t is long long, and where we will clash with the
367         system intmax_t if we override it.  See
368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
369         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
370         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
371         similarly for UINTMAX_C.
372
373 2011-07-08  Bruno Haible  <bruno@clisp.org>
374
375         pthread_sigmask tests: Avoid a compiler warning.
376         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
377         non-zero.
378
379         sigprocmask tests: A better way to avoid a compiler warning.
380         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
381         (main): Complain if system() returns non-zero.
382         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
383
384 2011-07-08  Bruno Haible  <bruno@clisp.org>
385
386         pthread_sigmask: Work around IRIX bug.
387         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
388         bug.
389         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
390         there may be unblocked pending signals.
391         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
392
393 2011-07-08  Bruno Haible  <bruno@clisp.org>
394
395         pthread_sigmask: Work around Cygwin bug.
396         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
397         bug.
398         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
399         the system's pthread_sigmask function.
400         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
401
402 2011-07-08  Bruno Haible  <bruno@clisp.org>
403
404         pthread_sigmask: Work around bug in single-threaded implementation.
405         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
406         FreeBSD, HP-UX, Solaris bug.
407         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
408         * lib/pthread_sigmask.c: Include <stddef.h>.
409         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
410         the system's pthread_sigmask function.
411         * modules/pthread_sigmask (configure.ac): Invoke
412         gl_PREREQ_PTHREAD_SIGMASK.
413         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
414         HP-UX, Solaris.
415
416 2011-07-08  Eric Blake  <eblake@redhat.com>
417
418         test-sigprocmask: avoid compiler warning
419         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
420         * tests/test-sigprocmask.c (main): Use it to silence warning.
421         Reported by Jim Meyering.
422
423         test-snprintf: avoid compiler warning
424         * tests/test-snprintf.c (main): Avoid shadowed declaration.
425         * tests/test-vsnprintf.c (main): Likewise.
426         Reported by Jim Meyering.
427
428 2011-07-08  Bruno Haible  <bruno@clisp.org>
429
430         Tests for module 'pthread_sigmask'.
431         * modules/pthread_sigmask-tests: New file.
432         * tests/test-pthread_sigmask1.c: New file, based on
433         tests/test-sigprocmask.c.
434         * tests/test-pthread_sigmask2.c: New file.
435
436 2011-07-08  Jim Meyering  <meyering@redhat.com>
437
438         test-getopt.h: avoid warning about an unused variable
439         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
440
441 2011-07-07  Jim Meyering  <meyering@redhat.com>
442
443         maint: reduce list of files exempt from sc_prohibit_leading_TABs
444         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
445         now that it no longer contains leading TABs.
446         Remove unused "url=FIXME" statement.
447
448 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
449
450         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
451         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
452         When gl_THREADLIB is not in use, assume that the POSIX sematics
453         are desired.  This is better for Emacs, which uses POSIX semantics
454         on GNUish and/or POSIXish platforms, and does not use threads at
455         all otherwise.
456
457         pthread_sigmask: fix typo when testing for libraries
458         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
459         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
460
461 2011-07-08  Eric Blake  <eblake@redhat.com>
462
463         fts: introduce FTS_NOATIME
464         * lib/fts_.h (FTS_NOATIME): New bit flag.
465         (FTS_OPTIONMASK): Adjust.
466         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
467         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
468
469 2011-07-08  Bruno Haible  <bruno@clisp.org>
470
471         Tests for module 'thread'.
472         * modules/thread-tests: New file.
473         * tests/test-thread_self.c: New file.
474         * tests/test-thread_create.cc: New file.
475
476 2011-07-08  Bruno Haible  <bruno@clisp.org>
477
478         thread: Avoid gcc warnings when using gl_thread_self().
479         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
480         'void *'.
481         (gl_thread_self_pointer): Update.
482
483 2011-07-07  Bruno Haible  <bruno@clisp.org>
484
485         signal-c++-tests: Check declaration of pthread_sigmask.
486         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
487         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
488         $(LIB_PTHREAD_SIGMASK).
489
490 2011-07-07  Bruno Haible  <bruno@clisp.org>
491
492         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
493         * lib/signal.in.h (pthread_sigmask): Override if
494         REPLACE_PTHREAD_SIGMASK is 1.
495         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
496         REPLACE_PTHREAD_SIGMASK.
497         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
498         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
499         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
500         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
501         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
502
503 2011-07-07  Bruno Haible  <bruno@clisp.org>
504
505         pthread_sigmask: Ensure declaration in <signal.h>.
506         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
507         include <pthread.h>.
508         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
509         problem.
510
511 2011-07-07  Bruno Haible  <bruno@clisp.org>
512
513         pthread_sigmask: Document the module.
514         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
515
516 2011-07-07  Bruno Haible  <bruno@clisp.org>
517
518         pthread_sigmask: Follow gnulib conventions.
519         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
520         gl_PTHREAD_SIGMASK.
521         * modules/pthread_sigmask (configure.ac): Update.
522
523 2011-07-07  Bruno Haible  <bruno@clisp.org>
524
525         pthread_sigmask: Make declaration C++ safe.
526         * lib/signal.in.h: In two special conditions, just do an #include_next.
527         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
528         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
529         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
530         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
531         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
532         not REPLACE_PTHREAD_MASK.
533         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
534         not REPLACE_PTHREAD_MASK.
535         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
536
537 2011-07-07  Bruno Haible  <bruno@clisp.org>
538
539         pthread_sigmask: Fix return value.
540         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
541         * lib/pthread_sigmask.c: New file.
542         * modules/pthread_sigmask (Files): Add it.
543         (configure.ac): Invoke AC_LIBOBJ.
544
545 2011-07-07  Eric Blake  <eblake@redhat.com>
546
547         getopt: more portable argv creation
548         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
549         const, use char arrays rather than strings.
550         Suggested by Paul Eggert.
551
552 2011-07-07  Bruno Haible  <bruno@clisp.org>
553
554         Tests for module 'sigprocmask'.
555         * modules/sigprocmask-tests: New file.
556         * tests/test-sigprocmask.c: New file.
557
558 2011-07-07  Bruno Haible  <bruno@clisp.org>
559
560         float tests: Tweak.
561         * tests/test-float.c (main): Tweak skip message.
562
563 2011-07-07  Eric Blake  <eblake@redhat.com>
564
565         getopt: avoid compiler warning during configure
566         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
567         assigning string literals to non-const pointer.
568
569         getopt-gnu: avoid crash in glibc getopt
570         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
571         * tests/test-getopt.h (test_getopt): Enhance test.
572         * tests/test-getopt_long.h (test_getopt_long): Likewise.
573         * doc/posix-functions/getopt.texi (getopt): Document it.
574         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
575         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
576         Likewise.
577
578 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
579
580         getopt: handle W; without long options in getopt [BZ #12922]
581         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
582         but no long options are defined, just return 'W'.
583
584 2011-07-07  Bruno Haible  <bruno@clisp.org>
585
586         Avoid literal tabs.
587         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
588         variable containing a tab instead of a literal tab.
589         Reported by Jim Meyering.
590
591 2011-07-07  Bruno Haible  <bruno@clisp.org>
592
593         Comments.
594         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
595
596 2011-07-06  Bruno Haible  <bruno@clisp.org>
597
598         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
599         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
600         <winsock2.h>.
601         (rpl_fd_isset, FD_ISSET): New definitions, copied from
602         lib/sys_socket.in.h.
603         (close, gethostname): Hide declarations from <winsock2.h>.
604         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
605         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
606         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
607         (select): Don't override if gnulib's <sys/select.h> was already
608         included.
609         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
610         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
611         setsockopt, shutdown, select): Tweak indentation.
612
613 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
614
615         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
616         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
617         in an application that does not use the sys_select module.
618
619 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
620
621         poll: do not return 0 on timeout=-1
622         * lib/poll.c: Loop with yield if no events occured
623
624 2011-07-06  Eric Blake  <eblake@redhat.com>
625
626         pthread_sigmask: always replace when not using pthread
627         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
628         replacement when using some threading other than pthread.  Fix
629         logic bug.
630
631 2011-07-06  Bruno Haible  <bruno@clisp.org>
632
633         Comments.
634         * m4/printf.m4: Update comments about mingw.
635
636 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
637
638         sys_select: define sigset_t more portably
639         * lib/sys_select.in.h: Always include <sys/types.h>, since
640         we now need sigset_t and mingw defines it there.
641         Include <signal.h> before split inclusion guard, to avoid
642         mishaps on Solaris, whose <signal.h> eventually includes us.
643         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
644         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
645         which come from ...
646         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
647         gl_CHECK_TYPE_SIGSET_T.
648         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
649         does the real work.
650         * modules/sys_select (Depends-on): Add 'signal'.
651
652         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
653         Suggested by Bruno Haible.
654
655         pselect: Use pthread_sigmask, not sigprocmask.
656         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
657         multithreaded apps better than sigprocmask does.
658         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
659         sigprocmask directly.
660
661 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
662
663         * lib/pselect.c (pselect): Use plain name, without "rpl_".
664         Don't #undef,  since we don't need any underlying pselect.
665         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
666         (Depends-on): Add select.
667         (Link): Add $(LIBSOCKET).
668         These changes suggested by Bruno Haible.
669
670         pselect: document better
671         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
672         * doc/posix-functions/pselect.texi (pselect): Document new module.
673
674         pthread_sigmask: new module
675         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
676         * doc/posix-functions/pthread_sigmask.texi: Document new module.
677         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
678         This is done only as a macro; I don't know how well that'll
679         work for C++.  Move <sys/types.h> include before the include_next,
680         to avoid mishap on Solaris.
681         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
682         * modules/signal (Makefile.am): Substitute the check's results.
683         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
684
685         test-pselect: new module
686         * modules/pselect-tests, tests/test-pselect.c: New files.
687         * tests/test-select.c, tests/test-sys_select-c++.cc:
688         If TEST_PSELECT is defined, test pselect instead of testing select.
689
690         * tests/test-sys_select.c (sigset_t): Test for it, too.
691         Suggested by Bruno Haible.
692
693 2011-07-05  Eric Blake  <eblake@redhat.com>
694
695         snprintf: guarantee %1$d, for libintl
696         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
697         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
698         * doc/posix-functions/snprintf.texi (snprintf): Update.
699         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
700         * tests/test-snprintf.c (main): Enhance test.
701         * tests/test-vsnprintf.c (main): Likewise.
702
703 2011-07-05  Jim Meyering  <meyering@redhat.com>
704
705         maint: exempt stdio-read.c and stdio-write.c from the cppi check
706         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
707         per Bruno's request, to accommodate this idiom (no space after "#")
708         even when the function is inside an #if block:
709         char *
710         gets (char *s)
711         #undef gets
712         {
713           ...
714         }
715
716 2011-07-04  Jim Meyering  <meyering@redhat.com>
717
718         maint: indent with spaces, not TABs, and add a rule to check this
719         * tests/test-userspec.c: Indent with spaces, not TABs.
720         * tests/test-argp.c: Likewise.
721         * tests/test-c-stack2.sh: Likewise.
722         * tests/test-parse-duration.sh: Likewise
723         * m4/strtod.m4: Likewise.
724         * m4/alloca.m4: Likewise.
725         * m4/pselect.m4: Likewise.
726         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
727
728 2011-07-03  Jim Meyering  <meyering@redhat.com>
729
730         maint.mk: correct omissions in prohibit_argmatch_without_use check
731         This rule would mistakenly report that argmatch.h is included without
732         use even when both the argmatch and invalid_arg macro were used.
733         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
734         of argmatch and invalid_arg.
735
736 2011-07-03  Bruno Haible  <bruno@clisp.org>
737
738         Comments about EINTR.
739         * lib/safe-read.h: Explain the purpose of this module.
740         * lib/safe-write.h: Likewise.
741         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
742         module.
743         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
744         module.
745         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
746
747 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
748
749         xnanosleep: Rewrite to use new dtotimespec module.
750         It has the conversion code that used to be in xnanosleep.
751         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
752         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
753         (TIME_T_MAX): Remove.
754         (xnanosleep): Rewrite in terms of dtotimespec.
755         * modules/xnanosleep (Depends-on): Add dtotimespec.
756         Remove intprops, stdbool.
757
758         timespec-add, timespec-sub: new modules
759         * lib/timespec.h (timespec_add, timespec_sub): New decls.
760         * lib/timespec-add.c, lib/timespec-sub.c:
761         * modules/timespec-add, modules/timespec-sub: New files.
762
763         dtotimespec: new module
764         * lib/timespec.h (dtotimespec): New decl.
765         * lib/dtotimespec.c, modules/dtotimespec: New files.
766
767         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
768
769         pselect: new module
770         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
771         (pselect): New decls.
772         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
773         since the standard pselect decl uses 'restrict'.
774         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
775         HAVE_PSELECT, REPLACE_PSELECT.
776         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
777         HAVE_PSELECT, REPLACE_PSELECT.
778         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
779
780         sys_select: don't depend on sys_socket
781         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
783         This fix works on GNU and GNU-like platforms, but has not been tested
784         on native Windows.
785         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
786         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
787         gl_HEADER_SYS_SOCKET.
788         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
789         gl_PREREQ_SYS_H_WINSOCK2.
790
791 2011-06-29  Eric Blake  <eblake@redhat.com>
792
793         pipe2: fix C89 compile problem
794         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
795         Reported by Bruno Haible.
796
797         pipe, pipe2: don't corrupt fd on error
798         * lib/pipe.c (pipe): Leave fd unchanged on error.
799         * lib/pipe2.c (pipe2): Likewise.
800         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
801         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
802
803 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
804
805         mmap-anon: do not use regular expressions inadvertently
806         * m4/mmap-anon.m4: Remove trailing period from strings sought
807         in the output.
808
809 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
810
811         nanosleep: fix integer overflow problem
812         * lib/nanosleep.c (my_usleep): Don't assume signed integer
813         arithmetic wraps around on overflow.
814
815         nanosleep: simplify carrying
816         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
817         first call to the underyling nanosleep, not for the last one.
818         This doesn't fix any bugs, but it simplifies the computation of
819         the remaining delay.  Found while auditing integer overflow issues.
820
821         dup2: remove test for existence of fcntl
822         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
823         "#if HAVE_FCNTL", in the configure-time test program.
824         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
825         and therefore speeds up "configure" a bit.  Found while
826         adding the dup2 module to Emacs.
827
828 2011-06-24  Eric Blake  <eblake@redhat.com>
829
830         maint.mk: enhance useless header checks
831         * top/maint.mk (_sc_header_without_use): Check both include
832         styles.
833         (sc_prohibit_assert_without_use)
834         (sc_prohibit_close_stream_without_use)
835         (sc_prohibit_getopt_without_use)
836         (sc_prohibit_quotearg_without_use)
837         (sc_prohibit_quote_without_use)
838         (sc_prohibit_long_options_without_use)
839         (sc_prohibit_inttostr_without_use)
840         (sc_prohibit_ignore_value_without_use)
841         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
842         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
843         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
844         (sc_prohibit_hash_pjw_without_use)
845         (sc_prohibit_safe_read_without_use)
846         (sc_prohibit_argmatch_without_use)
847         (sc_prohibit_canonicalize_without_use)
848         (sc_prohibit_root_dev_ino_without_use)
849         (sc_prohibit_openat_without_use)
850         (sc_prohibit_c_ctype_without_use)
851         (sc_prohibit_signal_without_use)
852         (sc_prohibit_stdio--_without_use)
853         (sc_prohibit_stdio-safer_without_use)
854         (sc_prohibit_strings_without_use)
855         (sc_prohibit_intprops_without_use)
856         (sc_prohibit_stddef_without_use)
857         (sc_prohibit_xfreopen_without_use): Update clients.
858
859 2011-06-24  Jim Meyering  <meyering@redhat.com>
860
861         syntax-check: keep one maint.mk rule in sync with its header
862         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
863         of the bug Eric has just fixed, with today's commit 25e4c2ec.
864         I prefer to avoid temporary files here, so use <(...), but that
865         is not supported by /bin/sh, so...
866         (SHELL): Define to /bin/bash.
867
868 2011-06-24  Eric Blake  <eblake@redhat.com>
869
870         maint.mk: update sc_prohibit_intprops_without_use
871         * top/maint.mk (_intprops_names): Match recent changes.
872
873 2011-06-24  Bruno Haible  <bruno@clisp.org>
874
875         strerror-override: No-op tweak.
876         * lib/strerror-override.h (strerror_override): Reorder conditions,
877         for consistency with lib/strerror-override.c.
878
879 2011-06-23  Eric Blake  <eblake@redhat.com>
880
881         maint.mk: test further PATH_MAX issues
882         * top/maint.mk (sc_prohibit_path_max_array): Rename...
883         (sc_prohibit_path_max_allocation): ...and also test alloca.
884         Suggested by Jim Meyering.
885
886 2011-06-22  Eric Blake  <eblake@redhat.com>
887
888         maint.mk: add syntax-check to avoid char[PATH_MAX]
889         * top/maint.mk (sc_prohibit_path_max_array): New rule.
890
891         stat: be robust to PATH_MAX definition
892         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
893         * modules/stat (Depends-on): Add verify.
894
895         link: work around IRIX bug
896         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
897         * lib/link.c (rpl_link): Work around it.
898         * tests/test-link.h (test_link): Enhance test.
899         * doc/posix-functions/link.texi (link): Document the bug.
900
901         getopt: silence clang warning
902         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
903         dereference.
904         Reported by Gustavo Martin Domato.
905
906 2011-06-22  Jim Meyering  <meyering@redhat.com>
907
908         bootstrap: do not insert a blank line into each .gitignore file
909         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
910
911 2011-06-21  Eric Blake  <eblake@redhat.com>
912
913         perror: test for output mismatch
914         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
915         perror on IRIX.
916
917         strerror_r: fix OpenBSD behavior on out-of-range
918         * lib/strerror_r.c (strerror_r): Always use maximal string.
919         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
920
921         strerror_r: fix OpenBSD behavior on 0
922         * lib/strerror-override.c (strerror_override): Also override 0
923         when needed.
924         * lib/strerror-override.h (strerror_override): Likewise.
925         * lib/strerror.c (strerror): Simplify, now that 0 override is done
926         earlier.
927         * lib/strerror_r.c (strerror_r): Likewise.
928         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
929         behavior...
930         (gl_FUNC_STRERROR_0): ...into new macro.
931         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
932         is overridden.
933         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
934         * modules/strerror-override (Files): Add strerror.m4.
935         (configure.ac): Also provide override for 0 when needed.
936         * doc/posix-functions/strerror.texi (strerror): Document this.
937         * doc/posix-functions/perror.texi (perror): Likewise.
938
939         perror: adjust array size
940         * modules/perror (Depends-on): Add strerror-override.
941         * lib/perror.c (perror): Use it to avoid magic number.
942
943         strerror-override: reduce size
944         * lib/strerror-override.c (strerror_override): Use fewer lines.
945
946 2011-06-20  Bruno Haible  <bruno@clisp.org>
947
948         pathmax: Ensure correct value for PATH_MAX on HP-UX.
949         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
950
951 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
952
953         alloca: port to compilers that can optimize like GCC 4.6.0
954         * lib/alloca.c (find_stack_direction): New signature, taken from
955         Autoconf git.  This works with GCC 4.6.0.  This code should never
956         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
957         be used with other compilers that optimize as well as GCC 4.6.0 does.
958         (alloca): Adjust to new signature.
959         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
960         New macro, which patches Autoconf in a similar way.
961
962         c-stack: stop worrying about stack direction
963         * lib/c-stack.c (find_stack_direction): Remove.
964         (segv_handler): Don't worry about stack direction growth, as it's
965         too much of a pain to configure this correctly, given how compilers
966         are optimizing-away our stack-growth detection code.  Instead, assume
967         that any access to just before or just after the stack is OK.
968         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
969         Don't require AC_FUNC_ALLOCA; no longer needed.
970
971 2011-06-20  Eric Blake  <eblake@redhat.com>
972
973         test-stat: don't allocate PATH_MAX bytes
974         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
975         PATH_MAX-sized buffer.
976         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
977         * modules/stat-tests (Depends-on): Likewise.
978         * tests/test-fstatat.c (includes): Drop pathmax.h.
979         * tests/test-stat.c (includes): Likewise.
980         Reported by Bruno Haible.
981
982 2011-06-20  Bruno Haible  <bruno@clisp.org>
983
984         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
985         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
986         * lib/float.c: New file.
987         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
988         REPLACE_FLOAT_LDBL.
989         * modules/float (Files): Add lib/float.c.
990         (configure.ac): Invoke AC_LIBOBJ.
991         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
992
993 2011-06-20  Bruno Haible  <bruno@clisp.org>
994
995         Tests for module 'float'.
996         * modules/float-tests: New file.
997         * tests/test-float.c: New file.
998
999 2011-06-19  Bruno Haible  <bruno@clisp.org>
1000
1001         isinf: Coding style.
1002         * lib/isinf.c: Use GNU coding style.
1003
1004 2011-06-19  Bruno Haible  <bruno@clisp.org>
1005
1006         linkat test: Avoid test failure on AIX 7.1.
1007         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
1008         * tests/test-link.h (test_link): Likewise.
1009
1010 2011-06-19  Bruno Haible  <bruno@clisp.org>
1011
1012         pread test: Avoid test failure on OpenBSD 4.9.
1013         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
1014
1015 2011-06-19  Bruno Haible  <bruno@clisp.org>
1016
1017         sprintf-posix: Fix test failure on AIX 7.1.
1018         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
1019         * doc/posix-functions/dprintf.texi: Mention limited precision problem
1020         on AIX.
1021         * doc/posix-functions/fprintf.texi: Likewise.
1022         * doc/posix-functions/printf.texi: Likewise.
1023         * doc/posix-functions/snprintf.texi: Likewise.
1024         * doc/posix-functions/sprintf.texi: Likewise.
1025         * doc/posix-functions/vdprintf.texi: Likewise.
1026         * doc/posix-functions/vfprintf.texi: Likewise.
1027         * doc/posix-functions/vprintf.texi: Likewise.
1028         * doc/posix-functions/vsnprintf.texi: Likewise.
1029         * doc/posix-functions/vsprintf.texi: Likewise.
1030
1031 2011-06-19  Bruno Haible  <bruno@clisp.org>
1032
1033         roundl-ieee: Fix test failure on AIX 7.1.
1034         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
1035         * doc/posix-functions/roundl.texi: Mention problem with negative
1036         arguments.
1037
1038 2011-06-19  Bruno Haible  <bruno@clisp.org>
1039
1040         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1041         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
1042         * doc/posix-functions/round.texi: Mention problem with negative
1043         arguments.
1044         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
1045
1046 2011-06-19  Bruno Haible  <bruno@clisp.org>
1047
1048         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1049         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
1050         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
1051         * doc/posix-functions/roundf.texi: Mention problem with negative
1052         arguments.
1053         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
1054
1055 2011-06-19  Bruno Haible  <bruno@clisp.org>
1056
1057         ceilf-ieee: Work around bug on MacOS X 10.5.
1058         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
1059
1060         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
1061         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
1062         IEEE compliant, avoid compiler optimizations.
1063         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
1064         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1065         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
1066         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1067         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1068         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1069         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1070         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1071         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1072         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1073
1074 2011-06-19  Bruno Haible  <bruno@clisp.org>
1075
1076         ceilf-ieee: Work around bug on AIX 7.1.
1077         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
1078         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
1079
1080 2011-06-19  Bruno Haible  <bruno@clisp.org>
1081
1082         ceil-ieee: Work around bug on AIX 7.1.
1083         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
1084         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
1085
1086 2011-06-18  Bruno Haible  <bruno@clisp.org>
1087
1088         fsync test: Avoid test failure on MacOS X and AIX.
1089         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
1090         EINVAL.
1091
1092 2011-06-18  Bruno Haible  <bruno@clisp.org>
1093
1094         openat, fdopendir tests: Fix link errors.
1095         * modules/openat-tests (Depends-on): Add progname.
1096         * modules/fdopendir-tests (Depends-on): Likewise.
1097         * tests/test-fchownat.c: Include progname.h.
1098         (main): Call set_program_name.
1099         * tests/test-fstatat.c: Include progname.h.
1100         (main): Call set_program_name.
1101         * tests/test-mkdirat.c: Include progname.h.
1102         (main): Call set_program_name.
1103         * tests/test-openat.c: Include progname.h.
1104         (main): Call set_program_name.
1105         * tests/test-unlinkat.c: Include progname.h.
1106         (main): Call set_program_name.
1107         * tests/test-fdopendir.c: Include progname.h.
1108         (main): Call set_program_name.
1109
1110 2011-06-18  Bruno Haible  <bruno@clisp.org>
1111
1112         Doc update.
1113         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
1114         HP-UX.
1115         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
1116
1117 2011-06-18  Bruno Haible  <bruno@clisp.org>
1118
1119         getcwd tests: Avoid compilation error on HP-UX 11.31.
1120         * modules/getcwd-tests (Depends-on): Add pathmax.
1121         * tests/test-getcwd.c: Include pathmax.h.
1122
1123 2011-06-18  Bruno Haible  <bruno@clisp.org>
1124
1125         isfinite, isinf: Fix link error on AIX 6 and 7.
1126         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
1127         needed, also test the macro with a 'float' argument.
1128         * m4/isinf.m4 (gl_ISINF): Likewise.
1129
1130 2011-06-18  Bruno Haible  <bruno@clisp.org>
1131
1132         getloadavg: Don't clobber LIBS. Regression from previous commit.
1133         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
1134         AC_CHECK_LIB from here...
1135         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
1136         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
1137         gl_func_getloadavg_done.
1138         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1139
1140 2011-06-18  Bruno Haible  <bruno@clisp.org>
1141
1142         clean-temp: Improve documentation.
1143         * lib/clean-temp.h: Explain better how to use this module.
1144         Reported by John Darrington <john@darrington.wattle.id.au>.
1145
1146 2011-06-17  Bruno Haible  <bruno@clisp.org>
1147
1148         pread, pwrite: Avoid cc warning on AIX.
1149         * lib/unistd.in.h (pread): Undefine before defining as a macro.
1150         (pwrite): Likewise.
1151
1152 2011-06-17  Bruno Haible  <bruno@clisp.org>
1153
1154         spawn-pipe tests: Fix link error.
1155         * tests/test-spawn-pipe-child.c: Undefine fprintf.
1156         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1157
1158 2011-06-17  Bruno Haible  <bruno@clisp.org>
1159
1160         Tests: Remove unnecessary dependency.
1161         * modules/canonicalize-tests (Depends-on): Remove progname.
1162         * modules/chown-tests (Depends-on): Likewise.
1163         * modules/dirname-tests (Depends-on): Likewise.
1164         * modules/fdopendir-tests (Depends-on): Likewise.
1165         * modules/fdutimensat-tests (Depends-on): Likewise.
1166         * modules/hash-tests (Depends-on): Likewise.
1167         * modules/lchown-tests (Depends-on): Likewise.
1168         * modules/linkat-tests (Depends-on): Likewise.
1169         * modules/renameat-tests (Depends-on): Likewise.
1170         * modules/spawn-pipe-tests (Depends-on): Likewise.
1171         * modules/utimensat-tests (Depends-on): Likewise.
1172
1173 2011-06-17  Bruno Haible  <bruno@clisp.org>
1174
1175         spawn-pipe tests: Fix link error.
1176         * tests/test-spawn-pipe-child.c: Undefine fflush.
1177
1178 2011-06-17  Bruno Haible  <bruno@clisp.org>
1179
1180         Fix tests link errors.
1181         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
1182         * modules/chown-tests (Makefile.am): Don't link test-chown with
1183         LIBINTL.
1184         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
1185         LIBINTL.
1186         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
1187         LIBINTL.
1188         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
1189         LIBINTL.
1190
1191 2011-06-16  Bruno Haible  <bruno@clisp.org>
1192
1193         crypto/gc-sha1: Fix recent regression.
1194         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
1195         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
1196
1197         crypto/gc-md5: Fix recent regression.
1198         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
1199
1200         crypto/gc-md4: Fix recent regression.
1201         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
1202         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
1203
1204         crypto/gc-arctwo: Fix recent regression.
1205         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
1206         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
1207
1208         crypto/gc-rijndael: Fix recent regression.
1209         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
1210         (configure.ac): Invoke AC_LIBOBJ here.
1211         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
1212         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1213
1214         crypto/gc-hmac-sha1: Fix recent regression.
1215         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
1216         (configure.ac): Invoke AC_LIBOBJ here.
1217         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
1218         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1219
1220         crypto/gc-hmac-md5: Fix recent regression.
1221         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
1222         (configure.ac): Invoke AC_LIBOBJ here.
1223         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
1224         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1225
1226         crypto/gc-des: Fix recent regression.
1227         * modules/crypto/gc-des (Files): Remove m4/des.m4.
1228         (configure.ac): Invoke AC_LIBOBJ here.
1229         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
1230         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1231
1232         crypto/gc-arcfour: Fix recent regression.
1233         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
1234         (configure.ac): Invoke AC_LIBOBJ here.
1235         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
1236         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1237
1238 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
1239
1240         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
1241         After the 2011-05-21 change, this macro requires
1242         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
1243         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
1244
1245 2011-06-16  Bruno Haible  <bruno@clisp.org>
1246
1247         fprintftime: Move AC_LIBOBJ invocations to module description.
1248         * m4/fprintftime.m4: Remove file.
1249         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
1250         (configure.ac): Remove gl_FPRINTFTIME call.
1251         (Makefile.am): Augment lib_SOURCES.
1252         Reported by Jim Meyering.
1253
1254 2011-06-16  Bruno Haible  <bruno@clisp.org>
1255
1256         tmpfile-safer: Finish 2011-05-23 commit.
1257         * m4/stdio-safer.m4: Really remove file.
1258         Reported by Jim Meyering.
1259
1260 2011-06-16  Bruno Haible  <bruno@clisp.org>
1261
1262         syntax-check: Fix typo.
1263         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
1264         printf-posix.m4.
1265         Reported by Jim Meyering.
1266
1267 2011-06-13  Jim Meyering  <meyering@redhat.com>
1268
1269         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
1270         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
1271
1272 2011-05-23  Bruno Haible  <bruno@clisp.org>
1273
1274         yesno: Move AC_LIBOBJ invocations to module description.
1275         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
1276         * modules/yesno (Makefile.am): Augment lib_SOURCES.
1277
1278 2011-05-23  Bruno Haible  <bruno@clisp.org>
1279
1280         xstrtol: Move AC_LIBOBJ invocations to module description.
1281         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
1282         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
1283
1284 2011-05-23  Bruno Haible  <bruno@clisp.org>
1285
1286         xstrtold: Move AC_LIBOBJ invocations to module description.
1287         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
1288         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
1289
1290 2011-05-23  Bruno Haible  <bruno@clisp.org>
1291
1292         xstrtod: Move AC_LIBOBJ invocations to module description.
1293         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
1294         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
1295
1296 2011-05-23  Bruno Haible  <bruno@clisp.org>
1297
1298         xnanosleep: Move AC_LIBOBJ invocations to module description.
1299         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
1300         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
1301
1302 2011-05-23  Bruno Haible  <bruno@clisp.org>
1303
1304         xgetcwd: Move AC_LIBOBJ invocations to module description.
1305         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
1306         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
1307
1308 2011-05-23  Bruno Haible  <bruno@clisp.org>
1309
1310         xalloc: Move AC_LIBOBJ invocations to module description.
1311         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1312         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1313
1314 2011-05-23  Bruno Haible  <bruno@clisp.org>
1315
1316         write-any-file: Move AC_LIBOBJ invocations to module description.
1317         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1318         invocation.
1319         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1320
1321 2011-05-23  Bruno Haible  <bruno@clisp.org>
1322
1323         utimens: Move AC_LIBOBJ invocations to module description.
1324         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1325         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1326
1327 2011-05-23  Bruno Haible  <bruno@clisp.org>
1328
1329         utimecmp: Move AC_LIBOBJ invocations to module description.
1330         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1331         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1332
1333 2011-05-23  Bruno Haible  <bruno@clisp.org>
1334
1335         userspec: Move AC_LIBOBJ invocations to module description.
1336         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1337         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1338
1339 2011-05-23  Bruno Haible  <bruno@clisp.org>
1340
1341         unlinkdir: Move AC_LIBOBJ invocations to module description.
1342         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1343         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1344
1345 2011-05-23  Bruno Haible  <bruno@clisp.org>
1346
1347         unistd-safer: Move AC_LIBOBJ invocations to module description.
1348         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1349         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1350
1351 2011-05-23  Bruno Haible  <bruno@clisp.org>
1352
1353         tempname: Move AC_LIBOBJ invocations to module description.
1354         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1355         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1356
1357 2011-05-23  Bruno Haible  <bruno@clisp.org>
1358
1359         strftime: Move AC_LIBOBJ invocations to module description.
1360         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1361         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1362
1363 2011-05-23  Bruno Haible  <bruno@clisp.org>
1364
1365         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1366         * m4/stdlib-safer.m4: Remove file.
1367         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1368         (configure.ac): Remove gl_STDLIB_SAFER call.
1369         (Makefile.am): Augment lib_SOURCES.
1370
1371 2011-05-23  Bruno Haible  <bruno@clisp.org>
1372
1373         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1374         * m4/stdio-safer.m4: Remove file.
1375         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1376         (configure.ac): Remove gl_TMPFILE_SAFER call.
1377         (Makefile.am): Augment lib_SOURCES.
1378
1379 2011-05-23  Bruno Haible  <bruno@clisp.org>
1380
1381         popen-safer: Move AC_LIBOBJ invocations to module description.
1382         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1383         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1384         (configure.ac): Remove gl_POPEN_SAFER call.
1385         (Makefile.am): Augment lib_SOURCES.
1386
1387 2011-05-23  Bruno Haible  <bruno@clisp.org>
1388
1389         freopen-safer: Move AC_LIBOBJ invocations to module description.
1390         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1391         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1392         (configure.ac): Remove gl_FREOPEN_SAFER call.
1393         (Makefile.am): Augment lib_SOURCES.
1394
1395 2011-05-23  Bruno Haible  <bruno@clisp.org>
1396
1397         fopen-safer: Move AC_LIBOBJ invocations to module description.
1398         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1399         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1400         (configure.ac): Remove gl_FOPEN_SAFER call.
1401         (Makefile.am): Augment lib_SOURCES.
1402
1403 2011-05-23  Bruno Haible  <bruno@clisp.org>
1404
1405         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1406         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1407         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1408
1409 2011-05-23  Bruno Haible  <bruno@clisp.org>
1410
1411         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1412         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1413         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1414
1415 2011-05-23  Bruno Haible  <bruno@clisp.org>
1416
1417         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1418         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1419         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1420
1421 2011-05-23  Bruno Haible  <bruno@clisp.org>
1422
1423         settime: Move AC_LIBOBJ invocations to module description.
1424         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1425         * modules/settime (Makefile.am): Augment lib_SOURCES.
1426
1427 2011-05-23  Bruno Haible  <bruno@clisp.org>
1428
1429         savedir: Move AC_LIBOBJ invocations to module description.
1430         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1431         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1432
1433 2011-05-23  Bruno Haible  <bruno@clisp.org>
1434
1435         save-cwd: Move AC_LIBOBJ invocations to module description.
1436         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1437         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1438
1439 2011-05-23  Bruno Haible  <bruno@clisp.org>
1440
1441         same: Move AC_LIBOBJ invocations to module description.
1442         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1443         * modules/same (Makefile.am): Augment lib_SOURCES.
1444
1445 2011-05-23  Bruno Haible  <bruno@clisp.org>
1446
1447         safe-write: Move AC_LIBOBJ invocations to module description.
1448         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1449         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1450         instead of gl_SAFE_WRITE.
1451         (Makefile.am): Augment lib_SOURCES.
1452
1453 2011-05-23  Bruno Haible  <bruno@clisp.org>
1454
1455         safe-read: Move AC_LIBOBJ invocations to module description.
1456         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1457         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1458         of gl_SAFE_READ.
1459         (Makefile.am): Augment lib_SOURCES.
1460
1461 2011-05-23  Bruno Haible  <bruno@clisp.org>
1462
1463         safe-alloc: Move AC_LIBOBJ invocations to module description.
1464         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1465         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1466
1467 2011-05-23  Bruno Haible  <bruno@clisp.org>
1468
1469         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1470         * m4/rijndael.m4: Remove file.
1471         * modules/crypto/rijndael (Files): Remove it.
1472         (configure.ac): Remove gl_RIJNDAEL call.
1473         (Makefile.am): Augment lib_SOURCES.
1474
1475 2011-05-23  Bruno Haible  <bruno@clisp.org>
1476
1477         readtokens: Move AC_LIBOBJ invocations to module description.
1478         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1479         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1480
1481 2011-05-23  Bruno Haible  <bruno@clisp.org>
1482
1483         read-file: Move AC_LIBOBJ invocations to module description.
1484         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1485         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1486         of gl_FUNC_READ_FILE.
1487         (Makefile.am): Augment lib_SOURCES.
1488
1489 2011-05-23  Bruno Haible  <bruno@clisp.org>
1490
1491         quotearg: Move AC_LIBOBJ invocations to module description.
1492         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1493         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1494
1495 2011-05-23  Bruno Haible  <bruno@clisp.org>
1496
1497         quote: Move AC_LIBOBJ invocations to module description.
1498         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1499         * modules/quote (Makefile.am): Augment lib_SOURCES.
1500
1501 2011-05-23  Bruno Haible  <bruno@clisp.org>
1502
1503         posixver: Move AC_LIBOBJ invocations to module description.
1504         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1505         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1506
1507 2011-05-23  Bruno Haible  <bruno@clisp.org>
1508
1509         posixtm: Move AC_LIBOBJ invocations to module description.
1510         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1511         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1512
1513 2011-05-23  Bruno Haible  <bruno@clisp.org>
1514
1515         physmem: Move AC_LIBOBJ invocations to module description.
1516         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1517         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1518
1519 2011-05-23  Bruno Haible  <bruno@clisp.org>
1520
1521         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1522         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1523         invocation.
1524         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1525
1526 2011-05-23  Bruno Haible  <bruno@clisp.org>
1527
1528         mpsort: Move AC_LIBOBJ invocations to module description.
1529         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
1530         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
1531
1532 2011-05-23  Bruno Haible  <bruno@clisp.org>
1533
1534         modechange: Move AC_LIBOBJ invocations to module description.
1535         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
1536         * modules/modechange (Makefile.am): Augment lib_SOURCES.
1537
1538 2011-05-23  Bruno Haible  <bruno@clisp.org>
1539
1540         mkdir-p: Move AC_LIBOBJ invocations to module description.
1541         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
1542         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
1543
1544 2011-05-23  Bruno Haible  <bruno@clisp.org>
1545
1546         mkancesdirs: Move AC_LIBOBJ invocations to module description.
1547         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
1548         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
1549
1550 2011-05-23  Bruno Haible  <bruno@clisp.org>
1551
1552         mgetgroups: Move AC_LIBOBJ invocations to module description.
1553         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
1554         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
1555
1556 2011-05-23  Bruno Haible  <bruno@clisp.org>
1557
1558         memxor: Move AC_LIBOBJ invocations to module description.
1559         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
1560         * modules/memxor (Makefile.am): Augment lib_SOURCES.
1561
1562 2011-05-23  Bruno Haible  <bruno@clisp.org>
1563
1564         memcoll: Move AC_LIBOBJ invocations to module description.
1565         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
1566         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
1567
1568 2011-05-23  Bruno Haible  <bruno@clisp.org>
1569
1570         memcasecmp: Move AC_LIBOBJ invocations to module description.
1571         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
1572         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
1573
1574 2011-05-23  Bruno Haible  <bruno@clisp.org>
1575
1576         crypto/md5: Move AC_LIBOBJ invocations to module description.
1577         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
1578         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
1579
1580 2011-05-23  Bruno Haible  <bruno@clisp.org>
1581
1582         crypto/md4: Move AC_LIBOBJ invocations to module description.
1583         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
1584         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
1585
1586 2011-05-23  Bruno Haible  <bruno@clisp.org>
1587
1588         crypto/md2: Move AC_LIBOBJ invocations to module description.
1589         * m4/md2.m4: Remove file.
1590         * modules/crypto/md2 (Files): Remove it.
1591         (configure.ac): Remove gl_MD2 call.
1592         (Makefile.am): Augment lib_SOURCES.
1593
1594 2011-05-23  Bruno Haible  <bruno@clisp.org>
1595
1596         long-options: Move AC_LIBOBJ invocations to module description.
1597         * m4/long-options.m4: Remove file.
1598         * modules/long-options (Files): Remove it.
1599         (configure.ac): Remove gl_LONG_OPTIONS call.
1600         (Makefile.am): Augment lib_SOURCES.
1601
1602 2011-05-23  Bruno Haible  <bruno@clisp.org>
1603
1604         i-ring: Move AC_LIBOBJ invocations to module description.
1605         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
1606         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
1607
1608 2011-05-23  Bruno Haible  <bruno@clisp.org>
1609
1610         idcache: Move AC_LIBOBJ invocations to module description.
1611         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
1612         * modules/idcache (Makefile.am): Augment lib_SOURCES.
1613
1614 2011-05-23  Bruno Haible  <bruno@clisp.org>
1615
1616         human: Move AC_LIBOBJ invocations to module description.
1617         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1618         * modules/human (Makefile.am): Augment lib_SOURCES.
1619
1620 2011-05-23  Bruno Haible  <bruno@clisp.org>
1621
1622         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1623         * m4/hmac-sha1.m4: Remove file.
1624         * modules/crypto/hmac-sha1 (Files): Remove it.
1625         (configure.ac): Remove gl_HMAC_SHA1 call.
1626         (Makefile.am): Augment lib_SOURCES.
1627
1628 2011-05-23  Bruno Haible  <bruno@clisp.org>
1629
1630         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1631         * m4/hmac-md5.m4: Remove file.
1632         * modules/crypto/hmac-md5 (Files): Remove it.
1633         (configure.ac): Remove gl_HMAC_MD5 call.
1634         (Makefile.am): Augment lib_SOURCES.
1635
1636 2011-05-23  Bruno Haible  <bruno@clisp.org>
1637
1638         hash: Move AC_LIBOBJ invocations to module description.
1639         * m4/hash.m4: Remove file.
1640         * modules/hash (Files): Remove it.
1641         (configure.ac): Remove gl_HASH call.
1642         (Makefile.am): Augment lib_SOURCES.
1643
1644 2011-05-23  Bruno Haible  <bruno@clisp.org>
1645
1646         hard-locale: Move AC_LIBOBJ invocations to module description.
1647         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1648         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1649
1650 2011-05-23  Bruno Haible  <bruno@clisp.org>
1651
1652         getugroups: Move AC_LIBOBJ invocations to module description.
1653         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1654         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1655
1656 2011-05-23  Bruno Haible  <bruno@clisp.org>
1657
1658         gettime: Move AC_LIBOBJ invocations to module description.
1659         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1660         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1661
1662 2011-05-23  Bruno Haible  <bruno@clisp.org>
1663
1664         getndelim2: Move AC_LIBOBJ invocations to module description.
1665         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1666         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1667
1668 2011-05-23  Bruno Haible  <bruno@clisp.org>
1669
1670         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1671         * m4/gc-pbkdf2-sha1.m4: Remove file.
1672         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1673         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1674         (Makefile.am): Augment lib_SOURCES.
1675
1676 2011-05-23  Bruno Haible  <bruno@clisp.org>
1677
1678         fts: Move AC_LIBOBJ invocations to module description.
1679         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1680         * modules/fts (configure.ac): ... to here.
1681
1682 2011-05-23  Bruno Haible  <bruno@clisp.org>
1683
1684         file-type: Move AC_LIBOBJ invocations to module description.
1685         * m4/file-type.m4: Remove file.
1686         * modules/file-type (Files): Remove it.
1687         (configure.ac): Remove gl_FILE_TYPE call.
1688         (Makefile.am): Augment lib_SOURCES.
1689
1690 2011-05-23  Bruno Haible  <bruno@clisp.org>
1691
1692         filenamecat*: Respect rules for use of AC_LIBOBJ.
1693         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
1694         Remove AC_LIBOBJ invocation.
1695         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
1696         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
1697
1698 2011-05-23  Bruno Haible  <bruno@clisp.org>
1699
1700         filemode: Move AC_LIBOBJ invocations to module description.
1701         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
1702         * modules/filemode (Makefile.am): Augment lib_SOURCES.
1703
1704 2011-05-23  Bruno Haible  <bruno@clisp.org>
1705
1706         openat-safer: Move AC_LIBOBJ invocations to module description.
1707         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
1708         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
1709
1710 2011-05-23  Bruno Haible  <bruno@clisp.org>
1711
1712         fcntl-safer: Move AC_LIBOBJ invocations to module description.
1713         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
1714         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
1715
1716 2011-05-23  Bruno Haible  <bruno@clisp.org>
1717
1718         exclude: Move AC_LIBOBJ invocations to module description.
1719         * m4/exclude.m4: Remove file.
1720         * modules/exclude (Files): Remove it.
1721         (configure.ac): Remove gl_EXCLUDE call.
1722         (Makefile.am): Augment lib_SOURCES.
1723
1724 2011-05-23  Bruno Haible  <bruno@clisp.org>
1725
1726         dirname*: Respect rules for use of AC_LIBOBJ.
1727         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
1728         invocations.
1729         * modules/dirname (Makefile.am): Augment lib_SOURCES.
1730         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
1731
1732 2011-05-23  Bruno Haible  <bruno@clisp.org>
1733
1734         dirent-safer: Move AC_LIBOBJ invocations to module description.
1735         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
1736         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
1737
1738 2011-05-23  Bruno Haible  <bruno@clisp.org>
1739
1740         crypto/des: Move AC_LIBOBJ invocations to module description.
1741         * m4/des.m4: Remove file.
1742         * modules/crypto/des (Files): Remove it.
1743         (configure.ac): Remove gl_DES call.
1744         (Makefile.am): Augment lib_SOURCES.
1745
1746 2011-05-23  Bruno Haible  <bruno@clisp.org>
1747
1748         cycle-check: Move AC_LIBOBJ invocations to module description.
1749         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
1750         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
1751
1752 2011-05-23  Bruno Haible  <bruno@clisp.org>
1753
1754         c-strtold: Move AC_LIBOBJ invocations to module description.
1755         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
1756         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
1757
1758 2011-05-23  Bruno Haible  <bruno@clisp.org>
1759
1760         c-strtod: Move AC_LIBOBJ invocations to module description.
1761         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
1762         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
1763
1764 2011-05-23  Bruno Haible  <bruno@clisp.org>
1765
1766         crc: Move AC_LIBOBJ invocations to module description.
1767         * m4/crc.m4: Remove file.
1768         * modules/crc (Files): Remove it.
1769         (configure.ac): Remove gl_CRC call.
1770         (Makefile.am): Augment lib_SOURCES.
1771
1772 2011-05-23  Bruno Haible  <bruno@clisp.org>
1773
1774         close-stream: Move AC_LIBOBJ invocations to module description.
1775         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
1776         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
1777
1778 2011-05-23  Bruno Haible  <bruno@clisp.org>
1779
1780         closeout: Move AC_LIBOBJ invocations to module description.
1781         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
1782         * modules/closeout (Makefile.am): Augment lib_SOURCES.
1783
1784 2011-05-23  Bruno Haible  <bruno@clisp.org>
1785
1786         closein: Move AC_LIBOBJ invocations to module description.
1787         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
1788         * modules/closein (Makefile.am): Augment lib_SOURCES.
1789
1790 2011-05-23  Bruno Haible  <bruno@clisp.org>
1791
1792         cloexec: Move AC_LIBOBJ invocations to module description.
1793         * m4/cloexec.m4: Remove file.
1794         * modules/cloexec (Files): Remove it.
1795         (configure.ac): Remove gl_CLOEXEC call.
1796         (Makefile.am): Augment lib_SOURCES.
1797
1798 2011-05-23  Bruno Haible  <bruno@clisp.org>
1799
1800         check-version: Move AC_LIBOBJ invocations to module description.
1801         * m4/check-version.m4: Remove file.
1802         * modules/check-version (Files): Remove it.
1803         (configure.ac): Remove gl_CHECK_VERSION call.
1804         (Makefile.am): Augment lib_SOURCES.
1805
1806 2011-05-23  Bruno Haible  <bruno@clisp.org>
1807
1808         chdir-safer: Move AC_LIBOBJ invocations to module description.
1809         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
1810         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
1811
1812 2011-05-23  Bruno Haible  <bruno@clisp.org>
1813
1814         canonicalize: Move AC_LIBOBJ invocations to module description.
1815         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
1816         AC_LIBOBJ invocation.
1817         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
1818
1819 2011-05-23  Bruno Haible  <bruno@clisp.org>
1820
1821         canon-host: Move AC_LIBOBJ invocations to module description.
1822         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
1823         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
1824         instead of gl_CANON_HOST.
1825         (Makefile.am): Augment lib_SOURCES.
1826
1827 2011-05-23  Bruno Haible  <bruno@clisp.org>
1828
1829         backupfile: Move AC_LIBOBJ invocations to module description.
1830         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
1831         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
1832
1833 2011-05-23  Bruno Haible  <bruno@clisp.org>
1834
1835         argmatch: Move AC_LIBOBJ invocations to module description.
1836         * m4/argmatch.m4: Remove file.
1837         * modules/argmatch (Files): Remove it.
1838         (configure.ac): Remove gl_ARGMATCH call.
1839         (Makefile.am): Augment lib_SOURCES.
1840
1841 2011-05-23  Bruno Haible  <bruno@clisp.org>
1842
1843         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
1844         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
1845         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
1846
1847 2011-05-23  Bruno Haible  <bruno@clisp.org>
1848
1849         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
1850         * m4/arcfour.m4: Remove file.
1851         * modules/crypto/arcfour (Files): Remove it.
1852         (configure.ac): Remove gl_ARCFOUR call.
1853         (Makefile.am): Augment lib_SOURCES.
1854
1855 2011-05-22  Bruno Haible  <bruno@clisp.org>
1856
1857         write: Move AC_LIBOBJ invocations to module description.
1858         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
1859         * modules/write (configure.ac): ... to here.
1860
1861 2011-05-22  Bruno Haible  <bruno@clisp.org>
1862
1863         wmemset: Move AC_LIBOBJ invocations to module description.
1864         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
1865         here...
1866         * modules/wmemset (configure.ac): ... to here.
1867
1868 2011-05-22  Bruno Haible  <bruno@clisp.org>
1869
1870         wmemmove: Move AC_LIBOBJ invocations to module description.
1871         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
1872         here...
1873         * modules/wmemmove (configure.ac): ... to here.
1874
1875 2011-05-22  Bruno Haible  <bruno@clisp.org>
1876
1877         wmemcpy: Move AC_LIBOBJ invocations to module description.
1878         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
1879         here...
1880         * modules/wmemcpy (configure.ac): ... to here.
1881
1882 2011-05-22  Bruno Haible  <bruno@clisp.org>
1883
1884         wmemcmp: Move AC_LIBOBJ invocations to module description.
1885         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
1886         here...
1887         * modules/wmemcmp (configure.ac): ... to here.
1888
1889 2011-05-22  Bruno Haible  <bruno@clisp.org>
1890
1891         wmemchr: Move AC_LIBOBJ invocations to module description.
1892         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
1893         here...
1894         * modules/wmemchr (configure.ac): ... to here.
1895
1896 2011-05-22  Bruno Haible  <bruno@clisp.org>
1897
1898         wcswidth: Move AC_LIBOBJ invocations to module description.
1899         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
1900         here...
1901         * modules/wcswidth (configure.ac): ... to here.
1902
1903 2011-05-22  Bruno Haible  <bruno@clisp.org>
1904
1905         wcwidth: Respect rules for use of AC_LIBOBJ.
1906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
1907         invocation from here...
1908         * modules/wcwidth (configure.ac): ... to here.
1909         (Depends-on): Update conditions.
1910
1911 2011-05-22  Bruno Haible  <bruno@clisp.org>
1912
1913         wctype: Move AC_LIBOBJ invocations to module description.
1914         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
1915         invocation from here...
1916         * modules/wctype (configure.ac): ... to here.
1917         (Depends-on): Update conditions.
1918
1919 2011-05-22  Bruno Haible  <bruno@clisp.org>
1920
1921         wctrans: Move AC_LIBOBJ invocations to module description.
1922         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
1923         invocation from here...
1924         * modules/wctrans (configure.ac): ... to here.
1925
1926 2011-05-22  Bruno Haible  <bruno@clisp.org>
1927
1928         wctomb: Move AC_LIBOBJ invocations to module description.
1929         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
1930         invocations from here...
1931         * modules/wctomb (configure.ac): ... to here.
1932
1933 2011-05-22  Bruno Haible  <bruno@clisp.org>
1934
1935         wctob: Move AC_LIBOBJ invocations to module description.
1936         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
1937         gl_PREREQ_WCTOB invocations from here...
1938         * modules/wctob (configure.ac): ... to here.
1939         (Depends-on): Update conditions.
1940
1941 2011-05-22  Bruno Haible  <bruno@clisp.org>
1942
1943         wcsxfrm: Move AC_LIBOBJ invocations to module description.
1944         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
1945         here...
1946         * modules/wcsxfrm (configure.ac): ... to here.
1947
1948 2011-05-22  Bruno Haible  <bruno@clisp.org>
1949
1950         wcstok: Move AC_LIBOBJ invocations to module description.
1951         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
1952         * modules/wcstok (configure.ac): ... to here.
1953
1954 2011-05-22  Bruno Haible  <bruno@clisp.org>
1955
1956         wcsstr: Move AC_LIBOBJ invocations to module description.
1957         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
1958         * modules/wcsstr (configure.ac): ... to here.
1959
1960 2011-05-22  Bruno Haible  <bruno@clisp.org>
1961
1962         wcsspn: Move AC_LIBOBJ invocations to module description.
1963         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
1964         * modules/wcsspn (configure.ac): ... to here.
1965
1966 2011-05-22  Bruno Haible  <bruno@clisp.org>
1967
1968         wcsrtombs: Move AC_LIBOBJ invocations to module description.
1969         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
1970         gl_PREREQ_WCSRTOMBS invocations from here...
1971         * modules/wcsrtombs (configure.ac): ... to here.
1972
1973 2011-05-22  Bruno Haible  <bruno@clisp.org>
1974
1975         wcsrchr: Move AC_LIBOBJ invocations to module description.
1976         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
1977         here...
1978         * modules/wcsrchr (configure.ac): ... to here.
1979
1980 2011-05-22  Bruno Haible  <bruno@clisp.org>
1981
1982         wcspbrk: Move AC_LIBOBJ invocations to module description.
1983         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
1984         here...
1985         * modules/wcspbrk (configure.ac): ... to here.
1986
1987 2011-05-22  Bruno Haible  <bruno@clisp.org>
1988
1989         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
1990         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
1991         gl_PREREQ_WCSNRTOMBS invocations from here...
1992         * modules/wcsnrtombs (configure.ac): ... to here.
1993
1994 2011-05-22  Bruno Haible  <bruno@clisp.org>
1995
1996         wcsnlen: Move AC_LIBOBJ invocations to module description.
1997         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
1998         here...
1999         * modules/wcsnlen (configure.ac): ... to here.
2000
2001 2011-05-22  Bruno Haible  <bruno@clisp.org>
2002
2003         wcsncpy: Move AC_LIBOBJ invocations to module description.
2004         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
2005         here...
2006         * modules/wcsncpy (configure.ac): ... to here.
2007
2008 2011-05-22  Bruno Haible  <bruno@clisp.org>
2009
2010         wcsncmp: Move AC_LIBOBJ invocations to module description.
2011         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
2012         here...
2013         * modules/wcsncmp (configure.ac): ... to here.
2014
2015 2011-05-22  Bruno Haible  <bruno@clisp.org>
2016
2017         wcsncat: Move AC_LIBOBJ invocations to module description.
2018         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
2019         here...
2020         * modules/wcsncat (configure.ac): ... to here.
2021
2022 2011-05-22  Bruno Haible  <bruno@clisp.org>
2023
2024         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
2025         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
2026         from here...
2027         * modules/wcsncasecmp (configure.ac): ... to here.
2028
2029 2011-05-22  Bruno Haible  <bruno@clisp.org>
2030
2031         wcslen: Move AC_LIBOBJ invocations to module description.
2032         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
2033         * modules/wcslen (configure.ac): ... to here.
2034
2035 2011-05-22  Bruno Haible  <bruno@clisp.org>
2036
2037         wcsdup: Move AC_LIBOBJ invocations to module description.
2038         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
2039         * modules/wcsdup (configure.ac): ... to here.
2040
2041 2011-05-22  Bruno Haible  <bruno@clisp.org>
2042
2043         wcscspn: Move AC_LIBOBJ invocations to module description.
2044         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
2045         here...
2046         * modules/wcscspn (configure.ac): ... to here.
2047
2048 2011-05-22  Bruno Haible  <bruno@clisp.org>
2049
2050         wcscpy: Move AC_LIBOBJ invocations to module description.
2051         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
2052         * modules/wcscpy (configure.ac): ... to here.
2053
2054 2011-05-22  Bruno Haible  <bruno@clisp.org>
2055
2056         wcscoll: Move AC_LIBOBJ invocations to module description.
2057         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
2058         here...
2059         * modules/wcscoll (configure.ac): ... to here.
2060
2061 2011-05-22  Bruno Haible  <bruno@clisp.org>
2062
2063         wcscmp: Move AC_LIBOBJ invocations to module description.
2064         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
2065         * modules/wcscmp (configure.ac): ... to here.
2066
2067 2011-05-22  Bruno Haible  <bruno@clisp.org>
2068
2069         wcschr: Move AC_LIBOBJ invocations to module description.
2070         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
2071         * modules/wcschr (configure.ac): ... to here.
2072
2073 2011-05-22  Bruno Haible  <bruno@clisp.org>
2074
2075         wcscat: Move AC_LIBOBJ invocations to module description.
2076         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
2077         * modules/wcscat (configure.ac): ... to here.
2078
2079 2011-05-22  Bruno Haible  <bruno@clisp.org>
2080
2081         wcscasecmp: Move AC_LIBOBJ invocations to module description.
2082         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
2083         here...
2084         * modules/wcscasecmp (configure.ac): ... to here.
2085
2086 2011-05-22  Bruno Haible  <bruno@clisp.org>
2087
2088         wcrtomb: Move AC_LIBOBJ invocations to module description.
2089         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
2090         invocations from here...
2091         * modules/wcrtomb (configure.ac): ... to here.
2092
2093 2011-05-22  Bruno Haible  <bruno@clisp.org>
2094
2095         wcpncpy: Move AC_LIBOBJ invocations to module description.
2096         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
2097         here...
2098         * modules/wcpncpy (configure.ac): ... to here.
2099
2100 2011-05-22  Bruno Haible  <bruno@clisp.org>
2101
2102         wcpcpy: Move AC_LIBOBJ invocations to module description.
2103         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
2104         * modules/wcpcpy (configure.ac): ... to here.
2105
2106 2011-05-22  Bruno Haible  <bruno@clisp.org>
2107
2108         waitpid: Move AC_LIBOBJ invocations to module description.
2109         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
2110         invocation from here...
2111         * modules/waitpid (configure.ac): ... to here.
2112
2113 2011-05-22  Bruno Haible  <bruno@clisp.org>
2114
2115         utimensat: Move AC_LIBOBJ invocations to module description.
2116         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
2117         here...
2118         * modules/utimensat (configure.ac): ... to here.
2119
2120 2011-05-22  Bruno Haible  <bruno@clisp.org>
2121
2122         usleep: Move AC_LIBOBJ invocations to module description.
2123         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
2124         here...
2125         * modules/usleep (configure.ac): ... to here.
2126
2127 2011-05-22  Bruno Haible  <bruno@clisp.org>
2128
2129         unlockpt: Move AC_LIBOBJ invocations to module description.
2130         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
2131         gl_PREREQ_UNLOCKPT invocations from here...
2132         * modules/unlockpt (configure.ac): ... to here.
2133
2134 2011-05-22  Bruno Haible  <bruno@clisp.org>
2135
2136         unlink: Respect rules for use of AC_LIBOBJ.
2137         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
2138         * modules/unlink (configure.ac): ... to here.
2139
2140 2011-05-22  Bruno Haible  <bruno@clisp.org>
2141
2142         uname: Move AC_LIBOBJ invocations to module description.
2143         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
2144         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
2145         here...
2146         * modules/uname (configure.ac): ... to here.
2147
2148 2011-05-22  Bruno Haible  <bruno@clisp.org>
2149
2150         ttyname_r: Move AC_LIBOBJ invocations to module description.
2151         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
2152         gl_PREREQ_TTYNAME_R invocations from here...
2153         * modules/ttyname_r (configure.ac): ... to here.
2154
2155 2011-05-22  Bruno Haible  <bruno@clisp.org>
2156
2157         tsearch: Move AC_LIBOBJ invocations to module description.
2158         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
2159         invocations from here...
2160         * modules/tsearch (configure.ac): ... to here.
2161
2162 2011-05-22  Bruno Haible  <bruno@clisp.org>
2163
2164         towctrans: Move AC_LIBOBJ invocations to module description.
2165         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
2166         AC_LIBOBJ invocation from here...
2167         * modules/towctrans (configure.ac): ... to here.
2168
2169 2011-05-22  Bruno Haible  <bruno@clisp.org>
2170
2171         tmpfile: Move AC_LIBOBJ invocations to module description.
2172         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
2173         invocations from here...
2174         * modules/tmpfile (configure.ac): ... to here.
2175
2176 2011-05-22  Bruno Haible  <bruno@clisp.org>
2177
2178         times: Move AC_LIBOBJ invocations to module description.
2179         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
2180         * modules/times (configure.ac): ... to here.
2181
2182 2011-05-22  Bruno Haible  <bruno@clisp.org>
2183
2184         time_r: Move AC_LIBOBJ invocations to module description.
2185         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
2186         invocations from here...
2187         * modules/time_r (configure.ac): ... to here.
2188
2189 2011-05-22  Bruno Haible  <bruno@clisp.org>
2190
2191         timegm: Move AC_LIBOBJ invocations to module description.
2192         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
2193         invocations from here...
2194         * modules/timegm (configure.ac): ... to here.
2195
2196 2011-05-22  Bruno Haible  <bruno@clisp.org>
2197
2198         tcgetsid: Move AC_LIBOBJ invocations to module description.
2199         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
2200         and gl_PREREQ_TCGETSID invocations from here...
2201         * modules/tcgetsid (configure.ac): ... to here.
2202         (Depends-on): Update conditions.
2203
2204 2011-05-22  Bruno Haible  <bruno@clisp.org>
2205
2206         symlinkat: Move AC_LIBOBJ invocations to module description.
2207         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
2208         here...
2209         * modules/symlinkat (configure.ac): ... to here.
2210
2211 2011-05-22  Bruno Haible  <bruno@clisp.org>
2212
2213         symlink: Move AC_LIBOBJ invocations to module description.
2214         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
2215         here...
2216         * modules/symlink (configure.ac): ... to here.
2217
2218 2011-05-22  Bruno Haible  <bruno@clisp.org>
2219
2220         strverscmp: Move AC_LIBOBJ invocations to module description.
2221         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
2222         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
2223         from here...
2224         * modules/strverscmp (configure.ac): ... to here.
2225
2226 2011-05-22  Bruno Haible  <bruno@clisp.org>
2227
2228         strtok_r: Move AC_LIBOBJ invocations to module description.
2229         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
2230         and gl_PREREQ_STRTOK_R invocations from here...
2231         * modules/strtok_r (configure.ac): ... to here.
2232         (Depends-on): Update conditions.
2233
2234 2011-05-22  Bruno Haible  <bruno@clisp.org>
2235
2236         strtoumax: Move AC_LIBOBJ invocations to module description.
2237         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
2238         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
2239         from here...
2240         * modules/strtoumax (configure.ac): ... to here.
2241
2242 2011-05-22  Bruno Haible  <bruno@clisp.org>
2243
2244         strtoimax: Move AC_LIBOBJ invocations to module description.
2245         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
2246         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
2247         from here...
2248         * modules/strtoimax (configure.ac): ... to here.
2249
2250 2011-05-22  Bruno Haible  <bruno@clisp.org>
2251
2252         strtoull: Move AC_LIBOBJ invocations to module description.
2253         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
2254         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
2255         from here...
2256         * modules/strtoull (configure.ac): ... to here.
2257
2258 2011-05-22  Bruno Haible  <bruno@clisp.org>
2259
2260         strtoll: Move AC_LIBOBJ invocations to module description.
2261         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
2262         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
2263         here...
2264         * modules/strtoll (configure.ac): ... to here.
2265
2266 2011-05-22  Bruno Haible  <bruno@clisp.org>
2267
2268         strtoul: Move AC_LIBOBJ invocations to module description.
2269         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
2270         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2271         * modules/strtoul (configure.ac): ... to here.
2272
2273 2011-05-22  Bruno Haible  <bruno@clisp.org>
2274
2275         strtol: Move AC_LIBOBJ invocations to module description.
2276         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
2277         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
2278         * modules/strtol (configure.ac): ... to here.
2279
2280 2011-05-22  Bruno Haible  <bruno@clisp.org>
2281
2282         strtod: Move AC_LIBOBJ invocations to module description.
2283         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
2284         invocations from here...
2285         * modules/strtod (configure.ac): ... to here.
2286
2287 2011-05-22  Bruno Haible  <bruno@clisp.org>
2288
2289         strstr*: Move AC_LIBOBJ invocations to module description.
2290         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
2291         invocations from here...
2292         * modules/strstr-simple (configure.ac): ... to here.
2293         * modules/strstr (configure.ac): ... and here.
2294
2295 2011-05-22  Bruno Haible  <bruno@clisp.org>
2296
2297         strsignal: Move AC_LIBOBJ invocations to module description.
2298         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
2299         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
2300         * modules/strsignal (configure.ac): ... to here.
2301         (Depends-on): Update conditions.
2302
2303 2011-05-22  Bruno Haible  <bruno@clisp.org>
2304
2305         strsep: Move AC_LIBOBJ invocations to module description.
2306         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
2307         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
2308         here...
2309         * modules/strsep (configure.ac): ... to here.
2310
2311 2011-05-22  Bruno Haible  <bruno@clisp.org>
2312
2313         strptime: Move AC_LIBOBJ invocations to module description.
2314         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2315         gl_PREREQ_STRPTIME invocations from here...
2316         * modules/strptime (configure.ac): ... to here.
2317
2318 2011-05-22  Bruno Haible  <bruno@clisp.org>
2319
2320         strpbrk: Move AC_LIBOBJ invocations to module description.
2321         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2322         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2323         here...
2324         * modules/strpbrk (configure.ac): ... to here.
2325
2326 2011-05-22  Bruno Haible  <bruno@clisp.org>
2327
2328         strnlen: Move AC_LIBOBJ invocations to module description.
2329         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2330         invocations from here...
2331         * modules/strnlen (configure.ac): ... to here.
2332
2333 2011-05-22  Bruno Haible  <bruno@clisp.org>
2334
2335         strndup: Move AC_LIBOBJ invocations to module description.
2336         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2337         invocations from here...
2338         * modules/strndup (configure.ac): ... to here.
2339         (Depends-on): Update conditions.
2340
2341 2011-05-22  Bruno Haible  <bruno@clisp.org>
2342
2343         strncat: Move AC_LIBOBJ invocations to module description.
2344         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2345         invocations from here...
2346         * modules/strncat (configure.ac): ... to here.
2347
2348 2011-05-22  Bruno Haible  <bruno@clisp.org>
2349
2350         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2351         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2352         invocations from here...
2353         * modules/strdup (configure.ac): ... to here.
2354         * modules/strdup-posix (configure.ac): ... and here.
2355
2356 2011-05-22  Bruno Haible  <bruno@clisp.org>
2357
2358         strcspn: Move AC_LIBOBJ invocations to module description.
2359         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2360         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2361         here...
2362         * modules/strcspn (configure.ac): ... to here.
2363
2364 2011-05-22  Bruno Haible  <bruno@clisp.org>
2365
2366         strchrnul: Move AC_LIBOBJ invocations to module description.
2367         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2368         gl_PREREQ_STRCHRNUL invocations from here...
2369         * modules/strchrnul (configure.ac): ... to here.
2370
2371 2011-05-22  Bruno Haible  <bruno@clisp.org>
2372
2373         strcasestr*: Move AC_LIBOBJ invocations to module description.
2374         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2375         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2376         * modules/strcasestr-simple (configure.ac): ... to here.
2377         * modules/strcasestr (configure.ac): ... and here.
2378
2379 2011-05-22  Bruno Haible  <bruno@clisp.org>
2380
2381         strcase: Move AC_LIBOBJ invocations to module description.
2382         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2383         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2384         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2385         gl_PREREQ_STRNCASECMP invocations from here...
2386         * modules/strcase (configure.ac): ... to here.
2387
2388 2011-05-22  Bruno Haible  <bruno@clisp.org>
2389
2390         stpncpy: Move AC_LIBOBJ invocations to module description.
2391         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2392         here...
2393         * modules/stpncpy (configure.ac): ... to here.
2394
2395 2011-05-22  Bruno Haible  <bruno@clisp.org>
2396
2397         stpcpy: Move AC_LIBOBJ invocations to module description.
2398         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2399         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2400         here...
2401         * modules/stpcpy (configure.ac): ... to here.
2402
2403 2011-05-21  Bruno Haible  <bruno@clisp.org>
2404
2405         stat: Move AC_LIBOBJ invocations to module description.
2406         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2407         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2408         here...
2409         * modules/stat (configure.ac): ... to here.
2410
2411 2011-05-21  Bruno Haible  <bruno@clisp.org>
2412
2413         sleep: Move AC_LIBOBJ invocations to module description.
2414         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2415         * modules/sleep (configure.ac): ... to here.
2416
2417 2011-05-21  Bruno Haible  <bruno@clisp.org>
2418
2419         signbit: Move AC_LIBOBJ invocations to module description.
2420         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2421         * modules/signbit (configure.ac): ... to here.
2422
2423 2011-05-21  Bruno Haible  <bruno@clisp.org>
2424
2425         sigprocmask: Move AC_LIBOBJ invocations to module description.
2426         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2427         gl_PREREQ_SIGPROMASK invocations from here...
2428         * modules/sigprocmask (configure.ac): ... to here.
2429
2430 2011-05-21  Bruno Haible  <bruno@clisp.org>
2431
2432         sigaction: Move AC_LIBOBJ invocations to module description.
2433         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2434         gl_PREREQ_SIGACTION invocations from here...
2435         * modules/sigaction (configure.ac): ... to here.
2436
2437 2011-05-21  Bruno Haible  <bruno@clisp.org>
2438
2439         sig2str: Move AC_LIBOBJ invocations to module description.
2440         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2441         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2442         here...
2443         * modules/sig2str (configure.ac): ... to here.
2444
2445 2011-05-21  Bruno Haible  <bruno@clisp.org>
2446
2447         setlocale: Move AC_LIBOBJ invocations to module description.
2448         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2449         gl_PREREQ_SETLOCALE invocations from here...
2450         * modules/setlocale (configure.ac): ... to here.
2451
2452 2011-05-21  Bruno Haible  <bruno@clisp.org>
2453
2454         unsetenv: Move AC_LIBOBJ invocations to module description.
2455         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2456         and gl_PREREQ_UNSETENV invocations from here...
2457         * modules/unsetenv (configure.ac): ... to here.
2458         (Depends-on): Update.
2459
2460 2011-05-21  Bruno Haible  <bruno@clisp.org>
2461
2462         setenv: Move AC_LIBOBJ invocations to module description.
2463         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2464         here...
2465         * modules/setenv (configure.ac): ... to here.
2466
2467 2011-05-21  Bruno Haible  <bruno@clisp.org>
2468
2469         selinux-h: Move AC_LIBOBJ invocations to module description.
2470         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2471         AC_LIBOBJ invocation from here...
2472         * modules/selinux-h (configure.ac): ... to here.
2473
2474 2011-05-21  Bruno Haible  <bruno@clisp.org>
2475
2476         select: Respect rules for use of AC_LIBOBJ.
2477         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2478         here...
2479         * modules/select (configure.ac): ... to here.
2480
2481 2011-05-21  Bruno Haible  <bruno@clisp.org>
2482
2483         scandir: Move AC_LIBOBJ invocations to module description.
2484         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2485         invocations from here...
2486         * modules/scandir (configure.ac): ... to here.
2487
2488 2011-05-21  Bruno Haible  <bruno@clisp.org>
2489
2490         rpmatch: Move AC_LIBOBJ invocations to module description.
2491         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2492         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2493         here...
2494         * modules/rpmatch (configure.ac): ... to here.
2495
2496 2011-05-21  Bruno Haible  <bruno@clisp.org>
2497
2498         rmdir: Respect rules for use of AC_LIBOBJ.
2499         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2500         * modules/rmdir (configure.ac): ... to here.
2501
2502 2011-05-21  Bruno Haible  <bruno@clisp.org>
2503
2504         renameat: Move AC_LIBOBJ invocations to module description.
2505         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2506         here...
2507         * modules/renameat (configure.ac): ... to here.
2508
2509 2011-05-21  Bruno Haible  <bruno@clisp.org>
2510
2511         rename: Respect rules for use of AC_LIBOBJ.
2512         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2513         here...
2514         * modules/rename (configure.ac): ... to here.
2515
2516 2011-05-21  Bruno Haible  <bruno@clisp.org>
2517
2518         remove: Move AC_LIBOBJ invocations to module description.
2519         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2520         here...
2521         * modules/remove (configure.ac): ... to here.
2522
2523 2011-05-21  Bruno Haible  <bruno@clisp.org>
2524
2525         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2526         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
2527         macro.
2528         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
2529         * modules/relocatable-lib (configure.ac): ... to here.
2530         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2531         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
2532
2533 2011-05-21  Bruno Haible  <bruno@clisp.org>
2534
2535         relocatable-prog: Move AC_LIBOBJ invocations to module description.
2536         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
2537         here...
2538         * modules/relocatable-prog (configure.ac): ... to here.
2539
2540 2011-05-21  Bruno Haible  <bruno@clisp.org>
2541
2542         regex: Move AC_LIBOBJ invocations to module description.
2543         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
2544         invocations from here...
2545         * modules/regex (configure.ac): ... to here.
2546
2547 2011-05-21  Bruno Haible  <bruno@clisp.org>
2548
2549         realloc-*: Move AC_LIBOBJ invocations to module description.
2550         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
2551         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
2552         AC_LIBOBJ invocations from here...
2553         * modules/realloc-gnu (configure.ac): ... to here.
2554         * modules/realloc-posix (configure.ac): ... and here.
2555
2556 2011-05-21  Bruno Haible  <bruno@clisp.org>
2557
2558         readutmp: Move AC_LIBOBJ invocations to module description.
2559         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
2560         * modules/readutmp (configure.ac): ... to here.
2561
2562 2011-05-21  Bruno Haible  <bruno@clisp.org>
2563
2564         readlinkat: Move AC_LIBOBJ invocations to module description.
2565         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
2566         here...
2567         * modules/readlinkat (configure.ac): ... to here.
2568
2569 2011-05-21  Bruno Haible  <bruno@clisp.org>
2570
2571         readlink: Move AC_LIBOBJ invocations to module description.
2572         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
2573         gl_PREREQ_READLINK invocations from here...
2574         * modules/readlink (configure.ac): ... to here.
2575
2576 2011-05-21  Bruno Haible  <bruno@clisp.org>
2577
2578         readline: Move AC_LIBOBJ invocations to module description.
2579         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
2580         gl_PREREQ_READLINE invocations from here...
2581         * modules/readline (configure.ac): ... to here.
2582
2583 2011-05-21  Bruno Haible  <bruno@clisp.org>
2584
2585         read: Move AC_LIBOBJ invocations to module description.
2586         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
2587         * modules/read (configure.ac): ... to here.
2588
2589 2011-05-21  Bruno Haible  <bruno@clisp.org>
2590
2591         rawmemchr: Move AC_LIBOBJ invocations to module description.
2592         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
2593         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
2594         from here...
2595         * modules/rawmemchr (configure.ac): ... to here.
2596
2597 2011-05-21  Bruno Haible  <bruno@clisp.org>
2598
2599         random_r: Move AC_LIBOBJ invocations to module description.
2600         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
2601         gl_PREREQ_RANDOM_R invocations from here...
2602         * modules/random_r (configure.ac): ... to here.
2603
2604 2011-05-21  Bruno Haible  <bruno@clisp.org>
2605
2606         pwrite: Move AC_LIBOBJ invocations to module description.
2607         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
2608         * modules/pwrite (configure.ac): ... to here.
2609
2610 2011-05-21  Bruno Haible  <bruno@clisp.org>
2611
2612         putenv: Move AC_LIBOBJ invocations to module description.
2613         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
2614         * modules/putenv (configure.ac): ... to here.
2615
2616 2011-05-21  Bruno Haible  <bruno@clisp.org>
2617
2618         login_tty: Move AC_LIBOBJ invocations to module description.
2619         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2620         * modules/login_tty (configure.ac): ... to here.
2621
2622 2011-05-21  Bruno Haible  <bruno@clisp.org>
2623
2624         openpty: Move AC_LIBOBJ invocations to module description.
2625         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2626         * modules/openpty (configure.ac): ... to here.
2627
2628 2011-05-21  Bruno Haible  <bruno@clisp.org>
2629
2630         forkpty: Move AC_LIBOBJ invocations to module description.
2631         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2632         * modules/forkpty (configure.ac): ... to here.
2633
2634 2011-05-21  Bruno Haible  <bruno@clisp.org>
2635
2636         ptsname: Move AC_LIBOBJ invocations to module description.
2637         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2638         invocations from here...
2639         * modules/ptsname (configure.ac): ... to here.
2640
2641 2011-05-21  Bruno Haible  <bruno@clisp.org>
2642
2643         pread: Move AC_LIBOBJ invocations to module description.
2644         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2645         * modules/pread (configure.ac): ... to here.
2646
2647 2011-05-21  Bruno Haible  <bruno@clisp.org>
2648
2649         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2650         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2651         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2652         * modules/posix_spawn (configure.ac): ... to here.
2653         * modules/posix_spawnp (configure.ac): ... and here.
2654
2655 2011-05-21  Bruno Haible  <bruno@clisp.org>
2656
2657         popen: Move AC_LIBOBJ invocations to module description.
2658         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2659         invocations from here...
2660         * modules/popen (configure.ac): ... to here.
2661
2662 2011-05-21  Bruno Haible  <bruno@clisp.org>
2663
2664         poll: Move AC_LIBOBJ invocations to module description.
2665         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2666         invocations from here...
2667         * modules/poll (configure.ac): ... to here.
2668
2669 2011-05-21  Bruno Haible  <bruno@clisp.org>
2670
2671         pipe-posix: Move AC_LIBOBJ invocations to module description.
2672         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2673         * modules/pipe-posix (configure.ac): ... to here.
2674
2675 2011-05-21  Bruno Haible  <bruno@clisp.org>
2676
2677         openat: Respect rules for use of AC_LIBOBJ.
2678         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2679         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2680         * modules/openat (configure.ac): ... to here.
2681
2682 2011-05-21  Bruno Haible  <bruno@clisp.org>
2683
2684         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2685         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2686         invocation from here...
2687         * modules/obstack-printf (configure.ac): ... to here.
2688         * modules/obstack-printf-posix (configure.ac): ... and here.
2689
2690 2011-05-21  Bruno Haible  <bruno@clisp.org>
2691
2692         nl_langinfo: Move AC_LIBOBJ invocations to module description.
2693         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
2694         from here...
2695         * modules/nl_langinfo (configure.ac): ... to here.
2696
2697 2011-05-21  Bruno Haible  <bruno@clisp.org>
2698
2699         nanosleep: Move AC_LIBOBJ invocations to module description.
2700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
2701         gl_PREREQ_NANOSLEEP invocations from here...
2702         * modules/nanosleep (configure.ac): ... to here.
2703
2704 2011-05-21  Bruno Haible  <bruno@clisp.org>
2705
2706         mountlist: Move AC_LIBOBJ invocations to module description.
2707         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
2708         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
2709         * modules/mountlist (configure.ac): ... to here.
2710
2711 2011-05-21  Bruno Haible  <bruno@clisp.org>
2712
2713         mktime: Respect rules for use of AC_LIBOBJ.
2714         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
2715         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
2716         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
2717         (gl_FUNC_MKTIME_INTERNAL): ... and here...
2718         * modules/mktime (configure.ac): ... to here.
2719         * modules/mktime-internal (configure.ac): ... and here.
2720         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
2721
2722 2011-05-21  Bruno Haible  <bruno@clisp.org>
2723
2724         mkstemps: Move AC_LIBOBJ invocations to module description.
2725         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
2726         here...
2727         * modules/mkstemps (configure.ac): ... to here.
2728
2729 2011-05-21  Bruno Haible  <bruno@clisp.org>
2730
2731         mkstemp: Move AC_LIBOBJ invocations to module description.
2732         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
2733         gl_PREREQ_MKSTEMP invocations from here...
2734         * modules/mkstemp (configure.ac): ... to here.
2735
2736 2011-05-21  Bruno Haible  <bruno@clisp.org>
2737
2738         mkostemps: Move AC_LIBOBJ invocations to module description.
2739         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
2740         here...
2741         * modules/mkostemps (configure.ac): ... to here.
2742
2743 2011-05-21  Bruno Haible  <bruno@clisp.org>
2744
2745         mkostemp: Move AC_LIBOBJ invocations to module description.
2746         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
2747         gl_PREREQ_MKOSTEMP invocations from here...
2748         * modules/mkostemp (configure.ac): ... to here.
2749
2750 2011-05-21  Bruno Haible  <bruno@clisp.org>
2751
2752         mknod: Move AC_LIBOBJ invocations to module description.
2753         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
2754         * modules/mknod (configure.ac): ... to here.
2755
2756 2011-05-21  Bruno Haible  <bruno@clisp.org>
2757
2758         mkfifoat: Move AC_LIBOBJ invocations to module description.
2759         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
2760         here...
2761         * modules/mkfifoat (configure.ac): ... to here.
2762
2763 2011-05-21  Bruno Haible  <bruno@clisp.org>
2764
2765         mkfifo: Respect rules for use of AC_LIBOBJ.
2766         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
2767         here...
2768         * modules/mkfifo (configure.ac): ... to here.
2769
2770 2011-05-21  Bruno Haible  <bruno@clisp.org>
2771
2772         mkdtemp: Move AC_LIBOBJ invocations to module description.
2773         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
2774         invocations from here...
2775         * modules/mkdtemp (configure.ac): ... to here.
2776
2777 2011-05-21  Bruno Haible  <bruno@clisp.org>
2778
2779         mkdir: Move AC_LIBOBJ invocations to module description.
2780         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
2781         * modules/mkdir (configure.ac): ... to here.
2782
2783 2011-05-21  Bruno Haible  <bruno@clisp.org>
2784
2785         memset: Move AC_LIBOBJ invocations to module description.
2786         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
2787         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
2788         here...
2789         * modules/memset (configure.ac): ... to here.
2790
2791 2011-05-21  Bruno Haible  <bruno@clisp.org>
2792
2793         memrchr: Move AC_LIBOBJ invocations to module description.
2794         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
2795         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
2796         here...
2797         * modules/memrchr (configure.ac): ... to here.
2798
2799 2011-05-21  Bruno Haible  <bruno@clisp.org>
2800
2801         mempcpy: Move AC_LIBOBJ invocations to module description.
2802         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
2803         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
2804         here...
2805         * modules/mempcpy (configure.ac): ... to here.
2806
2807 2011-05-21  Bruno Haible  <bruno@clisp.org>
2808
2809         memmove: Move AC_LIBOBJ invocations to module description.
2810         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
2811         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
2812         here...
2813         * modules/memmove (configure.ac): ... to here.
2814
2815 2011-05-21  Bruno Haible  <bruno@clisp.org>
2816
2817         memmem*: Move AC_LIBOBJ invocations to module description.
2818         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
2819         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
2820         here...
2821         (gl_FUNC_MEMMEM): ... and here...
2822         * modules/memmem-simple (configure.ac): ... to here.
2823         * modules/memmem (configure.ac): ... and here.
2824
2825 2011-05-21  Bruno Haible  <bruno@clisp.org>
2826
2827         memcpy: Move AC_LIBOBJ invocations to module description.
2828         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
2829         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
2830         here...
2831         * modules/memcpy (configure.ac): ... to here.
2832
2833 2011-05-21  Bruno Haible  <bruno@clisp.org>
2834
2835         memcmp: Simplify autoconf macro.
2836         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
2837         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
2838         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
2839
2840 2011-05-21  Bruno Haible  <bruno@clisp.org>
2841
2842         memcmp: Move AC_LIBOBJ invocations to module description.
2843         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
2844         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
2845         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
2846         * modules/memcmp (configure.ac): ... to here.
2847         (Depends-on): Update conditions.
2848
2849 2011-05-21  Bruno Haible  <bruno@clisp.org>
2850
2851         memchr: Respect rules for use of AC_LIBOBJ.
2852         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
2853         invocations from here...
2854         * modules/memchr (configure.ac): ... to here.
2855
2856 2011-05-21  Bruno Haible  <bruno@clisp.org>
2857
2858         mbtowc: Move AC_LIBOBJ invocations to module description.
2859         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
2860         invocations from here...
2861         * modules/mbtowc (configure.ac): ... to here.
2862
2863 2011-05-21  Bruno Haible  <bruno@clisp.org>
2864
2865         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
2866         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
2867         gl_PREREQ_MBSRTOWCS invocations from here...
2868         * modules/mbsrtowcs (configure.ac): ... to here.
2869
2870 2011-05-21  Bruno Haible  <bruno@clisp.org>
2871
2872         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
2873         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
2874         gl_PREREQ_MBSNRTOWCS invocations from here...
2875         * modules/mbsnrtowcs (configure.ac): ... to here.
2876
2877 2011-05-21  Bruno Haible  <bruno@clisp.org>
2878
2879         mbsinit: Move AC_LIBOBJ invocations to module description.
2880         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
2881         invocations from here...
2882         * modules/mbsinit (configure.ac): ... to here.
2883
2884 2011-05-21  Bruno Haible  <bruno@clisp.org>
2885
2886         mbrlen: Move AC_LIBOBJ invocations to module description.
2887         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
2888         invocations from here...
2889         * modules/mbrlen (configure.ac): ... to here.
2890
2891 2011-05-21  Bruno Haible  <bruno@clisp.org>
2892
2893         mbrtowc: Respect rules for use of AC_LIBOBJ.
2894         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
2895         invocations from here...
2896         * modules/mbrtowc (configure.ac): ... to here.
2897
2898 2011-05-21  Bruno Haible  <bruno@clisp.org>
2899
2900         malloc-*: Move AC_LIBOBJ invocations to module description.
2901         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
2902         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
2903         AC_LIBOBJ invocations from here...
2904         * modules/malloc-gnu (configure.ac): ... to here.
2905         * modules/malloc-posix (configure.ac): ... and here.
2906
2907 2011-05-21  Bruno Haible  <bruno@clisp.org>
2908
2909         lstat, openat: Respect rules for use of AC_LIBOBJ.
2910         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
2911         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
2912         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
2913         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
2914         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
2915         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
2916         here.
2917         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2918
2919 2011-05-21  Bruno Haible  <bruno@clisp.org>
2920
2921         lseek: Move AC_LIBOBJ invocations to module description.
2922         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
2923         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2924         * modules/lseek (configure.ac): ... to here.
2925
2926 2011-05-21  Bruno Haible  <bruno@clisp.org>
2927
2928         linkat: Move AC_LIBOBJ invocations to module description.
2929         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
2930         here...
2931         * modules/linkat (configure.ac): ... to here.
2932
2933 2011-05-21  Bruno Haible  <bruno@clisp.org>
2934
2935         link: Respect rules for use of AC_LIBOBJ.
2936         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
2937         * modules/link (configure.ac): ... to here.
2938
2939 2011-05-21  Bruno Haible  <bruno@clisp.org>
2940
2941         lchown: Move AC_LIBOBJ invocations to module description.
2942         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2943         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2944         * modules/lchown (configure.ac): ... to here.
2945
2946 2011-05-21  Bruno Haible  <bruno@clisp.org>
2947
2948         iswctype: Move AC_LIBOBJ invocations to module description.
2949         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
2950         here...
2951         * modules/iswctype (configure.ac): ... to here.
2952
2953 2011-05-21  Bruno Haible  <bruno@clisp.org>
2954
2955         iswblank: Move AC_LIBOBJ invocations to module description.
2956         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
2957         here...
2958         * modules/iswblank (configure.ac): ... to here.
2959
2960 2011-05-21  Bruno Haible  <bruno@clisp.org>
2961
2962         atanl: Move AC_LIBOBJ invocations to module description.
2963         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
2964         * modules/atanl (configure.ac): ... to here.
2965
2966 2011-05-21  Bruno Haible  <bruno@clisp.org>
2967
2968         acosl: Move AC_LIBOBJ invocations to module description.
2969         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
2970         * modules/acosl (configure.ac): ... to here.
2971
2972 2011-05-21  Bruno Haible  <bruno@clisp.org>
2973
2974         asinl: Respect rules for use of AC_LIBOBJ.
2975         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
2976         * modules/asinl (configure.ac): ... to here.
2977
2978 2011-05-21  Bruno Haible  <bruno@clisp.org>
2979
2980         tanl: Move AC_LIBOBJ invocations to module description.
2981         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
2982         * modules/tanl (configure.ac): ... to here.
2983
2984 2011-05-21  Bruno Haible  <bruno@clisp.org>
2985
2986         cosl: Move AC_LIBOBJ invocations to module description.
2987         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
2988         * modules/cosl (configure.ac): ... to here.
2989
2990 2011-05-21  Bruno Haible  <bruno@clisp.org>
2991
2992         sinl: Move AC_LIBOBJ invocations to module description.
2993         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
2994         * modules/sinl (configure.ac): ... to here.
2995
2996 2011-05-21  Bruno Haible  <bruno@clisp.org>
2997
2998         logl: Move AC_LIBOBJ invocations to module description.
2999         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
3000         * modules/logl (configure.ac): ... to here.
3001
3002 2011-05-21  Bruno Haible  <bruno@clisp.org>
3003
3004         expl: Move AC_LIBOBJ invocations to module description.
3005         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
3006         * modules/expl (configure.ac): ... to here.
3007
3008 2011-05-21  Bruno Haible  <bruno@clisp.org>
3009
3010         roundl: Move AC_LIBOBJ invocations to module description.
3011         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
3012         * modules/roundl (configure.ac): ... to here.
3013
3014 2011-05-21  Bruno Haible  <bruno@clisp.org>
3015
3016         round: Move AC_LIBOBJ invocations to module description.
3017         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
3018         * modules/round (configure.ac): ... to here.
3019
3020 2011-05-21  Bruno Haible  <bruno@clisp.org>
3021
3022         roundf: Move AC_LIBOBJ invocations to module description.
3023         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
3024         * modules/roundf (configure.ac): ... to here.
3025
3026 2011-05-21  Bruno Haible  <bruno@clisp.org>
3027
3028         truncl: Move AC_LIBOBJ invocations to module description.
3029         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
3030         * modules/truncl (configure.ac): ... to here.
3031
3032 2011-05-21  Bruno Haible  <bruno@clisp.org>
3033
3034         trunc: Move AC_LIBOBJ invocations to module description.
3035         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
3036         * modules/trunc (configure.ac): ... to here.
3037
3038 2011-05-21  Bruno Haible  <bruno@clisp.org>
3039
3040         truncf: Move AC_LIBOBJ invocations to module description.
3041         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
3042         * modules/truncf (configure.ac): ... to here.
3043
3044 2011-05-21  Bruno Haible  <bruno@clisp.org>
3045
3046         ceill: Move AC_LIBOBJ invocations to module description.
3047         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
3048         * modules/ceill (configure.ac): ... to here.
3049
3050 2011-05-21  Bruno Haible  <bruno@clisp.org>
3051
3052         ceil: Move AC_LIBOBJ invocations to module description.
3053         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
3054         * modules/ceil (configure.ac): ... to here.
3055
3056 2011-05-21  Bruno Haible  <bruno@clisp.org>
3057
3058         ceilf: Move AC_LIBOBJ invocations to module description.
3059         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
3060         * modules/ceilf (configure.ac): ... to here.
3061
3062 2011-05-21  Bruno Haible  <bruno@clisp.org>
3063
3064         floorl: Respect rules for use of AC_LIBOBJ.
3065         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
3066         * modules/floorl (configure.ac): ... to here.
3067
3068 2011-05-21  Bruno Haible  <bruno@clisp.org>
3069
3070         floor: Respect rules for use of AC_LIBOBJ.
3071         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
3072         * modules/floor (configure.ac): ... to here.
3073
3074 2011-05-21  Bruno Haible  <bruno@clisp.org>
3075
3076         floorf: Move AC_LIBOBJ invocations to module description.
3077         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
3078         * modules/floorf (configure.ac): ... to here.
3079
3080 2011-05-20  Bruno Haible  <bruno@clisp.org>
3081
3082         sqrtl: Respect rules for use of AC_LIBOBJ.
3083         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
3084         * modules/sqrtl (configure.ac): ... to here.
3085
3086 2011-05-20  Bruno Haible  <bruno@clisp.org>
3087
3088         ldexpl: Respect rules for use of AC_LIBOBJ.
3089         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
3090         * modules/ldexpl (configure.ac): ... to here.
3091
3092 2011-05-20  Bruno Haible  <bruno@clisp.org>
3093
3094         frexpl*: Respect rules for use of AC_LIBOBJ.
3095         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
3096         invocation from here...
3097         * modules/frexpl (configure.ac): ... to here.
3098         * modules/frexpl-nolibm (configure.ac): ... and here.
3099
3100 2011-05-20  Bruno Haible  <bruno@clisp.org>
3101
3102         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
3103         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
3104         invocation from here...
3105         * modules/frexp (configure.ac): ... to here.
3106         * modules/frexp-nolibm (configure.ac): ... and here.
3107
3108 2011-05-20  Bruno Haible  <bruno@clisp.org>
3109
3110         isnan: Respect rules for use of AC_LIBOBJ.
3111         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
3112         invocations here.
3113         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
3114         REPLACE_ISNAN.
3115         * modules/isnand (configure.ac): Likewise.
3116         * modules/isnanl (configure.ac): Likewise.
3117
3118 2011-05-20  Bruno Haible  <bruno@clisp.org>
3119
3120         isnanl*: Respect rules for use of AC_LIBOBJ.
3121         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
3122         invocation from here...
3123         * modules/isnanl (configure.ac): ... to here.
3124         * modules/isnanl-nolibm (configure.ac): ... and here.
3125
3126 2011-05-20  Bruno Haible  <bruno@clisp.org>
3127
3128         isnand*: Move AC_LIBOBJ invocations to module description.
3129         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
3130         invocation from here...
3131         * modules/isnand (configure.ac): ... to here.
3132         * modules/isnand-nolibm (configure.ac): ... and here.
3133
3134 2011-05-20  Bruno Haible  <bruno@clisp.org>
3135
3136         isnanf*: Move AC_LIBOBJ invocations to module description.
3137         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
3138         invocation from here...
3139         * modules/isnanf (configure.ac): ... to here.
3140         * modules/isnanf-nolibm (configure.ac): ... and here.
3141
3142 2011-05-20  Bruno Haible  <bruno@clisp.org>
3143
3144         isnan*: Separate the AC_LIBOBJ invocations.
3145         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
3146         AC_LIBOBJ invocation.
3147         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
3148         here.
3149         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
3150         AC_LIBOBJ invocation.
3151         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
3152         here.
3153         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
3154         AC_LIBOBJ invocation.
3155         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
3156         here.
3157         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
3158
3159 2011-05-08  Bruno Haible  <bruno@clisp.org>
3160
3161         isinf: Move AC_LIBOBJ invocations to module description.
3162         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
3163         * modules/isinf (configure.ac): ... to here.
3164
3165 2011-05-08  Bruno Haible  <bruno@clisp.org>
3166
3167         isfinite: Move AC_LIBOBJ invocations to module description.
3168         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
3169         * modules/isfinite (configure.ac): ... to here.
3170
3171 2011-05-08  Bruno Haible  <bruno@clisp.org>
3172
3173         isblank: Move AC_LIBOBJ invocations to module description.
3174         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
3175         here...
3176         * modules/isblank (configure.ac): ... to here.
3177
3178 2011-05-08  Bruno Haible  <bruno@clisp.org>
3179
3180         isapipe: Move AC_LIBOBJ invocations to module description.
3181         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
3182         gl_PREREQ_ISAPIPE invocations from here...
3183         * modules/isapipe (configure.ac): ... to here.
3184         (Depends-on): Update condition.
3185
3186 2011-05-08  Bruno Haible  <bruno@clisp.org>
3187
3188         ioctl: Move AC_LIBOBJ invocations to module description.
3189         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
3190         invocations from here...
3191         * modules/ioctl (configure.ac): ... to here.
3192         (Depends-on): Update condition.
3193
3194 2011-05-08  Bruno Haible  <bruno@clisp.org>
3195
3196         imaxdiv: Move AC_LIBOBJ invocations to module description.
3197         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
3198         invocations from here...
3199         * modules/imaxdiv (configure.ac): ... to here.
3200
3201 2011-05-08  Bruno Haible  <bruno@clisp.org>
3202
3203         imaxabs: Move AC_LIBOBJ invocations to module description.
3204         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
3205         invocations from here...
3206         * modules/imaxabs (configure.ac): ... to here.
3207
3208 2011-05-08  Bruno Haible  <bruno@clisp.org>
3209
3210         getaddrinfo: Move AC_LIBOBJ invocations to module description.
3211         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
3212         AC_LIBOBJ invocations from here...
3213         * modules/getaddrinfo (configure.ac): ... to here.
3214         (Depends-on): Add conditions.
3215
3216 2011-05-08  Bruno Haible  <bruno@clisp.org>
3217
3218         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3219         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
3220         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3221         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
3222         (gl_PREREQ_INET_PTON): ... from here.
3223         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
3224         gl_PREREQ_INET_PTON here.
3225         (Depends-on): Update condition.
3226
3227 2011-05-08  Bruno Haible  <bruno@clisp.org>
3228
3229         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
3230         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
3231         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
3232         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
3233         (gl_PREREQ_INET_NTOP): ... from here.
3234         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
3235         gl_PREREQ_INET_NTOP here.
3236         (Depends-on): Update condition.
3237
3238 2011-05-08  Bruno Haible  <bruno@clisp.org>
3239
3240         iconv_open: Move AC_LIBOBJ invocations to module description.
3241         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
3242         AC_LIBOBJ invocations from here...
3243         * modules/iconv_open (configure.ac): ... to here.
3244
3245 2011-05-08  Bruno Haible  <bruno@clisp.org>
3246
3247         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
3248         If module 'iconv_open' is among the main modules and module
3249         'iconv_open-utf' is among the tests dependencies, then
3250         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
3251         return the special iconv_t values. Therefore iconv() and iconv_close()
3252         must support these special iconv_t values, already in lib, not only in
3253         tests.
3254         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
3255         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
3256         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
3257         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
3258         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
3259         (Depends-on): Add the dependencies of iconv_open-utf.
3260         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
3261         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
3262         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
3263
3264 2011-05-08  Bruno Haible  <bruno@clisp.org>
3265
3266         group-member: Move AC_LIBOBJ invocations to module description.
3267         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
3268         gl_PREREQ_GROUP_MEMBER invocations from here...
3269         * modules/group-member (configure.ac): ... to here.
3270
3271 2011-05-08  Bruno Haible  <bruno@clisp.org>
3272
3273         grantpt: Move AC_LIBOBJ invocations to module description.
3274         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
3275         invocations from here...
3276         * modules/grantpt (configure.ac): ... to here.
3277
3278 2011-05-08  Bruno Haible  <bruno@clisp.org>
3279
3280         glob: Move AC_LIBOBJ invocations to module description.
3281         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
3282         from here...
3283         * modules/glob (configure.ac): ... to here.
3284
3285 2011-05-08  Bruno Haible  <bruno@clisp.org>
3286
3287         getusershell: Move AC_LIBOBJ invocations to module description.
3288         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
3289         Move AC_LIBOBJ invocation from here...
3290         * modules/getusershell (configure.ac): ... to here.
3291         (Depends-on): Update condition.
3292
3293 2011-05-08  Bruno Haible  <bruno@clisp.org>
3294
3295         gettimeofday: Move AC_LIBOBJ invocations to module description.
3296         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3297         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
3298         gl_PREREQ_GETTIMEOFDAY invocations from here...
3299         * modules/gettimeofday (configure.ac): ... to here.
3300
3301 2011-05-08  Bruno Haible  <bruno@clisp.org>
3302
3303         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
3304         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
3305         just gl_FUNC_TZSET.
3306         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
3307         (gl_FUNC_TZSET_CLOBBER): Remove actions.
3308         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3309         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3310
3311 2011-05-08  Bruno Haible  <bruno@clisp.org>
3312
3313         getsubopt: Move AC_LIBOBJ invocations to module description.
3314         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3315         gl_PREREQ_GETSUBOPT invocations from here...
3316         * modules/getsubopt (configure.ac): ... to here.
3317
3318 2011-05-08  Bruno Haible  <bruno@clisp.org>
3319
3320         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3321         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3322         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3323         * modules/getpass-gnu (configure.ac): ... to here.
3324
3325 2011-05-08  Bruno Haible  <bruno@clisp.org>
3326
3327         getpass: Move AC_LIBOBJ invocations to module description.
3328         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3329         gl_PREREQ_GETPASS invocations from here...
3330         * modules/getpass (configure.ac): ... to here.
3331
3332 2011-05-08  Bruno Haible  <bruno@clisp.org>
3333
3334         getpagesize: Move AC_LIBOBJ invocations to module description.
3335         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3336         from here...
3337         * modules/getpagesize (configure.ac): ... to here.
3338
3339 2011-05-08  Bruno Haible  <bruno@clisp.org>
3340
3341         getopt: Move AC_LIBOBJ invocations to module description.
3342         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3343         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3344         invocations from here...
3345         * modules/getopt-gnu (configure.ac): ... to here.
3346         * modules/getopt-posix (configure.ac): ... and here.
3347         (Depends-on): Update condition.
3348
3349 2011-05-08  Bruno Haible  <bruno@clisp.org>
3350
3351         getopt, argp: Respect rules for use of AC_LIBOBJ.
3352         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3353         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3354         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3355         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3356
3357 2011-05-08  Bruno Haible  <bruno@clisp.org>
3358
3359         getlogin_r: Move AC_LIBOBJ invocations to module description.
3360         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3361         gl_PREREQ_GETLOGIN_R invocations from here...
3362         * modules/getlogin_r (configure.ac): ... to here.
3363
3364 2011-05-08  Bruno Haible  <bruno@clisp.org>
3365
3366         getlogin: Move AC_LIBOBJ invocations to module description.
3367         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3368         here...
3369         * modules/getlogin (configure.ac): ... to here.
3370
3371 2011-05-08  Bruno Haible  <bruno@clisp.org>
3372
3373         getloadavg: Move AC_LIBOBJ invocations to module description.
3374         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3375         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3376         * modules/getloadavg (configure.ac): ... to here.
3377
3378 2011-05-08  Bruno Haible  <bruno@clisp.org>
3379
3380         gethrxtime: Move AC_LIBOBJ invocations to module description.
3381         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3382         LIB_GETHRXTIME from here...
3383         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3384         invocations from here...
3385         * modules/gethrxtime (configure.ac): ... to here.
3386
3387 2011-05-08  Bruno Haible  <bruno@clisp.org>
3388
3389         gethostname: Move AC_LIBOBJ invocations to module description.
3390         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3391         gl_PREREQ_GETHOSTNAME invocations from here...
3392         * modules/gethostname (configure.ac): ... to here.
3393
3394 2011-05-08  Bruno Haible  <bruno@clisp.org>
3395
3396         getgroups: Move AC_LIBOBJ invocations to module description.
3397         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3398         here...
3399         * modules/getgroups (configure.ac): ... to here.
3400
3401 2011-05-08  Bruno Haible  <bruno@clisp.org>
3402
3403         getdtablesize: Move AC_LIBOBJ invocations to module description.
3404         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3405         invocation from here...
3406         * modules/getdtablesize (configure.ac): ... to here.
3407
3408 2011-05-08  Bruno Haible  <bruno@clisp.org>
3409
3410         getdomainname: Move AC_LIBOBJ invocations to module description.
3411         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3412         gl_PREREQ_GETDOMAINNAME invocations from here...
3413         * modules/getdomainname (configure.ac): ... to here.
3414
3415 2011-05-08  Bruno Haible  <bruno@clisp.org>
3416
3417         getline: Move AC_LIBOBJ invocations to module description.
3418         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3419         invocations from here...
3420         * modules/getline (configure.ac): ... to here.
3421
3422 2011-05-08  Bruno Haible  <bruno@clisp.org>
3423
3424         getline: Simplify.
3425         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3426         It's already handled through the module dependency.
3427
3428 2011-05-08  Bruno Haible  <bruno@clisp.org>
3429
3430         getdelim: Move AC_LIBOBJ invocations to module description.
3431         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3432         and gl_PREREQ_GETDELIM invocations from here...
3433         * modules/getdelim (configure.ac): ... to here.
3434         (Depends-on): Fix condition.
3435
3436 2011-05-08  Bruno Haible  <bruno@clisp.org>
3437
3438         getcwd: Move AC_LIBOBJ invocations to module description.
3439         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3440         invocations from here...
3441         * modules/getcwd (configure.ac): ... to here.
3442
3443 2011-05-08  Bruno Haible  <bruno@clisp.org>
3444
3445         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3446         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3447         here...
3448         * modules/getcwd-lgpl (configure.ac): ... to here.
3449
3450 2011-05-07  Bruno Haible  <bruno@clisp.org>
3451
3452         crypto/gc: Move AC_LIBOBJ invocations to module description.
3453         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3454         * modules/crypto/gc (configure.ac): ... to here.
3455
3456 2011-05-07  Bruno Haible  <bruno@clisp.org>
3457
3458         fwriting: Move AC_LIBOBJ invocations to module description.
3459         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3460         here...
3461         * modules/fwriting (configure.ac): ... to here.
3462
3463 2011-05-07  Bruno Haible  <bruno@clisp.org>
3464
3465         fwritable: Move AC_LIBOBJ invocations to module description.
3466         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3467         here...
3468         * modules/fwritable (configure.ac): ... to here.
3469
3470 2011-05-07  Bruno Haible  <bruno@clisp.org>
3471
3472         futimens: Move AC_LIBOBJ invocations to module description.
3473         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3474         here...
3475         * modules/futimens (configure.ac): ... to here.
3476
3477 2011-05-07  Bruno Haible  <bruno@clisp.org>
3478
3479         ftruncate: Move AC_LIBOBJ invocations to module description.
3480         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3481         gl_PREREQ_FTRUNCATE invocations from here...
3482         * modules/ftruncate (configure.ac): ... to here.
3483
3484 2011-05-07  Bruno Haible  <bruno@clisp.org>
3485
3486         fsync: Move AC_LIBOBJ invocations to module description.
3487         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3488         invocations from here...
3489         * modules/fsync (configure.ac): ... to here.
3490
3491 2011-05-07  Bruno Haible  <bruno@clisp.org>
3492
3493         fsusage: Move AC_LIBOBJ invocations to module description.
3494         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3495         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3496         * modules/fsusage (configure.ac): ... to here.
3497
3498 2011-05-07  Bruno Haible  <bruno@clisp.org>
3499
3500         freopen: Move AC_LIBOBJ invocations to module description.
3501         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3502         invocations from here...
3503         * modules/freopen (configure.ac): ... to here.
3504
3505 2011-05-07  Bruno Haible  <bruno@clisp.org>
3506
3507         free: Move AC_LIBOBJ invocations to module description.
3508         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3509         invocations from here...
3510         * modules/free (configure.ac): ... to here.
3511
3512 2011-05-07  Bruno Haible  <bruno@clisp.org>
3513
3514         freadable: Move AC_LIBOBJ invocations to module description.
3515         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3516         here...
3517         * modules/freadable (configure.ac): ... to here.
3518
3519 2011-05-07  Bruno Haible  <bruno@clisp.org>
3520
3521         fpurge: Move AC_LIBOBJ invocations to module description.
3522         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3523         invocations from here...
3524         * modules/fpurge (configure.ac): ... to here.
3525
3526 2011-05-07  Bruno Haible  <bruno@clisp.org>
3527
3528         fpending: Move AC_LIBOBJ invocations to module description.
3529         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
3530         gl_FUNC_FPENDING.
3531         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
3532         invocations from here...
3533         * modules/fpending (configure.ac): ... to here.
3534
3535 2011-05-07  Bruno Haible  <bruno@clisp.org>
3536
3537         fopen: Move AC_LIBOBJ invocations to module description.
3538         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
3539         invocations from here...
3540         * modules/fopen (configure.ac): ... to here.
3541
3542 2011-05-07  Bruno Haible  <bruno@clisp.org>
3543
3544         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
3545         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
3546         gl_FUNC_FNMATCH_POSIX.
3547         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
3548         invocations from here...
3549         * modules/fnmatch (configure.ac): ... to here.
3550         * modules/fnmatch-gnu (configure.ac): ... and here.
3551
3552 2011-05-07  Bruno Haible  <bruno@clisp.org>
3553
3554         flock: Move AC_LIBOBJ invocations to module description.
3555         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
3556         invocations from here...
3557         * modules/flock (configure.ac): ... to here.
3558
3559 2011-05-07  Bruno Haible  <bruno@clisp.org>
3560
3561         fileblocks: Move AC_LIBOBJ invocations to module description.
3562         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
3563         gl_PREREQ_FILEBLOCKS invocations from here...
3564         * modules/fileblocks (configure.ac): ... to here.
3565
3566 2011-05-06  Bruno Haible  <bruno@clisp.org>
3567
3568         fflush: Move AC_LIBOBJ invocations to module description.
3569         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
3570         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
3571         invocations from here...
3572         * modules/fflush (configure.ac): ... to here.
3573
3574 2011-05-06  Bruno Haible  <bruno@clisp.org>
3575
3576         fdopendir: Move AC_LIBOBJ invocations to module description.
3577         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
3578         here...
3579         * modules/fdopendir (configure.ac): ... to here.
3580         (Depends-on): Improve conditions.
3581
3582 2011-05-06  Bruno Haible  <bruno@clisp.org>
3583
3584         _Exit: Move AC_LIBOBJ invocations to module description.
3585         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
3586         invocations from here...
3587         * modules/_Exit (configure.ac): ... to here.
3588
3589 2011-05-21  Bruno Haible  <bruno@clisp.org>
3590
3591         euidaccess: Respect rules for use of AC_LIBOBJ.
3592         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3593         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
3594         from here...
3595         * modules/euidaccess (configure.ac): ... to here.
3596
3597 2011-05-06  Bruno Haible  <bruno@clisp.org>
3598
3599         error: Move AC_LIBOBJ invocations to module description.
3600         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
3601         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
3602         invocations from here...
3603         * modules/error (configure.ac): ... to here.
3604
3605 2011-05-06  Bruno Haible  <bruno@clisp.org>
3606
3607         duplocale: Move AC_LIBOBJ invocations to module description.
3608         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
3609         gl_PREREQ_DUPLOCALE invocations from here...
3610         * modules/duplocale (configure.ac): ... to here.
3611
3612 2011-05-05  Bruno Haible  <bruno@clisp.org>
3613
3614         dirfd: Move AC_LIBOBJ invocations to module description.
3615         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
3616         gl_FUNC_DIRFD.
3617         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3618         here...
3619         * modules/dirfd (configure.ac): ... to here.
3620         (Depends-on): Fix condition.
3621
3622 2011-05-05  Bruno Haible  <bruno@clisp.org>
3623
3624         chown: Respect rules for use of AC_LIBOBJ.
3625         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3626         * modules/chown (configure.ac): ... to here.
3627
3628 2011-05-05  Bruno Haible  <bruno@clisp.org>
3629
3630         chdir-long: Move AC_LIBOBJ invocations to module description.
3631         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3632         gl_PREREQ_CHDIR_LONG invocations from here...
3633         * modules/chdir-long (configure.ac): ... to here.
3634
3635 2011-05-05  Bruno Haible  <bruno@clisp.org>
3636
3637         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3638         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3639         from here...
3640         * modules/canonicalize-lgpl (configure.ac): ... to here.
3641
3642 2011-05-05  Bruno Haible  <bruno@clisp.org>
3643
3644         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3645         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3646         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3647         REPLACE_CALLOC.
3648         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3649         * modules/calloc-gnu (configure.ac): Likewise.
3650
3651 2011-05-05  Bruno Haible  <bruno@clisp.org>
3652
3653         btowc: Move AC_LIBOBJ invocations to module description.
3654         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3655         invocations from here...
3656         * modules/btowc (configure.ac): ... to here.
3657
3658 2011-05-21  Bruno Haible  <bruno@clisp.org>
3659
3660         atexit: Move AC_LIBOBJ invocations to module description.
3661         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3662         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3663         here...
3664         * modules/atexit (configure.ac): ... to here.
3665
3666 2011-05-05  Bruno Haible  <bruno@clisp.org>
3667
3668         atoll: Move AC_LIBOBJ invocations to module description.
3669         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3670         invocations from here...
3671         * modules/atoll (configure.ac): ... to here.
3672
3673 2011-05-05  Bruno Haible  <bruno@clisp.org>
3674
3675         argz: Move AC_LIBOBJ invocations to module description.
3676         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3677         * modules/argz (configure.ac): ... to here.
3678
3679 2011-05-05  Bruno Haible  <bruno@clisp.org>
3680
3681         alphasort: Move AC_LIBOBJ invocations to module description.
3682         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3683         gl_PREREQ_ALPHASORT invocations from here...
3684         * modules/alphasort (configure.ac): ... to here.
3685
3686 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3687
3688         verify: new macro verify_expr; verify_true deprecated
3689         * NEWS: Mention this.
3690         * doc/verify.texi (Compile-time Assertions): Document this.
3691         * lib/verify.h (verify_true): Deprecate.
3692         (verify_expr): New macro.
3693         * tests/test-verify.c (function): Test verify_expr.
3694
3695 2011-06-14  Jim Meyering  <meyering@redhat.com>
3696
3697         init.sh: give more portable redirection-related advice in a comment
3698         * tests/init.sh (stderr_fileno_): Update the advice in comments.
3699         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
3700         for lots of discussion.  Stefano Lattarini suggested the solution
3701         of putting "9>&2" after the command.  Reported by Bruno Haible.
3702
3703 2011-06-13  Bruno Haible  <bruno@clisp.org>
3704
3705         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
3706         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
3707         'none'.
3708
3709 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3710
3711         ftoastr: use strtof only if HAVE_STRTOF
3712         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
3713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
3714         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
3715         * modules/ftoastr (configure.ac): Check for strtof.
3716
3717 2011-06-13  Bruno Haible  <bruno@clisp.org>
3718
3719         gnulib-tool: Addendum to 2011-06-08 commit.
3720         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
3721         and --witness-c-macro have been given, augment AM_CPPFLAGS.
3722
3723 2011-06-13  Bruno Haible  <bruno@clisp.org>
3724
3725         fseeko: Provide a non-inline replacement of fseek().
3726         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
3727         * modules/fseeko (Depends-on): Add fseek.
3728         * modules/fseek (License): Change to LGPLv2+.
3729
3730 2011-06-13  Bruno Haible  <bruno@clisp.org>
3731
3732         ftello: Provide a non-inline replacement of ftell().
3733         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
3734         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
3735         not have ftello() (such as on mingw).
3736         * modules/ftello (Depends-on): Add ftell.
3737         * modules/ftell (License): Change to LGPLv2+.
3738
3739 2011-05-07  Bruno Haible  <bruno@clisp.org>
3740
3741         ftell: Move AC_LIBOBJ invocations to module description.
3742         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
3743         * modules/ftell (configure.ac): ... to here.
3744
3745 2011-05-07  Bruno Haible  <bruno@clisp.org>
3746
3747         ftello: Respect rules for use of AC_LIBOBJ.
3748         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
3749         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
3750         here...
3751         * modules/ftello (configure.ac): ... to here.
3752
3753 2011-05-07  Bruno Haible  <bruno@clisp.org>
3754
3755         fseeko: Simplify.
3756         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
3757         (gl_FUNC_FSEEKO): Inline it here.
3758
3759 2011-05-07  Bruno Haible  <bruno@clisp.org>
3760
3761         fseek: Move AC_LIBOBJ invocations to module description.
3762         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
3763         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3764         * modules/fseek (configure.ac): ... to here.
3765
3766 2011-05-07  Bruno Haible  <bruno@clisp.org>
3767
3768         fseek: Respect rules for use of AC_LIBOBJ.
3769         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
3770         here...
3771         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
3772
3773 2011-05-07  Bruno Haible  <bruno@clisp.org>
3774
3775         fseeko: Respect rules for use of AC_LIBOBJ.
3776         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
3777         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
3778         here...
3779         * modules/fseeko (configure.ac): ... to here.
3780
3781 2011-06-13  Bruno Haible  <bruno@clisp.org>
3782
3783         gnulib-tool: Allow comments in the 'Depends-on' section.
3784         * doc/gnulib.texi (Module description): Mention comment syntax in the
3785         Depends-on section.
3786         * gnulib-tool (func_get_dependencies): Filter out comment lines.
3787
3788 2011-06-13  Bruno Haible  <bruno@clisp.org>
3789
3790         file-set.h: guard __attibute__ use, now that it's not always defined
3791         * lib/file-set.h (record_file): Use __attribute__ only with compiler
3792         versions that support it.  This fixes a coreutils build failure with
3793         the vendor cc on HP-UX 11.31.
3794
3795 2011-06-12  Bruno Haible  <bruno@clisp.org>
3796
3797         acl: Add support for HP-UX >= 11.11 JFS ACLs.
3798         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
3799         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
3800         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
3801         (acl, aclsort): New declarations.
3802         (aclv_nontrivial): New declaration.
3803         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
3804         (file_has_acl): Read also the second kind of HP-UX ACLs.
3805         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
3806         kind of HP-UX ACLs if the first kind fails.
3807         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
3808         second kind of HP-UX ACLs.
3809         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
3810         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
3811         agree.
3812         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3813         hpuxjfs.
3814         Handle hpuxjfs.
3815         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3816         hpuxjfs.
3817         Handle hpuxjfs.
3818         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3819         (func_test_same_acls): Use both lsacl and getacl.
3820         Handle hpuxjfs.
3821         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3822         (func_test_same_acls): Use both lsacl and getacl.
3823         Handle hpuxjfs.
3824
3825 2011-06-12  Bruno Haible  <bruno@clisp.org>
3826
3827         acl: Complete the 2010-08-10 fix.
3828         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
3829         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
3830         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
3831         explicitly.
3832         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
3833         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
3834
3835 2011-06-12  Bruno Haible  <bruno@clisp.org>
3836
3837         spawn-pipe tests: Comments.
3838         * tests/test-spawn-pipe-child.c (main): Update comment.
3839         Reported by James Youngman <jay@gnu.org>.
3840
3841 2011-06-11  James Youngman  <jay@gnu.org>
3842
3843         New module 'stat-size'.
3844         * modules/stat-size: New module.  Provides macros for accessing
3845         file size information in instances of struct stat.  Depends on the
3846         fileblocks module because it calls st_blocks.
3847         * lib/stat-size.h: New file, adapted from coreutils' system.h.
3848         * doc/gnulib.texi: Include stat-size.texi.
3849         * doc/stat-size.texi: Documentation for this module.
3850         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
3851         * m4/fileblocks.m4: Mention that stat-size depends on the call to
3852         AC_STRUCT_ST_BLOCKS.
3853
3854 2011-06-09  Bruno Haible  <bruno@clisp.org>
3855
3856         thread: Support pthreads-win32.
3857         * lib/glthread/thread.h (gl_thread_self): Define differently on
3858         pthreads-win32.
3859         (gl_null_thread): New declaration.
3860         (gl_thread_self_pointer): New macro.
3861         * lib/glthread/thread.c (gl_null_thread): New constant.
3862         * tests/test-lock.c: Use gl_thread_self_pointer instead of
3863         gl_thread_self.
3864         * tests/test-tls.c: Likewise.
3865         Suggested by Paul Eggert. Reported by Eric Blake.
3866
3867 2011-06-09  Bruno Haible  <bruno@clisp.org>
3868
3869         thread: Fix confusion between NULL and 0.
3870         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
3871         Reported by Paul Eggert.
3872
3873 2011-06-09  Bruno Haible  <bruno@clisp.org>
3874
3875         spawn-pipe tests: Avoid test failure on HP-UX 11.
3876         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
3877         is closed.
3878
3879 2011-06-09  Bruno Haible  <bruno@clisp.org>
3880
3881         acl tests: Fix compilation error on HP-UX 11.
3882         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
3883
3884 2011-06-09  Bruno Haible  <bruno@clisp.org>
3885
3886         rmdir: Avoid test failure on HP-UX 10.20.
3887         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
3888         EEXIST.
3889
3890 2011-06-08  Eric Blake  <eblake@redhat.com>
3891
3892         perror: fix test on mingw
3893         * modules/perror-tests (Depends-on): Add dup2.
3894
3895         strerror_r-posix: fix on MacOS
3896         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
3897         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
3898         logic bug.
3899         * lib/strerror_r.c (strerror_r): Fix the bug.
3900         * lib/strerror.c (strerror): Likewise.
3901         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3902         problem.
3903         * doc/posix-functions/strerror.texi (strerror): Likewise.
3904         * doc/posix-functions/perror.texi (perror): Likewise.
3905         * tests/test-strerror.c (main): Enhance test.
3906         * tests/test-strerror_r.c (main): Likewise.
3907
3908 2011-06-08  Bruno Haible  <bruno@clisp.org>
3909
3910         gnulib-tool: Better isolation between different gnulib-tool invocations.
3911         * gnulib-tool: New option --witness-c-macro.
3912         (witness_c_macro): New variable.
3913         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
3914         AM_CPPFLAGS define it as a C macro.
3915         (func_emit_tests_Makefile_am): Likewise.
3916         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
3917         read it from there.
3918         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
3919         m4_define, not AC_DEFUN.
3920         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
3921         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
3922         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
3923         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
3924         s|...|...|, to substitute the values of the GNULIB_* module indicator
3925         variables.
3926         * modules/dirent (Makefile.am): Likewise.
3927         * modules/fcntl-h (Makefile.am): Likewise.
3928         * modules/iconv-h (Makefile.am): Likewise.
3929         * modules/langinfo (Makefile.am): Likewise.
3930         * modules/locale (Makefile.am): Likewise.
3931         * modules/math (Makefile.am): Likewise.
3932         * modules/netdb (Makefile.am): Likewise.
3933         * modules/poll-h (Makefile.am): Likewise.
3934         * modules/pty (Makefile.am): Likewise.
3935         * modules/search (Makefile.am): Likewise.
3936         * modules/signal (Makefile.am): Likewise.
3937         * modules/spawn (Makefile.am): Likewise.
3938         * modules/stdio (Makefile.am): Likewise.
3939         * modules/stdlib (Makefile.am): Likewise.
3940         * modules/string (Makefile.am): Likewise.
3941         * modules/sys_ioctl (Makefile.am): Likewise.
3942         * modules/sys_select (Makefile.am): Likewise.
3943         * modules/sys_socket (Makefile.am): Likewise.
3944         * modules/sys_stat (Makefile.am): Likewise.
3945         * modules/sys_times (Makefile.am): Likewise.
3946         * modules/sys_utsname (Makefile.am): Likewise.
3947         * modules/sys_wait (Makefile.am): Likewise.
3948         * modules/termios (Makefile.am): Likewise.
3949         * modules/time (Makefile.am): Likewise.
3950         * modules/unistd (Makefile.am): Likewise.
3951         * modules/wchar (Makefile.am): Likewise.
3952
3953 2011-06-08  Eric Blake  <eblake@redhat.com>
3954
3955         strerror: simplify replacement
3956         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
3957         * modules/strerror (configure.ac): No prereqs needed here...
3958         * modules/strerror-override (configure.ac): ...but this needs it.
3959         (Files): Add file for needed prereq macro.
3960
3961 2011-06-08  Bruno Haible  <bruno@clisp.org>
3962
3963         strerror_r-posix: Tweaks.
3964         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
3965         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
3966         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
3967         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
3968         (gl_FUNC_STRERROR_R): ... to here.
3969         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
3970
3971 2011-06-07  Eric Blake  <eblake@redhat.com>
3972
3973         perror: document fixed bugs
3974         * doc/posix-functions/perror.texi (perror): Document recent
3975         patches.
3976
3977 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3978
3979         stat-time: get_stat_birthtime failure is better-defined
3980         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
3981         return a timestamp whose tv_sec and tv_nsec values are both -1.
3982         Previously, the spec said only that the tv_nsec value was negative.
3983         This upward-compatible change simplifies GNU tar a bit.
3984
3985 2011-06-07  Eric Blake  <eblake@redhat.com>
3986
3987         strerror_r-posix: work around cygwin 1.7.9
3988         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
3989         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
3990         bug without replacing strerror_r.
3991         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
3992         strerror_r is buggy, but without requiring strerror_r compilation.
3993         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
3994
3995         test-perror: relax test to ignore cygwin bug
3996         * tests/test-perror2.c (main): Relax test on requiring detection
3997         of stream errors, and use unbuffered stream.
3998         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
3999         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
4000         * doc/posix-functions/fputc.texi (fputc): Likewise.
4001         * doc/posix-functions/fputs.texi (fputs): Likewise.
4002         * doc/posix-functions/fputws.texi (fputws): Likewise.
4003         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
4004         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
4005         * doc/posix-functions/getopt.texi (getopt): Likewise.
4006         * doc/posix-functions/perror.texi (perror): Likewise.
4007         * doc/posix-functions/printf.texi (printf): Likewise.
4008         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
4009         * doc/posix-functions/psignal.texi (psignal): Likewise.
4010         * doc/posix-functions/putc.texi (putc): Likewise.
4011         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
4012         Likewise.
4013         * doc/posix-functions/putchar.texi (putchar): Likewise.
4014         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
4015         Likewise.
4016         * doc/posix-functions/puts.texi (puts): Likewise.
4017         * doc/posix-functions/putwc.texi (putwc): Likewise.
4018         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
4019         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
4020         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4021         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
4022         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4023         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
4024         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
4025         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
4026
4027 2011-05-22  Bruno Haible  <bruno@clisp.org>
4028
4029         strerror: Move AC_LIBOBJ invocations to module description.
4030         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
4031         gl_PREREQ_STRERROR invocations from here...
4032         * modules/strerror (configure.ac): ... to here.
4033
4034 2011-05-21  Bruno Haible  <bruno@clisp.org>
4035
4036         perror: Use common idiom.
4037         * modules/perror (configure.ac): Reorder statements.
4038
4039 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4040
4041         tests: fix usage message in 'mktempd_'
4042         * tests/init.sh (mktempd_): In the usage message, use literal
4043         'mktempd_', not '$ME' (which is even undefined), as the name of
4044         the subroutine.
4045
4046 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4047
4048         tests init: new function 'fatal_', for hard errors
4049         Before this patch, the only way offered by tests/init.sh to
4050         properly signal a hard error was the `framework_failure_'
4051         function.  But the error message issued by that function,
4052         as its name would suggest, refers to a set-up failure in the
4053         testsuite, while hard errors can obviously also be due to
4054         other reasons.  The best way to fix this inconsistency is to
4055         introduce a new function with a more general error message.
4056         * tests/init.sh (fatal_): New function.
4057
4058 2011-06-06  Eric Blake  <eblake@redhat.com>
4059
4060         canonicalize-lgpl: use common idiom
4061         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
4062         over newer POSIX -Rf.
4063         Reported by Bruno Haible.
4064
4065         canonicalize-lgpl: work around AIX realpath bug
4066         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
4067         * doc/posix-functions/realpath.texi (realpath): Document it.
4068         Reported by Bruno Haible.
4069
4070         strerror: work around FreeBSD bug
4071         * lib/strerror.c (strerror): Special case 0.
4072         Reported by Bruno Haible.
4073
4074         strerror-override: avoid bloating errno module
4075         * modules/errno (Files, configure.ac): Move replacement strings...
4076         * modules/strerror-override: ...to new module.
4077         * modules/strerror (Depends-on): Add strerror-override.
4078         * modules/strerror_r-posix (Depends-on): Likewise.
4079         * MODULES.html.sh: Document new module.
4080         Reported by Bruno Haible.
4081
4082 2011-06-06  Bruno Haible  <bruno@clisp.org>
4083
4084         spawn-pipe tests: Rename program.
4085         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
4086         * tests/test-spawn-pipe-child.c: Update comment.
4087         * tests/test-spawn-pipe.sh: Update.
4088         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
4089
4090         spawn-pipe tests: Link the child program only against libc.
4091         * tests/test-spawn-pipe-child.c: New file, extracted from
4092         tests/test-spawn-pipe.c.
4093         (main): Expect only one argument.
4094         (is_open): New function, copied from tests/test-pipe.c.
4095         * tests/test-spawn-pipe.c: Don't include <errno.h>.
4096         (child_main): Remove function.
4097         (test_pipe): Pass only one argument to the child program.
4098         (main): Remove child process code. Expect the child program's name as
4099         first argument.
4100         * tests/test-spawn-pipe.sh: Pass the child program's name as first
4101         argument.
4102         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
4103         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
4104         test-spawn-pipe-child against no libraries.
4105
4106 2011-06-06  Bruno Haible  <bruno@clisp.org>
4107
4108         careadlinkat: Avoid mismatch between ssize_t and int.
4109         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
4110         * lib/careadlinkat.c (careadlinkatcwd): Define always.
4111
4112 2011-06-06  Jim Meyering  <meyering@redhat.com>
4113
4114         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
4115         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
4116         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
4117
4118 2011-06-05  Bruno Haible  <bruno@clisp.org>
4119
4120         ansi-c++-opt: Interoperability with libtool.
4121         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
4122         set the variable to "no", not to ":".
4123         * NEWS: Mention the change.
4124
4125 2011-06-05  Bruno Haible  <bruno@clisp.org>
4126
4127         acl: Fix test failure on AIX 7.
4128         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
4129         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
4130
4131 2011-06-05  Bruno Haible  <bruno@clisp.org>
4132
4133         pipe-filter-ii: Fix test failure on AIX and IRIX.
4134         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
4135         with EAGAIN, retry with a smaller buffer size.
4136
4137 2011-06-05  Bruno Haible  <bruno@clisp.org>
4138
4139         localename: Fix link dependencies.
4140         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
4141         * modules/localename-tests (Makefile.am): Link test-localename with
4142         $(LIBTHREAD).
4143
4144 2011-06-05  Bruno Haible  <bruno@clisp.org>
4145
4146         error: Avoid gcc warning.
4147         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
4148
4149 2011-06-05  Bruno Haible  <bruno@clisp.org>
4150
4151         unsetenv: Avoid gcc warning.
4152         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
4153
4154 2011-06-05  Bruno Haible  <bruno@clisp.org>
4155
4156         setenv: Avoid gcc warning.
4157         * lib/setenv.c (setenv): Provide declaration if system lacks it.
4158
4159 2011-06-05  Bruno Haible  <bruno@clisp.org>
4160
4161         sys_select: Ensure memset is declared also on AIX 7.
4162         * lib/sys_select.in.h: Include <string.h> also on AIX.
4163         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
4164         self-contained also on AIX 7.1.
4165
4166 2011-06-04  Jim Meyering  <meyering@redhat.com>
4167
4168         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
4169         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
4170         function name, "error".
4171         (_gl_translatable_diag_func_re): New configurable variable.
4172
4173 2011-06-04  Bruno Haible  <bruno@clisp.org>
4174
4175         getopt: Avoid gcc warning.
4176         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
4177
4178 2011-06-04  Bruno Haible  <bruno@clisp.org>
4179
4180         strerror_r: Fix comments.
4181         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
4182         commit.
4183
4184 2011-06-04  Bruno Haible  <bruno@clisp.org>
4185
4186         perror: Fix compilation error.
4187         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
4188         Undefine fprintf, not sprintf.
4189         * modules/perror (Depends-on): Remove intprops, verify.
4190
4191 2011-06-04  Bruno Haible  <bruno@clisp.org>
4192
4193         setlocale: Enable replacement on Cygwin 1.5.
4194         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
4195         Cygwin 1.5.x.
4196         * doc/posix-functions/setlocale.texi: Mention that the problem with the
4197         LC_CTYPE category also exists on Cygwin 1.5.x.
4198
4199 2011-06-04  Bruno Haible  <bruno@clisp.org>
4200
4201         strerror-override: Don't disable symbol renamings.
4202         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
4203         * lib/strerror-override.c: Include config.h.
4204         (strerror_override): Don't undefine.
4205
4206 2011-06-03  Bruno Haible  <bruno@clisp.org>
4207
4208         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
4209         * lib/localename.h: Update copyright header.
4210         * lib/localename.c: Likewise.
4211         * lib/relocatable.h: Likewise.
4212         * lib/relocatable.c: Likewise.
4213
4214 2011-06-02  Bruno Haible  <bruno@clisp.org>
4215
4216         doc: Fix a module name.
4217         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
4218
4219 2011-06-02  Bruno Haible  <bruno@clisp.org>
4220
4221         pipe2: Remove dependency on 'nonblocking' module.
4222         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
4223         O_NONBLOCK is defined by gnulib.
4224         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
4225         is zero.
4226         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
4227         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
4228         defined by gnulib.
4229         (get_nonblocking_flag): New function.
4230         (main): Test O_NONBLOCK flag only if it is nonzero.
4231         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
4232
4233 2011-06-03  Jim Meyering  <meyering@redhat.com>
4234
4235         maint: three new prohibit-header-without-use rules
4236         Prohibit use of cloexec.h, posixver.h, same.h without use.
4237         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
4238         (sc_prohibit_posixver_without_use): Likewise.
4239         (sc_prohibit_same_without_use): Likewise.
4240
4241 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
4242
4243         allocator: 'die' routine is now given requested size
4244         * lib/allocator.h (struct allocator.die): New size arg.
4245         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
4246         If the actual problem is an ssize_t limitation, not a size_t or
4247         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
4248
4249 2011-06-01  Eric Blake  <eblake@redhat.com>
4250
4251         strerror: drop strerror_r dependency
4252         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
4253         * lib/strerror-override.c (strerror_override): ...to new file.
4254         * lib/strerror-override.h: Add prototype.
4255         * lib/strerror-impl.h: Delete.
4256         * lib/strerror.c (strerror): New implementation.
4257         * modules/errno (Files): Add new files.
4258         (configure.ac): Compile new file as appropriate.
4259         * modules/strerror (Files): Drop unused file.
4260         (Depends-on): Drop strerror_r-posix.
4261         * MODULES.html.sh: Document strerror_r-posix.
4262         Requested by Sam Steingold.
4263
4264         perror: call strerror_r directly
4265         * modules/perror (Files): Drop strerror-impl.h.
4266         * lib/perror.c (perror): Use our own stack buffer, rather than
4267         calling a wrapper that uses static storage.
4268         * doc/posix-functions/perror.texi (perror): Document a limitation
4269         of our replacement.
4270
4271         strerror_r: fix includes for FreeBSD
4272         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
4273         since we use abort on some platforms.
4274         Reported by Matthias Bolte.
4275
4276 2011-05-31  Bruno Haible  <bruno@clisp.org>
4277
4278         Fix link errors in tests: openat-die uses gettext-h.
4279         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
4280         against $(LIBINTL).
4281         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
4282         against $(LIBINTL).
4283         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
4284         $(LIBINTL).
4285         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
4286         against $(LIBINTL).
4287         * modules/linkat-tests (Makefile.am): Link test-linkat against
4288         $(LIBINTL).
4289         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
4290         $(LIBINTL).
4291         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
4292         against $(LIBINTL).
4293         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
4294         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
4295         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
4296         $(LIBINTL).
4297         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
4298         $(LIBINTL).
4299         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
4300         $(LIBINTL).
4301         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4302
4303 2011-05-31  Bruno Haible  <bruno@clisp.org>
4304
4305         Fix link errors in tests: wait-process uses gettext-h.
4306         * modules/nonblocking-pipe-tests (Makefile.am): Set
4307         test_nonblocking_pipe_main_LDADD.
4308         * modules/nonblocking-socket-tests (Makefile.am): Link
4309         test-nonblocking-socket-main against $(LIBINTL).
4310         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4311
4312 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4313
4314         assert-h: work around 'verify' incompatibility
4315         * lib/verify.h: Use @...@ directives, not ifdef.
4316         * modules/assert-h (assert.h): Implement the directives.
4317         (assert.h): Substitute the symbol-prefix more consistently.
4318
4319 2011-05-29  Jim Meyering  <meyering@redhat.com>
4320
4321         trim: remove three superfluous assignments
4322         * lib/trim.c (trim2): Remove three superfluous assignments
4323         and correct brace positioning.
4324
4325 2011-05-29  Bruno Haible  <bruno@clisp.org>
4326
4327         wctype-h: Avoid namespace pollution on Solaris 2.6.
4328         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4329         identifiers.
4330         * doc/posix-headers/wctype.texi: Mention the problem.
4331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4332
4333 2011-05-28  Jim Meyering  <meyering@redhat.com>
4334
4335         parse-datetime.y: accommodate -Wstrict-overflow
4336         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4337         placate -Wstrict-overflow.
4338
4339         trim: avoid a warning from -O2 -Wstrict-overflow
4340         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4341
4342 2011-05-29  Bruno Haible  <bruno@clisp.org>
4343
4344         gnulib-tool: Fix bug in yesterday's commit.
4345         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4346         twice.
4347
4348 2011-05-29  Bruno Haible  <bruno@clisp.org>
4349
4350         Allow multiple gnulib generated include files to be combined.
4351         * gnulib-tool (func_compute_include_guard_prefix): New function.
4352         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4353         ${gl_include_guard_prefix} references.
4354         (func_import, func_create_testdir): Invoke
4355         func_compute_include_guard_prefix.
4356         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4357         * lib/ctype.in.h: Likewise.
4358         * lib/dirent.in.h: Likewise.
4359         * lib/errno.in.h: Likewise.
4360         * lib/fcntl.in.h: Likewise.
4361         * lib/float.in.h: Likewise.
4362         * lib/getopt.in.h: Likewise.
4363         * lib/iconv.in.h: Likewise.
4364         * lib/langinfo.in.h: Likewise.
4365         * lib/locale.in.h: Likewise.
4366         * lib/math.in.h: Likewise.
4367         * lib/netdb.in.h: Likewise.
4368         * lib/netinet_in.in.h: Likewise.
4369         * lib/poll.in.h: Likewise.
4370         * lib/pthread.in.h: Likewise.
4371         * lib/pty.in.h: Likewise.
4372         * lib/sched.in.h: Likewise.
4373         * lib/se-selinux.in.h: Likewise.
4374         * lib/search.in.h: Likewise.
4375         * lib/signal.in.h: Likewise.
4376         * lib/spawn.in.h: Likewise.
4377         * lib/stdarg.in.h: Likewise.
4378         * lib/stddef.in.h: Likewise.
4379         * lib/stdint.in.h: Likewise.
4380         * lib/stdio.in.h: Likewise.
4381         * lib/stdlib.in.h: Likewise.
4382         * lib/string.in.h: Likewise.
4383         * lib/strings.in.h: Likewise.
4384         * lib/sys_file.in.h: Likewise.
4385         * lib/sys_ioctl.in.h: Likewise.
4386         * lib/sys_select.in.h: Likewise.
4387         * lib/sys_socket.in.h: Likewise.
4388         * lib/sys_stat.in.h: Likewise.
4389         * lib/sys_time.in.h: Likewise.
4390         * lib/sys_times.in.h: Likewise.
4391         * lib/sys_uio.in.h: Likewise.
4392         * lib/sys_utsname.in.h: Likewise.
4393         * lib/sys_wait.in.h: Likewise.
4394         * lib/sysexits.in.h: Likewise.
4395         * lib/termios.in.h: Likewise.
4396         * lib/time.in.h: Likewise.
4397         * lib/unistd.in.h: Likewise.
4398         * lib/wchar.in.h: Likewise.
4399         * lib/wctype.in.h: Likewise.
4400         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4401         * modules/ctype (Makefile.am): Likewise.
4402         * modules/dirent (Makefile.am): Likewise.
4403         * modules/errno (Makefile.am): Likewise.
4404         * modules/fcntl-h (Makefile.am): Likewise.
4405         * modules/float (Makefile.am): Likewise.
4406         * modules/getopt-posix (Makefile.am): Likewise.
4407         * modules/iconv-h (Makefile.am): Likewise.
4408         * modules/langinfo (Makefile.am): Likewise.
4409         * modules/locale (Makefile.am): Likewise.
4410         * modules/math (Makefile.am): Likewise.
4411         * modules/netdb (Makefile.am): Likewise.
4412         * modules/netinet_in (Makefile.am): Likewise.
4413         * modules/poll-h (Makefile.am): Likewise.
4414         * modules/pthread (Makefile.am): Likewise.
4415         * modules/pty (Makefile.am): Likewise.
4416         * modules/sched (Makefile.am): Likewise.
4417         * modules/search (Makefile.am): Likewise.
4418         * modules/selinux-h (Makefile.am): Likewise.
4419         * modules/signal (Makefile.am): Likewise.
4420         * modules/spawn (Makefile.am): Likewise.
4421         * modules/stdarg (Makefile.am): Likewise.
4422         * modules/stddef (Makefile.am): Likewise.
4423         * modules/stdint (Makefile.am): Likewise.
4424         * modules/stdio (Makefile.am): Likewise.
4425         * modules/stdlib (Makefile.am): Likewise.
4426         * modules/string (Makefile.am): Likewise.
4427         * modules/strings (Makefile.am): Likewise.
4428         * modules/sys_file (Makefile.am): Likewise.
4429         * modules/sys_ioctl (Makefile.am): Likewise.
4430         * modules/sys_select (Makefile.am): Likewise.
4431         * modules/sys_socket (Makefile.am): Likewise.
4432         * modules/sys_stat (Makefile.am): Likewise.
4433         * modules/sys_time (Makefile.am): Likewise.
4434         * modules/sys_times (Makefile.am): Likewise.
4435         * modules/sys_uio (Makefile.am): Likewise.
4436         * modules/sys_utsname (Makefile.am): Likewise.
4437         * modules/sys_wait (Makefile.am): Likewise.
4438         * modules/sysexits (Makefile.am): Likewise.
4439         * modules/termios (Makefile.am): Likewise.
4440         * modules/time (Makefile.am): Likewise.
4441         * modules/unistd (Makefile.am): Likewise.
4442         * modules/wchar (Makefile.am): Likewise.
4443         * modules/wctype-h (Makefile.am): Likewise.
4444         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4445
4446 2011-05-29  Bruno Haible  <bruno@clisp.org>
4447
4448         assert-h: Allow multiple gnulib generated replacements to coexist.
4449         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4450
4451 2011-05-29  Bruno Haible  <bruno@clisp.org>
4452
4453         argp: Allow coexistence with strerror_r-posix module.
4454         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4455         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4456         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4457         not the glibc signature.
4458
4459 2011-05-28  Bruno Haible  <bruno@clisp.org>
4460
4461         gnulib-tool: Alternative structure of testdirs, similar to --import.
4462         * gnulib-tool: New option --single-configure.
4463         (func_usage): Document it.
4464         (single_configure): New variable.
4465         (func_modules_transitive_closure_separately,
4466         func_modules_transitive_closure_separately,
4467         func_determine_use_libtests, func_modules_add_dummy_separately,
4468         func_modules_to_filelist_separately): New functions, extracted from
4469         func_import.
4470         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4471         (func_import): Use the new functions.
4472         (func_create_testdir): Set final_modules. Handle $single_configure =
4473         true case.
4474
4475 2011-05-28  Bruno Haible  <bruno@clisp.org>
4476
4477         getloadavg: Remove an unreliable safety check.
4478         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4479         getloadavg.c is in place.
4480         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4481         Reported by Sam Steingold <sds@gnu.org>.
4482
4483 2011-05-28  Bruno Haible  <bruno@clisp.org>
4484
4485         doc: Cleanup yet another file produced by texinfo.tex.
4486         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4487
4488 2011-05-28  Bruno Haible  <bruno@clisp.org>
4489
4490         Finish the conditional dependencies mechanism.
4491         * gnulib-tool: New option --no-conditional-dependencies.
4492         (func_usage): Document it. Don't mark --conditional-dependencies as
4493         experimental.
4494         (cond_dependencies): The possible values can now be true, false, empty.
4495         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4496         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4497         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4498
4499 2011-05-28  Bruno Haible  <bruno@clisp.org>
4500
4501         doc: Use a recent texinfo.tex.
4502         * doc/Makefile (tex_opts): New variable.
4503         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4504
4505 2011-05-28  Jim Meyering  <meyering@redhat.com>
4506
4507         intprops.h: adjust comment to match code change
4508         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4509         only once, it *may* have side effects.  Also fix an unrelated typo.
4510         (_GL_INT_SIGNED): Likewise.
4511
4512 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4513
4514         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4515
4516 2011-05-26  Bruno Haible  <bruno@clisp.org>
4517
4518         mbsrchr: Avoid collision with system function on Interix.
4519         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4520         Reported by Markus Duft <mduft@gentoo.org>.
4521
4522 2011-05-15  James Youngman  <jay@gnu.org>
4523
4524         getopt: for ambiguous options, enumerate the possibilities.
4525         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4526         the ambiguous options when an ambiguous prefix is given. This was
4527         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
4528         glibc change was
4529         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
4530
4531 2011-05-25  Eric Blake  <eblake@redhat.com>
4532
4533         getcwd: work around mingw bug
4534         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
4535         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4536         Reported by Matthias Bolte.
4537
4538 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4539
4540         test-intprops: disable -Wtype-limits diagnostics
4541         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
4542         diagnostics.  Otherwise, the integer overflow macros generate many
4543         diagnostics.  Reported by Jim Meyering in
4544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4545
4546         intprops: shorten, to pacify gcc -Woverlength-strings
4547         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
4548         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
4549         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
4550         likely to run afoul of C compiler limits for string constant lengths.
4551         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4552
4553 2011-05-24  Eric Blake  <eblake@redhat.com>
4554
4555         docs: document recently fixed glibc printf bug
4556         * doc/posix-functions/fprintf.texi (fprintf): Document it.
4557         * doc/posix-functions/printf.texi (printf): Likewise.
4558         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4559         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4560
4561         closein-tests: convert to init.sh
4562         * modules/closein-tests (Files): Add init.sh
4563         * tests/test-closein.sh Use it.
4564
4565         yesno-tests: convert to init.sh
4566         * modules/yesno-tests (Files): Add init.sh.
4567         * tests/test-yesno.sh: Use it.
4568
4569         atexit-tests: ensure reliable exit status
4570         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
4571         Reported by Bruno Haible.
4572
4573 2011-05-24  Bruno Haible  <bruno@clisp.org>
4574
4575         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
4576         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
4577         gl_PREREQ_STRERROR_R invocations from here...
4578         * modules/strerror_r-posix (configure.ac): ... to here.
4579
4580 2011-05-24  Eric Blake  <eblake@redhat.com>
4581
4582         strerror_r: fix missing header
4583         * lib/strerror_r.c: Avoid compiler warning about snprintf.
4584
4585         strerror_r: fix AIX test failures
4586         * lib/strerror_r.c (strerror_r): Convert silent truncation to
4587         ERANGE failure.
4588
4589         strerror_r: fix Solaris test failures
4590         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
4591         failures.
4592         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4593
4594         strerror_r: enforce POSIX recommendations
4595         * lib/strerror_r.c (safe_copy): New helper method.
4596         (strerror_r): Guarantee a non-empty string.
4597         * tests/test-strerror_r.c (main): Enhance tests to incorporate
4598         recent POSIX rulings and to match our strerror guarantees.
4599         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4600
4601 2011-05-24  Jim Meyering  <meyering@redhat.com>
4602
4603         test-perror2.c: avoid warning about unused variable
4604         * tests/test-perror2.c (main): Remove declaration of unused "fp".
4605
4606 2011-05-24  Eric Blake  <eblake@redhat.com>
4607
4608         perror: avoid spurious test failure on HP-UX
4609         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
4610
4611         tests: fix logic bug in init.sh
4612         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
4613         shell.
4614
4615 2011-05-24  Jim Meyering  <meyering@redhat.com>
4616
4617         utimensat: do not reference an out-of-scope buffer
4618         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4619         declared in an inner scope, yet "times" would be dereferenced outside
4620         the scope in which "ts" was valid.
4621         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4622         of ts[2] "out/up", so that the use of aliased "times" (via
4623         "times = ts;") does not end up referencing an out-of-scope "ts"
4624
4625         opendir-safer.c: don't clobber errno; don't close negative FD
4626         * lib/opendir-safer.c (opendir_safer):
4627         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4628         file descriptor, and more importantly, don't clobber the
4629         offending errno value with EINVAL.  Before, upon failure
4630         of dup_safer, we would pass the negative file descriptor to
4631         fdopendir, which would clobber errno.
4632
4633 2011-05-23  Bruno Haible  <bruno@clisp.org>
4634
4635         idcache: Fix module description.
4636         * modules/idcache (Include): Set to "idcache.h".
4637
4638 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4639
4640         gnulib-tool: fix portability problem with MacOS sed
4641         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4642         before the "}".  Problem reported by Leo in
4643         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4644         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4645         sed_extract_condition1, sed_extract_condition2.
4646
4647 2011-05-23  Bruno Haible  <bruno@clisp.org>
4648
4649         hash: Simplify autoconf macro.
4650         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4651
4652 2011-05-23  Bruno Haible  <bruno@clisp.org>
4653
4654         getugroups: Fix module description.
4655         * modules/getugroups (Include): Set to "getugroups.h".
4656
4657 2011-05-23  Bruno Haible  <bruno@clisp.org>
4658
4659         linkat: Simplify autoconf macro.
4660         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4661
4662 2011-05-23  Bruno Haible  <bruno@clisp.org>
4663             Eric Blake  <eblake@redhat.com>
4664
4665         linkat, renameat: Update dependencies.
4666         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4667         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4668         symlinkat.
4669
4670 2011-05-23  Jim Meyering  <meyering@redhat.com>
4671
4672         maint.mk: more tight_scope improvements
4673         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4674         (_gl_TS_headers): Define only in if-0'd block.
4675         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4676         sometimes we must *not* use it.  Adjust uses accordingly.
4677         (sc_tight_scope): Use much simpler grep-based test to determine
4678         whether we skip this rule.
4679
4680         maint.mk: generalize/improve the tight-scope rule
4681         * top/maint.mk: Emit a warning when the test is skipped.
4682         (_gl_TS_dir): Add $(srcdir)/ prefix.
4683         (_gl_TS_function_match): Simplify, rather than trying
4684         to enumerate common types.  Otherwise, it would fail to match an
4685         "extern unsigned char const *" declaration in idutils.
4686         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4687         a way to support use of that type of macro.
4688         (_gl_TS_var_match): Simplify regexp.
4689         (_gl_TS_obj_files): New configurable variable.
4690         (_gl_TS_headers): Likewise.
4691
4692 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4693
4694         verify: fix bug when gnulib <assert.h> is also included
4695         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
4696         is defined, not if _GL_STATIC_ASSERT_H is not defined.
4697         Perhaps there's a better way, but this fixes the immediate problem.
4698         Problem reported by Bruno Haible in
4699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
4700
4701 2011-05-22  Bruno Haible  <bruno@clisp.org>
4702
4703         xgetcwd: Simplify autoconf macro.
4704         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
4705
4706 2011-05-22  Bruno Haible  <bruno@clisp.org>
4707
4708         New module 'mktime-internal'.
4709         * modules/mktime-internal: New file.
4710         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
4711         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
4712         mktime_internal as a C macro if libc has __mktime_internal.
4713         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
4714         conditions.
4715         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
4716
4717 2011-05-22  Bruno Haible  <bruno@clisp.org>
4718
4719         timegm: Correct mktime replacement statements.
4720         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
4721         defining mktime as a C macro. This completes a 2009-07-28 commit.
4722
4723 2011-05-22  Bruno Haible  <bruno@clisp.org>
4724
4725         timegm: Simplify autoconf macro.
4726         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
4727
4728 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4729
4730         clock-time: change to LGPLv2+.
4731         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
4732         BSD-like but we have no mark for that; this is good enough for now.
4733
4734 2011-05-21  Bruno Haible  <bruno@clisp.org>
4735
4736         strerror_r: Fix comments.
4737         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
4738
4739 2011-05-21  Bruno Haible  <bruno@clisp.org>
4740
4741         relocatable-prog-wrapper: Fix possible link error.
4742         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
4743         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
4744         (gl_FUNC_SETENV): ... to here.
4745         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
4746         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
4747
4748 2011-05-21  Bruno Haible  <bruno@clisp.org>
4749
4750         relocatable-prog-wrapper: Assume strerror() exists.
4751         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
4752         m4/strerror.m4.
4753         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
4754         * lib/relocwrapper.c: Remove mention of strerror module.
4755         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
4756         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
4757         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
4758         C macro.
4759
4760 2011-05-21  Bruno Haible  <bruno@clisp.org>
4761
4762         select: Simplify replacement idiom.
4763         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
4764         Win32 platforms.
4765         * lib/sys_select.in.h (select): Simplify accordingly.
4766         * modules/select (Depends-on): Likewise.
4767
4768 2011-05-21  Bruno Haible  <bruno@clisp.org>
4769
4770         mkdir-p: Simplify autoconf macro.
4771         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
4772         gl_FUNC_LCHOWN.
4773
4774 2011-05-21  Eric Blake  <eblake@redhat.com>
4775
4776         strerror_r: avoid clobbering strerror on cygwin
4777         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
4778         fall back instead to sys_errlist.
4779         * modules/strerror (configure.ac): Add witness.
4780         * tests/test-strerror_r.c (main): Enhance test.
4781         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4782         * tests/test-perror2.c (main): Free memory before exit.
4783
4784 2011-05-21  Bruno Haible  <bruno@clisp.org>
4785
4786         mkdtemp: Use gnulib naming conventions.
4787         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
4788         * modules/mkdtemp (configure.ac): Update.
4789
4790 2011-05-20  Eric Blake  <eblake@redhat.com>
4791
4792         strerror_r: avoid corrupting errno on Solaris
4793         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
4794         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4795
4796         strerror_r: avoid compiler warning
4797         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
4798
4799         strerror_r: simplify AIX code
4800         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
4801
4802         test-perror: avoid spurious failure on FreeBSD
4803         * modules/perror-tests (Depends-on): Add strerror, now that
4804         strerror_r no longer pulls it in.
4805
4806 2011-05-20  Bruno Haible  <bruno@clisp.org>
4807
4808         strerror_r-posix: Remove unused dependencies.
4809         * modules/strerror_r-posix (Depends-on): Remove strerror.
4810         Reported by Eric Blake.
4811
4812 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
4813
4814         intprops: remove assumption about A|B representation
4815         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
4816         is a valid integer if both A and B are.  Although this is true for
4817         all known practical hosts, the C standard doesn't guarantee it,
4818         and the code need not assume it.  Also, this change may work around
4819         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
4820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
4821
4822 2011-05-20  Eric Blake  <eblake@redhat.com>
4823
4824         perror: work around FreeBSD bug
4825         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
4826         is broken.  Move AC_LIBOBJ...
4827         * modules/perror (configure.ac): Here.
4828         * doc/posix-functions/perror.texi (perror): Document this.
4829         * tests/test-perror2.c (main): Enhance test.
4830
4831         test-perror: check for strerror interactions
4832         * tests/macros.h (STREQ): Add macro.
4833         * modules/perror-tests (Files): Add second test.
4834         * tests/test-perror2.c (main): New file.
4835         * doc/posix-functions/perror.texi (perror): Document glibc bug.
4836
4837         test-perror: rewrite to use init script
4838         * modules/perror-tests (Files): Add init.sh.
4839         * tests/test-perror.sh: Use temporary directory.
4840
4841 2011-05-20  Jim Meyering  <meyering@redhat.com>
4842
4843         maint: replace misused "a" with "an"
4844         * doc/intprops.texi: "a integer"
4845         * doc/regex.texi: "a explanation"
4846         * lib/alignof.h: "a object"
4847         * lib/argmatch.h: "a explanation"
4848         * lib/argp-help.c: "a option" and "a OPTION_DOC"
4849         * lib/stdint.in.h: "a integer"
4850         * lib/userspec.c: "a owner"
4851         * doc/gnulib.texi: Fix "a idea", and reword.
4852
4853 2011-05-19  Jim Meyering  <meyering@redhat.com>
4854
4855         maint: correct misuse of "a" and "an"
4856         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
4857         * lib/argp-help.c: "an docum...": s/an/a/
4858         * lib/argp-parse.c: "An vector": s/An/A/
4859         * lib/execute.c: "an native": s/an/a/
4860         * lib/spawn-pipe.c: Likewise.
4861         * lib/gc.h: "an Gc_rc": s/an/a/
4862         * lib/unigbrk.in.h: "an grapheme": s/an/a/
4863         * lib/fts.c: "an stat.st_dev": s/an/a/
4864
4865 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4866
4867         intprops-tests: work around HP-UX 11.23 cc bug with constants
4868         * tests/test-intprops.c (VERIFY): New macro.
4869         (main): Use it, instead of verify, to work around the compiler bug; see
4870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4871
4872         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
4873         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
4874         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
4875         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
4876         (_GL_REMAINDER_OVERFLOW): Use it.
4877
4878         intprops-tests: revert unsigned part of previous change
4879         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
4880         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
4881         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
4882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
4883
4884 2011-05-19  Bruno Haible  <bruno@clisp.org>
4885
4886         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
4887         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
4888         strerror_r() returned without filling the buffer.
4889         Reported by Eric Blake.
4890
4891 2011-05-19  Eric Blake  <eblake@redhat.com>
4892
4893         strerror_r: guarantee unchanged errno
4894         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
4895         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
4896         failure.
4897         * tests/test-strerror_r.c (main): Enhance test.
4898
4899 2011-05-19  Bruno Haible  <bruno@clisp.org>
4900
4901         strerror_r: Reorder #if blocks.
4902         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
4903         for consistency with the previous commit.
4904
4905 2011-05-19  Bruno Haible  <bruno@clisp.org>
4906
4907         perror: Avoid clobbering the strerror buffer when possible.
4908         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
4909         * lib/strerror.c: Include it.
4910         * modules/strerror (Files): Add lib/strerror-impl.h.
4911         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
4912         (my_strerror): New function, defined through lib/strerror-impl.h.
4913         (perror): Use it instead of strerror.
4914         * modules/perror (Files): Add lib/strerror-impl.h.
4915         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
4916
4917 2011-05-19  Eric Blake  <eblake@redhat.com>
4918
4919         strerror_r: fix on newer cygwin
4920         * lib/strerror_r.c (strerror_r): Cygwin now has
4921         __xpg_strerror_r, use it.
4922
4923 2011-05-19  Bruno Haible  <bruno@clisp.org>
4924
4925         strerror_r: Avoid clobbering the strerror buffer when possible.
4926         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
4927         (sys_nerr, sys_errlist): New declarations.
4928         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
4929         HP-UX, native Win32, IRIX, and 32-bit Solaris.
4930         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
4931
4932 2011-05-19  Bruno Haible  <bruno@clisp.org>
4933
4934         strerror_r: Fix test failure on mingw.
4935         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
4936         EXTEND_STRERROR_R.
4937         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
4938         macros from errno.in.h instead.
4939
4940 2011-05-19  Eric Blake  <eblake@redhat.com>
4941
4942         strerror: relax test for Solaris
4943         * tests/test-strerror.c (main): Permit Solaris behavior.
4944         * tests/test-strerror_r.c (main): Likewise.
4945
4946         strerror: enforce POSIX ruling on strerror(0)
4947         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
4948         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4949         * lib/strerror_r.c (rpl_strerror_r): Work around it.
4950         * doc/posix-functions/strerror.texi (strerror): Document it.
4951         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
4952         * tests/test-strerror.c (main): Strengthen test.
4953         * tests/test-strerror_r.c (main): Likewise.
4954
4955 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4956
4957         intprop-tests: port to older and more-pedantic compilers
4958         * modules/intprops-tests (Files): Add tests/macros.h.
4959         * tests/test-intprops.c: Include macros.h.
4960         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
4961         it's no longer documented to expand to an integer constant expression.
4962         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
4963         argument is floating point, as it's no longer documented to expand
4964         to an integer constant expression in that case.
4965         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
4966         compiler bugs reported by Bruno Haible.  See
4967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4968         (U0, U1): New constants, to work around the same bugs.  Also,
4969         in tests, use e.g., "(unsigned int) 39" rather than "39u".
4970
4971         intprops: work around C compiler bugs
4972         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
4973         bug in Sun C 5.11 2010/08/13 and other compilers; see
4974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4975
4976         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
4977         * doc/intprops.texi (Integer Type Determination): Fix
4978         documentation for TYPE_IS_INTEGER: it returns an constant
4979         expression, not an integer constant expression.  Fix doc for
4980         TYPE_SIGNED: it returns an integer constant expression only if its
4981         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
4982         hardly worth documented that way....)
4983
4984 2011-05-18  Bruno Haible  <bruno@clisp.org>
4985
4986         strerror_r: Avoid clobbering the strerror buffer when possible.
4987         * lib/strerror_r.c (strerror_r): Merge the three implementations.
4988         Handle gnulib defined errno values here. When strerror() returns NULL
4989         or an empty string, return EINVAL.
4990         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
4991         gnulib defined errno values here.
4992         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
4993
4994 2011-05-18  Eric Blake  <eblake@redhat.com>
4995
4996         fnmatch: avoid compiler warning
4997         * lib/fnmatch_loop.c (FCT): Use correct type.
4998         Reported by Matthias Bolte.
4999
5000 2011-05-13  Jim Meyering  <meyering@redhat.com>
5001
5002         maint.mk: three new prohibit_<HDR>_without_use rules
5003         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
5004         (sc_prohibit_stdio-safer_without_use): Likewise.
5005         (sc_prohibit_xfreopen_without_use): Likewise.
5006
5007 2011-05-17  Jim Meyering  <meyering@redhat.com>
5008
5009         announce-gen: fail if the NEWS delta is empty
5010         If there's nothing noteworthy in NEWS, then either you forgot
5011         or you shouldn't be releasing.
5012         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
5013
5014 2011-05-17  Pádraig Brady <P@draigBrady.com>
5015
5016         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
5017         reserved symbols starting with double underscore from the check.
5018
5019 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
5020
5021         intprops: add doc
5022         * doc/intprops.texi: New file, documenting intprops.
5023         * doc/gnulib.texi (Particular Modules): Include it.
5024
5025         verify: add doc to gnulib manual and fix example
5026         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
5027         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
5028         (Compile-time Assertions): Fix example so it can't overflow.
5029
5030 2011-05-17  Jim Meyering  <meyering@redhat.com>
5031
5032         warnings.m4: don't usurp save_CPPFLAGS variable name
5033         * m4/warnings.m4: Prefix local temporary variable name with gl_.
5034
5035         doc: fix typo
5036         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
5037
5038 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5039             Bruno Haible  <bruno@clisp.org>
5040
5041         doc: Tweak recent change.
5042         * README (Portability guidelines): Tweak new text.
5043         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
5044         Interix 6.1.
5045
5046 2011-05-16  Eric Blake  <eblake@redhat.com>
5047
5048         inttypes: avoid autoconf warning
5049         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
5050         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5051
5052 2011-05-16  Sam Steingold <sds@gnu.org>
5053         and Eric Blake  <eblake@redhat.com>
5054
5055         vc-list-files: accept multiple directory operands
5056         * build-aux/vc-list-files: Iterate over all remaining operands.
5057
5058 2011-05-16  Bruno Haible  <bruno@clisp.org>
5059
5060         Fix confusion regarding deprecated modules.
5061         * modules/calloc (Status, Notice): Mark module as deprecated, not
5062         obsolete.
5063         * modules/fnmatch-posix (Status, Notice): Likewise.
5064         * modules/getdate (Status, Notice): Likewise.
5065         * modules/getopt (Status, Notice): Likewise.
5066         * modules/malloc (Status, Notice): Likewise.
5067         * modules/pipe (Status, Notice): Likewise.
5068         * modules/realloc (Status, Notice): Likewise.
5069         * modules/rename-dest-slash (Status, Notice): Likewise.
5070         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
5071         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
5072         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
5073         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
5074         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
5075
5076 2011-05-16  Bruno Haible  <bruno@clisp.org>
5077
5078         doc: List the target platforms.
5079         * doc/gnulib-intro.texi (Target Platforms): New section.
5080         * doc/gnulib.texi (Introduction): Update menu.
5081         * README (Portability guidelines): Refer to the new section. Update
5082         statement about oldest supported environment. Remove rationale why
5083         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
5084         unportable C89 function.
5085         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
5086         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
5087
5088 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5089
5090         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
5091
5092 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
5093
5094         intprops-tests: new module
5095         * modules/intprops-tests, tests/test-intprops.c: New files.
5096
5097         intprops: add safe, portable integer overflow checking
5098         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
5099         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
5100         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
5101         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
5102         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
5103         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
5104         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
5105         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
5106         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
5107         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
5108         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
5109
5110 2011-05-12  James Youngman  <jay@gnu.org>
5111
5112         Add a test for glibc's Bugzilla bug #12378.
5113         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
5114         doesn't allow the literal matching of a lone "[" (which is
5115         required by POSIX).
5116         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
5117
5118 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
5119
5120         Sync glibc change fixing Bugzilla bug #12378.
5121         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
5122         beginning and fall back to matching as normal character if the
5123         string ends before the matching ']' is found.  This is what POSIX
5124         requires.
5125
5126 2011-05-13  Eric Blake  <eblake@redhat.com>
5127
5128         getcwd-lgpl: relax test for FreeBSD
5129         * doc/posix-functions/getcwd.texi (getcwd): Document portability
5130         issue.
5131         * tests/test-getcwd-lgpl.c (main): Relax test.
5132         Reported by Matthias Bolte.
5133
5134 2011-05-11  Eric Blake  <eblake@redhat.com>
5135
5136         test-fflush: silence compiler warning
5137         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
5138
5139 2011-05-11  Bruno Haible  <bruno@clisp.org>
5140
5141         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
5142         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
5143         * modules/canonicalize (Depends-on): Add 'nocrash'.
5144         * modules/canonicalize-lgpl (Depends-on): Likewise.
5145         * doc/posix-functions/realpath.texi: Update platforms list.
5146         Reported by Ryan Schmidt <ryandesign@macports.org>.
5147
5148 2011-05-11  Bruno Haible  <bruno@clisp.org>
5149
5150         group-member: Declare function in <unistd.h>.
5151         * lib/unistd.in.h (group_member): New declaration.
5152         * lib/group-member.h: Remove file.
5153         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
5154         * tests/test-unistd-c++.cc: Check signature of group_member.
5155         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
5156         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
5157         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
5158         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
5159         HAVE_GROUP_MEMBER.
5160         * modules/group-member (Files): Remove lib/group-member.h.
5161         (Depends-on): Add unistd. Specify conditions.
5162         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5163         (Include): Change to <unistd.h>.
5164         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
5165         HAVE_GROUP_MEMBER.
5166         * NEWS: Mention the change.
5167         * lib/euidaccess.c: Don't include group-member.h.
5168
5169 2011-05-11  Bruno Haible  <bruno@clisp.org>
5170
5171         group-member: Document module.
5172         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
5173         module.
5174
5175 2011-05-11  Bruno Haible  <bruno@clisp.org>
5176
5177         fclose: Fix mistake earlier today.
5178         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
5179
5180 2011-05-11  Eric Blake  <eblake@redhat.com>
5181
5182         fclose: preserve fflush errors
5183         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
5184         Reported by Jim Meyering.
5185
5186         bootstrap: support a prereq of 'rpcgen -' on RHEL5
5187         * build-aux/bootstrap (check_versions): When no specific version
5188         is required, merely check that the app produces an exit status
5189         that indicates its existence.
5190
5191         maint.mk: drop redundant check
5192         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
5193         the same but better.
5194
5195 2011-05-11  Bruno Haible  <bruno@clisp.org>
5196
5197         fclose: Fix possible link error.
5198         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
5199         unregister_shadow_fd. Improve comments.
5200         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
5201         Eric Blake.
5202
5203 2011-05-11  Jim Meyering  <meyering@redhat.com>
5204
5205         maint.mk: improve "can not" detection and generalize rule name
5206         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
5207         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
5208         Use the same technique as in sc_prohibit_doubled_word, so that
5209         we recognize "can not" also when the words are separated by a newline.
5210         Suggested by Eric Blake.
5211         (perl_filename_lineno_text_): Define.  Factored out of...
5212         (prohibit_doubled_word_): ...here.  Use the new definition.
5213         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
5214         (prohibit_undesirable_word_seq_RE_): New overridable variable.
5215         (ignore_undesirable_word_sequence_RE_): New overridable variable.
5216
5217 2011-05-10  Eric Blake  <eblake@redhat.com>
5218
5219         fclose: avoid double close race when possible
5220         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
5221         all but WINDOWS_SOCKETS.
5222
5223 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
5224
5225         openat: correct new comment
5226         * lib/openat-proc.c (openat_proc_name): Correct the comment.
5227
5228 2011-05-10  Jim Meyering  <meyering@redhat.com>
5229
5230         openat: add comments
5231         * lib/openat-proc.c (openat_proc_name): Add comments,
5232         mostly from Eric Blake.
5233
5234 2011-05-09  Eric Blake  <eblake@redhat.com>
5235
5236         openat: reduce syscalls in first probe of /proc
5237         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
5238         be a directory.  Simplify the probe for .. bugs.
5239         * modules/openat (Depends-on): Drop same-inode.
5240         Reported by Bastien ROUCARIES.
5241
5242 2011-05-09  Jim Meyering  <meyering@redhat.com>
5243
5244         maint.mk: change semantics/name of tight_scope variables
5245         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
5246         Rename variables to align with semantics that make them more useful.
5247
5248         maint.mk: tweak new rule's name not to impinge
5249         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
5250         (sc_tight_scope): Use new rule name rather than $@-0.
5251
5252         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
5253         * top/maint.mk (sc_tight_scope): New rule.
5254         (sc_tight_scope-0): New rule, ifdef'd out.
5255         (_gl_TS_dir): Default.
5256         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
5257         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
5258
5259 2011-05-09  Simon Josefsson  <simon@josefsson.org>
5260
5261         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
5262         Haible <bruno@clisp.org>.
5263
5264 2011-05-08  Bruno Haible  <bruno@clisp.org>
5265
5266         Comments.
5267         * m4/isnanf.m4: Add comment.
5268         * m4/isnanl.m4: Likewise.
5269
5270 2011-05-08  Bruno Haible  <bruno@clisp.org>
5271
5272         glob: Remove obsolete macro.
5273         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
5274
5275 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5276
5277         intprops: Sun C 5.11 supports __typeof__
5278         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
5279         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
5280         which is new.
5281         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
5282
5283         intprops: switch to usual gnulib indenting and naming
5284         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
5285         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
5286
5287         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
5288
5289 2011-05-08  Jim Meyering  <meyering@redhat.com>
5290
5291         maint.mk: suppress "Entering/Leaving directory" diag in announcement
5292         * top/maint.mk (release-prep): Use make's --no-print-directory
5293         option when generating the announcement.  This eliminates the
5294         pesky "make[2]: Entering/Leaving directory" diagnostics in the
5295         generated announcement template.
5296
5297 2011-05-08  Bruno Haible  <bruno@clisp.org>
5298
5299         tzset: Fix gettimeofday wrapper on Solaris 2.6.
5300         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
5301         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
5302
5303 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5304
5305         ignore-value, verify: Omit include files from lib_SOURCES.
5306         * modules/ignore-value, modules/verify (Makefile.am):
5307         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
5308         that leads Automake to duplicate use of am__objects_... variables
5309         in Makefile.in.  See
5310         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5311
5312 2011-05-07  Bruno Haible  <bruno@clisp.org>
5313
5314         fclose: Simplify autoconf macro.
5315         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5316         defined.
5317
5318 2011-05-07  Bruno Haible  <bruno@clisp.org>
5319
5320         canonicalize-lgpl: Fix autoconf macro ordering bug.
5321         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5322         gl_STDLIB_H_DEFAULTS.
5323
5324 2011-05-06  Eric Blake  <eblake@redhat.com>
5325
5326         maintainer-makefile: make sc_po_check easier to tune
5327         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5328         to probe for strings, such as an alternate location for gnulib.
5329
5330         fclose: guarantee behavior on seekable stdin
5331         * modules/fclose (Depends-on): Add fflush.
5332         * doc/posix-functions/fclose.texi (fclose): Document this.
5333         * tests/test-fclose.c (main): Make test for this unconditional.
5334
5335 2011-05-06  Bruno Haible  <bruno@clisp.org>
5336
5337         fflush, fpurge: Relicense under LGPLv2+.
5338         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5339         * modules/fpurge (License): Likewise.
5340         With permission from Eric Blake and Jim Meyering.
5341         Suggested by Eric Blake.
5342
5343 2011-05-06  Karl Berry  <karl@gnu.org>
5344
5345         * MODULES.html.sh (func_all_modules): remove exit.
5346
5347 2011-05-06  Jim Meyering  <meyering@redhat.com>
5348
5349         maint.mk: use info-gnu@ as the default only for a stable release
5350         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5351         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5352         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5353         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5354
5355 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5356
5357         assert-h: new module, which supports C1X-style static_assert
5358         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5359         * lib/verify.h: Revamp so that this can be copied into assert.h,
5360         while retaining the ability to use it standalone as before.
5361         Rename private identifiers so as not to encroach on the
5362         standard C namespace, since this is now used by assert.h.
5363         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5364         the old verify_true.
5365         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5366         the old verify_true.  Use _GL_VERIFY_TYPE.
5367         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5368         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5369         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5370         defined when this file is copied into the replacement assert.h.
5371         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5372         and _Static_assert is not built in.
5373         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5374         defined, and use the new macros mentioned above.
5375         * doc/posix-headers/assert.texi: Document this.
5376
5377 2011-05-05  Bruno Haible  <bruno@clisp.org>
5378
5379         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5380         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5381         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5382         gl_REPLACE_FCLOSE here.
5383         * modules/fflush (Depends-on): Remove fclose.
5384         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5385         combination with module 'fclose'.
5386
5387 2011-05-05  Bruno Haible  <bruno@clisp.org>
5388
5389         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5390         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5391         gl_FUNC_FFLUSH.
5392         (gl_FUNC_FFLUSH): Use it.
5393         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5394         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5395         gl_REPLACE_FSEEKO here.
5396
5397 2011-05-05  Bruno Haible  <bruno@clisp.org>
5398
5399         tzset: Relicense under LGPL.
5400         * modules/tzset (License): Change to LGPL.
5401         No agreement needed; it's a no-op.
5402
5403         strtoimax, strtoumax: Relicense under LGPL.
5404         * modules/strtoimax (License): Change to LGPL.
5405         * modules/strtoumax (License): Likewise.
5406         With permission from Jim Meyering, Paul Eggert:
5407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5409
5410         getgroups: Relicense under LGPL.
5411         * modules/getgroups (License): Change to LGPL.
5412         With permission from Jim Meyering, Paul Eggert, Eric Blake:
5413         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5415         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5416
5417         nanosleep: Relicense under LGPL.
5418         * modules/nanosleep (License): Change to LGPL.
5419         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5420         Haible:
5421         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5422         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5425
5426         futimens: Relicense under LGPL.
5427         * modules/futimens (License): Change to LGPL.
5428         With permission from Eric Blake:
5429         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5430
5431         fflush: Relicense under LGPL.
5432         * modules/fflush (License): Change to LGPL.
5433         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5434         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5435         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5437
5438         tmpfile: Relicense under LGPL.
5439         * modules/tmpfile (License): Change to LGPL.
5440         With permission from Ben Pfaff:
5441         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5442
5443         isfinite: Relicense under LGPL.
5444         * modules/isfinite (License): Change to LGPL.
5445         With permission from Ben Pfaff, Bruno Haible:
5446         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5448
5449         acosl..tanl: Relicense under LGPL.
5450         * modules/acosl (License): Change to LGPL.
5451         * modules/asinl (License): Likewise.
5452         * modules/atanl (License): Likewise.
5453         * modules/cosl (License): Likewise.
5454         * modules/expl (License): Likewise.
5455         * modules/logl (License): Likewise.
5456         * modules/sinl (License): Likewise.
5457         * modules/sqrtl (License): Likewise.
5458         * modules/tanl (License): Likewise.
5459         Source code originally from glibc and Paolo Bonzini. Agreements:
5460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5461         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5462
5463 2011-05-05  Bruno Haible  <bruno@clisp.org>
5464
5465         signal: Define sighandler_t.
5466         * lib/signal.in.h (sighandler_t): New type.
5467         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5468         whether sighandler_t is defined.
5469         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5470         * modules/signal (Depends-on): Add extensions.
5471         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5472         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5473         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5474
5475 2011-05-05  Eric Blake  <eblake@redhat.com>
5476
5477         maint: remove useless REPLACE_*_H macros
5478         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5479         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5480         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5481         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5482         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5483         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5484         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5485         * m4/btowc.m4: Update callers.
5486         * m4/dirfd.m4: Likewise.
5487         * m4/duplocale.m4: Likewise.
5488         * m4/fchdir.m4: Likewise.
5489         * m4/fdopendir.m4: Likewise.
5490         * m4/inet_ntop.m4: Likewise.
5491         * m4/inet_pton.m4: Likewise.
5492         * m4/ioctl.m4: Likewise.
5493         * m4/mbrlen.m4: Likewise.
5494         * m4/mbrtowc.m4: Likewise.
5495         * m4/mbsinit.m4: Likewise.
5496         * m4/mbsnrtowcs.m4: Likewise.
5497         * m4/mbsrtowcs.m4: Likewise.
5498         * m4/poll.m4: Likewise.
5499         * m4/setlocale.m4: Likewise.
5500         * m4/wcrtomb.m4: Likewise.
5501         * m4/wcsnrtombs.m4: Likewise.
5502         * m4/wcsrtombs.m4: Likewise.
5503         * m4/wctob.m4: Likewise.
5504         * m4/wcwidth.m4: Likewise.
5505         * modules/posix_spawn: Likewise.
5506         * modules/posix_spawn_file_actions_addclose: Likewise.
5507         * modules/posix_spawn_file_actions_adddup2: Likewise.
5508         * modules/posix_spawn_file_actions_addopen: Likewise.
5509         * modules/posix_spawn_file_actions_destroy: Likewise.
5510         * modules/posix_spawn_file_actions_init: Likewise.
5511         * modules/posix_spawnattr_destroy: Likewise.
5512         * modules/posix_spawnattr_getflags: Likewise.
5513         * modules/posix_spawnattr_getpgroup: Likewise.
5514         * modules/posix_spawnattr_getschedparam: Likewise.
5515         * modules/posix_spawnattr_getschedpolicy: Likewise.
5516         * modules/posix_spawnattr_getsigdefault: Likewise.
5517         * modules/posix_spawnattr_getsigmask: Likewise.
5518         * modules/posix_spawnattr_init: Likewise.
5519         * modules/posix_spawnattr_setflags: Likewise.
5520         * modules/posix_spawnattr_setpgroup: Likewise.
5521         * modules/posix_spawnattr_setschedparam: Likewise.
5522         * modules/posix_spawnattr_setschedpolicy: Likewise.
5523         * modules/posix_spawnattr_setsigdefault: Likewise.
5524         * modules/posix_spawnattr_setsigmask: Likewise.
5525         * modules/posix_spawnp: Likewise.
5526
5527 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
5528
5529         Add option to do-release-commit-and-tag to specify branch.
5530         * build-aux/do-release-commit-and-tag: Add --branch.
5531
5532 2011-05-03  Bruno Haible  <bruno@clisp.org>
5533
5534         Avoid unnecessary compilation units, through conditional dependencies.
5535         * modules/accept (Depends-on): Add conditions to the dependencies.
5536         * modules/acosl (Depends-on): Likewise.
5537         * modules/argz (Depends-on): Likewise.
5538         * modules/asinl (Depends-on): Likewise.
5539         * modules/atanl (Depends-on): Likewise.
5540         * modules/atoll (Depends-on): Likewise.
5541         * modules/bind (Depends-on): Likewise.
5542         * modules/btowc (Depends-on): Likewise.
5543         * modules/canonicalize-lgpl (Depends-on): Likewise.
5544         * modules/ceil (Depends-on): Likewise.
5545         * modules/ceilf (Depends-on): Likewise.
5546         * modules/ceill (Depends-on): Likewise.
5547         * modules/chdir-long (Depends-on): Likewise.
5548         * modules/chown (Depends-on): Likewise.
5549         * modules/close (Depends-on): Likewise.
5550         * modules/connect (Depends-on): Likewise.
5551         * modules/cosl (Depends-on): Likewise.
5552         * modules/dirfd (Depends-on): Likewise.
5553         * modules/dprintf (Depends-on): Likewise.
5554         * modules/dprintf-posix (Depends-on): Likewise.
5555         * modules/error (Depends-on): Likewise.
5556         * modules/euidaccess (Depends-on): Likewise.
5557         * modules/expl (Depends-on): Likewise.
5558         * modules/faccessat (Depends-on): Likewise.
5559         * modules/fchdir (Depends-on): Likewise.
5560         * modules/fclose (Depends-on): Likewise.
5561         * modules/fcntl (Depends-on): Likewise.
5562         * modules/fdopendir (Depends-on): Likewise.
5563         * modules/fflush (Depends-on): Likewise.
5564         * modules/floor (Depends-on): Likewise.
5565         * modules/floorf (Depends-on): Likewise.
5566         * modules/floorl (Depends-on): Likewise.
5567         * modules/fnmatch (Depends-on): Likewise.
5568         * modules/fopen (Depends-on): Likewise.
5569         * modules/fprintf-posix (Depends-on): Likewise.
5570         * modules/frexp (Depends-on): Likewise.
5571         * modules/frexp-nolibm (Depends-on): Likewise.
5572         * modules/frexpl (Depends-on): Likewise.
5573         * modules/frexpl-nolibm (Depends-on): Likewise.
5574         * modules/fseek (Depends-on): Likewise.
5575         * modules/fsusage (Depends-on): Likewise.
5576         * modules/ftell (Depends-on): Likewise.
5577         * modules/ftello (Depends-on): Likewise.
5578         * modules/futimens (Depends-on): Likewise.
5579         * modules/getcwd (Depends-on): Likewise.
5580         * modules/getcwd-lgpl (Depends-on): Likewise.
5581         * modules/getdelim (Depends-on): Likewise.
5582         * modules/getdomainname (Depends-on): Likewise.
5583         * modules/getgroups (Depends-on): Likewise.
5584         * modules/gethostname (Depends-on): Likewise.
5585         * modules/getline (Depends-on): Likewise.
5586         * modules/getlogin_r (Depends-on): Likewise.
5587         * modules/getopt-posix (Depends-on): Likewise.
5588         * modules/getpeername (Depends-on): Likewise.
5589         * modules/getsockname (Depends-on): Likewise.
5590         * modules/getsockopt (Depends-on): Likewise.
5591         * modules/getsubopt (Depends-on): Likewise.
5592         * modules/getusershell (Depends-on): Likewise.
5593         * modules/glob (Depends-on): Likewise.
5594         * modules/grantpt (Depends-on): Likewise.
5595         * modules/iconv_open (Depends-on): Likewise.
5596         * modules/iconv_open-utf (Depends-on): Likewise.
5597         * modules/inet_ntop (Depends-on): Likewise.
5598         * modules/inet_pton (Depends-on): Likewise.
5599         * modules/ioctl (Depends-on): Likewise.
5600         * modules/isapipe (Depends-on): Likewise.
5601         * modules/isfinite (Depends-on): Likewise.
5602         * modules/isinf (Depends-on): Likewise.
5603         * modules/lchown (Depends-on): Likewise.
5604         * modules/ldexpl (Depends-on): Likewise.
5605         * modules/link (Depends-on): Likewise.
5606         * modules/linkat (Depends-on): Likewise.
5607         * modules/listen (Depends-on): Likewise.
5608         * modules/logl (Depends-on): Likewise.
5609         * modules/lstat (Depends-on): Likewise.
5610         * modules/mbrlen (Depends-on): Likewise.
5611         * modules/mbrtowc (Depends-on): Likewise.
5612         * modules/mbsinit (Depends-on): Likewise.
5613         * modules/mbsnrtowcs (Depends-on): Likewise.
5614         * modules/mbsrtowcs (Depends-on): Likewise.
5615         * modules/mbtowc (Depends-on): Likewise.
5616         * modules/memcmp (Depends-on): Likewise.
5617         * modules/mkdir (Depends-on): Likewise.
5618         * modules/mkdtemp (Depends-on): Likewise.
5619         * modules/mkfifo (Depends-on): Likewise.
5620         * modules/mkfifoat (Depends-on): Likewise.
5621         * modules/mknod (Depends-on): Likewise.
5622         * modules/mkostemp (Depends-on): Likewise.
5623         * modules/mkostemps (Depends-on): Likewise.
5624         * modules/mkstemp (Depends-on): Likewise.
5625         * modules/mkstemps (Depends-on): Likewise.
5626         * modules/mktime (Depends-on): Likewise.
5627         * modules/nanosleep (Depends-on): Likewise.
5628         * modules/open (Depends-on): Likewise.
5629         * modules/openat (Depends-on): Likewise.
5630         * modules/perror (Depends-on): Likewise.
5631         * modules/poll (Depends-on): Likewise.
5632         * modules/popen (Depends-on): Likewise.
5633         * modules/posix_spawn (Depends-on): Likewise.
5634         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5635         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5636         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5637         * modules/posix_spawnp (Depends-on): Likewise.
5638         * modules/pread (Depends-on): Likewise.
5639         * modules/printf-posix (Depends-on): Likewise.
5640         * modules/ptsname (Depends-on): Likewise.
5641         * modules/putenv (Depends-on): Likewise.
5642         * modules/pwrite (Depends-on): Likewise.
5643         * modules/readline (Depends-on): Likewise.
5644         * modules/readlink (Depends-on): Likewise.
5645         * modules/readlinkat (Depends-on): Likewise.
5646         * modules/recv (Depends-on): Likewise.
5647         * modules/recvfrom (Depends-on): Likewise.
5648         * modules/regex (Depends-on): Likewise.
5649         * modules/remove (Depends-on): Likewise.
5650         * modules/rename (Depends-on): Likewise.
5651         * modules/renameat (Depends-on): Likewise.
5652         * modules/rmdir (Depends-on): Likewise.
5653         * modules/round (Depends-on): Likewise.
5654         * modules/roundf (Depends-on): Likewise.
5655         * modules/roundl (Depends-on): Likewise.
5656         * modules/rpmatch (Depends-on): Likewise.
5657         * modules/select (Depends-on): Likewise.
5658         * modules/send (Depends-on): Likewise.
5659         * modules/sendto (Depends-on): Likewise.
5660         * modules/setenv (Depends-on): Likewise.
5661         * modules/setlocale (Depends-on): Likewise.
5662         * modules/setsockopt (Depends-on): Likewise.
5663         * modules/shutdown (Depends-on): Likewise.
5664         * modules/sigaction (Depends-on): Likewise.
5665         * modules/signbit (Depends-on): Likewise.
5666         * modules/sigprocmask (Depends-on): Likewise.
5667         * modules/sinl (Depends-on): Likewise.
5668         * modules/sleep (Depends-on): Likewise.
5669         * modules/snprintf (Depends-on): Likewise.
5670         * modules/snprintf-posix (Depends-on): Likewise.
5671         * modules/socket (Depends-on): Likewise.
5672         * modules/sprintf-posix (Depends-on): Likewise.
5673         * modules/sqrtl (Depends-on): Likewise.
5674         * modules/stat (Depends-on): Likewise.
5675         * modules/strchrnul (Depends-on): Likewise.
5676         * modules/strdup-posix (Depends-on): Likewise.
5677         * modules/strerror (Depends-on): Likewise.
5678         * modules/strerror_r-posix (Depends-on): Likewise.
5679         * modules/strndup (Depends-on): Likewise.
5680         * modules/strnlen (Depends-on): Likewise.
5681         * modules/strptime (Depends-on): Likewise.
5682         * modules/strsep (Depends-on): Likewise.
5683         * modules/strsignal (Depends-on): Likewise.
5684         * modules/strstr-simple (Depends-on): Likewise.
5685         * modules/strtod (Depends-on): Likewise.
5686         * modules/strtoimax (Depends-on): Likewise.
5687         * modules/strtok_r (Depends-on): Likewise.
5688         * modules/strtoumax (Depends-on): Likewise.
5689         * modules/symlink (Depends-on): Likewise.
5690         * modules/symlinkat (Depends-on): Likewise.
5691         * modules/tanl (Depends-on): Likewise.
5692         * modules/tcgetsid (Depends-on): Likewise.
5693         * modules/tmpfile (Depends-on): Likewise.
5694         * modules/trunc (Depends-on): Likewise.
5695         * modules/truncf (Depends-on): Likewise.
5696         * modules/truncl (Depends-on): Likewise.
5697         * modules/uname (Depends-on): Likewise.
5698         * modules/unlink (Depends-on): Likewise.
5699         * modules/unlockpt (Depends-on): Likewise.
5700         * modules/unsetenv (Depends-on): Likewise.
5701         * modules/usleep (Depends-on): Likewise.
5702         * modules/utimensat (Depends-on): Likewise.
5703         * modules/vasprintf (Depends-on): Likewise.
5704         * modules/vdprintf (Depends-on): Likewise.
5705         * modules/vdprintf-posix (Depends-on): Likewise.
5706         * modules/vfprintf-posix (Depends-on): Likewise.
5707         * modules/vprintf-posix (Depends-on): Likewise.
5708         * modules/vsnprintf (Depends-on): Likewise.
5709         * modules/vsnprintf-posix (Depends-on): Likewise.
5710         * modules/vsprintf-posix (Depends-on): Likewise.
5711         * modules/wcrtomb (Depends-on): Likewise.
5712         * modules/wcscasecmp (Depends-on): Likewise.
5713         * modules/wcscspn (Depends-on): Likewise.
5714         * modules/wcsdup (Depends-on): Likewise.
5715         * modules/wcsncasecmp (Depends-on): Likewise.
5716         * modules/wcsnrtombs (Depends-on): Likewise.
5717         * modules/wcspbrk (Depends-on): Likewise.
5718         * modules/wcsrtombs (Depends-on): Likewise.
5719         * modules/wcsspn (Depends-on): Likewise.
5720         * modules/wcsstr (Depends-on): Likewise.
5721         * modules/wcstok (Depends-on): Likewise.
5722         * modules/wcswidth (Depends-on): Likewise.
5723         * modules/wctob (Depends-on): Likewise.
5724         * modules/wctomb (Depends-on): Likewise.
5725         * modules/wctype (Depends-on): Likewise.
5726         * modules/wcwidth (Depends-on): Likewise.
5727         * modules/write (Depends-on): Likewise.
5728
5729 2011-05-03  Bruno Haible  <bruno@clisp.org>
5730
5731         Support for conditional dependencies.
5732         * doc/gnulib.texi (Module description): Document the syntax of
5733         conditional dependencies.
5734         * gnulib-tool: New option --conditional-dependencies.
5735         (func_usage): Document it.
5736         (cond_dependencies): New variable.
5737         (func_get_automake_snippet_conditional,
5738         func_get_automake_snippet_unconditional): New functions, extracted from
5739         func_get_automake_snippet.
5740         (func_get_automake_snippet): Use them.
5741         (sed_first_32_chars): New variable.
5742         (func_module_shellfunc_name): New function.
5743         (func_module_shellvar_name): New function.
5744         (func_module_conditional_name): New function.
5745         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
5746         func_cond_module_condition): New functions.
5747         (func_modules_transitive_closure): Add support for conditional
5748         dependencies.
5749         (func_emit_lib_Makefile_am): For a conditional module, enclose the
5750         conditional automake snippet in an automake conditional.
5751         (func_emit_autoconf_snippets): Emit shell functions that contain the
5752         code for conditional modules.
5753         (func_import, func_create_testdir): Update specification.
5754
5755 2011-05-03  Eric Blake  <eblake@redhat.com>
5756
5757         test-getaddrinfo: report error information
5758         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
5759
5760 2011-05-03  Jim Meyering  <meyering@redhat.com>
5761
5762         bootstrap: avoid build failure when $GZIP is set
5763         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
5764         program name.  If defined at all, it is supposed to list gzip options.
5765         Reported by Alan Curry in http://debbugs.gnu.org/8609
5766
5767 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
5768
5769         readme-release: new module with release instructions
5770         * modules/readme-release: New module.
5771         * top/README-release: New file, from coreutils, grep, diffutils.
5772         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5773
5774 2011-05-02  Eric Blake  <eblake@redhat.com>
5775
5776         fflush: also replace fclose when fixing fflush
5777         * modules/fflush (Depends-on): Add fclose.
5778         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
5779         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
5780         memstreams with no backing fd.
5781         * doc/posix-functions/fclose.texi (fclose): Document the use of
5782         fflush module to fix the bug.
5783         * tests/test-fclose.c (main): Relax test when fclose is used in
5784         isolation.
5785
5786         fclose: add some tests
5787         * modules/fclose-tests: New test module.
5788         * tests/test-fclose.c: New file.
5789         * doc/posix-functions/fclose.texi (fclose): Document the bug.
5790
5791         fclose: reduced dependencies
5792         * modules/fclose (Depends-on): Switch from fflush/fseeko to
5793         simpler lseek.
5794         * lib/fclose.c (rpl_fclose): Likewise.
5795         Reported by Simon Josefsson.
5796
5797         exit: drop remaining clients
5798         * modules/argmatch (Depends-on): Replace exit with stdlib.
5799         * modules/copy-file (Depends-on): Likewise.
5800         * modules/execute (Depends-on): Likewise.
5801         * modules/exitfail (Depends-on): Likewise.
5802         * modules/obstack (Depends-on): Likewise.
5803         * modules/pagealign_alloc (Depends-on): Likewise.
5804         * modules/pipe-filter-gi (Depends-on): Likewise.
5805         * modules/pipe-filter-ii (Depends-on): Likewise.
5806         * modules/savewd (Depends-on): Likewise.
5807         * modules/spawn-pipe (Depends-on): Likewise.
5808         * modules/wait-process (Depends-on): Likewise.
5809         * modules/xsetenv (Depends-on): Likewise.
5810         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
5811         * modules/git-merge-changelog (Depends-on): Likewise.
5812         * modules/long-options (Depends-on): Likewise.
5813         * modules/pt_chown (Depends-on): Likewise.
5814         * modules/sysexits (Depends-on): Likewise.
5815
5816         freading: relax license from LGPLv3+ to LGPLv2+
5817         * modules/freading (License): Relax LGPL version.
5818
5819 2011-05-02  Bruno Haible  <bruno@clisp.org>
5820
5821         fchdir: Remove unused dependencies.
5822         * modules/fchdir (Depends-on): Remove include_next.
5823
5824 2011-05-02  Bruno Haible  <bruno@clisp.org>
5825
5826         gnulib-tool: Refactor.
5827         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
5828         from func_emit_autoconf_snippets.
5829         (func_emit_autoconf_snippets): Use it.
5830
5831 2011-05-02  Simon Josefsson  <simon@josefsson.org>
5832
5833         * NEWS: Document removal of 'exit'.
5834         * modules/exit: Remove file.
5835
5836 2011-05-01  Bruno Haible  <bruno@clisp.org>
5837
5838         Update DEPENDENCIES.
5839         * DEPENDENCIES (gettext): Recommend the newest release.
5840         Reported by Simon Josefsson.
5841
5842 2011-05-01  Bruno Haible  <bruno@clisp.org>
5843
5844         gnulib-tool: Reduce code duplication.
5845         * gnulib-tool (func_emit_autoconf_snippets): New function.
5846         (func_import, func_create_testdir): Use it.
5847
5848 2011-04-30  Eric Blake  <eblake@redhat.com>
5849
5850         fclose: don't fail on non-seekable input stream
5851         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
5852         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
5853         since fflush is allowed to fail in that case.
5854
5855 2011-04-30  Bruno Haible  <bruno@clisp.org>
5856
5857         dup3: cleanup
5858         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
5859
5860 2011-04-30  Bruno Haible  <bruno@clisp.org>
5861
5862         netdb: Make it work in C++ mode.
5863         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
5864         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
5865         module.
5866         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
5867         gl_MODULE_INDICATOR_FOR_TESTS.
5868         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
5869         * modules/netdb-c++-tests: New file.
5870         * tests/test-netdb-c++.cc: New file.
5871
5872 2011-04-30  Bruno Haible  <bruno@clisp.org>
5873
5874         New modules 'vfscanf', 'vscanf'.
5875         * modules/vfscanf: New file.
5876         * modules/vscanf: New file.
5877         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
5878         here.
5879         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
5880         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
5881
5882 2011-04-30  Bruno Haible  <bruno@clisp.org>
5883
5884         passfd: Add comments.
5885         * lib/passfd.c: Add comments about platforms.
5886
5887 2011-04-30  Bruno Haible  <bruno@clisp.org>
5888
5889         sys_uio: Make <sys/uio.h> self-contained.
5890         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
5891         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
5892
5893 2011-04-30  Bruno Haible  <bruno@clisp.org>
5894
5895         sys_socket: Ensure 'struct iovec' definition.
5896         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
5897         <sys/socket.h>.
5898         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
5899
5900 2011-04-30  Bruno Haible  <bruno@clisp.org>
5901
5902         sys_uio: Protect definition of 'struct iovec'.
5903         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
5904         it as a C struct.
5905
5906 2011-04-30  Bruno Haible  <bruno@clisp.org>
5907
5908         manywarnings: fix indentation
5909         * m4/manywarnings.m4: Indent by 2 spaces consistently.
5910
5911 2011-04-30  Pádraig Brady <P@draigBrady.com>
5912
5913         manywarnings: add -Wno-missing-field-initializers if needed.
5914         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
5915         option if it's needed to allow initialization with { 0, }
5916
5917 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
5918
5919         announce-gen: cosmetic improvement
5920         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
5921
5922 2011-04-29  Jim Meyering  <meyering@redhat.com>
5923
5924         vc-list-files: indent with spaces, not TABs
5925         * build-aux/vc-list-files: Convert leading TABs to spaces,
5926         to match the style of most other files in gnulib.
5927
5928         announce-gen: indent with spaces, not TABs
5929         * build-aux/announce-gen: Convert all TABs to spaces, to match
5930         the style of most other files in gnulib.
5931
5932 2011-04-29  Eric Blake  <eblake@redhat.com>
5933
5934         quotearg: avoid uninitialized variable use
5935         * lib/quotearg.c (quoting_options_from_style): Initialize
5936         remaining fields, and ensure that custom styles are only used via
5937         quoting_options rather than quoting_style.
5938
5939 2011-04-29  Jim Meyering  <meyering@redhat.com>
5940
5941         maint.mk: remove unused VC-tag variable
5942         * top/maint.mk (VC-tag): Remove unused variable.
5943
5944 2011-04-29  Bruno Haible  <bruno@clisp.org>
5945
5946         netdb: fix gai_strerror replacements
5947         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
5948         * modules/netdb: Substitute it.
5949
5950 2011-04-29  Jim Meyering  <meyering@redhat.com>
5951
5952         test-getcwd.c: avoid new set-but-not-used warning
5953         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
5954         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
5955         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
5956         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
5957
5958         test-hash.c: avoid a new shadowing warning
5959         * tests/test-hash.c (main): Don't shadow "dup".
5960
5961 2011-04-28  Eric Blake  <eblake@redhat.com>
5962
5963         getaddrinfo: fix gai_strerror signature
5964         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
5965         and work around mingw with UNICODE defined.
5966         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
5967         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
5968         * modules/netdb (Makefile.am): Substitute it.
5969         * lib/netdb.in.h (gai_strerror): Declare replacement.
5970         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
5971         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
5972         the fix.
5973
5974         getsockopt: avoid compiler warning
5975         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
5976         Reported by Matthias Bolte.
5977
5978         tests: drop unused link dependency
5979         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
5980         * modules/dirent-safer-tests (Makefile.am): Likewise.
5981         * modules/fdopendir-tests (Makefile.am): Likewise.
5982         * modules/mkfifoat-tests (Makefile.am): Likewise.
5983         * modules/openat-safer-tests (Makefile.am): Likewise.
5984         * modules/openat-tests (Makefile.am): Likewise.
5985         * modules/readlinkat-tests (Makefile.am): Likewise.
5986         * modules/symlinkat-tests (Makefile.am): Likewise.
5987         * modules/linkat-tests (Makefile.am): Likewise.
5988         (Depends-on): Switch to filenamecat-lgpl.
5989         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
5990         LIBINTL.
5991         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
5992         * tests/test-linkat.c (main): Don't require xalloc.
5993
5994         hash, mgetgroups: drop xalloc dependency
5995         * lib/hash.c (includes): Adjust includes.
5996         * lib/mgetgroups.c (includes): Likewise.
5997         (xgetgroups): Move...
5998         * lib/xgetgroups.c: ...to new file.
5999         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
6000         * modules/xgetgroups: New file, split from...
6001         * modules/mgetgroups: ...here.
6002         (Depends-on): Add xalloc-oversized.
6003         * modules/hash (Depends-on): Likewise.
6004         * modules/hash-tests (Depends-on): Drop xalloc.
6005         (test_hash_LDADD): Drop unused library.
6006         * tests/test-hash.c (main): Break xalloc dependency.
6007         (includes): Drop unused include.
6008
6009         xalloc-oversized: new module
6010         * modules/xalloc-oversized: New module.
6011         * modules/xalloc (Depends-on): Add it.
6012         * lib/xalloc.h (xalloc_oversized): Move...
6013         * lib/xalloc-oversized.h: ...into new file.
6014
6015         utimecmp: drop dependency on xmalloc
6016         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
6017         due to memory pressure.
6018         * modules/utimecmp (Depends-on): Drop xalloc.
6019
6020 2011-04-27  Eric Blake  <eblake@redhat.com>
6021
6022         getcwd: fix mingw bugs
6023         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
6024         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
6025         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
6026
6027 2011-04-27  Bruno Haible  <bruno@clisp.org>
6028
6029         mkstemps: Ensure declaration on MacOS X 10.5.
6030         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
6031         * doc/glibc-functions/mkstemps.texi: Document header file problem on
6032         MacOS X.
6033
6034 2011-04-27  Bruno Haible  <bruno@clisp.org>
6035
6036         mkstemp: More documentation.
6037         * doc/posix-functions/mkstemp.texi: Document header file problem on
6038         MacOS X.
6039
6040 2011-04-27  Bruno Haible  <bruno@clisp.org>
6041
6042         mkstemp: Tweak configure message when cross-compiling.
6043         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
6044         result as a guess.
6045
6046 2011-04-27  Bruno Haible  <bruno@clisp.org>
6047
6048         clean-temp: Clarify what it does.
6049         * lib/clean-temp.h: Add more comments.
6050         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
6051         module.
6052         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
6053         * doc/glibc-functions/mkstemps.texi: Likewise.
6054         * doc/glibc-functions/mkostemps.texi: Likewise.
6055
6056 2011-04-27  Eric Blake  <eblake@redhat.com>
6057
6058         fchdir: avoid extra chdir and fix test
6059         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
6060         getcwd-lgpl.
6061         * lib/fchdir.c (get_name): Any absolute name will do; it does not
6062         have to be canonical.
6063         (canonicalize_file_name): Drop unused macro.
6064         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
6065
6066         filenamecat-lgpl: fix licence
6067         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
6068         when it was first created.
6069
6070         linkat, renameat: add missing dependency
6071         * modules/linkat (Depends-on): Require getcwd-lgpl.
6072         * modules/renameat (Depends-on): Likewise.
6073
6074         tests: reduce dependencies
6075         * tests/test-linkat.c (main): Use lighter-weight getcwd.
6076         * tests/test-renameat.c (main): Likewise.
6077         * modules/linkat-tests (Depends-on): Relax dependency.
6078         * modules/renameat-tests (Depends-on): Likewise.
6079         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
6080         dependency explicit.
6081
6082         save-cwd: reduce default dependency
6083         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
6084         * lib/save-cwd.c: Update comments.
6085         * NEWS: Document the semantic change.
6086
6087         getcwd: enhance tests
6088         * tests/test-getcwd-lgpl.c: New file, taken from...
6089         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
6090         repeat long path stress tests from m4 probe.
6091         * modules/getcwd-lgpl-tests: New module.
6092         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
6093         * m4/getcwd-abort-bug.m4: Update comment.
6094         * m4/getcwd-path-max.m4: Likewise.
6095
6096         getcwd-lgpl: new module
6097         * modules/getcwd-lgpl: New module.
6098         * lib/getcwd-lgpl.c: New file.
6099         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6100         * MODULES.html.sh (lacking POSIX:2008): Likewise.
6101         * modules/getcwd (configure.ac): Set C witness.
6102         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
6103
6104         getcwd: tweak comments
6105         * m4/getcwd-abort-bug.m4: Fix comments.
6106         * m4/getcwd-path-max.m4: Likewise.
6107         * m4/getcwd.m4: Likewise.
6108
6109 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6110         and Eric Blake  <eblake@redhat.com>
6111
6112         mkstemp: replace if system version uses wrong permissions
6113         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
6114         read/write mode bits set in file created by mkstemp.
6115         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
6116
6117 2011-04-27  Eric Blake  <eblake@redhat.com>
6118
6119         passfd: avoid compiler warning
6120         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
6121         Reported by Laine Stump.
6122
6123 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
6124
6125         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
6126         required by the NetBSD (and perhaps other 4.4BSD derived) join.
6127
6128 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
6129         and Eric Blake  <eblake@redhat.com>
6130
6131         mkstemp: mention clean-temp module
6132         * lib/mkstemp.c: Add comment.
6133         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
6134
6135 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6136
6137         inttypes: also provide default values for 32-bit tests
6138         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
6139         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
6140
6141 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6142
6143         strtoumax: remove dependency on strtoimax
6144         This is like the strtoull change of yesterday.
6145         * modules/strtoumax (Files): Add lib/strtoimax.c.
6146         (Depends-on): Remove strtoimax and add verify.
6147
6148         inttypes-incomplete: new module
6149         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
6150         all but the PRI* and SCN* parts of gl_INTTYPES_H.
6151         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
6152         of gl_INTTYPES_H.
6153         (gl_INTTYPES_H): Rewrite in terms of these new macros.
6154         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
6155         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
6156         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
6157         * modules/strtoumax, modules/xstrtol (Depends-on):
6158         Depend on inttypes-incomplete, not inttypes.
6159         * modules/inttypes-incomplete: New module, containing the contents
6160         of the old modules/inttypes module, except that the Files: section
6161         omits m4/inttypes-pri.m4, and the configure.ac section invokes
6162         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
6163         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
6164         (Depends-on): Depend only on inttypes-incomplete.
6165         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
6166
6167         inttypes: omit now-redundant strtoimax and strtoumax work
6168         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
6169         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
6170
6171         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
6172         This supports apps that need pointers to strtoimax and strtoumax,
6173         and ports to HP-UX 11.00 64.bit, which has macros that expand to
6174         nonexistent functions.  See
6175         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
6176         et seq.
6177         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
6178         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
6179         a macro.
6180         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
6181
6182 2011-04-25  Simon Josefsson  <simon@josefsson.org>
6183
6184         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
6185
6186 2011-04-25  Bruno Haible  <bruno@clisp.org>
6187
6188         strtol, strtoul: Mark modules as obsolete.
6189         * modules/strtol (Status, Notice): New sections.
6190         * modules/strtoul (Status, Notice): New sections.
6191
6192 2011-04-25  Bruno Haible  <bruno@clisp.org>
6193
6194         strtod: Remove check for strtod, unless supporting old platforms.
6195         * modules/strtod-obsolete: New file.
6196         * m4/strtod-obsolete.m4: New file.
6197         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
6198         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
6199         * modules/strtod (Depends-on): Add strtod-obsolete.
6200         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
6201
6202 2011-04-25  Bruno Haible  <bruno@clisp.org>
6203
6204         strcase: Make module obsolete.
6205         * modules/strcase (Status, Notice): New sections.
6206
6207 2011-04-25  Bruno Haible  <bruno@clisp.org>
6208
6209         dup2: Remove check for dup2, unless supporting old obsolete platforms.
6210         * modules/dup2-obsolete: New file.
6211         * m4/dup2-obsolete.m4: New file.
6212         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
6213         gl_FUNC_DUP2_OBSOLETE is not also defined.
6214         * modules/dup2 (Depends-on): Add dup2-obsolete.
6215         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
6216
6217 2011-04-25  Bruno Haible  <bruno@clisp.org>
6218
6219         strnlen: Avoid memchr related link error on old obsolete platforms.
6220         * modules/memchr-obsolete: New file.
6221         * m4/memchr-obsolete.m4: New file.
6222         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
6223         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
6224         * modules/memchr (Depends-on): Add memchr-obsolete.
6225         * modules/strnlen (Depends-on): Likewise.
6226         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
6227
6228 2011-04-25  Jim Meyering  <meyering@redhat.com>
6229
6230         maint.mk: makefile_at_at_check extend and clean up
6231         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
6232         in addition to */Makefile.am.
6233         Exempt legitimate uses of @VAR@ notation, e.g.,
6234         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
6235         Remove obsolete coreutils-specific comment.
6236         Prompted by discussion here:
6237         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
6238
6239 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6240
6241         strtoul: remove dependency on strtol
6242         This is so that 'configure' need not check for strtol merely because
6243         the application needs strtoul.
6244         * modules/strtoul (Files): Add lib/strtol.c.
6245         (Depends-on): Remove strtol.
6246
6247         strtoull: remove dependency on strtoul
6248         This is like the strtoll change.
6249         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
6250         (Depends-on): Remove strtoul.
6251
6252         strtoll: remove dependency on strtol
6253         This is so that 'configure' need not check for strtol merely because
6254         the application needs strtoll.
6255         * modules/strtoll (Files): Add lib/strtol.c.
6256         (Depends-on): Remove strtol.
6257
6258 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6259
6260         inttypes: Move some configure check to module 'imaxdiv'.
6261         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
6262         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
6263         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
6264
6265 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6266
6267         inttypes: Move some configure check to module 'imaxabs'.
6268         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
6269         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
6270         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
6271
6272 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6273
6274         inttypes: Remove configure tests that are not needed since 2009-12-31.
6275         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
6276         gl_cv_header_working_inttypes_h.
6277
6278 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6279
6280         * modules/strnlen (Depends-on): Remove memchr.
6281         The strnlen implementation doesn't need the memchr module's fixes; see
6282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
6283
6284         strtol: remove dependency on wchar
6285         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
6286         * modules/strtol (Depends-on): Remove wchar.
6287
6288 2011-04-21  Eric Blake  <eblake@redhat.com>
6289
6290         passfd: fix test regression on Linux
6291         * modules/passfd-tests (configure.ac): Correct socketpair check.
6292
6293         passfd: speed up configure and drop unused code
6294         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
6295         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
6296         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
6297         Instead of probing at configure for unix_scm_rights_bsd44_way,
6298         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
6299         check to a struct member probe.
6300         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
6301         (sendfd, recvfd): Update preprocessor checks.
6302         * modules/passfd (Files): Reflect rename, and drop unused file.
6303         (Depends-on): Drop unused dependency.
6304
6305         passfd: allow compilation on mingw
6306         * modules/sys_socket (Depends-on): Add sys_uio.
6307         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
6308         iovec and a minimal struct msghdr.
6309         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6310         * tests/test-sys_socket.c (main): Enhance test.
6311         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6312         guaranteed to provide what we need.
6313         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6314         * modules/passfd-tests (Depends-on): Add sys_wait.
6315         * tests/test-passfd.c (main): Skip test on mingw, for now.
6316         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6317         partial 'struct msghdr' implementation.
6318
6319         sys_uio: new module
6320         * modules/sys_uio: New module.
6321         * modules/sys_uio-tests: Likewise.
6322         * lib/sys_uio.in.h: New file.
6323         * m4/sys_uio_h.m4: Likewise.
6324         * tests/test-sys_uio.c: Likewise.
6325         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6326         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6327
6328 2011-04-20  Jim Meyering  <meyering@redhat.com>
6329
6330         useless-if-before-free: avoid false-positive
6331         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6332         disjunct so that it too requires a terminating ";".  Without that,
6333         this script would identify as useless one statement from gcc that
6334         was not:
6335           if (aligned_ptr)
6336             free (((void **) aligned_ptr) [-1]);
6337
6338 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6339
6340         doc: update users.txt.
6341         * users.txt: Add barcode.
6342
6343 2011-04-19  Bruno Haible  <bruno@clisp.org>
6344
6345         ioctl: Remove link dependency on native Windows.
6346         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6347         (gl_close_fn, gl_ioctl_fn): New types.
6348         (struct fd_hook): Renamed from struct close_hook. Change type of
6349         private_close_fn field. Add private_ioctl_fn field.
6350         (close_hook_fn): Add parameter for primary close method.
6351         (execute_close_hooks, execute_all_close_hooks): Likewise.
6352         (ioctl_hook_fn): New type.
6353         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6354         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6355         argument.
6356         (unregister_fd_hook): Renamed from unregister_close_hook.
6357         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6358         Don't include <unistd.h>.
6359         (close): Remove undef.
6360         (anchor): Update.
6361         (execute_close_hooks): Add argument for primary close method.
6362         (execute_all_close_hooks): Likewise.
6363         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6364         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6365         argument. Allow each argument to be NULL.
6366         (unregister_fd_hook): Renamed from unregister_close_hook.
6367         * lib/close.c (rpl_close): Pass 'close' function pointer to
6368         execute_all_close_hooks.
6369         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6370         (primary_ioctl): New function.
6371         (ioctl): Don't call ioctlsocket here. Instead, call
6372         execute_all_ioctl_hooks.
6373         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6374         close method.
6375         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6376         (fd_sockets_hook): Renamed from close_sockets_hook.
6377         (gl_sockets_startup, gl_sockets_cleanup): Update.
6378         * modules/fd-hook: Renamed from modules/close-hook. Update.
6379         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6380         * modules/sockets (Depends-on): Likewise.
6381         * modules/ioctl (Depends-on): Add fd-hook.
6382         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6383         GNULIB_SOCKET.
6384
6385 2011-04-19  Bruno Haible  <bruno@clisp.org>
6386
6387         Move the support of O_NONBLOCK in open() to the 'open' module.
6388         * modules/nonblocking (Depends-on): Remove 'open'.
6389         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6390         gl_cv_have_open_O_NONBLOCK.
6391         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6392         O_NONBLOCK support.
6393         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6394
6395 2011-04-17  Bruno Haible  <bruno@clisp.org>
6396
6397         pipe2: Simplify code.
6398         * lib/pipe2.c (pipe2): Reduce code duplication.
6399
6400 2011-04-17  Bruno Haible  <bruno@clisp.org>
6401
6402         nonblocking: Add comment.
6403         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6404
6405 2011-04-17  Bruno Haible  <bruno@clisp.org>
6406
6407         nonblocking: Add tests for sockets.
6408         * tests/test-nonblocking-socket.sh: New file.
6409         * tests/test-nonblocking-socket-main.c: New file.
6410         * tests/test-nonblocking-socket-child.c: New file.
6411         * tests/test-nonblocking-socket.h: New file.
6412         * tests/socket-server.h: New file.
6413         * tests/socket-client.h: New file.
6414         * modules/nonblocking-socket-tests: New file.
6415         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6416
6417 2011-04-17  Bruno Haible  <bruno@clisp.org>
6418
6419         nonblocking: Add tests for pipes.
6420         * tests/test-nonblocking-pipe.sh: New file.
6421         * tests/test-nonblocking-pipe-main.c: New file.
6422         * tests/test-nonblocking-pipe-child.c: New file.
6423         * tests/test-nonblocking-pipe.h: New file.
6424         * tests/test-nonblocking-writer.h: New file.
6425         * tests/test-nonblocking-reader.h: New file.
6426         * tests/test-nonblocking-misc.h: New file.
6427         * modules/nonblocking-pipe-tests: New file.
6428         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6429
6430 2011-04-16  Bruno Haible  <bruno@clisp.org>
6431
6432         gettext: Clarify the needed programmer actions.
6433         * modules/gettext (Notice): New field.
6434         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6435
6436 2011-04-16  Bruno Haible  <bruno@clisp.org>
6437
6438         strchrnul: Tweak last commit.
6439         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6440         bug.
6441         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6442         as in _GL_FUNCDECL_SYS.
6443         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6444         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6445
6446 2011-04-15  Eric Blake  <eblake@redhat.com>
6447
6448         strchrnul: work around cygwin bug
6449         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6450         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6451         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6452         * modules/string (Makefile.am): Substitute it.
6453         * lib/string.in.h (strchrnul): Use it.
6454
6455 2011-04-15  Bruno Haible  <bruno@clisp.org>
6456
6457         Don't require lib/stdio-write.c when only module 'stdio' is used.
6458         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6459         invocation.
6460         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6461
6462 2011-04-14  Bruno Haible  <bruno@clisp.org>
6463
6464         Support non-blocking pipe I/O in read() on native Windows.
6465         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6466         (read): New declaration.
6467         * lib/read.c: New file.
6468         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6469         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6470         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6471         vscanf): New declarations.
6472         * lib/stdio-read.c: New file.
6473         * m4/read.m4: New file.
6474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6475         REPLACE_READ.
6476         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6477         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6478         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6479         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6480         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6481         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6482         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6483         * modules/read: New file.
6484         * modules/nonblocking (Files): Add lib/stdio-read.c.
6485         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6486         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6487         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6488         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6489         * modules/pread (Depends-on): Add read.
6490         * modules/safe-read (Depends-on): Likewise.
6491         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6492         gets, scanf, vfscanf, vscanf): Verify signatures.
6493         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6494         problem with non-blocking pipes.
6495         * doc/posix-functions/fgetc.texi: Likewise.
6496         * doc/posix-functions/fgets.texi: Likewise.
6497         * doc/posix-functions/fread.texi: Likewise.
6498         * doc/posix-functions/fscanf.texi: Likewise.
6499         * doc/posix-functions/getc.texi: Likewise.
6500         * doc/posix-functions/getchar.texi: Likewise.
6501         * doc/posix-functions/gets.texi: Likewise.
6502         * doc/posix-functions/scanf.texi: Likewise.
6503         * doc/posix-functions/vfscanf.texi: Likewise.
6504         * doc/posix-functions/vscanf.texi: Likewise.
6505
6506 2011-04-14  Bruno Haible  <bruno@clisp.org>
6507
6508         Support non-blocking pipe I/O in write() on native Windows.
6509         * lib/write.c (rpl_write): Split a write request that failed merely
6510         because the byte count was larger than the pipe buffer's size.
6511         * doc/posix-functions/write.texi: Mention the problem with large byte
6512         counts.
6513
6514 2011-04-14  Bruno Haible  <bruno@clisp.org>
6515
6516         wchar: Ensure that wchar_t gets defined on uClibc.
6517         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6518         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6519
6520 2011-04-13  Bruno Haible  <bruno@clisp.org>
6521
6522         safe-write, full-read: Avoid unnecessary compilation units.
6523         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6524         (Depends-on): Remove safe-read. Add ssize_t.
6525         * modules/full-read (Files): Add lib/full-write.c.
6526         (Depends-on): Add full-write.
6527
6528 2011-04-13  Bruno Haible  <bruno@clisp.org>
6529
6530         Support non-blocking pipe I/O and SIGPIPE in pwrite().
6531         * modules/pwrite (Depends-on): Add 'write'.
6532
6533 2011-04-13  Bruno Haible  <bruno@clisp.org>
6534
6535         Support non-blocking pipe I/O in write() on native Windows.
6536         * lib/unistd.in.h (write): Enable replacement also if
6537         GNULIB_UNISTD_H_NONBLOCKING is 1.
6538         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
6539         (rpl_write): When failing to write on a non-blocking pipe, change
6540         errno from ENOSPC to EAGAIN.
6541         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
6542         putchar, puts, vfprintf, vprintf): Enable replacement also if
6543         GNULIB_STDIO_H_NONBLOCKING is 1.
6544         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
6545         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
6546         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
6547         CALL_WITH_SIGPIPE_EMULATION.
6548         (CALL_WITH_SIGPIPE_EMULATION): Use them.
6549         * m4/nonblocking.m4: New file.
6550         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
6551         for non-blocking I/O support.
6552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6553         GNULIB_UNISTD_H_NONBLOCKING.
6554         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
6555         required for non-blocking I/O support.
6556         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
6557         * modules/nonblocking (Files): Add m4/nonblocking.m4,
6558         lib/stdio-write.c, m4/asm-underscore.m4.
6559         (Depends-on): Add stdio, unistd.
6560         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
6561         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
6562         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
6563         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
6564         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
6565         problem with non-blocking pipes.
6566         * doc/posix-functions/fputc.texi: Likewise.
6567         * doc/posix-functions/fputs.texi: Likewise.
6568         * doc/posix-functions/fwrite.texi: Likewise.
6569         * doc/posix-functions/printf.texi: Likewise.
6570         * doc/posix-functions/putc.texi: Likewise.
6571         * doc/posix-functions/putchar.texi: Likewise.
6572         * doc/posix-functions/puts.texi: Likewise.
6573         * doc/posix-functions/vfprintf.texi: Likewise.
6574         * doc/posix-functions/vprintf.texi: Likewise.
6575         * doc/posix-functions/write.texi: Likewise.
6576
6577 2011-04-10  Jim Meyering  <meyering@redhat.com>
6578
6579         maint.mk: prohibit doubled words
6580         Detect them also when they're separated by a newline.
6581         There are 3 ways to customize it:
6582           - disable the test on a per file basis, as usual with rules using
6583             $(VC_LIST_EXCEPT)
6584           - replace the default doubled-word-selecting regexp (affects all files)
6585           - ignore a particular file-vs-doubled-word match
6586         I nearly used that last one to ignore the "is is" match in
6587         coreutils' NEWS file, since the text was "ls -is is ..."
6588         To do that, I would have added this line to cfg.mk:
6589           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
6590         but it would have ignored any "is is" match in NEWS.
6591         Low probability, but still...
6592         Instead, I changed the text, slightly:
6593           -  ls -is is now consistent with ls -lis in ignoring values returned
6594           +  "ls -is" is now consistent with ls -lis in ignoring values returned
6595         * top/maint.mk (prohibit_double_word_RE_): Provide default.
6596         (prohibit_doubled_word_): Define.
6597         (sc_prohibit_doubled_word): New rule.
6598         (sc_prohibit_the_the): Remove.  Subsumed by the above.
6599
6600 2011-04-10  Jim Meyering  <meyering@redhat.com>
6601
6602         maint: fix doubled-word typo in comment
6603         * m4/gethostname.m4: s/is is/it is/
6604         * m4/getdomainname.m4: Likewise.
6605
6606 2011-04-10  Jim Meyering  <meyering@redhat.com>
6607
6608         maint: remove doubled word: s/it it/it/
6609         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
6610
6611 2011-04-10  Jim Meyering  <meyering@redhat.com>
6612
6613         maint.mk: remove useless semicolon and backslash
6614         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
6615         semicolon and backslash.
6616
6617 2011-04-10  Bruno Haible  <bruno@clisp.org>
6618
6619         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6620         * modules/stdint-tests (Depends-on): Add wchar.
6621
6622 2011-04-10  Jim Meyering  <meyering@redhat.com>
6623
6624         maint: remove doubled words in comments, e.g., s/a a/a/
6625         * lib/strptime.c (day_of_the_week): s/the the/the/
6626         * tests/test-chown.h (test_chown): s/a a/a/
6627
6628         test-chown.h: correct a cast
6629         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6630         when the destination is a stat.st_gid.
6631
6632 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6633
6634         getaddrinfo: Fix test for sa_len member.
6635         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6636         include <sys/types.h> before <sys/socket.h>.
6637
6638 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6639
6640         maint: change "can not" to "cannot"
6641         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6642         boundaries.
6643
6644 2011-04-09  Jim Meyering  <meyering@redhat.com>
6645
6646         maint: change "a a" to "a"
6647         * tests/test-lchown.h (test_lchown): s/a a/a/
6648
6649         maint.mk: prohibit \<the the\>
6650         * top/maint.mk (sc_prohibit_the_the): New rule.
6651
6652         maint: fix "the the" in comment
6653         * lib/count-one-bits.h: s/the the/the/
6654
6655         maint: change "can not" to "cannot"
6656         But do not change the occurrences in maintain.texi or in
6657         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6658         * doc/gnulib-tool.texi: s/can not/cannot/
6659         * doc/posix-functions/accept.texi (accept): Likewise.
6660         * doc/posix-functions/socket.texi (socket): Likewise.
6661         * lib/mbrtowc.c: Likewise.
6662
6663         maint.mk: prohibit use of "can not"
6664         * top/maint.mk (sc_prohibit_can_not): New rule.
6665         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6666
6667 2011-04-09  Bruno Haible  <bruno@clisp.org>
6668
6669         careadlinkat: Guard against misuse of careadlinkatcwd.
6670         * lib/careadlinkat.c: Include <stdlib.h>.
6671         (careadlinkatcwd): Check that the fd argument is as expected.
6672
6673 2011-04-09  Bruno Haible  <bruno@clisp.org>
6674
6675         careadlinkat: Use common coding style.
6676         * lib/careadlinkat.c: Move gnulib includes after system includes.
6677
6678 2011-04-09  Bruno Haible  <bruno@clisp.org>
6679
6680         careadlinkat: Clarify specification.
6681         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6682         (careadlinkatcwd): Add comment.
6683         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6684
6685 2011-04-09  Bruno Haible  <bruno@clisp.org>
6686
6687         areadlinkat: Avoid link error on many platforms.
6688         * modules/areadlinkat (Depends-on): Add areadlink.
6689
6690 2011-04-09  Bruno Haible  <bruno@clisp.org>
6691
6692         allocator, careadlinkat: Fix double-inclusion guard.
6693         * lib/allocator.h: Fix double-inclusion guard.
6694         * lib/careadlinkat.h: Likewise.
6695
6696 2011-04-09  Bruno Haible  <bruno@clisp.org>
6697
6698         relocatable-prog-wrapper: Update after module 'areadlink' changed.
6699         * lib/relocwrapper.c: Update dependencies hierarchy.
6700         * build-aux/install-reloc: Update list of files to be compiled.
6701         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
6702         lib/allocator.[hc].
6703
6704 2011-04-08  Eric Blake  <eblake@redhat.com>
6705
6706         strftime: silence gnulib-tool warning
6707         * modules/strftime-tests (Depends-on): Drop automatic dependency.
6708
6709 2011-04-08  Bruno Haible  <bruno@clisp.org>
6710
6711         verify: Fix syntax error with GCC 4.6 in C++ mode.
6712         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
6713         (HAVE_STATIC_ASSERT): New macro.
6714         (verify_true, verify): Use 'static_assert' if it is supported and
6715         '_Static_assert' is not supported.
6716
6717 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6718
6719         allocator: New module.
6720         * modules/allocator, lib/allocator.c: New files.
6721         * lib/allocator.h (stdlib_allocator): New decl.
6722         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
6723         Remove.  Do not include <stdlib.h>.
6724         (careadlinkat): Use stdlib_allocator instead of rolling our own.
6725         * modules/careadlinkat (Files): Remove lib/allocator.h.
6726         (Depends-on): Add allocator.
6727
6728         stdlib: let modules use system malloc, realloc
6729         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
6730         if !_GL_USE_STDLIB_ALLOC.
6731         (malloc, realloc): Limit this change to a smaller scope.
6732
6733         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
6734         (malloc, realloc): Don't #undef; no longer needed.
6735         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6736         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6737         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6738         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6739         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6740         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6741         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6742         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6743
6744         careadlinkat: rename members to avoid problem
6745         * lib/allocator.h (struct allocator): Rename members from
6746         malloc/realloc to allocate/reallocate, to avoid problems if malloc
6747         and realloc are #define'd.  Reported by Eric Blake in
6748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
6749         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
6750
6751 2011-04-08  Eric Blake  <eblake@redhat.com>
6752
6753         nonblocking: reduce dependency
6754         * tests/test-nonblocking.c: Only test sockets when in use.
6755         * modules/nonblocking-tests (Depends-on): Drop socket.
6756         (Makefile.am): Link even if sockets are not present.
6757         * modules/pipe2-tests (Makefile.am): Likewise.
6758         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
6759
6760         pipe2: fix O_NONBLOCK support on mingw
6761         * modules/pipe2 (Depends-on): Add nonblocking.
6762         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
6763         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
6764         * tests/test-nonblocking.c (main): Likewise.
6765         * modules/pipe2-tests (Makefile.am): Avoid link failure.
6766
6767         fcntl-h: fix O_ACCMODE on cygwin
6768         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
6769         * lib/fcntl.in.h (O_ACCMODE): Fix it.
6770
6771         pipe-filter: drop O_NONBLOCK workarounds
6772         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
6773         * modules/pipe-filter-ii (Depends-on): Likewise.
6774         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
6775
6776         nonblocking: provide O_NONBLOCK for mingw
6777         * modules/nonblocking (Depends-on): Add open.
6778         (configure.ac): Set new witness macro.
6779         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
6780         * modules/fcntl-h (Makefile.am): Substitute it.
6781         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
6782         nonblocking module is in use.
6783         * lib/nonblocking.c: Adjust portability test.
6784         * lib/open.c (open): Don't let native open see gnulib flag.
6785         * tests/test-fcntl-h.c (main): Enhance test.
6786         * tests/test-open.h (test_open): Likewise.
6787         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
6788
6789         careadlinkat: fix compilation error on mingw
6790         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
6791         within struct allocator.
6792
6793 2011-04-06  Eric Blake  <eblake@redhat.com>
6794
6795         binary-io: relicense under LGPLv2+
6796         * modules/binary-io (License): Relax to LGPLv2+.
6797         Requested for libvirt, and required by pipe2.
6798
6799 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6800
6801         verify: use _Static_assert if available
6802         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
6803         (verify_true, verify): Use it if available.  This generates better
6804         diagnostics with GCC 4.6.0 and later.
6805
6806 2011-04-05  Bruno Haible  <bruno@clisp.org>
6807
6808         Remove leftover generated .h files after config.status changed.
6809
6810         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
6811         GL_GENERATE_ALLOCA_H.
6812         * modules/alloca-opt (Makefile.am): Remove alloca.h if
6813         GL_GENERATE_ALLOCA_H evaluates to false.
6814
6815         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
6816         GL_GENERATE_ARGZ_H.
6817         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
6818         evaluates to false.
6819
6820         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
6821         GL_GENERATE_BYTESWAP_H.
6822         * modules/byteswap (Makefile.am): Remove byteswap.h if
6823         GL_GENERATE_BYTESWAP_H evaluates to false.
6824
6825         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
6826         GL_GENERATE_ERRNO_H.
6827         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
6828         evaluates to false.
6829
6830         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
6831         GL_GENERATE_FLOAT_H.
6832         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
6833         evaluates to false.
6834
6835         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
6836         GL_GENERATE_FNMATCH_H.
6837         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
6838         GL_GENERATE_FNMATCH_H evaluates to false.
6839
6840         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
6841         GL_GENERATE_GLOB_H.
6842         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
6843         evaluates to false.
6844
6845         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
6846         automake conditional GL_GENERATE_ICONV_H.
6847         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
6848         evaluates to false.
6849
6850         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
6851         GL_GENERATE_NETINET_IN_H.
6852         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
6853         GL_GENERATE_NETINET_IN_H evaluates to false.
6854
6855         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
6856         conditional GL_GENERATE_PTHREAD_H.
6857         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
6858         * modules/pthread (Makefile.am): Remove pthread.h if
6859         GL_GENERATE_PTHREAD_H evaluates to false.
6860
6861         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
6862         GL_GENERATE_SCHED_H.
6863         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
6864         evaluates to false.
6865
6866         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
6867         conditional GL_GENERATE_SELINUX_CONTEXT_H.
6868         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
6869         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
6870
6871         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
6872         GL_GENERATE_STDARG_H.
6873         * modules/stdarg (Makefile.am): Remove stdarg.h if
6874         GL_GENERATE_STDARG_H evaluates to false.
6875
6876         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
6877         GL_GENERATE_STDBOOL_H.
6878         * modules/stdbool (Makefile.am): Remove stdbool.h if
6879         GL_GENERATE_STDBOOL_H evaluates to false.
6880
6881         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
6882         conditional GL_GENERATE_STDDEF_H.
6883         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
6884         * modules/stddef (Makefile.am): Remove stddef.h if
6885         GL_GENERATE_STDDEF_H evaluates to false.
6886
6887         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
6888         GL_GENERATE_STDINT_H.
6889         * modules/stdint (Makefile.am): Remove stdint.h if
6890         GL_GENERATE_STDINT_H evaluates to false.
6891
6892         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
6893         GL_GENERATE_SYSEXITS_H.
6894         * modules/sysexits (Makefile.am): Remove sysexits.h if
6895         GL_GENERATE_SYSEXITS_H evaluates to false.
6896
6897         Reported by Karl Berry and Ralf Wildenhues.
6898
6899 2011-04-05  Bruno Haible  <bruno@clisp.org>
6900
6901         Ensure to rebuild generated .h files when config.status has changed.
6902         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
6903         config.status.
6904         * modules/ctype (Makefile.am): Likewise.
6905         * modules/dirent (Makefile.am): Likewise.
6906         * modules/errno (Makefile.am): Likewise.
6907         * modules/fcntl-h (Makefile.am): Likewise.
6908         * modules/float (Makefile.am): Likewise.
6909         * modules/getopt-posix (Makefile.am): Likewise.
6910         * modules/glob (Makefile.am): Likewise.
6911         * modules/iconv-h (Makefile.am): Likewise.
6912         * modules/inttypes (Makefile.am): Likewise.
6913         * modules/langinfo (Makefile.am): Likewise.
6914         * modules/locale (Makefile.am): Likewise.
6915         * modules/math (Makefile.am): Likewise.
6916         * modules/netdb (Makefile.am): Likewise.
6917         * modules/netinet_in (Makefile.am): Likewise.
6918         * modules/poll-h (Makefile.am): Likewise.
6919         * modules/pthread (Makefile.am): Likewise.
6920         * modules/pty (Makefile.am): Likewise.
6921         * modules/sched (Makefile.am): Likewise.
6922         * modules/search (Makefile.am): Likewise.
6923         * modules/selinux-h (Makefile.am): Likewise.
6924         * modules/signal (Makefile.am): Likewise.
6925         * modules/spawn (Makefile.am): Likewise.
6926         * modules/stdarg (Makefile.am): Likewise.
6927         * modules/stdbool (Makefile.am): Likewise.
6928         * modules/stddef (Makefile.am): Likewise.
6929         * modules/stdint (Makefile.am): Likewise.
6930         * modules/stdio (Makefile.am): Likewise.
6931         * modules/stdlib (Makefile.am): Likewise.
6932         * modules/string (Makefile.am): Likewise.
6933         * modules/strings (Makefile.am): Likewise.
6934         * modules/sys_file (Makefile.am): Likewise.
6935         * modules/sys_ioctl (Makefile.am): Likewise.
6936         * modules/sys_select (Makefile.am): Likewise.
6937         * modules/sys_socket (Makefile.am): Likewise.
6938         * modules/sys_stat (Makefile.am): Likewise.
6939         * modules/sys_time (Makefile.am): Likewise.
6940         * modules/sys_times (Makefile.am): Likewise.
6941         * modules/sys_utsname (Makefile.am): Likewise.
6942         * modules/sys_wait (Makefile.am): Likewise.
6943         * modules/sysexits (Makefile.am): Likewise.
6944         * modules/termios (Makefile.am): Likewise.
6945         * modules/time (Makefile.am): Likewise.
6946         * modules/unistd (Makefile.am): Likewise.
6947         * modules/wchar (Makefile.am): Likewise.
6948         * modules/wctype-h (Makefile.am): Likewise.
6949         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
6950
6951 2011-04-05  Bruno Haible  <bruno@clisp.org>
6952
6953         pipe2: Relicense under LGPLv2+.
6954         * modules/pipe2 (License): Change to LGPLv2+.
6955         Requested by Eric Blake, for libvirt.
6956
6957 2011-04-05  Bruce Korb  <bkorb@gnu.org>
6958
6959         bootstrap: compute gnulib_extra_files after updating build_aux
6960         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
6961         change build_aux or also supply gnulib_extra_files.  Handle correctly.
6962
6963 2011-04-05  Eric Blake  <eblake@redhat.com>
6964
6965         bootstrap: preserve git whitelist item sorting
6966         * build-aux/bootstrap (sort_patterns): New function.
6967         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
6968
6969 2011-04-05  Simon Josefsson  <simon@josefsson.org>
6970
6971         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
6972         sc_space_tab check.
6973
6974 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6975
6976         areadlink, areadlinkat: rewrite in terms of careadlinkat
6977         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
6978         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
6979         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
6980         (malloc, realloc): Remove #undefs.
6981         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
6982         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
6983         readlink, ssize_t, stdint, unistd.
6984         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
6985         areadlink, stdint.
6986
6987         careadlinkat: new module
6988         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
6989         * modules/careadlinkat: New files, written by me with
6990         a review and feedback from Ben Pfaff in
6991         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
6992
6993 2011-04-01  Bruno Haible  <bruno@clisp.org>
6994
6995         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
6996         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
6997         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
6998         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
6999         Reported by Bruce Korb <bruce.korb@gmail.com>.
7000
7001 2011-04-01  Bruno Haible  <bruno@clisp.org>
7002
7003         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
7004         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
7005         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
7006         * modules/wcpcpy (Depends-on): Add extensions.
7007         * modules/wcpncpy (Depends-on): Likewise.
7008         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
7009         systems.
7010         * doc/posix-functions/wcpncpy.texi: Likewise.
7011         * doc/posix-functions/wcwidth.texi: Likewise.
7012
7013 2011-03-31  Eric Blake  <eblake@redhat.com>
7014
7015         nonblocking: fix mingw test failures
7016         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
7017         non-blocking flag on regular file.
7018         (get_nonblocking_flag): Set errno on invalid fd.
7019         * tests/test-nonblocking.c (main): Avoid test failure on
7020         directories if fchdir is not active.
7021         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
7022
7023 2011-03-31  Bruno Haible  <bruno@clisp.org>
7024
7025         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
7026         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
7027         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
7028         Reported by Simon Josefsson <simon@josefsson.org>.
7029
7030 2011-03-31  Bruno Haible  <bruno@clisp.org>
7031         and Eric Blake  <eblake@redhat.com>
7032
7033         nonblocking: new module
7034         * modules/nonblocking: New module.
7035         * modules/nonblocking-tests: Likewise.
7036         * lib/nonblocking.h: New file.
7037         * lib/nonblocking.c: Likewise.
7038         * tests/test-nonblocking.c: New test.
7039         * lib/ioctl.c (ioctl) [mingw]: Update comment.
7040
7041 2011-03-30  Bruno Haible  <bruno@clisp.org>
7042
7043         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
7044         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
7045         instead of 'printf' format for GCC >= 4.4.
7046         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
7047         (fprintf, printf, vfprintf, vprintf): Declare with
7048         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
7049         the system's vfprintf() function.
7050         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
7051
7052 2011-03-30  Eric Blake  <eblake@redhat.com>
7053
7054         passfd: fix scoping bug
7055         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
7056         before sendmsg/recvmsg.
7057
7058         passfd: standardize coding conventions
7059         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
7060         can be learned at compile time.
7061         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
7062         ifdefs.
7063         (sendfd, recvfd): Follow gnulib code conventions.
7064
7065         passfd: fix incorrect sendmsg arguments
7066         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
7067         incorrect msg_controllen value.
7068         * modules/passfd-tests (Depends-on): Check for alarm.
7069         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
7070         Reported by Bastien ROUCARIES.
7071
7072 2011-03-30  Bruno Haible  <bruno@clisp.org>
7073
7074         c-strcasestr: Relicense under LGPLv2+.
7075         * modules/c-strcasestr (License): Change to LGPLv2+.
7076         Requested by Eric Blake, for libvirt.
7077
7078 2011-03-30  Simon Josefsson  <simon@josefsson.org>
7079
7080         * users.txt: Add libidn2.  Fix libtasn1 link.
7081
7082 2011-03-30  Jim Meyering  <meyering@redhat.com>
7083
7084         tests: readlink* ("",... fails with EINVAL on newer kernels
7085         readlink and readlinkat have typically failed with ENOENT for
7086         the invalid, empty file name,  "".  However, with the advent
7087         of linux-2.6.39, they fail with EINVAL.
7088         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
7089         when operating on the empty file name.
7090         * tests/test-readlink.h (test_readlink): Likewise.
7091
7092 2011-03-29  Bruno Haible  <bruno@clisp.org>
7093
7094         Relicense some modules under LGPLv2+, for libidn2.
7095         * modules/array-mergesort (License): Change to LGPLv2+.
7096         * modules/c-strcaseeq (License): Likewise.
7097         * modules/striconveh (License): Likewise.
7098         * modules/striconveha (License): Likewise.
7099         * modules/uniconv/base (License): Likewise.
7100         * modules/uniconv/u8-conv-from-enc (License): Likewise.
7101         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
7102         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
7103         * modules/unictype/base (License): Likewise.
7104         * modules/unictype/bidiclass-of (License): Likewise.
7105         * modules/unictype/category-M (License): Likewise.
7106         * modules/unictype/category-none (License): Likewise.
7107         * modules/unictype/category-of (License): Likewise.
7108         * modules/unictype/category-test (License): Likewise.
7109         * modules/unictype/category-test-withtable (License): Likewise.
7110         * modules/unictype/combining-class (License): Likewise.
7111         * modules/unictype/joiningtype-of (License): Likewise.
7112         * modules/unictype/scripts (License): Likewise.
7113         * modules/uninorm/base (License): Likewise.
7114         * modules/uninorm/canonical-decomposition (License): Likewise.
7115         * modules/uninorm/composition (License): Likewise.
7116         * modules/uninorm/decompose-internal (License): Likewise.
7117         * modules/uninorm/decomposition-table (License): Likewise.
7118         * modules/uninorm/nfc (License): Likewise.
7119         * modules/uninorm/nfd (License): Likewise.
7120         * modules/uninorm/u32-normalize (License): Likewise.
7121         * modules/unistr/base (License): Likewise.
7122         * modules/unistr/u32-cpy (License): Likewise.
7123         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
7124         * modules/unistr/u32-to-u8 (License): Likewise.
7125         * modules/unistr/u32-uctomb (License): Likewise.
7126         * modules/unistr/u8-check (License): Likewise.
7127         * modules/unistr/u8-mblen (License): Likewise.
7128         * modules/unistr/u8-mbtouc (License): Likewise.
7129         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
7130         * modules/unistr/u8-mbtoucr (License): Likewise.
7131         * modules/unistr/u8-prev (License): Likewise.
7132         * modules/unistr/u8-strlen (License): Likewise.
7133         * modules/unistr/u8-to-u32 (License): Likewise.
7134         * modules/unistr/u8-uctomb (License): Likewise.
7135         * modules/unitypes (License): Likewise.
7136         Requested by Simon Josefsson.
7137
7138 2011-03-29  Simon Josefsson  <simon@josefsson.org>
7139
7140         lib-symbol-visibility: Add a notice.
7141         * modules/lib-symbol-visibility (Notice): New field.
7142
7143 2011-03-29  Bruno Haible  <bruno@clisp.org>
7144
7145         getaddrinfo: Doc fix.
7146         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
7147         section "fixed in Gnulib".
7148
7149 2011-03-28  Simon Josefsson  <simon@josefsson.org>
7150
7151         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
7152         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
7153
7154 2011-03-26  Bruno Haible  <bruno@clisp.org>
7155
7156         unictype/property-byname: Reduce the number of load-time relocations.
7157         * lib/unictype/pr_byname.c: Include <stdlib.h>.
7158         (UC_PROPERTY_INDEX_*): New enumeration values.
7159         (uc_property_byname): Convert an index from the lookup table to an
7160         uc_property_t.
7161         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
7162         values.
7163
7164 2011-03-26  Bruno Haible  <bruno@clisp.org>
7165
7166         unictype/property-byname: Allow omitted word separators and aliases.
7167         * lib/unictype/pr_byname.gperf: Add property names without word
7168         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
7169         for 'space'.
7170
7171 2011-03-26  Bruno Haible  <bruno@clisp.org>
7172
7173         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
7174         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
7175         also hyphens to space.
7176         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
7177         without spaces.
7178         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
7179
7180 2011-03-26  Bruno Haible  <bruno@clisp.org>
7181
7182         unictype/joiningtype-byname: Recognize long names as well.
7183         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
7184         a long name.
7185         * lib/unictype/joiningtype_byname.c: Include <string.h>,
7186         unictype/joiningtype_byname.h.
7187         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
7188         * lib/unictype/joiningtype_byname.gperf: New file.
7189         * modules/unictype/joiningtype-byname (Files): Add
7190         lib/unictype/joiningtype_byname.gperf.
7191         (Depends-on): Add gperf.
7192         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
7193         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
7194         long names.
7195
7196         Tests for module 'unictype/joiningtype-longname'.
7197         * modules/unictype/joiningtype-longname-tests: New file.
7198         * tests/unictype/test-joiningtype_longname.c: New file.
7199
7200         New module 'unictype/joiningtype-longname'.
7201         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
7202         * lib/unictype/joiningtype_longname.c: New file.
7203         * modules/unictype/joiningtype-longname: New file.
7204         * modules/unictype/joiningtype-all (Depends-on): Add
7205         unictype/joiningtype-longname.
7206
7207 2011-03-26  Bruno Haible  <bruno@clisp.org>
7208
7209         unictype/bidiclass-byname: Recognize long names as well.
7210         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
7211         name.
7212         * lib/unictype/bidi_byname.c: Include <string.h>,
7213         unictype/bidi_byname.h.
7214         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
7215         * lib/unictype/bidi_byname.gperf: New file.
7216         * modules/unictype/bidiclass-byname (Files): Add
7217         lib/unictype/bidi_byname.gperf.
7218         (Depends-on): Add gperf.
7219         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
7220         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
7221         long names.
7222
7223         Tests for module 'unictype/bidiclass-longname'.
7224         * modules/unictype/bidiclass-longname-tests: New file.
7225         * tests/unictype/test-bidi_longname.c: New file.
7226
7227         New module 'unictype/bidiclass-longname'.
7228         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
7229         * lib/unictype/bidi_longname.c: New file.
7230         * modules/unictype/bidiclass-longname: New file.
7231         * modules/unictype/bidiclass-all (Depends-on): Add
7232         unictype/bidiclass-longname.
7233
7234 2011-03-26  Bruno Haible  <bruno@clisp.org>
7235
7236         unictype/bidi*: Rename modules.
7237         * modules/unictype/bidiclass-all: Renamed from
7238         modules/unictype/bidicategory-all.
7239         * modules/unictype/bidiclass-name: Renamed from
7240         modules/unictype/bidiclass-name.
7241         (Description): Update.
7242         * modules/unictype/bidiclass-name-tests: Renamed from
7243         modules/unictype/bidicategory-name-tests.
7244         * modules/unictype/bidiclass-byname: Renamed from
7245         modules/unictype/bidicategory-byname.
7246         (Description): Update.
7247         * modules/unictype/bidiclass-byname-tests: Renamed from
7248         modules/unictype/bidicategory-byname-tests.
7249         * modules/unictype/bidiclass-of: Renamed from
7250         modules/unictype/bidicategory-of.
7251         (Description): Update.
7252         * modules/unictype/bidiclass-of-tests: Renamed from
7253         modules/unictype/bidicategory-of-tests.
7254         * modules/unictype/bidiclass-test: Renamed from
7255         modules/unictype/bidicategory-test.
7256         (Description): Update.
7257         * modules/unictype/bidiclass-test-tests: Renamed from
7258         modules/unictype/bidicategory-test-tests.
7259         * modules/unictype/bidicategory-all: New file, a simple redirection.
7260         * modules/unictype/bidicategory-name: Likewise.
7261         * modules/unictype/bidicategory-byname: Likewise.
7262         * modules/unictype/bidicategory-of: Likewise.
7263         * modules/unictype/bidicategory-test: Likewise.
7264         * modules/unictype/property-bidi-* (Dependencies): Update.
7265         * lib/unictype/bidi_*.c: Update comment.
7266
7267 2011-03-26  Bruno Haible  <bruno@clisp.org>
7268
7269         unictype/bidi*: Rename functions, part 2.
7270         * modules/unictype/bidicategory-name (configure.ac): Update required
7271         libunistring version.
7272         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
7273
7274 2011-03-25  Bruno Haible  <bruno@clisp.org>
7275
7276         New module 'unictype/combining-class-all'.
7277         * modules/unictype/combining-class-all: New file.
7278
7279         Tests for module 'unictype/combining-class-byname'.
7280         * modules/unictype/combining-class-byname-tests: New file.
7281         * tests/unictype/test-combiningclass_byname.c: New file.
7282
7283         New module 'unictype/combining-class-byname'.
7284         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
7285         * lib/unictype/combiningclass_byname.c: New file.
7286         * lib/unictype/combiningclass_byname.gperf: New file.
7287         * modules/unictype/combining-class-byname: New file.
7288
7289         Tests for module 'unictype/combining-class-longname'.
7290         * modules/unictype/combining-class-longname-tests: New file.
7291         * tests/unictype/test-combiningclass_longname.c: New file.
7292
7293         New module 'unictype/combining-class-longname'.
7294         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
7295         * lib/unictype/combiningclass_longname.c: New file.
7296         * modules/unictype/combining-class-longname: New file.
7297
7298         Tests for module 'unictype/combining-class-name'.
7299         * modules/unictype/combining-class-name-tests: New file.
7300         * tests/unictype/test-combiningclass_name.c: New file.
7301
7302         New module 'unictype/combining-class-name'.
7303         * lib/unictype.in.h (uc_combining_class_name): New declaration.
7304         * lib/unictype/combiningclass_name.c: New file.
7305         * modules/unictype/combining-class-name: New file.
7306
7307 2011-03-25  Bruno Haible  <bruno@clisp.org>
7308
7309         unictype/combining-class: Rename source files.
7310         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7311         of unictype/combining.h.
7312         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7313         Update.
7314         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7315         * modules/unictype/combining-class (Description): Fix.
7316         (Files, Makefile.am): Update.
7317         * tests/unictype/test-combiningclass.c: Renamed from
7318         tests/unictype/test-combining.c.
7319         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7320
7321 2011-03-25  Bruno Haible  <bruno@clisp.org>
7322
7323         unictype: Update list of canonical combining classes.
7324         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7325
7326 2011-03-25  Bruno Haible  <bruno@clisp.org>
7327
7328         unictype/category-byname: Recognize long names as well.
7329         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7330         a long name.
7331         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7332         unictype/categ_byname.h.
7333         (UC_CATEGORY_INDEX_*): New enumeration values.
7334         (uc_general_category_byname): Use uc_general_category_lookup and
7335         convert from index to value.
7336         * lib/unictype/categ_byname.gperf: New file.
7337         * modules/unictype/category-byname (Files): Add
7338         lib/unictype/categ_byname.gperf.
7339         (Depends-on): Add gperf.
7340         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7341         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7342         long names.
7343
7344         Tests for module 'unictype/category-longname'.
7345         * modules/unictype/category-longname-tests: New file.
7346         * tests/unictype/test-categ_longname.c: New file.
7347
7348         New module 'unictype/category-longname'.
7349         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7350         * lib/unictype/categ_longname.c: New file.
7351         * modules/unictype/category-longname: New file.
7352         * modules/unictype/category-all (Depends-on): Add it.
7353
7354 2011-03-25  Bruno Haible  <bruno@clisp.org>
7355
7356         Tests for module 'unictype/category-LC'.
7357         * modules/unictype/category-LC-tests: New file.
7358         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7359
7360         New module 'unictype/category-LC'.
7361         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7362         (UC_CATEGORY_LC): New declaration.
7363         (UC_CASED_LETTER): New macro.
7364         * lib/gen-uni-tables.c (is_category_LC): New function.
7365         (output_categories): Also handle category LC.
7366         (UC_CATEGORY_MASK_LC): New enumeration value.
7367         (general_category_byname): Also handle category LC.
7368         * lib/unictype/categ_LC.c: New file.
7369         * lib/unictype/categ_LC.h: New file, automatically generated.
7370         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7371         category LC.
7372         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7373         * modules/unictype/category-LC: New file.
7374         * modules/unictype/category-byname (Depends-on): Add
7375         unictype/category-LC.
7376         * modules/unictype/category-all (Depends-on): Likewise.
7377
7378 2011-03-25  Eric Blake  <eblake@redhat.com>
7379
7380         xmalloc: revert yesterday's regression
7381         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7382         realloc's underlying behavior (allowing allocation of zero-size
7383         objects, especially if malloc-gnu is also in use).
7384
7385 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7386
7387         maint.mk: add missing version to VC-tag
7388         * top/maint.mk: git tag was missing actual tag name; add it.
7389
7390         valgrind: do leak checking, and exit with code 1 on error (not 0)
7391         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7392         to VALGRIND.
7393
7394 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7395
7396         posix-modules: say what it does.
7397         * posix-modules: Add a line to the --help output saying what it does.
7398
7399 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7400
7401         xmalloc: Do not leak if underlying realloc is C99 compatible.
7402         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7403         This avoids a leak on C99-based systems.  See
7404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7405
7406 2011-03-24  Eric Blake  <eblake@redhat.com>
7407
7408         realloc: document portability problem
7409         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7410         passing 0 size to realloc.
7411
7412 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7413
7414         doc: update users.txt
7415         * users.txt: Add cvsps, tmpwatch
7416
7417 2011-03-23  Matt Rice  <ratmice@gmail.com>
7418
7419         doc: update users.txt
7420         * users.txt: Add gdb.
7421
7422 2011-03-23  Jim Meyering  <meyering@redhat.com>
7423
7424         doc: update users.txt
7425         Looking through matches up to the following URL (there are still
7426         several more pages), I found several projects that use gnulib:
7427         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7428         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7429         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7430
7431 2011-03-22  Bruno Haible  <bruno@clisp.org>
7432
7433         unictype/bidi*: Rename functions.
7434         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7435         uc_bidi_class, uc_is_bidi_class): New declarations.
7436         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7437         uc_bidi_category_byname.
7438         (uc_bidi_category_byname): New function.
7439         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7440         u_bidi_category_name.
7441         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7442         (uc_bidi_category_name): New function.
7443         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7444         uc_bidi_category.
7445         (uc_bidi_category): New function.
7446         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7447         uc_is_bidi_category. Invoke uc_bidi_class.
7448         (uc_is_bidi_category): New function.
7449         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7450         instead of uc_bidi_category_byname.
7451         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7452         instead of uc_bidi_category_name.
7453         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7454         uc_bidi_category.
7455         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7456         instead of uc_is_bidi_category.
7457
7458 2011-03-21  Bruno Haible  <bruno@clisp.org>
7459
7460         New module 'unictype/joininggroup-all'.
7461         * modules/unictype/joininggroup-all: New file.
7462
7463         Tests for module 'unictype/joininggroup-of'.
7464         * modules/unictype/joininggroup-of-tests: New file.
7465         * tests/unictype/test-joininggroup_of.c: New file.
7466         * tests/unictype/test-joininggroup_of.h: New file, automatically
7467         generated by gen-uni-tables.
7468
7469         New module 'unictype/joininggroup-of'.
7470         * modules/unictype/joininggroup-of: New file.
7471         * lib/unictype/joininggroup_of.c: New file.
7472         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7473         gen-uni-tables.
7474
7475         Tests for module 'unictype/joininggroup-byname'.
7476         * modules/unictype/joininggroup-byname-tests: New file.
7477         * tests/unictype/test-joininggroup_byname.c: New file.
7478
7479         New module 'unictype/joininggroup-byname'.
7480         * modules/unictype/joininggroup-byname: New file.
7481         * lib/unictype/joininggroup_byname.c: New file.
7482         * lib/unictype/joininggroup_byname.gperf: New file.
7483
7484         Tests for module 'unictype/joininggroup-name'.
7485         * modules/unictype/joininggroup-name-tests: New file.
7486         * tests/unictype/test-joininggroup_name.c: New file.
7487
7488         New module 'unictype/joininggroup-name'.
7489         * modules/unictype/joininggroup-name: New file.
7490         * lib/unictype/joininggroup_name.c: New file.
7491         * lib/unictype/joininggroup_name.h: New file.
7492
7493         New module 'unictype/joiningtype-all'.
7494         * modules/unictype/joiningtype-all: New file.
7495
7496         Tests for module 'unictype/joiningtype-of'.
7497         * modules/unictype/joiningtype-of-tests: New file.
7498         * tests/unictype/test-joiningtype_of.c: New file.
7499         * tests/unictype/test-joiningtype_of.h: New file, automatically
7500         generated by gen-uni-tables.
7501
7502         New module 'unictype/joiningtype-of'.
7503         * modules/unictype/joiningtype-of: New file.
7504         * lib/unictype/joiningtype_of.c: New file.
7505         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7506         gen-uni-tables.
7507
7508         Tests for module 'unictype/joiningtype-byname'.
7509         * modules/unictype/joiningtype-byname-tests: New file.
7510         * tests/unictype/test-joiningtype_byname.c: New file.
7511
7512         New module 'unictype/joiningtype-byname'.
7513         * modules/unictype/joiningtype-byname: New file.
7514         * lib/unictype/joiningtype_byname.c: New file.
7515
7516         Tests for module 'unictype/joiningtype-name'.
7517         * modules/unictype/joiningtype-name-tests: New file.
7518         * tests/unictype/test-joiningtype_name.c: New file.
7519
7520         New module 'unictype/joiningtype-name'.
7521         * modules/unictype/joiningtype-name: New file.
7522         * lib/unictype/joiningtype_name.c: New file.
7523
7524         unictype: Add support for Arabic shaping properties.
7525         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7526         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
7527         declarations.
7528         (UC_JOINING_GROUP_*): New enumeration values.
7529         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
7530         declarations.
7531         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
7532         (unicode_joining_type): New variable.
7533         (UC_JOINING_GROUP_*): New enumeration values.
7534         (unicode_joining_group): New variable.
7535         (fill_arabicshaping, joining_type_as_c_identifier,
7536         output_joining_type_test, output_joining_type,
7537         joining_group_as_c_identifier, output_joining_group_test,
7538         output_joining_group): New functions.
7539         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
7540         fill_arabicshaping and output_joining_type_test, output_joining_type,
7541         output_joining_group_test, output_joining_group.
7542         Reported by Simon Josefsson.
7543
7544 2011-03-21  Jim Meyering  <meyering@redhat.com>
7545
7546         strftime: fix a bug in yesterday's change
7547         * lib/strftime.c (add): Accommodate width's initial value of -1.
7548         Otherwise, nstrftime would copy uninitialized data into
7549         the result buffer.
7550
7551 2011-03-21  Jim Meyering  <meyering@redhat.com>
7552
7553         tests: add strftime-tests module
7554         * tests/test-strftime.c: New file.
7555         * modules/strftime-tests: New module.
7556
7557 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7558
7559         strftime: don't assume a byte count fits in 'int'
7560         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
7561         found this problem by static analysis, using gcc -Wstrict-overflow
7562         (GCC 4.5.2, x86-64).  This reported an optimization that depended
7563         on an integer overflow having undefined behavior, but it turns out
7564         that the argument is a size, which might not fit in 'int' anyway,
7565
7566 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7567
7568         stdio: don't require ignore_value around fwrite
7569
7570         This patch works around libc bug 11959
7571         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
7572         Without this patch, applications must often write
7573         ignore_value (fwrite (...)) even though the ignore_value is
7574         not helpful here.  It's common to write many objects, using
7575         fwrite/printf/etc., and then use ferror to detect output error.
7576
7577         I considered making this patch optional, but decided against it,
7578         because libc is obviously being inconsistent here: there is no
7579         reason libc should insist that user code must inspect fwrite
7580         return's value without also insisting that it inspect printf's,
7581         putchar's, etc.  If user code wants to have a strict style where
7582         all these functions' values are checked (so that ferror need not
7583         be checked), we could add support for that style in a new gnulib
7584         module, but in the meantime it's better to be consistent and to
7585         support common usage.
7586
7587         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
7588         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
7589         that we are compiling in checking mode, and if not C++, and
7590         if not already wrapping fwrite for some other reason.
7591         (fwrite): #define to rpl_fwrite if the latter is defined.
7592
7593 2011-03-20  Bruno Haible  <bruno@clisp.org>
7594
7595         verror: Fix compilation error introduced on 2011-02-13.
7596         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
7597         instead of __attribute__.
7598         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7599
7600 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7601             Bruno Haible  <bruno@clisp.org>
7602
7603         socklen: do not depend on sys_socket
7604         While trying to modify Emacs to use gnulib's socklen module,
7605         I discovered a circular dependency: socklen depends on sys_socket
7606         and vice versa.  Emacs can use socklen, but it does not need
7607         sys_socket because it has its own substitute for sys/socket.h.
7608         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
7609         gl_TYPE_SOCKLEN_T.
7610         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
7611         gl_PREREQ_SYS_H_SOCKET.
7612         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
7613         gl_PREREQ_SYS_H_SOCKET.
7614         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
7615         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
7616         * modules/socklen (Depends-on): Do not depend on sys_socket.
7617         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7618
7619 2011-03-20  Jim Meyering  <meyering@redhat.com>
7620
7621         maint.mk: sort file names *after* new transformation
7622         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7623         prefix would have led to an unwarranted failure in GNU parted.
7624         Sort after that transformation.
7625
7626 2011-03-19  Jim Meyering  <meyering@redhat.com>
7627
7628         maint.mk: fix po-file syntax-check rule
7629         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7630         Patch by Bruno Haible.
7631
7632 2011-03-19  Bruno Haible  <bruno@clisp.org>
7633
7634         socklen: Update comment.
7635         * m4/socklen.m4: Update comment about platforms.
7636
7637 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7638             Bruno Haible  <bruno@clisp.org>
7639
7640         inet_ntop, inet_pton: Simplify.
7641         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7642         documented to provide socklen_t and we already depend on sys_socket.
7643         * modules/inet_pton (Depends-on): Likewise.
7644         * lib/arpa_inet.in.h: Adjust comment.
7645
7646 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7647             Bruno Haible  <bruno@clisp.org>
7648
7649         netdb: Simplify.
7650         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7651         documented to provide socklen_t and we already depend on sys_socket.
7652         * lib/netdb.in.h: Adjust comment.
7653
7654 2011-03-19  Bruno Haible  <bruno@clisp.org>
7655
7656         sys_socket, netdb: Document problem with socklen_t.
7657         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7658         platforms.
7659         * doc/posix-headers/netdb.texi: Likewise.
7660
7661 2011-03-18  Eric Blake  <eblake@redhat.com>
7662
7663         maint.mk: let po check work in VPATH build
7664         * top/maint.mk (po_file): Allow cfg.mk override.
7665         (sc_po_check): Allow VPATH use.
7666         Reported by Jiri Denemark.
7667
7668 2011-03-16  Jim Meyering  <meyering@redhat.com>
7669
7670         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7671         Before, you would have had to create one .x-sc_ file per rule in order
7672         to exempt offending files.  Now, you may instead use a Make variable --
7673         usually defined in cfg.mk -- whose name identifies the affected rule.
7674         * top/maint.mk (_sc_excl): Define.
7675         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7676         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7677
7678 2011-03-13  Bruno Haible  <bruno@clisp.org>
7679
7680         ignore-value tests: Avoid warnings.
7681         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7682         empty for gcc < 3.4.
7683
7684 2011-03-13  Bruno Haible  <bruno@clisp.org>
7685
7686         passfd: Fix link error on Solaris.
7687         * modules/passfd (Description): Correct.
7688         (Depends-on): Add socketlib.
7689         (Link): New section.
7690         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7691
7692 2011-03-13  Bruno Haible  <bruno@clisp.org>
7693
7694         passfd: Fix link error on AIX 5.2.
7695         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
7696
7697 2011-03-13  Bruno Haible  <bruno@clisp.org>
7698
7699         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
7700         * lib/sys_socket.in.h: Include <stddef.h>.
7701         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
7702         CMSG_FIRSTHDR. Remove unused variable.
7703
7704 2011-03-13  Bruno Haible  <bruno@clisp.org>
7705
7706         passfd: Fix compilation error on OpenBSD.
7707         * lib/passfd.c: Include <sys/uio.h>.
7708
7709 2011-03-13  Bruno Haible  <bruno@clisp.org>
7710
7711         passfd test: Fix warnings.
7712         * tests/test-passfd.c: Include <sys/wait.h>.
7713         (main): Fix typo.
7714
7715 2011-03-13  Bruno Haible  <bruno@clisp.org>
7716
7717         passfd module, part 4, tweaks.
7718         * tests/test-passfd.c: Reorder includes.
7719         (main): Fix perror and printf calls.
7720
7721 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7722
7723         passfd module, part 4.
7724         * modules/passfd-tests: New file.
7725         * tests/test-passfd.c: New file.
7726
7727 2011-03-13  Jim Meyering  <meyering@redhat.com>
7728
7729         Makefile: rely on GNU make; derive syntax-check rule names
7730         Rather than requiring that each sc_ rule be listed as a dependent
7731         of "check", use features of GNU make to derive the list.
7732         * Makefile (syntax-check-rules): Define.
7733         (check): Depend on the new variable, not the hard-coded list.
7734
7735 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
7736             Bruno Haible  <bruno@clisp.org>
7737
7738         passfd module, part 3.
7739         * lib/passfd.h (recvfd): Add a flags argument.
7740         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
7741         (recvfd): Add a flags argument.
7742         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
7743         exists.
7744         * modules/passfd (Depends-on): Add cloexec.
7745         Suggested by Eric Blake.
7746
7747 2011-03-13  Bruno Haible  <bruno@clisp.org>
7748
7749         passfd module, part 2, tweaks.
7750         * modules/passfd (Files): Reorder.
7751         (Depends-on): Remove errno.
7752         (Include): Remove <sys/socket.h>, <sys/un.h>.
7753         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
7754         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
7755         specification header. Include <sys/socket.h> always. Don't include
7756         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
7757         (sendfd): Clarify that it sets errno when it fails.
7758         (recvfd): Fix specification.
7759
7760 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7761
7762         passfd module, part 2.
7763         * modules/passfd: New file.
7764         * lib/passfd.h: New file.
7765         * lib/passfd.c: New file.
7766
7767 2011-03-12  Bruno Haible  <bruno@clisp.org>
7768
7769         wcswidth, mbswidth: Avoid integer overflow.
7770         * lib/wcswidth.c: Include <limits.h>.
7771         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
7772         * lib/mbswidth.c: Include <limits.h>.
7773         (mbsnwidth): Avoid 'int' overflow.
7774         Reported by Jim Meyering.
7775
7776 2011-03-12  Bruno Haible  <bruno@clisp.org>
7777
7778         futimens, utimensat: Avoid endless recursion on Solaris 10.
7779         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
7780         Solaris.
7781         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
7782         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
7783
7784 2011-03-11  Jim Meyering  <meyering@redhat.com>
7785
7786         maint.mk: relax a regexp to accommodate other formatting styles
7787         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
7788         between "ngettext" and the following "(".
7789
7790 2011-03-11  Pádraig Brady <P@draigBrady.com>
7791
7792         maint.mk: suppress a false positive warning
7793         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
7794         diagnostics are marked with ngettext.
7795
7796 2011-03-10  Eric Blake  <eblake@redhat.com>
7797
7798         wchar: add explicit dependencies, for Tru64
7799         * modules/mbmemcasecoll (Depends-on): Add wchar.
7800         * modules/mbtowc (Depends-on): Likewise.
7801         * modules/vasnprintf (Depends-on): Likewise.
7802         * modules/unistdio/u-printf-args (Depends-on): Likewise.
7803         * modules/wctomb (Depends-on): Likewise.
7804         Reported by Peter O'Gorman.
7805
7806 2011-03-08  Bruno Haible  <bruno@clisp.org>
7807
7808         passfd module, part 1, tweaks.
7809         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
7810         Improve indentation. Improve AC_MSG_CHECKING messages.
7811         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
7812         gl_SOCKET_FAMILIES.
7813
7814 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7815
7816         passfd module, part 1.
7817         * m4/afunix.m4: New file.
7818         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
7819         sockets.
7820
7821 2011-03-08  Bruno Haible  <bruno@clisp.org>
7822
7823         regex-quote: New API.
7824         * lib/regex-quote.h: Include <stdbool.h>.
7825         (struct regex_quote_spec): New type.
7826         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7827         New declarations.
7828         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7829         'const struct regex_quote_spec *' argument.
7830         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
7831         (pcre_special): New constant.
7832         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7833         New functions.
7834         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7835         'const struct regex_quote_spec *' argument.
7836         * modules/regex-quote (Depends-on): Add stdbool.
7837         * tests/test-regex-quote.c (check): Update for new API. Add test for
7838         anchored results.
7839         * NEWS: Mention the API change.
7840         Reported by Reuben Thomas and Eric Blake.
7841
7842 2011-03-06  Bruno Haible  <bruno@clisp.org>
7843
7844         regex-quote: Fix creation of POSIX extended regular expressions.
7845         * lib/regex-quote.c (ere_special): Add grouping and alternation
7846         operators.
7847
7848 2011-03-05  Bruno Haible  <bruno@clisp.org>
7849
7850         doc: Improve doc regarding autopoint vs. gnulib.
7851         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
7852         disable autopoint while running autoreconf.
7853         Suggested by Ralf Wildenhues.
7854
7855 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7856
7857         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
7858         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
7859
7860 2011-03-03  Bruce Korb  <bkorb@gnu.org>
7861
7862         parse-duration: remove xalloc.h dependency
7863         * lib/parse-duration.c (parse_period): handle NULL return from
7864         strdup instead of calling xstrdup().
7865         * modules/parse-duration: remove "xalloc" dependency
7866
7867 2011-03-03  Matthew Booth  <mbooth@redhat.com>
7868
7869         bootstrap: honor m4_base when running aclocal
7870         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
7871
7872 2011-03-02  Jim Meyering  <meyering@redhat.com>
7873
7874         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
7875         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
7876         on request from Matt Booth.
7877
7878 2011-03-01  Eric Blake  <eblake@redhat.com>
7879
7880         test-link: work on Hurd
7881         * tests/test-link.h (test_link): Hurd rejects linking directories
7882         with EISDIR instead of the POSIX-mandated EPERM.
7883
7884 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
7885
7886         stdio: simplify by moving files to printf-posix, sigpipe
7887         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
7888         since this symbol is needed only if printf is replaced.
7889         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
7890         Require gl_ASM_SYMBOL_PREFIX.
7891         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
7892         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
7893         (Depends-on): Add 'raise'.
7894         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
7895         * modules/stdio (Files): Remove lib/stdio-write.c,
7896         m4/asm-underscore.m4.
7897         (Depends-on): Remove 'raise'.
7898
7899         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
7900         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
7901         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
7902         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
7903
7904 2011-02-28  Bruno Haible  <bruno@clisp.org>
7905
7906         localcharset: Assume ANSI C behaviour of free().
7907         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
7908         calling free().
7909         Suggested by Simon Josefsson <simon@josefsson.org>.
7910
7911 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
7912             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
7913             Bruno Haible  <bruno@clisp.org>  (tiny change)
7914
7915         On Cygwin, use /proc file system instead of win32 API.
7916         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
7917         Win32 file names.
7918         (DllMain): Simplify by removing Cygwin specific code.
7919         (find_shared_library_fullname): Use Linux specific implementation also
7920         for Cygwin.
7921         (get_shared_library_fullname): Update accordingly.
7922         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
7923         Win32 file names.
7924         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
7925         Cygwin specific code.
7926
7927 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
7928             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
7929
7930         Fix OpenMP flag detection for various Fortran compilers.
7931         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
7932         OpenMP-conditional compilation construct, to force compile
7933         failure with missing OpenMP flag.
7934         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
7935
7936 2011-02-25  Eric Blake  <eblake@redhat.com>
7937
7938         strstr: expand test coverage
7939         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
7940         compilation.
7941         * tests/test-memmem.c (main): Duplicate tests.
7942         * tests/test-strcasestr.c (main): Likewise.
7943         * tests/test-c-strcasestr.c (main): Likewise.
7944
7945 2011-02-25  Jim Meyering  <meyering@redhat.com>
7946
7947         maint.mk: detect missing-NL-at-EOF, too
7948         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
7949         it also detects when a file lacks a newline at EOF.
7950         (require_exactly_one_NL_at_EOF_): Renamed from
7951         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
7952         since people may well have .x-sc_... file names tied to the
7953         existing name.  Suggested by Eric Blake.
7954
7955 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
7956
7957         dirname: move m4/dos.m4 functionality into lib/dosname.h
7958
7959         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
7960         extracts symbols from it, puts them into config.h; but it's much
7961         easier to use the symbols directly.  filename.h already does this,
7962         but it disagrees with dos.m4 in some respects.  This patch
7963         introduces a different include file dosname.h that packages up
7964         dos.m4, and then later we can work on merging filename.h and
7965         dosname.h.  Applications that need only the easy-to-configure
7966         symbols should consider including dosname.h rather than dirname.h.
7967         * NEWS: Mention incompatible changes.
7968         * m4/dos.m4: Remove.
7969         * lib/dosname.h, modules/dosname: New files.
7970         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
7971         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
7972         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
7973         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
7974         Include dosname.h, not dirname.h.
7975         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
7976         Include dosname.h, for definitions of symbols like ISSLASH
7977         that used to be in config.h.
7978         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
7979         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7980         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7981         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7982         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
7983         * modules/rmdir (Files): Likewise.
7984         * modules/stat (Files): Likewise.
7985         * modules/unlink (Files): Likewise.
7986         * modules/dirname-lgpl (Depends-on): Add dosname.
7987         * modules/lstat (Depends-on): Likewise.
7988         * modules/openat (Depends-on): Likewise.
7989         * modules/rmdir (Depends-on): Likewise.
7990         * modules/savewd (Depends-on): Likewise.
7991         * modules/stat (Depends-on): Likewise.
7992         * modules/unlink (Depends-on): Likewise.
7993         * modules/openat (Depends-on): Remove dirname-lgpl.
7994         * modules/savewd (Depends-on): Likewise.
7995         * tests/test-dirname.c: Do not use removed symbols like
7996         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
7997         the remaining symbols, e.g., ISSLASH ('\\').
7998
7999 2011-02-25  Eric Blake  <eblake@redhat.com>
8000
8001         strstr: revert patches that introduced bug and pessimization
8002         * lib/str-two-way.h: Add another reference.
8003         (two_way_short_needle, two_way_long_needle): Revert changes from
8004         2011-02-24; they pessimize search speed.
8005         (critical_factorization): Partially revert changes from
8006         2010-06-22; they violate the requirement that the left half of the
8007         needle be smaller than the period of the needle.
8008
8009 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8010
8011         filenamecat: remove unnecessary dependency on dirname-lgpl
8012         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
8013         is no direct dependency, just an indirect one via filenamecat-lgpl.
8014
8015         remove: remove unnecessary use of m4/dos.m4
8016         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
8017         * modules/remove (FILES): Remove m4/dos.m4.
8018
8019         * lib/openat-proc.c: Don't include dirname.h; not needed.
8020
8021         backupfile: remove unnecessary use of m4/dos.m4
8022         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
8023         of its symbols are used by the backupfile code.  backupfile.c does
8024         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
8025         for the rare case of programs that want all their backup file
8026         names to live within 8+3 limits, and dos.m4 doesn't address that.
8027         * modules/backupfile (Files): Remove m4/dos.m4.
8028
8029 2011-02-24  Jim Meyering  <meyering@redhat.com>
8030
8031         strstr: fix a bug whereby strstr would mistakenly return NULL
8032         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
8033         in period calculation.
8034         (two_way_long_needle): Likewise.
8035         The original problem was reported by Mike Stump in
8036         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
8037         Ralf Wildenhues provided the short needle and haystack.
8038         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
8039         Add a more involved test to trigger the bug in two_way_long_needle.
8040
8041 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8042
8043         gnulib-tool: remove use of bold display in help screen
8044         * gnulib-tool (func_usage): Do not use bold display anymore in the
8045         help screen.  That was just meant to be a temporary emphasis for a
8046         backward-incompatible change.
8047
8048 2011-02-23  Bruno Haible  <bruno@clisp.org>
8049
8050         Fix misindentation of preprocessor directives.
8051         * lib/argp-namefrob.h: Reindent preprocessor directives.
8052         * lib/getopt_int.h (struct _getopt_data): Likewise.
8053         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
8054         * lib/vasnprintf.c (decode_long_double): Likewise.
8055         * tests/test-argmatch.c: Insert blank lines, for clarity.
8056         * tests/test-exclude.c: Likewise.
8057
8058 2011-02-22  Bruno Haible  <bruno@clisp.org>
8059
8060         ioctl: Fix for MacOS X in 64-bit mode.
8061         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
8062         value.
8063         Suggested by Eric Blake.
8064         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
8065
8066 2011-02-22  Jim Meyering  <meyering@redhat.com>
8067
8068         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
8069         * Makefile (sc_cpp_indent_check): Don't limit the check to files
8070         in lib/.
8071
8072 2011-02-22  Eric Blake  <eblake@redhat.com>
8073
8074         maint: avoid any CDPATH issue
8075         * Makefile (sc_cpp_indent_check): Anchor cd argument.
8076
8077         maint: adjust cpp indentation for my modules, as well
8078         * Makefile (sc_cpp_indent_check): Add my name.
8079         * lib/fbufmode.c: Filter through cppi.
8080         * lib/fpurge.c: Likewise.
8081         * lib/freadable.c: Likewise.
8082         * lib/freading.c: Likewise.
8083         * lib/fwritable.c: Likewise.
8084         * lib/fwriting.c: Likewise.
8085         * lib/sigaction.c: Likewise.
8086
8087 2011-02-22  Jim Meyering  <meyering@redhat.com>
8088
8089         maint: adjust cpp indentation to reflect nesting depth
8090         I.e., in a block of code that begins with an unnested "#if",
8091         put one space between the "#" in column 1 and following token.
8092         For example,
8093         -#include <sys/vfs.h>
8094         +# include <sys/vfs.h>
8095         Do this only in .c files that are part of a module I maintain.
8096         * lib/linkat.c: Filter through cppi.
8097         * lib/nanosleep.c: Likewise.
8098         * lib/openat.c: Likewise.
8099         * lib/openat-die.c: Likewise.
8100         * lib/dup3.c: Likewise.
8101         * lib/fchownat.c: Likewise.
8102         * lib/flock.c: Likewise.
8103         * lib/fsync.c: Likewise.
8104         * lib/fts.c: Likewise.
8105         * lib/getpass.c: Likewise.
8106         * lib/gettimeofday.c: Likewise.
8107         * lib/userspec.c: Likewise.
8108         * Makefile (sc_cpp_indent_check): New rule, to check this.
8109
8110 2011-02-22  Bruno Haible  <bruno@clisp.org>
8111
8112         New module 'wctomb'.
8113         * lib/stdlib.in.h (wctomb): New declaration.
8114         * lib/wctomb.c: New file.
8115         * lib/wctomb-impl.h: New file.
8116         * m4/wctomb.m4: New file.
8117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
8118         REPLACE_WCTOMB.
8119         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
8120         REPLACE_WCTOMB.
8121         * modules/wctomb: New file.
8122         * tests/test-stdlib-c++.cc: Test signature of wctomb.
8123         * doc/posix-functions/wctomb.texi: Mention the new module.
8124         * modules/wctob (Depends-on): Add wctomb.
8125
8126 2011-02-22  Bruno Haible  <bruno@clisp.org>
8127
8128         New module 'mbtowc'.
8129         * lib/stdlib.in.h (mbtowc): New declaration.
8130         * lib/mbtowc.c: New file.
8131         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
8132         * m4/mbtowc.m4: New file.
8133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
8134         REPLACE_MBTOWC.
8135         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
8136         REPLACE_MBTOWC.
8137         * modules/mbtowc: New file.
8138         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
8139         * doc/posix-functions/mbtowc.texi: Mention the new module.
8140         * modules/btowc (Depends-on): Add mbtowc.
8141
8142 2011-02-22  Bruno Haible  <bruno@clisp.org>
8143
8144         wcrtomb: Add more tests for native Windows platforms.
8145         * tests/test-wcrtomb-w32-1.sh: New file.
8146         * tests/test-wcrtomb-w32-2.sh: New file.
8147         * tests/test-wcrtomb-w32-3.sh: New file.
8148         * tests/test-wcrtomb-w32-4.sh: New file.
8149         * tests/test-wcrtomb-w32-5.sh: New file.
8150         * tests/test-wcrtomb-w32.c: New file.
8151         * modules/wcrtomb-tests (Files): Add them.
8152         (Makefile.am): Arrange to run these tests.
8153         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
8154         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
8155
8156 2011-02-20  Bruno Haible  <bruno@clisp.org>
8157
8158         wcrtomb: Enhance test.
8159         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
8160
8161 2011-02-20  Bruno Haible  <bruno@clisp.org>
8162
8163         mbrtowc: Tiny optimization.
8164         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
8165
8166 2011-02-20  Jim Meyering  <meyering@redhat.com>
8167
8168         test-exclude.c: remove unmatched #endif
8169         * tests/test-exclude.c: Remove stray #endif, left over from
8170         the change of a week ago.
8171
8172 2011-02-19  Jim Meyering  <meyering@redhat.com>
8173
8174         git-version-gen: skip "-dirty" check when appropriate
8175         * build-aux/git-version-gen: Don't run any git commands when the
8176         version string comes from .tarball-version.  Prior to this, we
8177         would run git update-index --refresh even from a just-unpacked
8178         tarball directory, and that could affect a .git/ directory in a
8179         parent of the build directory.  Reported by Mike Frysinger.
8180
8181 2011-02-19  Bruno Haible  <bruno@clisp.org>
8182
8183         unictype/property-byname: Reduce the size of the 'data' segment.
8184         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
8185
8186 2011-02-19  Bruno Haible  <bruno@clisp.org>
8187
8188         unictype/scripts: Reduce the size of the 'data' segment.
8189         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
8190         '%pic'.
8191         * lib/unictype/scripts_byname.gperf: Regenerated.
8192
8193 2011-02-19  Bruno Haible  <bruno@clisp.org>
8194
8195         stdint: Update documentation.
8196         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
8197
8198 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
8199
8200         stdint: omit redundant check for wchar.h
8201         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
8202         always tests whether wchar.h exists, so remove the now-redundant test.
8203
8204 2011-02-18  Bruno Haible  <bruno@clisp.org>
8205
8206         stdint: Cut dependency to module 'wchar'.
8207         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
8208         include the necessary prerequisites.
8209         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
8210         * modules/stdint (Depends-on): Remove wchar.
8211         (Makefile.am): Substitute HAVE_WCHAR_H.
8212         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
8213
8214 2011-02-18  Eric Blake  <eblake@redhat.com>
8215
8216         longlong: skip, rather than fail, on cross-compilation
8217         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
8218         when cross-compiling; regression from 2011-02-16.
8219
8220 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8221
8222         * NEWS: Mention 2011-02-08 change to stdlib.
8223
8224 2011-02-17  Bruno Haible  <bruno@clisp.org>
8225
8226         getloadavg: Add comments about platforms.
8227         * m4/getloadavg.m4: Add comment.
8228         * lib/getloadavg.c: Likewise.
8229
8230 2011-02-17  Bruno Haible  <bruno@clisp.org>
8231
8232         getloadavg: Fix link error on Solaris 2.6.
8233         * modules/getloadavg (Link): New section.
8234         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
8235         linking test-getloadavg.
8236         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
8237         getloadavg.
8238
8239 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
8240
8241         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
8242         It was 'int', but this doesn't match the IRIX 6.5 manual.
8243         Suggested by Bruno Haible in
8244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
8245
8246 2011-02-17  Bruno Haible  <bruno@clisp.org>
8247
8248         havelib: Fix comments.
8249         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
8250         change.
8251
8252 2011-02-17  Bruno Haible  <bruno@clisp.org>
8253
8254         havelib: Update config.rpath.
8255         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
8256
8257 2011-02-17  Bruno Haible  <bruno@clisp.org>
8258
8259         getloadavg test: Add some plausibility checks.
8260         * tests/test-getloadavg.c (check_avg): Print a warning when the value
8261         is improbable.
8262
8263 2011-02-16  Eric Blake  <eblake@redhat.com>
8264
8265         maintainer-makefile: make syntax-check a no-op from tarballs
8266         * top/maint.mk (no-vc-detected): New rule.
8267         (local-checks-available): Use it to avoid hanging if someone tries
8268         'make syntax-check' from a tarball.  Also append to any non-syntax
8269         checks already defined in cfg.mk.
8270
8271 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8272
8273         longlong: tune, particularly for common case of c99
8274
8275         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
8276         or running anything if c99, or if unsigned long long int does not
8277         work.  In either case, we know the answer without further tests.
8278         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
8279         it at most once, and use its results for both long long int and
8280         unsigned long long int.  This is more likely to be efficient in
8281         the common case where the program wants to check for both long
8282         long int and unsigned long long int.
8283         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
8284         since the answer is already known.
8285
8286 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8287
8288         getloadavg: set errno
8289         * lib/getloadavg.c: Set errno when returning -1.  If no other
8290         error number looks appropriate, set it to ENOSYS if the getloadavg
8291         looks like it can't possibly ever work, ENOTSUP otherwise.
8292         Suggested by Bruno Haible in
8293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
8294
8295         getloadavg: trim unused parts and speed up 'configure'
8296         * NEWS: Document this.
8297         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
8298         always compiled if getloadavg is absent.
8299         Move test code to ...
8300         * tests/test-getloadavg.c: New file, containing previous
8301         contents of test from lib/getloadavg.c.  It also contains
8302         suggestions by Bruno Haible in
8303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
8304         * modules/getloadavg-tests: New file.
8305         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
8306         Do tests in the same order as they're needed for getloadavg.c.
8307         Omit setgid-related tests that generate symbols KMEM_GROUP,
8308         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8309         Do only the tests that are needed to see whether the system has
8310         getloadavg, moving the other tests into ...
8311         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8312         NLIST_NAME_UNION; nobody should be using it.  Do not define
8313         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8314         relevant, as the user of this module shouldn't care how getloadavg
8315         is implemented.
8316
8317         getloadavg: omit unused var
8318         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8319
8320 2011-02-15  Jim Meyering  <meyering@redhat.com>
8321
8322         doc: update users.txt
8323         * users.txt: Update iwhd's URL.
8324
8325 2011-02-13  Bruno Haible  <bruno@clisp.org>
8326
8327         Consistent macro naming for macros that use GCC __attribute__.
8328         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8329         _ATTRIBUTE_NONNULL_.
8330         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8331         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8332         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8333         ATTRIBUTE_DEPRECATED.
8334         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8335         ATTRIBUTE_NORETURN.
8336         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8337         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8338         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8339         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8340         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8341         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8342         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8343         ATTRIBUTE_SENTINEL.
8344         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8345         ATTRIBUTE_RETURN_CHECK.
8346         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8347         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8348         ATTRIBUTE_NORETURN.
8349         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8350         Reported by Paul Eggert.
8351
8352 2011-02-13  Bruno Haible  <bruno@clisp.org>
8353
8354         Don't interfere with a program's definition of __attribute__.
8355         * lib/argp.h (__attribute__): Remove definition.
8356         (_GL_ATTRIBUTE_FORMAT): New macro.
8357         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8358         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8359         (_GL_ATTRIBUTE_FORMAT): New macro.
8360         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8361         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8362         GCC 3 or newer.
8363         * lib/error.h (__attribute__): Remove definition.
8364         (_GL_ATTRIBUTE_FORMAT): New macro.
8365         (error, error_at_line): Use it.
8366         * lib/hash.h (__attribute__): Remove definition.
8367         (ATTRIBUTE_WUR): Update definition. Define always.
8368         * lib/openat.h (__attribute__): Remove definition.
8369         (ATTRIBUTE_NORETURN): Update definition. Define always.
8370         * lib/sigpipe-die.h (__attribute__): Remove definition.
8371         (ATTRIBUTE_NORETURN): Update definition. Define always.
8372         * lib/vasnprintf.h (__attribute__): Remove definition.
8373         (_GL_ATTRIBUTE_FORMAT): New macro.
8374         (asnprintf, vasnprintf): Use it.
8375         * lib/xalloc.h (__attribute__): Remove definition.
8376         (ATTRIBUTE_NORETURN): Update definition. Define always.
8377         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8378         * lib/xmemdup0.h (__attribute__): Remove definition.
8379         (ATTRIBUTE_NORETURN): Update definition. Define always.
8380         * lib/xprintf.h (__attribute__): Remove definition.
8381         (_GL_ATTRIBUTE_FORMAT): New macro.
8382         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8383         * lib/xstrtol.h (__attribute__): Remove definition.
8384         (ATTRIBUTE_NORETURN): Update definition. Define always.
8385         * lib/xvasprintf.h (__attribute__): Remove definition.
8386         (_GL_ATTRIBUTE_FORMAT): New macro.
8387         (xasprintf, xvasprintf): Use it.
8388         * tests/test-argmatch.c (__attribute__): Remove definition.
8389         (ATTRIBUTE_NORETURN): Update definition. Define always.
8390         * tests/test-exclude.c (__attribute__): Remove definition.
8391         (ATTRIBUTE_NORETURN): Update definition. Define always.
8392         Reported by Paul Eggert.
8393
8394 2011-02-13  Bruno Haible  <bruno@clisp.org>
8395
8396         mbrtowc: Add more tests for native Windows platforms.
8397         * tests/test-mbrtowc-w32-1.sh: New file.
8398         * tests/test-mbrtowc-w32-2.sh: New file.
8399         * tests/test-mbrtowc-w32-3.sh: New file.
8400         * tests/test-mbrtowc-w32-4.sh: New file.
8401         * tests/test-mbrtowc-w32-5.sh: New file.
8402         * tests/test-mbrtowc-w32.c: New file.
8403         * modules/mbrtowc-tests (Files): Add them.
8404         (Makefile.am): Arrange to run these tests.
8405         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8406         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8407
8408 2011-02-13  Bruno Haible  <bruno@clisp.org>
8409
8410         mbrtowc: Work around native Windows bug.
8411         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8412         guess when no suitable locale for testing was found.
8413         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8414
8415 2011-02-13  Bruno Haible  <bruno@clisp.org>
8416
8417         mbsinit: Work around mingw bug.
8418         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8419         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8420         Windows.
8421         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8422
8423 2011-02-13  Bruno Haible  <bruno@clisp.org>
8424
8425         mbsinit: Don't crash for a NULL argument.
8426         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8427         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8428
8429 2011-02-13  Bruno Haible  <bruno@clisp.org>
8430
8431         Don't interfere with a program's definition of __attribute__.
8432         * lib/stdio.in.h (__attribute__): Remove definition.
8433         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8434         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8435         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8436         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8437         * lib/string.in.h (__attribute__): Remove definition.
8438         Reported by Paul Eggert.
8439
8440 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8441
8442         stdlib: don't get in the way of non-GCC __attribute__
8443         See thread starting at
8444         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8445         Revert previous stdlib change, installing the following instead:
8446         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8447         to get in the way of a non-GCC compiler that supports __attribute__.
8448         (_GL_ATTRIBUTE_RETURN): New macro.
8449         (_Exit): Use it instead of __attribute__.
8450
8451 2011-02-12  Bruno Haible  <bruno@clisp.org>
8452
8453         quotearg test: Avoid test failure on mingw.
8454         * tests/test-quotearg.sh: Convert the locale identifier from native
8455         Windows syntax to Unix syntax.
8456
8457 2011-02-12  Bruno Haible  <bruno@clisp.org>
8458
8459         setlocale: Prefer gnulib's override over libintl's override.
8460         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8461         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8462         GNULIB_defined_setlocale is set.
8463
8464 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8465
8466         stdlib: support non-GCC __attribute__
8467
8468         Fix a serious and tricky problem encountered when attempting to
8469         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8470         5.5, but it crashed due to memory corruption on Solaris 10 with
8471         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8472         bits that are otherwise zero.  This tagging is optional inside
8473         Emacs but is preferred and is used when __attribute__ ((__aligned
8474         (8))) works, as it does with both recent-enough GCC and with Sun C
8475         5.11.  However, Sun C 5.11 is not GCC and does not #define
8476         __GNUC__ and __GNUC_MINOR__.
8477
8478         When I added the getloadavg module to Emacs, it brought in
8479         stdlib.in.h, which contained this fragment:
8480
8481            #ifndef __attribute__
8482            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8483            #  define __attribute__(Spec)   /* empty */
8484            # endif
8485            #endif
8486
8487         When files that include <stdlib.h> were compiled with Sun C 5.11,
8488         the above code disabled __attribute__ ((__aligned (8))), which
8489         caused variables to not be properly aligned, which eventually led
8490         to the pointer corruption mentioned above.  (This was a bit hard
8491         to diagnose, unfortunately.)
8492
8493         Several "#define __attribute__(X) /* empty */" code snippets need
8494         to be eradicated from Gnulib to work with non-GCC compilers that
8495         support __attribute__.  The Autoconf way to do this is to test for
8496         each kind of attribute that we want support for, and selectively
8497         enable that in source code.
8498
8499         Fix this problem just for stdlib.h, by adding a test for the
8500         __noreturn__ attribute, and change stdlib.in.h to use that test
8501         when needed.  This technique can be easily generalized to the
8502         other *.in.h files and attributes, and a similar technique can be
8503         used for *.h and *.c files.  This patch is enough to solve the
8504         problem for Emacs + getloadavg, and I thought I'd publish it for
8505         feedback before undertaking further, similar fixes in other
8506         modules.
8507
8508         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8509         because it's not needed for stdlib.h.  It merely substitutes the
8510         value directly into stdlib.h.  We may well need to #define it, or
8511         similar symbols, for other modules, but it's nice to also have an
8512         option to not #define it for applications like Emacs that do not
8513         need it.
8514
8515         * lib/stdlib.in.h (__attribute__): Do not #define.
8516         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8517         be defined only if the _Exit module is also used.
8518         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8520         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8521         platforms.
8522         * modules/_Exit (Files): Add m4/attribute.m4.
8523         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8524         * m4/attribute.m4: New file.
8525
8526 2011-02-12  Bruno Haible  <bruno@clisp.org>
8527
8528         wcsrtombs: Work around bug on native Windows.
8529         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
8530         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
8531         instead of len.
8532         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8533
8534 2011-02-12  Bruno Haible  <bruno@clisp.org>
8535
8536         mbsrtowcs: Work around bug on native Windows.
8537         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
8538         against mingw bug.
8539         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
8540
8541 2011-02-12  Bruno Haible  <bruno@clisp.org>
8542
8543         Avoid setlocale bugs in tests.
8544         * modules/btowc (Dependencies): Add setlocale.
8545         * modules/c-strcase (Dependencies): Likewise.
8546         * modules/mbmemcasecmp (Dependencies): Likewise.
8547         * modules/mbmemcasecoll (Dependencies): Likewise.
8548         * modules/mbrtowc (Dependencies): Likewise.
8549         * modules/mbscasecmp (Dependencies): Likewise.
8550         * modules/mbscasestr (Dependencies): Likewise.
8551         * modules/mbschr (Dependencies): Likewise.
8552         * modules/mbscspn (Dependencies): Likewise.
8553         * modules/mbsinit (Dependencies): Likewise.
8554         * modules/mbsncasecmp (Dependencies): Likewise.
8555         * modules/mbsnrtowcs (Dependencies): Likewise.
8556         * modules/mbspbrk (Dependencies): Likewise.
8557         * modules/mbspcasecmp (Dependencies): Likewise.
8558         * modules/mbsrchr (Dependencies): Likewise.
8559         * modules/mbsrtowcs (Dependencies): Likewise.
8560         * modules/mbsspn (Dependencies): Likewise.
8561         * modules/mbsstr (Dependencies): Likewise.
8562         * modules/nl_langinfo (Dependencies): Likewise.
8563         * modules/quotearg (Dependencies): Likewise.
8564         * modules/unicase/locale-language (Dependencies): Likewise.
8565         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
8566         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
8567         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
8568         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
8569         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
8570         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
8571         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
8572         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
8573         * modules/vasnprintf-posix (Dependencies): Likewise.
8574         * modules/wcrtomb (Dependencies): Likewise.
8575         * modules/wcsnrtombs (Dependencies): Likewise.
8576         * modules/wcsrtombs (Dependencies): Likewise.
8577
8578 2011-02-12  Bruno Haible  <bruno@clisp.org>
8579
8580         setlocale: Workaround native Windows bug.
8581         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
8582         succeeds but sets LC_CTYPE to "C", report a failure.
8583         * tests/test-setlocale2.sh: New file.
8584         * tests/test-setlocale2.c: New file.
8585         * modules/setlocale-tests (Files): Add the new files.
8586         (Makefile.am): Enable test-setlocale2.sh test.
8587         * doc/posix-functions/setlocale.texi: Mention workaround.
8588
8589 2011-02-11  Bruno Haible  <bruno@clisp.org>
8590
8591         Tests for module 'setlocale'.
8592         * modules/setlocale-tests: New file.
8593         * tests/test-setlocale1.sh: New file.
8594         * tests/test-setlocale1.c: New file.
8595
8596         New module 'setlocale'.
8597         * lib/locale.in.h (setlocale): New declaration.
8598         * lib/setlocale.c: New file, based on
8599         gettext/gettext-runtime/intl/setlocale.c.
8600         * m4/setlocale.m4: New file.
8601         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
8602         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
8603         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
8604         REPLACE_SETLOCALE.
8605         * modules/setlocale: New file.
8606         * tests/test-locale-c++.cc: Test the declaration of setlocale.
8607         * doc/posix-functions/setlocale.texi: Mention the new module.
8608
8609 2011-02-11  Bruno Haible  <bruno@clisp.org>
8610
8611         Prepare for locale dependent tests on mingw.
8612         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
8613         because it has the wrong locale encoding.
8614         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
8615         French_France.1252 instead of "fr".
8616         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
8617         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8618         because it has the wrong locale encoding.
8619         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8620         native Windows, try Turkish_Turkey.65001.
8621         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8622         Chinese_China.54936.
8623
8624         Prepare for locale dependent tests on mingw.
8625         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8626         differently.
8627         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8628         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8629         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8630         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8631
8632 2011-02-11  Eric Blake  <eblake@redhat.com>
8633
8634         strptime: avoid compiler warnings
8635         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8636         compiler warnings about dead code.
8637         Reported by Daniel P. Berrange.
8638
8639 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8640
8641         doc: update users.txt
8642         * users.txt: Add rcs.
8643
8644 2011-02-10  John W. Eaton  <jwe@gnu.org>
8645
8646         doc: update users.txt
8647         * users.txt: Add octave.
8648
8649 2011-02-10  Jim Meyering  <meyering@redhat.com>
8650
8651         doc: update users.txt
8652         * users.txt: Add iwhd.
8653
8654 2011-02-09  Bruno Haible  <bruno@clisp.org>
8655
8656         gnulib-tool: Make copyright notice adjustment more robust.
8657         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8658         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8659         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8660         License".
8661         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8662
8663 2011-02-06  Bruno Haible  <bruno@clisp.org>
8664
8665         New module 'towctrans'.
8666         * modules/towctrans: New file.
8667         * lib/wctype.in.h (towctrans): New declaration.
8668         * lib/towctrans.c: New file.
8669         * lib/towctrans-impl.h: New file.
8670         * m4/towctrans.m4: New file.
8671         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8672         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8673         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8674         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8675         * doc/posix-functions/towctrans.texi: Mention the new module.
8676
8677 2011-02-06  Bruno Haible  <bruno@clisp.org>
8678
8679         New module 'wctrans'.
8680         * modules/wctrans: New file.
8681         * lib/wctype.in.h (wctrans): New declaration.
8682         * lib/wctrans.c: New file.
8683         * lib/wctrans-impl.h: New file.
8684         * m4/wctrans.m4: New file.
8685         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8686         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8687         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8688         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8689         * doc/posix-functions/wctrans.texi: Mention the new module.
8690
8691 2011-02-06  Bruno Haible  <bruno@clisp.org>
8692
8693         New module 'iswctype'.
8694         * modules/iswctype: New file.
8695         * lib/wctype.in.h (iswctype): New declaration.
8696         * lib/iswctype.c: New file.
8697         * lib/iswctype-impl.h: New file.
8698         * m4/iswctype.m4: New file.
8699         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
8700         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
8701         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
8702         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
8703         * doc/posix-functions/iswctype.texi: Mention the new module and the
8704         HP-UX 11.00 problem.
8705
8706 2011-02-06  Bruno Haible  <bruno@clisp.org>
8707
8708         New module 'wctype'.
8709         * modules/wctype: Change to represent the wctype() substitute.
8710         * lib/wctype.in.h (wctype): New declaration.
8711         * lib/wctype.c: New file.
8712         * lib/wctype-impl.h: New file.
8713         * m4/wctype.m4: New file.
8714         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
8715         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
8716         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
8717         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
8718         * doc/posix-functions/wctype.texi: Mention the new module and the
8719         HP-UX 11.00 problem.
8720
8721 2011-02-06  Bruno Haible  <bruno@clisp.org>
8722
8723         wctype-h: Ensure wctype_t and wctrans_t are defined.
8724         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
8725         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8726         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8727         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
8728         HAVE_WCTRANS_T.
8729         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
8730
8731 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8732
8733         flock: fix license typo
8734
8735         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
8736         omitted.
8737
8738 2011-02-08  Bruno Haible  <bruno@clisp.org>
8739
8740         Split large sed scripts, for HP-UX sed.
8741         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
8742         to avoid HP-UX limit of 99 commands, in the near future.
8743         * modules/stdlib (Makefile.am): Likewise.
8744         * modules/unistd (Makefile.am): Likewise.
8745         * modules/wchar (Makefile.am): Likewise.
8746         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8747         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
8748         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
8749
8750 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8751             Bruno Haible  <bruno@clisp.org>
8752
8753         stdlib: improve random_r modularization
8754         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
8755         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
8756         you also need the random_r module to get this material right.
8757         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
8758         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
8759         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
8760
8761 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8762
8763         stdlib: don't depend on stdint
8764         * lib/stdlib.in.h: Don't include <stdint.h> merely because
8765         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
8766         be independent of whether stdint.h is needed.
8767         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
8768         here, instead of ...
8769         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
8770         struct random_data should be using the random_r module, not just
8771         the stdlib module (which wouldn't make sense: what package needs
8772         just struct random_data without also needing random_r?).
8773         * modules/stdlib (Depends-on): Remove stdint.
8774
8775         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
8776         See the thread rooted at
8777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
8778         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
8779         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
8780         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
8781         __VMS)); previously it was always included (via fcntl--.h).
8782         (getloadavg): Do not use c_strtod.  Instead, approximate it by
8783         hand; this is good enough for load averages.  Also, do not use
8784         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
8785         flags directly if available and don't bother otherwise.  (Packages
8786         that need the extra reliability should use the modules that define
8787         these flags on older platforms that lack them.)
8788         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
8789         fcntl-safer.
8790
8791 2011-02-08  Jim Meyering  <meyering@redhat.com>
8792
8793         di-set.h, ino-map.h: add multiple-inclusion guard
8794         Technically, the guard is required only for ino-map.h, due to its
8795         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
8796         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
8797         * lib/ino-map.h: Likewise.
8798
8799 2011-02-06  Bruno Haible  <bruno@clisp.org>
8800
8801         iswblank: Ensure declaration on glibc systems.
8802         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
8803         * modules/iswblank (Dependencies): Add 'extensions'.
8804         * doc/posix-functions/iswblank.texi: Document the glibc problem.
8805
8806 2011-02-06  Bruno Haible  <bruno@clisp.org>
8807
8808         New module 'iswblank'.
8809         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
8810         * modules/iswblank: New file.
8811         * modules/wctype-h (Files): Remove lib/iswblank.c.
8812         (Makefile.am): Substitute GNULIB_ISWBLANK.
8813         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
8814         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
8815         (gl_WCTYPE_H_DEFAULTS): New macro.
8816         (gl_WCTYPE_H): Require it. Remove iswblank related code.
8817         * modules/iswblank-tests: New file.
8818         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
8819         * tests/test-wctype-h.c (main): Remove iswblank tests.
8820         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
8821         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
8822         of 'wctype-h'.
8823         * NEWS: Mention the change.
8824         * modules/mbchar (Depends-on): Add iswblank.
8825
8826 2011-02-08  Bruno Haible  <bruno@clisp.org>
8827
8828         di-set tests: Refactor.
8829         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
8830         unnecessary includes.
8831         (ASSERT): Remove macro.
8832         (main): Make C90 compliant by avoiding variable declaration after
8833         statement.
8834         * modules/di-set-tests (Files): Add tests/macros.h.
8835
8836 2011-02-08  Bruno Haible  <bruno@clisp.org>
8837
8838         ino-map tests: Refactor.
8839         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
8840         unnecessary includes.
8841         (ASSERT): Remove macro.
8842         (main): Make C90 compliant by avoiding variable declaration after
8843         statement.
8844         * modules/ino-map-tests (Files): Add tests/macros.h.
8845
8846 2011-02-08  Jim Meyering  <meyering@redhat.com>
8847
8848         di-set: add "const" to a cast
8849         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
8850         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
8851
8852 2011-02-06  Bruno Haible  <bruno@clisp.org>
8853
8854         Rename module 'wctype' to 'wctype-h'.
8855         * modules/wctype-h: Renamed from modules/wctype.
8856         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
8857         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
8858         (Files, Depends-on, Makefile.am): Update.
8859         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
8860         (Files, Makefile.am): Update.
8861         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
8862         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
8863         * doc/posix-headers/wctype.texi: Update.
8864         * doc/posix-functions/iswalnum.texi: Update.
8865         * doc/posix-functions/iswalpha.texi: Update.
8866         * doc/posix-functions/iswblank.texi: Update.
8867         * doc/posix-functions/iswcntrl.texi: Update.
8868         * doc/posix-functions/iswdigit.texi: Update.
8869         * doc/posix-functions/iswgraph.texi: Update.
8870         * doc/posix-functions/iswlower.texi: Update.
8871         * doc/posix-functions/iswprint.texi: Update.
8872         * doc/posix-functions/iswpunct.texi: Update.
8873         * doc/posix-functions/iswspace.texi: Update.
8874         * doc/posix-functions/iswupper.texi: Update.
8875         * doc/posix-functions/iswxdigit.texi: Update.
8876         * doc/posix-functions/towlower.texi: Update.
8877         * doc/posix-functions/towupper.texi: Update.
8878         * NEWS: Mention the change.
8879         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
8880         * modules/mbchar (Dependencies): Likewise.
8881         * modules/mbswidth (Dependencies): Likewise.
8882         * modules/quotearg (Dependencies): Likewise.
8883         * modules/regex (Dependencies): Likewise.
8884         * modules/wcscasecmp (Dependencies): Likewise.
8885         * modules/wcsncasecmp (Dependencies): Likewise.
8886         * modules/wcwidth (Dependencies): Likewise.
8887
8888 2011-02-06  Bruno Haible  <bruno@clisp.org>
8889
8890         New module 'wcswidth'.
8891         * modules/wcswidth: New file.
8892         * lib/wchar.in.h (wcswidth): New declaration.
8893         * lib/wcswidth.c: New file.
8894         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
8895         * m4/wcswidth.m4: New file.
8896         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
8897         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
8898         REPLACE_WCSWIDTH.
8899         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
8900         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
8901         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
8902         * doc/posix-functions/wcswidth.texi: Mention the new module.
8903
8904 2011-02-06  Bruno Haible  <bruno@clisp.org>
8905
8906         New module 'wcstok'.
8907         * modules/wcstok: New file.
8908         * lib/wchar.in.h (wcstok): New declaration.
8909         * lib/wcstok.c: New file.
8910         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
8911         * m4/wcstok.m4: New file.
8912         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
8913         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
8914         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
8915         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
8916         * doc/posix-functions/wcstok.texi: Mention the new module.
8917
8918 2011-02-06  Bruno Haible  <bruno@clisp.org>
8919
8920         New module 'wcsstr'.
8921         * modules/wcsstr: New file.
8922         * lib/wchar.in.h (wcsstr): New declaration.
8923         * lib/wcsstr.c: New file.
8924         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
8925         * m4/wcsstr.m4: New file.
8926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
8927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
8928         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
8929         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
8930         * doc/posix-functions/wcsstr.texi: Mention the new module.
8931
8932 2011-02-06  Bruno Haible  <bruno@clisp.org>
8933
8934         New module 'wcspbrk'.
8935         * modules/wcspbrk: New file.
8936         * lib/wchar.in.h (wcspbrk): New declaration.
8937         * lib/wcspbrk.c: New file.
8938         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
8939         * m4/wcspbrk.m4: New file.
8940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
8941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
8942         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
8943         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
8944         * doc/posix-functions/wcspbrk.texi: Mention the new module.
8945
8946 2011-02-06  Bruno Haible  <bruno@clisp.org>
8947
8948         New module 'wcsspn'.
8949         * modules/wcsspn: New file.
8950         * lib/wchar.in.h (wcsspn): New declaration.
8951         * lib/wcsspn.c: New file.
8952         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
8953         * m4/wcsspn.m4: New file.
8954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
8955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
8956         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
8957         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
8958         * doc/posix-functions/wcsspn.texi: Mention the new module.
8959
8960 2011-02-06  Bruno Haible  <bruno@clisp.org>
8961
8962         New module 'wcscspn'.
8963         * modules/wcscspn: New file.
8964         * lib/wchar.in.h (wcscspn): New declaration.
8965         * lib/wcscspn.c: New file.
8966         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
8967         * m4/wcscspn.m4: New file.
8968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
8969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
8970         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
8971         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
8972         * doc/posix-functions/wcscspn.texi: Mention the new module.
8973
8974 2011-02-06  Bruno Haible  <bruno@clisp.org>
8975
8976         New module 'wcsrchr'.
8977         * modules/wcsrchr: New file.
8978         * lib/wchar.in.h (wcsrchr): New declaration.
8979         * lib/wcsrchr.c: New file.
8980         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
8981         * m4/wcsrchr.m4: New file.
8982         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
8983         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
8984         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
8985         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
8986         * doc/posix-functions/wcsrchr.texi: Mention the new module.
8987
8988 2011-02-06  Bruno Haible  <bruno@clisp.org>
8989
8990         New module 'wcschr'.
8991         * modules/wcschr: New file.
8992         * lib/wchar.in.h (wcschr): New declaration.
8993         * lib/wcschr.c: New file.
8994         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
8995         * m4/wcschr.m4: New file.
8996         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
8997         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
8998         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
8999         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
9000         * doc/posix-functions/wcschr.texi: Mention the new module.
9001
9002 2011-02-06  Bruno Haible  <bruno@clisp.org>
9003
9004         New module 'wcsdup'.
9005         * modules/wcsdup: New file.
9006         * lib/wchar.in.h (wcsdup): New declaration.
9007         * lib/wcsdup.c: New file.
9008         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
9009         * m4/wcsdup.m4: New file.
9010         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
9011         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
9012         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
9013         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
9014         * doc/posix-functions/wcsdup.texi: Mention the new module.
9015
9016 2011-02-06  Bruno Haible  <bruno@clisp.org>
9017
9018         New module 'wcsxfrm'.
9019         * modules/wcsxfrm: New file.
9020         * lib/wchar.in.h (wcsxfrm): New declaration.
9021         * lib/wcsxfrm.c: New file.
9022         * lib/wcsxfrm-impl.h: New file.
9023         * m4/wcsxfrm.m4: New file.
9024         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
9025         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
9026         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
9027         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
9028         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
9029
9030 2011-02-06  Bruno Haible  <bruno@clisp.org>
9031
9032         New module 'wcscoll'.
9033         * modules/wcscoll: New file.
9034         * lib/wchar.in.h (wcscoll): New declaration.
9035         * lib/wcscoll.c: New file.
9036         * lib/wcscoll-impl.h: New file.
9037         * m4/wcscoll.m4: New file.
9038         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
9039         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
9040         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
9041         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
9042         * doc/posix-functions/wcscoll.texi: Mention the new module.
9043
9044 2011-02-06  Bruno Haible  <bruno@clisp.org>
9045
9046         New module 'wcsncasecmp'.
9047         * modules/wcsncasecmp: New file.
9048         * lib/wchar.in.h (wcsncasecmp): New declaration.
9049         * lib/wcsncasecmp.c: New file.
9050         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
9051         * m4/wcsncasecmp.m4: New file.
9052         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
9053         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
9054         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
9055         HAVE_WCSNCASECMP.
9056         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
9057         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
9058
9059 2011-02-06  Bruno Haible  <bruno@clisp.org>
9060
9061         New module 'wcscasecmp'.
9062         * modules/wcscasecmp: New file.
9063         * lib/wchar.in.h (wcscasecmp): New declaration.
9064         * lib/wcscasecmp.c: New file.
9065         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
9066         * m4/wcscasecmp.m4: New file.
9067         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
9068         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
9069         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
9070         HAVE_WCSCASECMP.
9071         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
9072         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
9073
9074 2011-02-05  Bruno Haible  <bruno@clisp.org>
9075
9076         New module 'wcsncmp'.
9077         * modules/wcsncmp: New file.
9078         * lib/wchar.in.h (wcsncmp): New declaration.
9079         * lib/wcsncmp.c: New file.
9080         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
9081         * m4/wcsncmp.m4: New file.
9082         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
9083         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
9084         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
9085         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
9086         * doc/posix-functions/wcsncmp.texi: Mention the new module.
9087
9088 2011-02-05  Bruno Haible  <bruno@clisp.org>
9089
9090         New module 'wcscmp'.
9091         * modules/wcscmp: New file.
9092         * lib/wchar.in.h (wcscmp): New declaration.
9093         * lib/wcscmp.c: New file.
9094         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
9095         * m4/wcscmp.m4: New file.
9096         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
9097         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
9098         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
9099         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
9100         * doc/posix-functions/wcscmp.texi: Mention the new module.
9101
9102 2011-02-05  Bruno Haible  <bruno@clisp.org>
9103
9104         New module 'wcsncat'.
9105         * modules/wcsncat: New file.
9106         * lib/wchar.in.h (wcsncat): New declaration.
9107         * lib/wcsncat.c: New file.
9108         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
9109         * m4/wcsncat.m4: New file.
9110         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
9111         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
9112         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
9113         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
9114         * doc/posix-functions/wcsncat.texi: Mention the new module.
9115
9116 2011-02-05  Bruno Haible  <bruno@clisp.org>
9117
9118         New module 'wcscat'.
9119         * modules/wcscat: New file.
9120         * lib/wchar.in.h (wcscat): New declaration.
9121         * lib/wcscat.c: New file.
9122         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
9123         * m4/wcscat.m4: New file.
9124         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
9125         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
9126         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
9127         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
9128         * doc/posix-functions/wcscat.texi: Mention the new module.
9129
9130 2011-02-05  Bruno Haible  <bruno@clisp.org>
9131
9132         New module 'wcpncpy'.
9133         * modules/wcpncpy: New file.
9134         * lib/wchar.in.h (wcpncpy): New declaration.
9135         * lib/wcpncpy.c: New file.
9136         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
9137         * m4/wcpncpy.m4: New file.
9138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
9139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
9140         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
9141         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
9142         * doc/posix-functions/wcpncpy.texi: Mention the new module.
9143
9144 2011-02-05  Bruno Haible  <bruno@clisp.org>
9145
9146         New module 'wcsncpy'.
9147         * modules/wcsncpy: New file.
9148         * lib/wchar.in.h (wcsncpy): New declaration.
9149         * lib/wcsncpy.c: New file.
9150         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
9151         * m4/wcsncpy.m4: New file.
9152         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
9153         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
9154         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
9155         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
9156         * doc/posix-functions/wcsncpy.texi: Mention the new module.
9157
9158 2011-02-05  Bruno Haible  <bruno@clisp.org>
9159
9160         New module 'wcpcpy'.
9161         * modules/wcpcpy: New file.
9162         * lib/wchar.in.h (wcpcpy): New declaration.
9163         * lib/wcpcpy.c: New file.
9164         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
9165         * m4/wcpcpy.m4: New file.
9166         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
9167         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
9168         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
9169         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
9170         * doc/posix-functions/wcpcpy.texi: Mention the new module.
9171
9172 2011-02-05  Bruno Haible  <bruno@clisp.org>
9173
9174         New module 'wcscpy'.
9175         * modules/wcscpy: New file.
9176         * lib/wchar.in.h (wcscpy): New declaration.
9177         * lib/wcscpy.c: New file.
9178         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
9179         * m4/wcscpy.m4: New file.
9180         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
9181         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
9182         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
9183         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
9184         * doc/posix-functions/wcscpy.texi: Mention the new module.
9185
9186 2011-02-05  Bruno Haible  <bruno@clisp.org>
9187
9188         New module 'wcsnlen'.
9189         * modules/wcsnlen: New file.
9190         * lib/wchar.in.h (wcsnlen): New declaration.
9191         * lib/wcsnlen.c: New file.
9192         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
9193         * m4/wcsnlen.m4: New file.
9194         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
9195         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
9196         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
9197         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
9198         * doc/posix-functions/wcsnlen.texi: Mention the new module.
9199
9200 2011-02-05  Bruno Haible  <bruno@clisp.org>
9201
9202         New module 'wcslen'.
9203         * modules/wcslen: New file.
9204         * lib/wchar.in.h (wcslen): New declaration.
9205         * lib/wcslen.c: New file.
9206         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
9207         * m4/wcslen.m4: New file.
9208         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
9209         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
9210         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
9211         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
9212         * doc/posix-functions/wcslen.texi: Mention the new module.
9213
9214 2011-02-05  Bruno Haible  <bruno@clisp.org>
9215
9216         New module 'wmemset'.
9217         * modules/wmemset: New file.
9218         * lib/wchar.in.h (wmemset): New declaration.
9219         * lib/wmemset.c: New file.
9220         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
9221         * m4/wmemset.m4: New file.
9222         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
9223         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
9224         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
9225         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
9226         * doc/posix-functions/wmemset.texi: Mention the new module.
9227
9228 2011-02-05  Bruno Haible  <bruno@clisp.org>
9229
9230         New module 'wmemmove'.
9231         * modules/wmemmove: New file.
9232         * lib/wchar.in.h (wmemmove): New declaration.
9233         * lib/wmemmove.c: New file.
9234         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
9235         * m4/wmemmove.m4: New file.
9236         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
9237         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
9238         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
9239         HAVE_WMEMMOVE.
9240         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
9241         * doc/posix-functions/wmemmove.texi: Mention the new module.
9242
9243 2011-02-05  Bruno Haible  <bruno@clisp.org>
9244
9245         New module 'wmemcpy'.
9246         * modules/wmemcpy: New file.
9247         * lib/wchar.in.h (wmemcpy): New declaration.
9248         * lib/wmemcpy.c: New file.
9249         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
9250         * m4/wmemcpy.m4: New file.
9251         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
9252         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
9253         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
9254         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
9255         * doc/posix-functions/wmemcpy.texi: Mention the new module.
9256
9257 2011-02-05  Bruno Haible  <bruno@clisp.org>
9258
9259         New module 'wmemcmp'.
9260         * modules/wmemcmp: New file.
9261         * lib/wchar.in.h (wmemcmp): New declaration.
9262         * lib/wmemcmp.c: New file.
9263         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
9264         * m4/wmemcmp.m4: New file.
9265         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
9266         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
9267         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
9268         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
9269         * doc/posix-functions/wmemcmp.texi: Mention the new module.
9270
9271 2011-02-07  Jim Meyering  <meyering@redhat.com>
9272
9273         di-set, ino-map: new modules, from coreutils
9274         * lib/di-set.c: New file.
9275         * lib/di-set.h: Likewise.
9276         * lib/ino-map.c: Likewise.
9277         * lib/ino-map.h: Likewise.
9278         * modules/di-set: Likewise.
9279         * modules/di-set-tests: Likewise.
9280         * modules/ino-map: Likewise.
9281         * modules/ino-map-tests: Likewise.
9282         * tests/test-di-set.c: Likewise.
9283         * tests/test-ino-map.c: Likewise.
9284
9285 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9286
9287         getloadavg: merge minor changes from Emacs
9288
9289         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
9290         (getloadavg): Use memset, not bzero.
9291
9292         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
9293         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9294         clash (bug#86).
9295
9296 2010-11-14  Bruno Haible  <bruno@clisp.org>
9297
9298         Allow multiple gnulib generated replacements to coexist.
9299         * lib/getopt.in.h (struct option): Avoid identical redefinition.
9300         * lib/inttypes.in.h (imaxdiv_t): Likewise.
9301         * lib/langinfo.in.h (nl_item): Likewise.
9302         * lib/math.in.h (_NaN, NAN): Likewise.
9303         * lib/netdb.in.h (struct addrinfo): Likewise.
9304         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
9305         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
9306         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
9307         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
9308         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9309         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9310         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9311         pthread_mutexattr_init, pthread_mutexattr_settype,
9312         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9313         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9314         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9315         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9316         * lib/sched.in.h (struct sched_param): Likewise.
9317         * lib/se-selinux.in.h (security_class_t, security_context_t,
9318         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9319         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9320         lsetfilecon, fsetfilecon, security_check_context,
9321         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9322         Likewise.
9323         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9324         Likewise.
9325         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9326         _gl_function_taking_int_returning_void_t, union sigval,
9327         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9328         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9329         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9330         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9331         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9332         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9333         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9334         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9335         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9336         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9337         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9338         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9339         socklen_t, rpl_fd_isset): Likewise.
9340         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9341         * lib/sys_time.in.h (struct timeval): Likewise.
9342         * lib/sys_times.in.h (struct tms): Likewise.
9343         * lib/sys_utsname.in.h (struct utsname):
9344         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9345         * lib/unistd.in.h (getpagesize): Likewise.
9346         * lib/wchar.in.h (mbstate_t): Likewise.
9347         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9348         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9349         towlower, towupper): Likewise.
9350         Reported by Sam Steingold <sds@gnu.org>.
9351
9352 2011-02-05  Eric Blake  <eblake@redhat.com>
9353
9354         unsetenv: work around Haiku issues
9355         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9356         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9357
9358 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9359
9360         libposix: avoid calling error() within libposix
9361         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9362         is defined.
9363
9364 2011-02-05  Eric Blake  <eblake@redhat.com>
9365
9366         strerror_r-posix: port to cygwin
9367         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9368         implementation.
9369         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9370         * tests/test-strerror_r.c (main): Fix test.
9371         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9372         issue.
9373
9374 2011-02-05  Bruno Haible  <bruno@clisp.org>
9375
9376         New module 'wmemchr'.
9377         * modules/wmemchr: New file.
9378         * lib/wchar.in.h (wmemchr): New declaration.
9379         * lib/wmemchr.c: New file.
9380         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9381         * m4/wmemchr.m4: New file.
9382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9384         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9385         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9386         * doc/posix-functions/wmemchr.texi: Mention the new module.
9387
9388 2011-02-04  Eric Blake  <eblake@redhat.com>
9389
9390         fdopendir: detect FreeBSD bug
9391         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9392         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9393
9394 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9395
9396         stdbool: do not define HAVE_STDBOOL_H
9397         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9398         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9399         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9400         imported from the latest Autoconf git.  It was motivated by Emacs,
9401         which uses gnulib but does not need HAVE_STDBOOL_H.
9402
9403 2011-02-04  Bruno Haible  <bruno@clisp.org>
9404
9405         wcsnrtombs: Prepare for new module wwcsnrtombs.
9406         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9407         * lib/wcsnrtombs.c: Include it.
9408         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9409
9410         wcsrtombs: Prepare for new module wwcsrtombs.
9411         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9412         * lib/wcsrtombs.c: Include it.
9413         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9414
9415         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9416         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9417         * lib/mbsnrtowcs.c: Include it.
9418         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9419
9420         mbsrtowcs: Prepare for new module mbsrtowwcs.
9421         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9422         * lib/mbsrtowcs.c: Include it.
9423         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9424
9425 2011-02-04  Bruno Haible  <bruno@clisp.org>
9426
9427         vasnprintf: Reduce use of malloc for small format strings.
9428         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9429         (arguments): Add room for the first 7 arguments.
9430         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9431         (char_directives, u8_directives, u16_directives, u32_directives): Add
9432         room for the first 7 directives.
9433         * lib/printf-parse.c: Include <string.h>.
9434         (PRINTF_PARSE): Change memory handling code so that it uses the first
9435         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9436         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9437         Reported by Pádraig Brady <P@draigbrady.com>.
9438
9439 2011-01-31  Eric Blake  <eblake@redhat.com>
9440
9441         dup2: work around Haiku bug
9442         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9443         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9444         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9445         * tests/test-dup2.c (main): Enhance test.
9446
9447 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9448
9449         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9450         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9451         declared by eglibc 2.11.2.
9452         * lib/stdio.in.h: Likewise.
9453
9454 2011-01-31  Eric Blake  <eblake@redhat.com>
9455
9456         ignore-value: add missing test dependency
9457         * tests/test-ignore-value.c: Revert previous change; stdio.h
9458         provides off_t.
9459         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9460
9461 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9462
9463         mktime: clarify long_int width checking
9464         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9465         the top level, to make it clearer that the assumption about
9466         long_int width is being checked.  See
9467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9468
9469 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9470
9471         ignore-value: Fix self-test.
9472         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9473
9474 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9475
9476         TYPE_MAXIMUM: avoid theoretically undefined behavior
9477         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9478         negative number, which the C Standard says has undefined behavior.
9479         In practice this is not a problem, but might as well do it by the book.
9480         Reported by Rich Felker and Eric Blake; see
9481         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9482         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9483         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9484         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9485         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9486         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9487         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9488
9489         mktime: #undef mktime before #defining it
9490         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9491
9492         mktime: systematically normalize tm_isdst comparisons
9493         * lib/mktime.c (isdst_differ): New function.
9494         (__mktime_internal): Use it systematically for all isdst comparisons.
9495         This completes the fix for libc BZ #6723, and removes the need for
9496         normalizing tm_isdst.  See
9497         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9498         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9499
9500         mktime: fix some integer overflow issues and sidestep the rest
9501
9502         This was prompted by a bug report by Benjamin Lindner for MinGW
9503         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9504         His bug is due to signed integer overflow (0 - INT_MIN), and I
9505         I scanned through mktime.c looking for other integer overflow
9506         problems, fixing all the bugs I found.
9507
9508         Although the C Standard says the resulting code is still not safe
9509         in the presence of integer overflow, in practice it should be good
9510         enough for all real-world two's-complement implementations, except
9511         for debugging environments that deliberately trap on integer
9512         overflow (e.g., gcc -ftrapv).
9513
9514         * lib/mktime.c (WRAPV): New macro.
9515         (SHR): Also check that long_int and time_t shift right in the
9516         usual way, before using the fast-but-unportable method.
9517         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9518         used.  The code already assumed two's complement, so there's
9519         no need to test for alternatives.  All uses removed.
9520         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9521         the C standard.  Problem reported by Rich Felker in
9522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9523         (twos_complement_arithmetic): Also check long_int and time_t.
9524         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9525         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9526         (__mktime_internal): Avoid integer overflow with unary subtraction
9527         in two instances where -1 - X is an adequate replacement for -X,
9528         since the calculations are approximate.
9529
9530 2011-01-29  Eric Blake  <eblake@redhat.com>
9531
9532         mktime: avoid infinite loop
9533         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
9534         type; behavior is still undefined but portable to all known targets.
9535         Reported by Rich Felker.
9536
9537 2011-01-29  Simon Josefsson  <simon@josefsson.org>
9538
9539         rename, unlink, same-inode: Relicense.
9540         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
9541         * modules/unlink (License): Likewise.
9542         * modules/same-inode (License): Likewise.
9543
9544 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9545
9546         mktime: avoid problems on NetBSD 5 / i386
9547         * lib/mktime.c (long_int): New type.  This works around a problem
9548         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
9549         but time_t is 64 bits, and where I expect the existing code is
9550         wrong in some cases.
9551         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
9552         (ydhms_diff): Bring back the compile-time check for wide-enough
9553         year and yday.
9554
9555         mktime: fix misspelling in comment
9556         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
9557         This merges all recent glibc changes of importance.
9558
9559 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9560
9561         move-if-change: cope with concurrent mv of identical file.
9562         * build-aux/move-if-change (CMPPROG): Accept environment
9563         variable as an override for `cmp'.
9564         (usage): Document CMPPROG.
9565         Adjust comparison to drop stdout.  Cope with failure of mv if
9566         the target file exists and is identical to the source, for
9567         parallel builds.
9568         Report from H.J. Lu against binutils in PR binutils/12283.
9569
9570 2011-01-28  Bruce Korb  <bkorb@gnu.org>
9571
9572         * users.txt: Mention sharutils.
9573
9574 2011-01-28  Simon Josefsson  <simon@josefsson.org>
9575
9576         * users.txt: Mention OATH Toolkit.
9577
9578 2011-01-27  Bruno Haible  <bruno@clisp.org>
9579
9580         Prepare for supporting FreeBSD 10.
9581         * build-aux/config.libpath: Remove handling of freebsd1*.
9582
9583 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
9584
9585         Prepare for supporting FreeBSD 10.
9586         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
9587         match FreeBSD 10.0.
9588
9589 2011-01-27  Bruno Haible  <bruno@clisp.org>
9590
9591         vma-iter, get-rusage-as: Add OpenBSD support.
9592         * modules/vma-iter (configure.ac): Test for mquery.
9593         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
9594         * lib/vma-iter.c: Include <sys/mman.h>.
9595         (vma_iterate): Add an implementation based on mquery().
9596         * lib/resource-ext.h (get_rusage_as): Update comments.
9597         * lib/get-rusage-as.c: Likewise.
9598         * lib/get-rusage-data.c: Likewise.
9599
9600 2011-01-26  Karl Berry  <karl@gnu.org>
9601
9602         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
9603         variables to make it easier to override the makeinfo program used.
9604
9605 2011-01-26  Eric Blake  <eblake@redhat.com>
9606
9607         fcntl: work around Haiku F_DUPFD bugs
9608         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
9609         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
9610         cloexec bit on duplication.
9611         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
9612
9613 2011-01-26  Bruno Haible  <bruno@clisp.org>
9614
9615         Enable memory leak tests on AIX.
9616         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
9617         * tests/test-fprintf-posix3.c (main): Likewise.
9618
9619 2011-01-26  Bruno Haible  <bruno@clisp.org>
9620
9621         Tests for module 'get-rusage-data'.
9622         * modules/get-rusage-data-tests: New file.
9623         * tests/test-get-rusage-data.c: New file.
9624
9625         New module 'get-rusage-data'.
9626         * lib/resource-ext.h (get_rusage_data): New declaration.
9627         * lib/get-rusage-data.c: New file.
9628         * modules/get-rusage-data: New file.
9629
9630 2011-01-25  Bruno Haible  <bruno@clisp.org>
9631
9632         get-rusage-as: Allow for easier testing.
9633         * lib/resource-ext.h (get_rusage_as): Add comment.
9634         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9635         (main): New function for interactive testing.
9636
9637 2011-01-25  Bruno Haible  <bruno@clisp.org>
9638
9639         vma-iter: Treat Haiku like BeOS.
9640         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9641         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9642
9643 2011-01-25  Eric Blake  <eblake@redhat.com>
9644
9645         c-stack: fix regression on cygwin when libsigsegv is present
9646         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9647
9648 2011-01-24  Bruno Haible  <bruno@clisp.org>
9649
9650         vma-iter: Avoid empty intervals.
9651         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9652         on an empty interval.
9653
9654 2011-01-24  Jim Meyering  <meyering@redhat.com>
9655
9656         u64: remove unnecessary #include
9657         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9658
9659 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9660
9661         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9662         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9663
9664 2011-01-23  Bruno Haible  <bruno@clisp.org>
9665
9666         New module 'vma-iter'.
9667         * lib/vma-iter.h: New file.
9668         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9669         * modules/vma-iter: New file.
9670         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9671         for get_rusage_as_via_iterator.
9672         (vma_iterate_callback): New function.
9673         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9674         * modules/get-rusage-as (Depends-on): Add vma-iter.
9675
9676 2011-01-23  Bruno Haible  <bruno@clisp.org>
9677
9678         uninorm: Tweak includes.
9679         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9680         Reported by Jim Meyering.
9681
9682 2011-01-23  Bruno Haible  <bruno@clisp.org>
9683
9684         get-rusage-as: Improve on NetBSD.
9685         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9686         /proc, like on FreeBSD.
9687
9688 2011-01-23  Jim Meyering  <meyering@redhat.com>
9689
9690         xreadlink.h: remove unnecessary #include
9691         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
9692
9693         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
9694         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
9695
9696 2011-01-23  Bruno Haible  <bruno@clisp.org>
9697
9698         get-rusage-as: Fix bug.
9699         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
9700         original limit when aborting the first loop.
9701
9702 2011-01-23  Bruno Haible  <bruno@clisp.org>
9703
9704         wctype: Ensure valid C syntax.
9705         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
9706         unconditionally, instead of gl_NEXT_HEADERS conditionally.
9707
9708 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9709
9710         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
9711         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
9712         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
9713         as they are needed only for configure's test case.
9714         This removes two unnecessary symbols from config.h.
9715
9716         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
9717         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
9718         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
9719         AC_CHECK_HEADERS_ONCE on a header that we also invoke
9720         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
9721         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
9722         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
9723         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9724         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9725         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9726         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9727         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9728         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9729         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9730         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9731         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9732         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9733         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9734
9735 2011-01-21  Eric Blake  <eblake@redhat.com>
9736
9737         maintainer-makefile: work with older git for submodule check
9738         * top/maint.mk (public-submodule-commit): Rewrite to avoid
9739         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
9740         Reported by Matthias Bolte.
9741
9742         bootstrap: minor portability fixes
9743         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
9744         (usage): Omit leading capital and trailing . on help phrases, per
9745         GNU Coding Standards.
9746         (check_versions, top level): Prefix messages with script name.
9747
9748 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
9749
9750         bootstrap: support --no-git option
9751         * build-aux/bootstrap: Add --no-git option, to be used when
9752         --gnulib-srcdir points to the exact desired checkout.
9753
9754 2011-01-21  Eric Blake  <eblake@redhat.com>
9755
9756         strerror_r-posix: work with glibc 2.13
9757         * lib/strerror_r.c (strerror_r): Fix return type.
9758
9759 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9760             Bruno Haible  <bruno@clisp.org>
9761
9762         uN_strstr: New unit tests.
9763         * modules/unistr/u8-strstr-tests: New file.
9764         * modules/unistr/u16-strstr-tests: New file.
9765         * modules/unistr/u32-strstr-tests: New file.
9766         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
9767         * tests/unistr/test-u8-strstr.c: New file.
9768         * tests/unistr/test-u16-strstr.c: New file.
9769         * tests/unistr/test-u32-strstr.c: New file.
9770
9771 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9772             Bruno Haible  <bruno@clisp.org>
9773
9774         Make uN_strstr functions O(n) worst-case.
9775         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
9776         16-bit and 32-bit unit cases, use the unibyte algorithm from
9777         lib/mbsstr.c.
9778         * lib/unistr/u8-strstr.c: Include <string.h>.
9779         (UNIT_IS_UINT8_T): New macro.
9780         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
9781         (U_STRLEN, U_STRNLEN): New macros.
9782         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
9783         (U_STRLEN, U_STRNLEN): New macros.
9784         * modules/unistr/u8-strstr (Depends-on): Add strstr.
9785         (configure.ac): Update required libunistring version.
9786         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
9787         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
9788         malloca.
9789         (configure.ac): Update required libunistring version.
9790         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
9791         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
9792         malloca.
9793         (configure.ac): Update required libunistring version.
9794
9795 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9796             Bruno Haible  <bruno@clisp.org>
9797
9798         Prepare for faster uN_strstr functions.
9799         * lib/str-kmp.h: Support definable UNITs.
9800         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
9801         needle_len argument.
9802         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
9803         * lib/mbscasestr.c (mbscasestr): Likewise.
9804
9805 2011-01-21  Pádraig Brady <P@draigBrady.com>
9806
9807         malloca-tests: make faster by unsetting MALLOC_PERTURB_
9808         * tests/test-malloca.c (main): Unset the environment variable
9809         to greatly speed up the test.
9810         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
9811         * modules/malloca-tests: Depend on unsetenv.
9812
9813 2011-01-21  Pádraig Brady <P@draigBrady.com>
9814
9815         ignore-value: remove stdint dependency
9816         * lib/ignore-value.h: Remove <stdint.h>
9817         * modules/ignore-value: Remove stdint dependency.
9818
9819 2011-01-21  Jim Meyering  <meyering@redhat.com>
9820
9821         maint.mk: adjust variable name to be consistent with other gl_ vars
9822         * top/maint.mk (gl_public_submodule_commit): Rename the variable
9823         to be lower case.
9824
9825 2011-01-20  Jim Meyering  <meyering@redhat.com>
9826
9827         maint.mk: make "check" depend on public-submodule-commit by default
9828         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
9829
9830 2011-01-20  Bruno Haible  <bruno@clisp.org>
9831
9832         mbfile, mbiter: Complete change from 2008-12-21.
9833         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
9834         * m4/mbiter.m4 (gl_MBITER): Likewise.
9835
9836 2011-01-20  Jim Meyering  <meyering@redhat.com>
9837
9838         init.sh: insert space between each function name and "()"
9839         * tests/init.sh: Make it a little easier to see that a function's
9840         name is "warn_", and not "warn" when looking at the first part of
9841         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
9842
9843 2011-01-20  Jim Meyering  <meyering@redhat.com>
9844
9845         mountlist: clean up code formatting
9846         * lib/mountlist.c (read_file_system_list): Split a long line,
9847         correct bracing style, use NULL in place of "(struct statfs *)0",
9848         don't parenthesize return value, add spaces around "=" and after
9849         ";-in-for-stmt".
9850
9851 2011-01-14  Markus Duft <mduft@gentoo.org>
9852
9853         mountlist: add support for Interix
9854         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
9855         Apply statvfs to all entries of /dev/fs.
9856         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
9857         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
9858
9859 2011-01-20  Jim Meyering  <meyering@redhat.com>
9860
9861         maint.mk: improve the public-submodule-commit rule
9862         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
9863         to suppress printing of its commands... unless V=1.
9864         Add git submodule's --quiet option to suppress printing of e.g.,
9865         "Entering gnulib" output.
9866         "cd" into $(srcdir) before running git submodule.
9867
9868 2011-01-20  Bruno Haible  <bruno@clisp.org>
9869
9870         include_next: Fix bug introduced on 2011-01-18.
9871         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
9872         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
9873         ac_cv_header_... variable if the second argument is not 'check'.
9874         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
9875         gl_NEXT_HEADERS_INTERNAL.
9876
9877 2011-01-20  Bruno Haible  <bruno@clisp.org>
9878
9879         Allow the user to avoid the GNULIB_TEST_* macros.
9880         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
9881         Suggested by Paul Eggert.
9882
9883 2011-01-14  Jim Meyering  <meyering@redhat.com>
9884
9885         bootstrap: avoid failure when there is no .gitmodules file
9886         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
9887         has been assigned to, even when its value is the empty string.
9888         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
9889         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
9890         Reported by John W. Eaton <jwe@gnu.org>.
9891
9892 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
9893
9894         assume <ctype.h>, ..., <time.h> exist
9895         For years gnulib has been assuming the existence of the headers
9896         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
9897         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
9898         them, since they don't appear to be needed.
9899         * README (Portability guidelines): Document this.
9900         * lib/flock.c: Assume <fcntl.h> exists.
9901         * lib/regex_internal.h: Assume <locale.h> exists.
9902         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
9903         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
9904         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
9905         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
9906         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
9907         * m4/regex.m4 (gl_REGEX): Likewise.
9908         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
9909         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
9910         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
9911         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
9912         * tests/test-argp.c: Likewise.
9913         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
9914
9915         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
9916         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
9917         AA_APPLE_UNIVERSAL_BUILD.  See
9918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
9919         * NEWS: Document this.
9920
9921 2011-01-19  Eric Blake  <eblake@redhat.com>
9922
9923         c-stack: assume stack overflow if SA_SIGINFO unsupported
9924         * lib/c-stack.c (SIGACTION_WORKS): Rename...
9925         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
9926         sigaction will work.
9927         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
9928         behavior match Linux.
9929         * tests/test-c-stack.c (main): Prefer NULL for pointers.
9930
9931         stdbool-tests: accomodate Haiku
9932         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
9933
9934         binary-io: fix O_TEXT on Haiku
9935         * modules/binary-io (Depends-on): Add fcntl-h.
9936         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
9937         than blindly undefining O_TEXT.
9938         Reported by Scott McCreary.
9939
9940 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9941
9942         include_next: do not check for standard headers like stddef.h
9943
9944         I found this problem when modifying Emacs to use gnulib.
9945         I noticed that it added HAVE_STDDEF_H to config.h, even though
9946         gnulib always assumes <stddef.h> exists as per README and this
9947         symbol is unnecessary.
9948         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
9949         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
9950         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
9951         faster for headers like stddef.h that are known to exist.
9952         (gl_CHECK_NEXT_HEADERS): Use it.
9953         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
9954         rather than gl_CHECK_NEXT_HEADERS.
9955         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
9956         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
9957
9958 2011-01-18  Eric Blake  <eblake@redhat.com>
9959
9960         ansi-c++-opt: skip C++ dependency style if C++ is unused
9961         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
9962         tests when we know C++ compilation is not desired.
9963         Reported by Scott McCreary.
9964
9965 2011-01-18  Bruno Haible  <bruno@clisp.org>
9966
9967         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
9968         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
9969         (main): Perform test also when getrlimit and setrlimit don't exist or
9970         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
9971         limiting the address space size using setrlimit, compare the address
9972         space size before and after the the test.
9973         * tests/test-dprintf-posix2.c: Likewise.
9974         * tests/test-fprintf-posix3.sh: Update skip messages.
9975         * tests/test-dprintf-posix2.sh: Likewise.
9976         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
9977         * modules/dprintf-posix-tests (Depends-on): Likewise.
9978         Reported by Bruce Korb <bkorb@gnu.org> and
9979         Gary V. Vaughan <gary@gnu.org>.
9980
9981 2011-01-18  Bruno Haible  <bruno@clisp.org>
9982
9983         get-rusage-as: Improvement for Cygwin.
9984         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
9985         areas that are merely reserved.
9986
9987 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9988
9989         strftime: remove dependencies on multibyte modules
9990
9991         strftime depended on mbrlen, mbsinit, and wchar, but these modules
9992         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
9993         only if __osf__ is defined, and I suspect OSF doesn't need these
9994         other modules.  If my guess is wrong, we'll need to come up with a
9995         variant of strftime that doesn't need the multibyte modules.
9996
9997         I discovered this problem when attempting modify Emacs to use the
9998         strftime module.  With the previous gnulib, this caused Emacs to
9999         need 31 new files, ranging from lib/config.charset to
10000         m4/wint_t.m4.  This was overkill and I expect would be offputting
10001         to the Emacs maintainers.  After this change, only 6 new files are
10002         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
10003         stdbool.m4, and tm_gmtoff.m4.
10004
10005         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
10006         Suggested by Bruno Haible in
10007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
10008         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
10009         and do not check for wchar.h.
10010         * modules/strftime (Files): Remove m4/mbstate_t.m4.
10011         (Depends-on): Remove mbrlen, mbsinit, wchar.
10012
10013 2011-01-18  Bruno Haible  <bruno@clisp.org>
10014
10015         Tests for module 'get-rusage-as'.
10016         * modules/get-rusage-as-tests: New file.
10017         * tests/test-get-rusage-as.c: New file.
10018
10019         New module 'get-rusage-as'.
10020         * modules/get-rusage-as: New file.
10021         * lib/resource-ext.h: New file.
10022         * lib/get-rusage-as.c: New file.
10023
10024 2011-01-17  Eric Blake  <eblake@redhat.com>
10025
10026         sigaction: relax license from LGPLv3+ to LGPLv2+
10027         * modules/sigaction (License): Relax to LGPLv2+.
10028
10029 2011-01-14  Bruno Haible  <bruno@clisp.org>
10030
10031         filemode: Make function declarations usable in C++ mode.
10032         * lib/filemode.h: Enclose function declarations in extern "C" block.
10033         Reported by John W. Eaton <jwe@gnu.org>.
10034
10035 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
10036
10037         save-cwd: no longer include "xgetcwd.h"
10038         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
10039         This avoids a compilation failure in projects that use save-cwd
10040         without also using the xgetcwd module.
10041
10042 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10043
10044         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
10045         This is so that a program like Emacs, which needs only dtoastr,
10046         does not have to bother with distributing and compiling ftoastr
10047         and ldtoastr.
10048         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
10049         * modules/dtoastr, modules/ldtoastr: New files.
10050         * modules/ftoastr: Now works just for 'float'.
10051         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
10052         (Makefile.am): Remove ftoastr.h (not needed and no effect),
10053         dtoastr.c, ldtoastr.c.
10054
10055 2011-01-11  Jim Meyering  <meyering@redhat.com>
10056
10057         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
10058         There is no need to work around the lack of the fchdir function,
10059         since gnulib can now provide a replacement when required.
10060         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
10061         * modules/save-cwd (Depends-on): Add fchdir.
10062
10063 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10064
10065         openat, save-cwd: avoid xmalloc
10066
10067         This removes a direct (but undocumented) dependency of openat on
10068         xalloc, along with an indirect dependency via save-cwd.  It also
10069         removes a dependency of save-cwd on xgetcwd, and thereby
10070         indirectly on xalloc.  This change causes the openat substitute
10071         to fall back on save_cwd when memory is tight, and for save_cwd to
10072         fail instead of dying when memory is tight, but that's good enough.
10073         Problem and initial idea for fix reported by Bastien Roucaries in
10074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
10075
10076         * lib/openat-proc.c: Include stdlib.h (for malloc), not
10077         xalloc.h (for xmalloc).
10078         (openat_proc_name): Use malloc, not xmalloc.
10079         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
10080         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
10081
10082         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
10083         This avoids heap allocation for file names whose lengths are in
10084         the range 512..1023, with the upper bound increasing to at most
10085         4031 depending on the platform's PATH_MAX.  (We do not want
10086         pathmax.h here as it might supply a non-constant PATH_MAX.)
10087         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
10088         Perhaps they should be moved to malloca.h?
10089         (OPENAT_BUFFER_SIZE): Use them.
10090
10091 2011-01-10  Bruno Haible  <bruno@clisp.org>
10092
10093         doc: Update users.txt.
10094         * users.txt: Add recutils.
10095
10096 2011-01-09  Karl Berry  <karl@gnu.org>
10097
10098         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
10099
10100         * doc/configmake.texi: New file.
10101         * doc/gnulib.texi: Include it.
10102         * modules/configmake: Move documentation from here.
10103
10104 2011-01-09  Bruno Haible  <bruno@clisp.org>
10105
10106         Update to Unicode 6.0.0.
10107         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
10108         (get_lbp): Update for Unicode 6.0.0.
10109         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
10110         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
10111         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
10112         U+11001, U+11038..U+11046. Remove U+06DE.
10113         (uc_width): Fix bounds of planes.
10114         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10115         lib/uniwidth/width.c.
10116         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
10117         trailing whitespace removed.
10118         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
10119         without comments, but with the original copyright notice.
10120         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
10121         * lib/unicase/ignorable.h: Likewise.
10122         * lib/unicase/tocasefold.h: Likewise.
10123         * lib/unicase/tolower.h: Likewise.
10124         * lib/unicase/totitle.h: Likewise.
10125         * lib/unicase/toupper.h: Likewise.
10126         * lib/unictype/bidi_of.h: Likewise.
10127         * lib/unictype/blocks.h: Likewise.
10128         * lib/unictype/categ_C.h: Likewise.
10129         * lib/unictype/categ_Cn.h: Likewise.
10130         * lib/unictype/categ_L.h: Likewise.
10131         * lib/unictype/categ_Ll.h: Likewise.
10132         * lib/unictype/categ_Lm.h: Likewise.
10133         * lib/unictype/categ_Lo.h: Likewise.
10134         * lib/unictype/categ_Lu.h: Likewise.
10135         * lib/unictype/categ_M.h: Likewise.
10136         * lib/unictype/categ_Mc.h: Likewise.
10137         * lib/unictype/categ_Me.h: Likewise.
10138         * lib/unictype/categ_Mn.h: Likewise.
10139         * lib/unictype/categ_N.h: Likewise.
10140         * lib/unictype/categ_Nd.h: Likewise.
10141         * lib/unictype/categ_No.h: Likewise.
10142         * lib/unictype/categ_P.h: Likewise.
10143         * lib/unictype/categ_Po.h: Likewise.
10144         * lib/unictype/categ_S.h: Likewise.
10145         * lib/unictype/categ_Sc.h: Likewise.
10146         * lib/unictype/categ_Sk.h: Likewise.
10147         * lib/unictype/categ_Sm.h: Likewise.
10148         * lib/unictype/categ_So.h: Likewise.
10149         * lib/unictype/categ_of.h: Likewise.
10150         * lib/unictype/combining.h: Likewise.
10151         * lib/unictype/ctype_alnum.h: Likewise.
10152         * lib/unictype/ctype_alpha.h: Likewise.
10153         * lib/unictype/ctype_graph.h: Likewise.
10154         * lib/unictype/ctype_lower.h: Likewise.
10155         * lib/unictype/ctype_print.h: Likewise.
10156         * lib/unictype/ctype_punct.h: Likewise.
10157         * lib/unictype/ctype_upper.h: Likewise.
10158         * lib/unictype/decdigit.h: Likewise.
10159         * lib/unictype/digit.h: Likewise.
10160         * lib/unictype/numeric.h: Likewise.
10161         * lib/unictype/pr_alphabetic.h: Likewise.
10162         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10163         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10164         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10165         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10166         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10167         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10168         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10169         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10170         * lib/unictype/pr_case_ignorable.h: Likewise.
10171         * lib/unictype/pr_cased.h: Likewise.
10172         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
10173         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
10174         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
10175         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
10176         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
10177         * lib/unictype/pr_combining.h: Likewise.
10178         * lib/unictype/pr_composite.h: Likewise.
10179         * lib/unictype/pr_currency_symbol.h: Likewise.
10180         * lib/unictype/pr_decimal_digit.h: Likewise.
10181         * lib/unictype/pr_deprecated.h: Likewise.
10182         * lib/unictype/pr_format_control.h: Likewise.
10183         * lib/unictype/pr_grapheme_base.h: Likewise.
10184         * lib/unictype/pr_grapheme_extend.h: Likewise.
10185         * lib/unictype/pr_grapheme_link.h: Likewise.
10186         * lib/unictype/pr_id_continue.h: Likewise.
10187         * lib/unictype/pr_id_start.h: Likewise.
10188         * lib/unictype/pr_ideographic.h: Likewise.
10189         * lib/unictype/pr_lowercase.h: Likewise.
10190         * lib/unictype/pr_math.h: Likewise.
10191         * lib/unictype/pr_numeric.h: Likewise.
10192         * lib/unictype/pr_other_alphabetic.h: Likewise.
10193         * lib/unictype/pr_other_id_continue.h: Likewise.
10194         * lib/unictype/pr_other_math.h: Likewise.
10195         * lib/unictype/pr_punctuation.h: Likewise.
10196         * lib/unictype/pr_sentence_terminal.h: Likewise.
10197         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10198         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10199         * lib/unictype/pr_unified_ideograph.h: Likewise.
10200         * lib/unictype/pr_uppercase.h: Likewise.
10201         * lib/unictype/pr_xid_continue.h: Likewise.
10202         * lib/unictype/pr_xid_start.h: Likewise.
10203         * lib/unictype/scripts.h: Likewise.
10204         * lib/unictype/scripts_byname.gperf: Likewise.
10205         * lib/unictype/sy_java_ident.h: Likewise.
10206         * lib/unigbrk/gbrkprop.h: Likewise.
10207         * lib/unilbrk/lbrkprop1.h: Likewise.
10208         * lib/unilbrk/lbrkprop2.h: Likewise.
10209         * lib/uninorm/decomposition-table2.h: Likewise.
10210         * lib/uniwbrk/wbrkprop.h: Likewise.
10211         * tests/unicase/test-cased.c: Likewise.
10212         * tests/unicase/test-ignorable.c: Likewise.
10213         * tests/unicase/test-uc_tolower.c: Likewise.
10214         * tests/unicase/test-uc_totitle.c: Likewise.
10215         * tests/unicase/test-uc_toupper.c: Likewise.
10216         * tests/unictype/test-categ_C.c: Likewise.
10217         * tests/unictype/test-categ_Cn.c: Likewise.
10218         * tests/unictype/test-categ_L.c: Likewise.
10219         * tests/unictype/test-categ_Ll.c: Likewise.
10220         * tests/unictype/test-categ_Lm.c: Likewise.
10221         * tests/unictype/test-categ_Lo.c: Likewise.
10222         * tests/unictype/test-categ_Lu.c: Likewise.
10223         * tests/unictype/test-categ_M.c: Likewise.
10224         * tests/unictype/test-categ_Mc.c: Likewise.
10225         * tests/unictype/test-categ_Me.c: Likewise.
10226         * tests/unictype/test-categ_Mn.c: Likewise.
10227         * tests/unictype/test-categ_N.c: Likewise.
10228         * tests/unictype/test-categ_Nd.c: Likewise.
10229         * tests/unictype/test-categ_No.c: Likewise.
10230         * tests/unictype/test-categ_P.c: Likewise.
10231         * tests/unictype/test-categ_Po.c: Likewise.
10232         * tests/unictype/test-categ_S.c: Likewise.
10233         * tests/unictype/test-categ_Sc.c: Likewise.
10234         * tests/unictype/test-categ_Sk.c: Likewise.
10235         * tests/unictype/test-categ_Sm.c: Likewise.
10236         * tests/unictype/test-categ_So.c: Likewise.
10237         * tests/unictype/test-ctype_alnum.c: Likewise.
10238         * tests/unictype/test-ctype_alpha.c: Likewise.
10239         * tests/unictype/test-ctype_graph.c: Likewise.
10240         * tests/unictype/test-ctype_lower.c: Likewise.
10241         * tests/unictype/test-ctype_print.c: Likewise.
10242         * tests/unictype/test-ctype_punct.c: Likewise.
10243         * tests/unictype/test-ctype_upper.c: Likewise.
10244         * tests/unictype/test-decdigit.h: Likewise.
10245         * tests/unictype/test-digit.h: Likewise.
10246         * tests/unictype/test-numeric.h: Likewise.
10247         * tests/unictype/test-pr_alphabetic.c: Likewise.
10248         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10249         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
10250         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
10251         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10252         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10253         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10254         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10255         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10256         * tests/unictype/test-pr_case_ignorable.c: Likewise.
10257         * tests/unictype/test-pr_cased.c: Likewise.
10258         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
10259         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
10260         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
10261         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
10262         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
10263         * tests/unictype/test-pr_combining.c: Likewise.
10264         * tests/unictype/test-pr_composite.c: Likewise.
10265         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10266         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10267         * tests/unictype/test-pr_deprecated.c: Likewise.
10268         * tests/unictype/test-pr_format_control.c: Likewise.
10269         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10270         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10271         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10272         * tests/unictype/test-pr_id_continue.c: Likewise.
10273         * tests/unictype/test-pr_id_start.c: Likewise.
10274         * tests/unictype/test-pr_ideographic.c: Likewise.
10275         * tests/unictype/test-pr_lowercase.c: Likewise.
10276         * tests/unictype/test-pr_math.c: Likewise.
10277         * tests/unictype/test-pr_numeric.c: Likewise.
10278         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10279         * tests/unictype/test-pr_other_id_continue.c: Likewise.
10280         * tests/unictype/test-pr_other_math.c: Likewise.
10281         * tests/unictype/test-pr_punctuation.c: Likewise.
10282         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10283         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10284         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10285         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10286         * tests/unictype/test-pr_uppercase.c: Likewise.
10287         * tests/unictype/test-pr_xid_continue.c: Likewise.
10288         * tests/unictype/test-pr_xid_start.c: Likewise.
10289         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10290         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10291         changes.
10292         * lib/unictype/categ_Cc.h: Likewise.
10293         * lib/unictype/categ_Cf.h: Likewise.
10294         * lib/unictype/categ_Co.h: Likewise.
10295         * lib/unictype/categ_Cs.h: Likewise.
10296         * lib/unictype/categ_Lt.h: Likewise.
10297         * lib/unictype/categ_Nl.h: Likewise.
10298         * lib/unictype/categ_Pc.h: Likewise.
10299         * lib/unictype/categ_Pd.h: Likewise.
10300         * lib/unictype/categ_Pe.h: Likewise.
10301         * lib/unictype/categ_Pf.h: Likewise.
10302         * lib/unictype/categ_Pi.h: Likewise.
10303         * lib/unictype/categ_Ps.h: Likewise.
10304         * lib/unictype/categ_Z.h: Likewise.
10305         * lib/unictype/categ_Zl.h: Likewise.
10306         * lib/unictype/categ_Zp.h: Likewise.
10307         * lib/unictype/categ_Zs.h: Likewise.
10308         * lib/unictype/ctype_blank.h: Likewise.
10309         * lib/unictype/ctype_cntrl.h: Likewise.
10310         * lib/unictype/ctype_digit.h: Likewise.
10311         * lib/unictype/ctype_space.h: Likewise.
10312         * lib/unictype/ctype_xdigit.h: Likewise.
10313         * lib/unictype/mirror.h: Likewise.
10314         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10315         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10316         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10317         * lib/unictype/pr_bidi_control.h: Likewise.
10318         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10319         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10320         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10321         * lib/unictype/pr_bidi_pdf.h: Likewise.
10322         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10323         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10324         * lib/unictype/pr_dash.h: Likewise.
10325         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10326         * lib/unictype/pr_diacritic.h: Likewise.
10327         * lib/unictype/pr_extender.h: Likewise.
10328         * lib/unictype/pr_hex_digit.h: Likewise.
10329         * lib/unictype/pr_hyphen.h: Likewise.
10330         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10331         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10332         * lib/unictype/pr_ignorable_control.h: Likewise.
10333         * lib/unictype/pr_iso_control.h: Likewise.
10334         * lib/unictype/pr_join_control.h: Likewise.
10335         * lib/unictype/pr_left_of_pair.h: Likewise.
10336         * lib/unictype/pr_line_separator.h: Likewise.
10337         * lib/unictype/pr_logical_order_exception.h: Likewise.
10338         * lib/unictype/pr_non_break.h: Likewise.
10339         * lib/unictype/pr_not_a_character.h: Likewise.
10340         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10341         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10342         * lib/unictype/pr_other_id_start.h: Likewise.
10343         * lib/unictype/pr_other_lowercase.h: Likewise.
10344         * lib/unictype/pr_other_uppercase.h: Likewise.
10345         * lib/unictype/pr_paired_punctuation.h: Likewise.
10346         * lib/unictype/pr_paragraph_separator.h: Likewise.
10347         * lib/unictype/pr_pattern_syntax.h: Likewise.
10348         * lib/unictype/pr_pattern_white_space.h: Likewise.
10349         * lib/unictype/pr_private_use.h: Likewise.
10350         * lib/unictype/pr_quotation_mark.h: Likewise.
10351         * lib/unictype/pr_radical.h: Likewise.
10352         * lib/unictype/pr_soft_dotted.h: Likewise.
10353         * lib/unictype/pr_space.h: Likewise.
10354         * lib/unictype/pr_titlecase.h: Likewise.
10355         * lib/unictype/pr_variation_selector.h: Likewise.
10356         * lib/unictype/pr_white_space.h: Likewise.
10357         * lib/unictype/pr_zero_width.h: Likewise.
10358         * lib/unictype/sy_c_ident.h: Likewise.
10359         * lib/unictype/sy_c_whitespace.h: Likewise.
10360         * lib/unictype/sy_java_whitespace.h: Likewise.
10361         * lib/uninorm/composition-table.gperf: Likewise.
10362         * lib/uninorm/decomposition-table1.h: Likewise.
10363         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10364         LB8.
10365         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10366         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10367         * modules/unictype/*: Bump version number of expected libunistring
10368         version.
10369
10370 2011-01-09  Bruno Haible  <bruno@clisp.org>
10371
10372         Update to Unicode 5.2.0.
10373         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10374         trailing whitespace removed.
10375
10376 2011-01-09  Bruno Haible  <bruno@clisp.org>
10377
10378         New Unicode character properties, from Unicode 5.2.0.
10379         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10380         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10381         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10382         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10383         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10384         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10385         uc_is_property_cased, uc_is_property_case_ignorable,
10386         uc_is_property_changes_when_lowercased,
10387         uc_is_property_changes_when_uppercased,
10388         uc_is_property_changes_when_titlecased,
10389         uc_is_property_changes_when_casefolded,
10390         uc_is_property_changes_when_casemapped): New declarations.
10391         * lib/unictype/pr_byname.gperf: Add the new properties.
10392         * modules/unictype/property-byname (Depends-on): Depend on the new
10393         properties modules.
10394         * modules/unictype/property-all (Depends-on): Likewise.
10395         * MODULES.html.sh (Unicode string functions): Add
10396         unictype/property-case-ignorable, unictype/property-cased,
10397         unictype/property-changes-when-casefolded,
10398         unictype/property-changes-when-casemapped,
10399         unictype/property-changes-when-lowercased,
10400         unictype/property-changes-when-titlecased,
10401         unictype/property-changes-when-uppercased.
10402
10403         New module 'unictype/property-changes-when-casemapped'.
10404         * modules/unictype/property-changes-when-casemapped: New file.
10405         * lib/unictype/pr_changes_when_casemapped.c: New file.
10406         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10407         generated by gen-uni-tables.
10408         * modules/unictype/property-changes-when-casemapped-tests: New file.
10409         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10410         automatically generated by gen-uni-tables.
10411
10412         New module 'unictype/property-changes-when-casefolded'.
10413         * modules/unictype/property-changes-when-casefolded: New file.
10414         * lib/unictype/pr_changes_when_casefolded.c: New file.
10415         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10416         generated by gen-uni-tables.
10417         * modules/unictype/property-changes-when-casefolded-tests: New file.
10418         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10419         automatically generated by gen-uni-tables.
10420
10421         New module 'unictype/property-changes-when-titlecased'.
10422         * modules/unictype/property-changes-when-titlecased: New file.
10423         * lib/unictype/pr_changes_when_titlecased.c: New file.
10424         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10425         generated by gen-uni-tables.
10426         * modules/unictype/property-changes-when-titlecased-tests: New file.
10427         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10428         automatically generated by gen-uni-tables.
10429
10430         New module 'unictype/property-changes-when-uppercased'.
10431         * modules/unictype/property-changes-when-uppercased: New file.
10432         * lib/unictype/pr_changes_when_uppercased.c: New file.
10433         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10434         generated by gen-uni-tables.
10435         * modules/unictype/property-changes-when-uppercased-tests: New file.
10436         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10437         automatically generated by gen-uni-tables.
10438
10439         New module 'unictype/property-changes-when-lowercased'.
10440         * modules/unictype/property-changes-when-lowercased: New file.
10441         * lib/unictype/pr_changes_when_lowercased.c: New file.
10442         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10443         generated by gen-uni-tables.
10444         * modules/unictype/property-changes-when-lowercased-tests: New file.
10445         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10446         automatically generated by gen-uni-tables.
10447
10448         New module 'unictype/property-case-ignorable'.
10449         * modules/unictype/property-case-ignorable: New file.
10450         * lib/unictype/pr_case_ignorable.c: New file.
10451         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10452         by gen-uni-tables.
10453         * modules/unictype/property-case-ignorable-tests: New file.
10454         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10455         generated by gen-uni-tables.
10456
10457         New module 'unictype/property-cased'.
10458         * modules/unictype/property-cased: New file.
10459         * lib/unictype/pr_cased.c: New file.
10460         * lib/unictype/pr_cased.h: New file, automatically generated by
10461         gen-uni-tables.
10462         * modules/unictype/property-cased-tests: New file.
10463         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10464         gen-uni-tables.
10465
10466 2011-01-09  Bruno Haible  <bruno@clisp.org>
10467
10468         Update to Unicode 5.2.0.
10469         * lib/gen-uni-tables.c (output_predicate, output_category,
10470         output_combclass, output_bidi_category, output_decimal_digit_test,
10471         output_decimal_digit, output_digit_test, output_digit,
10472         output_numeric_test, output_numeric, output_mirror, output_scripts,
10473         output_scripts_byname, output_blocks, output_ident_category): Fix
10474         comment header.
10475         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10476         get_wbp.
10477         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10478         items.
10479         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10480         Changes_When_Lowercased, Changes_When_Uppercased,
10481         Changes_When_Titlecased, Changes_When_Casefolded,
10482         Changes_When_Casemapped.
10483         (is_property_alphabetic, is_property_default_ignorable_code_point):
10484         Update for Unicode 5.2.0.
10485         (is_property_cased, is_property_case_ignorable,
10486         is_property_changes_when_lowercased,
10487         is_property_changes_when_uppercased,
10488         is_property_changes_when_titlecased,
10489         is_property_changes_when_casefolded,
10490         is_property_changes_when_casemapped): New functions.
10491         (output_properties): Output also the properties cased, case_ignorable,
10492         changes_when_lowercased, changes_when_uppercased,
10493         changes_when_titlecased, changes_when_casefolded,
10494         changes_when_casemapped.
10495         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10496         Unicode TR#11 revision 17 -> 19.
10497         (LBP_CP): New enumeration value.
10498         (LBP_*): Adjust values accordingly.
10499         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10500         TR#14 revision 22 -> 24.
10501         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10502         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10503         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10504         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10505         is_WBP_MIDLETTER.
10506         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10507         the code1 and code2 of each composition rule.
10508         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10509         * lib/unicase/ignorable.h: Likewise.
10510         * lib/unicase/tocasefold.h: Likewise.
10511         * lib/unicase/tolower.h: Likewise.
10512         * lib/unicase/totitle.h: Likewise.
10513         * lib/unicase/toupper.h: Likewise.
10514         * lib/unictype/bidi_of.h: Likewise.
10515         * lib/unictype/blocks.h: Likewise.
10516         * lib/unictype/categ_C.h: Likewise.
10517         * lib/unictype/categ_Cf.h: Likewise.
10518         * lib/unictype/categ_Cn.h: Likewise.
10519         * lib/unictype/categ_L.h: Likewise.
10520         * lib/unictype/categ_Ll.h: Likewise.
10521         * lib/unictype/categ_Lm.h: Likewise.
10522         * lib/unictype/categ_Lo.h: Likewise.
10523         * lib/unictype/categ_Lu.h: Likewise.
10524         * lib/unictype/categ_M.h: Likewise.
10525         * lib/unictype/categ_Mc.h: Likewise.
10526         * lib/unictype/categ_Mn.h: Likewise.
10527         * lib/unictype/categ_N.h: Likewise.
10528         * lib/unictype/categ_Nd.h: Likewise.
10529         * lib/unictype/categ_Nl.h: Likewise.
10530         * lib/unictype/categ_No.h: Likewise.
10531         * lib/unictype/categ_P.h: Likewise.
10532         * lib/unictype/categ_Pd.h: Likewise.
10533         * lib/unictype/categ_Po.h: Likewise.
10534         * lib/unictype/categ_S.h: Likewise.
10535         * lib/unictype/categ_Sc.h: Likewise.
10536         * lib/unictype/categ_So.h: Likewise.
10537         * lib/unictype/categ_of.h: Likewise.
10538         * lib/unictype/combining.h: Likewise.
10539         * lib/unictype/ctype_alnum.h: Likewise.
10540         * lib/unictype/ctype_alpha.h: Likewise.
10541         * lib/unictype/ctype_graph.h: Likewise.
10542         * lib/unictype/ctype_lower.h: Likewise.
10543         * lib/unictype/ctype_print.h: Likewise.
10544         * lib/unictype/ctype_punct.h: Likewise.
10545         * lib/unictype/ctype_upper.h: Likewise.
10546         * lib/unictype/decdigit.h: Likewise.
10547         * lib/unictype/digit.h: Likewise.
10548         * lib/unictype/numeric.h: Likewise.
10549         * lib/unictype/pr_alphabetic.h: Likewise.
10550         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10551         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10552         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10553         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10554         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10555         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10556         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10557         * lib/unictype/pr_combining.h: Likewise.
10558         * lib/unictype/pr_composite.h: Likewise.
10559         * lib/unictype/pr_currency_symbol.h: Likewise.
10560         * lib/unictype/pr_dash.h: Likewise.
10561         * lib/unictype/pr_decimal_digit.h: Likewise.
10562         * lib/unictype/pr_deprecated.h: Likewise.
10563         * lib/unictype/pr_diacritic.h: Likewise.
10564         * lib/unictype/pr_extender.h: Likewise.
10565         * lib/unictype/pr_grapheme_base.h: Likewise.
10566         * lib/unictype/pr_grapheme_extend.h: Likewise.
10567         * lib/unictype/pr_grapheme_link.h: Likewise.
10568         * lib/unictype/pr_id_continue.h: Likewise.
10569         * lib/unictype/pr_id_start.h: Likewise.
10570         * lib/unictype/pr_ideographic.h: Likewise.
10571         * lib/unictype/pr_ignorable_control.h: Likewise.
10572         * lib/unictype/pr_logical_order_exception.h: Likewise.
10573         * lib/unictype/pr_lowercase.h: Likewise.
10574         * lib/unictype/pr_numeric.h: Likewise.
10575         * lib/unictype/pr_other_alphabetic.h: Likewise.
10576         * lib/unictype/pr_punctuation.h: Likewise.
10577         * lib/unictype/pr_sentence_terminal.h: Likewise.
10578         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10579         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10580         * lib/unictype/pr_unified_ideograph.h: Likewise.
10581         * lib/unictype/pr_uppercase.h: Likewise.
10582         * lib/unictype/pr_xid_continue.h: Likewise.
10583         * lib/unictype/pr_xid_start.h: Likewise.
10584         * lib/unictype/pr_zero_width.h: Likewise.
10585         * lib/unictype/scripts.h: Likewise.
10586         * lib/unictype/scripts_byname.gperf: Likewise.
10587         * lib/unictype/sy_java_ident.h: Likewise.
10588         * lib/unigbrk/gbrkprop.h: Likewise.
10589         * lib/unilbrk/lbrkprop1.h: Likewise.
10590         * lib/unilbrk/lbrkprop2.h: Likewise.
10591         * lib/unilbrk/lbrktables.h: Likewise.
10592         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
10593         LBP_CP. Implement rule LB30.
10594         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
10595         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
10596         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
10597         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
10598         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
10599         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
10600         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
10601         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
10602         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
10603         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
10604         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
10605         bits instead of 16 bits in the code1 and code2 of each composition
10606         rule.
10607         (uc_composition): Update for Unicode 5.2.0.
10608         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
10609         * lib/uninorm/decomposition-table2.h: Likewise.
10610         * lib/uniwbrk/wbrkprop.h: Likewise.
10611         * tests/unicase/test-cased.c: Likewise.
10612         * tests/unicase/test-ignorable.c: Likewise.
10613         * tests/unicase/test-uc_tolower.c: Likewise.
10614         * tests/unicase/test-uc_totitle.c: Likewise.
10615         * tests/unicase/test-uc_toupper.c: Likewise.
10616         * tests/unictype/test-categ_C.c: Likewise.
10617         * tests/unictype/test-categ_Cf.c: Likewise.
10618         * tests/unictype/test-categ_Cn.c: Likewise.
10619         * tests/unictype/test-categ_L.c: Likewise.
10620         * tests/unictype/test-categ_Ll.c: Likewise.
10621         * tests/unictype/test-categ_Lm.c: Likewise.
10622         * tests/unictype/test-categ_Lo.c: Likewise.
10623         * tests/unictype/test-categ_Lu.c: Likewise.
10624         * tests/unictype/test-categ_M.c: Likewise.
10625         * tests/unictype/test-categ_Mc.c: Likewise.
10626         * tests/unictype/test-categ_Mn.c: Likewise.
10627         * tests/unictype/test-categ_N.c: Likewise.
10628         * tests/unictype/test-categ_Nd.c: Likewise.
10629         * tests/unictype/test-categ_Nl.c: Likewise.
10630         * tests/unictype/test-categ_No.c: Likewise.
10631         * tests/unictype/test-categ_P.c: Likewise.
10632         * tests/unictype/test-categ_Pd.c: Likewise.
10633         * tests/unictype/test-categ_Po.c: Likewise.
10634         * tests/unictype/test-categ_S.c: Likewise.
10635         * tests/unictype/test-categ_Sc.c: Likewise.
10636         * tests/unictype/test-categ_So.c: Likewise.
10637         * tests/unictype/test-ctype_alnum.c: Likewise.
10638         * tests/unictype/test-ctype_alpha.c: Likewise.
10639         * tests/unictype/test-ctype_graph.c: Likewise.
10640         * tests/unictype/test-ctype_lower.c: Likewise.
10641         * tests/unictype/test-ctype_print.c: Likewise.
10642         * tests/unictype/test-ctype_punct.c: Likewise.
10643         * tests/unictype/test-ctype_upper.c: Likewise.
10644         * tests/unictype/test-decdigit.h: Likewise.
10645         * tests/unictype/test-digit.h: Likewise.
10646         * tests/unictype/test-numeric.h: Likewise.
10647         * tests/unictype/test-pr_alphabetic.c: Likewise.
10648         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10649         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10650         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10651         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10652         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10653         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10654         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10655         * tests/unictype/test-pr_combining.c: Likewise.
10656         * tests/unictype/test-pr_composite.c: Likewise.
10657         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10658         * tests/unictype/test-pr_dash.c: Likewise.
10659         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10660         * tests/unictype/test-pr_deprecated.c: Likewise.
10661         * tests/unictype/test-pr_diacritic.c: Likewise.
10662         * tests/unictype/test-pr_extender.c: Likewise.
10663         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10664         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10665         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10666         * tests/unictype/test-pr_id_continue.c: Likewise.
10667         * tests/unictype/test-pr_id_start.c: Likewise.
10668         * tests/unictype/test-pr_ideographic.c: Likewise.
10669         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10670         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10671         * tests/unictype/test-pr_lowercase.c: Likewise.
10672         * tests/unictype/test-pr_numeric.c: Likewise.
10673         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10674         * tests/unictype/test-pr_punctuation.c: Likewise.
10675         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10676         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10677         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10678         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10679         * tests/unictype/test-pr_uppercase.c: Likewise.
10680         * tests/unictype/test-pr_xid_continue.c: Likewise.
10681         * tests/unictype/test-pr_xid_start.c: Likewise.
10682         * tests/unictype/test-pr_zero_width.c: Likewise.
10683         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10684         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10685         changed behaviour: line breaking is now disallowed between a letter
10686         or '=' and '('.
10687         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10688         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10689         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10690         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10691         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10692         lib/uniwidth/width.c.
10693         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
10694         without comments, but with the original copyright notice.
10695         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10696         changes.
10697         * lib/unictype/categ_Cc.h: Likewise.
10698         * lib/unictype/categ_Co.h: Likewise.
10699         * lib/unictype/categ_Cs.h: Likewise.
10700         * lib/unictype/categ_Lt.h: Likewise.
10701         * lib/unictype/categ_Me.h: Likewise.
10702         * lib/unictype/categ_Pc.h: Likewise.
10703         * lib/unictype/categ_Pe.h: Likewise.
10704         * lib/unictype/categ_Pf.h: Likewise.
10705         * lib/unictype/categ_Pi.h: Likewise.
10706         * lib/unictype/categ_Ps.h: Likewise.
10707         * lib/unictype/categ_Sk.h: Likewise.
10708         * lib/unictype/categ_Sm.h: Likewise.
10709         * lib/unictype/categ_Z.h: Likewise.
10710         * lib/unictype/categ_Zl.h: Likewise.
10711         * lib/unictype/categ_Zp.h: Likewise.
10712         * lib/unictype/categ_Zs.h: Likewise.
10713         * lib/unictype/ctype_blank.h: Likewise.
10714         * lib/unictype/ctype_cntrl.h: Likewise.
10715         * lib/unictype/ctype_digit.h: Likewise.
10716         * lib/unictype/ctype_space.h: Likewise.
10717         * lib/unictype/ctype_xdigit.h: Likewise.
10718         * lib/unictype/mirror.h: Likewise.
10719         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10720         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10721         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10722         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10723         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10724         * lib/unictype/pr_bidi_control.h: Likewise.
10725         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10726         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10727         * lib/unictype/pr_bidi_pdf.h: Likewise.
10728         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10729         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10730         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10731         * lib/unictype/pr_format_control.h: Likewise.
10732         * lib/unictype/pr_hex_digit.h: Likewise.
10733         * lib/unictype/pr_hyphen.h: Likewise.
10734         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10735         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10736         * lib/unictype/pr_iso_control.h: Likewise.
10737         * lib/unictype/pr_join_control.h: Likewise.
10738         * lib/unictype/pr_left_of_pair.h: Likewise.
10739         * lib/unictype/pr_line_separator.h: Likewise.
10740         * lib/unictype/pr_math.h: Likewise.
10741         * lib/unictype/pr_non_break.h: Likewise.
10742         * lib/unictype/pr_not_a_character.h: Likewise.
10743         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10744         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10745         * lib/unictype/pr_other_id_continue.h: Likewise.
10746         * lib/unictype/pr_other_id_start.h: Likewise.
10747         * lib/unictype/pr_other_lowercase.h: Likewise.
10748         * lib/unictype/pr_other_math.h: Likewise.
10749         * lib/unictype/pr_other_uppercase.h: Likewise.
10750         * lib/unictype/pr_paired_punctuation.h: Likewise.
10751         * lib/unictype/pr_paragraph_separator.h: Likewise.
10752         * lib/unictype/pr_pattern_syntax.h: Likewise.
10753         * lib/unictype/pr_pattern_white_space.h: Likewise.
10754         * lib/unictype/pr_private_use.h: Likewise.
10755         * lib/unictype/pr_quotation_mark.h: Likewise.
10756         * lib/unictype/pr_radical.h: Likewise.
10757         * lib/unictype/pr_soft_dotted.h: Likewise.
10758         * lib/unictype/pr_space.h: Likewise.
10759         * lib/unictype/pr_titlecase.h: Likewise.
10760         * lib/unictype/pr_variation_selector.h: Likewise.
10761         * lib/unictype/pr_white_space.h: Likewise.
10762         * lib/unictype/sy_c_ident.h: Likewise.
10763         * lib/unictype/sy_c_whitespace.h: Likewise.
10764         * lib/unictype/sy_java_whitespace.h: Likewise.
10765         * modules/uni*/*: Bump version number of expected libunistring version.
10766         Reported by Simon Josefsson.
10767
10768 2011-01-09  Karl Heuer  <kwzh@gnu.org>
10769
10770         useless-if-before-free: fix typo in --help and make the internal,
10771         automatic version date update process work once again.
10772         --help output contained a NUL character instead of the
10773         backslash-zero that was intended.  Also, the "must lie within
10774         the first 8 lines" line is on line 9, and hence not getting
10775         automatically updated.
10776         * build-aux/useless-if-before-free: Fix the former by adding a
10777         backslash, and the latter by condensing the three lines of what-it-does
10778         to a single line, leaving one line of slack for the future.
10779
10780 2011-01-09  Bruno Haible  <bruno@clisp.org>
10781
10782         uniwidth/width: Fix width of U+1D173..U+1D17A.
10783         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
10784         symbolic_width, output_width_property_test): New functions.
10785         (main): Invoke output_nonspacing_property, output_width_property_test.
10786         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
10787         U+1D173..U+1D17A.
10788         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
10789         1.
10790         * modules/uniwidth/*: Bump version number of expected libunistring
10791         version.
10792         * modules/unilbrk/*: Likewise.
10793
10794 2011-01-08  Bruno Haible  <bruno@clisp.org>
10795
10796         uninorm tests: Preserve copyright of Unicode data file.
10797         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
10798         Mention modifications.
10799
10800 2011-01-08  Bruno Haible  <bruno@clisp.org>
10801
10802         gen-uni-tables: Prepare for Unicode 5.2.0.
10803         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
10804         (debug_output_lbp, output_lbp): Update.
10805
10806 2011-01-08  Bruno Haible  <bruno@clisp.org>
10807
10808         unilbrk: Clarify gen-uni-tables.c code.
10809         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
10810         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
10811         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
10812
10813 2011-01-07  Bruno Haible  <bruno@clisp.org>
10814
10815         strtod: Restore errno when successfully parsing Infinity or NaN.
10816         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
10817         restore the original errno.
10818
10819 2011-01-07  Bruno Haible  <bruno@clisp.org>
10820
10821         remove test: Avoid failure on HP-UX 11.
10822         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
10823
10824 2011-01-07  Bruno Haible  <bruno@clisp.org>
10825
10826         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
10827         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
10828         error code.
10829
10830 2011-01-07  Pádraig Brady <P@draigBrady.com>
10831
10832         ignore-value: fixup comments, and add Eric Blake
10833         as an author since he rewrote the macros.
10834         * lib/ignore-value.h (ignore_value):  State that
10835         we now support aggregates.  Also specify exactly
10836         when the GCC warn_unused_result feature was added.
10837
10838 2011-01-06  Eric Blake  <eblake@redhat.com>
10839
10840         ignore-value: support aggregate types
10841         * lib/ignore-value.h (ignore_value): Provide separate gcc
10842         definition.
10843         * modules/ignore-value-tests: New test module.
10844         * tests/test-ignore-value.c: New test.
10845
10846         maint.mk: improve sc_prohibit_strcmp regex
10847         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
10848         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
10849         definition of STRNEQ.
10850
10851         signal: work around Haiku issue with SIGBUS
10852         * lib/siglist.h: Add comment.
10853         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
10854         strsignal's favoring of SIGSEGV.
10855         * tests/test-signal.c (main): Avoid test failure.
10856         * doc/posix-headers/signal.texi (signal.h): Document the issue.
10857         Reported by Scott McCreary.
10858
10859         maint.mk: add pre-release check to ensure submodule commits are public
10860         * top/maint.mk (public-submodule-commit): New rule.
10861         (submodule-checks): New variable.
10862         (alpha beta stable): Depend on the variable.
10863
10864 2011-01-05  Pádraig Brady <P@draigBrady.com>
10865         and Jim Meyering  <meyering@redhat.com>
10866
10867         ignore-value: make ignore_value more generic; deprecate ignore_ptr
10868         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
10869         (ATTRIBUTE_DEPRECATED): Define.
10870         (_ignore_case): New function.
10871         (ignore_value): New macro, to replace the old function.
10872         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
10873         * modules/ignore-value (Depends-on): Add stdint.
10874
10875 2011-01-04  Eric Blake  <eblake@redhat.com>
10876
10877         doc: regenerate INSTALL
10878         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
10879         @firstparagraphindent support, now that autoconf dropped it.
10880         (INSTALL_PRELUDE): Reinstate old macro.
10881         * doc/install.texi: Resync from autoconf.
10882         * doc/INSTALL: Reflect recent autoconf update.
10883         * doc/INSTALL.ISO: Likewise.
10884         * doc/INSTALL.UTF-8: Likewise.
10885         Reported by Karl Berry.
10886
10887 2011-01-04  Bruce Korb  <address@hidden>
10888
10889         git-version-gen: avoid a sub-shell
10890         * build-aux/git-version-gen: Redirect stderr in `...` via
10891         "exec 2>...", rather than via an added sub-shell.
10892
10893 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
10894
10895         git-version-gen: use (...) rather than sh -c '...'
10896         * build-aux/git-version-gen: Rather than hard-coding a shell's name
10897         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
10898
10899 2011-01-03  Jim Meyering  <meyering@redhat.com>
10900
10901         git-version-gen: convert leading TABs to spaces
10902         * build-aux/git-version-gen: Expand leading TABs.
10903
10904         git-version-gen: handle failed "git rev-list"
10905         * build-aux/git-version-gen: Rather than leaking a "fatal" error
10906         from git and proceeding as if it had succeeded but printed no SHA1
10907         checksums, suppress the diagnostic and handle the failure.
10908         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
10909
10910         git-version-gen: include command name in one more diagnostic
10911         * build-aux/git-version-gen: When the required .tarball-version file
10912         was missing or unreadable, you might see the diagnostic from "cat",
10913         but no trace of the name of the invoking script.  Now, you still see
10914         the diagnostic from cat, but also get one from "git-version-gen: ".
10915         Inspired by a patch from Bruce Korb.
10916
10917         update-copyright: adjust test to match changed code
10918         * tests/test-update-copyright.sh: Change test's expected output
10919         to match new actual output.
10920
10921 2011-01-02  Bruno Haible  <bruno@clisp.org>
10922
10923         getlogin_r: Avoid test failure on HP-UX 11.
10924         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
10925         ERANGE when the second argument is zero.
10926         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
10927         portability problem.
10928
10929 2011-01-02  Bruce Korb  <bkorb@gnu.org>
10930
10931         * build-aux/update-copyright: doc Simon's changes
10932
10933 2011-01-02  Simon Josefsson  <simon@josefsson.org>
10934
10935         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
10936         environment variable.
10937
10938 2011-01-02  Bruno Haible  <bruno@clisp.org>
10939
10940         unigbrk: Avoid gcc warnings.
10941         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
10942         unused variable.
10943         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
10944         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
10945         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
10946         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
10947         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
10948         Change type of first argument to 'const char *'.
10949         (main): Remove unused variable.
10950         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
10951         type of first argument to 'const char *'.
10952         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
10953         Likewise.
10954         (main): Change type of variable 's'.
10955         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
10956         to 'int'.
10957
10958 2011-01-02  Bruno Haible  <bruno@clisp.org>
10959
10960         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
10961         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
10962         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
10963         bug.
10964         * lib/pwrite.c: Undo 2010-12-31 patch.
10965         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
10966
10967 2011-01-02  Bruno Haible  <bruno@clisp.org>
10968
10969         pread: Fix test whether it works.
10970         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
10971
10972 2011-01-02  Bruno Haible  <bruno@clisp.org>
10973
10974         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
10975         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
10976         ends in "6". Don't require a specific month name. Try also the locale
10977         names found on HP-UX 11 and Solaris 7.
10978
10979 2011-01-02  Bruno Haible  <bruno@clisp.org>
10980
10981         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
10982         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
10983         C linkage.
10984         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
10985
10986 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10987
10988         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
10989         for consistency, since the "cluster" term is not used elsewhere.
10990         * lib/unigbrk.in.h: Update name.
10991         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
10992         * lib/unigbrk/u16-grapheme-next.c: Update name.
10993         * lib/unigbrk/u16-grapheme-prev.c: Update name.
10994         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
10995         * lib/unigbrk/u32-grapheme-next.c: Update name.
10996         * lib/unigbrk/u32-grapheme-prev.c: Update name.
10997         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
10998         * lib/unigbrk/u8-grapheme-next.c: Update name.
10999         * lib/unigbrk/u8-grapheme-prev.c: Update name.
11000         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
11001         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
11002         Suggested by Bruno Haible.
11003
11004 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11005
11006         Remove module 'u8-grapheme-len' as too redundant with
11007         'u8-grapheme-next'.
11008         * modules/unigbrk/u8-grapheme-len: Delete file.
11009         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
11010         * lib/unigbrk.in.h: Remove prototype for deleted function.
11011         * lib/unigbrk/u8-grapheme-len.c: Delete file.
11012         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
11013
11014         Remove module 'u16-grapheme-len' as too redundant with
11015         'u16-grapheme-next'.
11016         * modules/unigbrk/u16-grapheme-len: Delete file.
11017         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
11018         * lib/unigbrk.in.h: Remove prototype for deleted function.
11019         * lib/unigbrk/u16-grapheme-len.c: Delete file.
11020         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
11021
11022         Remove module 'u32-grapheme-len' as too redundant with
11023         'u32-grapheme-next'.
11024         * modules/unigbrk/u32-grapheme-len: Delete file.
11025         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
11026         * lib/unigbrk.in.h: Remove prototype for deleted function.
11027         * lib/unigbrk/u32-grapheme-len.c: Delete file.
11028         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
11029
11030         Suggested by Bruno Haible.
11031
11032 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11033
11034         * unigbrk.in.h: Fix typo: "ben" => "been".
11035         Reported by Bruno Haible.
11036
11037 2011-01-01  Jim Meyering  <meyering@redhat.com>
11038
11039         maint: update almost all copyright ranges to include 2011
11040         Run the new "make update-copyright" rule.
11041
11042 2011-01-01  Jim Meyering  <meyering@redhat.com>
11043
11044         maint: update-copyright: exempt doc/INSTALL*
11045         * Makefile (update-copyright): Also exclude doc/INSTALL*,
11046         since they are generated.  Suggested by Bruno Haible.
11047
11048 2011-01-01  Jim Meyering  <meyering@redhat.com>
11049
11050         maint: refine the update-copyright rule
11051         * Makefile (update-copyright): Also exclude any file that includes
11052         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
11053         code that merely generates the comment.
11054
11055 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11056
11057         New module 'u8-grapheme-len'.
11058         * modules/unigbrk/u8-grapheme-len: New file.
11059         * modules/unigbrk/u8-grapheme-len-tests: New file.
11060         * lib/unigbrk.in.h: Add prototype for new function.
11061         * lib/unigbrk/u8-grapheme-len.c: New file.
11062         * tests/unigbrk/test-u8-grapheme-len.c: New file.
11063
11064         New module 'u16-grapheme-len'.
11065         * modules/unigbrk/u16-grapheme-len: New file.
11066         * modules/unigbrk/u16-grapheme-len-tests: New file.
11067         * lib/unigbrk.in.h: Add prototype for new function.
11068         * lib/unigbrk/u16-grapheme-len.c: New file.
11069         * tests/unigbrk/test-u16-grapheme-len.c: New file.
11070
11071         New module 'u32-grapheme-len'.
11072         * modules/unigbrk/u32-grapheme-len: New file.
11073         * modules/unigbrk/u32-grapheme-len-tests: New file.
11074         * lib/unigbrk.in.h: Add prototype for new function.
11075         * lib/unigbrk/u32-grapheme-len.c: New file.
11076         * tests/unigbrk/test-u32-grapheme-len.c: New file.
11077
11078         New module 'u8-grapheme-next'.
11079         * modules/unigbrk/u8-grapheme-next: New file.
11080         * modules/unigbrk/u8-grapheme-next-tests: New file.
11081         * lib/unigbrk.in.h: Add prototype for new function.
11082         * lib/unigbrk/u8-grapheme-next.c: New file.
11083         * tests/unigbrk/test-u8-grapheme-next.c: New file.
11084
11085         New module 'u16-grapheme-next'.
11086         * modules/unigbrk/u16-grapheme-next: New file.
11087         * modules/unigbrk/u16-grapheme-next-tests: New file.
11088         * lib/unigbrk.in.h: Add prototype for new function.
11089         * lib/unigbrk/u16-grapheme-next.c: New file.
11090         * tests/unigbrk/test-u16-grapheme-next.c: New file.
11091
11092         New module 'u32-grapheme-next'.
11093         * modules/unigbrk/u32-grapheme-next: New file.
11094         * modules/unigbrk/u32-grapheme-next-tests: New file.
11095         * lib/unigbrk.in.h: Add prototype for new function.
11096         * lib/unigbrk/u32-grapheme-next.c: New file.
11097         * tests/unigbrk/test-u32-grapheme-next.c: New file.
11098
11099         New module 'u8-grapheme-prev'.
11100         * modules/unigbrk/u8-grapheme-prev: New file.
11101         * modules/unigbrk/u8-grapheme-prev-tests: New file.
11102         * lib/unigbrk.in.h: Add prototype for new function.
11103         * lib/unigbrk/u8-grapheme-prev.c: New file.
11104         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
11105
11106         New module 'u16-grapheme-prev'.
11107         * modules/unigbrk/u16-grapheme-prev: New file.
11108         * modules/unigbrk/u16-grapheme-prev-tests: New file.
11109         * lib/unigbrk.in.h: Add prototype for new function.
11110         * lib/unigbrk/u16-grapheme-prev.c: New file.
11111         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
11112
11113         New module 'u32-grapheme-prev'.
11114         * modules/unigbrk/u32-grapheme-prev: New file.
11115         * modules/unigbrk/u32-grapheme-prev-tests: New file.
11116         * lib/unigbrk.in.h: Add prototype for new function.
11117         * lib/unigbrk/u32-grapheme-prev.c: New file.
11118         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
11119
11120         New module 'u8-grapheme-breaks'.
11121         * modules/unigbrk/u8-grapheme-breaks: New file.
11122         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
11123         * lib/unigbrk.in.h: Add prototype for new function.
11124         * lib/unigbrk/u8-grapheme-breaks.c: New file.
11125         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
11126
11127         New module 'u16-grapheme-breaks'.
11128         * modules/unigbrk/u16-grapheme-breaks: New file.
11129         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
11130         * lib/unigbrk.in.h: Add prototype for new function.
11131         * lib/unigbrk/u16-grapheme-breaks.c: New file.
11132         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
11133
11134         New module 'u32-grapheme-breaks'.
11135         * modules/unigbrk/u32-grapheme-breaks: New file.
11136         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
11137         * lib/unigbrk.in.h: Add prototype for new function.
11138         * lib/unigbrk/u32-grapheme-breaks.c: New file.
11139         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
11140
11141         New module 'ulc-grapheme-breaks'.
11142         * modules/unigbrk/ulc-grapheme-breaks: New file.
11143         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
11144         * m4/locale-ar.m4: New file.
11145         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
11146         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
11147         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
11148
11149 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11150
11151         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
11152         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
11153         modified how this file was generated before I initially submitted
11154         the module, but failed to regenerate it.  This meant that several
11155         of the level2 entries were wrong.
11156         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
11157         Remove the division-by-2 that is folded into the table now that
11158         gbrkprop.h has been regenerated properly.  Now -1 entries are
11159         handled correctly.
11160
11161         New module 'unigbrk/uc-gbrk-prop-tests'.
11162         * modules/unigbrk/uc-gbrk-prop-tests: New file.
11163         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
11164         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
11165         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
11166
11167 2011-01-01  Bruno Haible  <bruno@clisp.org>
11168
11169         Avoid use of hexadecimal escapes.
11170         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
11171         instead of hexadecimal escapes.
11172
11173 2011-01-01  Jim Meyering  <meyering@redhat.com>
11174
11175         maint: new rule to update copyright year ranges
11176         * Makefile (update-copyright): New rule.
11177
11178         maint: indent with TABs in Makefile
11179         * Makefile: Expand leading sequences of spaces to TABs
11180
11181         version-etc: update the copyright year it reports
11182         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
11183
11184 2010-12-31  Bruno Haible  <bruno@clisp.org>
11185
11186         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
11187         * lib/isfinite.c (zerof, zerod, zerol): New variables.
11188         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
11189         zero.
11190
11191 2010-12-31  Bruno Haible  <bruno@clisp.org>
11192
11193         pwrite: Work around HP-UX 11.11 bug.
11194         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
11195         works and set REPLACE_PWRITE if not.
11196         * lib/pwrite.c (pwrite): Add an implementation that uses the system
11197         function.
11198         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
11199
11200 2010-12-31  Bruno Haible  <bruno@clisp.org>
11201
11202         pread: Work around HP-UX 11 bugs.
11203         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
11204         and set REPLACE_PREAD if not.
11205         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
11206
11207 2010-12-31  Eric Blake  <eblake@redhat.com>
11208
11209         nl_langinfo: fix YESEXPR on Irix 6.5
11210         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
11211         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
11212         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
11213         it.
11214
11215 2010-12-31  Bruno Haible  <bruno@clisp.org>
11216
11217         iconv: Document HP-UX 11 bug.
11218         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
11219
11220 2010-12-31  Bruno Haible  <bruno@clisp.org>
11221
11222         ldexpl: Fix link error on HP-UX 11.
11223         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
11224         LDEXPL_LIBM, using $ISNANL_LIBM.
11225
11226 2010-12-31  Eric Blake  <eblake@redhat.com>
11227
11228         ftello: avoid compilation failure with SunStudio c89
11229         * lib/ftello.c (ftello): Use lseek, not llseek.
11230
11231         tests: avoid failing coreutils tests on cygwin
11232         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
11233         (create_exe_shims_): Return 0 when skipping.
11234
11235 2010-12-31  Bruno Haible  <bruno@clisp.org>
11236
11237         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
11238         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
11239
11240 2010-12-31  Bruno Haible  <bruno@clisp.org>
11241
11242         waitpid: Fix link error in C++ mode.
11243         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
11244
11245 2010-12-31  Bruno Haible  <bruno@clisp.org>
11246
11247         isnan: Use GCC built-ins when possible.
11248         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
11249         __builtin_isnan.
11250         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
11251         (isnan): Define using GCC built-ins for GCC >= 4.0.
11252
11253 2010-12-31  Bruno Haible  <bruno@clisp.org>
11254
11255         isnand: Fix mistake.
11256         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
11257         __builtin_isnand.
11258
11259 2010-12-31  Bruno Haible  <bruno@clisp.org>
11260
11261         open: Avoid C++ error on HP-UX 11.
11262         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
11263
11264 2010-12-31  Bruno Haible  <bruno@clisp.org>
11265
11266         time_r: Add missing declarations on HP-UX 11.
11267         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
11268         instead of HAVE_LOCALTIME_R.
11269         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
11270         HAVE_LOCALTIME_R always.
11271         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
11272         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
11273         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
11274         HAVE_LOCALTIME_R.
11275         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
11276         * doc/posix-functions/localtime_r.texi: Likewise.
11277
11278 2010-12-29  Eric Blake  <eblake@redhat.com>
11279
11280         mountlist: tweak previous commit
11281         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
11282         Reported by Paul Eggert.
11283
11284         mountlist: fix local drive detection on cygwin
11285         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
11286         that works for cygwin.
11287
11288 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11289
11290         ftoastr, snprintf: ftoastr + snprintf module
11291         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
11292         since the snprintf module now should be good enough here.
11293         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
11294         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
11295         and gl_MODULE_INDICATOR([snprintf]), but the former enables
11296         GNULIB_SNPRINTF only for the test directory, and the latter
11297         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
11298         seems to suffice by itself.
11299
11300 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11301
11302         alloca: one step towards thread-safety
11303         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
11304         need for a static variable.  All callers changed.  This does not
11305         make the alloca replacement thread-safe, but it's one step.
11306
11307         tests: minor indenting change
11308         * tests/init.sh: Sync from coreutils housekeeping patch
11309         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11310         to keep lines within 80 columns.
11311
11312 2010-12-28  Jim Meyering  <meyering@redhat.com>
11313
11314         regex: don't infloop on persistent failing calloc
11315         * lib/regexec.c (build_trtable): Return failure indication upon
11316         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11317         In glibc, this was fixed for version 2.13:
11318         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11319
11320 2010-12-28  Bruno Haible  <bruno@clisp.org>
11321             Paul Eggert <eggert@cs.ucla.edu>
11322
11323         linkat: Make implementation robust against system behaviour variations.
11324         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11325         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11326         way, and to -2 if it needs a generic runtime test.
11327         * lib/linkat.c (solaris_optimized_link_immediate,
11328         solaris_optimized_link_follow): New functions.
11329         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11330         (check_same_link): Use it.
11331
11332 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11333
11334         New module 'unigbrk/base'.
11335         * modules/unigbrk/base: New file.
11336         * lib/unigbrk.in.h: New file.
11337
11338         New module 'unigbrk/uc-gbrk-prop'.
11339         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11340         * modules/unigbrk/uc-gbrk-prop: New file.
11341         * lib/unigbrk/gbrkprop.h: New file.
11342         * lib/unigbrk/uc-gbrk-prop.c: New file.
11343
11344         New module 'unigbrk/uc-is-grapheme-break'.
11345         * modules/unigbrk/uc-is-grapheme-break: New file.
11346         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11347         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11348         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11349         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11350         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11351
11352         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11353
11354 2010-12-27  Bruno Haible  <bruno@clisp.org>
11355
11356         linkat test: Avoid failure on Solaris 11 2010-11.
11357         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11358
11359 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11360
11361         utimens: work around glibc rounding bug on more platforms
11362         * lib/utimens.c (fdutimens): Work around rounding bug even if
11363         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11364         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11365
11366 2010-12-27  Bruno Haible  <bruno@clisp.org>
11367
11368         select tests: Improve comments.
11369         * tests/test-select.c (do_select): Add comments.
11370
11371 2010-12-27  Bruno Haible  <bruno@clisp.org>
11372
11373         select tests: Safer way of handling timeout.
11374         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11375         at every invocation.
11376
11377 2010-12-27  Bruno Haible  <bruno@clisp.org>
11378
11379         select tests: Use 'bool' where appropriate.
11380         * tests/test-select.c (connect_to_socket): Change argument type to
11381         'bool'.
11382
11383 2010-12-27  Bruno Haible  <bruno@clisp.org>
11384
11385         select tests: Use existing modules.
11386         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11387         (configure.ac): Don't test for unistd.h.
11388         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11389         declared in <unistd.h>.
11390
11391 2010-12-27  Bruno Haible  <bruno@clisp.org>
11392
11393         mbrtowc: Work around a Solaris 7 bug.
11394         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11395         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11396         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11397         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11398         MBRTOWC_NULL_ARG1_BUG.
11399         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11400         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11401         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11402         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11403
11404 2010-12-27  Jim Meyering  <meyering@redhat.com>
11405
11406         read-file.c: tweak syntax
11407         * lib/read-file.c (fread_file): Remove space after "*" in function
11408         definitions.
11409
11410 2010-12-27  Bruno Haible  <bruno@clisp.org>
11411
11412         times test: Avoid gcc warnings on OSF/1.
11413         * tests/test-times.c (main): Cast printf arguments from clock_t to
11414         'long int'.
11415
11416 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11417
11418         utimens: work around glibc rounding bug on older Linux kernels
11419         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11420         on Linux with a glibc whose utimes might not work, then work
11421         around a longstanding glibc bug involving rounding rather than
11422         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11423         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11424
11425 2010-12-26  Bruno Haible  <bruno@clisp.org>
11426
11427         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11428         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11429         _GL_CXXALIAS_SYS.
11430         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11431
11432 2010-12-26  Bruno Haible  <bruno@clisp.org>
11433
11434         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11435         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11436         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11437         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11438         looking for the declaration.
11439         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11440         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11441         problem.
11442         * doc/posix-functions/inet_pton.texi: Likewise.
11443
11444 2010-12-26  Bruno Haible  <bruno@clisp.org>
11445
11446         arpa_inet: Use the common idioms with C++ support.
11447         * lib/arpa_inet.in.h: Include c++defs.h.
11448         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11449         support.
11450         * modules/arpa_inet (Depends-on): Add c++defs.
11451         (Makefile.am): Substitute the contents of c++defs.h.
11452         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11453         * modules/arpa_inet-c++-tests: New file.
11454         * tests/test-arpa_inet-c++.cc: New file.
11455
11456 2010-12-25  Bruno Haible  <bruno@clisp.org>
11457
11458         Fix more C++ link errors on Solaris 8.
11459         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11460         $(LIB_EACCESS).
11461         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11462         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11463         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11464         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11465         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11466
11467 2010-12-25  Bruno Haible  <bruno@clisp.org>
11468
11469         printf-posix: Fix link error when a non-GCC compiler is used.
11470         * lib/stdio.in.h (printf): When not using GCC, override printf
11471         correctly.
11472         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11473
11474 2010-12-25  Bruno Haible  <bruno@clisp.org>
11475
11476         strerror_r-posix: Update doc.
11477         * doc/posix-functions/strerror_r.texi: Update doc about the return
11478         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11479
11480 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11481
11482         utimens: simplify the logic of the previous change
11483         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11484         This should not affect whether the test succeeds or fails.
11485
11486         utimens: configure better on hosts with NFS clock skew
11487         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11488         uses the clock of the local host.  It might use the clock of the
11489         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11490         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11491
11492 2010-12-25  Bruno Haible  <bruno@clisp.org>
11493
11494         ptsname test: Avoid failure on Solaris.
11495         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11496         open a pseudo-terminal; don't use BSD-style ptys.
11497         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11498
11499 2010-12-25  Bruno Haible  <bruno@clisp.org>
11500
11501         ptsname: Avoid ERANGE failure on some systems.
11502         * lib/ptsname.c (buffer): Increase size.
11503
11504 2010-12-25  Bruno Haible  <bruno@clisp.org>
11505
11506         rename, renameat: Avoid test failures at NFS mounted locations.
11507         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11508         so that subsequent mkdir calls succeed.
11509
11510 2010-12-25  Bruno Haible  <bruno@clisp.org>
11511
11512         iswblank: Fix C++ link error on Solaris 8.
11513         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11514         _GL_FUNCDECL_SYS.
11515
11516 2010-12-25  Bruno Haible  <bruno@clisp.org>
11517
11518         unistd: Fix C++ link error on Solaris 8.
11519         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11520
11521 2010-12-25  Bruno Haible  <bruno@clisp.org>
11522
11523         readlink doc: Mention an old glibc bug.
11524         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11525
11526 2010-12-25  Bruno Haible  <bruno@clisp.org>
11527
11528         fcntl-h: Fix for use of C++ on glibc systems.
11529         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11530         also on glibc systems in C++ mode.
11531         Reported by Gary V. Vaughan <gary@gnu.org>.
11532
11533 2010-12-25  Bruno Haible  <bruno@clisp.org>
11534
11535         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11536         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
11537
11538 2010-12-25  Bruno Haible  <bruno@clisp.org>
11539
11540         truncl-ieee: Make it work on OSF/1 5.1 with cc.
11541         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
11542         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
11543         test whether truncl works according to ISO C 99 with IEC 60559.
11544         * m4/truncl-ieee.m4: New file.
11545         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
11546         m4/signbit.m4.
11547         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
11548
11549 2010-12-25  Bruno Haible  <bruno@clisp.org>
11550
11551         ceill-ieee: Make it work on OSF/1 5.1 with cc.
11552         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
11553         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
11554         test whether ceill works according to ISO C 99 with IEC 60559.
11555         * m4/ceill-ieee.m4: New file.
11556         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
11557         m4/signbit.m4.
11558         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11559
11560 2010-12-25  Bruno Haible  <bruno@clisp.org>
11561
11562         Ensure all prerequisites of <wchar.h> are included.
11563         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
11564         before <wchar.h>.
11565         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11566         gl_MBRLEN_NUL_RETVAL): Likewise.
11567         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11568         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
11569         AC_FUNC_MBRTOWC): Likewise.
11570         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11571         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11572         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11573         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11574         Likewise.
11575         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11576         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
11577         (gl_WCHAR_H): Improve comments.
11578         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11579
11580 2010-12-25  Bruno Haible  <bruno@clisp.org>
11581
11582         strtok_r: Fix C syntax error in autoconf macro.
11583         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
11584         characters in test program.
11585
11586 2010-12-24  Bruno Haible  <bruno@clisp.org>
11587
11588         ceil, trunc, round: Fix gcc warnings.
11589         * lib/ceil.c (MIN): Undefine before redefining.
11590         * lib/trunc.c (MIN): Likewise.
11591         * lib/round.c (MIN): Likewise.
11592         Include <math.h> first.
11593
11594 2010-12-24  Bruno Haible  <bruno@clisp.org>
11595
11596         select tests: Avoid failures on OSF/1 5.1.
11597         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
11598         failure of closing the last socket; it may fail with ECONNRESET.
11599
11600 2010-12-24  Eric Blake  <eblake@redhat.com>
11601
11602         stdint: avoid HP-UX 10.20 preprocessor bug
11603         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
11604         than #if.
11605         * tests/test-floor2.c (main): Likewise.
11606         Reported by Peter O'Gorman.
11607
11608         pipe: make obsoletion transition easier
11609         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
11610         * modules/pipe (Files): Include revived file.
11611         (Include): Drop reference, to mirror getdate's behavior.
11612
11613 2010-12-24  Bruno Haible  <bruno@clisp.org>
11614
11615         sys_socket: Hide mismatch of declarations on NonStop Kernel.
11616         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
11617         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11618         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11619
11620 2010-12-24  Bruno Haible  <bruno@clisp.org>
11621
11622         gethostname: Ensure declaration on NonStop Kernel.
11623         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11624         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11625
11626 2010-12-24  Bruno Haible  <bruno@clisp.org>
11627
11628         sys_select: Ensure all necessary types on NonStop Kernel.
11629         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11630         include <sys/time.h>.
11631         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11632         NonStop Kernel.
11633         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11634
11635 2010-12-24  Bruno Haible  <bruno@clisp.org>
11636
11637         sys_select: Remove unneeded include.
11638         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11639         have <sys/select.h>.
11640
11641 2010-12-24  Bruno Haible  <bruno@clisp.org>
11642
11643         gethostname: Provide a fallback for HOST_NAME_MAX.
11644         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11645         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11646         instead.
11647         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11648
11649 2010-12-24  Bruno Haible  <bruno@clisp.org>
11650
11651         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11652         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11653         (SA_RESTART): Likewise.
11654         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11655
11656 2010-12-24  Bruno Haible  <bruno@clisp.org>
11657
11658         signal: Define NSIG.
11659         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11660         * tests/test-signal.c (nsig): New variable.
11661         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11662
11663 2010-12-24  Bruno Haible  <bruno@clisp.org>
11664
11665         rename, renameat: Avoid test failures on OSF/1 5.1.
11666         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11667         alternative error codes.
11668         * tests/test-renameat.c (main): Likewise.
11669
11670 2010-12-24  Bruno Haible  <bruno@clisp.org>
11671
11672         *printf: Detect large precisions bug on Solaris 10/SPARC.
11673         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11674         by Paul Eggert.
11675         * tests/test-snprintf-posix.h (test_function): Add this test code here
11676         too.
11677         * tests/test-sprintf-posix.h (test_function): Likewise.
11678         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11679         * tests/test-vasprintf-posix.c (test_function): Likewise.
11680         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11681         around by gnulib.
11682         * doc/posix-functions/printf.texi: Likewise.
11683         * doc/posix-functions/snprintf.texi: Likewise.
11684         * doc/posix-functions/sprintf.texi: Likewise.
11685         * doc/posix-functions/vfprintf.texi: Likewise.
11686         * doc/posix-functions/vprintf.texi: Likewise.
11687         * doc/posix-functions/vsnprintf.texi: Likewise.
11688         * doc/posix-functions/vsprintf.texi: Likewise.
11689         * doc/posix-functions/dprintf.texi: Undo last commit.
11690         * doc/posix-functions/vdprintf.texi: Likewise.
11691
11692 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11693
11694         tests: port test-fdutimensat.c to Solaris 8
11695         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
11696         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
11697         On Solaris 8, it fails with errno == ENOSYS, because there is no
11698         futimens (so it can't use the fd), and there is no lutimens (so it
11699         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
11700
11701         vsnprintf: make more consistent with snprintf; doc fixes
11702
11703         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
11704         the byte count return problem was promoted from the snprintf-posix
11705         to the snprintf module.
11706         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11707         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
11708         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11709         * tests/test-snprintf.c (main): Check the byte count returned.
11710         * tests/test-vsnprintf.c (main): Likewise.
11711
11712 2010-12-23  Eric Blake  <eblake@redhat.com>
11713
11714         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
11715         * modules/sigpipe (License): Relax license.
11716
11717 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11718
11719         doc: document Solaris printf bug with large float precisions
11720         * doc/posix-functions/dprintf.texi (dprintf):
11721         * doc/posix-functions/fprintf.texi (fprintf):
11722         * doc/posix-functions/printf.texi (printf):
11723         * doc/posix-functions/snprintf.texi (snprintf):
11724         * doc/posix-functions/sprintf.texi (sprintf):
11725         * doc/posix-functions/vdprintf.texi (vdprintf):
11726         * doc/posix-functions/vfprintf.texi (vfprintf):
11727         * doc/posix-functions/vprintf.texi (vprintf):
11728         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11729         * doc/posix-functions/vsprintf.texi (vsprintf):
11730         Mention that these functions mishandle large floating point
11731         precisions on Solaris 10.  The same bug is also present in Solaris
11732         8, and I assume earlier.  This causes "cd gnulib-tests; make
11733         check" to fail on Solaris 8 (and I assume, later) when building
11734         the latest coreutils, in test-vasprintf-posix's call to
11735         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
11736         the wide flavors (e.g., wprintf) so this patch just updates the
11737         documentation for the narrow ones.
11738
11739         test-posixtm.c: add two tests
11740         * tests/test-posixtm.c: Add two tests, to highlight the
11741         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
11742         around this bug; this is merely to document it.
11743
11744 2010-12-22  Bruno Haible  <bruno@clisp.org>
11745
11746         getlogin_r: Work around portability problem on OSF/1.
11747         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
11748         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
11749         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
11750         test for a truncated result.
11751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
11752         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
11753         * modules/getlogin_r (Depends-on): Add memchr.
11754         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
11755
11756 2010-12-22  Bruno Haible  <bruno@clisp.org>
11757
11758         ptsname: Avoid test failure on OSF/1 5.1.
11759         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
11760         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
11761         (same_slave): New function.
11762         (main): Use it to compare ptsname's result with the expected file name.
11763
11764 2010-12-22  Bruno Haible  <bruno@clisp.org>
11765
11766         Port extended stdio modules to HP NonStop Kernel.
11767         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
11768         macros.
11769         * lib/fbufmode.c: Update comments.
11770         * lib/fflush.c: Likewise.
11771         * lib/fpurge.c: Likewise.
11772         * lib/freadable.c: Likewise.
11773         * lib/freadahead.c: Likewise.
11774         * lib/freading.c: Likewise.
11775         * lib/freadptr.c: Likewise.
11776         * lib/freadseek.c: Likewise.
11777         * lib/fseeko.c: Likewise.
11778         * lib/fseterr.c: Likewise.
11779         * lib/fwritable.c: Likewise.
11780         * lib/fwriting.c: Likewise.
11781         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11782
11783 2010-12-22  Bruno Haible  <bruno@clisp.org>
11784
11785         ttyname_r: Work around bug on OSF/1 5.1.
11786         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
11787         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
11788         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
11789         present.
11790         * lib/ttyname_r.c (ttyname_r): Update comments.
11791
11792 2010-12-22  Bruno Haible  <bruno@clisp.org>
11793
11794         round: Implement result sign according to IEEE 754.
11795         * lib/round.c (MIN, MINUS_ZERO): New macros.
11796         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
11797         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
11798         * tests/test-round-ieee.c (main): Likewise.
11799         * tests/test-roundl-ieee.c (main): Likewise.
11800
11801         trunc: Implement result sign according to IEEE 754.
11802         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
11803         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
11804         * tests/test-trunc2.c: Include minus-zero.h.
11805         (MINUS_ZERO): New macro.
11806         (trunc_reference): Keep in sync with lib/trunc.c.
11807         * tests/test-truncf2.c: Include minus-zero.h.
11808         (MINUS_ZERO): New macro.
11809         (truncf_reference): Keep in sync with lib/trunc.c.
11810         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
11811         * tests/test-trunc-ieee.c (main): Likewise.
11812         * tests/test-truncl-ieee.c (main): Likewise.
11813
11814         ceil: Implement result sign according to IEEE 754.
11815         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
11816         (FUNC): Return -0.0 for -1 < x < 0.
11817         * tests/test-ceil2.c: Include minus-zero.h.
11818         (MINUS_ZERO): New macro.
11819         (ceil_reference): Keep in sync with lib/ceil.c.
11820         * tests/test-ceilf2.c: Include minus-zero.h.
11821         (MINUS_ZERO): New macro.
11822         (ceilf_reference): Keep in sync with lib/ceil.c.
11823         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
11824         * tests/test-ceil-ieee.c (main): Likewise.
11825         * tests/test-ceill-ieee.c (main): Likewise.
11826
11827         floor: Implement result sign according to IEEE 754.
11828         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
11829         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
11830         * tests/test-floorf2.c (floorf_reference): Likewise.
11831         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
11832         * tests/test-floor-ieee.c (main): Likewise.
11833         * tests/test-floorl-ieee.c (main): Likewise.
11834
11835 2010-12-22  Bruno Haible  <bruno@clisp.org>
11836
11837         getaddrinfo: Update doc.
11838         * doc/posix-functions/gai_strerror.texi: Return type is also different
11839         on AIX and HP-UX.
11840
11841 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11842
11843         getaddrinfo, inet_ntop: Update doc for Solaris.
11844         * doc/posix-functions/gai_strerror.texi: Return type is also an
11845         issue on Solaris 9 and earlier.
11846         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
11847         on Solaris 10 and earlier.
11848
11849 2010-12-21  Bruno Haible  <bruno@clisp.org>
11850
11851         New module 'roundl-ieee'.
11852         * modules/roundl-ieee: New file.
11853         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
11854         test whether roundl works according to ISO C 99 with IEC 60559.
11855         * m4/roundl-ieee.m4: New file.
11856         * modules/roundl-ieee-tests: New file.
11857         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
11858         * tests/test-roundl.c (main): Remove signbit tests.
11859         * modules/roundl-tests (Depends-on): Remove signbit.
11860         * doc/posix-functions/roundl.texi: Mention the new module.
11861
11862 2010-12-21  Bruno Haible  <bruno@clisp.org>
11863
11864         New module 'truncl-ieee'.
11865         * modules/truncl-ieee: New file.
11866         * modules/truncl-ieee-tests: New file.
11867         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
11868         * tests/test-truncl.c (main): Remove signbit tests.
11869         * modules/truncl-tests (Depends-on): Remove signbit.
11870         * doc/posix-functions/truncl.texi: Mention the new module.
11871
11872 2010-12-21  Bruno Haible  <bruno@clisp.org>
11873
11874         New module 'ceill-ieee'.
11875         * modules/ceill-ieee: New file.
11876         * modules/ceill-ieee-tests: New file.
11877         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
11878         * tests/test-ceill.c (main): Remove signbit tests.
11879         * modules/ceill-tests (Depends-on): Remove signbit.
11880         * doc/posix-functions/ceill.texi: Mention the new module.
11881
11882 2010-12-21  Bruno Haible  <bruno@clisp.org>
11883
11884         New module 'floorl-ieee'.
11885         * modules/floorl-ieee: New file.
11886         * modules/floorl-ieee-tests: New file.
11887         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
11888         * tests/test-floorl.c (main): Remove signbit tests.
11889         * modules/floorl-tests (Depends-on): Remove signbit.
11890         * doc/posix-functions/floorl.texi: Mention the new module.
11891
11892 2010-12-21  Bruno Haible  <bruno@clisp.org>
11893
11894         New module 'round-ieee'.
11895         * modules/round-ieee: New file.
11896         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
11897         whether round works according to ISO C 99 with IEC 60559.
11898         * m4/round-ieee.m4: New file.
11899         * modules/round-ieee-tests: New file.
11900         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
11901         * tests/test-round1.c (main): Remove signbit tests.
11902         * modules/round-tests (Depends-on): Remove 'signbit'.
11903         * doc/posix-functions/round.texi: Mention the new module.
11904
11905 2010-12-21  Bruno Haible  <bruno@clisp.org>
11906
11907         New module 'trunc-ieee'.
11908         * modules/trunc-ieee: New file.
11909         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
11910         whether trunc works according to ISO C 99 with IEC 60559.
11911         * m4/trunc-ieee.m4: New file.
11912         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
11913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
11914         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
11915         * modules/trunc-ieee-tests: New file.
11916         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
11917         * tests/test-trunc1.c (main): Remove signbit tests.
11918         * modules/trunc-tests (Depends-on): Remove 'signbit'.
11919         * doc/posix-functions/trunc.texi: Mention the new module.
11920
11921 2010-12-21  Bruno Haible  <bruno@clisp.org>
11922
11923         New module 'ceil-ieee'.
11924         * modules/ceil-ieee: New file.
11925         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
11926         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
11927         ISO C 99 with IEC 60559.
11928         * m4/ceil-ieee.m4: New file.
11929         * modules/ceil (Files): Add lib/ceil.c.
11930         (Depends-on): Add 'float'.
11931         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11932         * lib/math.in.h (ceil): New declaration.
11933         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
11934         REPLACE_CEIL.
11935         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
11936         * modules/ceil-ieee-tests: New file.
11937         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
11938         * tests/test-math-c++.cc: Check the signature of 'ceil'.
11939         * doc/posix-functions/ceil.texi: Mention the new module.
11940
11941 2010-12-21  Bruno Haible  <bruno@clisp.org>
11942
11943         New module 'floor-ieee'.
11944         * modules/floor-ieee: New file.
11945         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
11946         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
11947         ISO C 99 with IEC 60559.
11948         * m4/floor-ieee.m4: New file.
11949         * modules/floor (Files): Add lib/floor.c.
11950         (Depends-on): Add 'float'.
11951         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11952         * lib/math.in.h (floor): New declaration.
11953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
11954         REPLACE_FLOOR.
11955         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
11956         * modules/floor-ieee-tests: New file.
11957         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
11958         * tests/test-math-c++.cc: Check the signature of 'floor'.
11959         * doc/posix-functions/floor.texi: Mention the new module.
11960
11961 2010-12-21  Bruno Haible  <bruno@clisp.org>
11962
11963         New module 'roundf-ieee'.
11964         * modules/roundf-ieee: New file.
11965         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
11966         test whether roundf works according to ISO C 99 with IEC 60559.
11967         * m4/roundf-ieee.m4: New file.
11968         * modules/roundf-ieee-tests: New file.
11969         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
11970         * tests/test-roundf1.c (main): Remove signbit tests.
11971         * modules/roundf-tests (Depends-on): Remove 'signbit'.
11972         * doc/posix-functions/roundf.texi: Mention the new module.
11973
11974 2010-12-21  Bruno Haible  <bruno@clisp.org>
11975
11976         New module 'truncf-ieee'.
11977         * modules/truncf-ieee: New file.
11978         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
11979         test whether truncf works according to ISO C 99 with IEC 60559.
11980         * m4/truncf-ieee.m4: New file.
11981         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
11982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
11983         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
11984         * modules/truncf-ieee-tests: New file.
11985         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
11986         * tests/test-truncf1.c (main): Remove signbit tests.
11987         * modules/truncf-tests (Depends-on): Remove 'signbit'.
11988         * doc/posix-functions/truncf.texi: Mention the new module.
11989
11990 2010-12-21  Bruno Haible  <bruno@clisp.org>
11991
11992         New module 'ceilf-ieee'.
11993         * modules/ceilf-ieee: New file.
11994         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
11995         test whether ceilf works according to ISO C 99 with IEC 60559.
11996         * m4/ceilf-ieee.m4: New file.
11997         * modules/ceilf-ieee-tests: New file.
11998         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
11999         * tests/test-ceilf1.c (main): Remove signbit tests.
12000         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
12001         * doc/posix-functions/ceilf.texi: Mention the new module.
12002
12003 2010-12-21  Bruno Haible  <bruno@clisp.org>
12004
12005         New module 'floorf-ieee'.
12006         * modules/floorf-ieee: New file.
12007         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
12008         test whether floorf works according to ISO C 99 with IEC 60559.
12009         * m4/floorf-ieee.m4: New file.
12010         * modules/floorf-ieee-tests: New file.
12011         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
12012         * tests/test-floorf1.c (main): Remove signbit tests.
12013         * modules/floorf-tests (Depends-on): Remove 'signbit'.
12014         * doc/posix-functions/floorf.texi: Mention the new module.
12015
12016 2010-12-21  Bruno Haible  <bruno@clisp.org>
12017
12018         Support for minus zero in autoconf macros.
12019         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
12020         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
12021         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
12022         * tests/minus-zero.h: Update comments.
12023
12024 2010-12-21  Bruno Haible  <bruno@clisp.org>
12025
12026         Tests for module 'ceil'.
12027         * modules/ceil-tests: New file.
12028         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
12029         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
12030
12031 2010-12-21  Bruno Haible  <bruno@clisp.org>
12032
12033         Tests for module 'floor'.
12034         * modules/floor-tests: New file.
12035         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
12036         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
12037
12038 2010-12-21  Bruno Haible  <bruno@clisp.org>
12039
12040         math: Fix indentation.
12041         * lib/math.in.h (floorf): Fix indentation.
12042
12043 2010-12-21  Bruno Haible  <bruno@clisp.org>
12044
12045         Fix cross-compilation guesses on Solaris.
12046         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
12047         not match "solaris2.10".
12048         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12049         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
12050         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
12051
12052 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
12053
12054         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
12055         This fixes a problem observed with the latest coreutils snapshot
12056         that caused a test to fail on Solaris 8.  src/csplit.c's call
12057         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
12058         earlier, instead of returning the number of bytes that would have
12059         been generated; this causes csplit to incorrectly report memory
12060         exhaustion.
12061         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
12062         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
12063         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
12064         comments to match.
12065         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
12066         Fix typo in matching older versions of Solaris: "solaris2.10"
12067         is matched by the shell pattern "solaris2.[0-9]*".  This matters
12068         only for guessing while cross-compiling.
12069         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
12070
12071 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12072
12073         ftoastr: fix comment again
12074         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12075         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
12076         Also, simplify example a bit by using flags = 0.
12077
12078 2010-12-20  Bruno Haible  <bruno@clisp.org>
12079
12080         round*, trunc*: Update documentation regarding glibc.
12081         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
12082         * doc/posix-functions/round.texi: Likewise.
12083         * doc/posix-functions/roundl.texi: Likewise.
12084         * doc/posix-functions/truncf.texi: Likewise.
12085         * doc/posix-functions/trunc.texi: Likewise.
12086         * doc/posix-functions/truncl.texi: Likewise.
12087
12088 2010-12-20  Bruno Haible  <bruno@clisp.org>
12089
12090         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
12091         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
12092         * doc/posix-functions/round.texi: Likewise.
12093         * doc/posix-functions/roundl.texi: Likewise.
12094
12095 2010-12-20  Bruno Haible  <bruno@clisp.org>
12096
12097         ttyname_r: Add missing declaration on HP-UX 11.
12098         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
12099         HAVE_TTYNAME_R.
12100         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
12101         declared. Set HAVE_TTYNAME_R always.
12102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12103         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
12104         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
12105         HAVE_TTYNAME_R.
12106         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
12107
12108 2010-12-20  Bruno Haible  <bruno@clisp.org>
12109
12110         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
12111         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
12112         * doc/posix-functions/getlogin_r.texi: Likewise.
12113         * tests/test-getlogin.c: Include <errno.h>.
12114         (main): Avoid test failure on HP-UX 11.11.
12115         * tests/test-getlogin_r.c (main): Likewise.
12116
12117 2010-12-20  Bruno Haible  <bruno@clisp.org>
12118
12119         getlogin_r: Add missing declaration on HP-UX 11.
12120         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
12121         declared also when it exists as a function.
12122         * doc/posix-functions/getlogin_r.texi: Document this workaround.
12123
12124 2010-12-20  Bruno Haible  <bruno@clisp.org>
12125
12126         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
12127         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
12128         through wcrtomb.
12129
12130 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12131
12132         ftoastr: fix comment
12133         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12134         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
12135
12136 2010-12-19  Bruno Haible  <bruno@clisp.org>
12137
12138         isnan: Ensure it is a macro.
12139         * lib/math.in.h (isnan): Define as a macro if not already a macro.
12140         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
12141         Solaris.
12142
12143 2010-12-19  Bruno Haible  <bruno@clisp.org>
12144
12145         ldexpl test: Fix link error on OSF/1 5.1.
12146         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
12147
12148 2010-12-19  Bruno Haible  <bruno@clisp.org>
12149
12150         wctype: Make it work in C++ mode on OSF/1 5.1.
12151         * lib/wctype.in.h (iswblank): Declare but not define here.
12152         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
12153         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
12154         * modules/wctype (Files): Add lib/iswblank.c.
12155
12156 2010-12-19  Bruno Haible  <bruno@clisp.org>
12157
12158         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
12159         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
12160         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
12161
12162 2010-12-19  Bruno Haible  <bruno@clisp.org>
12163
12164         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
12165         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
12166         _POSIX_PII_SOCKET.
12167         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
12168         * doc/posix-functions/recvfrom.texi: Likewise.
12169         * doc/posix-functions/send.texi: Likewise.
12170         * doc/posix-functions/sendto.texi: Likewise.
12171
12172 2010-12-19  Bruno Haible  <bruno@clisp.org>
12173
12174         tcgetsid: Add missing declaration on OSF/1 5.1.
12175         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
12176         HAVE_TCGETSID.
12177         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
12178         Don't set HAVE_TCGETSID.
12179         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
12180         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
12181         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
12182         HAVE_TCGETSID.
12183         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
12184
12185 2010-12-19  Bruno Haible  <bruno@clisp.org>
12186
12187         stdio: Fix problem with popen() declaration on OSF/1 5.1.
12188         * lib/stdio.in.h: During the include_next statement, let recursive
12189         includes of this file include only the system header file.
12190
12191 2010-12-19  Bruno Haible  <bruno@clisp.org>
12192
12193         iconv_open: Fix regression from 2010-12-04.
12194         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
12195         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
12196
12197 2010-12-19  Bruno Haible  <bruno@clisp.org>
12198
12199         stdbool test: Avoid a gcc warning.
12200         * tests/test-stdbool.c (main): Fail if e1 is false.
12201         Reported by Jim Meyering.
12202
12203 2010-12-19  Jim Meyering  <meyering@redhat.com>
12204
12205         setenv: restore to working order
12206         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
12207         mistakenly removed.
12208         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
12209         HAVE_SETENV.
12210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
12211         HAVE_SETENV.
12212
12213 2010-12-19  Bruno Haible  <bruno@clisp.org>
12214
12215         Document some different function declarations on OSF/1 5.1.
12216         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
12217         * doc/posix-functions/inet_ntop.texi: Likewise.
12218         * doc/posix-functions/gethostname.texi: Likewise.
12219         * lib/unistd.in.h (gethostname): Update comment.
12220
12221 2010-12-19  Bruno Haible  <bruno@clisp.org>
12222
12223         doc: Mention vasprintf-posix module.
12224         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
12225         the 'vasprintf-posix' module.
12226         * doc/glibc-functions/vasprintf.texi: Likewise.
12227
12228 2010-12-19  Bruno Haible  <bruno@clisp.org>
12229
12230         unsetenv: Add missing declaration on OSF/1 5.1.
12231         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
12232         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
12233         Don't set HAVE_UNSETENV. In the test program, set _BSD.
12234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
12235         not HAVE_UNSETENV.
12236         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
12237         HAVE_UNSETENV.
12238         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
12239
12240 2010-12-19  Bruno Haible  <bruno@clisp.org>
12241
12242         setenv: Add missing declaration on OSF/1 5.1.
12243         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
12244         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
12245         declared. Don't set HAVE_SETENV.
12246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
12247         not HAVE_SETENV.
12248         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
12249         HAVE_SETENV.
12250         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
12251
12252 2010-12-19  Bruno Haible  <bruno@clisp.org>
12253
12254         nl_langinfo tests: Avoid gcc warning.
12255         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
12256
12257 2010-12-19  Bruno Haible  <bruno@clisp.org>
12258
12259         mknod: Avoid error in C++ mode on OSF/1 with GCC.
12260         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
12261         _GL_CXXALIAS_SYS.
12262
12263 2010-12-19  Bruno Haible  <bruno@clisp.org>
12264
12265         stdbool: Relax test.
12266         * tests/test-stdbool.c (e): Don't require that casts from a variable's
12267         address to 'bool' work in static initializer, for compilers other than
12268         GCC.
12269
12270 2010-12-19  Bruno Haible  <bruno@clisp.org>
12271
12272         ftello: Add missing declaration on OSF/1 5.1.
12273         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
12274         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
12275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
12276         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
12277         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
12278
12279 2010-12-19  Bruno Haible  <bruno@clisp.org>
12280
12281         fseeko: Add missing declaration on OSF/1 5.1.
12282         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
12283         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
12284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
12285         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
12286         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
12287
12288 2010-12-19  Bruno Haible  <bruno@clisp.org>
12289
12290         fchdir: Add missing declaration on OSF/1 5.1.
12291         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
12292         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
12293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
12294         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
12295         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
12296
12297 2010-12-19  Bruno Haible  <bruno@clisp.org>
12298
12299         relocatable-prog-wrapper: Separate from relocatable-prog.
12300         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
12301         uninstall-relocwrapper rule here.
12302         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
12303         Reported by Ian Beckwith <ianb@erislabs.net>.
12304
12305 2010-12-19  Bruno Haible  <bruno@clisp.org>
12306
12307         unistr/u8-mbsnlen: Add missing dependency.
12308         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12309         Reported by Ian Beckwith <ianb@erislabs.net>.
12310
12311 2010-12-19  Bruno Haible  <bruno@clisp.org>
12312
12313         iconv: Make it possible again to use this module without 'iconv-h'.
12314         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12315         if it is not defined.
12316         Reported by Ian Beckwith <ianb@erislabs.net>.
12317
12318 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12319
12320         acl: port to Solaris 8 when copying from tmpfs to ufs
12321         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12322         error number.  Problem observed on Solaris 8 with latest
12323         coreutils, with "mv A B", where A is on a tmpfs file system and B
12324         is on a ufs file system.  This caused coreutils' mv/part-symlink
12325         test to fail.
12326
12327         tests: set fail=0 at start
12328         * tests/init.sh (setup_): Move fail=0 initialization here ...
12329         (mktempd_): ... from here, so that tests can rely on fail being
12330         set to 0 initially.  This fixes a problem in coreutils; see:
12331         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12332
12333 2010-12-18  Bruno Haible  <bruno@clisp.org>
12334
12335         memmem-simple: Stylistic changes.
12336         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12337         Fix preprocessor directive indentation.
12338
12339 2010-12-15  Pádraig Brady <P@draigBrady.com>
12340
12341         memmem, memmem-simple: reorganize and expand empty needle check
12342         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12343         functional checks to memmem-simple so that one has a fully functional
12344         memmem by using just this module.
12345         Restrict the performance only check to the memmem module.
12346         Also expand the empty needle check to ensure the correct
12347         pointer is returned, not just a non NULL pointer.
12348         * doc/glibc-functions/memmem.texi: Rearrange the portability
12349         documentation to correlate with the rearranged checks.
12350         Clarify exactly how the memmem and memmem-simple modules
12351         relate to each other.
12352
12353 2010-12-15  Pádraig Brady <P@draigBrady.com>
12354             Bruno Haible  <bruno@clisp.org>
12355
12356         Improve cross-compilation guesses for uClibc.
12357         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12358         that uClibc does not have the glibc bug.
12359         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12360         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12361
12362 2010-12-14  Eric Blake  <eblake@redhat.com>
12363
12364         configmake: provide fallbacks for oldest supported autotools
12365         * m4/configmake.m4: New file.
12366         * modules/configmake (Files): Ship it.
12367         (configure.ac): Use it to guarantee fallbacks.
12368
12369 2010-12-13  Pádraig Brady <P@draigBrady.com>
12370
12371         read-file: Improve handling of large files
12372         * lib/read-file.c (fread_file): Minimize realloc()s
12373         for regular files, and better manage sizes around SIZE_MAX.
12374
12375 2010-12-13  Eric Blake  <eblake@redhat.com>
12376
12377         cloexec, fcntl: relax license
12378         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12379         consent from all contributors.
12380         * modules/fcntl (License): Likewise.
12381
12382 2010-12-10  Bruno Haible  <bruno@clisp.org>
12383
12384         Tests for module 'pipe-posix'.
12385         * modules/pipe-posix-tests: New file.
12386         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12387
12388 2010-12-10  Bruno Haible  <bruno@clisp.org>
12389
12390         pipe-posix: Make it work in C++ mode.
12391         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12392         (pipe): Use common idiom, not a macro definition.
12393         * lib/pipe.c: New file.
12394         * m4/pipe.m4: New file.
12395         * modules/pipe-posix (Description): Enhance.
12396         (Files): Add lib/pipe.c, m4/pipe.m4.
12397         (configure.ac): Invoke gl_FUNC_PIPE.
12398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12399         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12400         * tests/test-unistd-c++.cc: Check the signature of pipe.
12401
12402 2010-12-10  Bruno Haible  <bruno@clisp.org>
12403
12404         Rename module 'pipe' to 'spawn-pipe'.
12405         * modules/spawn-pipe: New file, renamed from modules/pipe.
12406         (Files, configure.ac, Makefile.am): Update.
12407         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12408         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12409         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12410         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12411         "spawn-pipe.h" instead of "pipe.h".
12412         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12413         to gl_SPAWN_PIPE.
12414         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12415         (Files, Makefile.am): Update.
12416         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12417         Update.
12418         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12419         Include "spawn-pipe.h" instead of "pipe.h".
12420         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12421         * lib/javacomp.c: Likewise.
12422         * lib/javaversion.c: Likewise.
12423         * lib/pipe-filter-gi.c: Likewise.
12424         * lib/pipe-filter-ii.c: Likewise.
12425         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12426         * modules/javacomp (Depends-on): Likewise.
12427         * modules/javaversion (Depends-on): Likewise.
12428         * modules/pipe-filter-gi (Depends-on): Likewise.
12429         * modules/pipe-filter-ii (Depends-on): Likewise.
12430         * MODULES.html.sh (Executing programs): Update.
12431         * NEWS: Mention the change.
12432
12433 2010-12-10  Eric Blake  <eblake@redhat.com>
12434
12435         pipe-posix: new module
12436         * modules/pipe-posix: New file.
12437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12438         (gl_UNISTD_H): Check for declaration.
12439         * modules/unistd (Makefile.am): Substitute it.
12440         * lib/unistd.in.h (pipe): Provide it for mingw.
12441         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12442         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12443
12444 2010-12-07  Bruno Haible  <bruno@clisp.org>
12445
12446         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12447         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12448         u8_strcmp_gnu.
12449         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12450
12451 2010-12-06  Bruno Haible  <bruno@clisp.org>
12452
12453         Update internal documentation.
12454         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12455
12456 2010-12-04  Bruno Haible  <bruno@clisp.org>
12457
12458         Put more information about failed tests into the test return codes.
12459         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12460         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12461         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12462         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12463         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12464         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12465         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12466         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12467         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12468         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12469         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12470         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12471         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12472         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12473         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12474         returns a bit mask.
12475         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12476         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12477         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12478         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12479         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12480         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12481         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12482         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12483         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12484         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12485         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12486         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12487         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12488         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12489         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12490         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12491         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12492         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12493         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12494         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12495         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12496         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12497         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12498         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12499         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12500         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12501         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12502         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12503         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12504         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12505         gl_PRINTF_PRECISION): Likewise.
12506         * m4/regex.m4 (gl_REGEX): Likewise.
12507         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12508         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12509         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12510         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12511         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12512         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12513         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12514         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12515         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12516         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12517         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12518         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12519         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12520         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12521         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12522         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12523         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12524         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12525         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12526         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
12527         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
12528         enumerated value.
12529         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
12530
12531 2010-12-04  Bruno Haible  <bruno@clisp.org>
12532
12533         Update for Solaris 11 2010-11.
12534         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
12535         Express, released in November 2010.
12536
12537 2010-12-04  Bruno Haible  <bruno@clisp.org>
12538
12539         nproc: Relax license.
12540         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
12541         and Paul Eggert.
12542         Requested by Ludovic Courtès <ludo@gnu.org>.
12543
12544 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12545
12546         utimecmp: fine-grained src to nearby coarse-grained dest
12547
12548         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
12549         and the source is on a file system with higher-resolution time
12550         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
12551         not work, and the time stamps are close together, the algorithm to
12552         determine the exact resolution from the read-back mtime was buggy:
12553         it had a "!=" where it should have had an "==".  This bug has been
12554         in the code ever since it was introduced to gnulib.
12555         Problem reported by Dan Jacobson in
12556         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
12557
12558 2010-11-30  Bruno Haible  <bruno@clisp.org>
12559
12560         strerror_r-posix: Fix autoconf test.
12561         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
12562
12563 2010-11-28  Bruno Haible  <bruno@clisp.org>
12564             Paul Eggert  <eggert@cs.ucla.edu>
12565
12566         Tests for module 'getdomainname'.
12567         * modules/getdomainname-tests: New file.
12568         * tests/test-getdomainname.c: New file, based on
12569         tests/test-gethostname.c.
12570
12571 2010-11-28  Bruno Haible  <bruno@clisp.org>
12572             Paul Eggert  <eggert@cs.ucla.edu>
12573
12574         getdomainname: Use the system function when possible.
12575         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
12576         (getdomainname): Replace if needed. Provide the declaration if it is
12577         missing. Don't use _GL_CXXALIAS_SYS_CAST.
12578         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
12579         (getdomainname): When the system has getdomainname, call the system
12580         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
12581         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
12582         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
12583         found in libnsl. Look for the declaration also in <netdb.h>. Replace
12584         the function if its second argument is of type 'int' or if it is found
12585         in libnsl.
12586         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
12587         <sys/systeminfo.h> and sysinfo().
12588         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
12589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12590         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
12591         HAVE_GETDOMAINNAME.
12592         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
12593         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
12594         * doc/glibc-functions/getdomainname.texi: Document the problems with
12595         the getdomainname declaration.
12596
12597 2010-11-28  Bruno Haible  <bruno@clisp.org>
12598
12599         sys_socket: Ensure ss_family field on AIX.
12600         * lib/sys_socket.in.h (ss_family): New macro definition.
12601         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
12602         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
12603         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12604         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12605         * modules/sys_socket (Makefile.am): Substitute
12606         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12607         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
12608
12609 2010-11-27  Bruno Haible  <bruno@clisp.org>
12610
12611         readline: Improve configure output.
12612         * m4/readline.m4 (gl_FUNC_READLINE): Make the
12613         "checking for readline..." result understandable.
12614
12615 2010-11-27  Bruno Haible  <bruno@clisp.org>
12616
12617         *printf-posix: Detect a bug on Solaris 10/x86.
12618         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12619         for floating-point output.
12620         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12621         directive.
12622         * tests/test-snprintf-posix.h (test_function): Likewise.
12623         * tests/test-sprintf-posix.h (test_function): Likewise.
12624         * tests/test-vasprintf-posix.c (test_function): Likewise.
12625         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12626         * doc/posix-functions/printf.texi: Likewise.
12627         * doc/posix-functions/snprintf.texi: Likewise.
12628         * doc/posix-functions/sprintf.texi: Likewise.
12629         * doc/posix-functions/vfprintf.texi: Likewise.
12630         * doc/posix-functions/vprintf.texi: Likewise.
12631         * doc/posix-functions/vsnprintf.texi: Likewise.
12632         * doc/posix-functions/vsprintf.texi: Likewise.
12633         * doc/glibc-functions/obstack_printf.texi: Likewise.
12634         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12635
12636 2010-11-27  Bruno Haible  <bruno@clisp.org>
12637
12638         Fix link error when module libunistring-optional is in use.
12639         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12640         * modules/striconveha-tests (Makefile.am): Likewise.
12641
12642 2010-11-27  Bruno Haible  <bruno@clisp.org>
12643
12644         regex: Mention link dependencies.
12645         * modules/regex (Link): New section.
12646         * modules/rpmatch (Link): Likewise.
12647         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12648
12649 2010-11-27  Bruno Haible  <bruno@clisp.org>
12650
12651         ftoastr: Fix compilation error on Solaris.
12652         * lib/ftoastr.c: Include <config.h>.
12653
12654 2010-11-27  Bruno Haible  <bruno@clisp.org>
12655
12656         getloadavg: Update documentation.
12657         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12658
12659 2010-11-27  Bruno Haible  <bruno@clisp.org>
12660
12661         sys_socket: Fix test whether the functions are declared.
12662         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12663         not <sys/select.h>.
12664
12665 2010-11-27  Bruno Haible  <bruno@clisp.org>
12666
12667         getpass: Make sure to get system declaration on some platforms.
12668         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12669         gl_USE_SYSTEM_EXTENSIONS.
12670         * modules/getpass (Depends-on): Add extensions.
12671
12672 2010-11-26  Bruno Haible  <bruno@clisp.org>
12673
12674         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12675         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12676         'iconv' module is present.
12677         (ICONV_CONST): New macro.
12678         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12679         ICONV_CONST.
12680         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12681         set ICONV_CONST.
12682         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12683         here.
12684         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12685         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12686         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12687         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12688         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12689         present.
12690
12691 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12692
12693         ftoastr: comment fix
12694         * lib/ftoastr.c: "little" -> "little or no" in comment
12695
12696 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12697
12698         stdint: port to GCC 4.3 + OSX + Octave
12699         On this platform, stdint.h is buggy and defines int64_t to long
12700         long int.  The replacement defined it to long int, causing
12701         problems with C++ style name mangling.  Instead, trust the system
12702         definition if INT64_MAX is defined, and likewise for the unsigned
12703         variant.   Problem reported by Jarno Rajahalme in
12704         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
12705         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
12706         and don't mess with int64_t and INT64_MAX in this case.
12707         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
12708
12709 2010-11-24  Bruno Haible  <bruno@clisp.org>
12710
12711         doc: Corrections regarding MacOS X 10.4 and 10.5.
12712         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
12713         MacOS X.
12714         Reported by Simon Josefsson.
12715
12716 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
12717
12718         Uninstall ".bin" files installed by relocwrapper.
12719         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
12720         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
12721         unless it is already there.
12722
12723 2010-11-21  Bruno Haible  <bruno@clisp.org>
12724
12725         Update for NetBSD 5.0.
12726         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12727         NetBSD; the test fails on NetBSD 5.0.
12728         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12729         about NetBSD.
12730
12731 2010-11-21  Bruno Haible  <bruno@clisp.org>
12732
12733         Update for HP-UX 11.23 and HP-UX 11.31.
12734         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
12735         HP-UX.
12736
12737 2010-11-21  Bruno Haible  <bruno@clisp.org>
12738
12739         Update for MacOS X 10.5.
12740         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12741         MacOS X; the test fails on MacOS X 10.5.8.
12742         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12743         about MacOS X.
12744
12745 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
12746
12747         bootstrap: add bootstrap_sync option.
12748         See discussion at
12749         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
12750         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
12751         * build-aux/bootstrap: Accept --bootstrap-sync to update
12752         bootstrap if it is not identical to the local gnulib's
12753         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
12754         enable this by default.  Accept --no-bootstrap-sync to disable
12755         it.
12756
12757 2010-11-20  Bruno Haible  <bruno@clisp.org>
12758
12759         Ensure that <features.h> is included before __GLIBC__ is tested.
12760         * lib/printf-parse.h: Include <features.h>.
12761         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
12762         Reported by Mike Frysinger <vapier@gentoo.org>.
12763
12764         Ensure that <features.h> is included before __GLIBC__ is tested.
12765         * lib/wchar.in.h: Include <features.h>.
12766         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
12767         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
12768         Reported by Mike Frysinger <vapier@gentoo.org>.
12769
12770         Ensure that <features.h> is included before __GLIBC__ is tested.
12771         * lib/arpa_inet.in.h: Include <features.h>.
12772         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
12773         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
12774         Reported by Mike Frysinger <vapier@gentoo.org>.
12775
12776         Ensure that <features.h> is included before __GLIBC__ is tested.
12777         * build-aux/link-warning.h: Include <features.h>.
12778         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
12779         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
12780         Reported by Mike Frysinger <vapier@gentoo.org>.
12781
12782         Ensure that <features.h> is included before __GLIBC__ is tested.
12783         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
12784         Reported by Mike Frysinger <vapier@gentoo.org>.
12785
12786 2010-11-20  Bruno Haible  <bruno@clisp.org>
12787
12788         memmem: Fix autoconf test.
12789         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
12790
12791 2010-11-20  Bruno Haible  <bruno@clisp.org>
12792
12793         Port to uClibc.
12794         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
12795         * lib/fcntl.in.h: Likewise.
12796         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
12797         * lib/mbrtowc.c (mbrtowc): Likewise.
12798         * lib/relocatable.c (find_shared_library_fullname): Likewise.
12799         * lib/strerror_r.c: Likewise.
12800         * lib/unistr/u8-strnlen.c: Likewise.
12801         * lib/vasnprintf.c (decimal_point_char): Likewise.
12802         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12803         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12804         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12805         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
12806         * tests/test-sigaction.c (handler, main): Likewise.
12807         * lib/freading.h: Treat uClibc like a non-glibc platform.
12808         * lib/freading.c: Likewise.
12809         * lib/gettext.h: Likewise.
12810         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
12811         Likewise.
12812         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
12813         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
12814         * lib/propername.c (proper_name_utf8): Likewise.
12815         * lib/spawn.in.h: Likewise.
12816         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
12817         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
12818         mem_cd_iconveh_internal): Likewise.
12819         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
12820         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12821         strstr, strcasestr): Likewise.
12822         * lib/unicodeio.c (unicode_to_mb): Likewise.
12823         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
12824         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
12825         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
12826         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
12827         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
12828         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
12829         * lib/unistr/u8-stpncpy.c: Likewise.
12830         * lib/vasnprintf.c (VASNPRINTF): Likewise.
12831         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
12832         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12833         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12834         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
12835         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
12836         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
12837         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
12838         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12839         Likewise.
12840         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12841         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12842         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12843         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12844         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12845         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12846         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12847         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12848         * tests/test-getopt.h (OPTIND_MIN): Likewise.
12849         * tests/test-striconveha.c (main): Likewise.
12850         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12851         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
12852         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
12853         * doc/posix-functions/getline.texi: Likewise.
12854         Reported by Mike Frysinger <vapier@gentoo.org>.
12855
12856 2010-11-20  Bruno Haible  <bruno@clisp.org>
12857
12858         nproc: Fix condition.
12859         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
12860         HAVE_PTHREAD_AFFINITY_NP.
12861
12862 2010-11-20  Bruno Haible  <bruno@clisp.org>
12863
12864         Fix a comment.
12865         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
12866
12867 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12868
12869         ftoastr: don't assume snprintf
12870         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
12871         Implement a subset of snprintf here, by using sprintf safely.
12872         * modules/ftoastr (Depends-on): Remove snprintf.
12873
12874 2010-11-19  Jim Meyering  <meyering@redhat.com>
12875
12876         test-rename.h: fix compilation failure
12877         * tests/test-rename.h (test_rename): Add omitted "}".
12878
12879 2010-11-17  Jim Meyering  <meyering@redhat.com>
12880
12881         maint.mk: add a URL discussing the no-@acronym policy
12882         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
12883
12884 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12885
12886         ftoastr: depend on snprintf, improve comments
12887         * lib/ftoastr.c: Also mention Loitsch's draft.
12888         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
12889         needed in the current implementation, but it might simplify
12890         speeding up the code later.
12891         * modules/ftoastr: Depend on snprintf; this improves portability.
12892         Suggested by Bruno Haible in the same email.
12893
12894         ftoastr: port to hosts lacking strtof and strtold
12895         Problem reported by Bruno Haible in
12896         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
12897         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
12898         environment and strtold (and presumably strtof) are not available.
12899         * modules/ftoastr (Files): Add m4/c-strtod.m4.
12900         (configure.ac): Require gl_C99_STRTOLD.
12901
12902 2010-11-18  Bruno Haible  <bruno@clisp.org>
12903
12904         c-strtold: Avoid link error on AIX 7.
12905         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
12906         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
12907         (gl_C_STRTOLD): Test whether strtold_l exists.
12908         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12909
12910 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12911
12912         intprops: new macro INT_BITS_STRLEN_BOUND
12913         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
12914         ftoastr.h.  This exposes an internal of intprops.h that was formerly
12915         not exposed.  Also, it uses a slightly tighter bound than before;
12916         though this makes no practical difference, we might as well be as
12917         tight as we easily can.
12918
12919         ftoastr: new module, for lossless conversion of floats to short strings
12920         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
12921         * modules/ftoastr: New files.
12922
12923 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
12924
12925         bootstrap: port to Solaris sed
12926         * build-aux/bootstrap (get_version): Port to Solaris sed.
12927         See Ralf Wildenhues's note in
12928         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
12929
12930 2010-11-14  Jim Meyering  <meyering@redhat.com>
12931
12932         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
12933         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
12934         and move definition closer to sole use.
12935
12936 2010-11-13  Jim Meyering  <meyering@redhat.com>
12937
12938         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
12939         Now we require at least autoconf-2.59, which means the work-around
12940         is no longer needed.
12941         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
12942         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12943         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12944         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
12945         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12946
12947 2010-11-13  Bruno Haible  <bruno@clisp.org>
12948
12949         rename, renameat: Avoid test failures at NFS mounted locations.
12950         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
12951         functions.
12952         (test_rename): Use assert_nonexistent.
12953         * tests/test-rename.c: Include <dirent.h>.
12954         * tests/test-renameat.c: Likewise.
12955         Reported by Gary V. Vaughan <gary@gnu.org>.
12956
12957         rename, renameat: Document Linux bug with NFS
12958         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
12959         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
12960         * doc/posix-functions/renameat.texi: Likewise.
12961         Suggested by Eric Blake.
12962
12963 2010-11-13  Bruno Haible  <bruno@clisp.org>
12964
12965         rename test: Add comments.
12966         * tests/test-rename.h (test_rename): Add structure and comments.
12967
12968 2010-11-13  Eric Blake  <eblake@redhat.com>
12969
12970         maintainer-makefile: cover a few more files
12971         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
12972         scripts generated within C files, for libvirt.
12973
12974 2010-11-13  Bruno Haible  <bruno@clisp.org>
12975
12976         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
12977         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
12978         character, return the number of bytes that belong together, not always
12979         1.
12980         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
12981         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
12982         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
12983         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
12984         number of bytes of an invalid character.
12985         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
12986         (main): Invoke it.
12987         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
12988         results.
12989         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
12990         malformed byte sequences.
12991         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
12992         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
12993         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
12994         Reported by Ben Pfaff and Paolo Bonzini.
12995
12996 2010-11-13  Bruno Haible  <bruno@clisp.org>
12997
12998         openat: Work around glibc bug with fchownat() and empty file names.
12999         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
13000         (gl_FUNC_FCHOWNAT): Invoke it.
13001         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
13002         * doc/posix-functions/fchownat.texi: Document the glibc bug.
13003         Reported by Gary V. Vaughan <gary@gnu.org>.
13004
13005 2010-11-13  Bruno Haible  <bruno@clisp.org>
13006
13007         openat: Ensure autoconf macro ordering.
13008         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
13009         gl_USE_SYSTEM_EXTENSIONS.
13010         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
13011
13012 2010-11-13  Bruno Haible  <bruno@clisp.org>
13013
13014         Update comments.
13015         * lib/unistr/u8-check.c: Update file name in comments.
13016         * lib/unistr/u8-mblen.c: Likewise.
13017         * lib/unistr/u8-prev.c: Likewise.
13018         * lib/unistr/u8-strmblen.c: Likewise.
13019         * lib/unistr/u8-strmbtouc.c: Likewise.
13020
13021 2010-11-13  Jim Meyering  <meyering@redhat.com>
13022
13023         tests: avoid test failure on Solaris 10 due to lack of PATH export
13024         * tests/test-update-copyright.sh: Don't forget to export PATH.
13025
13026         init.sh: ensure that IFS is defined, just in case...
13027         * tests/init.sh (setup_): Ensure that IFS is defined,
13028         so that saving and restoring it works as expected.  This
13029         appears to be useful at least for an old version of dash
13030         from a long time ago (RH 6).  See here for details:
13031         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
13032
13033         maint.mk: tighten "test a == b" check
13034         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
13035         test to files that contain something like #!/bin/sh.
13036         Without this, coreutils would get two false positives in
13037         the comments of C source files.
13038
13039 2010-11-12  Eric Blake  <eblake@redhat.com>
13040
13041         bootstrap: fix typo in previous attempt
13042         * build-aux/bootstrap (buildreq): Correct the grouping.
13043         Reported by Paul Eggert.
13044
13045         maintainer-makefile: prohibit test x == x
13046         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
13047         Based on a report by Matthias Bolte.
13048
13049         bootstrap: allow FreeBSD gzip
13050         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
13051         which has no '.' and goes to stderr.
13052         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
13053         Reported by Matthias Bolte.
13054
13055         maintainer-makefile: check for i18n setup
13056         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
13057         will likely work.
13058
13059 2010-11-12  Bruno Haible  <bruno@clisp.org>
13060
13061         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
13062         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
13063         * lib/nanosleep.c (nanosleep): Likewise.
13064
13065 2010-11-11  Bruno Haible  <bruno@clisp.org>
13066
13067         fcntl-h: Fix for use of C++ on glibc systems.
13068         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13069         also on glibc systems in C++ mode.
13070         Reported by Gary V. Vaughan <gary@gnu.org>.
13071
13072 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13073
13074         mknod: avoid false failure with dash
13075         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
13076
13077 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13078
13079         unlink: Fix "is it should" typo in diagnostic.
13080         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
13081         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
13082
13083 2010-11-11  Bruno Haible  <bruno@clisp.org>
13084
13085         Tests for module 'strerror_r-posix'.
13086         * modules/strerror_r-posix-tests: New file.
13087         * tests/test-strerror_r.c: New file.
13088         * tests/test-string-c++.cc: Check the signature of strerror_r.
13089
13090         New module 'strerror_r-posix'.
13091         * lib/string.in.h (strerror_r): New declaration.
13092         * lib/strerror_r.c: New file.
13093         * m4/strerror_r.m4: New file.
13094         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
13095         of strerror_r.
13096         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
13097         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13098         * modules/strerror_r-posix: New file.
13099         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
13100         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13101         * doc/posix-functions/strerror_r.texi: Mention the new module and the
13102         portability problems.
13103
13104 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
13105
13106         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
13107         line is also considered for output. Quoted function name in shell
13108         command, so temporary files for functions like MyClass::operator()
13109         are removed correctly without errors.
13110
13111 2010-11-09  Bruno Haible  <bruno@clisp.org>
13112
13113         * doc/posix-functions/strerror.texi: List more failing platforms.
13114
13115         * doc/posix-functions/strerror.texi: Add a comment.
13116
13117 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13118
13119         fdopendir: fix bug on MacOS X when low on file descriptors
13120
13121         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
13122         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
13123         All callers changed.
13124         (fdopendir): Invoke save_cwd at the top level, not after using
13125         multiple dup() calls to use up file descriptors.  Then retry
13126         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
13127         less than the maximum number of open file descriptors, because
13128         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
13129         on Mac OS X 10.6.4 for tar 1.24
13130         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
13131         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
13132         and for tar 1.25
13133         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
13134
13135 2010-11-07  Bruno Haible  <bruno@clisp.org>
13136
13137         vasnprintf: Support I flag on glibc systems.
13138         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
13139         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
13140         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
13141         snprintf function.
13142         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
13143         glibc systems.
13144         * tests/test-vasnprintf-posix3.c: New file.
13145         * modules/vasnprintf-posix-tests (Files): Add it.
13146         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
13147
13148 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13149
13150         [html] Fix copy/paste bug: Use unique name for compiler warnings.
13151         * MODULES.html.sh: For compiler warnings, use name
13152         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
13153
13154 2010-11-05  Eric Blake  <eblake@redhat.com>
13155
13156         ceil, floor: avoid spurious failure with icc
13157         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
13158         [denormals-as-zero] when optimizing without -mieee-fp option.
13159         * tests/test-floorf2.c (floorf_reference): Likewise.
13160         * tests/test-ceilf1.c (dummy): New function.
13161         (main): Use it to outsmart icc's optimization.
13162         * tests/test-floorf1.c (dummy, main): Likewise.
13163
13164         tests: require working signbit
13165         * modules/ceilf-tests (Depends-on): Add signbit.
13166         * modules/ceill-tests (Depends-on): Likewise.
13167         * modules/floorf-tests (Depends-on): Likewise.
13168         * modules/floorl-tests (Depends-on): Likewise.
13169         * modules/round-tests (Depends-on): Likewise.
13170         * modules/roundf-tests (Depends-on): Likewise.
13171         * modules/roundl-tests (Depends-on): Likewise.
13172         * modules/trunc-tests (Depends-on): Likewise.
13173         * modules/truncf-tests (Depends-on): Likewise.
13174         * modules/truncl-tests (Depends-on): Likewise.
13175
13176         strtod: work around icc bug
13177         * lib/strtod.c (minus_zero): Define to working value.
13178         (strtod): Use it to avoid icc bug.
13179
13180         copysign: enhance tests
13181         * modules/copysign-tests (Files): Add minus-zero.h.
13182         * tests/test-copysign.c (main): Also test zeros.
13183
13184 2010-11-04  Eric Blake  <eblake@redhat.com>
13185
13186         ceil, floor, round, trunc: enhance tests of -0
13187         * tests/test-ceilf1.c (main): Ensure correct sign of result.
13188         * tests/test-ceill.c (main): Likewise.
13189         * tests/test-floorf1.c (main): Likewise.
13190         * tests/test-floorl.c (main): Likewise.
13191         * tests/test-round1.c (main): Likewise.
13192         * tests/test-roundf1.c (main): Likewise.
13193         * tests/test-roundl.c (main): Likewise.
13194         * tests/test-trunc1.c (main): Likewise.
13195         * tests/test-truncf1.c (main): Likewise.
13196         * tests/test-truncl.c (main): Likewise.
13197
13198 2010-11-04  Eric Blake  <eblake@redhat.com>
13199
13200         frexp, tests: work around ICC bug with -zero
13201         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
13202         works with more compilers.
13203         * tests/minus-zero.h: New file.
13204         * modules/ceilf-tests (Files): Include it.
13205         * modules/ceill-tests (Files): Likewise.
13206         * modules/floorf-tests (Files): Likewise.
13207         * modules/floorl-tests (Files): Likewise.
13208         * modules/frexp-nolibm-tests (Files): Likewise.
13209         * modules/frexp-tests (Files): Likewise.
13210         * modules/frexpl-nolibm-tests (Files): Likewise.
13211         * modules/frexpl-tests (Files): Likewise.
13212         * modules/isnan-tests (Files): Likewise.
13213         * modules/isnand-nolibm-tests (Files): Likewise.
13214         * modules/isnand-tests (Files): Likewise.
13215         * modules/isnanf-nolibm-tests (Files): Likewise.
13216         * modules/isnanf-tests (Files): Likewise.
13217         * modules/isnanl-nolibm-tests (Files): Likewise.
13218         * modules/isnanl-tests (Files): Likewise.
13219         * modules/round-tests (Files): Likewise.
13220         * modules/roundf-tests (Files): Likewise.
13221         * modules/roundl-tests (Files): Likewise.
13222         * modules/ldexpl-tests (Files): Likewise.
13223         * modules/signbit-tests (Files): Likewise.
13224         * modules/snprintf-posix-tests (Files): Likewise.
13225         * modules/sprintf-posix-tests (Files): Likewise.
13226         * modules/strtod-tests (Files): Likewise.
13227         * modules/trunc-tests (Files): Likewise.
13228         * modules/truncf-tests (Files): Likewise.
13229         * modules/truncl-tests (Files): Likewise.
13230         * modules/vsnprintf-posix-tests (Files): Likewise.
13231         * modules/vsprintf-posix-tests (Files): Likewise.
13232         * modules/vasnprintf-posix-tests (Files): Likewise.
13233         * modules/vasprintf-posix-tests (Files): Likewise.
13234         * tests/test-ceilf1.c (main): Use it.
13235         * tests/test-ceill.c (main): Likewise.
13236         * tests/test-floorf1.c (main): Likewise.
13237         * tests/test-floorl.c (main): Likewise.
13238         * tests/test-frexp.c (main): Likewise.
13239         * tests/test-frexpl.c (main): Likewise.
13240         * tests/test-isnan.c (main): Likewise.
13241         * tests/test-isnand.h (main): Likewise.
13242         * tests/test-isnanf.h (main): Likewise.
13243         * tests/test-isnanl.h (main): Likewise.
13244         * tests/test-ldexpl.c (main): Likewise.
13245         * tests/test-round.c (main): Likewise.
13246         * tests/test-roundf.c (main): Likewise.
13247         * tests/test-roundl.c (main): Likewise.
13248         * tests/test-signbit.c (test_signbitf, test_signbitd)
13249         (test_signbitl): Likewise.
13250         * tests/test-snprintf-posix.h (test_function): Likewise.
13251         * tests/test-sprintf-posix.h (test_function): Likewise.
13252         * tests/test-strtod.c (main): Likewise.
13253         * tests/test-trunc1.c (main): Likewise.
13254         * tests/test-truncf1.c (main): Likewise.
13255         * tests/test-truncl.c (main): Likewise.
13256
13257         isnanl: work around icc bug
13258         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
13259
13260 2010-11-03  Eric Blake  <eblake@redhat.com>
13261
13262         tests: fix compiler warnings
13263         * tests/test-getopt.h (test_getopt): Fix condition.
13264         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13265         * tests/test-pipe2.c (main): Likewise.
13266         * tests/test-quotearg-simple.c (main): Avoid icc warning.
13267
13268         utimens: fix broken m4 test
13269         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
13270
13271 2010-10-28  Bruno Haible  <bruno@clisp.org>
13272
13273         posix_spawn*, getdtablesize: Relax license.
13274         * modules/posix_spawn (License): Change to LGPLv2+.
13275         * modules/posix_spawnp (License): Likewise.
13276         * modules/posix_spawn-internal (License): Likewise.
13277         * modules/posix_spawnattr_init (License): Likewise.
13278         * modules/posix_spawnattr_getflags (License): Likewise.
13279         * modules/posix_spawnattr_setflags (License): Likewise.
13280         * modules/posix_spawnattr_getpgroup (License): Likewise.
13281         * modules/posix_spawnattr_setpgroup (License): Likewise.
13282         * modules/posix_spawnattr_getschedparam (License): Likewise.
13283         * modules/posix_spawnattr_setschedparam (License): Likewise.
13284         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
13285         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
13286         * modules/posix_spawnattr_getsigdefault (License): Likewise.
13287         * modules/posix_spawnattr_setsigdefault (License): Likewise.
13288         * modules/posix_spawnattr_getsigmask (License): Likewise.
13289         * modules/posix_spawnattr_setsigmask (License): Likewise.
13290         * modules/posix_spawnattr_destroy (License): Likewise.
13291         * modules/posix_spawn_file_actions_init (License): Likewise.
13292         * modules/posix_spawn_file_actions_addclose (License): Likewise.
13293         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
13294         * modules/posix_spawn_file_actions_addopen (License): Likewise.
13295         * modules/posix_spawn_file_actions_destroy (License): Likewise.
13296         * modules/getdtablesize (License): Likewise.
13297         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
13298
13299 2010-10-26  Bruno Haible  <bruno@clisp.org>
13300
13301         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
13302         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
13303         Cygwin and mingw.
13304         Suggested by Eric Blake.
13305
13306 2010-10-26  Bruno Haible  <bruno@clisp.org>
13307
13308         stdio: Work around compilation error due to renameat() on Solaris 10.
13309         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13310         * lib/renameat.c: Don't include <unistd.h> here.
13311         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13312         Reported by Paul Eggert and Eric Blake.
13313
13314 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13315
13316         renameat: port to Solaris 10, which declares renameat in unistd.h
13317
13318         * lib/renameat.c: Include unistd.h before stdio.h, because
13319         Solaris 10 declares renameat in unistd.h.  Problem encountered
13320         when building GNU tar 1.24 on Solaris 10.
13321
13322 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13323
13324         fdopendir: fix C89 compilation
13325         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13326         compilers.
13327
13328 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13329
13330         inttostr: simplify by removing unnecessary redundancy
13331         * lib/anytostr.c: Don't include verify.h.
13332         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13333         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13334         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13335         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13336         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13337         Likewise.
13338         * modules/inttostr (Depends-on): Remove 'verify'.
13339
13340 2010-10-23  Bruno Haible  <bruno@clisp.org>
13341
13342         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13343         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13344         Reported by Eric Blake.
13345
13346 2010-10-23  Bruno Haible  <bruno@clisp.org>
13347
13348         Tests: Fix LOCALE_JA on MirBSD 10.
13349         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13350         to an UTF-8 locale.
13351         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13352         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13353         Reported by Eric Blake.
13354
13355 2010-10-21  Bruno Haible  <bruno@clisp.org>
13356
13357         nl_langinfo test: Avoid test failure on NetBSD 5.
13358         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13359         Reported by Eric Blake.
13360
13361 2010-10-21  Eric Blake  <eblake@redhat.com>
13362
13363         c-stack: work around libsigsegv 2.8 bug
13364         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13365         overflow on at least PowerPC64.
13366
13367 2010-10-17  Bruno Haible  <bruno@clisp.org>
13368
13369         userspec: Drop redundant file.
13370         * modules/userspec (Files): Remove lib/inttostr.h.
13371
13372 2010-10-17  Bruno Haible  <bruno@clisp.org>
13373
13374         nl_langinfo tests: Silence some warnings.
13375         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13376         Reported by Jim Meyering.
13377
13378 2010-10-17  Bruno Haible  <bruno@clisp.org>
13379
13380         Make use of GCC's attribute __alloc_size__.
13381         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13382         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13383         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13384         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13385         __alloc_size__.
13386         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13387         Suggested by Jim Meyering.
13388
13389 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13390
13391         bootstrap: anchor .gitignore entries.
13392         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13393         with...
13394         (insert_vc_ignore): ... this new function, which prepends `/' to
13395         all .gitignore entries before passing them to
13396         insert_sorted_if_absent.
13397
13398 2010-10-16  Bruno Haible  <bruno@clisp.org>
13399
13400         nextafter: Fix configure check.
13401         * modules/nextafter (configure.ac): Correct expected prototype.
13402
13403 2010-10-16  Bruno Haible  <bruno@clisp.org>
13404
13405         termios: Update documentation.
13406         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13407
13408 2010-10-16  Bruno Haible  <bruno@clisp.org>
13409
13410         tests: Make them compile with TinyCC.
13411         * tests/test-strstr.c (main): Remove parentheses around array
13412         initializer.
13413
13414 2010-10-15  Eric Blake  <eblake@redhat.com>
13415
13416         ignore-value: make header idempotent
13417         * lib/ignore-value.h: Add double-inclusion guards.
13418         Reported by Stefan Berger.
13419
13420 2010-10-15  Jim Meyering  <meyering@redhat.com>
13421
13422         GNUmakefile: handle "stable" target, not "major"
13423         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13424         lists in maint.mk and announce-gen.  Without this, "make stable"
13425         would fail to ensure that $(VERSION) is up to date.
13426
13427 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13428
13429         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13430         & co.
13431
13432 2010-10-14  Bruno Haible  <bruno@clisp.org>
13433
13434         vasnprintf: Don't set errno to 0.
13435         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13436         block that sets it to 0.
13437         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13438
13439 2010-10-14  Bruno Haible  <bruno@clisp.org>
13440
13441         socketlib: Fix.
13442         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13443         gl_PREREQ_SYS_H_WINSOCK2.
13444         Reported by Ian Beckwith <ianb@erislabs.net>.
13445
13446 2010-10-13  Jim Meyering  <meyering@redhat.com>
13447
13448         test-select-stdin.c: avoid warn_unused_result warnings
13449         * tests/test-select-stdin.c: Include "macros.h".
13450         ASSERT that read and fflush succeed.
13451
13452 2010-10-13  Jim Meyering  <meyering@redhat.com>
13453
13454         git-version-gen: do require git-VC'd files in cwd
13455         * build-aux/git-version-gen: Reject a git version string
13456         if there are no commits associated with the current directory.
13457         This avoids an unlikely false-positive (unrelated dir whose parent
13458         repository also contains a tag matching v*), as pointed out
13459         by Giuseppe Scrivano in
13460         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13461
13462 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13463
13464         argv-iter: omit nonconforming declaration
13465         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13466         enum arg_iter_err declaration, which doesn't conform to C99.
13467         Solaris 10 cc warns about this.
13468
13469 2010-10-13  Eric Blake  <eblake@redhat.com>
13470
13471         termios: fix compilation on mingw
13472         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13473         (gl_TERMIOS_H): Adjust it on mingw.
13474         * modules/termios (Makefile.am): Substitute new key.
13475         * lib/termios.in.h (includes): Make include_next conditional.
13476         * doc/posix-headers/termios.texi (termios.h): Update
13477         documentation.
13478         Reported by Daniel P. Berrange.
13479
13480 2010-10-13  Jim Meyering  <meyering@redhat.com>
13481
13482         git-version-gen: don't require that .git/ be in the current dir
13483         * build-aux/git-version-gen: Adjust this script so that it works
13484         when run from any working directory beneath the top-level .git/-
13485         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13486         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13487
13488         test-select: avoid warn_unused_result warnings
13489         * tests/test-select.c: Include "macros.h".
13490         ASSERT that each call to read, write, and pipe succeeds.
13491         While not technically required, also check each "close".
13492         * modules/select-tests (Files): Add tests/macros.h.
13493
13494         test-symlinkat: remove declaration of unused local
13495         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13496
13497         test-inttostr: avoid shadowing warnings
13498         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13499         and use malloc rather than the stack for the same reason as
13500         mentioned in the comment justifying the other allocation.
13501
13502 2010-10-11  Bruno Haible  <bruno@clisp.org>
13503
13504         stdlib: Allow multiple gnulib generated replacements to coexist.
13505         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13506         Reported by Sam Steingold <sds@gnu.org>.
13507
13508 2010-10-11  Jim Meyering  <meyering@redhat.com>
13509
13510         fix a documentation typo
13511         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13512
13513 2010-10-11  Eric Blake  <eblake@redhat.com>
13514
13515         futimens: work around Solaris 11 bug
13516         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13517         * tests/test-futimens.h (test_futimens): Enhance, rather than
13518         weaken test.
13519         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13520
13521 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13522
13523         Indentation.
13524         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13525         higher-level operators more to the left.
13526
13527 2010-10-11  Jim Meyering  <meyering@redhat.com>
13528
13529         test-futimens: avoid unwarranted test failure on Solaris 5.11
13530         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
13531         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
13532         because it tries to dereference the NULL name argument.
13533
13534 2010-10-11  Bruno Haible  <bruno@clisp.org>
13535
13536         Indentation.
13537         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
13538         indentation.
13539
13540 2010-10-11  Jim Meyering  <meyering@redhat.com>
13541
13542         spawn.in.h: make indentation consistent with parentheses
13543         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
13544         Make indentation consistent with parentheses.
13545
13546 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
13547
13548         Fix mismatched parens in previous commit
13549         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
13550         parens.
13551
13552 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13553
13554         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
13555
13556         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
13557         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
13558         * lib/malloca.c: Include "verify.h".
13559         (verify1): Remove, replacing with a verify call.
13560         * lib/relocwrapper.c (verify1): Likewise.
13561         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
13562         Likewise.
13563         * modules/malloca (Depends-on): Add 'verify'.
13564         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
13565         * modules/vasnprintf (Depends-on): Add 'verify'.
13566         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13567         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13568         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13569         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13570         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13571         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13572         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13573
13574         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
13575
13576         Formerly the style was sometimes 2*X - 1, because the C standard
13577         was wrongly thought to disallow ?: in integral constant expressions.
13578         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
13579         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
13580         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13581         * lib/stdint.in.h (_verify_intmax_size): Likewise.
13582         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
13583         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
13584         verify that time_t cannot be floating.
13585
13586 2010-10-08  Eric Blake  <eblake@redhat.com>
13587
13588         time: enforce recent POSIX ruling that time_t is integral
13589         * lib/time.in.h (__time_t_must_be_integral): Detect any
13590         problematic systems, allowing the rest of gnulib to assume POSIX.
13591
13592 2010-10-08  Jim Meyering  <meyering@redhat.com>
13593
13594         fdopendir: fix a bug on systems lacking openat and /proc support
13595         OpenBSD 4.7 is one such system.  The most noticeable effect was
13596         failure of any application making nontrivial use of fts: rm, du,
13597         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
13598           ./rm: traversal failed: `a': Bad file descriptor
13599         Debugging that, you see that even though FD 6 was closed just
13600         prior to the opendir call in fd_clone_opendir, its resulting
13601         dir->dd_fd was 8, rather than the expected value of 6:
13602
13603         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
13604         93                close (fd);
13605         (gdb) n
13606         94                dir = fd_clone_opendir (dupfd);
13607         (gdb) n
13608         95                saved_errno = errno;
13609         (gdb) p dir->dd_fd
13610         $11 = 8
13611
13612         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
13613         The problem is that on OpenBSD, fd_clone_opendir has to resort
13614         to using the old-style save/restore CWD mechanism, due to its
13615         lack of openat/proc support, and *that* would steal the FD (6)
13616         that opendir was supposed to use.
13617
13618         The fix is to squirrel away the desired FD so that save_cwd uses a
13619         different one, and then free the dest FD right before calling opendir.
13620         That guarantees opendir will use the required file descriptor.
13621
13622         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13623
13624 2010-10-08  Bruno Haible  <bruno@clisp.org>
13625
13626         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13627         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13628
13629 2010-10-08  Bruno Haible  <bruno@clisp.org>
13630
13631         nanosleep: Make replacement POSIX compliant.
13632         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13633         is out of range.
13634         Reported by Jim Meyering.
13635
13636 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13637
13638         bootstrap: add hook for altering gnulib.mk, for Bison
13639         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13640         the Bison bootstrapping process can rewrite file names and variables
13641         in this file before later parts of 'bootstrap' use the file.
13642         Bison wants to include lib/gnulib.mk from the top-level makefile,
13643         so it needs the file names in this file to be relative to the top
13644         level, not relative to lib; plus it needs variable names to be
13645         rewritten.
13646         (slurp): Use the new function.
13647
13648         bootstrap: reformat for readability
13649         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13650
13651 2010-10-08  Eric Blake  <eblake@redhat.com>
13652
13653         docs: update cygwin progress
13654         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13655         1.7.7.
13656         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13657         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13658         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13659         * doc/posix-functions/carg.texi (carg): Likewise.
13660         * doc/posix-functions/cargf.texi (cargf): Likewise.
13661         * doc/posix-functions/casin.texi (casin): Likewise.
13662         * doc/posix-functions/casinf.texi (casinf): Likewise.
13663         * doc/posix-functions/casinh.texi (casinh): Likewise.
13664         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13665         * doc/posix-functions/catan.texi (catan): Likewise.
13666         * doc/posix-functions/catanf.texi (catanf): Likewise.
13667         * doc/posix-functions/catanh.texi (catanh): Likewise.
13668         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13669         * doc/posix-functions/ccos.texi (ccos): Likewise.
13670         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13671         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13672         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13673         * doc/posix-functions/cexp.texi (cexp): Likewise.
13674         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13675         * doc/posix-functions/cimag.texi (cimag): Likewise.
13676         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13677         * doc/posix-functions/clog.texi (clog): Likewise.
13678         * doc/posix-functions/clogf.texi (clogf): Likewise.
13679         * doc/posix-functions/conj.texi (conj): Likewise.
13680         * doc/posix-functions/conjf.texi (conjf): Likewise.
13681         * doc/posix-functions/cpow.texi (cpow): Likewise.
13682         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13683         * doc/posix-functions/cproj.texi (cproj): Likewise.
13684         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13685         * doc/posix-functions/creal.texi (creal): Likewise.
13686         * doc/posix-functions/crealf.texi (crealf): Likewise.
13687         * doc/posix-functions/csin.texi (csin): Likewise.
13688         * doc/posix-functions/csinf.texi (csinf): Likewise.
13689         * doc/posix-functions/csinh.texi (csinh): Likewise.
13690         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13691         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
13692         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
13693         * doc/posix-functions/ctan.texi (ctan): Likewise.
13694         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
13695         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
13696         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
13697         * doc/posix-headers/complex.texi (complex.h): Likewise.
13698
13699 2010-10-07  Jim Meyering  <meyering@redhat.com>
13700
13701         parse-datetime: avoid compilation failure on OpenBSD 4.7
13702         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
13703         This works around a compilation failure on OpenBSD 4.7:
13704         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
13705
13706 2010-10-07  Eric Blake  <eblake@redhat.com>
13707
13708         docs: update cygwin progress
13709         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
13710         1.7.6.
13711         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13712         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
13713         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
13714         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
13715         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
13716         Likewise.
13717         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
13718         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
13719         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
13720         Likewise.
13721         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
13722         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
13723         Likewise.
13724         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
13725         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
13726         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
13727         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
13728         Likewise.
13729         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
13730         Likewise.
13731         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
13732
13733         docs: update parse-datetime history
13734         * doc/parse-datetime.texi (Authors of parse_datetime): Better
13735         documentation of this function's history and alternatives.
13736
13737         cygwin: use more robust version check
13738         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
13739         exclude an eventual cygwin 1.9.1.
13740         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13741         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13742         (gl_FUNC_STRCASESTR): Likewise.
13743         Reported by Bruno Haible.
13744
13745 2010-10-06  Bruno Haible  <bruno@clisp.org>
13746
13747         string, sys_select: Avoid #including large headers unless necessary.
13748         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
13749         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
13750         OSF/1, BeOS, Haiku.
13751         Reported by Jim Meyering.
13752
13753 2010-10-05  Eric Blake  <eblake@redhat.com>
13754
13755         memmem, strstr, strcasestr: fix bug with long periodic needle
13756         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
13757         periodic needle having false positive.
13758         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
13759         and cygwin 1.7.7.
13760         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
13761         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13762         (gl_FUNC_STRCASESTR): Likewise.
13763         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13764         * tests/test-memmem.c (main): Expose the bug.
13765         * tests/test-strcasestr.c (main): Likewise.
13766         * tests/test-strstr.c (main): Likewise.
13767         * tests/test-c-strcasestr.c (main): Likewise.
13768         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
13769         * doc/posix-functions/strstr.texi (strstr): Likewise.
13770         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13771         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
13772
13773 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13774
13775         parse-datetime: do some more renaming
13776         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
13777         parse_datetime, not get_date.  Mention the renaming.
13778         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
13779         in comments.
13780         * m4/bison.m4: Likewise.
13781
13782 2010-10-05  Eric Blake  <eblake@redhat.com>
13783
13784         parse-datetime: better name than get_date
13785         * NEWS: Reword the deprecation notice.
13786         * modules/get_date: Rename to modules/parse-datetime.
13787         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
13788         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
13789         * lib/get_date.y: Rename to lib/parse-datetime.y.
13790         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
13791         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
13792         * doc/getdate.texi: Provide fallback wrapper.
13793         * lib/getdate.h: Move guts, and wrap...
13794         * lib/parse-datetime.h: ...new file.
13795         * lib/parse-datetime.y (get_date): Rename...
13796         (parse_datetime): ...to this.
13797         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
13798         (gl_PARSE_DATETIME): ...to this.
13799         * doc/posix-functions/getdate.texi (get_date): Provide fallback
13800         documentation.
13801         * modules/getdate (Files): Provide fallback docs and header.
13802         (Notice, Depends-on): Update references.
13803         * tests/test-parse-datetime.c: Likewise.
13804         * DEPENDENCIES: Likewise.
13805         * MODULES.html.sh (Date and time <time.h>): Likewise.
13806         * doc/parse-datetime.texi (Date input formats)
13807         (Authors of parse_datetime): Likewise.
13808         * modules/parse-datetime (Files, configure.ac, Makefile.am)
13809         (Include): Likewise.
13810         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
13811         * gnulib-tool: Likewise.
13812         * m4/bison.m4 (gl_BISON): Likewise.
13813         Suggested by Bruno Haible.
13814
13815 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13816
13817         more ports to Solaris tr, which needs [] around ranges
13818         * gnulib-tool: Solaris tr needs [] around ranges.
13819         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13820         * tests/test-pipe-filter-gi1.c (main): Likewise.
13821         * tests/test-pipe-filter-ii1.c (main): Likewise.
13822
13823 2010-10-05  Eric Blake  <eblake@redhat.com>
13824
13825         bootstrap: fix Solaris regression
13826         * build-aux/bootstrap (check_versions): Solaris tr still needs []
13827         around ranges.
13828         Reported by Pádraig Brady.
13829
13830         bootstrap: work with pkg-config
13831         * build-aux/bootstrap (check_versions): Also transliterate - in
13832         prerequisite name.
13833         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
13834         prerequisites that were already found, to avoid confusion.
13835         Reported by Justin Clift.
13836
13837         faccessat: remove unused wrappers
13838         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
13839         presence of these wrappers dragged in -lgen on Solaris.
13840         Reported by Clemens Brogi; fix suggested by Paul Eggert.
13841
13842 2010-10-05  Jim Meyering  <meyering@redhat.com>
13843
13844         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
13845         * Makefile (sc_pragma_columns): New syntax-check rule.
13846
13847 2010-10-04  Bruno Haible  <bruno@clisp.org>
13848
13849         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
13850         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
13851         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
13852         Reported by Bruce Korb and Eric Blake.
13853
13854 2010-10-04  Bruno Haible  <bruno@clisp.org>
13855
13856         threadlib: Make option --with-libpth-prefix work.
13857         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
13858         use $LIBPTH, not just -lpth.
13859
13860 2010-10-04  Bruno Haible  <bruno@clisp.org>
13861
13862         Avoid line length limitation from HP NonStop system header files.
13863         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
13864         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
13865         * lib/ctype.in.h: Likewise.
13866         * lib/dirent.in.h: Likewise.
13867         * lib/errno.in.h: Likewise.
13868         * lib/fcntl.in.h: Likewise.
13869         * lib/float.in.h: Likewise.
13870         * lib/getopt.in.h: Likewise.
13871         * lib/iconv.in.h: Likewise.
13872         * lib/inttypes.in.h: Likewise.
13873         * lib/langinfo.in.h: Likewise.
13874         * lib/locale.in.h: Likewise.
13875         * lib/math.in.h: Likewise.
13876         * lib/netdb.in.h: Likewise.
13877         * lib/netinet_in.in.h: Likewise.
13878         * lib/poll.in.h: Likewise.
13879         * lib/pthread.in.h: Likewise.
13880         * lib/pty.in.h: Likewise.
13881         * lib/sched.in.h: Likewise.
13882         * lib/se-selinux.in.h: Likewise.
13883         * lib/search.in.h: Likewise.
13884         * lib/signal.in.h: Likewise.
13885         * lib/spawn.in.h: Likewise.
13886         * lib/stdarg.in.h: Likewise.
13887         * lib/stddef.in.h: Likewise.
13888         * lib/stdint.in.h: Likewise.
13889         * lib/stdio.in.h: Likewise.
13890         * lib/stdlib.in.h: Likewise.
13891         * lib/string.in.h: Likewise.
13892         * lib/strings.in.h: Likewise.
13893         * lib/sys_file.in.h: Likewise.
13894         * lib/sys_ioctl.in.h: Likewise.
13895         * lib/sys_select.in.h: Likewise.
13896         * lib/sys_socket.in.h: Likewise.
13897         * lib/sys_stat.in.h: Likewise.
13898         * lib/sys_time.in.h: Likewise.
13899         * lib/sys_times.in.h: Likewise.
13900         * lib/sys_utsname.in.h: Likewise.
13901         * lib/sys_wait.in.h: Likewise.
13902         * lib/sysexits.in.h: Likewise.
13903         * lib/termios.in.h: Likewise.
13904         * lib/time.in.h: Likewise.
13905         * lib/unistd.in.h: Likewise.
13906         * lib/wchar.in.h: Likewise.
13907         * lib/wctype.in.h: Likewise.
13908         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
13909         * modules/ctype (Makefile.am): Likewise.
13910         * modules/dirent (Makefile.am): Likewise.
13911         * modules/errno (Makefile.am): Likewise.
13912         * modules/fcntl-h (Makefile.am): Likewise.
13913         * modules/float (Makefile.am): Likewise.
13914         * modules/getopt-posix (Makefile.am): Likewise.
13915         * modules/iconv-h (Makefile.am): Likewise.
13916         * modules/inttypes (Makefile.am): Likewise.
13917         * modules/langinfo (Makefile.am): Likewise.
13918         * modules/locale (Makefile.am): Likewise.
13919         * modules/math (Makefile.am): Likewise.
13920         * modules/netdb (Makefile.am): Likewise.
13921         * modules/netinet_in (Makefile.am): Likewise.
13922         * modules/poll-h (Makefile.am): Likewise.
13923         * modules/pthread (Makefile.am): Likewise.
13924         * modules/pty (Makefile.am): Likewise.
13925         * modules/sched (Makefile.am): Likewise.
13926         * modules/search (Makefile.am): Likewise.
13927         * modules/selinux-h (Makefile.am): Likewise.
13928         * modules/signal (Makefile.am): Likewise.
13929         * modules/spawn (Makefile.am): Likewise.
13930         * modules/stdarg (Makefile.am): Likewise.
13931         * modules/stddef (Makefile.am): Likewise.
13932         * modules/stdint (Makefile.am): Likewise.
13933         * modules/stdio (Makefile.am): Likewise.
13934         * modules/stdlib (Makefile.am): Likewise.
13935         * modules/string (Makefile.am): Likewise.
13936         * modules/strings (Makefile.am): Likewise.
13937         * modules/sys_file (Makefile.am): Likewise.
13938         * modules/sys_ioctl (Makefile.am): Likewise.
13939         * modules/sys_select (Makefile.am): Likewise.
13940         * modules/sys_socket (Makefile.am): Likewise.
13941         * modules/sys_stat (Makefile.am): Likewise.
13942         * modules/sys_time (Makefile.am): Likewise.
13943         * modules/sys_times (Makefile.am): Likewise.
13944         * modules/sys_utsname (Makefile.am): Likewise.
13945         * modules/sys_wait (Makefile.am): Likewise.
13946         * modules/sysexits (Makefile.am): Likewise.
13947         * modules/termios (Makefile.am): Likewise.
13948         * modules/time (Makefile.am): Likewise.
13949         * modules/unistd (Makefile.am): Likewise.
13950         * modules/wchar (Makefile.am): Likewise.
13951         * modules/wctype (Makefile.am): Likewise.
13952
13953 2010-10-04  Bruno Haible  <bruno@clisp.org>
13954
13955         read-file tests: Avoid a test failure on NonStop Kernel.
13956         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
13957         a regular file.
13958         Reported by Joachim Schmitz <schmitz@hp.com>.
13959
13960 2010-10-03  Bruno Haible  <bruno@clisp.org>
13961
13962         gnulib-tool: Fixes for --create-testdir with --libtool.
13963         * gnulib-tool (func_get_automake_snippet): Don't augment
13964         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
13965         an executable.
13966         (func_create_testdir): Handle module 'alloca' like func_import.
13967         Reported by Bruce Korb <bruce.korb@gmail.com>.
13968
13969 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
13970
13971         Avoid some lines longer than 80 characters.
13972         * lib/stdint.in.h: Break long comment lines.
13973         * lib/math.in.h: Likewise.
13974         (_GL_NUM_UINT_WORDS): New macro, for readability.
13975         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
13976         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
13977         * lib/stdlib.in.h: Likewise.
13978         * lib/spawn.in.h: Likewise.
13979         * lib/sys_socket.in.h: Update an URL.
13980         * lib/sys_stat.in.h: Break long line.
13981
13982 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
13983
13984         Improve pmccabe2html.
13985         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
13986         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
13987         when the sources change. Remove the line in the HTML about "Used
13988         ranges" (which implied that there might be other unused ranges),
13989         rename "Resume" to "Summary" (easier to understand for more users).
13990         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
13991         styles, and some unnecessary blank lines.
13992
13993 2010-10-03  Bruno Haible  <bruno@clisp.org>
13994             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13995
13996         acl: Add support for ACLs on NonStop Kernel.
13997         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
13998         Check whether the function aclsort() exists.
13999         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
14000         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
14001         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14002         (acl_nontrivial [HAVE_ACLSORT]: New function.
14003         (file_has_acl): Implement for NonStop Kernel.
14004         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14005         (qset_acl): Implement for NonStop Kernel.
14006         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
14007         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14008         (main): Implement for NonStop Kernel.
14009         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
14010         Kernel. Handle this flavor.
14011         * tests/test-set-mode-acl.sh: Likewise.
14012         * tests/test-copy-acl.sh: Likewise.
14013         * tests/test-copy-file.sh: Likewise.
14014
14015 2010-10-03  Bruno Haible  <bruno@clisp.org>
14016
14017         Info about ACLs on NonStop Kernel.
14018         * doc/acl-resources.txt: Add info about NonStop Kernel.
14019         References by Joachim Schmitz <schmitz@hp.com>.
14020
14021 2010-10-02  Bruno Haible  <bruno@clisp.org>
14022
14023         Define missing EDQUOT on NonStop Kernel.
14024         * lib/errno.in.h (EDQUOT): Assign a value if missing.
14025         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
14026         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
14027         missing.
14028         * doc/posix-headers/errno.texi: Mention the NSK bug.
14029         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
14030         Reported by Joachim Schmitz <schmitz@hp.com>.
14031
14032 2010-10-02  Bruno Haible  <bruno@clisp.org>
14033
14034         Update doc for POSIX:2008.
14035         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
14036         Update URL of POSIX specification.
14037
14038 2010-10-02  Bruno Haible  <bruno@clisp.org>
14039
14040         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
14041         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
14042         from gnulib, not from Automake.
14043
14044 2010-10-02  Bruno Haible  <bruno@clisp.org>
14045
14046         New module 'system-posix'.
14047         * modules/system-posix: New file.
14048         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
14049         module is present.
14050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
14051         GNULIB_SYSTEM_POSIX.
14052         * modules/stdlib (Depends-on): Remove sys_wait.
14053         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
14054         * doc/posix-functions/system.texi: Mention the new module.
14055         * doc/posix-headers/stdlib.texi: Likewise.
14056         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
14057         define test_sys_wait_macros to a no-op.
14058         Reported by Sam Steingold <sds@gnu.org>.
14059
14060 2010-09-30  Bruno Haible  <bruno@clisp.org>
14061
14062         More renaming from 'getdate' to 'get_date'.
14063         * doc/get_date.texi: Renamed from doc/getdate.texi.
14064         * modules/get_date (Files): Update.
14065         * MODULES.html.sh (Date and time <time.h>): Update.
14066         * DEPENDENCIES: Update.
14067         * gnulib-tool: Update comment.
14068         * m4/bison.m4 (gl_BISON): Likewise.
14069         * m4/get_date.m4 (gl_GET_DATE): Likewise.
14070
14071 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
14072
14073         bootstrap: support ACLOCAL_FLAGS during aclocal
14074         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
14075         can add additional -I dir for third-party .m4 files.
14076
14077 2010-09-30  Eric Blake  <eblake@redhat.com>
14078
14079         bootstrap: use glibtoolize on MacOS
14080         * build-aux/bootstrap (check_versions): Convert libtool into
14081         libtoolize.
14082         (tool search): Move libtool check earlier, and look for
14083         glibtoolize for MacOS.
14084         (gnulib_tool_options): Auto-add --libtool when appropriate.
14085         Reported by Justin Clift.
14086
14087         poll: fix typo that broke test on MacOS
14088         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
14089         Reported by Justin Clift.
14090
14091         getdate: rename to get_date
14092         Note: getdate.h is not renamed, to minimize client impact.
14093         * modules/getdate: Mark obsolete.  Move old contents...
14094         * modules/get_date: ...to new module name.
14095         * modules/getdate-tests: Move...
14096         * modules/get_date-tests: ...here.
14097         * m4/getdate.m4: Move...
14098         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
14099         * lib/getdate.y: Move...
14100         * lib/get_date.y: ...here.
14101         * tests/test-getdate.c: Move...
14102         * tests/test-get_date.c: ...here.
14103         * doc/posix-functions/getdate.texi (getdate): Update name.
14104         * NEWS: Mention the change.
14105
14106 2010-09-29  Bruno Haible  <bruno@clisp.org>
14107
14108         Separate the module 'waitpid' from the module 'sys_wait'.
14109         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
14110         present.
14111         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
14112         gl_MODULE_INDICATOR_FOR_TESTS.
14113         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
14114         * modules/sys_wait (Depends-on): Remove waitpid.
14115         (Makefile.am): Substitute GNULIB_WAITPID.
14116         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
14117         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
14118         signature only if the 'waitpid' module is present.
14119         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
14120         * NEWS: Mention the change.
14121         * modules/grantpt (Depends-on): Add waitpid.
14122         * modules/wait-process (Depends-on): Likewise.
14123
14124 2010-09-29  Bruno Haible  <bruno@clisp.org>
14125
14126         More tests for module 'sys_wait'.
14127         * modules/sys_wait-c++-tests: New file.
14128         * tests/test-sys_wait-c++.cc: New file.
14129         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
14130         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14131
14132 2010-09-29  Bruno Haible  <bruno@clisp.org>
14133
14134         New module 'waitpid'.
14135         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
14136         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
14137         Don't include <process.h>.
14138         (waitpid): Declare only, using modern idiom.
14139         * m4/waitpid.m4: New file.
14140         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
14141         * modules/waitpid: New file.
14142         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
14143         (Makefile.am): Update.
14144         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
14145
14146 2010-09-28  Bruno Haible  <bruno@clisp.org>
14147
14148         poll: Assume ANSI C.
14149         * lib/poll.c (poll): Use an ANSI C declaration.
14150
14151 2010-09-28  Bruno Haible  <bruno@clisp.org>
14152
14153         poll-h: Create poll.h on all platforms.
14154         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
14155         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
14156         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
14157         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
14158         (gl_REPLACE_POLL_H): Don't set POLL_H.
14159         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
14160         * modules/poll-h (Depends-on): Add include_next.
14161         (Makefile.am): Create poll.h unconditionally. Substitute also
14162         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
14163
14164 2010-09-28  Bruno Haible  <bruno@clisp.org>
14165
14166         Tests for module 'poll-h'.
14167         * modules/poll-h-c++-tests: New file.
14168         * tests/test-poll-h-c++.cc: New file.
14169
14170         Tests for module 'poll-h'.
14171         * modules/poll-h-tests: New file.
14172         * tests/test-poll-h.c: New file.
14173
14174 2010-09-28  Bruno Haible  <bruno@clisp.org>
14175
14176         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
14177         * modules/poll-h (Depends-on): Add 'extensions'.
14178
14179 2010-09-28  Bruno Haible  <bruno@clisp.org>
14180
14181         New module 'poll-h'.
14182         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
14183         (poll): Use modern idiom.
14184         * modules/poll-h: New file.
14185         * modules/poll (Files): Remove lib/poll.in.h.
14186         (Depends-on): Add poll-h.
14187         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
14188         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
14189         * m4/poll_h.m4: New file.
14190         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
14191         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
14192         and invoke gl_REPLACE_POLL_H.
14193         * lib/poll.c: Use common idiom.
14194         * tests/test-poll.c: Likewise.
14195         * doc/posix-headers/poll.texi: Mention the poll-h module.
14196         Suggested by Eric Blake.
14197
14198 2010-09-26  Bruno Haible  <bruno@clisp.org>
14199
14200         sys_wait: Implement WSTOPSIG.
14201         * lib/sys_wait.in.h (WSTOPSIG): New macro.
14202         Reported by Simon Josefsson.
14203
14204 2010-09-26  Simon Josefsson  <simon@josefsson.org>
14205
14206         stdlib, sys_wait: Avoid compilation error on mingw.
14207         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
14208
14209 2010-09-26  Bruno Haible  <bruno@clisp.org>
14210
14211         stdlib tests: Avoid code duplication.
14212         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
14213         * modules/sys_wait-tests (Files): Likewise.
14214         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
14215         * tests/test-stdlib.c: Include test-sys_wait.h.
14216         (main): Invoke test_sys_wait_macros.
14217         * tests/test-sys_wait.c: Include test-sys_wait.h.
14218         (main): Invoke test_sys_wait_macros.
14219
14220 2010-09-25  Simon Josefsson  <simon@josefsson.org>
14221
14222         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
14223         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
14224         sure Windows sockets are working before calling getaddrinfo.
14225         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
14226         * doc/gnulib.texi (Windows sockets): Fix typo.
14227
14228 2010-09-25  Bruno Haible  <bruno@clisp.org>
14229
14230         Tests for module 'regex-quote'.
14231         * modules/regex-quote-tests: New file.
14232         * tests/test-regex-quote.c: New file.
14233
14234         New module 'regex-quote'.
14235         * lib/regex-quote.h: New file.
14236         * lib/regex-quote.c: New file.
14237         * modules/regex-quote: New file.
14238         Suggested by Reuben Thomas <rrt@sc3d.org>.
14239
14240 2010-09-24  Bruno Haible  <bruno@clisp.org>
14241
14242         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
14243         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
14244
14245 2010-09-23  Bruno Haible  <bruno@clisp.org>
14246
14247         setenv: Relax license.
14248         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
14249         Blake.
14250         Requested by Eric Blake.
14251
14252 2010-09-22  Bruno Haible  <bruno@clisp.org>
14253
14254         termios: Relax license.
14255         * modules/termios (License): Change to LGPLv2+.
14256         Requested by Eric Blake.
14257
14258 2010-09-22  Bruno Haible  <bruno@clisp.org>
14259
14260         threadlib: Allow the package to change the default to 'no'.
14261         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
14262         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
14263         Reported by Paul Eggert.
14264
14265 2010-09-22  Pádraig Brady  <P@draigbrady.com>
14266             Bruno Haible  <bruno@clisp.org>
14267
14268         Fix endless loop in mbmemcasecoll.
14269         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
14270         byte.
14271         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
14272
14273 2010-09-22  Bruno Haible  <bruno@clisp.org>
14274
14275         Tests for module 'memcoll'.
14276         * modules/memcoll-tests: New file.
14277         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
14278
14279         memcoll, xmemcoll: Clarify size vs. length.
14280         * modules/memcoll.c (memcoll0): Clarify specification.
14281         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
14282         passed to collate_error.
14283
14284 2010-09-22  Bruno Haible  <bruno@clisp.org>
14285
14286         Tests for module 'memcasecmp'.
14287         * modules/memcasecmp-tests: New file.
14288         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
14289
14290 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14291
14292         * lib/pthread.in.h: Add split double-inclusion guard, and include
14293         system <pthread.h> if there is one.  Use @@-style as in other
14294         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
14295         pthread.h doesn't.
14296         (pthread_mutexattr_destroy, pthread_mutexattr_init):
14297         (pthread_mutexattr_settype, pthread_mutex_trylock):
14298         New static inline functions, if there's no system <pthread.h>.
14299         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
14300         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
14301         Approximate with mutexes if the system lacks spinlocks, as in
14302         MacOS.
14303         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
14304         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
14305         @@-style.  Check for spinlocks separately.
14306         (gl_PTHREAD_DEFAULTS): New macro.
14307         * modules/pthread: Redo to use a more typical style for in.h files.
14308
14309 2010-09-21  Eric Blake  <eblake@redhat.com>
14310
14311         net_if: enhance tests
14312         * tests/test-net_if.c (main): Move signature checks earlier.
14313         Print failures to stderr.
14314         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14315         Document the bug that we do not yet fix.
14316
14317 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14318
14319         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14320         about gnulib, not GSS.
14321
14322 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14323
14324         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14325         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14326         for Emacs.
14327         * build-aux/pmccabe2html: Make Makefile.am example code more
14328         cut-and-paste friendly.
14329
14330 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14331
14332         * tests/test-net_if.c: New file.
14333         * modules/net_if-tests: New file.
14334
14335 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14336
14337         pthread: add pthread_spin_destroy
14338         * lib/pthread.in.h (pthread_spin_destroy): New function.
14339
14340 2010-09-19  Bruno Haible  <bruno@clisp.org>
14341
14342         gnulib-tool: Fix --help output.
14343         * gnulib-tool (func_usage): Fix help message.
14344         Reported by Reuben Thomas <rrt@sc3d.org>.
14345
14346 2010-09-18  Jim Meyering  <meyering@redhat.com>
14347
14348         maint.mk: avoid unexpanded \n in two diagnostics
14349         * top/maint.mk (sc_prohibit_always_true_header_tests):
14350         Don't use a literal \n in a halt=... assignment.  It would not be
14351         expanded, and the two \n bytes would appear in the diagnostic output
14352         rather than the desired newline.  Use halt=$$(printf ... instead.
14353         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14354
14355 2010-09-18  Bruno Haible  <bruno@clisp.org>
14356
14357         netinet_in: Doc tweak.
14358         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14359         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14360
14361 2010-09-18  Jim Meyering  <meyering@redhat.com>
14362
14363         init.sh: correct an outdated comment
14364         * tests/init.sh (create_exe_shims_):  s/function/alias/
14365
14366         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14367         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14368         a file named "*.exe" is removed between the glob expansion and the
14369         processing of that oddly named file.
14370
14371 2010-09-17  Eric Blake  <eblake@redhat.com>
14372
14373         mirbsd: add some more support
14374         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14375         in BSD family.
14376         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14377         devices as OpenBSD.
14378         * m4/host-os.m4 (mirbsd): Add MirBSD.
14379
14380         tests: fix unportable assumption on sys/wait.h
14381         * tests/test-sys_wait.c (main): Relax test.
14382         * tests/test-stdlib.c (main): Likewise.
14383
14384         init.sh: accomodate directory with no .exes
14385         * tests/init.sh: Accomodate directory containing only scripts.
14386
14387         tests: avoid compiler warning
14388         * tests/test-stdlib.c (main): Use the variable.
14389
14390         fdutimens, fdutimensat: update signature, again
14391         * lib/utimens.h (gl_futimens): Delete, and move signature...
14392         (fdutimens): ...here.
14393         (fdutimensat): Rearrange signature.
14394         (lutimensat): Rename variable for clarity.
14395         * lib/fdutimensat.c (fdutimensat): Update signature.
14396         * lib/utimens.c (fdutimens): Likewise.
14397         (gl_futimens): Delete.
14398         (utimens, lutimens): Update callers.
14399         * lib/futimens.c (futimens): Likewise.
14400         * tests/test-fdutimensat.c: Likewise.
14401         * tests/test-utimens.c: Likewise.
14402         * tests/test-futimens.h: Update comment.
14403         * NEWS: Mention this.
14404         Suggested by Paul Eggert.
14405
14406 2010-09-17  Bruno Haible  <bruno@clisp.org>
14407
14408         Take over the maintenance of some older macros from Autoconf.
14409         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14410         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14411         GNU Autoconf.
14412         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14413         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14414
14415 2010-09-17  Eric Blake  <eblake@redhat.com>
14416
14417         fdutimensat: drop atflag validation
14418         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14419         with valid fd, to close a race scenario where futimens is
14420         unsupported and FILE was replaced by a symlink.
14421         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14422         accordingly.
14423         Suggested by Paul Eggert.
14424
14425 2010-09-16  Bruno Haible  <bruno@clisp.org>
14426
14427         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14428         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14429
14430 2010-09-16  Bruno Haible  <bruno@clisp.org>
14431
14432         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14433         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14434         login_tty exists.
14435         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14436
14437 2010-09-16  Bruno Haible  <bruno@clisp.org>
14438
14439         login_tty: Make the replacement code work on BSD systems.
14440         * lib/login_tty.c: Include <sys/ioctl.h>.
14441         (login_tty): Use ioctl TIOCSCTTY when available.
14442         * modules/login_tty (Depends-on): Add sys_ioctl.
14443         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14444
14445 2010-09-16  Bruno Haible  <bruno@clisp.org>
14446
14447         login_tty: Stricter unit test.
14448         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14449         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14450         and tcgetsid() after login_tty.
14451         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14452
14453 2010-09-16  Bruno Haible  <bruno@clisp.org>
14454
14455         New module 'tcgetsid'.
14456         * lib/tcgetsid.c: New file.
14457         * m4/tcgetsid.m4: New file.
14458         * modules/tcgetsid: New file.
14459         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14460         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14461         GNULIB_TCGETSID, HAVE_TCGETSID.
14462         * lib/termios.in.h: Include <sys/types.h>.
14463         (tcgetsid): New declaration.
14464         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14465         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14466         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14467         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14468
14469 2010-09-16  Bruno Haible  <bruno@clisp.org>
14470
14471         Tests for module 'termios'.
14472         * modules/termios-c++-tests: New file.
14473         * modules/termios-tests: New file.
14474         * tests/test-termios-c++.cc: New file.
14475         * tests/test-termios.c: New file.
14476
14477         New module 'termios'.
14478         * modules/termios: New file.
14479         * lib/termios.in.h: New file.
14480         * m4/termios_h.m4: New file.
14481         * doc/posix-headers/termios.texi: Mention the new module.
14482
14483 2010-09-16  Eric Blake  <eblake@redhat.com>
14484
14485         fdutimensat: add an atflag parameter
14486         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14487         * lib/utimens.h (fdutimensat): Update prototype.
14488         * tests/test-fdutimensat.c: Adjust test to match.
14489         * NEWS: Document the change.
14490         Suggested by Paul Eggert.
14491
14492 2010-09-16  Bruno Haible  <bruno@clisp.org>
14493
14494         Fix typos in comments.
14495         * lib/striconveh.h: Fix typo in comment.
14496         * lib/login_tty.c (login_tty): Likewise.
14497
14498 2010-09-15  Bruno Haible  <bruno@clisp.org>
14499
14500         stdlib: clarify MirBSD WEXITSTATUS bug
14501         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14502         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14503
14504 2010-09-15  Eric Blake  <eblake@redhat.com>
14505
14506         stdlib: work around MirBSD WEXITSTATUS bug
14507         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14508         * modules/stdlib (Depends-on): Add sys_wait.
14509         * tests/test-sys_wait.c (main): Enhance test.
14510         * tests/test-stdlib.c (main): Likewise.
14511         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14512
14513         docs: mention MacOS issue with WEXITSTATUS(constant)
14514         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14515         issue.
14516         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14517
14518         strnlen: add tests
14519         * modules/strnlen-tests: New file.
14520         * tests/test-strnlen.c: Likewise.
14521
14522 2010-09-14  Bruno Haible  <bruno@clisp.org>
14523
14524         unistr/base: Avoid link errors when module 'libunistring' is also used.
14525         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14526         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
14527         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
14528         Declare also when HAVE_LIBUNISTRING is set.
14529         Reported by Pádraig Brady <P@draigbrady.com>.
14530
14531 2010-09-14  Eric Blake  <eblake@redhat.com>
14532
14533         test-rawmemchr: make more robust
14534         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
14535         (Depends-on, configure.ac): Add needed prerequisites to use it.
14536         * modules/memchr-tests (Files, Depends-on, configure.ac):
14537         Likewise, to avoid implicit reliance on memchr module prereqs.
14538         * tests/test-memchr.c (main): Ensure proper masking.
14539         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
14540         reads.
14541
14542         memchr: detect glibc Alpha bug
14543         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
14544         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
14545         Alpha.
14546         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
14547         * tests/test-memchr.c (main): Enhance test.
14548         Reported by Nelson H. F. Beebe.
14549
14550 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14551
14552         fts, getcwd, glob: audit for dirfd returning -1
14553         * lib/fts.c (opendir): Remove #define; no longer used.
14554         (opendirat): New arg PDIR_FD.  All callers changed.
14555         (fts_build, _opendir2): Use new opendirat to avoid the need for
14556         dirfd, or for checking whether dirfd returns a negative value.
14557         Don't use opendir; always use openat followed by fdopendir.
14558         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
14559         it.
14560         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
14561         returns -1 here.
14562         * modules/fts (Depends-on): Remove dirfd.
14563         * modules/getcwd (Depends-on): Likewise.
14564
14565 2010-09-13  Eric Blake  <eblake@redhat.com>
14566
14567         float: fix broken MirBSD header
14568         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
14569         * doc/posix-headers/float.texi (float.h): Document it.
14570
14571 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14572
14573         fts: use O_NOFOLLOW to avoid race condition when opening a directory
14574         * lib/fts.c (opendirat): New arg extra_flags.
14575         (__opendir2): Use it to avoid following symlinks when opening
14576         a directory, if symlinks are not supposed to be followed.  See
14577         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
14578
14579         fdopendir: preserve argument fd before returning
14580         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
14581         (fdopendir_with_dup, fd_clone_opendir): New static functions.
14582         (fdopendir): Use them, arranging for FD to be open to the same
14583         directory that it was when it started.  (It might be temporarily
14584         closed while fdopendir is running, so this not thread- or
14585         signal-safe.)  Be careful to do the right thing even when file
14586         descriptors are scarce and dup fails with errno == EMFILE.  See
14587         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
14588
14589 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
14590
14591         regex: Pass the system regex if its only problem is 32-bit regoff_t.
14592         * NEWS: Document change.
14593         * m4/regex.m4: Disable test for regoff_t size.
14594
14595 2010-09-13  Jim Meyering  <meyering@redhat.com>
14596
14597         fts: don't operate on an invalid file descriptor after failed dup
14598         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
14599         negative file descriptor.
14600
14601 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14602
14603         savedir: add streamsavedir, deprecate fdsavedir
14604         * NEWS: Mention deprecation of fdsavedir.
14605         * lib/savedir.c (streamsavedir): New extern function, whose name
14606         ends in "savedir" to be consistent with the others.  This differs
14607         from savedirstream in that it doesn't close its argument.  The
14608         next version of GNU tar will use this instead of fdsavedir, to
14609         avoid some race conditions and conserve file descriptors.
14610         (savedirstream): Reimplement as a wrapper around streamsavedir.
14611         (fdsavedir): Add a comment deprecating this function.  As far as
14612         I know, only GNU tar used it, and GNU tar doesn't need it any more.
14613         * lib/savedir.h (streamsavedir): New decl.
14614         (fdsavedir): Add a comment deprecating this.
14615
14616 2010-09-10  Bruno Haible  <bruno@clisp.org>
14617
14618         langinfo: Fix last commit.
14619         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14620         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14621         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14622
14623 2010-09-10  Bruno Haible  <bruno@clisp.org>
14624
14625         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14626         * lib/progreloc.c (O_EXEC): Define fallback.
14627
14628 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14629
14630         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14631         * NEWS: Document recent changes to fcntl-h.
14632         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14633         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14634         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14635         Similarly for O_SEARCH; this last was already true, but not documented.
14636         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14637         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14638         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14639         Likewise.
14640         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14641         is zero, not whether it is defined.
14642         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14643         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14644         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14645
14646 2010-09-10  Bruno Haible  <bruno@clisp.org>
14647
14648         langinfo, nl_langinfo: Fix for IRIX 5.3.
14649         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14650         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14651         HAVE_LANGINFO_YESEXPR.
14652         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14653         HAVE_LANGINFO_YESEXPR.
14654         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14655         HAVE_LANGINFO_T_FMT_AMPM is 0.
14656         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14657         HAVE_LANGINFO_YESEXPR is 0.
14658         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14659         NOEXPR.
14660         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14661         * doc/posix-functions/nl_langinfo.texi: Likewise.
14662         Reported by Eric Blake.
14663
14664 2010-09-10  Bruno Haible  <bruno@clisp.org>
14665
14666         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14667         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14668         on FreeBSD 8.0 and OpenBSD 4.6.
14669         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14670         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14671         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14672         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14673         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14674         ac_includes_default.
14675         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14676
14677 2010-09-09  Eric Blake  <eblake@redhat.com>
14678
14679         strsignal: work around NetBSD bug
14680         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14681         * lib/string.in.h (includes): Likewise.
14682         * doc/posix-functions/strsignal.texi (strsignal): Document the
14683         bug.
14684         Reported by Nelson H. F. Beebe.
14685
14686         gnulib-tool: work with NetBSD /bin/sh
14687         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14688         (func_get_description, func_get_comment, func_get_status)
14689         (func_get_notice, func_get_applicability, func_get_filelist)
14690         (func_get_dependencies, func_get_autoconf_early_snippet)
14691         (func_get_autoconf_snippet, func_get_automake_snippet)
14692         (func_get_include_directive, func_get_link_directive)
14693         (func_get_license, func_get_maintainer, func_import): Avoid
14694         shell syntax errors from parsing syntax extensions.
14695
14696 2010-09-09  Bruno Haible  <bruno@clisp.org>
14697
14698         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14699         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
14700         a reliable way to determine whether the 'alias' command works.
14701
14702 2010-09-08  Jim Meyering  <meyering@redhat.com>
14703
14704         init.sh: penalize a set-x-impaired shell; don't disqualify it
14705         * tests/init.sh: Too many shells corrupt application stderr when
14706         you set -x, so we can't afford to disqualify them, since at least
14707         on Irix-6.5, that would disqualify all bourne shells.
14708         Instead, use a two-pass approach.
14709         On the first pass, try to find a shell that meets the stricter
14710         condition that set -x does not corrupt stderr.
14711         If no shell meets the stricter condition, retest each candidate
14712         shell, but without that extra condition.  Finally, when
14713         VERBOSE=yes is requested and set -x might cause trouble, simply
14714         issue a warning and refrain from enabling debug output.
14715
14716 2010-09-08  Eric Blake  <eblake@redhat.com>
14717
14718         unsetenv: fix OpenBSD bug
14719         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
14720         * doc/posix-functions/unsetenv.texi (unsetenv): Update
14721         documentation.
14722         Reported by Jim Meyering.
14723
14724         strtod: work around IRIX 6.5 bug
14725         * lib/strtod.c (strtod): Reparse number on shorter string if
14726         exponent parse was invalid.
14727         * tests/test-strtod.c (main): Add check for "0x1p 2".
14728         Reported by Tom G. Christensen.
14729
14730         getopt: optimize previous patch
14731         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
14732         empty variable.  Speed up awk script.
14733         Reported by Paolo Bonzini.
14734
14735 2010-09-08  Jim Meyering  <meyering@redhat.com>
14736
14737         test.sh: disqualify shells for which set -x corrupts stderr
14738         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
14739         and OpenBSD 4.7.  They make it so with "set -x", environment settings
14740         appear in stderr output.  For example, this command:
14741             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
14742         prints "P=1" on those two systems:
14743
14744 2010-09-08  Bruno Haible  <bruno@clisp.org>
14745
14746         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14747         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
14748         commands, because some shells ignore redirections when there is an
14749         error in the command lookup.
14750         Reported by Eric Blake.
14751
14752 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
14753
14754         * lib/regex.h: Fix a mention of `regex_compile' (should be
14755         `re_compile_pattern').
14756         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
14757         (re_set_registers): Correct name of parameter in comment.
14758
14759         * doc/regex.texi: Add documentation for missing syntax flags.
14760         Remove commented-out documentation of defunct syntax option
14761         RE_NO_EMPTY_ALTS.
14762         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
14763         Add documentation of re_set_registers.
14764         Document trick to re-use a pattern buffer by setting fastmap manually.
14765         Update documentation of struct re_pattern_buffer per public members.
14766         Uncomment documentation of equivalence class operators and
14767         collating symbol operators, since they are now implemented,
14768         Explain leftmost-longest matching in relation to alternatives.
14769         Tidy documentation of substring matching.
14770         Remove POSIX documentation, which is done better in
14771         glibc, and refer the reader there. Keep BSD API documentation, as
14772         that is not readily available elsewhere.
14773
14774 2010-09-07  Eric Blake  <eblake@redhat.com>
14775
14776         getopt: handle POSIXLY_CORRECT set but not exported
14777         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
14778         export state of POSIXLY_CORRECT, due to bash set -o posix.
14779         Reported by Dustin J. Mitchell.
14780
14781 2010-09-05  Bruno Haible  <bruno@clisp.org>
14782
14783         gnulib-tool: Highlight the changed options.
14784         * gnulib-tool (func_usage): Display the --import, --add-import,
14785         --remove-import explanations in bold font.
14786
14787 2010-09-06  Karl Berry  <karl@gnu.org>
14788
14789         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
14790
14791 2010-09-05  Bruno Haible  <bruno@clisp.org>
14792
14793         uniwidth/width: Update comment.
14794         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
14795         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
14796
14797 2010-09-05  Bruno Haible  <bruno@clisp.org>
14798
14799         isinf, isnan: Relax license.
14800         * modules/isinf (License): Change from GPL to LGPL, with consent from
14801         Ben Pfaff.
14802         * modules/isnan (License): Likewise.
14803         Requested by Ludovic Courtès.
14804
14805 2010-09-04  Bruno Haible  <bruno@clisp.org>
14806
14807         gnulib-tool: Help migration from --import to --add-import or --update.
14808         * gnulib-tool: Emit a verbose error message when --import is used
14809         without any module name.
14810
14811 2010-09-04  Bruno Haible  <bruno@clisp.org>
14812
14813         Update doc about gnulib-tool.
14814         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
14815         'gnulib-tool --update' in more detail.
14816         Reported by Eric Blake.
14817
14818 2010-09-04  Bruno Haible  <bruno@clisp.org>
14819
14820         gnulib-tool: Change --import. New options --add/remove-import.
14821         * gnulib-tool: New options --add-import, --remove-import.
14822         (func_usage): Document them.
14823         (have_associative): Define always.
14824         (func_import): In import mode, don't merge the specified settings with
14825         the cached settings. Implement remove-import mode.
14826         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
14827         Explain when to use them versus --import.
14828         (Simple update): Use --add-import instead of --import.
14829         * NEWS: Mention the change.
14830
14831 2010-09-04  Bruno Haible  <bruno@clisp.org>
14832
14833         * doc/gnulib-tool.texi (Initial import): Update paragraph about
14834         separate gnulib.mk.
14835
14836 2010-09-04  Bruno Haible  <bruno@clisp.org>
14837
14838         gnulib-tool: Don't talk about CVS any more.
14839         * gnulib-tool (func_usage, func_import): Write "version control"
14840         instead of CVS.
14841
14842 2010-09-04  Jim Meyering  <meyering@redhat.com>
14843
14844         maint.mk: avoid obscure sc_copyright_check failure in coreutils
14845         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
14846         false positives (whose names may be ill-chosen) when searching
14847         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
14848         would cause a false-positive.
14849
14850         avoid coreutils "make distcheck" failure
14851         Coreutils tests with an absolute build directory name that contains
14852         a space.  Not quoting this directory name caused a failure.
14853         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
14854         * tests/test-vc-list-files-cvs.sh: Likewise.
14855
14856 2010-09-04  Bruno Haible  <bruno@clisp.org>
14857
14858         gnulib-tool: Avoid error when run in a package without Makefile.am.
14859         * gnulib-tool: When collecting the m4dirs in a package that does not
14860         have a Makefile.am, eliminate those directories that contain no
14861         gnulib-cache.m4. Fix expression that counts these directories.
14862
14863 2010-09-04  Bruno Haible  <bruno@clisp.org>
14864
14865         update-copyright test: Improve output when perl is missing or too old.
14866         * tests/test-update-copyright.sh: Move test of Perl version down after
14867         the test whether Perl exists. Provide an explanation relating Perl's
14868         error message to Automake's SKIP: message.
14869
14870 2010-09-04  Bruno Haible  <bruno@clisp.org>
14871
14872         Don't augment PATH in TESTS_ENVIRONMENT.
14873         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
14874         set abs_aux_dir instead of augmenting PATH.
14875         * modules/vc-list-files-tests (Makefile.am): Likewise.
14876         * tests/test-update-copyright.sh: Augment PATH here.
14877         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
14878         path_prepend_.
14879         * tests/test-vc-list-files-git.sh: Likewise.
14880
14881 2010-09-04  Jim Meyering  <meyering@redhat.com>
14882
14883         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
14884         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
14885
14886 2010-09-04  Bruno Haible  <bruno@clisp.org>
14887
14888         strdup: Fix compilation error in C++ mode.
14889         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
14890         the macro.
14891
14892 2010-09-04  Bruno Haible  <bruno@clisp.org>
14893
14894         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
14895         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
14896         macro into a function.
14897         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14898
14899 2010-09-04  Bruno Haible  <bruno@clisp.org>
14900
14901         Set PATH_SEPARATOR the same way autoconf does.
14902         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
14903         the value of PATH_SEPARATOR the same way autoconf-generated configure
14904         scripts do.
14905         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
14906         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14907
14908 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14909
14910         Set PATH_SEPARATOR the same way autoconf does.
14911         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
14912         the same way autoconf-generated configure scripts do.
14913         * posix-modules: Likewise.
14914
14915 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14916
14917         hash: fix safe_hasher const typo
14918         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
14919         const; otherwise, there is a type error later.
14920
14921 2010-09-02  Jim Meyering  <meyering@redhat.com>
14922
14923         test-update-copyright.sh: require perl 5.8.0
14924         * tests/test-update-copyright.sh: Require 5.8.0,
14925         which Tom G. Christensen has confirmed is adequate,
14926         while 5.6.1 is not.
14927
14928 2010-09-02  Eric Blake  <eblake@redhat.com>
14929
14930         tests: init.sh improvements for re-exec'ing with zsh
14931         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
14932         -vx through shell re-exec.
14933         Reported by Tom G. Christensen.
14934
14935         wctype: fix typo in previous commit
14936         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
14937         Reported by Ludovic Courtès.
14938
14939 2010-09-02  Jim Meyering  <meyering@redhat.com>
14940
14941         test-update-copyright.sh: skip test if Perl is too old
14942         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
14943         Reported by Tom G. Christensen.
14944
14945 2010-09-02  Bruno Haible  <bruno@clisp.org>
14946
14947         wctype: Avoid compilation error on IRIX 6.5.30.
14948         * lib/wctype.in.h (iswblank): Declare with a replacement if
14949         REPLACE_ISWBLANK is set.
14950         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
14951         declared. Set REPLACE_ISWBLANK.
14952         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
14953         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
14954         * doc/posix-headers/wctype.texi: Likewise.
14955         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14956
14957 2010-09-01  Bruno Haible  <bruno@clisp.org>
14958
14959         New module 'socketlib'.
14960         * modules/socketlib: New file.
14961         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
14962         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
14963         * modules/sockets (Depends-on): Add socketlib.
14964         Suggested by Sam Steingold <sds@gnu.org>.
14965
14966 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14967
14968         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
14969
14970         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
14971         when one needs search access to a directory but not read access.
14972         On systems where it is available, it works in some cases where
14973         O_RDONLY does not, namely on directories that are searchable but
14974         not readable, and which need only to be searchable.  If O_SEARCH
14975         is not available, fall back to the traditional method of using
14976         O_RDONLY.
14977
14978         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
14979         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
14980         when opening a directory that needs only to be searchable.
14981         * lib/chdir-safer.c (chdir_no_follow): Likewise.
14982         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
14983         * lib/openat-proc.c (openat_proc_name): Likewise.
14984         * lib/openat.c (openat_needs_fchdir): Likewise.
14985         * lib/save-cwd.c (save_cwd): Likewise.
14986         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
14987
14988 2010-08-28  Bruno Haible  <bruno@clisp.org>
14989
14990         New module 'host-cpu-c-abi'.
14991         * modules/host-cpu-c-abi: New file.
14992         * m4/host-cpu-c-abi.m4: New file, based on part of
14993         clisp/src/m4/general.m4.
14994         Requested by Sam Steingold <sds@gnu.org>.
14995
14996 2010-08-31  Eric Blake  <eblake@redhat.com>
14997         and Jim Meyering  <meyering@redhat.com>
14998
14999         hash: factor, and guard against misbehaving hasher function
15000         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
15001         of table->hasher's return value.  Also protect against a hash value
15002         so large that adding it to table->bucket results in a NULL pointer.
15003         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
15004         Use it in place of open-coded check-and-abort.
15005
15006 2010-08-30  Bruno Haible  <bruno@clisp.org>
15007
15008         hash: silence spurious clang warning
15009         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
15010         Reported by Eric Blake.
15011
15012 2010-08-30  Eric Blake  <eblake@redhat.com>
15013
15014         strstr, memmem, strcasestr: avoid leaked shell message
15015         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
15016         FreeBSD.
15017         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15018         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15019
15020         tests: silence clang warning
15021         * tests/test-malloca.c (do_allocation): Avoid dead store.
15022
15023 2010-08-29  Bruno Haible  <bruno@clisp.org>
15024
15025         gettext: Fix recent mistake.
15026         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
15027
15028 2010-08-29  Bruno Haible  <bruno@clisp.org>
15029
15030         selinux-h: Offer a --without-selinux option.
15031         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
15032         --without-selinux was specified, skip all tests and define
15033         HAVE_SELINUX_SELINUX_H to 0.
15034         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
15035         set LIB_SELINUX to empty.
15036         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
15037         gl_LIBSELINUX. If --without-selinux was specified, replace
15038         selinux/context.h.
15039         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
15040
15041 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15042             Bruno Haible  <bruno@clisp.org>
15043
15044         Make the module 'realloc-gnu' work again on AIX and OSF/1.
15045         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
15046         of HAVE_REALLOC.
15047         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
15048         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
15049         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
15050         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15051
15052 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15053             Bruno Haible  <bruno@clisp.org>
15054
15055         Make the module 'calloc-gnu' work again on AIX and OSF/1.
15056         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
15057         HAVE_CALLOC.
15058         * lib/xmalloc.c: Update accordingly.
15059         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
15060         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
15061         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
15062
15063 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15064             Bruno Haible  <bruno@clisp.org>
15065
15066         Make the module 'malloc-gnu' work again on AIX and OSF/1.
15067         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
15068         HAVE_MALLOC.
15069         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
15070         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
15071         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15072
15073 2010-08-29  Bruno Haible  <bruno@clisp.org>
15074
15075         Update modules list.
15076         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15077         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
15078         (String handling <string.h>): Add astrxfrm.
15079         (File system functions): Add readlinkat.
15080
15081 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15082
15083         Tests for module 'realloc-gnu'.
15084         * modules/realloc-gnu-tests: New file.
15085         * tests/test-realloc-gnu.c: New file.
15086
15087         Tests for module 'calloc-gnu'.
15088         * modules/calloc-gnu-tests: New file.
15089         * tests/test-calloc-gnu.c: New file.
15090
15091         Tests for module 'malloc-gnu'.
15092         * modules/malloc-gnu-tests: New file.
15093         * tests/test-malloc-gnu.c: New file.
15094
15095 2010-08-28  Bruno Haible  <bruno@clisp.org>
15096
15097         Rename module 'realloc' -> 'realloc-gnu'.
15098         * modules/realloc-gnu: New file, copied from modules/realloc.
15099         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
15100         obsolete.
15101         * modules/mgetgroups (Depends-on): Update.
15102         * doc/posix-functions/realloc.texi: Update.
15103         * NEWS: Mention the change.
15104
15105         Rename module 'calloc' -> 'calloc-gnu'.
15106         * modules/calloc-gnu: New file, copied from modules/calloc.
15107         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
15108         obsolete.
15109         * doc/posix-functions/calloc.texi: Update.
15110         * NEWS: Mention the change.
15111
15112         Rename module 'malloc' -> 'malloc-gnu'.
15113         * modules/malloc-gnu: New file, copied from modules/malloc.
15114         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
15115         obsolete.
15116         * modules/argp (Depends-on): Update.
15117         * modules/regex (Depends-on): Update.
15118         * doc/posix-functions/malloc.texi: Update.
15119         * NEWS: Mention the change.
15120
15121 2010-08-28  Eric Blake  <eblake@redhat.com>
15122
15123         pread, pwrite: add missing dependency
15124         * modules/pread (Depends-on): Add extensions.
15125         * modules/pwrite (Depends-on): Likewise.
15126
15127 2010-08-28  Bruno Haible  <bruno@clisp.org>
15128
15129         unistr/u*-strchr: Fix tests dependencies.
15130         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
15131         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
15132         Reported by Ian Beckwith <ianb@erislabs.net>.
15133
15134 2010-08-28  Bruno Haible  <bruno@clisp.org>
15135
15136         read-file: Don't occupy too much unused memory.
15137         * lib/read-file.c (fread_file): Shrink the buffer at the end.
15138
15139 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
15140             Eric Blake  <eblake@redhat.com>
15141             Bruno Haible  <bruno@clisp.org>
15142
15143         read-file: Avoid memory reallocations with regular files.
15144         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
15145         (fread_file): With regular files, use the remaining length as the
15146         initial buffer size.  Check against overflow.
15147         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
15148         sys_stat.
15149
15150 2010-08-28  Bruno Haible  <bruno@clisp.org>
15151
15152         ftello: Relax license.
15153         * modules/ftello (License): Relax to LGPLv2+.
15154         Reported by Eric Blake.
15155
15156 2010-08-28  Bruno Haible  <bruno@clisp.org>
15157
15158         Avoid relocwrapper link errors due to gnulib replacement functions.
15159         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
15160         function.
15161         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15162
15163 2010-08-28  Bruno Haible  <bruno@clisp.org>
15164
15165         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
15166         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
15167         defined.
15168         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
15169         Suggested by Eric Blake.
15170
15171 2010-08-28  Bruno Haible  <bruno@clisp.org>
15172
15173         sys_socket, netdb: Ensure socklen_t gets defined.
15174         * modules/sys_socket (Depends-on): Add socklen.
15175         * modules/netdb (Depends-on): Likewise.
15176         * modules/getaddrinfo (Depends-on): Remove socklen.
15177         * modules/getsockopt (Depends-on): Likewise.
15178         * modules/setsockopt (Depends-on): Likewise.
15179         * tests/test-sys_socket.c: Check that socklen_t is defined.
15180         * tests/test-netdb.c: Likewise.
15181         * m4/socklen.m4: Update comments.
15182         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15183
15184 2010-08-27  Eric Blake  <eblake@redhat.com>
15185
15186         login_tty: add missing dependency
15187         * modules/login_tty (Depends-on): Add pty.
15188
15189 2010-08-26  Eric Blake  <eblake@redhat.com>
15190
15191         lib-symbol-versions: fix m4 quoting
15192         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
15193         format for AC_LINK_IFELSE.
15194
15195         glob: fix compile test
15196         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
15197
15198         btowc: fix missing file
15199         * modules/btowc (Files): Also ship locale-fr.m4.
15200
15201         lseek: fix link test
15202         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
15203         AC_LINK_IFELSE.
15204
15205         include_next: silence autoconf 2.68 warning
15206         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
15207         AC_COMPILE_IFELSE as special.
15208         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
15209         autoconf < 2.68.
15210
15211         acl: fix compilation test
15212         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
15213         AC_COMPILE_IFELSE.
15214
15215 2010-08-26  Bruno Haible  <bruno@clisp.org>
15216
15217         Modernize AC_TRY_RUN invocations.
15218         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
15219         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15220         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
15221         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
15222         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
15223         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15224         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15225         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15226         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15227         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15228         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15229         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15230         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15231         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15232         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15233         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15234         gl_MBRLEN_NUL_RETVAL): Likewise.
15235         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15236         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15237         Likewise.
15238         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15239         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15240         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15241         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15242         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
15243         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
15244         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
15245         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15246         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
15247         Likewise.
15248         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15249         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
15250         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15251         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15252         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15253         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15254         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15255         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
15256         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15257         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15258
15259 2010-08-26  Bruno Haible  <bruno@clisp.org>
15260
15261         Modernize AC_TRY_LINK invocations.
15262         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
15263         AC_TRY_LINK.
15264         * m4/argp.m4 (gl_ARGP): Likewise.
15265         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15266         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15267         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15268         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15269         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15270         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
15271         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15272         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15273         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15274         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15275         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15276         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
15277         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
15278         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15279         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15280         * m4/hostent.m4 (gl_HOSTENT): Likewise.
15281         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15282         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
15283         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15284         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
15285         Likewise.
15286         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
15287         Likewise.
15288         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
15289         Likewise.
15290         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15291         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
15292         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
15293         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15294         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15295         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15296         * m4/servent.m4 (gl_SERVENT): Likewise.
15297         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15298         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15299         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15300         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15301         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15302         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15303         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15304         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15305         * modules/tsearch-tests (configure.ac): Likewise.
15306
15307 2010-08-26  Bruno Haible  <bruno@clisp.org>
15308
15309         Modernize AC_TRY_COMPILE invocations.
15310         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15311         AC_TRY_COMPILE.
15312         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15313         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15314         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15315         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15316         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15317         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15318         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15319         * m4/lock.m4 (gl_LOCK): Likewise.
15320         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15321         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15322         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15323         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15324         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15325         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15326         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15327         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15328         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15329         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15330         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15331         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15332         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15333         extraneous semicolon.
15334
15335 2010-08-26  Jim Meyering  <meyering@redhat.com>
15336
15337         stat-time: relax license LGPL
15338         * modules/stat-time (License): Change from GPL to LGPL,
15339         with consent from all contributors, for use in libguile.
15340         Requested by Ludovic Courtès.
15341
15342 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15343
15344         poll: return immediately on POLLHUP.
15345         * lib/poll.c (poll): Always set timeout before wait_timeout is
15346         computed.
15347
15348 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15349
15350         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15351         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15352         rmdir ("dir/.//"), unlinkat.
15353
15354 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15355
15356         stdbool: avoid spurious failure with modern xlc
15357         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15358
15359 2010-08-24  Bruno Haible  <bruno@clisp.org>
15360
15361         getloadavg: simplify code
15362         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15363         gl_have_func. Update comments.
15364
15365 2010-08-24  Eric Blake  <eblake@redhat.com>
15366
15367         getloadavg: don't define SVR4 on cygwin
15368         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15369         only define SVR4 when -lkvm is required.
15370         Reported by Yaakov Selkowitz.
15371
15372 2010-08-24  Bruno Haible  <bruno@clisp.org>
15373
15374         priv-set: fix comment
15375         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15376
15377 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15378
15379         priv-set: fix comments
15380         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15381         to match code, as suggested by David Bartley in:
15382         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15383
15384 2010-08-23  Eric Blake  <eblake@redhat.com>
15385
15386         stdbool: avoid rejecting clang
15387         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15388         * tests/test-stdbool.c: Enable more tests if using the system
15389         <stdbool.h> instead of the gnulib replacement.
15390         (main): Move xlc bug test to a runtime test for all compilers.
15391         Reported by Anders Kaseorg.
15392
15393         argz: fix shell quoting issue
15394         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15395         Reported by Charles Wilson.
15396
15397 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15398             Erik Faye-Lund <kusmabite@gmail.com>
15399
15400         poll, select: handle ERROR_BROKEN_PIPE.
15401         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15402         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15403         * lib/select.c (win32_compute_revents): Do not mark a pipe
15404         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15405
15406 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15407
15408         fts: allow compilation with C++
15409         * lib/fts_.h: Specify extern "C" linkage with C++.
15410
15411 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15412
15413         Fix gnulib-tool sed script de-commentation for AIX sed.
15414         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15415         sed.
15416
15417 2010-08-17  Eric Blake  <eblake@redhat.com>
15418
15419         test-stddef: test for (some) offsetof bugs
15420         * tests/test-stddef.c: Enhance test to ensure correct type of
15421         offsetof.
15422         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15423         that we are not fixing at this time.
15424
15425 2010-08-15  Bruno Haible  <bruno@clisp.org>
15426
15427         stpncpy: Allow stpncpy to be defined as a macro.
15428         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15429         if it's already correctly declared.
15430         * lib/string.in.h (stpncpy): Undefine before redefining.
15431         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15432
15433 2010-08-14  Bruno Haible  <bruno@clisp.org>
15434
15435         Rename module 'memxfrm' to 'amemxfrm'.
15436         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15437         (amemxfrm): Renamed from memxfrm.
15438         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15439         (amemxfrm): Renamed from memxfrm.
15440         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15441         * NEWS: Mention the change.
15442         * MODULES.html.sh (String handling <string.h>): Update.
15443         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15444         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15445         * lib/unicase/u16-casexfrm.c: Likewise.
15446         * lib/unicase/u32-casexfrm.c: Likewise.
15447         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15448         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15449         * lib/uninorm/u16-normxfrm.c: Likewise.
15450         * lib/uninorm/u32-normxfrm.c: Likewise.
15451         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15452         memxfrm.
15453         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15454         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15455         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15456         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15457         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15458         Suggested by Paul Eggert.
15459
15460 2010-08-14  Bruno Haible  <bruno@clisp.org>
15461
15462         Tests for module 'astrxfrm'.
15463         * modules/astrxfrm-tests: New file.
15464         * tests/test-astrxfrm.c: New file.
15465
15466         New module 'astrxfrm'.
15467         * lib/astrxfrm.h: New file.
15468         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15469         * modules/astrxfrm: New file.
15470
15471 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15472
15473         regex: Tweak doc.
15474         * doc/regex.texi (Overview): Don't mention regex.c.
15475         (GNU Regular Expression Compiling): Likewise.
15476         (Match-end-of-line Operator): Mention 'not_eol'.
15477
15478 2010-08-14  Brian Gough  <bjg@gnu.org>
15479             Bruno Haible  <bruno@clisp.org>
15480
15481         git-merge-changelog: add doc relating to use with bzr and hg.
15482         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15483
15484 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15485
15486         pthread: fix pthread.h creation for srcdir != builddir
15487         * modules/pthread (Makefile.am): Fix the rule to work also in a
15488         non-srcdir build.
15489
15490 2010-08-13  Karl Berry  <karl@gnu.org>
15491
15492         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15493         * doc/posix-*/*: force line break before @url of POSIX
15494         specifications.
15495         Suggested by Werner Lemberg.
15496
15497 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15498
15499         strtod: fix const diagnostic
15500         * lib/strtod.c (strtod): Don't assign const char * to char *,
15501         as this elicits a warning from GCC when warnings are enabled.
15502
15503 2010-08-10  Pádraig Brady <P@draigbrady.com>
15504         and Eric Blake  <eblake@redhat.com>
15505
15506         copy-acl: ignore ENOTSUP on HP-UX
15507         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15508         so that it is available for HP-UX.
15509         * lib/copy-acl.c (qcopy_acl): Use it.
15510         Reported by Patrick M. Callahan.
15511
15512 2010-08-10  Eric Blake  <eblake@redhat.com>
15513
15514         open, chown: relax license
15515         * modules/open (License): Change to LGPLv2+, with consent by all
15516         authors, for use in augeas.
15517         * modules/chown (License): Likewise.
15518         * modules/lchown (Likewise): Likewise.
15519         Requested by Adam Stokes.
15520
15521 2010-08-09  Karl Berry  <karl@gnu.org>
15522
15523         * build-aux/ar-lib: new file, import from Automake.
15524         * config/srclist.txt: autocheck for updates.
15525
15526 2010-08-09  Eric Blake  <eblake@redhat.com>
15527
15528         readlinkat: adjust client modules
15529         * modules/areadlinkat (Depends-on): Use readlinkat, not
15530         symlinkat.
15531         * modules/areadlinkat-with-size (Depends-on): Likewise.
15532
15533         mknod: be more vocal about danger of running tests as root
15534         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
15535         root, since that is just asking for problems.
15536         Suggested by Bruno Haible, based on a report by Rainer Tammer.
15537
15538         readlinkat: split into its own module
15539         * modules/symlinkat: Split readlinkat...
15540         * modules/readlinkat: ...into separate module.
15541         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
15542         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
15543         * lib/symlinkat.c (readlinkat): Move...
15544         * lib/readlinkat.c: ...into new file.
15545         * modules/symlinkat-tests: Split readlinkat test...
15546         * modules/readlinkat-tests: ...into separate module.
15547         * tests/test-symlinkat.c: Split...
15548         * tests/test-readlinkat.c: ...into new file.
15549         * NEWS: Document the split.
15550         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15551         * lib/unistd.in.h (readlinkat): Likewise.
15552         Suggested by Bruno Haible.
15553
15554 2010-08-08  Bruno Haible  <bruno@clisp.org>
15555
15556         memxfrm: Speed up.
15557         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
15558         that usually only one call to strxfrm is necessary for each string
15559         part.
15560         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15561
15562 2010-08-07  Karl Berry  <karl@gnu.org>
15563
15564         * doc/posix-headers/limits.texi,
15565         * doc/posix-functions/malloc.texi,
15566         * doc/posix-functions/strsignal.texi: missing @item.
15567         * doc/ld-version-script.texi: spurious leading i.
15568         * doc/regex.texi (Interval Operators): no commas inside @var.
15569
15570 2010-08-01  Bruno Haible  <bruno@clisp.org>
15571
15572         Integrate the regex documentation.
15573         * doc/gnulib.texi: Define 'cn' index.
15574         (Regular expressions): New a chapter that includes regex.texi and
15575         regexprops-generic.texi.
15576         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15577         syntax.
15578
15579         Whitespace cleanup.
15580         * doc/regex.texi: Remove trailing spaces.
15581
15582         Add regex documentation.
15583         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
15584         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
15585         Written by Kathy A. Hargreaves and Karl Berry.
15586
15587 2010-08-01  Bruno Haible  <bruno@clisp.org>
15588
15589         link: Update documentation.
15590         * doc/posix-functions/link.texi: Update regarding Solaris.
15591
15592 2010-07-31  Bruno Haible  <bruno@clisp.org>
15593
15594         Update modules list.
15595         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
15596         (String handling <string.h>): Add memcmp2, memxfrm.
15597         (Container data structures): Add xlist, xsublist, xoset.
15598         (Core language properties): Add alignof, unused-parameter.
15599         (Process control, Numeric conversion functions <stdlib.h>): Renamed
15600         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
15601         (Unibyte characters <ctype.h>): New section.
15602         (String handling <string.h>): New section.
15603         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
15604         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
15605         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
15606         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
15607         tan, tanh, tanl, y0, y1, yn.
15608         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
15609         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
15610         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
15611         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
15612         unlockpt, vdprintf, vdprintf-posix.
15613         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
15614         (File system functions): Add concat-filename, sys_file, sys_ioctl,
15615         xconcat-filename.
15616         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
15617         getdtablesize, pipe2, pipe2-safer.
15618         (Security): New section.
15619         (Networking functions): Add accept4.
15620         (Signal handling): Add sigpipe.
15621         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15622         mbmemcasecoll.
15623         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15624         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15625         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15626         pipe-filter-ii.
15627         (Misc): Add argp-version-etc, login_tty, parse-duration.
15628
15629 2010-07-31  Bruno Haible  <bruno@clisp.org>
15630
15631         Improve doc in MODULES.html.
15632         * modules/linkat (Description): Add the word "function".
15633         * modules/mkfifo (Description): Likewise.
15634         * modules/mknod (Description): Likewise.
15635         * modules/remove (Description): Likewise.
15636         * modules/renameat (Description): Likewise.
15637         * modules/stat (Description): Likewise.
15638         * modules/symlink (Description): Likewise.
15639         * modules/unlink (Description): Likewise.
15640
15641 2010-07-31  Bruno Haible  <bruno@clisp.org>
15642
15643         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15644         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15645         option --enable/disable-c++ instead of --enable/disable-cxx.
15646         * NEWS: Mention the change.
15647
15648 2010-07-31  Bruno Haible  <bruno@clisp.org>
15649
15650         readlink, areadlink: Relax test a bit.
15651         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15652         alternative to ENOTDIR.
15653         * tests/test-areadlink.h (test_areadlink): Likewise.
15654         Reported by Rainer Tammer.
15655
15656 2010-07-31  Bruno Haible  <bruno@clisp.org>
15657
15658         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15659         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15660         character, perform the search using U_STRCHR.
15661         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15662         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15663         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15664         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15665         Suggested by Paolo Bonzini.
15666
15667 2010-07-31  Bruno Haible  <bruno@clisp.org>
15668
15669         unistr/u*-strstr: Fix dependencies.
15670         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15671         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15672         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15673
15674 2010-07-31  Bruno Haible  <bruno@clisp.org>
15675
15676         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15677         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15678         the beginning of the loop.
15679         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15680         cases in 'switch' statement.
15681
15682         unistr/u8-strchr: Fix several bugs.
15683         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15684         the string. When not found, return NULL, not a pointer near the end.
15685
15686         More tests for unistr/u8-strchr.
15687         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15688         that the function does not read past the first occurrence of the byte
15689         being searched.
15690         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15691         * tests/unistr/test-u16-strchr.c (main): New function.
15692         * tests/unistr/test-u32-strchr.c (main): New function.
15693
15694 2010-07-31  Bruno Haible  <bruno@clisp.org>
15695
15696         posix-modules: Ignore backup files of documentation files.
15697         * posix-modules: grep only through files named *.texi.
15698
15699 2010-07-31  Bruno Haible  <bruno@clisp.org>
15700
15701         symlinkat: Fix documentation.
15702         * doc/posix-functions/readlinkat.texi: Fix module name.
15703
15704 2010-07-31  Bruno Haible  <bruno@clisp.org>
15705
15706         fchownat: Replace also when chown has the trailing slash bug.
15707         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
15708         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
15709         introduced on 2010-04-10.
15710         Reported by Rainer Tammer.
15711
15712 2010-07-31  Bruno Haible  <bruno@clisp.org>
15713
15714         linkat: Work around AIX 7.1 bug.
15715         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
15716         whether linkat handles trailing slash correctly. If not, replace linkat
15717         and define LINKAT_TRAILING_SLASH_BUG.
15718         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
15719         check whether (fd1,file1) points to a directory if file1 or file2 ends
15720         in a slash. Code taken from lib/link.c.
15721         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
15722         Reported by Rainer Tammer.
15723
15724 2010-07-31  Bruno Haible  <bruno@clisp.org>
15725
15726         Correctly determine whether pow is available in libc on AIX 7 with xlc.
15727         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
15728         This disables an xlc optimization that was causing wrong test results.
15729         Reported by Rainer Tammer.
15730
15731 2010-07-31  Bruno Haible  <bruno@clisp.org>
15732
15733         iconv: Work around AIX 6.1..7.1 bug.
15734         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
15735         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
15736         cross-compiling, guess no on all versions of AIX.
15737         Reported by Rainer Tammer.
15738
15739 2010-07-31  Bruno Haible  <bruno@clisp.org>
15740
15741         readlink: Relax test a bit.
15742         * tests/test-readlink.h (test_readlink): Allow different errno value
15743         when readlink is called with a file name that ends in / and refers to
15744         a file.
15745         Suggested by Eric Blake.
15746         Reported by Rainer Tammer.
15747
15748 2010-07-31  Bruno Haible  <bruno@clisp.org>
15749
15750         copysign: Does not require -lm on glibc systems.
15751         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
15752         gl_COMMON_DOUBLE_MATHFUNC.
15753         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
15754
15755 2010-07-31  Bruno Haible  <bruno@clisp.org>
15756
15757         duplocale: Work around AIX 7.1 bug.
15758         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
15759         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
15760         * lib/duplocale.c (rpl_duplocale): Update comment.
15761         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
15762         Reported by Rainer Tammer.
15763
15764 2010-07-30  Bruno Haible  <bruno@clisp.org>
15765
15766         dirfd: Avoid link error on AIX 7.1.
15767         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
15768         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
15769         exist, set REPLACE_DIRFD.
15770         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
15771         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
15772         * doc/posix-functions/dirfd.texi: Update.
15773         Reported by Rainer Tammer.
15774
15775 2010-07-30  Eric Blake  <eblake@redhat.com>
15776
15777         strtod: next round of AIX fixes
15778         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
15779         exponent.
15780         * tests/test-strtod.c (main): Enhance tests.
15781         * doc/posix-functions/strtod.texi (strtod): Document next bug.
15782         Reported by Rainer Tammer.
15783
15784         futimens: fix configure check
15785         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
15786         Reported by Bruno Haible.
15787
15788 2010-07-30  Bruno Haible  <bruno@clisp.org>
15789
15790         getline: Update regarding AIX.
15791         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
15792         Reported by Rainer Tammer.
15793
15794 2010-07-30  Bruno Haible  <bruno@clisp.org>
15795
15796         wcwidth: Drop replacement on AIX 7.
15797         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
15798         AIX 7.
15799         Reported by Rainer Tammer.
15800
15801 2010-07-30  Bruno Haible  <bruno@clisp.org>
15802
15803         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
15804         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
15805         a 'char *'.
15806         Reported by Rainer Tammer.
15807
15808 2010-07-30  Bruno Haible  <bruno@clisp.org>
15809
15810         unlink: Update regarding AIX.
15811         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
15812         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
15813         Reported by Rainer Tammer.
15814
15815 2010-07-30  Bruno Haible  <bruno@clisp.org>
15816
15817         symlink: Update regarding AIX.
15818         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
15819         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
15820         Reported by Rainer Tammer.
15821
15822 2010-07-30  Bruno Haible  <bruno@clisp.org>
15823
15824         strndup: Update regarding AIX.
15825         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
15826         AIX 7.
15827         Reported by Rainer Tammer.
15828
15829 2010-07-30  Bruno Haible  <bruno@clisp.org>
15830
15831         stat: Update regarding AIX.
15832         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
15833         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
15834         Reported by Rainer Tammer.
15835
15836 2010-07-30  Bruno Haible  <bruno@clisp.org>
15837
15838         truncl: Fix autoconf test.
15839         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
15840         whether truncl works.
15841         Reported by Rainer Tammer.
15842
15843 2010-07-30  Bruno Haible  <bruno@clisp.org>
15844
15845         round: Update regarding AIX.
15846         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
15847         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
15848         Reported by Rainer Tammer.
15849
15850 2010-07-30  Bruno Haible  <bruno@clisp.org>
15851
15852         rename: Update regarding AIX.
15853         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
15854         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
15855         Reported by Rainer Tammer.
15856
15857 2010-07-30  Bruno Haible  <bruno@clisp.org>
15858
15859         printf.m4: Update regarding AIX.
15860         * m4/printf.m4: Update comments regarding AIX.
15861         Reported by Rainer Tammer.
15862
15863 2010-07-30  Bruno Haible  <bruno@clisp.org>
15864
15865         iconv: Update regarding AIX.
15866         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
15867         AIX 7.
15868         Reported by Rainer Tammer.
15869
15870 2010-07-30  Bruno Haible  <bruno@clisp.org>
15871
15872         getopt: Update regarding AIX.
15873         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
15874         no on AIX.
15875         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
15876         Reported by Rainer Tammer.
15877
15878 2010-07-30  Bruno Haible  <bruno@clisp.org>
15879
15880         ldexpl; Update regarding AIX.
15881         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
15882         on AIX 7.
15883         Reported by Rainer Tammer.
15884
15885 2010-07-30  Bruno Haible  <bruno@clisp.org>
15886
15887         frexpl: Update regarding AIX.
15888         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
15889         on AIX 7.
15890         Reported by Rainer Tammer.
15891
15892 2010-07-30  Bruno Haible  <bruno@clisp.org>
15893
15894         open, fopen: Update regarding AIX.
15895         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
15896         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15897         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
15898         * doc/posix-functions/fopen.texi: Likewise.
15899         Reported by Rainer Tammer.
15900
15901 2010-07-30  Bruno Haible  <bruno@clisp.org>
15902
15903         chown: Update doc regarding AIX.
15904         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
15905         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
15906         Reported by Rainer Tammer.
15907
15908 2010-07-30  Eric Blake  <eblake@redhat.com>
15909
15910         strtod: fix bug in replacement function on AIX
15911         * lib/strtod.c (strtod): Special case broken "0x" parse in
15912         underlying strtod.
15913         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
15914         * doc/posix-functions/strtod.texi (strtod): Likewise.
15915         Reported by Rainer Tammer.
15916
15917 2010-07-30  Bruno Haible  <bruno@clisp.org>
15918
15919         mbrlen: Fix cross-compilation guess for AIX.
15920         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
15921         guess. Leftover from 2008-12-22.
15922
15923 2010-07-30  Bruno Haible  <bruno@clisp.org>
15924
15925         mbrtowc: Fix cross-compilation guess for AIX.
15926         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
15927         guess. Leftover from 2008-12-21.
15928
15929 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
15930
15931         init.sh: work around trap limitation of some shells
15932         * tests/init.sh (setup_): Move exit trap outside of shell function.
15933
15934 2010-07-29  Eric Blake  <eblake@redhat.com>
15935
15936         strtod: aid debugging
15937         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
15938         understanding why strtod is rejected.
15939
15940 2010-07-28  Bruno Haible  <bruno@clisp.org>
15941
15942         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
15943         * lib/unistr/u8-chr.c: Include <string.h>.
15944         * tests/unistr/test-u8-chr.c: Likewise.
15945         * tests/unistr/test-u16-chr.c: Likewise.
15946         * tests/unistr/test-u32-chr.c: Likewise.
15947         * tests/unistr/test-u8-strchr.c: Likewise.
15948         * tests/unistr/test-u16-strchr.c: Likewise.
15949         * tests/unistr/test-u32-strchr.c: Likewise.
15950         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
15951         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
15952         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
15953         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
15954
15955 2010-07-28  Bruno Haible  <bruno@clisp.org>
15956
15957         Use spaces for indentation, not tabs.
15958         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15959
15960 2010-07-27  Bruno Haible  <bruno@clisp.org>
15961
15962         mbspcasecmp: Fix function specification.
15963         * lib/string.in.h (mbspcasecmp): Fix specification comment.
15964         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
15965         Reported by Eric Blake <eblake@redhat.com>.
15966
15967 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
15968
15969         timespec: use cast and not conditional, as truncation isn't possible
15970         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
15971         instead of a conditional.  Comment about the situation in more detail.
15972         This undoes most of the 2009-10-29 patch.
15973
15974 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
15975
15976         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
15977         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
15978         * lib/unistr/u8-strchr.c: Likewise.
15979         * modules/unistr/u8-chr: Depend on memchr.
15980
15981         unistr/u*-strchr: add tests
15982         * modules/unistr/u8-strchr-tests: New file.
15983         * modules/unistr/u16-strchr-tests: New file.
15984         * modules/unistr/u32-strchr-tests: New file.
15985         * tests/unistr/test-strchr.h: New file.
15986         * tests/unistr/test-u8-strchr.c: New file.
15987         * tests/unistr/test-u16-strchr.c: New file.
15988         * tests/unistr/test-u32-strchr.c: New file.
15989
15990         unistr/u*-chr: test multibyte sequences more
15991         * tests/unistr/test-chr.h: Do complete testing of the characters in the
15992         test vector.
15993         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
15994         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
15995         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
15996
15997         unistr/u*-chr: test multibyte sequences
15998         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
15999
16000         unistr/u*-chr: prepare for multibyte tests
16001         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
16002         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
16003         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
16004         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
16005         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
16006         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
16007
16008 2010-07-18  Bruno Haible  <bruno@clisp.org>
16009
16010         unistr/u8-strchr: Optimize non-ASCII argument case.
16011         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
16012         because the first byte often matches anyway.
16013         Reported by Pádraig Brady <P@draigbrady.com>.
16014
16015 2010-07-15  Karl Berry  <karl@gnu.org>
16016
16017         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
16018
16019 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
16020
16021         getcwd: on Solaris, work better if ancestors are inaccessible
16022         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
16023         buffer and size, try again with a large buffer.  This works better
16024         on Solaris, since its getcwd succeeds even if the path to the root
16025         is inaccessible, and this is helpful in common cases such as .zfs
16026         hidden directories.  Problem reported by J Chapman Flack in
16027         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
16028         Use system getcwd if it's declared, not merely if it's partly
16029         working; use the partly-working test only to avoid needless effort
16030         if the system getcwd fails.
16031         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
16032         comment that was already obsolete and is now even more obsolete.
16033         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
16034         now might call strdup.
16035
16036 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
16037
16038         pthread: Add enough so that coreutils/src/sort.c compiles.
16039         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
16040         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
16041         gnulib. Include <sched.h> and <time.h>, as per POSIX.
16042         Include <sys/types.h>, in case it defines pthread_t.
16043         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
16044         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
16045         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
16046         (pthread_rwlockattr_t, pthread_spinlock_t):
16047         New typedefs, if HAVE_PTHREAD_T is not defined.
16048         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
16049         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
16050         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
16051         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
16052         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
16053         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
16054         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
16055         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
16056         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
16057         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
16058         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
16059         New macros.
16060         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
16061         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
16062         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
16063         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
16064         (pthread_spin_unlock): New dummy functions.
16065         (pthread_create): Return EAGAIN; don't set errno.
16066         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
16067         require AC_C_INLINE.
16068         * modules/pthread (Depends-on): Add sched, time.
16069         (pthread.h): Use AM_V_GEN.
16070
16071 2010-07-13  Bruno Haible  <bruno@clisp.org>
16072
16073         striconveh: Don't malloc memory if the result buffer is sufficient.
16074         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
16075         buffer if its size is sufficient.
16076         Reported by Ludovic Courtès <ludo@gnu.org>.
16077
16078 2010-07-13  Bruno Haible  <bruno@clisp.org>
16079
16080         strtod: Add safety check.
16081         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
16082
16083 2010-07-12  Bruno Haible  <bruno@clisp.org>
16084
16085         Unify tests that set gl_cv_func_ldexpl_no_libm.
16086         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
16087         gl_FUNC_LDEXPL.
16088         (gl_FUNC_LDEXPL): Invoke it.
16089         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16090
16091 2010-07-12  Bruno Haible  <bruno@clisp.org>
16092
16093         Unify tests that set gl_cv_func_ldexp_no_libm.
16094         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
16095         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
16096         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
16097         (configure.ac): Simply invoke gl_FUNC_LDEXP.
16098         * modules/strtod (Files): Add m4/ldexp.m4.
16099
16100 2010-07-12  Bruno Haible  <bruno@clisp.org>
16101
16102         Unify tests that set gl_cv_func_frexpl_no_libm.
16103         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
16104         gl_FUNC_FREXPL_NO_LIBM.
16105         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
16106         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16107
16108 2010-07-12  Bruno Haible  <bruno@clisp.org>
16109
16110         Unify tests that set gl_cv_func_frexp_no_libm.
16111         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
16112         gl_FUNC_FREXP_NO_LIBM.
16113         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
16114         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16115
16116 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16117
16118         memcoll: clarify sizes versus lengths, document better, and tweak perf
16119         * lib/memcoll.c (strcoll_loop, memcoll0):
16120         Improve quality of descriptive comments.  Name variables
16121         consistently as to whether they are lengths (which do not include
16122         terminating null) versus sizes (which do).
16123         * lib/xmemcoll.c (xmemcoll0): Likewise.
16124         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
16125         returned when s1size == 0; this is easier to compile and saves
16126         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
16127
16128 2010-07-12  Bruno Haible  <bruno@clisp.org>
16129
16130         Tests for module '_Exit'.
16131         * modules/_Exit-tests: New file.
16132         * tests/test-_Exit.sh: New file.
16133         * tests/test-_Exit.c: New file.
16134
16135         New module '_Exit'.
16136         * lib/stdlib.in.h (__attribute__): New macro.
16137         (_Exit): New declaration.
16138         * lib/_Exit.c: New file.
16139         * m4/_Exit.m4: New file.
16140         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
16141         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
16142         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
16143         * modules/_Exit: New file.
16144         * tests/test-stdlib-c++.cc (_Exit): Check signature.
16145         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
16146
16147 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16148
16149         strtod: make it more-accurate typically, and don't require libm
16150         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
16151         Include limits.h.  Don't include string.h.
16152         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
16153         (locale_isspace): New function, so that no casts are needed to
16154         check whether *s is a space.
16155         (ldexp): Provide an unused dummy if not available.
16156         (scale_radix_exp, parse_number, underlying_strtod): New functions.
16157         (strtod): Use them.  This implementation prefers to use the
16158         underlying strtod if available, falling back on our own code
16159         only to fix known bugs.  This is more likely to produce an
16160         accurate result.  Also, it avoids the use of libm functions.
16161         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
16162         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
16163         was absent, but it caused a test failure with coreutils.
16164         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
16165         with libm.
16166         * modules/strtod (Makefile.am, Link): libm is no longer needed.
16167         * modules/strtod-tests (Makefile.am): Likewise.
16168
16169 2010-07-11  Pádraig Brady  <P@draigBrady.com>
16170             Bruno Haible  <bruno@clisp.org>
16171
16172         unistr/u8-strchr: Optimize ASCII argument case.
16173         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
16174
16175 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16176
16177         (x)memcoll: minor tweaks
16178         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
16179         is after the type that it qualifies.
16180         (memcoll0): Likewise.
16181         * lib/memcoll.h (memcoll0): Likewise.
16182         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
16183         * lib/xmemcoll.h (xmemcoll0): Likewise.
16184         * lib/memcoll.c (memcoll0): Correct the comment.  This function
16185         differs from memcoll in that the NUL byte is part of the argument.
16186         Omit the abort-checks, as performance is a real issue here.  Plus,
16187         the checks were wrong anyway (an off-by-one error).  Omit local
16188         variable 'diff', as it's a bit clearer that way.
16189         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
16190         no longer needed.
16191
16192 2010-07-08  Chen Guo <chenguo4@yahoo.com>
16193
16194         (x)memcoll: speedup when input is known to be NUL delimited
16195         * lib/memcoll.c: Include stdlib.
16196         (memcoll0): New function.
16197         (strcoll_loop): New function, refactored for use in both memcoll
16198         and memcoll0.
16199         * lib/memcoll.h (memcoll0): Add prototype.
16200         * lib/xmemcoll.c (xmemcoll0): New function.
16201         (collate_error): New function, refactored for use in both xmemcoll
16202         and xmemcoll0.
16203         * lib/xmemcoll.h (xmemcoll0): Add prototype.
16204         * m4/memcoll.m4: add inline invocation.
16205
16206 2010-07-06  Pádraig Brady  <P@draigBrady.com>
16207
16208         * build-aux/bootstrap: Remove any local translations
16209         from the translation project synchronization directory,
16210         so that local only translations are not distributed.
16211
16212 2010-07-04  Bruno Haible  <bruno@clisp.org>
16213
16214         fsusage: Clarify which code applies to which platforms.
16215         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
16216         platform.
16217         * lib/fsusage.c (get_fs_usage): Likewise.
16218
16219 2010-07-04  Bruno Haible  <bruno@clisp.org>
16220
16221         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
16222         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
16223         Reported by Martin Lambers <marlam@marlam.de>.
16224
16225 2010-07-04  Jim Meyering  <meyering@redhat.com>
16226
16227         hash: once again explicitly disallow insertion of NULL
16228         * lib/hash.c (hash_insert0): Reinstate just-removed test:
16229         inserting a NULL pointer cannot work with these functions.
16230         Add a comment with details.
16231         This reverts part of the 2010-07-01 commit, 5bef1a35
16232         "hash: extend module to deal with non-pointer keys".
16233
16234 2010-07-01  Bruno Haible  <bruno@clisp.org>
16235
16236         stdbool: Update doc.
16237         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
16238         Info from Christian Weisgerber <naddy@mips.inka.de>.
16239
16240 2010-07-01  Jim Meyering  <meyering@redhat.com>
16241
16242         hash: extend module to deal with non-pointer keys
16243         * lib/hash.c (hash_insert0): New interface, much like hash_insert
16244         but that allows insertion of non-pointer entries.
16245         Do not disallow an ENTRY value of NULL.
16246         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
16247         * lib/hash.h (hash_insert0): Declare.
16248
16249 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16250
16251         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
16252         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
16253         not present (i.e. with autoconf 2.59 and when using gettextize, not
16254         gnulib), require AC_GNU_SOURCE instead.
16255
16256 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
16257
16258         idpriv-drop: Fix tests.
16259         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
16260         not to the test-idpriv-droptemp program.
16261
16262 2010-06-29  Bruno Haible  <bruno@clisp.org>
16263
16264         string: Fix syntax error with g++ 2.96.
16265         * lib/string.in.h (__pure__): Remove definition.
16266         (_GL_ATTRIBUTE_PURE): New macro.
16267         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
16268         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
16269         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16270
16271 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
16272
16273         unitypes: Fix bug introduced on 2010-05-18.
16274         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
16275
16276 2010-06-22  Eric Blake  <eblake@redhat.com>
16277
16278         memmem: slight optimization
16279         * lib/str-two-way.h (critical_factorization): Update comments.
16280         Reduce work during factorization phase.
16281         Reported by Carlos Bueno <carlos@bueno.org>.
16282
16283 2010-06-21  Bruno Haible  <bruno@clisp.org>
16284
16285         Fix HAVE_CALLOC_POSIX misnomer.
16286         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
16287         !HAVE_CALLOC_POSIX.
16288         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
16289         HAVE_CALLOC_POSIX.
16290         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
16291         instead of HAVE_CALLOC_POSIX.
16292         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
16293         HAVE_CALLOC_POSIX.
16294
16295         Use modern idiom for calloc() replacement.
16296         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
16297         AC_FUNC_CALLOC.
16298         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
16299         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
16300         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16301         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
16302         (gl_REPLACE_CALLOC): New macro.
16303
16304 2010-06-21  Bruno Haible  <bruno@clisp.org>
16305
16306         Fix HAVE_REALLOC_POSIX misnomer.
16307         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
16308         !HAVE_REALLOC_POSIX.
16309         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16310         HAVE_REALLOC_POSIX.
16311         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16312         instead of HAVE_REALLOC_POSIX.
16313         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16314         HAVE_REALLOC_POSIX.
16315
16316         Use modern idiom for realloc() replacement.
16317         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16318         AC_FUNC_REALLOC.
16319         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16320         Autoconf's AC_FUNC_REALLOC.
16321         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16322         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16323         (gl_REPLACE_REALLOC): New macro.
16324         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16325
16326 2010-06-21  Bruno Haible  <bruno@clisp.org>
16327
16328         Fix HAVE_MALLOC_POSIX misnomer.
16329         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16330         !HAVE_MALLOC_POSIX.
16331         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16332         HAVE_MALLOC_POSIX.
16333         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16334         instead of HAVE_MALLOC_POSIX.
16335         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16336         HAVE_MALLOC_POSIX.
16337
16338         Use modern idiom for malloc() replacement.
16339         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16340         AC_FUNC_MALLOC.
16341         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16342         Autoconf's AC_FUNC_MALLOC.
16343         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16344         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16345         (gl_REPLACE_MALLOC): New macro.
16346         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16347
16348 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16349
16350         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16351         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16352         This macro takes 3 arguments, not 4.
16353
16354 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16355
16356         ipv6: fix detection under mingw
16357         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16358         in6_addr.
16359
16360 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16361
16362         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16363         that strtod() works when cross-compiling to a glibc version known
16364         to work.
16365
16366 2010-06-15  Bruno Haible  <bruno@clisp.org>
16367
16368         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16369
16370 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16371
16372         select: Correct timeout.
16373         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16374
16375 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16376
16377         git-version-gen: init shell var to avoid env var influence
16378         * build-aux/git-version-gen (v): Init shell var to empty.
16379
16380 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16381
16382         priv-set: Don't assume that priv.h exists merely because getppriv does.
16383         See Jan Andersen's bug report about AIX 5L in
16384         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16385         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16386         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16387         * lib/priv-set.h: Likewise.
16388         * tests/test-priv-set.c: Likewise.
16389
16390 2010-06-13  Bruno Haible  <bruno@clisp.org>
16391
16392         relocatable: Make it easier to test whether to install wrappers.
16393         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16394         RELOCATABLE_VIA_WRAPPER.
16395
16396 2010-06-13  Bruno Haible  <bruno@clisp.org>
16397
16398         gnulib-tool: Display specified modules and dependencies differently.
16399         * gnulib-tool (func_show_module_list): New function.
16400         (func_import, func_create_testdir): Invoke it.
16401         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16402
16403 2010-06-13  Bruno Haible  <bruno@clisp.org>
16404
16405         gnulib-tool: Align code of func_import and func_create_testdir.
16406         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16407         specified_modules.
16408
16409 2010-06-12  Jim Meyering  <meyering@redhat.com>
16410
16411         test-inttostr: avoid spurious failure on Solaris 9
16412         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16413         to accept "%ju".  Reported by Bruno Haible.
16414
16415 2010-06-11  Jim Meyering  <meyering@redhat.com>
16416
16417         test-sys_socket: mark variables as used more readably
16418         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16419         as "used" explicitly via (void) statement casts.  This is more
16420         readable than using them in an artificial return expression.
16421         Suggestion from Bruno Haible.
16422
16423 2010-06-11  Bruno Haible  <bruno@clisp.org>
16424
16425         Avoid some more warnings from "gcc -Wwrite-strings".
16426         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16427         to 'const char *'.
16428         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16429         * tests/test-c-strcasestr.c (main): Likewise.
16430         * tests/test-mbscasestr1.c (main): Likewise.
16431         * tests/test-mbscasestr2.c (main): Likewise.
16432         * tests/test-memmem.c (main): Likewise.
16433         * tests/test-strstr.c (main): Likewise.
16434         * tests/test-strcasestr.c (main): Likewise.
16435
16436 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16437
16438         init.sh: change framework_failure_ to fail with status 99, not 1
16439         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16440         automake's parallel-tests rule that this is an unexpected failure,
16441         even if the test is listed in XFAIL_TESTS.
16442
16443 2010-06-11  Jim Meyering  <meyering@redhat.com>
16444
16445         test-inttostr: avoid warnings about 4-6KB literal strings
16446         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16447         Include "macros.h", for its definition of ASSERT.
16448         (CK): s/assert/ASSERT/
16449         * modules/inttostr-tests (Files): Add macros.h.
16450
16451         init.sh: don't use $ME_ or skip_ before they are defined
16452         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16453         their first uses.  Also hoist their companions: warn_, fail_,
16454         framework_failure_, $stderr_fileno.  Prompted by a patch from
16455         Stefano Lattarini.
16456
16457         test-sys_socket: avoid set-but-not-used warnings from gcc
16458         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16459         avoid warning about set-but-not-used variables.
16460
16461         test-xvasprintf: avoid 'const' discard warnings
16462         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16463         "const" when assigning from literal strings.
16464         (test_xasprintf): Add "void" in function argument list to placate
16465         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16466
16467         tests: avoid compilation warnings in argmatch and exclude tests...
16468         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16469         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16470         Since it always exits, declare with the "noreturn" attribute.
16471         * tests/test-argmatch.c: Likewise.
16472
16473         tests: avoid 'const' discard warnings in mbsstr tests
16474         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16475         * tests/test-mbsstr2.c (main): Likewise.
16476
16477         test-verify: avoid warning from gcc's -Wmissing-declarations
16478         * tests/test-verify.c (function): Declare to be static.
16479
16480         test-inttostr.c: include <string.h> for use of strcmp
16481         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16482
16483         test-linkat: avoid failed assertion on "other" architectures
16484         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16485         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16486         sparc: https://bugs.launchpad.net/bugs/591968
16487
16488 2010-06-11  Jim Meyering  <meyering@redhat.com>
16489
16490         printf.m4: avoid autoconf's "Expanded Before Required" warning
16491         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16492         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16493         autoconf warning.
16494
16495 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16496
16497         Replacement header templates are now named with ".in", not "_".
16498         * doc/gnulib-intro.texi: Correct.
16499
16500 2010-06-10  Jim Meyering  <meyering@redhat.com>
16501
16502         inttostr-tests: depend on snprintf, not snprintf-posix
16503         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16504         snprintf-posix, to avoid this aclocal failure:
16505           missing file gnulib-tests/vasnprintf.c
16506           configure.ac:45: error: expected source file, required through \
16507           AC_LIBSOURCES, not found
16508
16509 2010-06-10  Jim Meyering  <meyering@redhat.com>
16510
16511         inttostr: add a new function, inttostr, and tests
16512         The namesake function was not available.  The existence of the
16513         template file, inttostr.c makes its addition nontrivial.
16514         * lib/anytostr.c: Rename from inttostr.c.
16515         (anytostr): Rename from inttostr.
16516         * lib/inttostr.c: New file.
16517         * modules/inttostr (Files): Add anytostr.c.
16518         (Makefile.am): Set lib_SOURCES instead of ...
16519         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16520         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16521         * lib/offtostr.c: Likewise.
16522         * lib/uinttostr.c: Likewise.
16523         * lib/umaxtostr.c: Likewise.
16524         * modules/inttostr-tests: New file.
16525         * tests/test-inttostr.c: New file.  Test these functions.
16526
16527 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
16528             Bruno Haible  <bruno@clisp.org>
16529
16530         Add "Extending Gnulib" chapter to manual.
16531         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
16532         chapter.
16533         (Extending Gnulib): New chapter.
16534         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
16535         chapter.
16536
16537 2010-06-09  Bruno Haible  <bruno@clisp.org>
16538
16539         Avoid relocwrapper link errors due to gnulib replacement functions.
16540         * lib/areadlink.c: Use the system's malloc, realloc functions.
16541         (areadlink): Set errno to ENOMEM explicitly.
16542         * modules/areadlink (Depends-on): Remove malloc-posix.
16543         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16544
16545 2010-06-09  Bruno Haible  <bruno@clisp.org>
16546
16547         Avoid relocwrapper link errors due to gnulib replacement functions.
16548         * lib/canonicalize-lgpl.c: Use the system's malloc function.
16549         * lib/malloca.c: Likewise.
16550         * lib/relocatable.c: Likewise.
16551         * lib/progreloc.c: Use the system's malloc, sprintf functions.
16552         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
16553         * lib/setenv.c: Use the system's malloc, realloc functions.
16554         * lib/strerror.c: Use the system's sprintf function.
16555         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16556
16557 2010-06-04  Bruno Haible  <bruno@clisp.org>
16558
16559         Prefer documented low-level autoconf macro names.
16560         * m4/lib-link.m4: Use m4_translit instead of translit.
16561         * m4/environ.m4: Likewise.
16562         * m4/mathfunc.m4: Likewise.
16563         * m4/onceonly.m4: Likewise.
16564         * m4/stdint.m4: Likewise.
16565         Suggested by Eric Blake.
16566
16567 2010-06-04  Martin Lambers  <marlam@marlam.de>
16568             Bruno Haible  <bruno@clisp.org>
16569
16570         havelib: Allow library names with '+' characters.
16571         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16572         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
16573
16574 2010-06-09  Bruno Haible  <bruno@clisp.org>
16575
16576         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
16577         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
16578         realloc failed.
16579
16580 2010-06-08  Peter Simons  <simons@cryp.to>
16581
16582         maint.mk: make the news-check rule more configurable
16583         * top/maint.mk (news-check-lines-spec): New variable.
16584         (news-check): Use "sed -n 1,10p" in place of "head".
16585
16586 2010-06-07  Jim Meyering  <meyering@redhat.com>
16587
16588         do-release-commit-and-tag: fix typo in --help
16589         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
16590
16591         regex: avoid new dead-code warning with gcc-4.6.0
16592         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
16593         if-block containing a while-loop.  It's been unused for at least
16594         5 years.
16595
16596 2010-06-05  Bruno Haible  <bruno@clisp.org>
16597
16598         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
16599         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
16600
16601 2010-06-04  Bruno Haible  <bruno@clisp.org>
16602
16603         Update to GNU gettext 0.18.1.
16604         * modules/gettext (configure.ac): Require gettext infrastructure from
16605         version 0.18.1.
16606
16607 2010-06-03  Bruno Haible  <bruno@clisp.org>
16608
16609         Don't use AC_LIBOBJ with file names in subdirectories.
16610         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
16611         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
16612         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
16613         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
16614         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
16615         gl_LIBUNISTRING_LIBSOURCE.
16616         (Makefile.am): Augment lib_SOURCES here, conditionally.
16617         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16618
16619 2010-06-03  Bruno Haible  <bruno@clisp.org>
16620
16621         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16622         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16623         expansion does not end with a newline.
16624         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16625         unnecessary newline.
16626
16627 2010-06-03  Bruno Haible  <bruno@clisp.org>
16628
16629         Reduce dependencies.
16630         * tests/test-quotearg.h: New file, extracted from
16631         tests/test-quotearg.c.
16632         * tests/test-quotearg-simple.c: New file, extracted from
16633         tests/test-quotearg.c.
16634         * tests/test-quotearg.c: Don't include <ctype.h>.
16635         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16636         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16637         use_quote_double_quotes, use_quotearg_colon): Moved to
16638         tests/test-quotearg.h.
16639         (results_g, flag_results, custom_quotes, custom_results): Moved
16640         to tests/test-quotearg-simple.c.
16641         (main): Moved the part that does not depend on gettext to
16642         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16643         performed.
16644         * modules/quotearg-simple: New file.
16645         * modules/quotearg-simple-tests: New file.
16646         * modules/quotearg (Depends-on): Add quotearg-simple.
16647         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16648         (Files): Add tests/test-quotearg.h.
16649         Reported by Paolo Bonzini.
16650
16651 2010-06-03  Bruno Haible  <bruno@clisp.org>
16652
16653         Reduce dependencies.
16654         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16655
16656 2010-06-03  Bruno Haible  <bruno@clisp.org>
16657
16658         time: Undefine more broken macros.
16659         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16660         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16661         Reported by Eric Blake.
16662
16663 2010-06-03  Bruno Haible  <bruno@clisp.org>
16664
16665         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16666         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16667         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16668         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16669         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16670         Reported by Ludovic Courtès <ludo@gnu.org>.
16671
16672 2010-06-02  Eric Blake  <eblake@redhat.com>
16673
16674         time: work with mingw + pthreads-win32 library
16675         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16676         if timespec is defined only in pthread.h.
16677         * modules/time (Makefile.am): Substitute it.
16678         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16679         <pthread.h>, when needed.
16680         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16681         from the library.
16682
16683 2010-05-31  Bruno Haible  <bruno@clisp.org>
16684
16685         Avoid expanding two macros in the wrong order.
16686         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16687         gl_LIBUNISTRING if it is defined.
16688         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16689         autoconf >= 2.64.
16690         Reported by Ludovic Courtès <ludo@gnu.org>.
16691
16692 2010-05-27  Jim Meyering  <meyering@redhat.com>
16693
16694         maint.mk: also prohibit "#undef" of always-defined symbols
16695         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
16696         Allow more than one space before the symbol name.
16697         (sc_prohibit_always-defined_macros): Use grep's -E, now that
16698         the regexp uses alternation.
16699
16700 2010-05-26  Eric Blake  <eblake@redhat.com>
16701
16702         maint.mk: avoid echo -e
16703         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
16704         Convert all uses of echo -* to printf.
16705         Reported by Matthias Bolte.
16706
16707 2010-05-25  Bruno Haible  <bruno@clisp.org>
16708
16709         Update to GNU gettext 0.18, part 2.
16710         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
16711         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
16712
16713 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16714
16715         Add missing include in test-pwrite.c.
16716         * tests/test-pwrite.c: Include string.h, for strcmp.
16717
16718 2010-05-24  Bruno Haible  <bruno@clisp.org>
16719
16720         * NEWS: Mention requirement for Automake option 'subdir-objects'.
16721
16722 2010-05-24  Bruno Haible  <bruno@clisp.org>
16723
16724         Don't use conversion with transliteration in u{8,16,32}_strcoll.
16725         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
16726         iconveh_error argument.
16727         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
16728         U_STRCONV_TO_LOCALE.
16729         * lib/unistr/u16-strcoll.c: Likewise.
16730         * lib/unistr/u32-strcoll.c: Likewise.
16731         * modules/unistr/u8-strcoll (Depends-on): Add
16732         uniconv/u8-strconv-to-enc, localcharset. Remove
16733         uniconv/u8-strconv-to-locale.
16734         (configure.ac): Bump version number.
16735         * modules/unistr/u16-strcoll (Depends-on): Add
16736         uniconv/u16-strconv-to-enc, localcharset. Remove
16737         uniconv/u16-strconv-to-locale.
16738         (configure.ac): Bump version number.
16739         * modules/unistr/u32-strcoll (Depends-on): Add
16740         uniconv/u32-strconv-to-enc, localcharset. Remove
16741         uniconv/u32-strconv-to-locale.
16742         (configure.ac): Bump version number.
16743
16744 2010-05-24  Bruno Haible  <bruno@clisp.org>
16745
16746         Avoid a test failure on NetBSD 5.0.
16747         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
16748         an iconv() bug.
16749
16750 2010-05-24  Bruno Haible  <bruno@clisp.org>
16751
16752         Adjust #include directive style.
16753         * modules/regex (Includes): Recommend to write <regex.h>.
16754
16755 2010-05-24  Bruno Haible  <bruno@clisp.org>
16756
16757         regex: Don't require alloca.
16758         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
16759         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
16760         only inside if (0).
16761
16762 2010-05-23  Jim Meyering  <meyering@redhat.com>
16763
16764         test-renameat.c: include <sys/stat.h>
16765         * tests/test-renameat.c: Include <sys/stat.h>; required for
16766         definition of S_IS* macros.
16767
16768 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
16769
16770         Update maintainer documentation for 'relocatable-prog' module.
16771         * doc/relocatable-maint.texi: Update.
16772         Comments by Bruno Haible.
16773
16774 2010-05-23  Bruno Haible  <bruno@clisp.org>
16775
16776         git-merge-changelog: Enable --split-merged-entry by default.
16777         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
16778         (usage): Don't mention this option any more.
16779         Reported by Ralf Wildenhues.
16780
16781 2010-05-23  Jim Meyering  <meyering@redhat.com>
16782
16783         test-pwrite: do not leave behind a test file named "out"
16784         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
16785         The trivial-looking use of init.sh is really necessary.
16786         It ensures that the temporary file, "out", is created in
16787         a temporary directory, and removed upon termination.
16788         * tests/test-pwrite.sh: Re-add file.
16789         * modules/pwrite-tests: Reference it.
16790
16791 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16792
16793         Fix output redirection buglet in init.sh.
16794         * tests/init.sh: Fix redirection of stderr.
16795
16796 2010-05-20  Simon Josefsson  <simon@josefsson.org>
16797
16798         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
16799
16800 2010-05-17  Simon Josefsson  <simon@josefsson.org>
16801
16802         * modules/valgrind-tests: New file.
16803         * m4/valgrind-tests.m4: New file.
16804         * doc/valgrind-tests.texi: New file.
16805         * doc/gnulib.texi (Running self-tests under valgrind): New
16806         section.
16807
16808 2010-05-19  Bruno Haible  <bruno@clisp.org>
16809
16810         Clean up dead code in recent commit.
16811         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
16812         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
16813         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
16814         Suggested by Paolo Bonzini.
16815
16816 2010-05-19  Bruno Haible  <bruno@clisp.org>
16817
16818         Avoid valgrind error reports from libunistring.
16819         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
16820         * modules/libunistring (Files): Add it.
16821         * modules/libunistring-optional (Files): Likewise.
16822
16823 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
16824             Bruno Haible  <bruno@clisp.org>
16825
16826         New module 'libunistring-optional'.
16827         * modules/libunistring-optional: New file.
16828         * m4/libunistring-base.m4: New file.
16829         * m4/libunistring-optional.m4: New file.
16830         * lib/unicase.in.h: Renamed from lib/unicase.h.
16831         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
16832         * lib/unictype.in.h: Renamed from lib/unictype.h.
16833         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
16834         * lib/uniname.in.h: Renamed from lib/uniname.h.
16835         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
16836         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
16837         * lib/unistr.in.h: Renamed from lib/unistr.h.
16838         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
16839         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
16840         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
16841         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
16842         gl_LIBUNISTRING. If the library was found, determine the installed
16843         version and set LIBUNISTRING_VERSION.
16844         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
16845         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
16846         handle a configuration option --with-included-libunistring.
16847         * modules/libunistring (Files): Add m4/absolute-header.m4.
16848         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
16849         Add m4/libunistring-base.m4.
16850         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16851         (Makefile.am): Build unicase.h from unicase.in.h.
16852         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
16853         Add m4/libunistring-base.m4.
16854         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16855         (Makefile.am): Build uniconv.h from uniconv.in.h.
16856         * modules/unictype/base (Files): Use unictype.in.h instead of
16857         unictype.h. Add m4/libunistring-base.m4.
16858         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16859         (Makefile.am): Build unictype.h from unictype.in.h.
16860         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
16861         Add m4/libunistring-base.m4.
16862         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16863         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
16864         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
16865         Add m4/libunistring-base.m4.
16866         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16867         (Makefile.am): Build uniname.h from uniname.in.h.
16868         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
16869         Add m4/libunistring-base.m4.
16870         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16871         (Makefile.am): Build uninorm.h from uninorm.in.h.
16872         * modules/unistdio/base (Files): Use unistdio.in.h instead of
16873         unistdio.h. Add m4/libunistring-base.m4.
16874         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16875         (Makefile.am): Build unistdio.h from unistdio.in.h.
16876         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
16877         Add m4/libunistring-base.m4.
16878         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16879         (Makefile.am): Build unistr.h from unistr.in.h.
16880         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
16881         Add m4/libunistring-base.m4.
16882         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16883         (Makefile.am): Build unitypes.h from unitypes.in.h.
16884         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
16885         Add m4/libunistring-base.m4.
16886         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16887         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
16888         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
16889         uniwidth.h. Add m4/libunistring-base.m4.
16890         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16891         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
16892         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
16893         instead of augmenting lib_SOURCES.
16894         * modules/unicase/empty-suffix-context: Likewise.
16895         * modules/unicase/locale-language: Likewise.
16896         * modules/unicase/tolower: Likewise.
16897         * modules/unicase/totitle: Likewise.
16898         * modules/unicase/toupper: Likewise.
16899         * modules/unicase/u8-casecmp: Likewise.
16900         * modules/unicase/u8-casecoll: Likewise.
16901         * modules/unicase/u8-casefold: Likewise.
16902         * modules/unicase/u8-casexfrm: Likewise.
16903         * modules/unicase/u8-ct-casefold: Likewise.
16904         * modules/unicase/u8-ct-tolower: Likewise.
16905         * modules/unicase/u8-ct-totitle: Likewise.
16906         * modules/unicase/u8-ct-toupper: Likewise.
16907         * modules/unicase/u8-is-cased: Likewise.
16908         * modules/unicase/u8-is-casefolded: Likewise.
16909         * modules/unicase/u8-is-lowercase: Likewise.
16910         * modules/unicase/u8-is-titlecase: Likewise.
16911         * modules/unicase/u8-is-uppercase: Likewise.
16912         * modules/unicase/u8-prefix-context: Likewise.
16913         * modules/unicase/u8-suffix-context: Likewise.
16914         * modules/unicase/u8-tolower: Likewise.
16915         * modules/unicase/u8-totitle: Likewise.
16916         * modules/unicase/u8-toupper: Likewise.
16917         * modules/unicase/u16-casecmp: Likewise.
16918         * modules/unicase/u16-casecoll: Likewise.
16919         * modules/unicase/u16-casefold: Likewise.
16920         * modules/unicase/u16-casexfrm: Likewise.
16921         * modules/unicase/u16-ct-casefold: Likewise.
16922         * modules/unicase/u16-ct-tolower: Likewise.
16923         * modules/unicase/u16-ct-totitle: Likewise.
16924         * modules/unicase/u16-ct-toupper: Likewise.
16925         * modules/unicase/u16-is-cased: Likewise.
16926         * modules/unicase/u16-is-casefolded: Likewise.
16927         * modules/unicase/u16-is-lowercase: Likewise.
16928         * modules/unicase/u16-is-titlecase: Likewise.
16929         * modules/unicase/u16-is-uppercase: Likewise.
16930         * modules/unicase/u16-prefix-context: Likewise.
16931         * modules/unicase/u16-suffix-context: Likewise.
16932         * modules/unicase/u16-tolower: Likewise.
16933         * modules/unicase/u16-totitle: Likewise.
16934         * modules/unicase/u16-toupper: Likewise.
16935         * modules/unicase/u32-casecmp: Likewise.
16936         * modules/unicase/u32-casecoll: Likewise.
16937         * modules/unicase/u32-casefold: Likewise.
16938         * modules/unicase/u32-casexfrm: Likewise.
16939         * modules/unicase/u32-ct-casefold: Likewise.
16940         * modules/unicase/u32-ct-tolower: Likewise.
16941         * modules/unicase/u32-ct-totitle: Likewise.
16942         * modules/unicase/u32-ct-toupper: Likewise.
16943         * modules/unicase/u32-is-cased: Likewise.
16944         * modules/unicase/u32-is-casefolded: Likewise.
16945         * modules/unicase/u32-is-lowercase: Likewise.
16946         * modules/unicase/u32-is-titlecase: Likewise.
16947         * modules/unicase/u32-is-uppercase: Likewise.
16948         * modules/unicase/u32-prefix-context: Likewise.
16949         * modules/unicase/u32-suffix-context: Likewise.
16950         * modules/unicase/u32-tolower: Likewise.
16951         * modules/unicase/u32-totitle: Likewise.
16952         * modules/unicase/u32-toupper: Likewise.
16953         * modules/unicase/ulc-casecmp: Likewise.
16954         * modules/unicase/ulc-casecoll: Likewise.
16955         * modules/unicase/ulc-casexfrm: Likewise.
16956         * modules/uniconv/u8-conv-from-enc: Likewise.
16957         * modules/uniconv/u8-conv-to-enc: Likewise.
16958         * modules/uniconv/u8-strconv-from-enc: Likewise.
16959         * modules/uniconv/u8-strconv-from-locale: Likewise.
16960         * modules/uniconv/u8-strconv-to-enc: Likewise.
16961         * modules/uniconv/u8-strconv-to-locale: Likewise.
16962         * modules/uniconv/u16-conv-from-enc: Likewise.
16963         * modules/uniconv/u16-conv-to-enc: Likewise.
16964         * modules/uniconv/u16-strconv-from-enc: Likewise.
16965         * modules/uniconv/u16-strconv-from-locale: Likewise.
16966         * modules/uniconv/u16-strconv-to-enc: Likewise.
16967         * modules/uniconv/u16-strconv-to-locale: Likewise.
16968         * modules/uniconv/u32-conv-from-enc: Likewise.
16969         * modules/uniconv/u32-conv-to-enc: Likewise.
16970         * modules/uniconv/u32-strconv-from-enc: Likewise.
16971         * modules/uniconv/u32-strconv-from-locale: Likewise.
16972         * modules/uniconv/u32-strconv-to-enc: Likewise.
16973         * modules/uniconv/u32-strconv-to-locale: Likewise.
16974         * modules/unictype/bidicategory-byname: Likewise.
16975         * modules/unictype/bidicategory-name: Likewise.
16976         * modules/unictype/bidicategory-of: Likewise.
16977         * modules/unictype/bidicategory-test: Likewise.
16978         * modules/unictype/block-list: Likewise.
16979         * modules/unictype/block-test: Likewise.
16980         * modules/unictype/category-C: Likewise.
16981         * modules/unictype/category-Cc: Likewise.
16982         * modules/unictype/category-Cf: Likewise.
16983         * modules/unictype/category-Cn: Likewise.
16984         * modules/unictype/category-Co: Likewise.
16985         * modules/unictype/category-Cs: Likewise.
16986         * modules/unictype/category-L: Likewise.
16987         * modules/unictype/category-Ll: Likewise.
16988         * modules/unictype/category-Lm: Likewise.
16989         * modules/unictype/category-Lo: Likewise.
16990         * modules/unictype/category-Lt: Likewise.
16991         * modules/unictype/category-Lu: Likewise.
16992         * modules/unictype/category-M: Likewise.
16993         * modules/unictype/category-Mc: Likewise.
16994         * modules/unictype/category-Me: Likewise.
16995         * modules/unictype/category-Mn: Likewise.
16996         * modules/unictype/category-N: Likewise.
16997         * modules/unictype/category-Nd: Likewise.
16998         * modules/unictype/category-Nl: Likewise.
16999         * modules/unictype/category-No: Likewise.
17000         * modules/unictype/category-P: Likewise.
17001         * modules/unictype/category-Pc: Likewise.
17002         * modules/unictype/category-Pd: Likewise.
17003         * modules/unictype/category-Pe: Likewise.
17004         * modules/unictype/category-Pf: Likewise.
17005         * modules/unictype/category-Pi: Likewise.
17006         * modules/unictype/category-Po: Likewise.
17007         * modules/unictype/category-Ps: Likewise.
17008         * modules/unictype/category-S: Likewise.
17009         * modules/unictype/category-Sc: Likewise.
17010         * modules/unictype/category-Sk: Likewise.
17011         * modules/unictype/category-Sm: Likewise.
17012         * modules/unictype/category-So: Likewise.
17013         * modules/unictype/category-Z: Likewise.
17014         * modules/unictype/category-Zl: Likewise.
17015         * modules/unictype/category-Zp: Likewise.
17016         * modules/unictype/category-Zs: Likewise.
17017         * modules/unictype/category-and: Likewise.
17018         * modules/unictype/category-and-not: Likewise.
17019         * modules/unictype/category-byname: Likewise.
17020         * modules/unictype/category-name: Likewise.
17021         * modules/unictype/category-none: Likewise.
17022         * modules/unictype/category-of: Likewise.
17023         * modules/unictype/category-or: Likewise.
17024         * modules/unictype/category-test: Likewise.
17025         * modules/unictype/combining-class: Likewise.
17026         * modules/unictype/ctype-alnum: Likewise.
17027         * modules/unictype/ctype-alpha: Likewise.
17028         * modules/unictype/ctype-blank: Likewise.
17029         * modules/unictype/ctype-cntrl: Likewise.
17030         * modules/unictype/ctype-digit: Likewise.
17031         * modules/unictype/ctype-graph: Likewise.
17032         * modules/unictype/ctype-lower: Likewise.
17033         * modules/unictype/ctype-print: Likewise.
17034         * modules/unictype/ctype-punct: Likewise.
17035         * modules/unictype/ctype-space: Likewise.
17036         * modules/unictype/ctype-upper: Likewise.
17037         * modules/unictype/ctype-xdigit: Likewise.
17038         * modules/unictype/decimal-digit: Likewise.
17039         * modules/unictype/digit: Likewise.
17040         * modules/unictype/mirror: Likewise.
17041         * modules/unictype/numeric: Likewise.
17042         * modules/unictype/property-alphabetic: Likewise.
17043         * modules/unictype/property-ascii-hex-digit: Likewise.
17044         * modules/unictype/property-bidi-arabic-digit: Likewise.
17045         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
17046         * modules/unictype/property-bidi-block-separator: Likewise.
17047         * modules/unictype/property-bidi-boundary-neutral: Likewise.
17048         * modules/unictype/property-bidi-common-separator: Likewise.
17049         * modules/unictype/property-bidi-control: Likewise.
17050         * modules/unictype/property-bidi-embedding-or-override: Likewise.
17051         * modules/unictype/property-bidi-eur-num-separator: Likewise.
17052         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
17053         * modules/unictype/property-bidi-european-digit: Likewise.
17054         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
17055         * modules/unictype/property-bidi-left-to-right: Likewise.
17056         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
17057         * modules/unictype/property-bidi-other-neutral: Likewise.
17058         * modules/unictype/property-bidi-pdf: Likewise.
17059         * modules/unictype/property-bidi-segment-separator: Likewise.
17060         * modules/unictype/property-bidi-whitespace: Likewise.
17061         * modules/unictype/property-byname: Likewise.
17062         * modules/unictype/property-combining: Likewise.
17063         * modules/unictype/property-composite: Likewise.
17064         * modules/unictype/property-currency-symbol: Likewise.
17065         * modules/unictype/property-dash: Likewise.
17066         * modules/unictype/property-decimal-digit: Likewise.
17067         * modules/unictype/property-default-ignorable-code-point: Likewise.
17068         * modules/unictype/property-deprecated: Likewise.
17069         * modules/unictype/property-diacritic: Likewise.
17070         * modules/unictype/property-extender: Likewise.
17071         * modules/unictype/property-format-control: Likewise.
17072         * modules/unictype/property-grapheme-base: Likewise.
17073         * modules/unictype/property-grapheme-extend: Likewise.
17074         * modules/unictype/property-grapheme-link: Likewise.
17075         * modules/unictype/property-hex-digit: Likewise.
17076         * modules/unictype/property-hyphen: Likewise.
17077         * modules/unictype/property-id-continue: Likewise.
17078         * modules/unictype/property-id-start: Likewise.
17079         * modules/unictype/property-ideographic: Likewise.
17080         * modules/unictype/property-ids-binary-operator: Likewise.
17081         * modules/unictype/property-ids-trinary-operator: Likewise.
17082         * modules/unictype/property-ignorable-control: Likewise.
17083         * modules/unictype/property-iso-control: Likewise.
17084         * modules/unictype/property-join-control: Likewise.
17085         * modules/unictype/property-left-of-pair: Likewise.
17086         * modules/unictype/property-line-separator: Likewise.
17087         * modules/unictype/property-logical-order-exception: Likewise.
17088         * modules/unictype/property-lowercase: Likewise.
17089         * modules/unictype/property-math: Likewise.
17090         * modules/unictype/property-non-break: Likewise.
17091         * modules/unictype/property-not-a-character: Likewise.
17092         * modules/unictype/property-numeric: Likewise.
17093         * modules/unictype/property-other-alphabetic: Likewise.
17094         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
17095         * modules/unictype/property-other-grapheme-extend: Likewise.
17096         * modules/unictype/property-other-id-continue: Likewise.
17097         * modules/unictype/property-other-id-start: Likewise.
17098         * modules/unictype/property-other-lowercase: Likewise.
17099         * modules/unictype/property-other-math: Likewise.
17100         * modules/unictype/property-other-uppercase: Likewise.
17101         * modules/unictype/property-paired-punctuation: Likewise.
17102         * modules/unictype/property-paragraph-separator: Likewise.
17103         * modules/unictype/property-pattern-syntax: Likewise.
17104         * modules/unictype/property-pattern-white-space: Likewise.
17105         * modules/unictype/property-private-use: Likewise.
17106         * modules/unictype/property-punctuation: Likewise.
17107         * modules/unictype/property-quotation-mark: Likewise.
17108         * modules/unictype/property-radical: Likewise.
17109         * modules/unictype/property-sentence-terminal: Likewise.
17110         * modules/unictype/property-soft-dotted: Likewise.
17111         * modules/unictype/property-space: Likewise.
17112         * modules/unictype/property-terminal-punctuation: Likewise.
17113         * modules/unictype/property-test: Likewise.
17114         * modules/unictype/property-titlecase: Likewise.
17115         * modules/unictype/property-unassigned-code-value: Likewise.
17116         * modules/unictype/property-unified-ideograph: Likewise.
17117         * modules/unictype/property-uppercase: Likewise.
17118         * modules/unictype/property-variation-selector: Likewise.
17119         * modules/unictype/property-white-space: Likewise.
17120         * modules/unictype/property-xid-continue: Likewise.
17121         * modules/unictype/property-xid-start: Likewise.
17122         * modules/unictype/property-zero-width: Likewise.
17123         * modules/unictype/scripts: Likewise.
17124         * modules/unictype/syntax-c-ident: Likewise.
17125         * modules/unictype/syntax-c-whitespace: Likewise.
17126         * modules/unictype/syntax-java-ident: Likewise.
17127         * modules/unictype/syntax-java-whitespace: Likewise.
17128         * modules/unilbrk/u8-possible-linebreaks: Likewise.
17129         * modules/unilbrk/u8-width-linebreaks: Likewise.
17130         * modules/unilbrk/u16-possible-linebreaks: Likewise.
17131         * modules/unilbrk/u16-width-linebreaks: Likewise.
17132         * modules/unilbrk/u32-possible-linebreaks: Likewise.
17133         * modules/unilbrk/u32-width-linebreaks: Likewise.
17134         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
17135         * modules/unilbrk/ulc-width-linebreaks: Likewise.
17136         * modules/uniname/uniname: Likewise.
17137         * modules/uninorm/canonical-decomposition: Likewise.
17138         * modules/uninorm/composition: Likewise.
17139         * modules/uninorm/decomposing-form: Likewise.
17140         * modules/uninorm/decomposition: Likewise.
17141         * modules/uninorm/filter: Likewise.
17142         * modules/uninorm/nfc: Likewise.
17143         * modules/uninorm/nfd: Likewise.
17144         * modules/uninorm/nfkc: Likewise.
17145         * modules/uninorm/nfkd: Likewise.
17146         * modules/uninorm/u8-normalize: Likewise.
17147         * modules/uninorm/u8-normcmp: Likewise.
17148         * modules/uninorm/u8-normcoll: Likewise.
17149         * modules/uninorm/u8-normxfrm: Likewise.
17150         * modules/uninorm/u16-normalize: Likewise.
17151         * modules/uninorm/u16-normcmp: Likewise.
17152         * modules/uninorm/u16-normcoll: Likewise.
17153         * modules/uninorm/u16-normxfrm: Likewise.
17154         * modules/uninorm/u32-normalize: Likewise.
17155         * modules/uninorm/u32-normcmp: Likewise.
17156         * modules/uninorm/u32-normcoll: Likewise.
17157         * modules/uninorm/u32-normxfrm: Likewise.
17158         * modules/unistdio/u8-asnprintf: Likewise.
17159         * modules/unistdio/u8-asprintf: Likewise.
17160         * modules/unistdio/u8-snprintf: Likewise.
17161         * modules/unistdio/u8-sprintf: Likewise.
17162         * modules/unistdio/u8-u8-asnprintf: Likewise.
17163         * modules/unistdio/u8-u8-asprintf: Likewise.
17164         * modules/unistdio/u8-u8-snprintf: Likewise.
17165         * modules/unistdio/u8-u8-sprintf: Likewise.
17166         * modules/unistdio/u8-u8-vasnprintf: Likewise.
17167         * modules/unistdio/u8-u8-vasprintf: Likewise.
17168         * modules/unistdio/u8-u8-vsnprintf: Likewise.
17169         * modules/unistdio/u8-u8-vsprintf: Likewise.
17170         * modules/unistdio/u8-vasnprintf: Likewise.
17171         * modules/unistdio/u8-vasprintf: Likewise.
17172         * modules/unistdio/u8-vsnprintf: Likewise.
17173         * modules/unistdio/u8-vsprintf: Likewise.
17174         * modules/unistdio/u16-asnprintf: Likewise.
17175         * modules/unistdio/u16-asprintf: Likewise.
17176         * modules/unistdio/u16-snprintf: Likewise.
17177         * modules/unistdio/u16-sprintf: Likewise.
17178         * modules/unistdio/u16-u16-asnprintf: Likewise.
17179         * modules/unistdio/u16-u16-asprintf: Likewise.
17180         * modules/unistdio/u16-u16-snprintf: Likewise.
17181         * modules/unistdio/u16-u16-sprintf: Likewise.
17182         * modules/unistdio/u16-u16-vasnprintf: Likewise.
17183         * modules/unistdio/u16-u16-vasprintf: Likewise.
17184         * modules/unistdio/u16-u16-vsnprintf: Likewise.
17185         * modules/unistdio/u16-u16-vsprintf: Likewise.
17186         * modules/unistdio/u16-vasnprintf: Likewise.
17187         * modules/unistdio/u16-vasprintf: Likewise.
17188         * modules/unistdio/u16-vsnprintf: Likewise.
17189         * modules/unistdio/u16-vsprintf: Likewise.
17190         * modules/unistdio/u32-asnprintf: Likewise.
17191         * modules/unistdio/u32-asprintf: Likewise.
17192         * modules/unistdio/u32-snprintf: Likewise.
17193         * modules/unistdio/u32-sprintf: Likewise.
17194         * modules/unistdio/u32-u32-asnprintf: Likewise.
17195         * modules/unistdio/u32-u32-asprintf: Likewise.
17196         * modules/unistdio/u32-u32-snprintf: Likewise.
17197         * modules/unistdio/u32-u32-sprintf: Likewise.
17198         * modules/unistdio/u32-u32-vasnprintf: Likewise.
17199         * modules/unistdio/u32-u32-vasprintf: Likewise.
17200         * modules/unistdio/u32-u32-vsnprintf: Likewise.
17201         * modules/unistdio/u32-u32-vsprintf: Likewise.
17202         * modules/unistdio/u32-vasnprintf: Likewise.
17203         * modules/unistdio/u32-vasprintf: Likewise.
17204         * modules/unistdio/u32-vsnprintf: Likewise.
17205         * modules/unistdio/u32-vsprintf: Likewise.
17206         * modules/unistdio/ulc-asnprintf: Likewise.
17207         * modules/unistdio/ulc-asprintf: Likewise.
17208         * modules/unistdio/ulc-fprintf: Likewise.
17209         * modules/unistdio/ulc-snprintf: Likewise.
17210         * modules/unistdio/ulc-sprintf: Likewise.
17211         * modules/unistdio/ulc-vasnprintf: Likewise.
17212         * modules/unistdio/ulc-vasprintf: Likewise.
17213         * modules/unistdio/ulc-vfprintf: Likewise.
17214         * modules/unistdio/ulc-vsnprintf: Likewise.
17215         * modules/unistdio/ulc-vsprintf: Likewise.
17216         * modules/unistr/u8-check: Likewise.
17217         * modules/unistr/u8-chr: Likewise.
17218         * modules/unistr/u8-cmp: Likewise.
17219         * modules/unistr/u8-cmp2: Likewise.
17220         * modules/unistr/u8-cpy: Likewise.
17221         * modules/unistr/u8-cpy-alloc: Likewise.
17222         * modules/unistr/u8-endswith: Likewise.
17223         * modules/unistr/u8-mblen: Likewise.
17224         * modules/unistr/u8-mbsnlen: Likewise.
17225         * modules/unistr/u8-mbtouc: Likewise.
17226         * modules/unistr/u8-mbtouc-unsafe: Likewise.
17227         * modules/unistr/u8-mbtoucr: Likewise.
17228         * modules/unistr/u8-move: Likewise.
17229         * modules/unistr/u8-next: Likewise.
17230         * modules/unistr/u8-prev: Likewise.
17231         * modules/unistr/u8-set: Likewise.
17232         * modules/unistr/u8-startswith: Likewise.
17233         * modules/unistr/u8-stpcpy: Likewise.
17234         * modules/unistr/u8-stpncpy: Likewise.
17235         * modules/unistr/u8-strcat: Likewise.
17236         * modules/unistr/u8-strchr: Likewise.
17237         * modules/unistr/u8-strcmp: Likewise.
17238         * modules/unistr/u8-strcoll: Likewise.
17239         * modules/unistr/u8-strcpy: Likewise.
17240         * modules/unistr/u8-strcspn: Likewise.
17241         * modules/unistr/u8-strdup: Likewise.
17242         * modules/unistr/u8-strlen: Likewise.
17243         * modules/unistr/u8-strmblen: Likewise.
17244         * modules/unistr/u8-strmbtouc: Likewise.
17245         * modules/unistr/u8-strncat: Likewise.
17246         * modules/unistr/u8-strncmp: Likewise.
17247         * modules/unistr/u8-strncpy: Likewise.
17248         * modules/unistr/u8-strnlen: Likewise.
17249         * modules/unistr/u8-strpbrk: Likewise.
17250         * modules/unistr/u8-strrchr: Likewise.
17251         * modules/unistr/u8-strspn: Likewise.
17252         * modules/unistr/u8-strstr: Likewise.
17253         * modules/unistr/u8-strtok: Likewise.
17254         * modules/unistr/u8-to-u16: Likewise.
17255         * modules/unistr/u8-to-u32: Likewise.
17256         * modules/unistr/u8-uctomb: Likewise.
17257         * modules/unistr/u16-check: Likewise.
17258         * modules/unistr/u16-chr: Likewise.
17259         * modules/unistr/u16-cmp: Likewise.
17260         * modules/unistr/u16-cmp2: Likewise.
17261         * modules/unistr/u16-cpy: Likewise.
17262         * modules/unistr/u16-cpy-alloc: Likewise.
17263         * modules/unistr/u16-endswith: Likewise.
17264         * modules/unistr/u16-mblen: Likewise.
17265         * modules/unistr/u16-mbsnlen: Likewise.
17266         * modules/unistr/u16-mbtouc: Likewise.
17267         * modules/unistr/u16-mbtouc-unsafe: Likewise.
17268         * modules/unistr/u16-mbtoucr: Likewise.
17269         * modules/unistr/u16-move: Likewise.
17270         * modules/unistr/u16-next: Likewise.
17271         * modules/unistr/u16-prev: Likewise.
17272         * modules/unistr/u16-set: Likewise.
17273         * modules/unistr/u16-startswith: Likewise.
17274         * modules/unistr/u16-stpcpy: Likewise.
17275         * modules/unistr/u16-stpncpy: Likewise.
17276         * modules/unistr/u16-strcat: Likewise.
17277         * modules/unistr/u16-strchr: Likewise.
17278         * modules/unistr/u16-strcmp: Likewise.
17279         * modules/unistr/u16-strcoll: Likewise.
17280         * modules/unistr/u16-strcpy: Likewise.
17281         * modules/unistr/u16-strcspn: Likewise.
17282         * modules/unistr/u16-strdup: Likewise.
17283         * modules/unistr/u16-strlen: Likewise.
17284         * modules/unistr/u16-strmblen: Likewise.
17285         * modules/unistr/u16-strmbtouc: Likewise.
17286         * modules/unistr/u16-strncat: Likewise.
17287         * modules/unistr/u16-strncmp: Likewise.
17288         * modules/unistr/u16-strncpy: Likewise.
17289         * modules/unistr/u16-strnlen: Likewise.
17290         * modules/unistr/u16-strpbrk: Likewise.
17291         * modules/unistr/u16-strrchr: Likewise.
17292         * modules/unistr/u16-strspn: Likewise.
17293         * modules/unistr/u16-strstr: Likewise.
17294         * modules/unistr/u16-strtok: Likewise.
17295         * modules/unistr/u16-to-u32: Likewise.
17296         * modules/unistr/u16-to-u8: Likewise.
17297         * modules/unistr/u16-uctomb: Likewise.
17298         * modules/unistr/u32-check: Likewise.
17299         * modules/unistr/u32-chr: Likewise.
17300         * modules/unistr/u32-cmp: Likewise.
17301         * modules/unistr/u32-cmp2: Likewise.
17302         * modules/unistr/u32-cpy: Likewise.
17303         * modules/unistr/u32-cpy-alloc: Likewise.
17304         * modules/unistr/u32-endswith: Likewise.
17305         * modules/unistr/u32-mblen: Likewise.
17306         * modules/unistr/u32-mbsnlen: Likewise.
17307         * modules/unistr/u32-mbtouc: Likewise.
17308         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17309         * modules/unistr/u32-mbtoucr: Likewise.
17310         * modules/unistr/u32-move: Likewise.
17311         * modules/unistr/u32-next: Likewise.
17312         * modules/unistr/u32-prev: Likewise.
17313         * modules/unistr/u32-set: Likewise.
17314         * modules/unistr/u32-startswith: Likewise.
17315         * modules/unistr/u32-stpcpy: Likewise.
17316         * modules/unistr/u32-stpncpy: Likewise.
17317         * modules/unistr/u32-strcat: Likewise.
17318         * modules/unistr/u32-strchr: Likewise.
17319         * modules/unistr/u32-strcmp: Likewise.
17320         * modules/unistr/u32-strcoll: Likewise.
17321         * modules/unistr/u32-strcpy: Likewise.
17322         * modules/unistr/u32-strcspn: Likewise.
17323         * modules/unistr/u32-strdup: Likewise.
17324         * modules/unistr/u32-strlen: Likewise.
17325         * modules/unistr/u32-strmblen: Likewise.
17326         * modules/unistr/u32-strmbtouc: Likewise.
17327         * modules/unistr/u32-strncat: Likewise.
17328         * modules/unistr/u32-strncmp: Likewise.
17329         * modules/unistr/u32-strncpy: Likewise.
17330         * modules/unistr/u32-strnlen: Likewise.
17331         * modules/unistr/u32-strpbrk: Likewise.
17332         * modules/unistr/u32-strrchr: Likewise.
17333         * modules/unistr/u32-strspn: Likewise.
17334         * modules/unistr/u32-strstr: Likewise.
17335         * modules/unistr/u32-strtok: Likewise.
17336         * modules/unistr/u32-to-u16: Likewise.
17337         * modules/unistr/u32-to-u8: Likewise.
17338         * modules/unistr/u32-uctomb: Likewise.
17339         * modules/uniwbrk/u8-wordbreaks: Likewise.
17340         * modules/uniwbrk/u16-wordbreaks: Likewise.
17341         * modules/uniwbrk/u32-wordbreaks: Likewise.
17342         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17343         * modules/uniwbrk/wordbreak-property: Likewise.
17344         * modules/uniwidth/u8-strwidth: Likewise.
17345         * modules/uniwidth/u8-width: Likewise.
17346         * modules/uniwidth/u16-strwidth: Likewise.
17347         * modules/uniwidth/u16-width: Likewise.
17348         * modules/uniwidth/u32-strwidth: Likewise.
17349         * modules/uniwidth/u32-width: Likewise.
17350         * modules/uniwidth/width: Likewise.
17351         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17352         with $(LIBUNISTRING).
17353         * modules/unicase/ignorable-tests: Likewise.
17354         * modules/unicase/locale-language-tests: Likewise.
17355         * modules/unicase/tolower-tests: Likewise.
17356         * modules/unicase/totitle-tests: Likewise.
17357         * modules/unicase/toupper-tests: Likewise.
17358         * modules/unicase/u8-casecmp-tests: Likewise.
17359         * modules/unicase/u8-casecoll-tests: Likewise.
17360         * modules/unicase/u8-casefold-tests: Likewise.
17361         * modules/unicase/u8-is-cased-tests: Likewise.
17362         * modules/unicase/u8-is-casefolded-tests: Likewise.
17363         * modules/unicase/u8-is-lowercase-tests: Likewise.
17364         * modules/unicase/u8-is-titlecase-tests: Likewise.
17365         * modules/unicase/u8-is-uppercase-tests: Likewise.
17366         * modules/unicase/u8-tolower-tests: Likewise.
17367         * modules/unicase/u8-totitle-tests: Likewise.
17368         * modules/unicase/u8-toupper-tests: Likewise.
17369         * modules/unicase/u16-casecmp-tests: Likewise.
17370         * modules/unicase/u16-casecoll-tests: Likewise.
17371         * modules/unicase/u16-casefold-tests: Likewise.
17372         * modules/unicase/u16-is-cased-tests: Likewise.
17373         * modules/unicase/u16-is-casefolded-tests: Likewise.
17374         * modules/unicase/u16-is-lowercase-tests: Likewise.
17375         * modules/unicase/u16-is-titlecase-tests: Likewise.
17376         * modules/unicase/u16-is-uppercase-tests: Likewise.
17377         * modules/unicase/u16-tolower-tests: Likewise.
17378         * modules/unicase/u16-totitle-tests: Likewise.
17379         * modules/unicase/u16-toupper-tests: Likewise.
17380         * modules/unicase/u32-casecmp-tests: Likewise.
17381         * modules/unicase/u32-casecoll-tests: Likewise.
17382         * modules/unicase/u32-casefold-tests: Likewise.
17383         * modules/unicase/u32-is-cased-tests: Likewise.
17384         * modules/unicase/u32-is-casefolded-tests: Likewise.
17385         * modules/unicase/u32-is-lowercase-tests: Likewise.
17386         * modules/unicase/u32-is-titlecase-tests: Likewise.
17387         * modules/unicase/u32-is-uppercase-tests: Likewise.
17388         * modules/unicase/u32-tolower-tests: Likewise.
17389         * modules/unicase/u32-totitle-tests: Likewise.
17390         * modules/unicase/u32-toupper-tests: Likewise.
17391         * modules/unicase/ulc-casecmp-tests: Likewise.
17392         * modules/unicase/ulc-casecoll-tests: Likewise.
17393         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17394         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17395         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17396         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17397         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17398         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17399         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17400         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17401         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17402         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17403         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17404         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17405         * modules/unictype/bidicategory-byname-tests: Likewise.
17406         * modules/unictype/bidicategory-name-tests: Likewise.
17407         * modules/unictype/bidicategory-of-tests: Likewise.
17408         * modules/unictype/bidicategory-test-tests: Likewise.
17409         * modules/unictype/block-list-tests: Likewise.
17410         * modules/unictype/block-of-tests: Likewise.
17411         * modules/unictype/block-test-tests: Likewise.
17412         * modules/unictype/category-C-tests: Likewise.
17413         * modules/unictype/category-Cc-tests: Likewise.
17414         * modules/unictype/category-Cf-tests: Likewise.
17415         * modules/unictype/category-Cn-tests: Likewise.
17416         * modules/unictype/category-Co-tests: Likewise.
17417         * modules/unictype/category-Cs-tests: Likewise.
17418         * modules/unictype/category-L-tests: Likewise.
17419         * modules/unictype/category-Ll-tests: Likewise.
17420         * modules/unictype/category-Lm-tests: Likewise.
17421         * modules/unictype/category-Lo-tests: Likewise.
17422         * modules/unictype/category-Lt-tests: Likewise.
17423         * modules/unictype/category-Lu-tests: Likewise.
17424         * modules/unictype/category-M-tests: Likewise.
17425         * modules/unictype/category-Mc-tests: Likewise.
17426         * modules/unictype/category-Me-tests: Likewise.
17427         * modules/unictype/category-Mn-tests: Likewise.
17428         * modules/unictype/category-N-tests: Likewise.
17429         * modules/unictype/category-Nd-tests: Likewise.
17430         * modules/unictype/category-Nl-tests: Likewise.
17431         * modules/unictype/category-No-tests: Likewise.
17432         * modules/unictype/category-P-tests: Likewise.
17433         * modules/unictype/category-Pc-tests: Likewise.
17434         * modules/unictype/category-Pd-tests: Likewise.
17435         * modules/unictype/category-Pe-tests: Likewise.
17436         * modules/unictype/category-Pf-tests: Likewise.
17437         * modules/unictype/category-Pi-tests: Likewise.
17438         * modules/unictype/category-Po-tests: Likewise.
17439         * modules/unictype/category-Ps-tests: Likewise.
17440         * modules/unictype/category-S-tests: Likewise.
17441         * modules/unictype/category-Sc-tests: Likewise.
17442         * modules/unictype/category-Sk-tests: Likewise.
17443         * modules/unictype/category-Sm-tests: Likewise.
17444         * modules/unictype/category-So-tests: Likewise.
17445         * modules/unictype/category-Z-tests: Likewise.
17446         * modules/unictype/category-Zl-tests: Likewise.
17447         * modules/unictype/category-Zp-tests: Likewise.
17448         * modules/unictype/category-Zs-tests: Likewise.
17449         * modules/unictype/category-and-not-tests: Likewise.
17450         * modules/unictype/category-and-tests: Likewise.
17451         * modules/unictype/category-byname-tests: Likewise.
17452         * modules/unictype/category-name-tests: Likewise.
17453         * modules/unictype/category-none-tests: Likewise.
17454         * modules/unictype/category-of-tests: Likewise.
17455         * modules/unictype/category-or-tests: Likewise.
17456         * modules/unictype/category-test-withtable-tests: Likewise.
17457         * modules/unictype/combining-class-tests: Likewise.
17458         * modules/unictype/ctype-alnum-tests: Likewise.
17459         * modules/unictype/ctype-alpha-tests: Likewise.
17460         * modules/unictype/ctype-blank-tests: Likewise.
17461         * modules/unictype/ctype-cntrl-tests: Likewise.
17462         * modules/unictype/ctype-digit-tests: Likewise.
17463         * modules/unictype/ctype-graph-tests: Likewise.
17464         * modules/unictype/ctype-lower-tests: Likewise.
17465         * modules/unictype/ctype-print-tests: Likewise.
17466         * modules/unictype/ctype-punct-tests: Likewise.
17467         * modules/unictype/ctype-space-tests: Likewise.
17468         * modules/unictype/ctype-upper-tests: Likewise.
17469         * modules/unictype/ctype-xdigit-tests: Likewise.
17470         * modules/unictype/decimal-digit-tests: Likewise.
17471         * modules/unictype/digit-tests: Likewise.
17472         * modules/unictype/mirror-tests: Likewise.
17473         * modules/unictype/numeric-tests: Likewise.
17474         * modules/unictype/property-alphabetic-tests: Likewise.
17475         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17476         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17477         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17478         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17479         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17480         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17481         * modules/unictype/property-bidi-control-tests: Likewise.
17482         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17483         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17484         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17485         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17486         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17487         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17488         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17489         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17490         * modules/unictype/property-bidi-pdf-tests: Likewise.
17491         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17492         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17493         * modules/unictype/property-byname-tests: Likewise.
17494         * modules/unictype/property-combining-tests: Likewise.
17495         * modules/unictype/property-composite-tests: Likewise.
17496         * modules/unictype/property-currency-symbol-tests: Likewise.
17497         * modules/unictype/property-dash-tests: Likewise.
17498         * modules/unictype/property-decimal-digit-tests: Likewise.
17499         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17500         * modules/unictype/property-deprecated-tests: Likewise.
17501         * modules/unictype/property-diacritic-tests: Likewise.
17502         * modules/unictype/property-extender-tests: Likewise.
17503         * modules/unictype/property-format-control-tests: Likewise.
17504         * modules/unictype/property-grapheme-base-tests: Likewise.
17505         * modules/unictype/property-grapheme-extend-tests: Likewise.
17506         * modules/unictype/property-grapheme-link-tests: Likewise.
17507         * modules/unictype/property-hex-digit-tests: Likewise.
17508         * modules/unictype/property-hyphen-tests: Likewise.
17509         * modules/unictype/property-id-continue-tests: Likewise.
17510         * modules/unictype/property-id-start-tests: Likewise.
17511         * modules/unictype/property-ideographic-tests: Likewise.
17512         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17513         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17514         * modules/unictype/property-ignorable-control-tests: Likewise.
17515         * modules/unictype/property-iso-control-tests: Likewise.
17516         * modules/unictype/property-join-control-tests: Likewise.
17517         * modules/unictype/property-left-of-pair-tests: Likewise.
17518         * modules/unictype/property-line-separator-tests: Likewise.
17519         * modules/unictype/property-logical-order-exception-tests: Likewise.
17520         * modules/unictype/property-lowercase-tests: Likewise.
17521         * modules/unictype/property-math-tests: Likewise.
17522         * modules/unictype/property-non-break-tests: Likewise.
17523         * modules/unictype/property-not-a-character-tests: Likewise.
17524         * modules/unictype/property-numeric-tests: Likewise.
17525         * modules/unictype/property-other-alphabetic-tests: Likewise.
17526         * modules/unictype/property-other-default-ignorable-code-point-tests:
17527         Likewise.
17528         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
17529         * modules/unictype/property-other-id-continue-tests: Likewise.
17530         * modules/unictype/property-other-id-start-tests: Likewise.
17531         * modules/unictype/property-other-lowercase-tests: Likewise.
17532         * modules/unictype/property-other-math-tests: Likewise.
17533         * modules/unictype/property-other-uppercase-tests: Likewise.
17534         * modules/unictype/property-paired-punctuation-tests: Likewise.
17535         * modules/unictype/property-paragraph-separator-tests: Likewise.
17536         * modules/unictype/property-pattern-syntax-tests: Likewise.
17537         * modules/unictype/property-pattern-white-space-tests: Likewise.
17538         * modules/unictype/property-private-use-tests: Likewise.
17539         * modules/unictype/property-punctuation-tests: Likewise.
17540         * modules/unictype/property-quotation-mark-tests: Likewise.
17541         * modules/unictype/property-radical-tests: Likewise.
17542         * modules/unictype/property-sentence-terminal-tests: Likewise.
17543         * modules/unictype/property-soft-dotted-tests: Likewise.
17544         * modules/unictype/property-space-tests: Likewise.
17545         * modules/unictype/property-terminal-punctuation-tests: Likewise.
17546         * modules/unictype/property-test-tests: Likewise.
17547         * modules/unictype/property-titlecase-tests: Likewise.
17548         * modules/unictype/property-unassigned-code-value-tests: Likewise.
17549         * modules/unictype/property-unified-ideograph-tests: Likewise.
17550         * modules/unictype/property-uppercase-tests: Likewise.
17551         * modules/unictype/property-variation-selector-tests: Likewise.
17552         * modules/unictype/property-white-space-tests: Likewise.
17553         * modules/unictype/property-xid-continue-tests: Likewise.
17554         * modules/unictype/property-xid-start-tests: Likewise.
17555         * modules/unictype/property-zero-width-tests: Likewise.
17556         * modules/unictype/scripts-tests: Likewise.
17557         * modules/unictype/syntax-c-ident-tests: Likewise.
17558         * modules/unictype/syntax-c-whitespace-tests: Likewise.
17559         * modules/unictype/syntax-java-ident-tests: Likewise.
17560         * modules/unictype/syntax-java-whitespace-tests: Likewise.
17561         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
17562         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
17563         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
17564         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
17565         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
17566         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
17567         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
17568         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
17569         * modules/uniname/uniname-tests: Likewise.
17570         * modules/uninorm/canonical-decomposition-tests: Likewise.
17571         * modules/uninorm/compat-decomposition-tests: Likewise.
17572         * modules/uninorm/composition-tests: Likewise.
17573         * modules/uninorm/decomposing-form-tests: Likewise.
17574         * modules/uninorm/decomposition-tests: Likewise.
17575         * modules/uninorm/filter-tests: Likewise.
17576         * modules/uninorm/nfc-tests: Likewise.
17577         * modules/uninorm/nfd-tests: Likewise.
17578         * modules/uninorm/nfkc-tests: Likewise.
17579         * modules/uninorm/nfkd-tests: Likewise.
17580         * modules/uninorm/u8-normcmp-tests: Likewise.
17581         * modules/uninorm/u8-normcoll-tests: Likewise.
17582         * modules/uninorm/u16-normcmp-tests: Likewise.
17583         * modules/uninorm/u16-normcoll-tests: Likewise.
17584         * modules/uninorm/u32-normcmp-tests: Likewise.
17585         * modules/uninorm/u32-normcoll-tests: Likewise.
17586         * modules/unistdio/u8-asnprintf-tests: Likewise.
17587         * modules/unistdio/u8-vasnprintf-tests: Likewise.
17588         * modules/unistdio/u8-vasprintf-tests: Likewise.
17589         * modules/unistdio/u8-vsnprintf-tests: Likewise.
17590         * modules/unistdio/u8-vsprintf-tests: Likewise.
17591         * modules/unistdio/u16-asnprintf-tests: Likewise.
17592         * modules/unistdio/u16-vasnprintf-tests: Likewise.
17593         * modules/unistdio/u16-vasprintf-tests: Likewise.
17594         * modules/unistdio/u16-vsnprintf-tests: Likewise.
17595         * modules/unistdio/u16-vsprintf-tests: Likewise.
17596         * modules/unistdio/u32-asnprintf-tests: Likewise.
17597         * modules/unistdio/u32-vasnprintf-tests: Likewise.
17598         * modules/unistdio/u32-vasprintf-tests: Likewise.
17599         * modules/unistdio/u32-vsnprintf-tests: Likewise.
17600         * modules/unistdio/u32-vsprintf-tests: Likewise.
17601         * modules/unistdio/ulc-asnprintf-tests: Likewise.
17602         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
17603         * modules/unistdio/ulc-vasprintf-tests: Likewise.
17604         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
17605         * modules/unistdio/ulc-vsprintf-tests: Likewise.
17606         * modules/unistr/u8-check-tests: Likewise.
17607         * modules/unistr/u8-chr-tests: Likewise.
17608         * modules/unistr/u8-cmp-tests: Likewise.
17609         * modules/unistr/u8-cmp2-tests: Likewise.
17610         * modules/unistr/u8-cpy-alloc-tests: Likewise.
17611         * modules/unistr/u8-cpy-tests: Likewise.
17612         * modules/unistr/u8-mblen-tests: Likewise.
17613         * modules/unistr/u8-mbsnlen-tests: Likewise.
17614         * modules/unistr/u8-mbtouc-tests: Likewise.
17615         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
17616         * modules/unistr/u8-mbtoucr-tests: Likewise.
17617         * modules/unistr/u8-move-tests: Likewise.
17618         * modules/unistr/u8-next-tests: Likewise.
17619         * modules/unistr/u8-prev-tests: Likewise.
17620         * modules/unistr/u8-set-tests: Likewise.
17621         * modules/unistr/u8-stpcpy-tests: Likewise.
17622         * modules/unistr/u8-stpncpy-tests: Likewise.
17623         * modules/unistr/u8-strcat-tests: Likewise.
17624         * modules/unistr/u8-strcmp-tests: Likewise.
17625         * modules/unistr/u8-strcoll-tests: Likewise.
17626         * modules/unistr/u8-strcpy-tests: Likewise.
17627         * modules/unistr/u8-strdup-tests: Likewise.
17628         * modules/unistr/u8-strlen-tests: Likewise.
17629         * modules/unistr/u8-strmblen-tests: Likewise.
17630         * modules/unistr/u8-strmbtouc-tests: Likewise.
17631         * modules/unistr/u8-strncat-tests: Likewise.
17632         * modules/unistr/u8-strncmp-tests: Likewise.
17633         * modules/unistr/u8-strncpy-tests: Likewise.
17634         * modules/unistr/u8-strnlen-tests: Likewise.
17635         * modules/unistr/u8-to-u16-tests: Likewise.
17636         * modules/unistr/u8-to-u32-tests: Likewise.
17637         * modules/unistr/u8-uctomb-tests: Likewise.
17638         * modules/unistr/u16-check-tests: Likewise.
17639         * modules/unistr/u16-chr-tests: Likewise.
17640         * modules/unistr/u16-cmp-tests: Likewise.
17641         * modules/unistr/u16-cmp2-tests: Likewise.
17642         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17643         * modules/unistr/u16-cpy-tests: Likewise.
17644         * modules/unistr/u16-mblen-tests: Likewise.
17645         * modules/unistr/u16-mbsnlen-tests: Likewise.
17646         * modules/unistr/u16-mbtouc-tests: Likewise.
17647         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17648         * modules/unistr/u16-mbtoucr-tests: Likewise.
17649         * modules/unistr/u16-move-tests: Likewise.
17650         * modules/unistr/u16-next-tests: Likewise.
17651         * modules/unistr/u16-prev-tests: Likewise.
17652         * modules/unistr/u16-set-tests: Likewise.
17653         * modules/unistr/u16-stpcpy-tests: Likewise.
17654         * modules/unistr/u16-stpncpy-tests: Likewise.
17655         * modules/unistr/u16-strcat-tests: Likewise.
17656         * modules/unistr/u16-strcmp-tests: Likewise.
17657         * modules/unistr/u16-strcoll-tests: Likewise.
17658         * modules/unistr/u16-strcpy-tests: Likewise.
17659         * modules/unistr/u16-strdup-tests: Likewise.
17660         * modules/unistr/u16-strlen-tests: Likewise.
17661         * modules/unistr/u16-strmblen-tests: Likewise.
17662         * modules/unistr/u16-strmbtouc-tests: Likewise.
17663         * modules/unistr/u16-strncat-tests: Likewise.
17664         * modules/unistr/u16-strncmp-tests: Likewise.
17665         * modules/unistr/u16-strncpy-tests: Likewise.
17666         * modules/unistr/u16-strnlen-tests: Likewise.
17667         * modules/unistr/u16-to-u32-tests: Likewise.
17668         * modules/unistr/u16-to-u8-tests: Likewise.
17669         * modules/unistr/u16-uctomb-tests: Likewise.
17670         * modules/unistr/u32-check-tests: Likewise.
17671         * modules/unistr/u32-chr-tests: Likewise.
17672         * modules/unistr/u32-cmp-tests: Likewise.
17673         * modules/unistr/u32-cmp2-tests: Likewise.
17674         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17675         * modules/unistr/u32-cpy-tests: Likewise.
17676         * modules/unistr/u32-mblen-tests: Likewise.
17677         * modules/unistr/u32-mbsnlen-tests: Likewise.
17678         * modules/unistr/u32-mbtouc-tests: Likewise.
17679         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17680         * modules/unistr/u32-mbtoucr-tests: Likewise.
17681         * modules/unistr/u32-move-tests: Likewise.
17682         * modules/unistr/u32-next-tests: Likewise.
17683         * modules/unistr/u32-prev-tests: Likewise.
17684         * modules/unistr/u32-set-tests: Likewise.
17685         * modules/unistr/u32-stpcpy-tests: Likewise.
17686         * modules/unistr/u32-stpncpy-tests: Likewise.
17687         * modules/unistr/u32-strcat-tests: Likewise.
17688         * modules/unistr/u32-strcmp-tests: Likewise.
17689         * modules/unistr/u32-strcoll-tests: Likewise.
17690         * modules/unistr/u32-strcpy-tests: Likewise.
17691         * modules/unistr/u32-strdup-tests: Likewise.
17692         * modules/unistr/u32-strlen-tests: Likewise.
17693         * modules/unistr/u32-strmblen-tests: Likewise.
17694         * modules/unistr/u32-strmbtouc-tests: Likewise.
17695         * modules/unistr/u32-strncat-tests: Likewise.
17696         * modules/unistr/u32-strncmp-tests: Likewise.
17697         * modules/unistr/u32-strncpy-tests: Likewise.
17698         * modules/unistr/u32-strnlen-tests: Likewise.
17699         * modules/unistr/u32-to-u16-tests: Likewise.
17700         * modules/unistr/u32-to-u8-tests: Likewise.
17701         * modules/unistr/u32-uctomb-tests: Likewise.
17702         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
17703         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
17704         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
17705         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
17706         * modules/uniwidth/u8-strwidth-tests: Likewise.
17707         * modules/uniwidth/u8-width-tests: Likewise.
17708         * modules/uniwidth/u16-strwidth-tests: Likewise.
17709         * modules/uniwidth/u16-width-tests: Likewise.
17710         * modules/uniwidth/u32-strwidth-tests: Likewise.
17711         * modules/uniwidth/u32-width-tests: Likewise.
17712         * modules/uniwidth/width-tests: Likewise.
17713
17714 2010-05-18  Richard Jones  <rjones@redhat.com>
17715
17716         doc: users.txt: list hivex
17717         * users.txt: Add hivex.
17718
17719 2010-05-18  Richard Jones  <rjones@redhat.com>
17720
17721         doc: users.txt: list febootstrap
17722         * users.txt: Add febootstrap.
17723
17724 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
17725
17726         bootstrap: fix an error when gnulib is not used as a git submodule
17727         * build-aux/bootstrap (gnulib_path): If its length is zero then
17728         assign "gnulib" to it.
17729         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
17730
17731 2010-05-16  Bruno Haible  <bruno@clisp.org>
17732
17733         Avoid autoconf warnings about AM_ICONV.
17734         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
17735         2.64.
17736
17737 2010-05-16  Bruno Haible  <bruno@clisp.org>
17738
17739         absolute-header: Make the macro usable in more situations.
17740         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
17741         from gl_ABSOLUTE_HEADER.
17742         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
17743
17744 2010-05-16  James Youngman  <jay@gnu.org>
17745
17746         doc: update users.txt
17747         * users.txt: Add CSSC.
17748
17749 2010-05-16  Jim Meyering  <meyering@redhat.com>
17750
17751         init.sh: fix an error in the previous change; add more comments
17752         * tests/init.sh: Compare exit code in loop against 9, not 2.
17753         Patch by Bruno Haible.
17754         Make the two tests more similar by adding an empty "then" clause.
17755         Add comments.
17756
17757         init.sh: avoid unnecessary shell re-exec
17758         * tests/init.sh: Improve the re-exec-required check to first test the
17759         current shell.  If it passes the test, do not search for a shell that
17760         does pass, and do not re-exec.  This test is particularly contorted to
17761         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
17762         of $(...) evokes a syntax error and causes immediate shell exit with
17763         status 2.  Bruno Haible reported that the re-exec made it impossible
17764         to single-step through any init.sh-using script.
17765
17766 2010-05-16  Bruno Haible  <bruno@clisp.org>
17767
17768         Fix collision between gnulib's and libintl's printf replacements.
17769         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
17770         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
17771         (printf): When using GNU C, map the __printf__ function to rpl_printf
17772         via __asm__. When not using GNU C, define rpl_printf instead of
17773         __printf__.
17774         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
17775         commit.
17776         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
17777         commit.
17778         * m4/asm-underscore.m4: New file.
17779         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
17780         * modules/stdio (Files): Add m4/asm-underscore.m4.
17781         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
17782         Reported by Ben Pfaff.
17783
17784 2010-05-16  Bruno Haible  <bruno@clisp.org>
17785
17786         verify: Avoid skipping the test on openSUSE 11.0.
17787         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
17788
17789 2010-05-13  Bruno Haible  <bruno@clisp.org>
17790
17791         Avoid useless warnings from G++.
17792         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
17793         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
17794         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17795
17796 2010-05-11  Jim Meyering  <meyering@redhat.com>
17797
17798         maint.mk: tweak preceding change
17799         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
17800         regexps tighter by anchoring at EOL, and make the new group "shy"
17801         for slightly decreased overhead.
17802
17803 2010-05-11  Eric Blake  <eblake@redhat.com>
17804
17805         maint.mk: gnulib doesn't guarantee NSIG
17806         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
17807
17808 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17809
17810         test-pwrite.c: Remove unused variable declaration.
17811         * tests/test-pwrite.c (main): Remove read_buf declaration.
17812
17813         Remove useless test-pwrite.sh file.
17814         * tests/test-pwrite.sh: Delete file.
17815         * modules/pwrite-tests: Remove references.
17816         Reported by Bruno Haible.
17817
17818 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17819
17820         init.sh: fix a typo
17821         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
17822
17823 2010-05-10  Jim Meyering  <meyering@redhat.com>
17824
17825         maint.mk: avoid using a temporary file in the always-defined-macros check
17826         * top/maint.mk (.re-defmac): Remove rule.
17827         (gl_trap_): Remove definition.
17828         (sc_prohibit_always-defined_macros): Rewrite not to create and
17829         depend on a temporary file.  Instead, depend on GNU grep's ability
17830         to read a list of regular expressions from stdin when given "-f -".
17831
17832 2010-05-09  Bruno Haible  <bruno@clisp.org>
17833
17834         Update to GNU gettext 0.18, part 1.
17835         * m4/gettext.m4: Update to GNU gettext 0.18.
17836         * m4/intl.m4: Likewise.
17837         * m4/po.m4: Likewise.
17838         * modules/gettext (Files): Add m4/fcntl-o.m4.
17839         (configure.ac): Require gettext infrastructure from version 0.18.
17840
17841 2010-05-09  Jim Meyering  <meyering@redhat.com>
17842
17843         init.sh: enable MALLOC_PERTURB_
17844         * tests/init.sh: Enable glibc's malloc-perturbing option.
17845
17846         maint.mk: improve sc_cross_check_PATH_usage_in_tests
17847         With my recent change in init.sh from the two-line form:
17848             -#   : ${srcdir=.}
17849             -#   . "$srcdir/init.sh"; path_prepend_ .
17850             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
17851         I noticed that using the one-line form would cause this test
17852         to fail with a false-positive, or to stop working altogether,
17853         depending on whether help-version changed or all the tests did.
17854         * top/maint.mk (_hv_regex): Remove this definition.
17855         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
17856         (_hv_regex_strong): Use a stronger regex to check for conformance.
17857         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
17858         Give a separate diagnostic for lack of conforming use.
17859
17860         maint.mk: prohibit definition of symbols defined by gnulib
17861         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
17862         definition of symbols defined by gnulib.
17863
17864 2010-05-09  Bruno Haible  <bruno@clisp.org>
17865
17866         acl: Avoid test failure on Cygwin-hosted mingw.
17867         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
17868
17869 2010-05-09  Bruno Haible  <bruno@clisp.org>
17870
17871         error: Use system's fcntl function.
17872         * lib/error.c (fcntl): Undefine.
17873
17874 2010-05-09  Jim Meyering  <meyering@redhat.com>
17875
17876         verify: adjust formatting to be more consistent
17877         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
17878         argument-list '('s, and after one comma.
17879
17880 2010-05-09  Bruno Haible  <bruno@clisp.org>
17881
17882         error: More reliable output on mingw.
17883         * lib/error.c: Include <windows.h>.
17884         (is_open): New function.
17885         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
17886         defined.
17887
17888 2010-05-09  Bruno Haible  <bruno@clisp.org>
17889
17890         vasnprintf: Fix syntax errors in libintl build on mingw.
17891         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
17892         pad_ourselves and prec_ourselves after use.
17893
17894 2010-05-08  Bruno Haible  <bruno@clisp.org>
17895
17896         * lib/config.charset: Update comments for Cygwin 1.7.
17897         * lib/localcharset.c: Likewise.
17898
17899 2010-05-07  Jim Meyering  <meyering@redhat.com>
17900
17901         init.sh: improve comments
17902         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
17903         . "${srcdir=.}/init.sh"; path_prepend_ .
17904         Add a note about path_prepend_ and the alternative of using
17905         TESTS_ENVIRONMENT.
17906
17907 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17908
17909         exclude: Unescape hashed patterns in wildcard mode.
17910         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
17911         to the hash list.
17912         * tests/test-exclude8.sh: New test case.
17913         * modules/exclude-tests: Add new test.
17914
17915 2010-05-05  Eric Blake  <eblake@redhat.com>
17916
17917         verify: automate tests
17918         * modules/verify-tests: New module.
17919         * tests/test-verify.sh: New file.
17920         * tests/test-verify.c: Guard each negative test with a unique id.
17921         Also avoid warning about unused left hand of comma expressions.
17922
17923 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17924
17925         Further improvements to verify.h, suggested by Eric Blake.
17926         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
17927         the GL_* versions, to avoid collision with OpenGL.
17928         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
17929         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
17930         than testing merely whether it's defined.
17931
17932         Modify verify.h to pacify gcc -Wredundant_decls.
17933         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
17934         These use the prefix "GL_" since they're likely to be useful elsewhere.
17935         We may need to break them out into a different .h file.
17936         (__COUNTER__): Define to 0 if the compiler doesn't support it.
17937         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
17938         of verify_function__.
17939
17940 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17941
17942         Tests for module pwrite.
17943         * modules/pwrite-tests: New file.
17944         * tests/test-pwrite.sh: New file.
17945         * tests/test-pwrite.c: New file.
17946
17947         New module pwrite.
17948         * lib/unistd.in.h (pwrite): New declaration.
17949         * lib/pwrite.c: New file, from glibc with modifications.
17950         * m4/pwrite.m4: New file.
17951         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
17952         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
17953         REPLACE_PWRITE.
17954         * modules/pwrite: New file.
17955         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
17956         REPLACE_PWRITE.
17957         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
17958         * doc/posix-functions/pwrite.texi: Mention the new module.
17959
17960 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17961
17962         pread: Update documentation.
17963         * doc/posix-functions/pread.texi: Mention the 'pread' module.
17964
17965 2010-05-04  Eric Blake  <eblake@redhat.com>
17966
17967         docs: update cygwin progress
17968         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
17969         this bug.
17970         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
17971         Added in cygwin 1.7.2.
17972         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
17973         Likewise.
17974         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
17975         Likewise.
17976         * doc/glibc-functions/dup3.texi (dup3): Likewise.
17977         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17978         * doc/glibc-functions/accept4.texi (accept4): Likewise.
17979         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
17980         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
17981         Mention nproc module.
17982         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
17983         bug in cygwin 1.7.5 addition.
17984         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
17985         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
17986         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
17987         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
17988         1.7.5.
17989         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
17990         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
17991         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
17992         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
17993         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
17994         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
17995         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
17996         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
17997         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
17998         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
17999         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
18000         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
18001         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
18002         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
18003         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
18004         Likewise.
18005         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
18006         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
18007         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
18008         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
18009         Likewise.
18010         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
18011         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
18012         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
18013         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
18014         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
18015         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
18016         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
18017         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
18018         Likewise.
18019         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
18020         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
18021         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
18022         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
18023         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
18024         Likewise.
18025         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
18026         Likewise.
18027         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
18028         Likewise.
18029         * doc/glibc-functions/xdrrec_endofrecord.texi
18030         (xdrrec_endofrecord): Likewise.
18031         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
18032         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
18033         Likewise.
18034         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
18035         Likewise.
18036
18037 2010-05-04  Jim Meyering  <meyering@redhat.com>
18038
18039         gendocs.sh: make its "-s FILE" option more useful
18040         * build-aux/gendocs.sh: When honoring the -s FILE option, update
18041         $PACKAGE to reflect the probably-different basename of "FILE".
18042
18043 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18044
18045         bootstrap: don't ignore download_po_files failure
18046         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
18047         failure.
18048
18049 2010-05-03  Jim Meyering  <meyering@redhat.com>
18050
18051         maint.mk: allow to pass options to gendocs.sh
18052         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
18053         (gendocs_options_): New overridable variable.
18054
18055         gnu-web-doc-update: don't ignore configure or build failure
18056         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
18057
18058         announce-gen: backslash-escape '@'s in --help output
18059         * build-aux/announce-gen: Fix syntax errors.
18060
18061         maint.mk, announce-gen: allow project-specific announcement mail headers
18062         * top/maint.mk (translation_project_): Define default.
18063         (announcement_Cc_, announcement_mail_headers_): Likewise.
18064         (announcement): Invoke announce-gen with new --mail-headers option.
18065         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
18066
18067         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
18068         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
18069         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
18070         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
18071         line in the "err2" output file when running "make check" in verbose
18072         mode (i.e., with set -x enabled).
18073
18074 2010-05-03  Bruno Haible  <bruno@clisp.org>
18075
18076         wctob: Fix for weird platforms.
18077         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
18078         argument value.
18079
18080 2010-05-03  Jim Meyering  <meyering@redhat.com>
18081
18082         maint.mk: prohibit unwarranted use of <strings.h>
18083         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
18084         strings.h in a file that does not also use strcasecmp, strncasecmp,
18085         ffs or ffsll.
18086
18087         maint.mk: remove obsolete comments
18088         * top/maint.mk: Remove stale, commented-out rules.
18089
18090 2010-05-02  Bruno Haible  <bruno@clisp.org>
18091
18092         wcwidth: Declare also when it's aliased.
18093         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
18094         macro.
18095
18096 2010-05-02  Bruno Haible  <bruno@clisp.org>
18097
18098         Fix regression from 2010-04-25.
18099         * gnulib-tool (func_modules_transitive_closure): Check the status of
18100         all modules, not only of the tests that are of the form foo-tests where
18101         foo is a module.
18102
18103 2010-05-02  Bruno Haible  <bruno@clisp.org>
18104
18105         wctob: Work around nasty Cygwin 1.7.2 bug.
18106         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
18107         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
18108
18109 2010-05-01  Bruno Haible  <bruno@clisp.org>
18110
18111         fpurge: Sharper test.
18112         * tests/test-fpurge.c (main): Add one more ftell check.
18113         * modules/fpurge-tests (Depends-on): Add ftell.
18114         Suggested by Eric Blake.
18115
18116 2010-05-01  Bruno Haible  <bruno@clisp.org>
18117
18118         ftello: Another test.
18119         * tests/test-ftello3.c: New file.
18120         * modules/ftello-tests (Files): Add it.
18121         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18122         MOSTLYCLEANFILES.
18123
18124         ftell: Another test.
18125         * tests/test-ftell3.c: New file.
18126         * modules/ftell-tests (Files): Add it.
18127         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
18128         MOSTLYCLEANFILES.
18129
18130 2010-05-01  Bruno Haible  <bruno@clisp.org>
18131
18132         ftell, ftello: Work around Solaris bug.
18133         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
18134         * lib/ftello.c: Include stdio-impl.h.
18135         (ftello): On Solaris, when _IOWRT is set, compute the result without
18136         looking at _IOREAD.
18137         * modules/ftello (Files): Add lib/stdio-impl.h.
18138         * doc/posix-functions/ftell.texi: Mention Solaris bug.
18139         * doc/posix-functions/ftello.texi: Likewise.
18140         Reported by Eric Blake.
18141
18142 2010-05-01  Bruno Haible  <bruno@clisp.org>
18143
18144         freading: Adapt to special meaning of _IOREAD flag on Solaris.
18145         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
18146         the _IOWRT flag is also set.
18147
18148 2010-05-01  Bruno Haible  <bruno@clisp.org>
18149
18150         Fix doc about a HP-UX stdio bug.
18151         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
18152         * doc/posix-functions/ftello.texi: Likewise.
18153
18154 2010-05-01  Bruno Haible  <bruno@clisp.org>
18155
18156         lseek test: Fix failure on Solaris.
18157         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
18158         output.
18159
18160 2010-04-30  Jim Meyering  <meyering@redhat.com>
18161
18162         bootstrap: don't ignore failure to generate po*/Makevars
18163         * build-aux/bootstrap (with_gettext): Don't ignore failure
18164         to create po/Makevars or runtime-po/Makevars.
18165
18166 2010-04-29  Eric Blake  <eblake@redhat.com>
18167
18168         headers: relax license to LGPLv2+
18169         * modules/fcntl-h (License): Relax license.
18170         * modules/getopt-posix (License): Likewise.
18171         * modules/locale (License): Likewise.
18172         * modules/math (License): Likewise.
18173         * modules/pty (License): Likewise.
18174         * modules/sched (License): Likewise.
18175         * modules/search (License): Likewise.
18176         * modules/spawn (License): Likewise.
18177         * modules/stdarg (License): Likewise.
18178         * modules/sysexits (License): Likewise.
18179
18180 2010-04-29  Jim Meyering  <meyering@redhat.com>
18181
18182         inttypes: relax license to LGPLv2+
18183         * modules/inttypes (License): Relax license.
18184
18185 2010-04-29  Simon Josefsson  <simon@josefsson.org>
18186
18187         * top/maint.mk (indent): Run twice to produce idempotent results.
18188
18189 2010-04-28  Bruno Haible  <bruno@clisp.org>
18190
18191         getdate: Generate getdate.c in the source directory.
18192         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
18193         MOSTLYCLEANFILES.
18194         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
18195
18196 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
18197
18198         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
18199         is not declared as a const *; avoid warnings in that case.
18200
18201 2010-04-28  Eric Blake  <eblake@redhat.com>
18202
18203         canonicalize-lgpl: avoid compiler warning
18204         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
18205         declaration' / 'extraneous semicolon' warning with some compilers.
18206         Reported by Andreas Gruenbacher.
18207
18208 2010-04-28  Jim Meyering  <meyering@redhat.com>
18209
18210         init.sh: ensure a more reliable exit status when exiting via trap
18211         * tests/init.sh (setup_): Don't rely on $? in signal handler.
18212         Inspired by patches from Dmitry V. Levin.
18213         Also trap on signal 3 (SIGQUIT).
18214
18215 2010-04-27  Bruno Haible  <bruno@clisp.org>
18216
18217         Update doc about utimes().
18218         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
18219         'utimens' module.
18220         Reported by Andreas Gruenbacher <agruen@suse.de>.
18221
18222 2010-04-27  Eric Blake  <eblake@redhat.com>
18223
18224         full-read, full-write: relax license
18225         * modules/full-read (License): Drop to LGPLv2+.
18226         * modules/full-write (License): Likewise.
18227         * modules/safe-read (License): Likewise.
18228         * modules/safe-write (License): Likewise.
18229
18230         pthread: mention library for linking
18231         * modules/pthread (Link): Mention $(LIB_PTHREAD).
18232
18233 2010-04-27  Jim Meyering  <meyering@redhat.com>
18234
18235         maint.mk: fix a bug introduced in last change
18236         * top/maint.mk (gl_assured_headers_): Now that all names are on
18237         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
18238         is not anchored to end of word, it should be adequate.
18239
18240         maint.mk: avoid side-effect in latest syntax-check
18241         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
18242         to run commands via $(shell...), and hence to incur cost only when
18243         the new rule is actually run.
18244
18245         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
18246         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
18247         and use that to create a regexp used to detect all #if HAVE_..._H uses.
18248         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
18249         (gl_assured_headers_, az_, AZ_): Define.
18250         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
18251
18252 2010-04-26  Jim Meyering  <jim@meyering.net>
18253             Bruno Haible  <bruno@clisp.org>
18254
18255         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
18256         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
18257         Prompted by an exchange with Gilles Espinasse.
18258
18259 2010-04-26  Jim Meyering  <meyering@redhat.com>
18260
18261         git-version-gen: aesthetic tweak
18262         * build-aux/git-version-gen: Use "$nl" rather than a literal,
18263         so that the command remains on a single line.
18264
18265 2010-04-26  Eric Blake  <eblake@redhat.com>
18266
18267         git-version-gen: allow use on EBCDIC hosts
18268         * build-aux/git-version-gen (dirty): Use literal rather than tying
18269         ourselves to ascii.
18270         Reported by Steve Goetze.
18271
18272 2010-04-25  Bruno Haible  <bruno@clisp.org>
18273
18274         netdb: Add support for GNULIB_POSIXCHECK.
18275         * lib/netdb.in.h: Include warn-on-use.h.
18276         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
18277         functions are used when GNULIB_POSIXCHECK is defined and the
18278         getaddrinfo module is not in use.
18279         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
18280         freeaddrinfo, gai_strerror, getnameinfo are declared.
18281         * modules/netdb (Depends-on): Add warn-on-use.
18282         (Makefile.am): Include warn-on-use.h in netdb.h.
18283
18284 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
18285
18286         build: avoid "make check" failure without .git/ directory
18287         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
18288         there is no .git/ directory.
18289
18290 2010-04-25  Bruno Haible  <bruno@clisp.org>
18291
18292         ptsname: Fix misuse of ttyname_r.
18293         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
18294         of errno.
18295
18296 2010-04-25  Bruno Haible  <bruno@clisp.org>
18297
18298         ttyname_r: Make it work on Solaris 10.
18299         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
18300         if the system function has the POSIX declaration. Test whether the
18301         function fails if the buffer is less than 128 bytes large.
18302         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
18303         system's ttyname_r function. Provide a reasonably large buffer.
18304         * modules/ttyname_r (Depends-on): Add extensions.
18305         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
18306
18307 2010-04-25  Bruno Haible  <bruno@clisp.org>
18308
18309         Use the 'extensions' module for some more functions on Solaris.
18310         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18311         module.
18312         * doc/posix-functions/ctime_r.texi: Likewise.
18313         * doc/posix-functions/getgrgid_r.texi: Likewise.
18314         * doc/posix-functions/getgrnam_r.texi: Likewise.
18315         * doc/posix-functions/getpwnam_r.texi: Likewise.
18316         * doc/posix-functions/getpwuid_r.texi: Likewise.
18317         * doc/posix-functions/readdir_r.texi: Likewise.
18318         * doc/posix-functions/sigwait.texi: Likewise.
18319         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18320         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18321
18322 2010-04-25  Bruno Haible  <bruno@clisp.org>
18323
18324         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18325         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18326         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18327         * lib/ttyname_r.c: Include <limits.h>.
18328         (ttyname_r): Define using the system's ttyname_r function, if it exists
18329         and not on Solaris.
18330         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18331         set.
18332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18333         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18334         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18335         Reported by Simon Josefsson.
18336
18337 2010-04-25  Bruno Haible  <bruno@clisp.org>
18338
18339         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18340         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
18341         * doc/posix-functions/ctime_r.texi: Likewise.
18342         * doc/posix-functions/getgrgid_r.texi: Likewise.
18343         * doc/posix-functions/getgrnam_r.texi: Likewise.
18344         * doc/posix-functions/getlogin_r.texi: Likewise.
18345         * doc/posix-functions/getpwnam_r.texi: Likewise.
18346         * doc/posix-functions/getpwuid_r.texi: Likewise.
18347         * doc/posix-functions/readdir_r.texi: Likewise.
18348         * doc/posix-functions/sigwait.texi: Likewise.
18349         * doc/posix-functions/ttyname_r.texi: Likewise.
18350         Reported by Simon Josefsson.
18351
18352 2010-04-25  Bruno Haible  <bruno@clisp.org>
18353
18354         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18355         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18356         also to --create-testdir.
18357         (func_acceptable): Don't consider the status of *-tests modules here.
18358         (func_modules_transitive_closure): Consider it here, before including a
18359         test module.
18360         (func_import, func_create_testdir): Set inc_all_direct_tests,
18361         inc_all_indirect_tests.
18362         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18363         --create-testdir and --create-megatestdir.
18364
18365 2010-04-25  Bruno Haible  <bruno@clisp.org>
18366
18367         gnulib-tool: Add --without-*-tests options.
18368         * gnulib-tool (func_usage): Document the --without-*-tests options.
18369         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18370         excl_unportable_tests): New variables.
18371         Fail if they are specified with --import or --update.
18372         (func_acceptable): Respect the excl_*_tests variables.
18373         (func_import): Set the excl_*_tests variables to empty.
18374
18375 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18376             Bruno Haible  <bruno@clisp.org>
18377
18378         Work around a MacOS X 10.4 bug with openpty.
18379         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18380         * tests/test-openpty.c (main): Close the master side explicitly.
18381
18382 2010-04-25  Bruno Haible  <bruno@clisp.org>
18383
18384         strnlen: Fix a C++ test error on MacOS X and Solaris.
18385         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18386         the function is not declared.
18387         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18388         Simon Josefsson.
18389
18390 2010-04-24  Bruno Haible  <bruno@clisp.org>
18391
18392         Avoid a gcc warning.
18393         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18394         of correct type for %08lx directive.
18395         Reported by Eric Blake.
18396
18397 2010-04-24  Bruno Haible  <bruno@clisp.org>
18398
18399         vasnprintf: Correct errno value in case of out-of-memory.
18400         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18401         or sprintf. Use the errno value from SNPRINTF or sprintf.
18402         Reported by Ian Beckwith <ianb@erislabs.net>.
18403
18404 2010-04-24  Bruno Haible  <bruno@clisp.org>
18405
18406         ansi-c++-opt: Find correct compiler when cross-compiling.
18407         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18408         AC_CHECK_PROGS.
18409         Reported by Simon Josefsson.
18410
18411 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18412
18413         vc-list-files: Add support for subversion
18414         * build-aux/vc-list-files: Use "svn list" to generate the list of
18415         files controlled by subversion.
18416
18417 2010-04-23  Jim Meyering  <meyering@redhat.com>
18418
18419         vc-list-files tests: convert to use init.sh
18420         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18421         path_prepend_.
18422         Use Exit, not exit.
18423         Use skip_ rather than open coding it.
18424         Remove trap set-up and compare definitions.
18425         * tests/test-vc-list-files-git.sh: Likewise.
18426         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18427
18428 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18429
18430         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18431         backup files.
18432
18433 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18434
18435         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18436
18437 2010-04-20  Eric Blake  <eblake@redhat.com>
18438
18439         tests: be robust to ignored SIGPIPE
18440         * tests/test-select-in.sh: Consume all output.
18441         * tests/test-lseek.sh: Check correct exit status, while avoiding
18442         EPIPE.
18443
18444 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18445             Bruno Haible  <bruno@clisp.org>
18446
18447         visibility: Don't use -fvisibility if it leads to a warning.
18448         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18449         yes, don't pretend that visibility works if it leads to a warning.
18450         Reported by Mike Gran <spk121@yahoo.com>.
18451
18452 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18453
18454         * build-aux/bootstrap: Use "git -h" for testing for supported options
18455         instead of "git --help".  The short-form option only shows a summary,
18456         and doesn't layout the full man page.  Grep for the full option name
18457         in the summary, too.
18458
18459 2010-04-19  Bruno Haible  <bruno@clisp.org>
18460
18461         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18462         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18463         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18464         mention of RELOCATABLE_STRIP.
18465         Reported by Sylvain Beucler <beuc@beuc.net>.
18466
18467 2010-04-19  Bruno Haible  <bruno@clisp.org>
18468
18469         * lib/diffseq.h: Fix typo in comment.
18470         Reported by Eric Blake.
18471
18472 2010-04-19  Bruno Haible  <bruno@clisp.org>
18473
18474         ioctl: Move autoconf macro to a .m4 file.
18475         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18476         * modules/ioctl (Files): Add it.
18477         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18478         Reported by Ian Beckwith <ianb@erislabs.net>.
18479
18480 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18481             Bruno Haible  <bruno@clisp.org>
18482
18483         diffseq: Accommodate use-case with abstract arrays.
18484         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18485         is not defined.
18486         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18487         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18488
18489 2010-04-18  Bruno Haible  <bruno@clisp.org>
18490
18491         * doc/posix-headers/stdbool.texi: More precise wording.
18492
18493 2010-04-17  Jim Meyering  <meyering@redhat.com>
18494
18495         maint.mk: use gnu-style indentation in an embedded perl script
18496         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18497         Rename variable: s/two/last_two_bytes/
18498
18499 2010-04-16  Eric Blake  <eblake@redhat.com>
18500
18501         test-stdbool: skip test that fails with Solaris CC
18502         * tests/test-stdbool.c (f): Skip test that causes compilation
18503         error under buggy C++ compiler.
18504         * lib/stdbool.in.h: Document the limitation.
18505         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18506
18507         setenv: allow compilation with C++
18508         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18509         register keyword.
18510
18511         stdint: allow test to pass with C++
18512         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18513
18514         getopt: allow compilation with C++
18515         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18516         struct.
18517         * lib/getopt.c (_getopt_internal_r): Use correct type.
18518         Reported by Dagobert Michelson, via Joel E. Denny.
18519
18520 2010-04-16  Bruno Haible  <bruno@clisp.org>
18521
18522         Override netdb.h always.
18523         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18524         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18525         Reported by Ludovic Courtès <ludo@gnu.org>.
18526
18527 2010-04-15  Bruno Haible  <bruno@clisp.org>
18528
18529         openpty: Fix mistake from 2010-03-21.
18530         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
18531         Reported by Simon Josefsson.
18532
18533 2010-04-15  Eric Blake  <eblake@redhat.com>
18534
18535         test-forkpty: fix expected signature
18536         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18537         Reported by Simon Josefsson.
18538
18539 2010-04-15  Jim Meyering  <meyering@redhat.com>
18540
18541         maint.mk: texinfo_suffix_re_: correct the default regexp
18542         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
18543
18544         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
18545         make it configurable via texinfo_suffix_re_.
18546
18547 2010-04-14  Eric Blake  <eblake@redhat.com>
18548
18549         strtok_r: relax license to LGPLv2+
18550         * modules/strtok_r (License): Relax license.
18551         Reported by Matthias Bolte.
18552
18553 2010-04-14  Simon Josefsson  <simon@josefsson.org>
18554
18555         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
18556         version 1.4.4 by default instead of requiring the libgcrypt
18557         version used during build.  This makes it possible to use the
18558         application with older but still binary compatible libgcrypt
18559         versions.
18560
18561 2010-04-13  Eric Blake  <eblake@redhat.com>
18562
18563         getopt-gnu: match recent glibc fixes and posix ruling
18564         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
18565         '+' handling, when requesting extensions.
18566         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
18567         'W;' handling.
18568         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
18569         * doc/posix-functions/getopt.texi (getopt): Document this.
18570         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18571         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18572         Likewise.
18573
18574         getopt: merge bug fixes from glibc
18575         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
18576         diagnostics.  Honor '+:' correctly.  Reject ';'.
18577
18578         getopt-posix: detect MacOS bug
18579         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
18580         optind when missing a required argument.
18581         * doc/posix-functions/getopt.texi (getopt): Document the bug.
18582         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18583         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18584         Likewise.
18585
18586         getopt-posix: avoid spurious failure on Solaris
18587         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
18588         an indicator that setting optind=1 is sufficient for reset.
18589
18590         getopt-posix: avoid spurious failure on FreeBSD
18591         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
18592         in POSIX mode, since the m4 test uses it.
18593
18594         gnulib-tool: silence warning on BSD sh
18595         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
18596
18597 2010-04-13  Jim Meyering  <meyering@redhat.com>
18598
18599         doc: users.txt: GNU patch now uses gnulib
18600         * users.txt: Add patch.
18601
18602 2010-04-12  Jim Meyering  <meyering@redhat.com>
18603
18604         maint.mk: generate more concise timing data for syntax-check rules
18605         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
18606         " done" from each line that reports a syntax-check test duration.
18607
18608 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
18609
18610         git-version-gen: use "git update-index..." rather than "git status"
18611         * build-aux/git-version-gen: Use git update-index --refresh, not
18612         "git status".  With some versions of git, "git status" would fail
18613         to update the index and result in an unwarranted "-dirty" suffix.
18614
18615 2010-04-11  Jim Meyering  <meyering@redhat.com>
18616
18617         openat: correct formatting (no semantic change)
18618         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18619         Suggested by Bruno Haible.
18620
18621 2010-04-11  Bruno Haible  <bruno@clisp.org>
18622
18623         Stricter declaration checking in testdirs.
18624         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18625         If for_tests is true, augment AM_CPPFLAGS to define
18626         GNULIB_STRICT_CHECKING.
18627         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18628         GNULIB_STRICT_CHECKING is defined, verify that the function is
18629         declared.
18630
18631 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18632             Bruno Haible  <bruno@clisp.org>
18633
18634         libunistring: Improve configure output.
18635         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18636         Don't say "consider installing GNU libunistring" when checking again
18637         with libiconv.
18638
18639 2010-04-11  Bruno Haible  <bruno@clisp.org>
18640
18641         libunistring: Correct value of $LTLIBUNISTRING.
18642         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18643         correct the value of $LTLIBUNISTRING.
18644
18645 2010-04-11  Bruno Haible  <bruno@clisp.org>
18646
18647         havelib: Add static libraries to LIBS in the right order.
18648         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18649         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18650
18651 2010-04-11  Bruno Haible  <bruno@clisp.org>
18652
18653         libunistring: Detect libunistring also when it depends on libiconv.
18654         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18655         the second AC_LIB_HAVE_LINKFLAGS invocation.
18656
18657 2010-04-11  James Youngman  <jay@gnu.org>
18658
18659         close-stream: declare local scalars to be "const"
18660         * lib/close-stream.c (close_stream): Make boolean variables const
18661         to document the fact that we set but do not change them.
18662
18663 2010-04-11  Bruno Haible  <bruno@clisp.org>
18664
18665         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18666
18667 2010-04-11  Jim Meyering  <meyering@redhat.com>
18668
18669         maint.mk: don't include dist-check.mk
18670         * top/maint.mk: Remove bogus include directive.
18671
18672         maint.mk: improve empty-line-at-EOF check
18673         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18674         solution, rather than tail+Perl-based one.  The latter would read
18675         a few kilobytes from the end of each file, and did not handle empty
18676         files properly.
18677
18678         maint.mk: print the elapsed time for each syntax-check rule
18679         * top/maint.mk (sc_m_rules_): Save start time in a file.
18680         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18681         (local-check): Interpose the .z rules
18682
18683 2010-04-11  Jim Meyering  <meyering@redhat.com>
18684
18685         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18686         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18687         empty file with one that ends in an empty line.
18688
18689 2010-04-10  Bruno Haible  <bruno@clisp.org>
18690
18691         mkdir: Make it work on mingw64.
18692         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
18693         * lib/mkdir.c: Update comment.
18694         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
18695
18696 2010-04-10  Bruno Haible  <bruno@clisp.org>
18697
18698         Don't override improved macro from newer autoconf.
18699         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
18700         autoconf >= 2.62.
18701         Reported by Joel E. Denny <jdenny@clemson.edu>.
18702
18703 2010-04-10  Jim Meyering  <meyering@redhat.com>
18704
18705         maint.mk: new syntax-check rule: prohibit empty lines at end of file
18706         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
18707
18708         maint.mk: correct a diagnostic
18709         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
18710         in diagnostic; now use $prohibit.
18711
18712 2010-04-10  Bruno Haible  <address@hidden>
18713
18714         fchownat: Fix a C++ test error on Solaris 8.
18715         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
18716         the function does not exist.
18717
18718 2010-04-10  Bruno Haible  <bruno@clisp.org>
18719
18720         vasnprintf: Add more tests.
18721         * tests/test-vasnprintf-posix.c: Include <errno.h>.
18722         (test_function): Test converting an invalid wide string.
18723
18724         vasnprintf: Correct handling of unconvertible wide string arguments.
18725         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
18726         VASNPRINTF.
18727         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
18728         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
18729         smaller than the expected maximum need for the directive. Set errno to
18730         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
18731         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
18732         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
18733         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
18734         * modules/vasnprintf (Files): Add m4/printf.m4.
18735         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18736
18737 2010-04-10  Bruno Haible  <bruno@clisp.org>
18738
18739         vasnprintf: Fix crash in %ls directive.
18740         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
18741         string is passed as argument to %ls, with no precision and no width.
18742         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18743
18744 2010-04-10  Bruno Haible  <bruno@clisp.org>
18745
18746         vasnprintf: Fix multiple test failures on mingw.
18747         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
18748         _snprintf, or snwprintf, not _snwprintf.
18749
18750 2010-04-10  Bruno Haible  <bruno@clisp.org>
18751
18752         write: Fix a C++ test error on mingw.
18753         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
18754
18755 2010-04-10  Bruno Haible  <bruno@clisp.org>
18756
18757         vasnprintf test: Reduce code duplication.
18758         * tests/test-vasnprintf.c (test_function): New function, extracted from
18759         test_vasnprintf.
18760         (test_vasnprintf, test_asnprintf): Invoke it.
18761
18762 2010-04-10  Bruno Haible  <bruno@clisp.org>
18763
18764         strnlen: Fix warning in C++ mode on MacOS X.
18765         * lib/string.in.h (strnlen): Use the modern idiom.
18766         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
18767         defining strnlen as a macro already in <config.h>.
18768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18769         REPLACE_STRNLEN.
18770         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
18771         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18772
18773 2010-04-08  James Youngman  <jay@gnu.org>
18774
18775         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
18776         the example.
18777
18778 2010-04-09  Jim Meyering  <meyering@redhat.com>
18779
18780         maint.mk: print better diagnostic when there is no $(_hv_file)
18781         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
18782         announce that when $(_hv_file) (aka help-version) does not exist.
18783
18784         init.sh: run tr in the "C" locale to avoid multibyte interpretation
18785         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
18786         not try to interpret its random input bytes.  Jarno Rajahalme reported
18787         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
18788         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
18789         (mktempd_): Likewise, just in case.
18790
18791         ftruncate: add two years to projected module removal date: 2012
18792         * m4/ftruncate.m4: Adjust comments.
18793
18794         ftruncate: mark module as obsolete; even MinGW provides it, now
18795         * modules/ftruncate (Status): Obsolete.
18796         (Notice): Say that.
18797         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
18798         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
18799
18800 2010-04-08  Bruno Haible  <bruno@clisp.org>
18801
18802         Fix side effects from tests-related modules.
18803         * modules/dprintf-posix (Comment): New section.
18804         * modules/fprintf-posix (Comment): Likewise.
18805         * modules/obstack-printf-posix (Comment): Likewise.
18806         * modules/printf-posix (Comment): Likewise.
18807         * modules/snprintf-posix (Comment): Likewise.
18808         * modules/sprintf-posix (Comment): Likewise.
18809         * modules/vasnprintf-posix (Comment): Likewise.
18810         * modules/vasprintf-posix (Comment): Likewise.
18811         * modules/vdprintf-posix (Comment): Likewise.
18812         * modules/vfprintf-posix (Comment): Likewise.
18813         * modules/vprintf-posix (Comment): Likewise.
18814         * modules/vsnprintf-posix (Comment): Likewise.
18815         * modules/vsprintf-posix (Comment): Likewise.
18816         * modules/xprintf-posix (Comment): Likewise.
18817         * modules/xvasprintf-posix (Comment): Likewise.
18818         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
18819         * modules/floorf-tests (Depends-on): Likewise.
18820         * modules/round-tests (Depends-on): Likewise.
18821         * modules/roundf-tests (Depends-on): Likewise.
18822         * modules/trunc-tests (Depends-on): Likewise.
18823         * modules/truncf-tests (Depends-on): Likewise.
18824         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
18825         'fprintf-posix' module is not present.
18826         * tests/test-floorf2.c (check): Likewise.
18827         * tests/test-trunc2.c (check): Likewise.
18828         * tests/test-truncf2.c (check): Likewise.
18829         * tests/test-round2.c (equal): Likewise.
18830         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18831
18832 2010-04-07  Karl Berry  <karl@gnu.org>
18833
18834         * config/srclist.txt,
18835         * config/srclistvars.sh,
18836         * config/srclist-update: doc fixes.
18837
18838 2010-04-07  Jim Meyering  <meyering@redhat.com>
18839
18840         maint.mk: add a PATH crosschecking syntax-check rule
18841         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
18842         Useful if you use a test like the one in help-version (coreutils,
18843         diffutils, grep, gzip) that ensures $(VERSION) matches what is
18844         printed by prog --version.
18845
18846 2010-04-06  Bruno Haible  <bruno@clisp.org>
18847
18848         Fix link error on mingw.
18849         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
18850         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
18851
18852 2010-04-06  Bruno Haible  <bruno@clisp.org>
18853
18854         Assume rmdir exists.
18855         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
18856
18857 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
18858
18859         doc: update users.txt
18860         * users.txt: Add gcal.
18861
18862 2010-04-06  Jim Meyering  <meyering@redhat.com>
18863
18864         init.sh: simply unset TMPDIR rather than risking env -i
18865         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
18866         although it probably works fine on all Unix-based systems, some
18867         systems (Cygwin?) cannot tolerate a totally cleared environment.
18868         Suggestion from Eric Blake.
18869
18870 2010-04-06  Jim Meyering  <meyering@redhat.com>
18871
18872         init.sh: portability fix: use env's POSIX-specified -i option not -u
18873         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
18874         than unportable env -u.  Solaris 5.11's env lacks support for -u.
18875
18876 2010-04-05  Bruno Haible  <bruno@clisp.org>
18877
18878         btowc: Work around Cygwin 1.7.2 bug.
18879         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
18880         does not map NUL to 0.
18881         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
18882
18883 2010-04-05  Bruno Haible  <bruno@clisp.org>
18884
18885         Make the multithread modules work on Cygwin 1.7.2.
18886         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
18887         imported symbols can be declared weak, so that it returns "no" on
18888         Cygwin 1.7.2.
18889
18890 2010-04-05  Bruno Haible  <bruno@clisp.org>
18891
18892         Use the module 'strncat'.
18893         * modules/unistr/u8-strncat (Depends-on): Add strncat.
18894
18895         Tests for module 'strncat'.
18896         * modules/strncat-tests: New file.
18897         * tests/test-strncat.c: New file.
18898
18899         New module 'strncat'.
18900         * lib/string.in.h (strncat): New declaration.
18901         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
18902         * m4/strncat.m4: New file, based on m4/memchr.m4.
18903         * modules/strncat: New file.
18904         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
18905         is declared.
18906         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
18907         REPLACE_STRNCAT.
18908         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
18909         REPLACE_STRNCAT.
18910         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
18911         module.
18912         * tests/test-string-c++.cc: Check signature of strncat.
18913
18914 2010-04-05  Jim Meyering  <meyering@redhat.com>
18915
18916         xstrtoumax-tests: convert to use init.sh
18917         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
18918         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18919         Use Exit, not exit.
18920         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18921
18922         xstrtoimax-tests: convert to use init.sh
18923         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
18924         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18925         Use Exit, not exit.
18926         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18927
18928 2010-04-05  Bruno Haible  <bruno@clisp.org>
18929
18930         sys_socket: Avoid #define replacements in C++ mode.
18931         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
18932         warning to the function if possible, rather than #defining the symbol
18933         to a dysfunctional alias.
18934
18935 2010-04-05  Bruno Haible  <bruno@clisp.org>
18936
18937         fseeko: Fix C++ test error on mingw.
18938         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
18939         gl_FUNC_FSEEKO.
18940         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
18941         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
18942         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
18943         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
18944
18945 2010-04-05  Bruno Haible  <bruno@clisp.org>
18946
18947         duplocale: Improve test output.
18948         * tests/test-duplocale.c (main): Print reason for skipped test.
18949
18950 2010-04-05  Bruno Haible  <bruno@clisp.org>
18951
18952         Assume rmdir exists.
18953         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
18954         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
18955
18956 2010-04-05  Bruno Haible  <bruno@clisp.org>
18957
18958         Fix link error on Solaris 8 with cc.
18959         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
18960
18961 2010-04-05  Bruno Haible  <bruno@clisp.org>
18962
18963         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18964         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
18965
18966 2010-04-05  Bruno Haible  <bruno@clisp.org>
18967
18968         vasprintf: Update documentation.
18969         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
18970
18971 2010-04-05  Bruno Haible  <bruno@clisp.org>
18972
18973         ptsname: Improve test.
18974         * tests/test-ptsname.c (main): Also try the various master names of BSD
18975         systems.
18976
18977 2010-04-05  Bruno Haible  <bruno@clisp.org>
18978
18979         memchr: Avoid a possible C++ test error.
18980         * lib/string.in.h (memchr): Provide declaration if function is missing.
18981         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
18982         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
18983         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
18984         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
18985
18986 2010-04-05  Bruno Haible  <bruno@clisp.org>
18987
18988         strtok_r: Improve idiom.
18989         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
18990         AC_LIBOBJ is used.
18991
18992 2010-04-05  Bruno Haible  <bruno@clisp.org>
18993
18994         strdup: Improve idiom.
18995         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
18996         AC_LIBOBJ is used.
18997         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
18998         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
18999         when AC_LIBOBJ is used.
19000
19001 2010-04-05  Bruno Haible  <bruno@clisp.org>
19002
19003         mbsinit, mbrtowc, wcrtomb: Improve idioms.
19004         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
19005         don't set REPLACE_MBSINIT to 1.
19006         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
19007         don't set REPLACE_MBRTOWC to 1.
19008         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
19009         exist, don't set REPLACE_MBSRTOWCS to 1.
19010         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
19011         exist, don't set REPLACE_MBSNRTOWCS to 1.
19012         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
19013         don't set REPLACE_WCRTOMB to 1.
19014         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
19015         exist, don't set REPLACE_WCSRTOMBS to 1.
19016         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
19017         exist, don't set REPLACE_WCSNRTOMBS to 1.
19018
19019 2010-04-05  Bruno Haible  <bruno@clisp.org>
19020
19021         ldexpl: Improve idiom.
19022         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
19023         make sure to set HAVE_DECL_LDEXPL to 0.
19024
19025 2010-04-05  Jim Meyering  <meyering@redhat.com>
19026
19027         xstrtol-tests: convert to use init.sh
19028         * modules/xstrtol-tests (Files): Add tests/init.sh.
19029         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19030         Use Exit, not exit.
19031         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19032
19033         atexit-tests: convert to use init.sh
19034         * modules/atexit-tests (Files): Add tests/init.sh.
19035         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19036         Use Exit, not exit.
19037         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19038
19039         init.sh: fix typo
19040         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
19041
19042         init.sh: make it easier for a test script to write to the tty, ...
19043         when using automake's parallel-tests mode.
19044         * tests/init.sh (stderr_fileno_): Define overridable variable.
19045         (warn_): New function, to use it.
19046         (fail_, skip_, framework_failure_): Use warn_.
19047
19048 2010-04-04  Bruno Haible  <bruno@clisp.org>
19049
19050         btowc: Avoid warning.
19051         * lib/btowc.c: Include <stdlib.h>.
19052         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
19053
19054 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19055             Bruno Haible  <bruno@clisp.org>
19056
19057         wchar: Port to NetBSD 1.5.
19058         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
19059         * lib/wctype.in.h (WEOF): Likewise.
19060
19061 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19062             Bruno Haible  <bruno@clisp.org>
19063
19064         Port extended stdio to NetBSD 1.5.
19065         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
19066         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
19067         older.
19068
19069 2010-04-04  Bruno Haible  <bruno@clisp.org>
19070
19071         string: Remove unused substitution.
19072         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19073         HAVE_DECL_STRERROR.
19074         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
19075
19076 2010-04-04  Bruno Haible  <bruno@clisp.org>
19077
19078         strtod: Avoid a possible C++ test error.
19079         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
19080         set REPLACE_STRTOD.
19081
19082 2010-04-04  Bruno Haible  <bruno@clisp.org>
19083
19084         strerror: Update documentation.
19085         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
19086
19087 2010-04-04  Bruno Haible  <bruno@clisp.org>
19088
19089         stdio: Fix some C++ test errors on Solaris 8 with GCC.
19090         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
19091         _GL_CXXALIAS_SYS_CAST.
19092
19093 2010-04-04  Bruno Haible  <bruno@clisp.org>
19094
19095         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19096         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
19097         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
19098         REPLACE_FREXPL to 1.
19099         * doc/posix-functions/frexpl.texi: Update documentation.
19100
19101 2010-04-04  Bruno Haible  <bruno@clisp.org>
19102
19103         math: Fix some C++ test errors on Solaris 8 and Cygwin.
19104         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
19105
19106 2010-04-04  Bruno Haible  <bruno@clisp.org>
19107
19108         Implement nanosleep for native Windows.
19109         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
19110
19111 2010-04-04  Bruno Haible  <bruno@clisp.org>
19112
19113         math: Fix some C++ test errors on Solaris 8.
19114         * lib/math.in.h (truncf, trunc): Use simpler idiom.
19115
19116 2010-04-04  Bruno Haible  <bruno@clisp.org>
19117
19118         math: Fix some C++ test errors on Cygwin.
19119         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
19120         truncl): Provide declaration if the system does not have it.
19121         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
19122         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
19123         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
19124         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
19125         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
19126         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
19127         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
19128         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
19129         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
19130         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
19131         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
19132         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
19133         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
19134         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
19135         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
19136         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
19137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
19138         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19139         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19140         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
19141         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
19142         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
19143
19144 2010-04-04  Bruno Haible  <bruno@clisp.org>
19145
19146         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
19147         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19148         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19149         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19150         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19151         * m4/isinf.m4 (gl_ISINF): Likewise.
19152         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19153
19154 2010-04-04  Bruno Haible  <bruno@clisp.org>
19155
19156         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
19157         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19158
19159 2010-04-04  Bruno Haible  <bruno@clisp.org>
19160
19161         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
19162         * modules/tmpfile (configure.ac): Update.
19163
19164         tmpfile: Fix C++ test error on mingw.
19165         * lib/stdio.in.h (tmpfile): New declaration.
19166         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
19167         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
19168         * modules/tmpfile (Depends-on): Add stdio.
19169         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
19170         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
19171         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
19172         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
19173         REPLACE_TMPFILE.
19174         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
19175
19176 2010-04-04  Bruno Haible  <bruno@clisp.org>
19177
19178         ioctl: Fix C++ test error on mingw.
19179         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
19180         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
19181         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
19182
19183 2010-04-03  Bruno Haible  <bruno@clisp.org>
19184
19185         wcwidth: Fix C++ test error on mingw.
19186         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
19187         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
19188         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
19189
19190 2010-04-03  Bruno Haible  <bruno@clisp.org>
19191
19192         nanosleep: Fix C++ test error on mingw.
19193         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
19194         * lib/time.in.h (nanosleep): Use modern idiom.
19195         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
19196         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
19197         REPLACE_NANOSLEEP to 1.
19198         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
19199         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
19200
19201 2010-04-03  Bruno Haible  <bruno@clisp.org>
19202
19203         strptime: Fix C++ test error on mingw.
19204         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
19205         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
19206         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
19207         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
19208         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
19209         not REPLACE_STRPTIME.
19210         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
19211         REPLACE_STRPTIME.
19212
19213 2010-04-03  Bruno Haible  <bruno@clisp.org>
19214
19215         timegm: Fix C++ test error on mingw.
19216         * lib/time.in.h (timegm): Use modern idiom.
19217         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
19218         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
19219         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
19220         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
19221
19222 2010-04-03  Bruno Haible  <bruno@clisp.org>
19223
19224         timegm: Assume declaration if function exists.
19225         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
19226         if it exists. Don't clobber ac_cv_func_timegm.
19227
19228 2010-04-03  Bruno Haible  <bruno@clisp.org>
19229
19230         time_r: Fix C++ test error on mingw.
19231         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
19232         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
19233         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
19234         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
19235         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
19236
19237 2010-04-03  Bruno Haible  <bruno@clisp.org>
19238
19239         time_r: Minor updates.
19240         * modules/time_r (Description): Mention the provided functions.
19241         * lib/time_r.c: Don't include <string.h>.
19242         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
19243         * doc/posix-functions/localtime_r.texi: Likewise.
19244
19245 2010-04-03  Bruno Haible  <bruno@clisp.org>
19246
19247         time: Fix regression introduced on 2010-03-08.
19248         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
19249         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
19250
19251 2010-04-03  Jim Meyering  <meyering@redhat.com>
19252
19253         maint.mk: don't silently disable project-specific syntax-check rules
19254         * top/maint.mk (_prohibit_regexp): Define, to help people realize
19255         that they need to convert their project-specific syntax-check rules
19256         to use the new _sc_search_regexp.
19257
19258 2010-04-03  Bruno Haible  <bruno@clisp.org>
19259
19260         fchdir: Fix regression introduced on 2010-03-08.
19261         * lib/unistd.in.h (fchdir): Fix declaration.
19262         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
19263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
19264         REPLACE_FCHDIR.
19265         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
19266         REPLACE_FCHDIR.
19267
19268 2010-04-03  Bruno Haible  <bruno@clisp.org>
19269
19270         getpagesize: Fix C++ test error on mingw.
19271         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
19272         system does not declare the function.
19273         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
19274         declared.
19275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19276         HAVE_DECL_GETPAGESIZE.
19277         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
19278
19279 2010-04-03  Bruno Haible  <bruno@clisp.org>
19280
19281         stdio: Make C++ tests work on mingw.
19282         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
19283         does not declare the function.
19284
19285 2010-04-03  Bruno Haible  <bruno@clisp.org>
19286
19287         ftello: Fix C++ test error on mingw.
19288         * lib/stdio.in.h (ftello): Use modern idiom.
19289         * lib/ftello.c (ftello): Renamed from rpl_ftello.
19290         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
19291         is missing and that it needs to be replaced.
19292         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
19293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
19294         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
19295
19296 2010-04-03  Bruno Haible  <bruno@clisp.org>
19297
19298         fseeko: Fix C++ test error on mingw.
19299         * lib/stdio.in.h (fseeko): Use modern idiom.
19300         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
19301         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
19302         is missing and that it needs to be replaced.
19303         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
19304         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
19305         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
19306
19307 2010-04-03  Bruno Haible  <bruno@clisp.org>
19308
19309         mkstemp: Fix C++ test error on mingw.
19310         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19311         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19312         function is missing and that it needs to be replaced.
19313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19314         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19315
19316 2010-04-03  Bruno Haible  <bruno@clisp.org>
19317
19318         stpncpy: Fix C++ test error on mingw.
19319         * lib/string.in.h (stpncpy): Use modern idiom.
19320         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19321         function is missing and that it needs to be replaced.
19322         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19323         REPLACE_STPNCPY.
19324         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19325
19326 2010-04-03  Bruno Haible  <bruno@clisp.org>
19327
19328         sys_stat: Fix C++ test error on mingw.
19329         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19330         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19331
19332 2010-04-03  Bruno Haible  <bruno@clisp.org>
19333
19334         pty: Update doc.
19335         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19336
19337 2010-04-03  Bruno Haible  <bruno@clisp.org>
19338
19339         unistd: Fix C++ test error on mingw.
19340         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19341
19342 2010-04-03  Bruno Haible  <bruno@clisp.org>
19343
19344         Update doc regarding mingw.
19345         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19346         * doc/glibc-functions/login_tty.texi: Likewise.
19347         * doc/glibc-functions/forkpty.texi: Likewise.
19348
19349 2010-04-03  Bruno Haible  <bruno@clisp.org>
19350
19351         stdlib: Avoid compilation failure of c-strtold on mingw.
19352         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19353
19354 2010-04-03  Bruno Haible  <bruno@clisp.org>
19355
19356         locale: Make C++ tests work on Cygwin and mingw.
19357         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19358         cannot provide the function.
19359         Reported by Simon Josefsson.
19360
19361 2010-04-03  Bruno Haible  <bruno@clisp.org>
19362
19363         localename: Port to MacOS X 10.6.
19364         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19365         memory layout of the locales in MacOS X 10.6 as well.
19366         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19367
19368 2010-04-02  Bruno Haible  <bruno@clisp.org>
19369
19370         gnulib-tool: Ensure that long-running tests are executed last.
19371         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19372         running tests after the one for the other tests.
19373
19374 2010-04-02  Bruno Haible  <bruno@clisp.org>
19375
19376         gnulib-tool: Ensure the tests in the main directory are executed first.
19377         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19378         start with the current directory.
19379
19380 2010-04-02  Bruno Haible  <bruno@clisp.org>
19381
19382         Tests for module 'havelib', moved here from GNU gettext.
19383         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19384         modifications.
19385         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19386         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19387         with modifications.
19388         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19389         modifications.
19390         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19391         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19392         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19393         with modifications.
19394         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19395         with modifications.
19396         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19397         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19398         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19399         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19400         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19401         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19402         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19403         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19404         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19405         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19406         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19407         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19408         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19409         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19410         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19411         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19412         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19413         with modifications.
19414         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19415         with modifications.
19416         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19417         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19418         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19419         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19420         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19421         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19422         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19423         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19424         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19425         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19426         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19427         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19428         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19429         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19430         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19431         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19432         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19433         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19434         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19435         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19436         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19437         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19438         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19439         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19440         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19441         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19442         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19443         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19444         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19445         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19446         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19447         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19448         * tests/havelib/rpathx/rpathx.c: New file, from
19449         gettext/autoconf-lib-link.
19450         * tests/havelib/rpathx/Makefile.am: New file, from
19451         gettext/autoconf-lib-link.
19452         * tests/havelib/rpathx/configure.ac: New file, from
19453         gettext/autoconf-lib-link with modifications.
19454         * tests/havelib/rpathy/rpathy.c: New file, from
19455         gettext/autoconf-lib-link.
19456         * tests/havelib/rpathy/Makefile.am: New file, from
19457         gettext/autoconf-lib-link.
19458         * tests/havelib/rpathy/configure.ac: New file, from
19459         gettext/autoconf-lib-link with modifications.
19460         * tests/havelib/rpathz/rpathz.c: New file, from
19461         gettext/autoconf-lib-link.
19462         * tests/havelib/rpathz/Makefile.am: New file, from
19463         gettext/autoconf-lib-link.
19464         * tests/havelib/rpathz/configure.ac: New file, from
19465         gettext/autoconf-lib-link with modifications.
19466         * tests/havelib/rpathlx/usex.c: New file, from
19467         gettext/autoconf-lib-link.
19468         * tests/havelib/rpathlx/Makefile.am: New file, from
19469         gettext/autoconf-lib-link.
19470         * tests/havelib/rpathlx/configure.ac: New file, from
19471         gettext/autoconf-lib-link with modifications.
19472         * tests/havelib/rpathly/usey.c: New file, from
19473         gettext/autoconf-lib-link.
19474         * tests/havelib/rpathly/Makefile.am: New file, from
19475         gettext/autoconf-lib-link.
19476         * tests/havelib/rpathly/configure.ac: New file, from
19477         gettext/autoconf-lib-link with modifications.
19478         * tests/havelib/rpathlz/usez.c: New file, from
19479         gettext/autoconf-lib-link.
19480         * tests/havelib/rpathlz/Makefile.am: New file, from
19481         gettext/autoconf-lib-link.
19482         * tests/havelib/rpathlz/configure.ac: New file, from
19483         gettext/autoconf-lib-link with modifications.
19484         * tests/havelib/rpathlyx/usey.c: New file, from
19485         gettext/autoconf-lib-link.
19486         * tests/havelib/rpathlyx/Makefile.am: New file, from
19487         gettext/autoconf-lib-link.
19488         * tests/havelib/rpathlyx/configure.ac: New file, from
19489         gettext/autoconf-lib-link with modifications.
19490         * tests/havelib/rpathlzyx/usez.c: New file, from
19491         gettext/autoconf-lib-link.
19492         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19493         gettext/autoconf-lib-link.
19494         * tests/havelib/rpathlzyx/configure.ac: New file, from
19495         gettext/autoconf-lib-link with modifications.
19496         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19497         with modifications.
19498
19499 2010-04-02  Bruno Haible  <bruno@clisp.org>
19500
19501         gnulib-tool: Create distributed built sources also for the tests.
19502         * gnulib-tool (func_create_testdir): Also generate distributed built
19503         sources in the tests directory.
19504
19505 2010-04-02  Bruno Haible  <bruno@clisp.org>
19506
19507         gnulib-tool: Obey user's environment variables.
19508         * gnulib-tool (func_create_testdir): When creating built sources,
19509         respect the environment variables for autoconf, automake, etc. given by
19510         the user.
19511
19512 2010-04-02  Bruno Haible  <bruno@clisp.org>
19513
19514         gnulib-tool: Provide the value of --m4-base to modules.
19515         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19516         of gl_m4_base.
19517
19518 2010-04-02  Eric Blake  <eblake@redhat.com>
19519
19520         maint.mk: fix some fallout
19521         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19522         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19523
19524 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19525
19526         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
19527         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
19528         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
19529         (sc_cast_of_x_alloc_return_value): Likewise.
19530         (sc_cast_of_alloca_return_value): Likewise.
19531         (sc_space_tab): Likewise.
19532         (sc_prohibit_atoi_atof): Likewise.
19533         (sc_prohibit_magic_number_exit): Likewise.
19534         (sc_error_exit_success): Likewise.
19535         (sc_file_system): Likewise.
19536         (sc_prohibit_have_config_h): Likewise.
19537         (sc_require_config_h): Likewise.
19538         (sc_prohibit_HAVE_MBRTOWC): Likewise.
19539         (sc_obsolete_symbols): Likewise.
19540         (sc_changelog): Likewise.
19541         (sc_program_name): Likewise.
19542         (sc_the_the): Likewise.
19543         (sc_trailing_blank): Likewise.
19544         (sc_two_space_separator_in_usage): Likewise.
19545         (sc_useless_cpp_parens): Likewise.
19546         (sc_GPL_version): Likewise.
19547         (sc_GFDL_version): Likewise.
19548         (sc_texinfo_acronym): Likewise.
19549         (sc_prohibit_cvs_keyword): Likewise.
19550         (sc_prohibit_stat_st_blocks): Likewise.
19551         (sc_prohibit_S_IS_definition): Likewise.
19552         (sc_redundant_const): Likewise.
19553         (sc_makefile_TAB_only_indentation): Likewise.
19554         (sc_m4_quote_check): Likewise.
19555         (sc_makefile_path_separator_check): Likewise.
19556         (sc_copyright_check): Likewise.
19557         (sc_Wundef_boolean): Likewise.
19558         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19559
19560         maint.mk: match 0 or more whitespace-before-function-call '('
19561         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
19562         that have zero or two-and-more spaces between the function name
19563         and the open parenthesis.
19564         (sc_error_message_warn_fatal): Likewise.
19565         (sc_error_message_uppercase): Likewise.
19566         (sc_error_message_period): Likewise.
19567
19568 2010-03-31  Eric Blake  <eblake@redhat.com>
19569
19570         maint.mk: check for [ as well as test
19571         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
19572         Based on a libvirt report by Matthias Bolte.
19573
19574         gnumakefile: don't squelch _version output
19575         * top/GNUmakefile (_version): Create one-shot dependency rather
19576         than using $(shell) when version must be regenerated.
19577         (_autoreconf): Run verbosely, by default.
19578
19579         sys_time: avoid compiler warnings
19580         * lib/sys_time.in.h (includes): Ensure gcc pragma is
19581         unconditional, fixing regression from 2010-03-29.
19582         Reported by Simon Josefsson.
19583
19584 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19585
19586         maint.mk: s/_header_without_use/_sc_header_without_use/
19587         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
19588         (sc_prohibit_assert_without_use): Use the new name.
19589         (sc_prohibit_close_stream_without_use): Likewise.
19590         (sc_prohibit_getopt_without_use): Likewise.
19591         (sc_prohibit_quotearg_without_use): Likewise.
19592         (sc_prohibit_quote_without_use): Likewise.
19593         (sc_prohibit_long_options_without_use): Likewise.
19594         (sc_prohibit_inttostr_without_use): Likewise.
19595         (sc_prohibit_ignore_value_without_use): Likewise.
19596         (sc_prohibit_error_without_use): Likewise.
19597         (sc_prohibit_xalloc_without_use): Likewise.
19598         (sc_prohibit_hash_without_use): Likewise.
19599         (sc_prohibit_hash_pjw_without_use): Likewise.
19600         (sc_prohibit_safe_read_without_use): Likewise.
19601         (sc_prohibit_argmatch_without_use): Likewise.
19602         (sc_prohibit_canonicalize_without_use): Likewise.
19603         (sc_prohibit_root_dev_ino_without_use): Likewise.
19604         (sc_prohibit_openat_without_use): Likewise.
19605         (sc_prohibit_c_ctype_without_use): Likewise.
19606         (sc_prohibit_signal_without_use): Likewise.
19607         (sc_prohibit_intprops_without_use): Likewise.
19608
19609 2010-03-30  Eric Blake  <eblake@redhat.com>
19610
19611         maint: improve module indicators
19612         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
19613         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
19614         columns, and avoid extra macro expansion.
19615
19616         fdopendir: work around FreeBSD bug
19617         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19618         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19619         * modules/dirent (Makefile.am): Substitute it.
19620         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19621         declaration.
19622         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19623         fix.
19624         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19625
19626 2010-03-29  Bruno Haible  <bruno@clisp.org>
19627
19628         Emit #pragma system_header after the inclusion guard, not before.
19629         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19630         guard that spans the entire file, not before. This enables an
19631         optimization in GCC's preprocessor.
19632         * lib/ctype.in.h: Likewise.
19633         * lib/dirent.in.h: Likewise.
19634         * lib/errno.in.h: Likewise.
19635         * lib/float.in.h: Likewise.
19636         * lib/getopt.in.h: Likewise.
19637         * lib/iconv.in.h: Likewise.
19638         * lib/langinfo.in.h: Likewise.
19639         * lib/locale.in.h: Likewise.
19640         * lib/math.in.h: Likewise.
19641         * lib/netdb.in.h: Likewise.
19642         * lib/netinet_in.in.h: Likewise.
19643         * lib/pty.in.h: Likewise.
19644         * lib/sched.in.h: Likewise.
19645         * lib/se-selinux.in.h: Likewise.
19646         * lib/search.in.h: Likewise.
19647         * lib/spawn.in.h: Likewise.
19648         * lib/stdarg.in.h: Likewise.
19649         * lib/stdint.in.h: Likewise.
19650         * lib/string.in.h: Likewise.
19651         * lib/strings.in.h: Likewise.
19652         * lib/sys_file.in.h: Likewise.
19653         * lib/sys_ioctl.in.h: Likewise.
19654         * lib/sys_time.in.h: Likewise.
19655         * lib/sys_times.in.h: Likewise.
19656         * lib/sys_utsname.in.h: Likewise.
19657         * lib/sys_wait.in.h: Likewise.
19658         * lib/sysexits.in.h: Likewise.
19659         * lib/wctype.in.h: Likewise.
19660
19661 2010-03-28  James Youngman  <jay@gnu.org>
19662
19663         save-cwd: don't leak a file descriptor when the caller execs.
19664         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19665         saved file descriptor.
19666         * modules/save-cwd (Depends-on): Depend on cloexec.
19667
19668 2010-03-29  Bruno Haible  <bruno@clisp.org>
19669
19670         Remove vestiges of fts-lgpl module.
19671         * lib/fts_.h: Assume GNULIB_FTS is 1.
19672         * lib/fts.c: Likewise.
19673         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19674
19675 2010-03-28  Bruno Haible  <bruno@clisp.org>
19676
19677         Fix definition of tests witness macro.
19678         * gnulib-tool (func_import): Fix definition of witness macro.
19679
19680 2010-03-28  Bruno Haible  <bruno@clisp.org>
19681
19682         Fix ioctl's protoype on glibc systems.
19683         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19684         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19685         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19686         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19687         signature. If not, arrange to replace the ioctl function.
19688         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19689         REPLACE_IOCTL.
19690         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19691         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
19692         Reported by Ludovic Courtès <ludo@gnu.org>.
19693
19694 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
19695
19696         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
19697         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19698         made it so grep -r --include=GLOB* ... did not work.
19699
19700 2010-03-26  Jim Meyering  <meyering@redhat.com>
19701             Eric Blake  <eblake@redhat.com>
19702
19703         maint.mk: prohibit use of test's -o and -a operators
19704         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
19705
19706 2010-03-28  Bruno Haible  <bruno@clisp.org>
19707
19708         Remove unused GNULIB_XYZ macro definitions.
19709         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
19710         invocation.
19711
19712 2010-03-28  Bruno Haible  <bruno@clisp.org>
19713
19714         Mark privileged tests modules.
19715         * modules/idpriv-drop-tests (Status): New section.
19716         * modules/idpriv-droptemp-tests (Status): New section.
19717
19718 2010-03-28  Bruno Haible  <bruno@clisp.org>
19719
19720         Split C++ tests into separate tests modules.
19721         * modules/dirent-c++-tests: New file, extracted from
19722         modules/dirent-tests.
19723         * modules/dirent-tests: Depend on it.
19724         * modules/fcntl-h-c++-tests: New file, extracted from
19725         modules/fcntl-h-tests.
19726         * modules/fcntl-h-tests: Depend on it.
19727         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
19728         * modules/glob-tests: Depend on it.
19729         * modules/iconv-h-c++-tests: New file, extracted from
19730         modules/iconv-h-tests.
19731         * modules/iconv-h-tests: Depend on it.
19732         * modules/langinfo-c++-tests: New file, extracted from
19733         modules/langinfo-tests.
19734         * modules/langinfo-tests: Depend on it.
19735         * modules/locale-c++-tests: New file, extracted from
19736         modules/locale-tests.
19737         * modules/locale-tests: Depend on it.
19738         * modules/math-c++-tests: New file, extracted from modules/math-tests.
19739         * modules/math-tests: Depend on it.
19740         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
19741         * modules/pty-tests: Depend on it.
19742         * modules/search-c++-tests: New file, extracted from
19743         modules/search-tests.
19744         * modules/search-tests: Depend on it.
19745         * modules/signal-c++-tests: New file, extracted from
19746         modules/signal-tests.
19747         * modules/signal-tests: Depend on it.
19748         * modules/spawn-c++-tests: New file, extracted from
19749         modules/spawn-tests.
19750         * modules/spawn-tests: Depend on it.
19751         * modules/stdio-c++-tests: New file, extracted from
19752         modules/stdio-tests.
19753         * modules/stdio-tests: Depend on it.
19754         * modules/stdlib-c++-tests: New file, extracted from
19755         modules/stdlib-tests.
19756         * modules/stdlib-tests: Depend on it.
19757         * modules/string-c++-tests: New file, extracted from
19758         modules/string-tests.
19759         * modules/string-tests: Depend on it.
19760         * modules/sys_ioctl-c++-tests: New file, extracted from
19761         modules/sys_ioctl-tests.
19762         * modules/sys_ioctl-tests: Depend on it.
19763         * modules/sys_select-c++-tests: New file, extracted from
19764         modules/sys_select-tests.
19765         * modules/sys_select-tests: Depend on it.
19766         * modules/sys_socket-c++-tests: New file, extracted from
19767         modules/sys_socket-tests.
19768         * modules/sys_socket-tests: Depend on it.
19769         * modules/sys_stat-c++-tests: New file, extracted from
19770         modules/sys_stat-tests.
19771         * modules/sys_stat-tests: Depend on it.
19772         * modules/sys_time-c++-tests: New file, extracted from
19773         modules/sys_time-tests.
19774         * modules/sys_time-tests: Depend on it.
19775         * modules/time-c++-tests: New file, extracted from modules/time-tests.
19776         * modules/time-tests: Depend on it.
19777         * modules/unistd-c++-tests: New file, extracted from
19778         modules/unistd-tests.
19779         * modules/unistd-tests: Depend on it.
19780         * modules/wchar-c++-tests: New file, extracted from
19781         modules/wchar-tests.
19782         * modules/wchar-tests: Depend on it.
19783         * modules/wctype-c++-tests: New file, extracted from
19784         modules/wctype-tests.
19785         * modules/wctype-tests: Depend on it.
19786         Reported by Simon Josefsson.
19787
19788 2010-03-28  Bruno Haible  <bruno@clisp.org>
19789
19790         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
19791         * gnulib-tool (func_exists_module): New function, extracted from
19792         func_verify_module.
19793         (func_verify_module): Use it.
19794         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
19795         'foo' only if 'foo' exists.
19796         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
19797         module.
19798
19799 2010-03-28  Bruno Haible  <bruno@clisp.org>
19800
19801         gnulib-tool: Add support for special categories of tests.
19802         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
19803         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
19804         (func_usage): Document them.
19805         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
19806         inc_unportable_tests, inc_all_tests): New variables.
19807         (func_acceptable): Consider these variables.
19808         (func_modules_transitive_closure): Make it work when the 'Status' field
19809         consists of multiple words.
19810         (func_import): Store and restore the values of inc_cxx_tests,
19811         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
19812         inc_all_tests in gnulib-comp.m4.
19813         (func_create_testdir): Set inc_all_tests to true.
19814         * doc/gnulib.texi (Extra tests modules): New section.
19815         Suggested by Jim Meyering.
19816
19817 2010-03-28  Bruno Haible  <bruno@clisp.org>
19818
19819         ansi-c++-opt: Allow turning off the C++ build by default.
19820         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
19821         gl_CXX_CHOICE_DEFAULT_NO is defined.
19822         Requested by Eric Blake.
19823
19824 2010-03-28  Bruno Haible  <bruno@clisp.org>
19825
19826         unistd: Avoid #define replacements in C++ mode.
19827         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
19828         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
19829         setsockopt, shutdown, select): In C++, attach a warning to the function
19830         if possible, rather than #defining the symbol to a dysfunctional alias.
19831         Reported by John W. Eaton <jwe@gnu.org>.
19832
19833 2010-03-28  Bruno Haible  <bruno@clisp.org>
19834
19835         Fix link errors on mingw.
19836         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
19837         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
19838         $(LIBSOCKET).
19839         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
19840         $(LIBSOCKET).
19841
19842 2010-03-28  Bruno Haible  <bruno@clisp.org>
19843             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19844
19845         lib-ignore: Determine different options for different compilers.
19846         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
19847         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
19848         Add comments.
19849         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
19850         * NEWS: Mention the change.
19851
19852 2010-03-27  Bruno Haible  <bruno@clisp.org>
19853
19854         Remove unused GNULIB_XYZ macro definitions.
19855         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19856         * modules/fseek (configure.ac): Likewise.
19857         * modules/ioctl (configure.ac): Likewise.
19858         * modules/open (configure.ac): Likewise.
19859         * modules/stdlib-safer (configure.ac): Likewise.
19860
19861 2010-03-27  Bruno Haible  <bruno@clisp.org>
19862
19863         Add a remark about certain modules.
19864         * modules/malloc (Comment): New section.
19865         * modules/realloc (Comment): Likewise.
19866         * modules/sigpipe (Comment): Likewise.
19867
19868 2010-03-27  Bruno Haible  <bruno@clisp.org>
19869
19870         Resolve conflict between the two kinds of module indicators.
19871         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
19872         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
19873         * modules/canonicalize (configure.ac): Invoke
19874         gl_MODULE_INDICATOR_FOR_TESTS.
19875         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
19876         GNULIB_XYZ.
19877         * tests/test-dirent-c++.cc: Likewise.
19878         * tests/test-dirent-safer.c: Likewise.
19879         * tests/test-dup2.c: Likewise.
19880         * tests/test-fchdir.c: Likewise.
19881         * tests/test-fcntl-h-c++.cc: Likewise.
19882         * tests/test-getopt.c: Likewise.
19883         * tests/test-getopt.h: Likewise.
19884         * tests/test-langinfo-c++.cc: Likewise.
19885         * tests/test-locale-c++.cc: Likewise.
19886         * tests/test-math-c++.cc: Likewise.
19887         * tests/test-pty-c++.cc: Likewise.
19888         * tests/test-search-c++.cc: Likewise.
19889         * tests/test-signal-c++.cc: Likewise.
19890         * tests/test-spawn-c++.cc: Likewise.
19891         * tests/test-stdio-c++.cc: Likewise.
19892         * tests/test-stdlib-c++.cc: Likewise.
19893         * tests/test-string-c++.cc: Likewise.
19894         * tests/test-sys_ioctl-c++.cc: Likewise.
19895         * tests/test-sys_select-c++.cc: Likewise.
19896         * tests/test-sys_socket-c++.cc: Likewise.
19897         * tests/test-sys_stat-c++.cc: Likewise.
19898         * tests/test-sys_time-c++.cc: Likewise.
19899         * tests/test-time-c++.cc: Likewise.
19900         * tests/test-unistd-c++.cc: Likewise.
19901         * tests/test-wchar-c++.cc: Likewise.
19902         * tests/uninorm/test-u8-nfc.c: Likewise.
19903         * tests/uninorm/test-u8-nfd.c: Likewise.
19904         * tests/uninorm/test-u8-nfkc.c: Likewise.
19905         * tests/uninorm/test-u8-nfkd.c: Likewise.
19906         * tests/uninorm/test-u16-nfc.c: Likewise.
19907         * tests/uninorm/test-u16-nfd.c: Likewise.
19908         * tests/uninorm/test-u16-nfkc.c: Likewise.
19909         * tests/uninorm/test-u16-nfkd.c: Likewise.
19910         * tests/uninorm/test-u32-nfc.c: Likewise.
19911         * tests/uninorm/test-u32-nfc-big.c: Likewise.
19912         * tests/uninorm/test-u32-nfd.c: Likewise.
19913         * tests/uninorm/test-u32-nfd-big.c: Likewise.
19914         * tests/uninorm/test-u32-nfkc.c: Likewise.
19915         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
19916         * tests/uninorm/test-u32-nfkd.c: Likewise.
19917         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
19918         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19919
19920 2010-03-27  Bruno Haible  <bruno@clisp.org>
19921
19922         Distinguish two kinds of module indicators.
19923         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
19924         gl_MODULE_INDICATOR.
19925         (gl_MODULE_INDICATOR): New macro.
19926         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19927         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
19928         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19929         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19930         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19931         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19932         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19933         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19934         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19935         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19936         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19937         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19938         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19939         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19940         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19941         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19942         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19943         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19944         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19945         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19946         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19947         * modules/cloexec (configure.ac): Likewise.
19948         * modules/getopt-gnu (configure.ac): Likewise.
19949         * modules/uninorm/u8-normalize (configure.ac): Likewise.
19950         * modules/uninorm/u16-normalize (configure.ac): Likewise.
19951         * modules/uninorm/u32-normalize (configure.ac): Likewise.
19952         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
19953
19954 2010-03-27  Bruno Haible  <bruno@clisp.org>
19955
19956         New module description field 'Comment'.
19957         * gnulib-tool: New option --extract-comment.
19958         (func_usage): Document it.
19959         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
19960         (func_get_comment): New function.
19961         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
19962
19963 2010-03-27  Bruno Haible  <bruno@clisp.org>
19964
19965         Addendum to 2010-02-07 commit.
19966         * gnulib-tool (func_usage): Document --extract-applicability option.
19967
19968 2010-03-27  Bruno Haible  <bruno@clisp.org>
19969
19970         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
19971         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
19972         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
19973         rather than link errors.
19974
19975 2010-03-27  Bruno Haible  <bruno@clisp.org>
19976
19977         Avoid side effects from tests-related modules on the compilation of lib.
19978         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
19979         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
19980         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
19981         parameter. Emit into AM_CPPFLAGS a definition of the designated C
19982         macro.
19983         (func_import): Define a witness macro. Assign it a value that depends
19984         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
19985         tests-related modules.
19986         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
19987         Reported by Jim Meyering.
19988
19989 2010-03-27  Bruno Haible  <bruno@clisp.org>
19990
19991         Factorize common .m4 code.
19992         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
19993         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
19994         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
19995         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
19996         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19997         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
19998         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
19999         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20000         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20001         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20002         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
20003         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20004         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20005         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20006         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20007         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
20008         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20009         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20010         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20011         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
20012         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
20013         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20014         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20015         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20016         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20017         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20018         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
20019         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
20020         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
20021         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20022         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20023         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20024
20025 2010-03-27  Bruno Haible  <bruno@clisp.org>
20026
20027         Fix a compilation error on Cygwin with g++ >= 4.3.
20028         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
20029         if it is undefined or if we alias it to chmod.
20030         (lstat): Don't warn about the use of this function if it is undefined
20031         or if we alias it to stat.
20032         Reported by Simon Josefsson.
20033
20034 2010-03-27  Bruno Haible  <bruno@clisp.org>
20035
20036         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
20037         * modules/getlogin (configure.ac): Update.
20038
20039         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
20040         * modules/getlogin_r (configure.ac): Update.
20041
20042         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
20043         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
20044         * modules/inet_ntop (configure.ac): Update.
20045
20046         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
20047         * modules/inet_pton (configure.ac): Update.
20048
20049         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
20050         * modules/mbslen (configure.ac): Update.
20051
20052         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
20053         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
20054         * modules/forkpty (configure.ac): Update.
20055         * modules/openpty (configure.ac): Update.
20056
20057 2010-03-26  Simon Josefsson  <simon@josefsson.org>
20058
20059         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
20060         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
20061
20062 2010-03-25  Eric Blake  <eblake@redhat.com>
20063
20064         maint: use pragma consistently across replacement headers
20065         * lib/ctype.in.h (system_header): Hoist for consistent placement.
20066         * lib/dirent.in.h (system_header): Likewise.
20067         * lib/errno.in.h (system_header): Likewise.
20068         * lib/float.in.h (system_header): Likewise.
20069         * lib/getopt.in.h (system_header): Likewise.
20070         * lib/iconv.in.h (system_header): Likewise.
20071         * lib/inttypes.in.h (system_header): Likewise.
20072         * lib/langinfo.in.h (system_header): Likewise.
20073         * lib/locale.in.h (system_header): Likewise.
20074         * lib/math.in.h (system_header): Likewise.
20075         * lib/netdb.in.h (system_header): Likewise.
20076         * lib/netinet_in.in.h (system_header): Likewise.
20077         * lib/pty.in.h (system_header): Likewise.
20078         * lib/sched.in.h (system_header): Likewise.
20079         * lib/se-selinux.in.h (system_header): Likewise.
20080         * lib/search.in.h (system_header): Likewise.
20081         * lib/spawn.in.h (system_header): Likewise.
20082         * lib/stdarg.in.h (system_header): Likewise.
20083         * lib/stdint.in.h (system_header): Likewise.
20084         * lib/string.in.h (system_header): Likewise.
20085         * lib/strings.in.h (system_header): Likewise.
20086         * lib/sys_file.in.h (system_header): Likewise.
20087         * lib/sys_ioctl.in.h (system_header): Likewise.
20088         * lib/sys_socket.in.h (system_header): Likewise.
20089         * lib/sys_times.in.h (system_header): Likewise.
20090         * lib/sys_utsname.in.h (system_header): Likewise.
20091         * lib/sys_wait.in.h (system_header): Likewise.
20092         * lib/sysexits.in.h (system_header): Likewise.
20093         * lib/unistd.in.h (system_header): Likewise.
20094         * lib/wctype.in.h (system_header): Likewise.
20095
20096         arpa/inet: fix mingw compilation warning
20097         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
20098         Reported by Matthew Bolte.
20099
20100 2010-03-25  Bruno Haible  <bruno@clisp.org>
20101
20102         Avoid collision between gnulib wrapper and libintl wrapper.
20103         * lib/printf.c (printf): Don't define if a printf wrapper is already
20104         defined in intl/printf.c.
20105         Reported by Michel Boaventura <michel@michelboaventura.com>.
20106
20107 2010-03-25  Bruno Haible  <bruno@clisp.org>
20108
20109         Use ANSI C.
20110         * lib/readutmp.h (getutent): Provide ANSI C prototype.
20111
20112 2010-03-25  Bruno Haible  <bruno@clisp.org>
20113
20114         Minor formatting changes.
20115         * lib/acosl.c: Insert space before function argument list.
20116         * lib/argz.c: Likewise.
20117         * lib/asinl.c: Likewise.
20118         * lib/expl.c: Likewise.
20119         * lib/gen-uni-tables.c: Likewise.
20120         * lib/gettext.h: Likewise.
20121         * lib/glthread/lock.h: Likewise.
20122         * lib/tanl.c: Likewise.
20123         * lib/uniname/uniname.c: Likewise.
20124         * tests/test-idpriv-drop.c: Likewise.
20125         * tests/test-idpriv-droptemp.c: Likewise.
20126         * tests/test-lock.c: Likewise.
20127         * tests/test-tls.c: Likewise.
20128         * lib/argp-help.c: Insert space before function-like macro argument
20129         list.
20130         * lib/memcmp.c: Likewise.
20131         * tests/test-base64.c: Likewise.
20132         * lib/localename.c: Insert space before sizeof's argument list.
20133         * lib/safe-alloc.h: Likewise.
20134         * lib/file-set.h: Insert space before macro argument list.
20135         * tests/test-argp.c: Likewise.
20136         * lib/argp-namefrob.h: Insert space before function parameter list.
20137         * lib/getaddrinfo.c: Likewise.
20138         * lib/netdb.in.h: Likewise.
20139         * lib/parse-duration.h: Likewise.
20140         * lib/parse-duration.c: Likewise.
20141         * lib/poll.c: Likewise.
20142         * lib/select.c: Likewise.
20143         * lib/trim.h: Likewise.
20144         * tests/test-usleep.c: Likewise.
20145         * lib/ldexpl.c: Insert space before function parameter list and before
20146         function argument list.
20147         * lib/logl.c: Likewise.
20148         * lib/sqrtl.c: Likewise.
20149         * lib/trim.c: Likewise.
20150         * lib/cosl.c: Use GNU style indentation. Insert space before function
20151         argument list.
20152         * lib/sinl.c: Likewise.
20153         * lib/tsearch.c: Insert space after 'for'.
20154         Reported by Jim Meyering.
20155
20156 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
20157
20158         * maint.mk (sc_Wundef_boolean): Check for the presence of the
20159         config header before grepping, as it's not present before
20160         autoreconf/configure are run.  Reported by Simon Josefsson.
20161
20162 2010-03-23  Bruno Haible  <bruno@clisp.org>
20163
20164         pt_chown: Make it work with automake < 1.11.
20165         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
20166         Reported by Simon Josefsson.
20167
20168 2010-03-23  Bruno Haible  <bruno@clisp.org>
20169
20170         pt_chown: Don't depend on GPLed modules.
20171         * lib/pt_chown.c: Don't include idpriv.h.
20172         (main): Don't drop privileges.
20173         * modules/pt_chown (Depends-on): Remove idpriv-drop.
20174         Reported by Simon Josefsson.
20175
20176 2010-03-24  Simon Josefsson  <simon@josefsson.org>
20177
20178         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
20179         suggestions from karl@freefriends.org (Karl Berry).
20180
20181 2010-03-22  Eric Blake  <eblake@redhat.com>
20182
20183         gethostname: further tweaks
20184         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
20185         are overriding gethostname.
20186         Suggested by Bruno Haible.
20187
20188 2010-03-21  Bruno Haible  <bruno@clisp.org>
20189
20190         Fix comments.
20191         * lib/forkpty.c (rpl_forkpty): Fix comment.
20192         * lib/openpty.c (rpl_openpty): Likewise.
20193         Reported by Eric Blake.
20194
20195 2010-03-22  Eric Blake  <eblake@redhat.com>
20196
20197         gethostname: fix build on mingw
20198         * lib/unistd.in.h (includes): Work around fact that mingw
20199         <winsock2.h> re-includes <unistd.h>, by avoiding any
20200         redeclarations if we are being included by <winsock2.h>.
20201         Reported by Matthias Bolte.
20202
20203 2010-03-21  Bruno Haible  <bruno@clisp.org>
20204
20205         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20206         * lib/forkpty.c (forkpty): New replacement function, from glibc with
20207         modifications.
20208         * lib/pty.in.h (forkpty): Update declaration. Add comments.
20209         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
20210         provide the replacement.
20211         * modules/forkpty (Depends-on): Add openpty, login_tty.
20212         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
20213         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
20214         * doc/glibc-functions/forkpty.texi: More supported platforms.
20215         * config/srclist.txt: Add forkpty.c (commented).
20216
20217 2010-03-21  Bruno Haible  <bruno@clisp.org>
20218
20219         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
20220         (Makefile.am): Verify that PTY_LIB is defined.
20221
20222         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
20223
20224 2010-03-21  Bruno Haible  <bruno@clisp.org>
20225
20226         Tests for module 'login_tty'.
20227         * modules/login_tty-tests: New file.
20228         * tests/test-login_tty.c: New file.
20229
20230         New module 'login_tty'.
20231         * lib/login_tty.c: New file.
20232         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
20233         * modules/login_tty: New file.
20234         * doc/glibc-functions/login_tty.texi: Mention the new module.
20235
20236 2010-03-21  Bruno Haible  <bruno@clisp.org>
20237
20238         login_tty: Documentation.
20239         * doc/glibc-functions/login_tty.texi: New file.
20240         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
20241
20242 2010-03-21  Bruno Haible  <bruno@clisp.org>
20243
20244         pty: Consistent macro naming.
20245         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
20246         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
20247         * modules/pty (configure.ac): Update.
20248
20249 2010-03-21  Bruno Haible  <bruno@clisp.org>
20250
20251         Tests for openpty: Make stricter.
20252         * tests/test-openpty.c (main): Add test of canonical processing and
20253         erase.
20254         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
20255
20256         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
20257         * lib/openpty.c (openpty): New replacement function.
20258         * lib/pty.in.h: Include <termios.h>.
20259         (openpty): Update declaration. Add comments.
20260         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
20261         is not declared, arrange to provide the replacement. Check for _getpty
20262         and posix_openpt.
20263         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
20264         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
20265         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
20266         * modules/pty-tests (test_pty_c___LDADD): New variable.
20267         * doc/glibc-functions/openpty.texi: More supported platforms.
20268
20269 2010-03-21  Bruno Haible  <bruno@clisp.org>
20270
20271         setenv: Tweaks.
20272         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
20273         the test program.
20274         * doc/posix-functions/setenv.texi: Update platforms list.
20275
20276 2010-03-21  Bruno Haible  <bruno@clisp.org>
20277
20278         New module 'unlockpt'.
20279         * lib/unlockpt.c: New file, from glibc with modifications.
20280         * m4/unlockpt.m4: New file.
20281         * modules/unlockpt: New file.
20282         * lib/stdlib.in.h (unlockpt): New declaration.
20283         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
20284         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
20285         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
20286         HAVE_UNLOCKPT.
20287         * doc/posix-functions/unlockpt.texi: Mention the new module.
20288         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
20289         * config/srclist.txt: Add unlockpt.c (commented).
20290
20291 2010-03-21  Jim Meyering  <meyering@redhat.com>
20292
20293         maint.mk: prohibit inclusion of "intprops.h" without use
20294         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20295
20296 2010-03-21  Bruno Haible  <bruno@clisp.org>
20297
20298         New module 'grantpt'.
20299         * lib/grantpt.c: New file, from glibc with modifications.
20300         * m4/grantpt.m4: New file.
20301         * modules/grantpt: New file.
20302         * lib/stdlib.in.h (grantpt): New declaration.
20303         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
20304         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
20305         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
20306         HAVE_GRANTPT.
20307         * doc/posix-functions/grantpt.texi: Mention the new module.
20308         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20309         * config/srclist.txt: Add grantpt.c (commented).
20310
20311 2010-03-21  Bruno Haible  <bruno@clisp.org>
20312
20313         New module 'pt_chown'.
20314         * lib/pt_chown.c: New file, from glibc with modifications.
20315         * lib/pty-private.h: New file, from glibc with modifications.
20316         * modules/pt_chown: New file.
20317         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20318
20319 2010-03-21  Bruno Haible  <bruno@clisp.org>
20320
20321         Tests for module 'ptsname'.
20322         * modules/ptsname-tests: New file.
20323         * tests/test-ptsname.c: New file.
20324
20325         New module 'ptsname'.
20326         * lib/ptsname.c: New file, from glibc with modifications.
20327         * m4/ptsname.m4: New file.
20328         * modules/ptsname: New file.
20329         * lib/stdlib.in.h (ptsname): New declaration.
20330         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20331         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20332         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20333         HAVE_PTSNAME.
20334         * doc/posix-functions/ptsname.texi: Mention the new module.
20335         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20336         * config/srclist.txt: Add ptsname.c (commented).
20337
20338 2010-03-21  Bruno Haible  <bruno@clisp.org>
20339
20340         Tests for module 'ttyname_r'.
20341         * modules/ttyname_r-tests: New file.
20342         * tests/test-ttyname_r.c: New file.
20343
20344         New module 'ttyname_r'.
20345         * lib/ttyname_r.c: New file.
20346         * m4/ttyname_r.m4: New file.
20347         * modules/ttyname_r: New file.
20348         * lib/unistd.in.h (ttyname_r): New declaration.
20349         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20350         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20351         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20352         HAVE_TTYNAME_R.
20353         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20354         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20355
20356 2010-03-20  Bruno Haible  <bruno@clisp.org>
20357
20358         signal: Undefine macro definitions in C++ mode.
20359         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20360         sigfillset): Undefine macro definitions from the system header in C++
20361         mode.
20362         Reported by John W. Eaton <jwe@gnu.org>.
20363
20364 2010-03-20  Bruno Haible  <bruno@clisp.org>
20365
20366         Ensure no #include statements inside extern "C" { ... }.
20367         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20368         contain #include statements.
20369         * lib/time.in.h: Likewise.
20370
20371 2010-03-20  Bruno Haible  <bruno@clisp.org>
20372
20373         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20374         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20375         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20376         Reported by John W. Eaton <jwe@gnu.org>.
20377
20378 2010-03-20  Bruno Haible  <bruno@clisp.org>
20379
20380         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20381         Reported by Jim Meyering.
20382
20383 2010-03-20  Bruno Haible  <bruno@clisp.org>
20384
20385         pipe: Set errno upon failure.
20386         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20387         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20388         errno value in error message.
20389
20390 2010-03-20  Bruno Haible  <bruno@clisp.org>
20391             Jim Meyering  <meyering@redhat.com>
20392
20393         lchown: Avoid "unused variable" warning.
20394         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20395
20396 2010-03-20  Bruno Haible  <bruno@clisp.org>
20397
20398         Work around unlink() bug on MacOS X 10.5.6.
20399         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20400         attempting to unlink a parent directory.
20401         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20402         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20403         activate for the replacement function.
20404         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20405
20406 2010-03-20  Bruno Haible  <bruno@clisp.org>
20407
20408         Fix link errors on Solaris 8.
20409         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20410         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20411
20412 2010-03-19  Jim Meyering  <meyering@redhat.com>
20413
20414         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20415         The _LIBC implementation of build_range_exp correctly honors the
20416         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20417         However, the non-_LIBC implementation would ignore that syntax-bit
20418         flag and return REG_ERANGE unconditionally.
20419         This change makes it honor that flag.
20420         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20421         Make two pointer parameters "const".
20422         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20423         (parse_bracket_exp): Update caller.
20424
20425         regex.m4: correct the reversed range endpoint ([b-a]) test
20426         * m4/regex.m4: When requiring that [b-a] evoke failure,
20427         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20428         test pass once again for x86-based systems.
20429
20430 2010-03-19  Bruno Haible  <bruno@clisp.org>
20431
20432         scandir: Fix link error on Solaris 8.
20433         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20434         macros.
20435
20436 2010-03-19  Bruno Haible  <bruno@clisp.org>
20437
20438         getusershell: Fix documentation.
20439         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20440         module.
20441         * doc/glibc-functions/setusershell.texi: Likewise.
20442
20443         getusershell: Provide declaration, missing on Solaris 9.
20444         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20445         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20446         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20447         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20449         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20450         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20451         HAVE_GETUSERSHELL.
20452         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20453
20454 2010-03-19  Bruno Haible  <bruno@clisp.org>
20455
20456         wctype: Provide iswblank function.
20457         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20458         exists and is fine.
20459         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20460         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20461         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20462         * doc/posix-functions/iswblank.texi: Update.
20463
20464 2010-03-19  Bruno Haible  <bruno@clisp.org>
20465
20466         Tests of module 'pty' in C++ mode.
20467         * modules/pty-tests: New file.
20468         * tests/test-pty-c++.cc: New file.
20469         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20470
20471 2010-03-19  Eric Blake  <eblake@redhat.com>
20472
20473         logb: fix documentation
20474         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20475         1.5 declaration bug.
20476
20477         forkpty, openpty: prefer glibc's const-safe prototype
20478         * lib/forkpty.c (rpl_forkpty): New file.
20479         * lib/openpty.c (rpl_openpty): Likewise.
20480         * modules/forkpty (Files): Distribute it.
20481         * modules/openpty (Files): Likewise.
20482         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20483         check...
20484         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20485         replacement for for non-const BSD signature.
20486         * modules/pty (Makefile.am): Substitute witnesses.
20487         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20488         * tests/test-forkpty.c: Update signature check.
20489         * tests/test-openpty.c: Likewise.
20490         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20491         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20492
20493         forkpty, openpty: split functions into new modules
20494         * modules/pty (Makefile.am): Substitute new witnesses.
20495         (Libraries): Move library detection...
20496         * modules/forkpty: ...into new module.
20497         * modules/openpty: Another new module.
20498         * modules/pty-tests: Rename and split...
20499         * modules/forkpty-tests: ...to this...
20500         * modules/openpty-tests: ...and this.
20501         * tests/test-pty.c: Rename and split...
20502         * tests/test-forkpty.c: ...to this...
20503         * tests/test-openpty.c: ...and this.
20504         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20505         (gl_PTY): Split library searching...
20506         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20507         (gl_FORKPTY, gl_OPENPTY): New macros.
20508         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20509         * NEWS: Mention the split.
20510         * MODULES.html.sh (Misc): Document the modules.
20511         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20512         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20513
20514         pty: improve replacement header
20515         * lib/pty.in.h: New file.
20516         * modules/pty (Files): Ship it.
20517         (Makefile.am): Always build replacement.
20518         * m4/pty.m4: Rename...
20519         * m4/pty_h.m4: ...to this.
20520         (gl_PTY): Modernize setting of witness macros; update check of
20521         forkpty to take proper advantage of cache.
20522         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20523
20524         getopt: avoid compiler warning
20525         * lib/getopt.c (attribute_hidden): Remove unused macro.
20526
20527 2010-03-18  Bruno Haible  <bruno@clisp.org>
20528
20529         Fix link errors on Solaris 8.
20530         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
20531         * modules/search-tests (test_search_c___LDADD): Likewise.
20532         * modules/signal-tests (test_signal_c___LDADD): Likewise.
20533         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
20534         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
20535         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
20536         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
20537         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
20538         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
20539
20540 2010-03-18  Bruno Haible  <bruno@clisp.org>
20541
20542         Fix bug introduced on 2010-03-14.
20543         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
20544         (gl_SPAWN_H): Require it.
20545         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
20546         Reported by Simon Josefsson.
20547
20548 2010-03-18  Bruno Haible  <bruno@clisp.org>
20549
20550         Fix typo introduced on 2009-12-31.
20551         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
20552         posix_spawn_file_actions_adddup2.
20553
20554 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
20555         and Eric Blake  <eblake@redhat.com>
20556
20557         test-vc-list-files-git: make more robust
20558         * tests/test-vc-list-files-git.sh: Unset problematic environment
20559         variables.  Chain commands together.
20560
20561 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
20562
20563         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
20564         `AC_CHECK_DECL' invocation.
20565
20566 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
20567
20568         * lib/inttostr.c (inttostr): Make sure the invocation of verify
20569         appears before executable statements. Suggested by Petr Sumbera
20570         <Petr.Sumbera@Sun.COM>.
20571
20572 2010-03-14  Bruno Haible  <bruno@clisp.org>
20573
20574         * tests/test-flock.c (test_exclusive): Comment out a test that causes
20575         portability problems. Instead use a simpler test.
20576         (main): Check that invalid arguments are rejected only on Linux.
20577
20578 2010-03-14  Bruno Haible  <bruno@clisp.org>
20579
20580         Fix bug introduced on 2009-12-31.
20581         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20582         gl_PREREQ_SYS_H_WINSOCK2 always.
20583         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
20584         SYS_SOCKET_H variable.
20585         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
20586         Update comments.
20587         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
20588         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20589         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20590         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20591         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
20592
20593 2010-03-14  Bruno Haible  <bruno@clisp.org>
20594
20595         Fix values returned by sinl, cosl.
20596         * lib/trigl.h: Add specification comments.
20597         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
20598         that combines the values from the precomputed table with the values of
20599         the Chebyshev polynomials.
20600
20601 2010-03-14  Bruno Haible  <bruno@clisp.org>
20602
20603         Fix compilation error when modules 'posix_spawn[p]' are not used.
20604         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
20605         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
20606
20607 2010-03-14  Bruno Haible  <bruno@clisp.org>
20608
20609         Fix compilation error on mingw when module 'time_r' is not used.
20610         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
20611         is 1.
20612         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
20613         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20614         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
20615         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
20616
20617 2010-03-14  Bruno Haible  <bruno@clisp.org>
20618
20619         Fix compilation error with Sun C.
20620         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20621         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20622         instead of GCC specific ULONG_LONG_MAX.
20623         * lib/xstrtoll.c: Likewise.
20624         * lib/xstrtoull.c: Likewise.
20625
20626 2010-03-13  Bruno Haible  <bruno@clisp.org>
20627
20628         Allow the user to disable C++ code and tests.
20629         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20630         (gl_PROG_ANSI_CXX): Require it.
20631
20632 2010-03-13  Bruno Haible  <bruno@clisp.org>
20633
20634         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20635         cases.
20636
20637 2010-03-13  Bruno Haible  <bruno@clisp.org>
20638
20639         Test that gnulib does not break the standard C++ headers.
20640         * tests/test-locale-c++2.cc: New file.
20641         * modules/locale-tests (Files): Add it.
20642         (Makefile.am): Compile it for test-locale-c++.
20643         * tests/test-math-c++2.cc: New file.
20644         * modules/math-tests (Files): Add it.
20645         (Makefile.am): Compile it for test-math-c++.
20646         * tests/test-signal-c++2.cc: New file.
20647         * modules/signal-tests (Files): Add it.
20648         (Makefile.am): Compile it for test-signal-c++.
20649         * tests/test-stdio-c++2.cc: New file.
20650         * modules/stdio-tests (Files): Add it.
20651         (Makefile.am): Compile it for test-stdio-c++.
20652         * tests/test-stdlib-c++2.cc: New file.
20653         * modules/stdlib-tests (Files): Add it.
20654         (Makefile.am): Compile it for test-stdlib-c++.
20655         * tests/test-string-c++2.cc: New file.
20656         * modules/string-tests (Files): Add it.
20657         (Makefile.am): Compile it for test-string-c++.
20658         * tests/test-time-c++2.cc: New file.
20659         * modules/time-tests (Files): Add it.
20660         (Makefile.am): Compile it for test-time-c++.
20661         Reported by John W. Eaton <jwe@gnu.org>.
20662
20663 2010-03-13  Bruno Haible  <bruno@clisp.org>
20664
20665         * gnulib-tool (func_usage): Clarify which options are available for
20666         --create-testdir and --create-megatestdir.
20667
20668 2010-03-13  Bruno Haible  <bruno@clisp.org>
20669
20670         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20671         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20672         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20673         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20674         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20675         when appropriate.
20676         Reported by Jim Meyering.
20677
20678 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20679
20680         * gnulib-tool (func_import): Explain origin of code.
20681
20682 2010-03-12  Bruno Haible  <bruno@clisp.org>
20683
20684         Fix problem with automake's definition of CXXLINK.
20685         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20686         Reported by Simon Josefsson and Ludovic Courtès.
20687
20688 2010-03-12  Bruno Haible  <bruno@clisp.org>
20689
20690         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20691         stable releases.
20692
20693 2010-03-11  Bruno Haible  <bruno@clisp.org>
20694
20695         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
20696         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
20697         whether the system provides one variant or multiple variants of the
20698         function.
20699         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
20700         C++ compilers.
20701         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
20702         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
20703         Reported by Jim Meyering.
20704
20705 2010-03-09  Simon Josefsson  <simon@josefsson.org>
20706
20707         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
20708
20709 2010-03-08  Bruno Haible  <bruno@clisp.org>
20710
20711         gnulib-tool: Add support for --libtool in --create-testdir.
20712         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
20713         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
20714
20715 2010-03-08  Eric Blake  <eblake@redhat.com>
20716
20717         gnulib-tool.texi: mention possibility of git submodule
20718         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
20719         submodules.
20720         * doc/.gitignore: Ignore another generated file.
20721
20722 2010-03-08  Karl Berry  <karl@gnu.org>
20723
20724         * doc/gnulib-tool.texi (VCS Issues): Mention third option
20725         of committing gnulib files while skipping others.
20726
20727 2010-03-07  Bruno Haible  <bruno@clisp.org>
20728
20729         Tests of module 'wctype' in C++ mode.
20730         * tests/test-wctype-c++.cc: New file.
20731         * modules/wctype-tests (Files): Add it and tests/signature.h.
20732         (Depends-on): Add ansi-c++-opt.
20733         (Makefile.am): Arrange to compile and run test-wctype-c++.
20734
20735         Tests of module 'wchar' in C++ mode.
20736         * tests/test-wchar-c++.cc: New file.
20737         * modules/wchar-tests (Files): Add it and tests/signature.h.
20738         (Depends-on): Add ansi-c++-opt.
20739         (Makefile.am): Arrange to compile and run test-wchar-c++.
20740         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
20741         gl_MODULE_INDICATOR.
20742
20743         Tests of module 'unistd' in C++ mode.
20744         * tests/test-unistd-c++.cc: New file.
20745         * modules/unistd-tests (Files): Add it and tests/signature.h.
20746         (Depends-on): Add ansi-c++-opt.
20747         (Makefile.am): Arrange to compile and run test-unistd-c++.
20748         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
20749         gl_MODULE_INDICATOR.
20750
20751         Tests of module 'time' in C++ mode.
20752         * tests/test-time-c++.cc: New file.
20753         * modules/time-tests (Files): Add it and tests/signature.h.
20754         (Depends-on): Add ansi-c++-opt.
20755         (Makefile.am): Arrange to compile and run test-time-c++.
20756         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20757
20758         Tests of module 'sys_time' in C++ mode.
20759         * tests/test-sys_time-c++.cc: New file.
20760         * modules/sys_time-tests (Files): Add it and tests/signature.h.
20761         (Depends-on): Add ansi-c++-opt.
20762         (Makefile.am): Arrange to compile and run test-sys_time-c++.
20763         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
20764         gl_MODULE_INDICATOR.
20765
20766         Tests of module 'sys_stat' in C++ mode.
20767         * tests/test-sys_stat-c++.cc: New file.
20768         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
20769         (Depends-on): Add ansi-c++-opt.
20770         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
20771         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
20772         gl_MODULE_INDICATOR.
20773
20774         Tests of module 'sys_socket' in C++ mode.
20775         * tests/test-sys_socket-c++.cc: New file.
20776         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
20777         (Depends-on): Add ansi-c++-opt.
20778         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
20779         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
20780         gl_MODULE_INDICATOR.
20781
20782         Tests of module 'sys_select' in C++ mode.
20783         * tests/test-sys_select-c++.cc: New file.
20784         * modules/sys_select-tests (Files): Add it and tests/signature.h.
20785         (Depends-on): Add ansi-c++-opt.
20786         (Makefile.am): Arrange to compile and run test-sys_select-c++.
20787         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
20788         gl_MODULE_INDICATOR.
20789
20790         Tests of module 'sys_ioctl' in C++ mode.
20791         * tests/test-sys_ioctl-c++.cc: New file.
20792         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
20793         (Depends-on): Add ansi-c++-opt.
20794         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
20795         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
20796         gl_MODULE_INDICATOR.
20797
20798         Tests of module 'string' in C++ mode.
20799         * tests/test-string-c++.cc: New file.
20800         * modules/string-tests (Files): Add it and tests/signature.h.
20801         (Depends-on): Add ansi-c++-opt.
20802         (Makefile.am): Arrange to compile and run test-string-c++.
20803         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
20804         gl_MODULE_INDICATOR.
20805
20806         Tests of module 'stdlib' in C++ mode.
20807         * tests/test-stdlib-c++.cc: New file.
20808         * modules/stdlib-tests (Files): Add it and tests/signature.h.
20809         (Depends-on): Add ansi-c++-opt.
20810         (Makefile.am): Arrange to compile and run test-stdlib-c++.
20811         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
20812         gl_MODULE_INDICATOR.
20813
20814         Tests of module 'stdio' in C++ mode.
20815         * tests/test-stdio-c++.cc: New file.
20816         * modules/stdio-tests (Files): Add it and tests/signature.h.
20817         (Depends-on): Add ansi-c++-opt.
20818         (Makefile.am): Arrange to compile and run test-stdio-c++.
20819         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
20820         gl_MODULE_INDICATOR.
20821
20822         Tests of module 'spawn' in C++ mode.
20823         * tests/test-spawn-c++.cc: New file.
20824         * modules/spawn-tests (Files): Add it and tests/signature.h.
20825         (Depends-on): Add ansi-c++-opt.
20826         (Makefile.am): Arrange to compile and run test-spawn-c++.
20827         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
20828         gl_MODULE_INDICATOR.
20829
20830         Tests of module 'signal' in C++ mode.
20831         * tests/test-signal-c++.cc: New file.
20832         * modules/signal-tests (Files): Add it and tests/signature.h.
20833         (Depends-on): Add ansi-c++-opt.
20834         (Makefile.am): Arrange to compile and run test-signal-c++.
20835         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
20836         gl_MODULE_INDICATOR.
20837
20838         Tests of module 'search' in C++ mode.
20839         * tests/test-search-c++.cc: New file.
20840         * modules/search-tests (Files): Add it and tests/signature.h.
20841         (Depends-on): Add ansi-c++-opt.
20842         (Makefile.am): Arrange to compile and run test-search-c++.
20843         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
20844         gl_MODULE_INDICATOR.
20845
20846         Tests of module 'math' in C++ mode.
20847         * tests/test-math-c++.cc: New file.
20848         * modules/math-tests (Files): Add it and tests/signature.h.
20849         (Depends-on): Add ansi-c++-opt.
20850         (Makefile.am): Arrange to compile and run test-math-c++.
20851         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20852
20853         Tests of module 'locale' in C++ mode.
20854         * tests/test-locale-c++.cc: New file.
20855         * modules/locale-tests (Files): Add it and tests/signature.h.
20856         (Depends-on): Add ansi-c++-opt.
20857         (Makefile.am): Arrange to compile and run test-locale-c++.
20858         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
20859         gl_MODULE_INDICATOR.
20860
20861         Tests of module 'langinfo' in C++ mode.
20862         * tests/test-langinfo-c++.cc: New file.
20863         * modules/langinfo-tests (Files): Add it and tests/signature.h.
20864         (Depends-on): Add ansi-c++-opt.
20865         (Makefile.am): Arrange to compile and run test-langinfo-c++.
20866         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
20867         gl_MODULE_INDICATOR.
20868
20869         Tests of module 'iconv-h' in C++ mode.
20870         * tests/test-iconv-h-c++.cc: New file.
20871         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
20872         (Depends-on): Add ansi-c++-opt.
20873         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
20874
20875         Tests of module 'glob' in C++ mode.
20876         * tests/test-glob-c++.cc: New file.
20877         * modules/glob-tests (Files): Add it.
20878         (Depends-on): Add ansi-c++-opt.
20879         (Makefile.am): Arrange to compile and run test-glob-c++.
20880
20881         Tests of module 'fcntl-h' in C++ mode.
20882         * tests/test-fcntl-h-c++.cc: New file.
20883         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
20884         (Depends-on): Add ansi-c++-opt.
20885         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
20886         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
20887         gl_MODULE_INDICATOR.
20888
20889         Tests of module 'dirent' in C++ mode.
20890         * tests/test-dirent-c++.cc: New file.
20891         * modules/dirent-tests (Files): Add it and tests/signature.h.
20892         (Depends-on): Add ansi-c++-opt.
20893         (Makefile.am): Arrange to compile and run test-dirent-c++.
20894         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20895         gl_MODULE_INDICATOR.
20896
20897         New module 'ansi-c++-opt'.
20898         * modules/ansi-c++-opt: New file.
20899         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
20900
20901         Document C++ namespace mode.
20902         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
20903
20904         wctype: Avoid #define replacements in C++ mode.
20905         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
20906         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
20907         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
20908         In C++, define a namespaced alias symbol.
20909         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
20910         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
20911         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
20912         rule.
20913
20914         wchar: Avoid #define replacements in C++ mode.
20915         * lib/wchar.in.h: Include c++defs.h.
20916         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
20917         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
20918         symbol.
20919         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
20920         * modules/wchar (Depends-on): Add c++defs.
20921         (Makefile.am): Update wchar.h rule.
20922
20923         unistd: Avoid #define replacements in C++ mode.
20924         * lib/unistd.in.h: Include c++defs.h.
20925         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
20926         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
20927         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
20928         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
20929         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
20930         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
20931         symbol.
20932         (environ): Update.
20933         * modules/unistd (Depends-on): Add c++defs.
20934         (Makefile.am): Update unistd.h rule.
20935
20936         time: Avoid #define replacements in C++ mode.
20937         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
20938         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
20939         define a namespaced alias symbol.
20940         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
20941         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
20942         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
20943         * modules/time (Depends-on): Add c++defs, warn-on-use.
20944         (Makefile.am): Update time.h rule.
20945         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20946         * modules/nanosleep (configure.ac): Likewise.
20947         * modules/strptime (configure.ac): Likewise.
20948         * modules/timegm (configure.ac): Likewise.
20949
20950         sys_time: Avoid #define replacements in C++ mode.
20951         * lib/sys_time.in.h: Include c++defs.h.
20952         (gettimeofday): In C++, define a namespaced alias symbol.
20953         * modules/sys_time (Depends-on): Add c++defs.
20954         (Makefile.am): Update sys/time.h rule.
20955
20956         sys_stat: Avoid #define replacements in C++ mode.
20957         * lib/sys_stat.in.h: Include c++defs.h.
20958         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
20959         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
20960         namespaced alias symbol.
20961         In C++, define a namespaced alias symbol.
20962         * modules/sys_stat (Depends-on): Add c++defs.
20963         (Makefile.am): Update sys/stat.h rule.
20964
20965         sys_socket: Avoid #define replacements in C++ mode.
20966         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
20967         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
20968         definitions also when the system has a <sys/socket.h>.
20969         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20970         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
20971         In C++, define a namespaced alias symbol.
20972         * modules/sys_socket (Depends-on): Add c++defs.
20973         (Makefile.am): Update sys/socket.h rule.
20974
20975         sys_select: Avoid #define replacements in C++ mode.
20976         * lib/sys_select.in.h: Include c++defs.h. Enable the function
20977         definitions also when the system has a <sys/select.h>.
20978         (select): In C++, define a namespaced alias symbol.
20979         * modules/sys_select (Depends-on): Add c++defs.
20980         (Makefile.am): Update sys/select.h rule.
20981
20982         sys_ioctl: Avoid #define replacements in C++ mode.
20983         * lib/sys_ioctl.in.h: Include c++defs.h.
20984         (ioctl): In C++, define a namespaced alias symbol.
20985         * modules/sys_ioctl (Depends-on): Add c++defs.
20986         (Makefile.am): Update sys/ioctl.h rule.
20987
20988         string: Avoid #define replacements in C++ mode.
20989         * lib/string.in.h: Include c++defs.h.
20990         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
20991         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20992         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20993         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
20994         strsignal, strverscmp): In C++, define a namespaced alias symbol.
20995         * modules/string (Depends-on): Add c++defs.
20996         (Makefile.am): Update string.h rule.
20997
20998         stdlib: Avoid #define replacements in C++ mode.
20999         * lib/stdlib.in.h: Include c++defs.h.
21000         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
21001         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
21002         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
21003         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
21004         symbol.
21005         * modules/stdlib (Depends-on): Add c++defs.
21006         (Makefile.am): Update stdlib.h rule.
21007
21008         stdio: Avoid #define replacements in C++ mode.
21009         * lib/stdio.in.h: Include c++defs.h.
21010         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
21011         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
21012         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
21013         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
21014         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
21015         namespaced alias symbol.
21016         * modules/stdio (Depends-on): Add c++defs.
21017         (Makefile.am): Update stdio.h rule.
21018
21019         spawn: Avoid #define replacements in C++ mode.
21020         * lib/spawn.in.h: Include c++defs.h.
21021         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21022         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21023         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21024         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21025         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21026         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21027         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21028         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21029         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21030         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21031         In C++, define a namespaced alias symbol.
21032         * modules/spawn (Depends-on): Add c++defs.
21033         (Makefile.am): Update spawn.h rule.
21034
21035         signal: Avoid #define replacements in C++ mode.
21036         * lib/signal.in.h: Include c++defs.h.
21037         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21038         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
21039         namespaced alias symbol.
21040         * modules/signal (Depends-on): Add c++defs.
21041         (Makefile.am): Update signal.h rule.
21042
21043         search: Avoid #define replacements in C++ mode.
21044         * lib/search.in.h: Include c++defs.h.
21045         (_gl_search_compar_fn, _gl_search_action_fn): New types.
21046         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
21047         symbol.
21048         * modules/search (Depends-on): Add c++defs.
21049         (Makefile.am): Update search.h rule.
21050
21051         math: Avoid #define replacements in C++ mode.
21052         * lib/math.in.h: Include c++defs.h.
21053         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
21054         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
21055         trunc, truncl): In C++, define a namespaced alias symbol.
21056         * modules/math (Depends-on): Add c++defs.
21057         (Makefile.am): Update math.h rule.
21058
21059         locale: Avoid #define replacements in C++ mode.
21060         * lib/locale.in.h: Include c++defs.h.
21061         (duplocale): In C++, define a namespaced alias symbol.
21062         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
21063         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
21064         * modules/locale (Depends-on): Add c++defs.
21065         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
21066
21067         langinfo: Avoid #define replacements in C++ mode.
21068         * lib/langinfo.in.h: Include c++defs.h.
21069         (nl_langinfo): In C++, define a namespaced alias symbol.
21070         * modules/langinfo (Depends-on): Add c++defs.
21071         (Makefile.am): Update langinfo.h rule.
21072
21073         iconv-h: Avoid #define replacements in C++ mode.
21074         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
21075         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
21076         symbol.
21077         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21078         whenever iconv is present.
21079         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
21080         (Makefile.am): Update iconv.h rule.
21081
21082         glob: Avoid #define replacements in C++ mode.
21083         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
21084         (_gl_glob_errfunc_fn): New type.
21085         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
21086         symbol.
21087         * modules/glob (Depends-on): Add c++defs, warn-on-use.
21088         (Makefile.am): Update glob.h rule.
21089
21090         fcntl-h: Avoid #define replacements in C++ mode.
21091         * lib/fcntl.in.h: Include c++defs.h.
21092         (fcntl, open, openat): In C++, define a namespaced alias symbol.
21093         * modules/fcntl-h (Depends-on): Add c++defs.
21094         (Makefile.am): Update fcntl.h rule.
21095
21096         dirent: Avoid #define replacements in C++ mode.
21097         * lib/dirent.in.h: Include c++defs.h.
21098         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
21099         namespaced alias symbol.
21100         (dirfd): Update declaration.
21101         * modules/dirent (Depends-on): Add c++defs.
21102         (Makefile.am): Update dirent.h rule.
21103
21104         ctype: Make it usable in C++ code.
21105         * lib/ctype.in.h: Include c++defs.h.
21106         (isblank): Declare as extern "C".
21107         * modules/ctype (Depends-on): Add c++defs.
21108         (Makefile.am): Update ctype.h rule.
21109
21110         New module 'c++defs'.
21111         * modules/c++defs: New file.
21112         * build-aux/c++defs.h: New file.
21113         Reported by John W. Eaton <jwe@gnu.org>.
21114
21115 2010-03-07  Bruno Haible  <bruno@clisp.org>
21116
21117         logb: Provide missing declaration for Cygwin.
21118         * lib/math.in.h (logb): New declaration.
21119         * m4/logb.m4: New file.
21120         * modules/logb (Files): Add m4/logb.m4.
21121         (Depends-on): Add math.
21122         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
21123         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
21124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
21125         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
21126         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
21127
21128 2010-03-07  Bruno Haible  <bruno@clisp.org>
21129
21130         Fix test-cond link error.
21131         * tests/test-cond.c: Include <stdio.h>.
21132
21133 2010-03-07  Bruno Haible  <bruno@clisp.org>
21134
21135         Fix test-dirent-safer link error.
21136         * modules/dirent-safer-tests (Makefile.am): Define
21137         test_dirent_safer_LDADD.
21138
21139 2010-03-07  Bruno Haible  <bruno@clisp.org>
21140
21141         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
21142         among default module list.
21143
21144 2010-03-07  Bruno Haible  <bruno@clisp.org>
21145
21146         Fix link error on platforms with GNU libiconv.
21147         * modules/unistr/u8-strcoll-tests (Makefile): Define
21148         test_u8_strcoll_LDADD.
21149         * modules/unistr/u16-strcoll-tests (Makefile): Define
21150         test_u16_strcoll_LDADD.
21151         * modules/unistr/u32-strcoll-tests (Makefile): Define
21152         test_u32_strcoll_LDADD.
21153
21154 2010-03-07  Bruno Haible  <bruno@clisp.org>
21155
21156         Use POSIX declarations for socket functions.
21157         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
21158         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
21159         rpl_sendto): Change declaration to match POSIX.
21160         * lib/connect.c (rpl_connect): Likewise.
21161         * lib/accept.c (rpl_accept): Likewise.
21162         * lib/bind.c (rpl_bind): Likewise.
21163         * lib/getpeername.c (rpl_getpeername): Likewise.
21164         * lib/getsockname.c (rpl_getsockname): Likewise.
21165         * lib/recv.c (rpl_recv): Likewise.
21166         * lib/send.c (rpl_send): Likewise.
21167         * lib/recvfrom.c (rpl_recvfrom): Likewise.
21168         * lib/sendto.c (rpl_sendto): Likewise.
21169
21170 2010-03-06  Bruno Haible  <bruno@clisp.org>
21171
21172         Clarify access, euidaccess, faccessat.
21173         * doc/posix-functions/faccessat.texi: Mention security problem under
21174         "Other problems", not "Portability problems".
21175         * doc/posix-functions/access.texi: Likewise. Mention a related security
21176         problem.
21177         * doc/glibc-functions/euidaccess.texi: Mention security problems.
21178         * lib/euidaccess.c: Add comments about platforms.
21179         * lib/unistd.in.h (access, euidaccess): Add warnings.
21180
21181 2010-03-07  Bruno Haible  <bruno@clisp.org>
21182
21183         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
21184         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
21185         (POSIX_SPAWN_SETSCHEDULER): Likewise.
21186         (POSIX_SPAWN_USEVFORK): Define in a way that works when
21187         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21188         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
21189         declare when POSIX_SPAWN_SETSCHEDULER is zero.
21190         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
21191         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
21192         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
21193         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
21194         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
21195         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
21196         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
21197         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
21198         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
21199         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
21200         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
21201         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
21202         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
21203         Likewise.
21204         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
21205         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
21206         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
21207         Likewise.
21208         * tests/test-spawn.c (main): Make it work when
21209         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
21210
21211 2010-03-07  Bruno Haible  <bruno@clisp.org>
21212
21213         Fix incorrect Makefile.am generation in German locale.
21214         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21215         Execute sed command with character range in C locale.
21216
21217 2010-03-06  Bruno Haible  <bruno@clisp.org>
21218
21219         Tests for module 'iconv-h'.
21220         * modules/iconv-h-tests: New file.
21221         * tests/test-iconv-h.c: New file.
21222
21223         New module 'iconv-h'.
21224         * modules/iconv-h: New file.
21225         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
21226         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
21227         (configure.ac): Remove gl_ICONV_H.
21228         (Makefile.am): Remove rule for iconv.h.
21229
21230 2010-03-06  Bruno Haible  <bruno@clisp.org>
21231
21232         More consistent naming of *.m4 files.
21233         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
21234         * modules/wctype (Files): Update.
21235
21236         More consistent naming of *.m4 files.
21237         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
21238         * modules/wchar (Files): Update.
21239
21240 2010-03-06  Jim Meyering  <meyering@redhat.com>
21241
21242         euidaccess: relax license to LGPLv2+
21243         * modules/euidaccess (License): Relax to LGPLv2+.
21244
21245 2010-03-06  Bruno Haible  <bruno@clisp.org>
21246
21247         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
21248         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
21249         (Makefile.am): Augment lib_SOURCES instead.
21250
21251 2010-03-04  Jim Meyering  <meyering@redhat.com>
21252
21253         utime: remove obsolete module
21254         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
21255         unnecessary for years, and has been marked as obsolete for 10 months.
21256         * modules/utime: Remove file.
21257         * lib/utime.c: Remove file.
21258         * m4/utime.m4: Remove file.
21259         * m4/utimes-null.m4: Remove file.
21260         * doc/posix-functions/utime.texi (utime): Remove reference to
21261         the module.  Move the sole "fixed by gnulib" item into the
21262         "problems not fixed by Gnulib" list.
21263         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
21264
21265 2010-03-05  Simon Josefsson  <simon@josefsson.org>
21266
21267         * modules/exit (License): Relax license to LGPLv2+.
21268         (Status): Mark as obsolete.
21269         * NEWS: Mention deprecated 'exit' module.
21270         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
21271         of now obsolete 'exit'.
21272
21273 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21274
21275         fts-lgpl: remove unused module
21276         * modules/fts-lgpl: Remove.
21277         * MODULES.html.sh (func_all_modules): Adjust.
21278         * check-module (find_included_lib_files): Adjust.
21279         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
21280
21281 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
21282
21283         copy-acl: enhance Solaris ACL error handling
21284         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
21285         * lib/set-mode-acl.c (qset_acl): Likewise.
21286
21287 2010-03-02  Bruno Haible  <bruno@clisp.org>
21288
21289         spawn: Don't override the system defined values on FreeBSD 8.
21290         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
21291         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
21292         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
21293         if HAVE_POSIX_SPAWN is 1.
21294         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
21295
21296 2010-03-01  Bruno Haible  <bruno@clisp.org>
21297
21298         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
21299         regarding Automake.
21300
21301 2010-02-25  Bruno Haible  <bruno@clisp.org>
21302
21303         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
21304         * gnulib-tool: Define 'echo' as a function only before the ksh alias
21305         setting, not afterwards.
21306         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21307
21308 2010-02-24  Eric Blake  <eblake@redhat.com>
21309
21310         bootstrap, git-version-gen: use timestamp
21311         * build-aux/git-version-gen (scriptversion): Force UTC.
21312         * build-aux/bootstrap (scriptversion): New variable.
21313
21314         bootstrap: allow older git
21315         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21316         older than 1.6.4.  Requested by the libvirt project.
21317
21318 2010-02-23  Eric Blake  <eblake@redhat.com>
21319
21320         warn-on-use: work with old autoconf
21321         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21322         AS_VAR semantics of autoconf 2.60.
21323         Reported by Bruno Haible.
21324
21325         bootstrap: improve some comments
21326         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21327         clarification comments.
21328
21329         gettimeofday: provide correct function
21330         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21331         when replacement is declared, otherwise provide gettimeofday.
21332         Reported by Michael Goffioul.
21333
21334 2010-02-23  Jim Meyering  <meyering@redhat.com>
21335
21336         lib-ignore: relax license to "unlimited", not LGPLv2+
21337         * modules/lib-ignore (License): Relax to "unlimited".
21338
21339 2010-02-23  Jim Meyering  <meyering@redhat.com>
21340
21341         lib-ignore: relax license to LGPLv2+
21342         * modules/lib-ignore (License): Relax to LGPLv2+.
21343
21344 2010-02-22  Eric Blake  <eblake@redhat.com>
21345
21346         lseek: avoid bash 3.2 broken pipe bug
21347         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21348         warning from bash 3.2.
21349         Reported by Ben Pfaff, with analysis from Bruno Haible.
21350
21351         bootstrap: support non-FSF copyright holder
21352         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21353         bootstrap.conf override of COPYRIGHT_HOLDER.
21354         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21355
21356         bootstrap: interoperate with gettext 0.14.1
21357         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21358
21359         bootstrap: allow for alternate submodule location
21360         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21361         hardcoding submodule location.
21362         (gnulib_mk): Allow direct use of Makefile.am.
21363
21364         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21365         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21366         rather than reconfiguring where the submodule points.
21367
21368         gettimeofday: restore support for platforms that lack function
21369         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21370         replacement if function is missing.
21371         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21372         * modules/sys_time (Makefile.am): Substitute it.
21373         * lib/sys_time.in.h (gettimeofday): Check it.
21374         Reported by Michael Goffioul.
21375
21376 2010-02-21  Bruno Haible  <bruno@clisp.org>
21377
21378         * lib/stdio.in.h (obstack_printf): Fix typo.
21379
21380 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21381
21382         vc-list-files: use bzr ls's -R option
21383         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21384         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21385
21386 2010-02-21  Jim Meyering  <meyering@redhat.com>
21387
21388         init.sh: fix EXEEXT shims to work also for names like test-prog
21389         * tests/init.sh: Re-exec a better shell, when needed.
21390         If the current shell lacks support for posix $(...), an init.sh-using
21391         test will now try to find a shell that supports that.  If EXEEXT is
21392         nonempty, we also require support for hyphen-in-alias-name and shell
21393         substitutions like ${var#glob}.  Failure to find such a shell results
21394         in a skipped test.
21395
21396 2010-02-21  Bruno Haible  <bruno@clisp.org>
21397
21398         Really work around around "broken pipe" error message from bash 3.2.
21399         * gnulib-tool (func_reset_sigpipe): Remove function.
21400         (echo): In bash 3.2, define to a function that uses printf.
21401         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21402
21403 2010-02-20  Bruno Haible  <bruno@clisp.org>
21404
21405         Restore support for automake 1.9.6 with autoconf 2.61.
21406         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21407         Reported by James Youngman <jay@gnu.org>.
21408
21409 2010-02-20  Bruno Haible  <bruno@clisp.org>
21410
21411         Improve *printf warning condition.
21412         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21413         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21414         and the function is overridden due to SIGPIPE emulation.
21415
21416 2010-02-20  Bruno Haible  <bruno@clisp.org>
21417
21418         * lib/stdio.in.h: Tweak comments.
21419
21420 2010-02-19  Bruno Haible  <bruno@clisp.org>
21421
21422         Make it easier to find modules. New gnulib-tool option '--find'.
21423         * gnulib-tool: New option --find.
21424         (func_usage): Document it.
21425         (func_sanitize_modulelist): New function, extracted from
21426         func_all_modules.
21427         (func_all_modules): Invoke it.
21428         * doc/gnulib-tool.texi (Which modules?): New node.
21429
21430 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21431
21432         * lib/sys_select.in.h: Provide select replacement even if
21433         sys/select.h exists on a system, for Interix.
21434
21435 2010-02-18  Jim Meyering  <meyering@redhat.com>
21436
21437         init.sh: don't use $(...) just yet
21438         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21439         to accommodate e.g., Solaris' /bin/sh.
21440
21441 2010-02-17  Bruno Haible  <bruno@clisp.org>
21442
21443         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21444         Reported by Ludovic Courtès <ludo@gnu.org>.
21445
21446 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21447
21448         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21449         linking with -lintl.
21450
21451 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21452
21453         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21454         if not provided by the system's netdb.h.  Reported by
21455         ludo@gnu.org (Ludovic Courtès).
21456
21457 2010-02-15  Jim Meyering  <meyering@redhat.com>
21458
21459         init.sh: improve portability and efficiency
21460         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21461         "dummy" in a for loop.
21462         Use '!', not '^' to select the complement of a character set used
21463         in a "case" statement.
21464         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21465         Suggestions from Eric Blake.
21466
21467         init.sh: automatically accommodate programs with the .exe suffix
21468         Automatically arrange for an invocation of "prog" to execute the
21469         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21470         may use the simpler "prog", yet still work when built on a system
21471         that requires specifying the added suffix.
21472         Do this by constructing a function named "prog" that invokes
21473         "prog.exe" for each .exe file in selected directories.
21474         * tests/init.sh (find_exe_basenames_): New function.
21475         (create_exe_shim_functions_): New function.
21476         (path_prepend_): Use it.
21477
21478         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21479         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21480         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21481
21482 2010-02-14  Jim Meyering  <meyering@redhat.com>
21483
21484         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21485         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21486         (sc_prohibit_hash_pjw_without_use): New rule.
21487
21488         maint.mk: allow the default upload destination dir to be overridden
21489         * top/maint.mk (upload_dest_dir_): Define with a default that
21490         preserves the status quo.
21491         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21492         Reported by Peter Simons.
21493
21494         maint.mk: prohibit inclusion of "hash.h" without_use
21495         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21496
21497 2010-02-10  Jim Meyering  <meyering@redhat.com>
21498
21499         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21500         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21501
21502 2010-02-09  Eric Blake  <ebb9@byu.net>
21503         and Bruno Haible  <bruno@clisp.org>
21504
21505         obstack-printf-posix: ensure declaration
21506         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21507         extracted from gl_FUNC_OBSTACK_PRINTF.
21508         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21509         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21510         Likewise.
21511         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21512         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21513         0.
21514
21515 2010-02-08  Bruno Haible  <bruno@clisp.org>
21516
21517         gnulib-tool: Fix typo in 2010-02-07 commit.
21518         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21519         Reported by Eric Blake.
21520
21521 2010-02-07  Bruno Haible  <bruno@clisp.org>
21522
21523         gnulib-tool: Fix up caching patches.
21524         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21525         option --no-cache. Use associative arrays when supported by the shell.
21526         (sed_comments): New variable.
21527         (modcache): Renamed from do_cache.
21528         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
21529         abbreviate unnecessarily.
21530         (have_associative): New variable.
21531         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
21532         way also for ksh and zsh.
21533         (func_init_sed_convert_to_cache_statements): New function, extracted
21534         from func_cache_lookup_module. Add support for associative arrays.
21535         Don't set the c_MODULE_cached variable here. Ignore all lines before
21536         the first field header. Remove only the final newline, not all trailing
21537         newlines. Support empty fields correctly. Limit the use of 'eval' to
21538         assignments.
21539         (func_get_description, func_get_status, func_get_notice,
21540         func_get_applicability, func_get_filelist, func_get_dependencies,
21541         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
21542         func_get_automake_snippet, func_get_include_directive,
21543         func_get_link_directive, func_get_license, func_get_maintainer):
21544         Update documentation. List the unoptimized code first. Add support for
21545         associative arrays. Limit the use of 'eval' to assignments.
21546         (func_get_applicability): Undo stylistic pessimisations.
21547         (func_get_automake_snippet, func_get_include_directive): Reduce code
21548         duplication.
21549         (func_modules_transitive_closure, func_modules_add_dummy,
21550         func_modules_notice, func_modules_to_filelist, func_add_file,
21551         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
21552         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
21553         func_create_testdir, func_create_megatestdir): Update documentation.
21554
21555 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21556
21557         * gnulib-tool (func_cache_lookup_module): Store the module name
21558         belonging to the cache variable; error out if two different
21559         module names map to the same cache variable name.
21560
21561 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21562
21563         gnulib-tool: Make caching optional.
21564         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
21565         Update matching short versions of --no-changelog.
21566         (func_usage): Update.
21567         (sed_extract_cache_prog): Renamed from ...
21568         (sed_extract_prog): ... this; revert to old extraction script.
21569         (func_get_description, func_get_status)
21570         (func_get_notice, func_get_applicability, func_get_filelist)
21571         (func_get_dependencies, func_get_autoconf_early_snippet)
21572         (func_get_autoconf_snippet, func_get_automake_snippet)
21573         (func_get_include_directive, func_get_link_directive)
21574         (func_get_license, func_get_maintainer): If $do_cache is false,
21575         use old, non-caching extraction scripts.
21576         Suggestion by Bruno Haible.
21577
21578 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21579
21580         gnulib-tool: cache module metainformation.
21581         * gnulib-tool (sed_extract_prog): Match newline before each
21582         header, and rewrite header to a shell variable suffix.
21583         (func_cache_var, func_cache_lookup_module): New functions,
21584         to turn a module name into a cache variable prefix, and to
21585         look up and cache module metainformation.
21586         (func_get_description, func_get_status)
21587         (func_get_notice, func_get_applicability, func_get_filelist)
21588         (func_get_dependencies, func_get_autoconf_early_snippet)
21589         (func_get_autoconf_snippet, func_get_automake_snippet)
21590         (func_get_include_directive, func_get_link_directive)
21591         (func_get_license, func_get_maintainer): Use
21592         func_cache_lookup_module.
21593
21594 2010-02-07  Bruno Haible  <bruno@clisp.org>
21595
21596         fnctl: Fix missing dependency.
21597         * modules/fcntl (Depends-on): Add getdtablesize.
21598         Reported by John W. Eaton <jwe@gnu.org>.
21599
21600 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21601
21602         Argp: fix recognition of short alias options.
21603
21604         * lib/argp-parse.c (convert_options): Fix improper use of
21605         `|' between character values.
21606         * tests/test-argp.c (group1_option): New alias option
21607         --read (-r).
21608         (group1_parser): Special handling for 'r'.
21609         (test15): New test case.
21610         (test_fun): Add test15.
21611         * tests/test-argp-2.sh: Update expected --help and --usage
21612         outputs.
21613
21614 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21615
21616         * tests/test-argp.c: Fix indentation.
21617
21618 2010-02-04  Eric Blake  <ebb9@byu.net>
21619
21620         gettimeofday: expose type of second argument
21621         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21622         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21623         * tests/test-gettimeofday.c: Use it to silence warning.
21624         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21625         the issue.
21626
21627 2010-02-03  Jim Meyering  <meyering@redhat.com>
21628
21629         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21630         * lib/regcomp.c (TYPE_SIGNED): Define.
21631         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21632
21633         regcomp.c: avoid a new -Wshadow warning
21634         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21635
21636 2010-02-01  Jim Meyering  <meyering@redhat.com>
21637
21638         removing useless parentheses in cpp #define directives
21639         For motivation, see commit c0221df4, "define STREQ(a,b)
21640         consistently, removing useless parentheses"
21641         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21642         * lib/mountlist.c (MNT_IGNORE): Likewise.
21643         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21644
21645 2010-02-01  Eric Blake  <ebb9@byu.net>
21646
21647         sys_time: use link-warning
21648         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21649         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21650         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21651         * modules/sys_time (Depends-on): Add warn-on-use.
21652         (Makefile.am): Always build replacement.
21653         (configure.ac): Update substitutions.
21654         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21655         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21656         bother with SYS_TIME_H.
21657         * modules/gettimeofday (configure.ac): Declare indicator.
21658         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21659         in use.
21660
21661         closein-tests: silence compiler warning
21662         * tests/test-closein.c (main): Ignore fread result.
21663         * modules/closein-tests (Depends-on): Add ignore-value.
21664
21665         tests: silence warning about system return
21666         * tests/test-areadlink-with-size.c (main): Ignore system result.
21667         * tests/test-areadlink.c (main): Likewise.
21668         * tests/test-areadlinkat-with-size.c (main): Likewise.
21669         * tests/test-areadlinkat.c (main): Likewise.
21670         * tests/test-canonicalize-lgpl.c (main): Likewise.
21671         * tests/test-canonicalize.c (main): Likewise.
21672         * tests/test-chown.c (main): Likewise.
21673         * tests/test-fchownat.c (main): Likewise.
21674         * tests/test-fdutimensat.c (main): Likewise.
21675         * tests/test-fstatat.c (main): Likewise.
21676         * tests/test-futimens.c (main): Likewise.
21677         * tests/test-lchown.c (main): Likewise.
21678         * tests/test-link.c (main): Likewise.
21679         * tests/test-linkat.c (main): Likewise.
21680         * tests/test-lstat.c (main): Likewise.
21681         * tests/test-mkdir.c (main): Likewise.
21682         * tests/test-mkdirat.c (main): Likewise.
21683         * tests/test-mkfifo.c (main): Likewise.
21684         * tests/test-mkfifoat.c (main): Likewise.
21685         * tests/test-mknod.c (main): Likewise.
21686         * tests/test-readlink.c (main): Likewise.
21687         * tests/test-remove.c (main): Likewise.
21688         * tests/test-rename.c (main): Likewise.
21689         * tests/test-renameat.c (main): Likewise.
21690         * tests/test-rmdir.c (main): Likewise.
21691         * tests/test-symlink.c (main): Likewise.
21692         * tests/test-symlinkat.c (main): Likewise.
21693         * tests/test-unlink.c (main): Likewise.
21694         * tests/test-unlinkat.c (main): Likewise.
21695         * tests/test-utimens.c (main): Likewise.
21696         * tests/test-utimensat.c (main): Likewise.
21697         * modules/areadlink-tests (Depends-on): Add ignore-value.
21698         * modules/areadlink-with-size-tests (Depends-on): Likewise.
21699         * modules/areadlinkat-tests (Depends-on): Likewise.
21700         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
21701         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21702         * modules/canonicalize-tests (Depends-on): Likewise.
21703         * modules/chown-tests (Depends-on): Likewise.
21704         * modules/fdutimensat-tests (Depends-on): Likewise.
21705         * modules/futimens-tests (Depends-on): Likewise.
21706         * modules/lchown-tests (Depends-on): Likewise.
21707         * modules/link-tests (Depends-on): Likewise.
21708         * modules/linkat-tests (Depends-on): Likewise.
21709         * modules/lstat-tests (Depends-on): Likewise.
21710         * modules/mkdir-tests (Depends-on): Likewise.
21711         * modules/mkfifo-tests (Depends-on): Likewise.
21712         * modules/mkfifoat-tests (Depends-on): Likewise.
21713         * modules/mknod-tests (Depends-on): Likewise.
21714         * modules/openat-tests (Depends-on): Likewise.
21715         * modules/readlink-tests (Depends-on): Likewise.
21716         * modules/remove-tests (Depends-on): Likewise.
21717         * modules/rename-tests (Depends-on): Likewise.
21718         * modules/renameat-tests (Depends-on): Likewise.
21719         * modules/rmdir-tests (Depends-on): Likewise.
21720         * modules/symlink-tests (Depends-on): Likewise.
21721         * modules/symlinkat-tests (Depends-on): Likewise.
21722         * modules/unlink-tests (Depends-on): Likewise.
21723         * modules/utimens-tests (Depends-on): Likewise.
21724         * modules/utimensat-tests (Depends-on): Likewise.
21725
21726 2010-01-31  Bruno Haible  <bruno@clisp.org>
21727
21728         Perform the same test for many <math.h> functions.
21729         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
21730         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
21731         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
21732         of gl_MATHFUNC.
21733         * modules/acos (configure.ac): Likewise.
21734         * modules/asin (configure.ac): Likewise.
21735         * modules/atan (configure.ac): Likewise.
21736         * modules/atan2 (configure.ac): Likewise.
21737         * modules/cbrt (configure.ac): Likewise.
21738         * modules/copysign (configure.ac): Likewise.
21739         * modules/cos (configure.ac): Likewise.
21740         * modules/cosh (configure.ac): Likewise.
21741         * modules/erf (configure.ac): Likewise.
21742         * modules/erfc (configure.ac): Likewise.
21743         * modules/exp (configure.ac): Likewise.
21744         * modules/fmod (configure.ac): Likewise.
21745         * modules/hypot (configure.ac): Likewise.
21746         * modules/j0 (configure.ac): Likewise.
21747         * modules/j1 (configure.ac): Likewise.
21748         * modules/jn (configure.ac): Likewise.
21749         * modules/lgamma (configure.ac): Likewise.
21750         * modules/log (configure.ac): Likewise.
21751         * modules/log10 (configure.ac): Likewise.
21752         * modules/log1p (configure.ac): Likewise.
21753         * modules/pow (configure.ac): Likewise.
21754         * modules/remainder (configure.ac): Likewise.
21755         * modules/sin (configure.ac): Likewise.
21756         * modules/sinh (configure.ac): Likewise.
21757         * modules/tan (configure.ac): Likewise.
21758         * modules/tanh (configure.ac): Likewise.
21759         * modules/y0 (configure.ac): Likewise.
21760         * modules/y1 (configure.ac): Likewise.
21761         * modules/yn (configure.ac): Likewise.
21762         Suggested by Paolo Bonzini.
21763
21764 2010-01-31  Bruno Haible  <bruno@clisp.org>
21765
21766         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
21767
21768 2010-01-31  Bruno Haible  <bruno@clisp.org>
21769
21770         Work around getdelim() bug on FreeBSD 8.0.
21771         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
21772         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
21773         not work.
21774         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
21775         is 1.
21776         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
21777         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
21778         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
21779         a non-zero size.
21780         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
21781
21782 2010-01-31  Bruno Haible  <bruno@clisp.org>
21783
21784         Work around getline() bug on FreeBSD 8.0.
21785         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
21786         and a non-zero size.
21787         * tests/test-getline.c (main): Likewise.
21788         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
21789         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
21790
21791 2010-01-28  Eric Blake  <ebb9@byu.net>
21792
21793         regex: fix build failure
21794         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
21795         platforms.
21796
21797 2010-01-28  Jim Meyering  <meyering@redhat.com>
21798
21799         regex: do not ignore memory allocation failure
21800         * lib/regex_internal.c (create_cd_newstate): Detect
21801         re_node_set_init_copy failure.   Extracted from glibc commit
21802         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21803
21804         regex: sync more white-space changes from libc
21805         * lib/regex_internal.c: White-space only changes.
21806         * lib/regexec.c: Likewise.
21807
21808         regex: add many uses of __attribute_warn_unused_result__
21809         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
21810         * lib/regexec.c: Likewise.
21811         Extracted from a messy glibc commit.
21812
21813         regcomp.c: spelling and merge-artifact from glibc
21814         * lib/regcomp.c: Merge remainder of glibc's
21815         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21816
21817         regcomp.c: sync white-space changes from glibc
21818         * lib/regcomp.c: Merge to accommodate white space
21819         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21820
21821         regcomp.c: do not ignore internal return values
21822         * lib/regcomp.c: Do not ignore internal return values.
21823         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
21824         but without its white-space changes and spelling fixes.
21825
21826         regex_internal.h: define __attribute_warn_unused_result__
21827         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
21828
21829         maint: add a syntax-check rule to check for vulnerable Makefile.in
21830         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
21831
21832 2010-01-27  Jim Meyering  <meyering@redhat.com>
21833
21834         ncftpput-ftp: clean up spaces
21835         * build-aux/ncftpput-ftp: Make Copyright line consistent.
21836         Remove trailing blanks.
21837
21838 2010-01-27  Simon Josefsson  <simon@josefsson.org>
21839
21840         * build-aux/git-version-gen: Fix copyright statement.
21841         * build-aux/gnupload: Likewise.
21842         * tests/test-arcfour.c: Likewise.
21843         * tests/test-arctwo.c: Likewise.
21844         * tests/test-count-one-bits.c: Likewise.
21845         * tests/test-crc.c: Likewise.
21846         * tests/test-des.c: Likewise.
21847         * tests/test-gc-arcfour.c: Likewise.
21848         * tests/test-gc-arctwo.c: Likewise.
21849         * tests/test-gc-des.c: Likewise.
21850         * tests/test-gc-hmac-md5.c: Likewise.
21851         * tests/test-gc-hmac-sha1.c: Likewise.
21852         * tests/test-gc-md2.c: Likewise.
21853         * tests/test-gc-md4.c: Likewise.
21854         * tests/test-gc-md5.c: Likewise.
21855         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21856         * tests/test-gc-rijndael.c: Likewise.
21857         * tests/test-gc-sha1.c: Likewise.
21858         * tests/test-gc.c: Likewise.
21859         * tests/test-gethostname.c: Likewise.
21860         * tests/test-gettimeofday.c: Likewise.
21861         * tests/test-hash.c: Likewise.
21862         * tests/test-hmac-md5.c: Likewise.
21863         * tests/test-hmac-sha1.c: Likewise.
21864         * tests/test-md2.c: Likewise.
21865         * tests/test-md4.c: Likewise.
21866         * tests/test-md5.c: Likewise.
21867         * tests/test-memchr.c: Likewise.
21868         * tests/test-memchr2.c: Likewise.
21869         * tests/test-memcmp.c: Likewise.
21870         * tests/test-memmem.c: Likewise.
21871         * tests/test-memrchr.c: Likewise.
21872         * tests/test-rawmemchr.c: Likewise.
21873         * tests/test-read-file.c: Likewise.
21874         * tests/test-rijndael.c: Likewise.
21875         * tests/test-sockets.c: Likewise.
21876         * tests/test-strchrnul.c: Likewise.
21877         * tests/test-strstr.c: Likewise.
21878         * tests/test-strtod.c: Likewise.
21879         * build-aux/ncftpput-ftp: Likewise.
21880
21881 2010-01-26  Eric Blake  <ebb9@byu.net>
21882
21883         ignore-value: update recommended header name
21884         * modules/ignore-value (Include): Only use <> for headers that
21885         exist in glibc.
21886
21887 2010-01-26  Jim Meyering  <meyering@redhat.com>
21888
21889         test-userspec.c: avoid compiler warnings
21890         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
21891         and "initialization discards qualifiers..." warnings.
21892         Put the first "uid" in its own scope, and make char* members "const".
21893
21894 2010-01-25  Bruno Haible  <bruno@clisp.org>
21895
21896         gnulib-tool: Make warning diagnostics consistent.
21897         * gnulib-tool (func_warning): New function.
21898         Use it everywhere where gnulib-tool produces output to stderr and it is
21899         not a fatal error.
21900
21901 2010-01-25  Bruno Haible  <bruno@clisp.org>
21902
21903         Fix test dependencies.
21904         * modules/xstrtol-tests (Depends-on): Add inttypes.
21905         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
21906
21907 2010-01-25 Pádraig Brady <P@draigBrady.com>
21908
21909         syntax-check: detect incorrect boolean macro values in config.h
21910         * modules/maintainer-makefile (configure.ac): Parameterize the location
21911         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
21912         The logic is from Eric Blake and the location indicated by Jim Meyering.
21913         Note the more natural CONFIG_HEADER name is prohibited by automake
21914         for backwards compatibility reasons.
21915         * top/maint.mk (sc_Wundef_boolean): New rule.
21916
21917 2010-01-25  Jim Meyering  <meyering@redhat.com>
21918
21919         bootstrap: detect MacOS 10.6's shasum, too
21920         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
21921         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
21922
21923 2010-01-23  Jim Meyering  <meyering@redhat.com>
21924
21925         xstrtoll: new module
21926         * modules/xstrtoll: New file.
21927         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
21928         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
21929         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
21930         ./configure fails if you use this module and lack "long long".
21931         * modules/xstrtoll-tests: New module.
21932         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
21933         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
21934         new init.sh-based test framework.
21935
21936 2010-01-24  Bruno Haible  <bruno@clisp.org>
21937
21938         Tests for module 'yn'.
21939         * modules/yn-tests: New file.
21940         * tests/test-yn.c: New file.
21941
21942         Tests for module 'y1'.
21943         * modules/y1-tests: New file.
21944         * tests/test-y1.c: New file.
21945
21946         Tests for module 'y0'.
21947         * modules/y0-tests: New file.
21948         * tests/test-y0.c: New file.
21949
21950         Tests for module 'tanh'.
21951         * modules/tanh-tests: New file.
21952         * tests/test-tanh.c: New file.
21953
21954         Tests for module 'tan'.
21955         * modules/tan-tests: New file.
21956         * tests/test-tan.c: New file.
21957
21958         Tests for module 'sqrt'.
21959         * modules/sqrt-tests: New file.
21960         * tests/test-sqrt.c: New file.
21961
21962         Tests for module 'sinh'.
21963         * modules/sinh-tests: New file.
21964         * tests/test-sinh.c: New file.
21965
21966         Tests for module 'sin'.
21967         * modules/sin-tests: New file.
21968         * tests/test-sin.c: New file.
21969
21970         Tests for module 'rint'.
21971         * modules/rint-tests: New file.
21972         * tests/test-rint.c: New file.
21973
21974         Tests for module 'remainder'.
21975         * modules/remainder-tests: New file.
21976         * tests/test-remainder.c: New file.
21977
21978         Tests for module 'pow'.
21979         * modules/pow-tests: New file.
21980         * tests/test-pow.c: New file.
21981
21982         Tests for module 'nextafter'.
21983         * modules/nextafter-tests: New file.
21984         * tests/test-nextafter.c: New file.
21985
21986         Tests for module 'modf'.
21987         * modules/modf-tests: New file.
21988         * tests/test-modf.c: New file.
21989
21990         Tests for module 'logb'.
21991         * modules/logb-tests: New file.
21992         * tests/test-logb.c: New file.
21993
21994         Tests for module 'log1p'.
21995         * modules/log1p-tests: New file.
21996         * tests/test-log1p.c: New file.
21997
21998         Tests for module 'log10'.
21999         * modules/log10-tests: New file.
22000         * tests/test-log10.c: New file.
22001
22002         Tests for module 'log'.
22003         * modules/log-tests: New file.
22004         * tests/test-log.c: New file.
22005
22006         Tests for module 'lgamma'.
22007         * modules/lgamma-tests: New file.
22008         * tests/test-lgamma.c: New file.
22009
22010         Tests for module 'ldexp'.
22011         * modules/ldexp-tests: New file.
22012         * tests/test-ldexp.c: New file.
22013
22014         Tests for module 'jn'.
22015         * modules/jn-tests: New file.
22016         * tests/test-jn.c: New file.
22017
22018         Tests for module 'j1'.
22019         * modules/j1-tests: New file.
22020         * tests/test-j1.c: New file.
22021
22022         Tests for module 'j0'.
22023         * modules/j0-tests: New file.
22024         * tests/test-j0.c: New file.
22025
22026         Tests for module 'hypot'.
22027         * modules/hypot-tests: New file.
22028         * tests/test-hypot.c: New file.
22029
22030         Tests for module 'fmod'.
22031         * modules/fmod-tests: New file.
22032         * tests/test-fmod.c: New file.
22033
22034         Tests for module 'fabs'.
22035         * modules/fabs-tests: New file.
22036         * tests/test-fabs.c: New file.
22037
22038         Tests for module 'exp'.
22039         * modules/exp-tests: New file.
22040         * tests/test-exp.c: New file.
22041
22042         Tests for module 'erfc'.
22043         * modules/erfc-tests: New file.
22044         * tests/test-erfc.c: New file.
22045
22046         Tests for module 'erf'.
22047         * modules/erf-tests: New file.
22048         * tests/test-erf.c: New file.
22049
22050         Tests for module 'cosh'.
22051         * modules/cosh-tests: New file.
22052         * tests/test-cosh.c: New file.
22053
22054         Tests for module 'cos'.
22055         * modules/cos-tests: New file.
22056         * tests/test-cos.c: New file.
22057
22058         Tests for module 'copysign'.
22059         * modules/copysign-tests: New file.
22060         * tests/test-copysign.c: New file.
22061
22062         Tests for module 'cbrt'.
22063         * modules/cbrt-tests: New file.
22064         * tests/test-cbrt.c: New file.
22065
22066         Tests for module 'atan2'.
22067         * modules/atan2-tests: New file.
22068         * tests/test-atan2.c: New file.
22069
22070         Tests for module 'atan'.
22071         * modules/atan-tests: New file.
22072         * tests/test-atan.c: New file.
22073
22074         Tests for module 'asin'.
22075         * modules/asin-tests: New file.
22076         * tests/test-asin.c: New file.
22077
22078         Tests for module 'acos'.
22079         * modules/acos-tests: New file.
22080         * tests/test-acos.c: New file.
22081
22082 2010-01-24  Bruno Haible  <bruno@clisp.org>
22083
22084         Fix tests for common <math.h> functions.
22085         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
22086         code snippet that references the function pointer, rather than merely
22087         calling the function. Substitute the FUNC_LIBM variable.
22088         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
22089         * modules/acos (configure.ac): Likewise.
22090         * modules/asin (configure.ac): Likewise.
22091         * modules/atan (configure.ac): Likewise.
22092         * modules/atan2 (configure.ac): Likewise.
22093         * modules/cbrt (configure.ac): Likewise.
22094         * modules/copysign (configure.ac): Likewise.
22095         * modules/cos (configure.ac): Likewise.
22096         * modules/cosh (configure.ac): Likewise.
22097         * modules/erf (configure.ac): Likewise.
22098         * modules/erfc (configure.ac): Likewise.
22099         * modules/exp (configure.ac): Likewise.
22100         * modules/fabs (configure.ac): Likewise.
22101         * modules/fmod (configure.ac): Likewise.
22102         * modules/hypot (configure.ac): Likewise.
22103         * modules/j0 (configure.ac): Likewise.
22104         * modules/j1 (configure.ac): Likewise.
22105         * modules/jn (configure.ac): Likewise.
22106         * modules/ldexp (configure.ac): Likewise.
22107         * modules/lgamma (configure.ac): Likewise.
22108         * modules/log (configure.ac): Likewise.
22109         * modules/log10 (configure.ac): Likewise.
22110         * modules/log1p (configure.ac): Likewise.
22111         * modules/logb (configure.ac): Likewise.
22112         * modules/modf (configure.ac): Likewise.
22113         * modules/nextafter (configure.ac): Likewise.
22114         * modules/pow (configure.ac): Likewise.
22115         * modules/remainder (configure.ac): Likewise.
22116         * modules/rint (configure.ac): Likewise.
22117         * modules/sin (configure.ac): Likewise.
22118         * modules/sinh (configure.ac): Likewise.
22119         * modules/tan (configure.ac): Likewise.
22120         * modules/tanh (configure.ac): Likewise.
22121         * modules/y0 (configure.ac): Likewise.
22122         * modules/y1 (configure.ac): Likewise.
22123         * modules/yn (configure.ac): Likewise.
22124
22125 2010-01-24  Bruno Haible  <bruno@clisp.org>
22126
22127         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
22128         * tests/test-acosl.c (x): New variable.
22129         (main): Store argument in x and fetch it from x.
22130         * tests/test-asinl.c (x): New variable.
22131         (main): Store argument in x and fetch it from x.
22132         * tests/test-atanl.c (x): New variable.
22133         (main): Store argument in x and fetch it from x.
22134         * tests/test-cosl.c (x): New variable.
22135         (main): Store argument in x and fetch it from x.
22136         * tests/test-expl.c (x): New variable.
22137         (main): Store argument in x and fetch it from x.
22138         * tests/test-logl.c (x): New variable.
22139         (main): Store argument in x and fetch it from x.
22140         * tests/test-sinl.c (x): New variable.
22141         (main): Store argument in x and fetch it from x.
22142         * tests/test-sqrtl.c (x): New variable.
22143         (main): Store argument in x and fetch it from x.
22144         * tests/test-tanl.c (x): New variable.
22145         (main): Store argument in x and fetch it from x.
22146
22147 2010-01-24  Bruno Haible  <bruno@clisp.org>
22148
22149         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
22150         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
22151         assignments to the initial TESTS_ENVIRONMENT.
22152         * doc/gnulib.texi (Unit test modules): Document it.
22153         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
22154         TESTS_ENVIRONMENT.
22155         * modules/btowc-tests (Makefile.am): Likewise.
22156         * modules/c-stack-tests (Makefile.am): Likewise.
22157         * modules/c-strcase-tests (Makefile.am): Likewise.
22158         * modules/copy-file-tests (Makefile.am): Likewise.
22159         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
22160         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
22161         * modules/mbrtowc-tests (Makefile.am): Likewise.
22162         * modules/mbscasecmp-tests (Makefile.am): Likewise.
22163         * modules/mbscasestr-tests (Makefile.am): Likewise.
22164         * modules/mbschr-tests (Makefile.am): Likewise.
22165         * modules/mbscspn-tests (Makefile.am): Likewise.
22166         * modules/mbsinit-tests (Makefile.am): Likewise.
22167         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22168         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
22169         * modules/mbspbrk-tests (Makefile.am): Likewise.
22170         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22171         * modules/mbsrchr-tests (Makefile.am): Likewise.
22172         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
22173         * modules/mbsspn-tests (Makefile.am): Likewise.
22174         * modules/mbsstr-tests (Makefile.am): Likewise.
22175         * modules/nl_langinfo-tests (Makefile.am): Likewise.
22176         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
22177         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22178         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22179         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22180         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22181         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
22182         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22183         * modules/wcrtomb-tests (Makefile.am): Likewise.
22184         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
22185         * modules/wcsrtombs-tests (Makefile.am): Likewise.
22186         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
22187         assignments from TESTS_ENVIRONMENT.
22188         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
22189         augmentation.
22190         * modules/argp-version-etc-tests (Makefile.am): Likewise.
22191         * modules/atexit-tests (Makefile.am): Likewise.
22192         * modules/binary-io-tests (Makefile.am): Likewise.
22193         * modules/closein-tests (Makefile.am): Likewise.
22194         * modules/dprintf-posix-tests (Makefile.am): Likewise.
22195         * modules/exclude-tests (Makefile.am): Likewise.
22196         * modules/fflush-tests (Makefile.am): Likewise.
22197         * modules/fpending-tests (Makefile.am): Likewise.
22198         * modules/fprintf-posix-tests (Makefile.am): Likewise.
22199         * modules/freadahead-tests (Makefile.am): Likewise.
22200         * modules/freadptr-tests (Makefile.am): Likewise.
22201         * modules/freadseek-tests (Makefile.am): Likewise.
22202         * modules/fseek-tests (Makefile.am): Likewise.
22203         * modules/fseeko-tests (Makefile.am): Likewise.
22204         * modules/ftell-tests (Makefile.am): Likewise.
22205         * modules/ftello-tests (Makefile.am): Likewise.
22206         * modules/idpriv-drop-tests (Makefile.am): Likewise.
22207         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
22208         * modules/lseek-tests (Makefile.am): Likewise.
22209         * modules/parse-duration-tests (Makefile.am): Likewise.
22210         * modules/perror-tests (Makefile.am): Likewise.
22211         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
22212         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
22213         * modules/pipe-tests (Makefile.am): Likewise.
22214         * modules/pread-tests (Makefile.am): Likewise.
22215         * modules/printf-posix-tests (Makefile.am): Likewise.
22216         * modules/select-tests (Makefile.am): Likewise.
22217         * modules/sigpipe-tests (Makefile.am): Likewise.
22218         * modules/tsearch-tests (Makefile.am): Likewise.
22219         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
22220         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
22221         * modules/uniname/uniname-tests (Makefile.am): Likewise.
22222         * modules/uniwidth/width-tests (Makefile.am): Likewise.
22223         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
22224         * modules/version-etc-tests (Makefile.am): Likewise.
22225         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22226         * modules/vprintf-posix-tests (Makefile.am): Likewise.
22227         * modules/xalloc-die-tests (Makefile.am): Likewise.
22228         * modules/xprintf-posix-tests (Makefile.am): Likewise.
22229         * modules/xstrtoimax-tests (Makefile.am): Likewise.
22230         * modules/xstrtol-tests (Makefile.am): Likewise.
22231         * modules/xstrtoumax-tests (Makefile.am): Likewise.
22232         * modules/yesno-tests (Makefile.am): Likewise.
22233         Suggested by Jim Meyering.
22234
22235 2010-01-24  Bruno Haible  <bruno@clisp.org>
22236
22237         More documentation.
22238         * doc/gnulib.texi (Writing modules): New chapter.
22239         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
22240         the new chapter.
22241
22242 2010-01-24  Jim Meyering  <meyering@redhat.com>
22243
22244         maint.mk: do not prepend "./" after filtering
22245         * top/maint.mk (_prepend_srcdir_prefix): New variable
22246         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
22247         "./" when $(srcdir) is ".".
22248
22249         define STREQ(a,b) consistently, removing useless parentheses
22250         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
22251         since the only risk is that "a" or "b" contains an unparenthesized
22252         comma, but if either did that, STREQ would have 3 or more arguments.
22253         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
22254         * lib/fts.c (STREQ): Remove unnecessary parentheses.
22255         * lib/hash-triple.c (STREQ): Likewise.
22256         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
22257         * lib/getugroups.c (STREQ): Likewise.
22258
22259 2010-01-23  Jim Meyering  <meyering@redhat.com>
22260
22261         maint.mk: fix syntax-check in a non-srcdir build directory
22262         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
22263         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
22264
22265 2010-01-22  Jim Meyering  <meyering@redhat.com>
22266
22267         userspec: add unit tests
22268         * tests/test-userspec.c: New file.
22269         * modules/userspec-tests: Likewise.
22270
22271 2010-01-21  Jim Meyering  <meyering@redhat.com>
22272
22273         maint.mk: handle source file names containing "." robustly
22274         * top/maint.mk (_dot_escaped_srcdir): Define.
22275         (VC_LIST): Use it in LHS of sed substitution.
22276
22277 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
22278
22279         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
22280         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
22281         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
22282         from a non-srcdir build.
22283
22284 2010-01-20  Eric Blake  <ebb9@byu.net>
22285
22286         warn-on-use: use instead of link-warning
22287         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
22288         * modules/unistd (Depends-on, Makefile.am): Likewise.
22289         * modules/arpa_inet (Depends-on): Replace link-warning with
22290         warn-on-use.
22291         (Makefile.am): Update rules accordingly.
22292         * modules/ctype (Depends-on, Makefile.am): Likewise.
22293         * modules/dirent (Depends-on, Makefile.am): Likewise.
22294         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
22295         * modules/inttypes (Depends-on, Makefile.am): Likewise.
22296         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22297         * modules/locale (Depends-on, Makefile.am): Likewise.
22298         * modules/math (Depends-on, Makefile.am): Likewise.
22299         * modules/search (Depends-on, Makefile.am): Likewise.
22300         * modules/signal (Depends-on, Makefile.am): Likewise.
22301         * modules/spawn (Depends-on, Makefile.am): Likewise.
22302         * modules/stdlib (Depends-on, Makefile.am): Likewise.
22303         * modules/string (Depends-on, Makefile.am): Likewise.
22304         * modules/strings (Depends-on, Makefile.am): Likewise.
22305         * modules/sys_file (Depends-on, Makefile.am): Likewise.
22306         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
22307         * modules/sys_select (Depends-on, Makefile.am): Likewise.
22308         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22309         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22310         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22311         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22312         * modules/wchar (Depends-on, Makefile.am): Likewise.
22313         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22314         should be poisoned.
22315         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22316         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22317         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22318         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22319         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22320         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22321         * m4/math_h.m4 (gl_MATH_H): Likewise.
22322         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22323         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22324         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22325         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22326         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22327         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22328         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22329         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22330         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22331         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22332         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22333         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22334         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22335         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22336         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22337         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22338         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22339         GL_LINK_WARNING.
22340         * lib/ctype.in.h: Likewise.
22341         * lib/dirent.in.h: Likewise.
22342         * lib/fcntl.in.h: Likewise.
22343         * lib/inttypes.in.h: Likewise.
22344         * lib/langinfo.in.h: Likewise.
22345         * lib/locale.in.h: Likewise.
22346         * lib/math.in.h: Likewise.
22347         * lib/search.in.h: Likewise.
22348         * lib/signal.in.h: Likewise.
22349         * lib/spawn.in.h: Likewise.
22350         * lib/stdio.in.h: Likewise.
22351         * lib/stdlib.in.h: Likewise.
22352         * lib/string.in.h: Likewise.
22353         * lib/strings.in.h: Likewise.
22354         * lib/sys_file.in.h: Likewise.
22355         * lib/sys_ioctl.in.h: Likewise.
22356         * lib/sys_select.in.h: Likewise.
22357         * lib/sys_socket.in.h: Likewise.
22358         * lib/sys_stat.in.h: Likewise.
22359         * lib/sys_times.in.h: Likewise.
22360         * lib/sys_utsname.in.h: Likewise.
22361         * lib/unistd.in.h: Likewise.
22362         * lib/wchar.in.h: Likewise.
22363
22364 2010-01-20  Bruno Haible  <bruno@clisp.org>
22365
22366         Avoid duplicate -lm.
22367         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22368         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22369         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22370         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22371         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22372         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22373         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22374         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22375         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22376         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22377         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22378         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22379         Reported by Paolo Bonzini.
22380
22381 2010-01-19  Bruno Haible  <bruno@clisp.org>
22382
22383         langinfo, nl_langinfo: Relicense under LGPLv2+.
22384         * modules/langinfo (License): Change to LGPLv2+.
22385         * modules/nl_langinfo (License): Likewise.
22386         Patch by David Lutterkort <lutter@redhat.com>.
22387
22388 2010-01-19  Bruno Haible  <bruno@clisp.org>
22389
22390         Avoid compilation error with cc on OSF/1 5.1.
22391         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22392         statement, not before.
22393         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22394
22395 2010-01-18  Bruno Haible  <bruno@clisp.org>
22396
22397         Avoid a link error due to the __printf__ symbol.
22398         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22399         and 2.6.x.
22400         (__format__, __printf__): Remove definitions.
22401         * lib/argp-fmtstream.h: Likewise.
22402         * lib/argp.h: Likewise.
22403         * lib/error.h: Likewise.
22404         * lib/vasnprintf.h: Likewise.
22405         * lib/xprintf.h: Likewise.
22406         * lib/xvasprintf.h: Likewise.
22407         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22408
22409 2010-01-18  Bruno Haible  <bruno@clisp.org>
22410
22411         Tests for module 'tanl'.
22412         * modules/tanl-tests: New file.
22413         * tests/test-tanl.c: New file.
22414
22415         Tests for module 'sqrtl'.
22416         * modules/sqrtl-tests: New file.
22417         * tests/test-sqrtl.c: New file.
22418
22419         Tests for module 'sinl'.
22420         * modules/sinl-tests: New file.
22421         * tests/test-sinl.c: New file.
22422
22423         Tests for module 'logl'.
22424         * modules/logl-tests: New file.
22425         * tests/test-logl.c: New file.
22426
22427         Tests for module 'expl'.
22428         * modules/expl-tests: New file.
22429         * tests/test-expl.c: New file.
22430
22431         Tests for module 'cosl'.
22432         * modules/cosl-tests: New file.
22433         * tests/test-cosl.c: New file.
22434
22435         Tests for module 'atanl'.
22436         * modules/atanl-tests: New file.
22437         * tests/test-atanl.c: New file.
22438
22439         Tests for module 'asinl'.
22440         * modules/asinl-tests: New file.
22441         * tests/test-asinl.c: New file.
22442
22443         Tests for module 'acosl'.
22444         * modules/acosl-tests: New file.
22445         * tests/test-acosl.c: New file.
22446
22447         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22448         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22449         tanl): Use the standard gnulib idiom.
22450         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22451         * lib/sinl.c: Likewise.
22452         * lib/tanl.c: Don't include trigl.c.
22453         (kernel_tanl): Make static.
22454         * lib/sincosl.c: Include trigl.h first.
22455         * lib/trigl.c: Likewise.
22456         * m4/acosl.m4: New file.
22457         * m4/asinl.m4: New file.
22458         * m4/atanl.m4: New file.
22459         * m4/cosl.m4: New file.
22460         * m4/expl.m4: New file.
22461         * m4/logl.m4: New file.
22462         * m4/sinl.m4: New file.
22463         * m4/sqrtl.m4: New file.
22464         * m4/tanl.m4: New file.
22465         * m4/mathl.m4: Remove file.
22466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22467         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22468         Don't initialize GNULIB_MATHL.
22469         * modules/acosl: New file.
22470         * modules/asinl: New file.
22471         * modules/atanl: New file.
22472         * modules/cosl: New file.
22473         * modules/expl: New file.
22474         * modules/logl: New file.
22475         * modules/sinl: New file.
22476         * modules/sqrtl: New file.
22477         * modules/tanl: New file.
22478         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22479         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22480         substitute GNULIB_MATHL.
22481         * modules/mathl: Rewritten.
22482         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22483         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22484         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22485         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22486         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22487         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22488         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22489         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22490         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22491
22492 2010-01-18  Bruno Haible  <bruno@clisp.org>
22493
22494         sqrt: Make gl_FUNC_SQRT requirable.
22495         * m4/sqrt.m4: New file.
22496         * modules/sqrt (Files): Add it.
22497         (configure.ac): Invoke gl_FUNC_SQRT.
22498
22499 2010-01-18  Bruno Haible  <bruno@clisp.org>
22500
22501         New modules for common <math.h> functions.
22502         * m4/mathfunc.m4: New file.
22503         * modules/acos: New file.
22504         * modules/asin: New file.
22505         * modules/atan: New file.
22506         * modules/atan2: New file.
22507         * modules/cbrt: New file.
22508         * modules/copysign: New file.
22509         * modules/cos: New file.
22510         * modules/cosh: New file.
22511         * modules/erf: New file.
22512         * modules/erfc: New file.
22513         * modules/exp: New file.
22514         * modules/fabs: New file.
22515         * modules/fmod: New file.
22516         * modules/hypot: New file.
22517         * modules/j0: New file.
22518         * modules/j1: New file.
22519         * modules/jn: New file.
22520         * modules/ldexp: New file.
22521         * modules/lgamma: New file.
22522         * modules/log: New file.
22523         * modules/log10: New file.
22524         * modules/log1p: New file.
22525         * modules/logb: New file.
22526         * modules/modf: New file.
22527         * modules/nextafter: New file.
22528         * modules/pow: New file.
22529         * modules/remainder: New file.
22530         * modules/rint: New file.
22531         * modules/sin: New file.
22532         * modules/sinh: New file.
22533         * modules/sqrt: New file.
22534         * modules/tan: New file.
22535         * modules/tanh: New file.
22536         * modules/y0: New file.
22537         * modules/y1: New file.
22538         * modules/yn: New file.
22539         * doc/posix-functions/acos.texi: Mention the 'acos' module.
22540         * doc/posix-functions/asin.texi: Mention the 'asin' module.
22541         * doc/posix-functions/atan.texi: Mention the 'atan' module.
22542         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
22543         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
22544         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
22545         * doc/posix-functions/cos.texi: Mention the 'cos' module.
22546         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
22547         * doc/posix-functions/erf.texi: Mention the 'erf' module.
22548         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
22549         * doc/posix-functions/exp.texi: Mention the 'exp' module.
22550         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
22551         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
22552         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
22553         * doc/posix-functions/j0.texi: Mention the 'j0' module.
22554         * doc/posix-functions/j1.texi: Mention the 'j1' module.
22555         * doc/posix-functions/jn.texi: Mention the 'jn' module.
22556         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
22557         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
22558         * doc/posix-functions/log.texi: Mention the 'log' module.
22559         * doc/posix-functions/log10.texi: Mention the 'log10' module.
22560         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
22561         * doc/posix-functions/logb.texi: Mention the 'logb' module.
22562         * doc/posix-functions/modf.texi: Mention the 'modf' module.
22563         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
22564         * doc/posix-functions/pow.texi: Mention the 'pow' module.
22565         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
22566         * doc/posix-functions/rint.texi: Mention the 'rint' module.
22567         * doc/posix-functions/sin.texi: Mention the 'sin' module.
22568         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
22569         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
22570         * doc/posix-functions/tan.texi: Mention the 'tan' module.
22571         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
22572         * doc/posix-functions/y0.texi: Mention the 'y0' module.
22573         * doc/posix-functions/y1.texi: Mention the 'y1' module.
22574         * doc/posix-functions/yn.texi: Mention the 'yn' module.
22575
22576 2010-01-18  Jim Meyering  <meyering@redhat.com>
22577
22578         ignore-value: relax license to LGPLv2+
22579         * modules/ignore-value (License): Relax to LGPLv2+.
22580
22581         getdate: don't leak when TZ contains two or more '"'s
22582         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
22583         double quote in TZ after the first one.
22584
22585         readtokens: do not leak internal token_lengths buffer
22586         * lib/readtokens.c (readtokens): Free the local, lengths,
22587         when the supplied "token_lengths" parameter is NULL.
22588
22589 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22590
22591         Fix a couple of missing LIBTHREAD link failures on AIX.
22592         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
22593         $(LIBTHREAD).
22594         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
22595
22596         Link test-poll against INET_PTON_LIB.
22597         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
22598         for inet_pton on Solaris 10.
22599
22600 2010-01-17  Bruno Haible  <bruno@clisp.org>
22601
22602         unistdio/*-sprintf: Fix typo in module description.
22603         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
22604         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
22605         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
22606         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
22607         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
22608         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
22609         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
22610         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22611
22612 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22613
22614         gnulib-tool: fix filelist for AIX, HP-UX ksh.
22615         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
22616         variables in shell case patterns, for AIX and HP-UX ksh.
22617
22618         Split large sed scripts, for HP-UX sed.
22619         * modules/stdio: Split sed scripts around 50 sed commands,
22620         to avoid HP-UX limit of 99 commands, in the near future.
22621         * modules/string: Likewise.
22622         * modules/unistd: Likewise.
22623
22624         gnulib-tool: avoid writing in the current directory.
22625         * gnulib-tool (func_emit_lib_Makefile_am)
22626         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22627         not in the current directory, so concurrent gnulib-tool
22628         instances do not interfere.
22629
22630 2010-01-16  Jim Meyering  <meyering@redhat.com>
22631
22632         doc: update users.txt
22633         * users.txt: Add grep.
22634         (diffutils, gzip): Update URLs.
22635
22636 2010-01-12  Bruno Haible  <bruno@clisp.org>
22637
22638         posix_spawn: Avoid test failure on Cygwin.
22639         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22640         characters.
22641         Reported by Simon Josefsson.
22642
22643 2010-01-12  Bruno Haible  <bruno@clisp.org>
22644
22645         * tests/test-cond.c (main): When skipping the test, show the reason.
22646
22647 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22648
22649         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22650
22651 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22652
22653         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22654         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22655
22656 2010-01-12  Eric Blake  <ebb9@byu.net>
22657
22658         build: guarantee AS_VAR_IF
22659         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22660         (gl_AS_VAR_IF): Move...
22661         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22662         Reported by Simon Josefsson.
22663
22664 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22665
22666         * lib/stdio.in.h: Fix typo.
22667
22668 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22669
22670         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22671         libgpg-error.
22672
22673 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22674
22675         * tests/test-xalloc-die.sh: Use $EXEEXT.
22676
22677 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22678             Bruno Haible  <bruno@clisp.org>
22679
22680         getlogin, getlogin_r: Avoid test failure.
22681         * tests/test-getlogin.c: Include <stdio.h>.
22682         (main): Skip the test when the function fails because stdin is not a
22683         tty.
22684         * tests/test-getlogin_r.c: Include <stdio.h>.
22685         (main): Skip the test when the function fails because stdin is not a
22686         tty.
22687
22688 2010-01-11  Eric Blake  <ebb9@byu.net>
22689
22690         tests: avoid more large file warnings
22691         * tests/test-fflush.c: Avoid warning about ftell use.
22692         * tests/test-fseek.c: Avoid warning about fseek use.
22693
22694 2010-01-10  Bruno Haible  <bruno@clisp.org>
22695
22696         nproc: Work better on Linux when /proc and /sys are not mounted.
22697         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
22698         as lower bound when, on glibc/Linux systems,
22699         sysconf (_SC_NPROCESSORS_CONF) returns 1.
22700         Suggested by Pádraig Brady <P@draigbrady.com>.
22701         Reported by Dmitry V. Levin <ldv@altlinux.org>.
22702
22703         nproc: Refactor.
22704         * lib/nproc.c (num_processors_via_affinity_mask): New function,
22705         extracted from num_processors.
22706         (num_processors): Call it.
22707
22708 2010-01-11  Jim Meyering  <meyering@redhat.com>
22709
22710         utimecmp: avoid new warning from upcoming gcc-4.5.0
22711         * lib/utimecmp.c (BILLION): Define using #define rather than an
22712         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
22713
22714 2010-01-11  Eric Blake  <ebb9@byu.net>
22715
22716         math: add portability warnings for classification macros
22717         * modules/math (Depends-on): Add warn-on-use.
22718         (Makefile.am): Provide new substitutions.
22719         * m4/math_h.m4 (gl_MATH_H): Require inline.
22720         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
22721         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
22722         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
22723         implement warnings.
22724
22725         unistd: warn on use of environ without module
22726         * modules/unistd (Depends-on): Add warn-on-use.
22727         (Makefile.am): Provide new substitutions.
22728         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
22729         * lib/unistd.in.h (environ): Wrap with a warning helper function.
22730
22731         stdio: warn on suspicious uses
22732         * modules/stdio (Depends-on): Add warn-on-use.
22733         (Makefile.am): Provide new substitutions.
22734         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
22735         fseeko.
22736         * lib/stdio.in.h (gets): Always warn on use.
22737         (fseek, ftell): Adjust when warnings are issued, and honor
22738         _GL_NO_LARGE_FILES as a way to silence the warning.
22739         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
22740         any warning about large file offsets.
22741         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
22742         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
22743         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
22744         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
22745         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
22746         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
22747         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
22748         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
22749
22750         warn-on-use: new module
22751         * modules/warn-on-use: New file.
22752         * build-aux/warn-on-use.h: Likewise.
22753         * m4/warn-on-use.m4: Likewise.
22754         * MODULES.html.sh (Support for building): Mention it.
22755
22756 2010-01-10  Bruno Haible  <bruno@clisp.org>
22757
22758         Tests for module 'unistr/u32-strdup'.
22759         * modules/unistr/u32-strdup-tests: New file.
22760         * tests/unistr/test-u32-strdup.c: New file.
22761
22762         Tests for module 'unistr/u16-strdup'.
22763         * modules/unistr/u16-strdup-tests: New file.
22764         * tests/unistr/test-u16-strdup.c: New file.
22765
22766         Tests for module 'unistr/u8-strdup'.
22767         * modules/unistr/u8-strdup-tests: New file.
22768         * tests/unistr/test-u8-strdup.c: New file.
22769         * tests/unistr/test-strdup.h: New file.
22770
22771         Tests for module 'unistr/u32-strncmp'.
22772         * modules/unistr/u32-strncmp-tests: New file.
22773         * tests/unistr/test-u32-strncmp.c: New file.
22774
22775         Tests for module 'unistr/u16-strncmp'.
22776         * modules/unistr/u16-strncmp-tests: New file.
22777         * tests/unistr/test-u16-strncmp.c: New file.
22778
22779         Tests for module 'unistr/u8-strncmp'.
22780         * modules/unistr/u8-strncmp-tests: New file.
22781         * tests/unistr/test-u8-strncmp.c: New file.
22782         * tests/unistr/test-strncmp.h: New file.
22783
22784         Tests for module 'unistr/u32-strcoll'.
22785         * modules/unistr/u32-strcoll-tests: New file.
22786         * tests/unistr/test-u32-strcoll.c: New file.
22787
22788         Tests for module 'unistr/u16-strcoll'.
22789         * modules/unistr/u16-strcoll-tests: New file.
22790         * tests/unistr/test-u16-strcoll.c: New file.
22791
22792         Tests for module 'unistr/u8-strcoll'.
22793         * modules/unistr/u8-strcoll-tests: New file.
22794         * tests/unistr/test-u8-strcoll.c: New file.
22795
22796         Tests for module 'unistr/u32-strcmp'.
22797         * modules/unistr/u32-strcmp-tests: New file.
22798         * tests/unistr/test-u32-strcmp.c: New file.
22799         * tests/unistr/test-u32-strcmp.h: New file.
22800
22801         Tests for module 'unistr/u16-strcmp'.
22802         * modules/unistr/u16-strcmp-tests: New file.
22803         * tests/unistr/test-u16-strcmp.c: New file.
22804         * tests/unistr/test-u16-strcmp.h: New file.
22805
22806         Tests for module 'unistr/u8-strcmp'.
22807         * modules/unistr/u8-strcmp-tests: New file.
22808         * tests/unistr/test-u8-strcmp.c: New file.
22809         * tests/unistr/test-u8-strcmp.h: New file.
22810         * tests/unistr/test-strcmp.h: New file.
22811
22812         Tests for module 'unistr/u32-strncat'.
22813         * modules/unistr/u32-strncat-tests: New file.
22814         * tests/unistr/test-u32-strncat.c: New file.
22815
22816         Tests for module 'unistr/u16-strncat'.
22817         * modules/unistr/u16-strncat-tests: New file.
22818         * tests/unistr/test-u16-strncat.c: New file.
22819
22820         Tests for module 'unistr/u8-strncat'.
22821         * modules/unistr/u8-strncat-tests: New file.
22822         * tests/unistr/test-u8-strncat.c: New file.
22823         * tests/unistr/test-strncat.h: New file.
22824
22825         Tests for module 'unistr/u32-strcat'.
22826         * modules/unistr/u32-strcat-tests: New file.
22827         * tests/unistr/test-u32-strcat.c: New file.
22828
22829         Tests for module 'unistr/u16-strcat'.
22830         * modules/unistr/u16-strcat-tests: New file.
22831         * tests/unistr/test-u16-strcat.c: New file.
22832
22833         Tests for module 'unistr/u8-strcat'.
22834         * modules/unistr/u8-strcat-tests: New file.
22835         * tests/unistr/test-u8-strcat.c: New file.
22836         * tests/unistr/test-strcat.h: New file.
22837
22838         Tests for module 'unistr/u32-stpncpy'.
22839         * modules/unistr/u32-stpncpy-tests: New file.
22840         * tests/unistr/test-u32-stpncpy.c: New file.
22841
22842         Tests for module 'unistr/u16-stpncpy'.
22843         * modules/unistr/u16-stpncpy-tests: New file.
22844         * tests/unistr/test-u16-stpncpy.c: New file.
22845
22846         Tests for module 'unistr/u8-stpncpy'.
22847         * modules/unistr/u8-stpncpy-tests: New file.
22848         * tests/unistr/test-u8-stpncpy.c: New file.
22849         * tests/unistr/test-stpncpy.h: New file.
22850
22851         Tests for module 'unistr/u32-strncpy'.
22852         * modules/unistr/u32-strncpy-tests: New file.
22853         * tests/unistr/test-u32-strncpy.c: New file.
22854
22855         Tests for module 'unistr/u16-strncpy'.
22856         * modules/unistr/u16-strncpy-tests: New file.
22857         * tests/unistr/test-u16-strncpy.c: New file.
22858
22859         Tests for module 'unistr/u8-strncpy'.
22860         * modules/unistr/u8-strncpy-tests: New file.
22861         * tests/unistr/test-u8-strncpy.c: New file.
22862         * tests/unistr/test-strncpy.h: New file.
22863
22864         Tests for module 'unistr/u32-stpcpy'.
22865         * modules/unistr/u32-stpcpy-tests: New file.
22866         * tests/unistr/test-u32-stpcpy.c: New file.
22867
22868         Tests for module 'unistr/u16-stpcpy'.
22869         * modules/unistr/u16-stpcpy-tests: New file.
22870         * tests/unistr/test-u16-stpcpy.c: New file.
22871
22872         Tests for module 'unistr/u8-stpcpy'.
22873         * modules/unistr/u8-stpcpy-tests: New file.
22874         * tests/unistr/test-u8-stpcpy.c: New file.
22875         * tests/unistr/test-stpcpy.h: New file.
22876
22877         Tests for module 'unistr/u32-strcpy'.
22878         * modules/unistr/u32-strcpy-tests: New file.
22879         * tests/unistr/test-u32-strcpy.c: New file.
22880
22881         Tests for module 'unistr/u16-strcpy'.
22882         * modules/unistr/u16-strcpy-tests: New file.
22883         * tests/unistr/test-u16-strcpy.c: New file.
22884
22885         Tests for module 'unistr/u8-strcpy'.
22886         * modules/unistr/u8-strcpy-tests: New file.
22887         * tests/unistr/test-u8-strcpy.c: New file.
22888         * tests/unistr/test-strcpy.h: New file.
22889
22890         Tests for module 'unistr/u32-strnlen'.
22891         * modules/unistr/u32-strnlen-tests: New file.
22892         * tests/unistr/test-u32-strnlen.c: New file.
22893
22894         Tests for module 'unistr/u16-strnlen'.
22895         * modules/unistr/u16-strnlen-tests: New file.
22896         * tests/unistr/test-u16-strnlen.c: New file.
22897
22898         Tests for module 'unistr/u8-strnlen'.
22899         * modules/unistr/u8-strnlen-tests: New file.
22900         * tests/unistr/test-u8-strnlen.c: New file.
22901         * tests/unistr/test-strnlen.h: New file.
22902
22903         Tests for module 'unistr/u32-strlen'.
22904         * modules/unistr/u32-strlen-tests: New file.
22905         * tests/unistr/test-u32-strlen.c: New file.
22906
22907         Tests for module 'unistr/u16-strlen'.
22908         * modules/unistr/u16-strlen-tests: New file.
22909         * tests/unistr/test-u16-strlen.c: New file.
22910
22911         Tests for module 'unistr/u8-strlen'.
22912         * modules/unistr/u8-strlen-tests: New file.
22913         * tests/unistr/test-u8-strlen.c: New file.
22914
22915         Tests for module 'unistr/u32-prev'.
22916         * modules/unistr/u32-prev-tests: New file.
22917         * tests/unistr/test-u32-prev.c: New file.
22918
22919         Tests for module 'unistr/u16-prev'.
22920         * modules/unistr/u16-prev-tests: New file.
22921         * tests/unistr/test-u16-prev.c: New file.
22922
22923         Tests for module 'unistr/u8-prev'.
22924         * modules/unistr/u8-prev-tests: New file.
22925         * tests/unistr/test-u8-prev.c: New file.
22926
22927         Tests for module 'unistr/u32-next'.
22928         * modules/unistr/u32-next-tests: New file.
22929         * tests/unistr/test-u32-next.c: New file.
22930
22931         Tests for module 'unistr/u16-next'.
22932         * modules/unistr/u16-next-tests: New file.
22933         * tests/unistr/test-u16-next.c: New file.
22934
22935         Tests for module 'unistr/u8-next'.
22936         * modules/unistr/u8-next-tests: New file.
22937         * tests/unistr/test-u8-next.c: New file.
22938
22939         Tests for module 'unistr/u32-strmbtouc'.
22940         * modules/unistr/u32-strmbtouc-tests: New file.
22941         * tests/unistr/test-u32-strmbtouc.c: New file.
22942
22943         Tests for module 'unistr/u16-strmbtouc'.
22944         * modules/unistr/u16-strmbtouc-tests: New file.
22945         * tests/unistr/test-u16-strmbtouc.c: New file.
22946
22947         Tests for module 'unistr/u8-strmbtouc'.
22948         * modules/unistr/u8-strmbtouc-tests: New file.
22949         * tests/unistr/test-u8-strmbtouc.c: New file.
22950
22951         Tests for module 'unistr/u32-strmblen'.
22952         * modules/unistr/u32-strmblen-tests: New file.
22953         * tests/unistr/test-u32-strmblen.c: New file.
22954
22955         Tests for module 'unistr/u16-strmblen'.
22956         * modules/unistr/u16-strmblen-tests: New file.
22957         * tests/unistr/test-u16-strmblen.c: New file.
22958
22959         Tests for module 'unistr/u8-strmblen'.
22960         * modules/unistr/u8-strmblen-tests: New file.
22961         * tests/unistr/test-u8-strmblen.c: New file.
22962
22963         Tests for module 'unistr/u32-cpy-alloc'.
22964         * modules/unistr/u32-cpy-alloc-tests: New file.
22965         * tests/unistr/test-u32-cpy-alloc.c: New file.
22966
22967         Tests for module 'unistr/u16-cpy-alloc'.
22968         * modules/unistr/u16-cpy-alloc-tests: New file.
22969         * tests/unistr/test-u16-cpy-alloc.c: New file.
22970
22971         Tests for module 'unistr/u8-cpy-alloc'.
22972         * modules/unistr/u8-cpy-alloc-tests: New file.
22973         * tests/unistr/test-u8-cpy-alloc.c: New file.
22974         * tests/unistr/test-cpy-alloc.h: New file.
22975
22976         Tests for module 'unistr/u32-mbsnlen'.
22977         * modules/unistr/u32-mbsnlen-tests: New file.
22978         * tests/unistr/test-u32-mbsnlen.c: New file.
22979
22980         Tests for module 'unistr/u16-mbsnlen'.
22981         * modules/unistr/u16-mbsnlen-tests: New file.
22982         * tests/unistr/test-u16-mbsnlen.c: New file.
22983
22984         Tests for module 'unistr/u8-mbsnlen'.
22985         * modules/unistr/u8-mbsnlen-tests: New file.
22986         * tests/unistr/test-u8-mbsnlen.c: New file.
22987
22988         Tests for module 'unistr/u32-chr'.
22989         * modules/unistr/u32-chr-tests: New file.
22990         * tests/unistr/test-u32-chr.c: New file.
22991
22992         Tests for module 'unistr/u16-chr'.
22993         * modules/unistr/u16-chr-tests: New file.
22994         * tests/unistr/test-u16-chr.c: New file.
22995
22996         Tests for module 'unistr/u8-chr'.
22997         * modules/unistr/u8-chr-tests: New file.
22998         * tests/unistr/test-u8-chr.c: New file.
22999         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
23000
23001         Tests for module 'unistr/u32-cmp2'.
23002         * modules/unistr/u32-cmp2-tests: New file.
23003         * tests/unistr/test-u32-cmp2.c: New file.
23004
23005         Tests for module 'unistr/u16-cmp2'.
23006         * modules/unistr/u16-cmp2-tests: New file.
23007         * tests/unistr/test-u16-cmp2.c: New file.
23008
23009         Tests for module 'unistr/u8-cmp2'.
23010         * modules/unistr/u8-cmp2-tests: New file.
23011         * tests/unistr/test-u8-cmp2.c: New file.
23012         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
23013
23014         Tests for module 'unistr/u32-cmp'.
23015         * modules/unistr/u32-cmp-tests: New file.
23016         * tests/unistr/test-u32-cmp.c: New file.
23017
23018         Tests for module 'unistr/u16-cmp'.
23019         * modules/unistr/u16-cmp-tests: New file.
23020         * tests/unistr/test-u16-cmp.c: New file.
23021
23022         Tests for module 'unistr/u8-cmp'.
23023         * modules/unistr/u8-cmp-tests: New file.
23024         * tests/unistr/test-u8-cmp.c: New file.
23025         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
23026
23027         Tests for module 'unistr/u32-set'.
23028         * modules/unistr/u32-set-tests: New file.
23029         * tests/unistr/test-u32-set.c: New file.
23030
23031         Tests for module 'unistr/u16-set'.
23032         * modules/unistr/u16-set-tests: New file.
23033         * tests/unistr/test-u16-set.c: New file.
23034
23035         Tests for module 'unistr/u8-set'.
23036         * modules/unistr/u8-set-tests: New file.
23037         * tests/unistr/test-u8-set.c: New file.
23038         * tests/unistr/test-set.h: New file.
23039
23040         Tests for module 'unistr/u32-move'.
23041         * modules/unistr/u32-move-tests: New file.
23042         * tests/unistr/test-u32-move.c: New file.
23043
23044         Tests for module 'unistr/u16-move'.
23045         * modules/unistr/u16-move-tests: New file.
23046         * tests/unistr/test-u16-move.c: New file.
23047
23048         Tests for module 'unistr/u8-move'.
23049         * modules/unistr/u8-move-tests: New file.
23050         * tests/unistr/test-u8-move.c: New file.
23051         * tests/unistr/test-move.h: New file.
23052
23053         Tests for module 'unistr/u32-cpy'.
23054         * modules/unistr/u32-cpy-tests: New file.
23055         * tests/unistr/test-u32-cpy.c: New file.
23056
23057         Tests for module 'unistr/u16-cpy'.
23058         * modules/unistr/u16-cpy-tests: New file.
23059         * tests/unistr/test-u16-cpy.c: New file.
23060
23061         Tests for module 'unistr/u8-cpy'.
23062         * modules/unistr/u8-cpy-tests: New file.
23063         * tests/unistr/test-u8-cpy.c: New file.
23064         * tests/unistr/test-cpy.h: New file.
23065
23066 2010-01-09  Bruno Haible  <bruno@clisp.org>
23067
23068         Tests for module 'unistr/u32-uctomb'.
23069         * modules/unistr/u32-uctomb-tests: New file.
23070         * tests/unistr/test-u32-uctomb.c: New file.
23071
23072         Tests for module 'unistr/u16-uctomb'.
23073         * modules/unistr/u16-uctomb-tests: New file.
23074         * tests/unistr/test-u16-uctomb.c: New file.
23075
23076         Tests for module 'unistr/u8-uctomb'.
23077         * modules/unistr/u8-uctomb-tests: New file.
23078         * tests/unistr/test-u8-uctomb.c: New file.
23079
23080         Tests for module 'unistr/u32-mbtoucr'.
23081         * modules/unistr/u32-mbtoucr-tests: New file.
23082         * tests/unistr/test-u32-mbtoucr.c: New file.
23083
23084         Tests for module 'unistr/u16-mbtoucr'.
23085         * modules/unistr/u16-mbtoucr-tests: New file.
23086         * tests/unistr/test-u16-mbtoucr.c: New file.
23087
23088         Tests for module 'unistr/u8-mbtoucr'.
23089         * modules/unistr/u8-mbtoucr-tests: New file.
23090         * tests/unistr/test-u8-mbtoucr.c: New file.
23091
23092         Tests for module 'unistr/u32-mbtouc'.
23093         * modules/unistr/u32-mbtouc-tests: New file.
23094         * tests/unistr/test-u32-mbtouc.c: New file.
23095
23096         Tests for module 'unistr/u16-mbtouc'.
23097         * modules/unistr/u16-mbtouc-tests: New file.
23098         * tests/unistr/test-u16-mbtouc.c: New file.
23099
23100         Tests for module 'unistr/u8-mbtouc'.
23101         * modules/unistr/u8-mbtouc-tests: New file.
23102         * tests/unistr/test-u8-mbtouc.c: New file.
23103
23104         Tests for module 'unistr/u32-mbtouc-unsafe'.
23105         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
23106         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
23107         * tests/unistr/test-u32-mbtouc.h: New file.
23108
23109         Tests for module 'unistr/u16-mbtouc-unsafe'.
23110         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
23111         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
23112         * tests/unistr/test-u16-mbtouc.h: New file.
23113
23114         Tests for module 'unistr/u8-mbtouc-unsafe'.
23115         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
23116         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
23117         * tests/unistr/test-u8-mbtouc.h: New file.
23118
23119         Tests for module 'unistr/u32-mblen'.
23120         * modules/unistr/u32-mblen-tests: New file.
23121         * tests/unistr/test-u32-mblen.c: New file.
23122
23123         Tests for module 'unistr/u16-mblen'.
23124         * modules/unistr/u16-mblen-tests: New file.
23125         * tests/unistr/test-u16-mblen.c: New file.
23126
23127         Tests for module 'unistr/u8-mblen'.
23128         * modules/unistr/u8-mblen-tests: New file.
23129         * tests/unistr/test-u8-mblen.c: New file.
23130
23131         Tests for module 'unistr/u32-to-u16'.
23132         * modules/unistr/u32-to-u16-tests: New file.
23133         * tests/unistr/test-u32-to-u16.c: New file.
23134
23135         Tests for module 'unistr/u32-to-u8'.
23136         * modules/unistr/u32-to-u8-tests: New file.
23137         * tests/unistr/test-u32-to-u8.c: New file.
23138
23139         Tests for module 'unistr/u16-to-u32'.
23140         * modules/unistr/u16-to-u32-tests: New file.
23141         * tests/unistr/test-u16-to-u32.c: New file.
23142
23143         Tests for module 'unistr/u16-to-u8'.
23144         * modules/unistr/u16-to-u8-tests: New file.
23145         * tests/unistr/test-u16-to-u8.c: New file.
23146
23147         Tests for module 'unistr/u8-to-u32'.
23148         * modules/unistr/u8-to-u32-tests: New file.
23149         * tests/unistr/test-u8-to-u32.c: New file.
23150
23151         Tests for module 'unistr/u8-to-u16'.
23152         * modules/unistr/u8-to-u16-tests: New file.
23153         * tests/unistr/test-u8-to-u16.c: New file.
23154
23155         Tests for module 'unistr/u32-check'.
23156         * modules/unistr/u32-check-tests: New file.
23157         * tests/unistr/test-u32-check.c: New file.
23158
23159         Tests for module 'unistr/u16-check'.
23160         * modules/unistr/u16-check-tests: New file.
23161         * tests/unistr/test-u16-check.c: New file.
23162
23163         Tests for module 'unistr/u8-check'.
23164         * modules/unistr/u8-check-tests: New file.
23165         * tests/unistr/test-u8-check.c: New file.
23166
23167         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
23168         (category_equals): New function.
23169         (main): Add more tests.
23170         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
23171
23172         * tests/unictype/test-bidi_byname.c (main): Add more tests.
23173
23174 2010-01-10  Bruno Haible  <bruno@clisp.org>
23175
23176         unistr/u*-strcoll: Try harder to distinguish different strings.
23177         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
23178         compare s1 and s2 to see if they are different.
23179
23180 2010-01-10  Bruno Haible  <bruno@clisp.org>
23181
23182         unistr/u*-stpncpy: Fix the return value.
23183         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
23184         description of the return value consistent with stpncpy in glibc.
23185         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
23186         written non-NUL unit.
23187
23188 2010-01-10  Bruno Haible  <bruno@clisp.org>
23189
23190         unistr/u*-next: Add missing dependencies.
23191         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
23192         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
23193         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
23194
23195 2010-01-10  Bruno Haible  <bruno@clisp.org>
23196
23197         unistr/u8-mbsnlen: Fix return value for incomplete character.
23198         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
23199         u8_mblen.
23200         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
23201         Remove unistr/u8-mblen.
23202         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
23203         u16_mblen.
23204         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
23205         Remove unistr/u16-mblen.
23206
23207 2010-01-10  Bruno Haible  <bruno@clisp.org>
23208
23209         wchar: Fix compilation error when <wchar.h> is used from coreutils.
23210         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
23211         Reported by Brian Gough <bjg@gnu.org> and
23212         Chris Clayton <chris2553@googlemail.com> via
23213         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
23214
23215 2010-01-09  Bruno Haible  <bruno@clisp.org>
23216
23217         unistr/u16-to-u32: Reject invalid input.
23218         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
23219         u16_mbtouc.
23220         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
23221         Remove unistr/u16-mbtouc.
23222
23223         unistr/u16-to-u8: Reject invalid input.
23224         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
23225         u16_mbtouc.
23226         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
23227         Remove unistr/u16-mbtouc.
23228
23229         unistr/u8-to-u32: Reject invalid input.
23230         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
23231         u8_mbtouc.
23232         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
23233         Remove unistr/u8-mbtouc.
23234
23235         unistr/u8-to-u16: Reject invalid input.
23236         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
23237         u8_mbtouc.
23238         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
23239         Remove unistr/u8-mbtouc.
23240
23241 2010-01-09  Bruno Haible  <bruno@clisp.org>
23242
23243         Tests for module 'getlogin'.
23244         * modules/getlogin-tests: New file.
23245         * tests/test-getlogin.c: New file.
23246
23247         New module 'getlogin'.
23248         * lib/unistd.in.h (getlogin): New declaration.
23249         * lib/getlogin.c: New file.
23250         * m4/getlogin.m4: New file.
23251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
23252         HAVE_GETLOGIN.
23253         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
23254         HAVE_GETLOGIN.
23255         * modules/getlogin: New file.
23256         * doc/posix-functions/getlogin.texi: Mention the new module.
23257         Reported by John W. Eaton <jwe@gnu.org>.
23258
23259 2010-01-09  Bruno Haible  <bruno@clisp.org>
23260
23261         getlogin_r: Support for native Windows.
23262         * lib/getlogin_r.c: Include <windows.h>
23263         (getlogin_r): Implement for native Windows.
23264         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
23265         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
23266         via John W. Eaton <jwe@gnu.org>.
23267
23268 2010-01-09  Bruno Haible  <bruno@clisp.org>
23269
23270         getlogin_r: Small fixes.
23271         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
23272         succeeds.
23273         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
23274         before testing whether getlogin_r is declared. No need to set
23275         HAVE_DECL_GETLOGIN_R to 1.
23276         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
23277
23278 2010-01-09  Bruno Haible  <bruno@clisp.org>
23279
23280         * lib/unistd.in.h (getlogin_r): Add comment.
23281
23282 2010-01-09  Bruno Haible  <bruno@clisp.org>
23283
23284         Tests for module 'getlogin_r'.
23285         * modules/getlogin_r-tests: New file.
23286         * tests/test-getlogin_r.c: New file.
23287
23288 2010-01-09  Jim Meyering  <meyering@redhat.com>
23289
23290         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
23291         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
23292         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
23293
23294 2010-01-08  Simon Josefsson  <simon@josefsson.org>
23295
23296         * lib/dup2.c (rpl_dup2): Improve comment.
23297
23298 2010-01-08  Eric Blake  <ebb9@byu.net>
23299
23300         maint.mk: allow packages to add makefile @@ exceptions
23301         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
23302         (sc_makefile_check): Rename...
23303         (sc_makefile_at_at_check): ...to this, and use hook.
23304
23305         dup2: work around mingw bug
23306         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
23307         Reported by Simon Josefsson.
23308
23309 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23310
23311         glob: Fix C++ compilation.
23312         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23313         C++.
23314
23315 2010-01-07  Bruno Haible  <bruno@clisp.org>
23316
23317         Fix indentation of wctype.in.h, broken since 2007-01-06.
23318         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23319
23320 2010-01-07  Bruno Haible  <bruno@clisp.org>
23321
23322         mbslen: Avoid collision with system function.
23323         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23324         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23325         * m4/mbslen.m4: New file.
23326         * modules/mbslen (Files): Add it.
23327         (configure.ac): Invoke gl_MBSLEN.
23328         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23329         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23330         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23331         via Ian Beckwith <ianb@erislabs.net>.
23332
23333 2010-01-07  Bruno Haible  <bruno@clisp.org>
23334
23335         dirent: Document the last fix.
23336         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23337
23338 2010-01-07  Bruno Haible  <bruno@clisp.org>
23339
23340         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23341         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23342         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23343         va_list are defined.
23344         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23345         Reported by Eric Blake.
23346
23347 2010-01-07  Bruno Haible  <bruno@clisp.org>
23348
23349         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23350         * modules/xlist (Depends-on): Add 'list',
23351         * modules/xoset (Depends-on): Add 'oset'.
23352         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23353
23354 2010-01-07  Bruno Haible  <bruno@clisp.org>
23355
23356         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23357         * doc/posix-functions/strncasecmp.texi: Likewise.
23358
23359 2010-01-07  Bruno Haible  <bruno@clisp.org>
23360
23361         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23362
23363 2010-01-07  John W. Eaton  <jwe@octave.org>
23364
23365         wctype: allow C++ use
23366         * lib/wctype.in.h: Add extern "C" block for C++.
23367
23368 2010-01-06  Eric Blake  <ebb9@byu.net>
23369
23370         maint.mk: detect incorrect GFDL usage
23371         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23372
23373 2010-01-06  Jim Meyering  <meyering@redhat.com>
23374         and Eric Blake  <ebb9@byu.net>
23375
23376         maint.mk: ignore multi-line copyright in NEWS
23377         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23378
23379 2010-01-06  Eric Blake  <ebb9@byu.net>
23380
23381         select: add missing dependency
23382         * modules/select-tests (Depends-on): Move sockets dependency...
23383         * modules/select (Depends-on): ...here.
23384         Reported by Ian Beckwith.
23385
23386         doc: regenerate INSTALL
23387         * doc/INSTALL: Reflect recent autoconf update.
23388         * doc/INSTALL.ISO: Likewise.
23389         * doc/INSTALL.UTF-8: Likewise.
23390
23391         pread: fix compilation on glibc
23392         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23393         Reported by Ralf Wildenhues.
23394
23395         dirent: fix test failure
23396         * lib/dirent.in.h (includes): Guarantee ino_t.
23397         Reported by Ralf Wildenhues.
23398
23399 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23400
23401         linkat, renameat: avoid bad free
23402         * lib/at-func2.c (at_func2): Fix typo.
23403         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23404
23405 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23406
23407         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23408         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23409         to avoid failure of symlink test later.
23410
23411 2010-01-06  Eric Blake  <ebb9@byu.net>
23412
23413         stdio, unistd: guarantee ssize_t
23414         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23415         2008 are exposed when needed.
23416         * lib/stdio.in.h (includes): Likewise.
23417         Reported by Ralf Wildenhues.
23418
23419 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23420
23421         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23422         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23423         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23424
23425 2010-01-06  Jim Meyering  <meyering@redhat.com>
23426
23427         readtokens: this module *does* require xalloc.h
23428         It uses only functions that were omitted by the old syntax-check rule.
23429         * lib/readtokens.c: Include "xalloc.h" once again.
23430         * modules/readtokens (Depends-on): Add xalloc.
23431         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23432
23433 2010-01-05  Eric Blake  <ebb9@byu.net>
23434
23435         maint: support 'make announcement' from a VPATH build
23436         * top/maint.mk (announcement): Look for correct NEWS file.
23437
23438 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23439
23440         utimens (fdutimens): ignore a negative FD, per contract
23441         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23442         when we have a valid file descriptor.  Otherwise, using a brand
23443         new glibc (with just-patched futimens that now fails with EBADF)
23444         would cause this function to fail with ENOSYS.
23445         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23446         See also http://bugzilla.redhat.com/552320.
23447
23448 2010-01-05  Eric Blake  <ebb9@byu.net>
23449
23450         strcase: document what it provides
23451         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23452         gnulib module.
23453         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23454         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23455
23456 2010-01-05  Jim Meyering  <meyering@redhat.com>
23457
23458         maint: remove useless inclusions of "xalloc.h"
23459         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23460         * lib/readtokens.c: Likewise.
23461         * lib/same.c: Likewise.
23462         * modules/getloadavg (Depends-on): Remove xalloc.
23463         * modules/readtokens: Likewise.
23464         * modules/same: Likewise.
23465
23466         maint.mk: include 4 more function names in alloca.h-checking regexp
23467         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23468         regexp.  Before, we would give a false-positive (saying alloca.h
23469         is included unnecessarily) when the only uses involved omitted symbols.
23470
23471         xalloc.h: use consistent formatting
23472         * lib/xalloc.h: Move declarations to start in the first column.
23473
23474 2010-01-05  Eric Blake  <ebb9@byu.net>
23475
23476         mkdir: avoid xalloc
23477         * lib/mkdir.c (includes): Drop unused header.
23478         Reported by John W. Eaton.
23479
23480 2010-01-04  Jim Meyering  <meyering@redhat.com>
23481
23482         nl_langinfo: avoid configure-time syntax error
23483         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23484         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23485         the empty string.  Don't let that provoke a shell syntax error.
23486
23487         regcomp, regexec, fnmatch: avoid array bounds read error
23488         * lib/regcomp.c (build_equiv_class): From glibc:
23489         Use only the low 24 bits of a findidx return value as an index
23490         into the weights array.  Patch by Ulrich Drepper:
23491         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23492         * lib/regexec.c (check_node_accept_bytes): Likewise.
23493         * lib/fnmatch_loop.c (FCT): Likewise.
23494
23495         regcomp: skip collseq lookup when there are no rules
23496         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23497         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23498
23499         regcomp: recognize ill-formed { } expressions
23500         * lib/regcomp.c (parse_dup_op): From glibc:
23501         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23502
23503         regcomp: fix typo in comment
23504         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23505         s/satisfy/satisfies/.
23506
23507         regcomp: sync from glibc: remove dead store
23508         * lib/regcomp.c (duplicate_node_closure): Remove useless
23509         search_duplicated_node call and dead store.
23510
23511         regcomp: sync from glibc; always use nl_langinfo
23512         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23513         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23514         * modules/regex (Depends-on): Add nl_langinfo.
23515
23516 2010-01-04  Eric Blake  <ebb9@byu.net>
23517
23518         fdopendir: fix configure test
23519         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23520
23521 2010-01-01  Bruno Haible  <bruno@clisp.org>
23522
23523         wchar: Remove unused configure check.
23524         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23525
23526 2010-01-01  Eric Blake  <ebb9@byu.net>
23527
23528         headers: make check of system header explicit
23529         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
23530         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
23531         ourselves.
23532         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23533         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23534         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23535         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
23536         internals.
23537         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
23538         missing.
23539         Suggested by Bruno Haible.
23540
23541 2010-01-01  Jim Meyering  <meyering@redhat.com>
23542
23543         ChangeLog: tweak to eliminate unnecessary copyright line
23544         * ChangeLog: Remove a copyright line that was mistakenly updated
23545         by today's update-copyright run.  Reported by Eric Blake.
23546
23547         test-update-copyright: don't let envvar setting cause test failure
23548         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23549
23550 2010-01-01  Bruno Haible  <bruno@clisp.org>
23551
23552         localename: Avoid gcc warning.
23553         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
23554         function if it is not used.
23555
23556 2010-01-01  Jim Meyering  <meyering@redhat.com>
23557
23558         update nearly all FSF copyright year lists to include 2010
23559         Use the same procedure as for 2009, outlined in
23560         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
23561
23562         version-etc: set COPYRIGHT_YEAR to 2010
23563         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
23564
23565 2009-12-31  Eric Blake  <ebb9@byu.net>
23566
23567         doc: correct availability of cygwin 1.5.x getopt
23568         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
23569         variables.
23570         * doc/posix-functions/opterr.texi (opterr): Likewise.
23571         * doc/posix-functions/optind.texi (optind): Likewise.
23572         * doc/posix-functions/optopt.texi (optopt): Likewise.
23573         * doc/posix-functions/tzname.texi (tzname): Likewise.
23574
23575         openat: update maintainer
23576         * modules/openat (Maintainer): Add myself.
23577
23578         utimens: avoid shadowing warning
23579         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
23580         buffers into one, to avoid shadowing, as well as avoiding a
23581         redundant stat.
23582         Reported by Jim Meyering.
23583
23584         test-dup2: avoid compiler warning
23585         * tests/test-dup2.c (is_inheritable): Only define if used.
23586
23587 2010-01-01  Bruno Haible  <bruno@clisp.org>
23588
23589         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
23590         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
23591         defined, use wctomb instead of wcrtomb.
23592
23593 2010-01-01  Bruno Haible  <bruno@clisp.org>
23594
23595         iconv: Reject native Solaris iconv.
23596         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
23597         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
23598
23599 2009-12-31  Bruno Haible  <bruno@clisp.org>
23600
23601         * tests/test-signal.c (main): Remove test of 'SIG'.
23602
23603 2009-12-31  Bruno Haible  <bruno@clisp.org>
23604
23605         spawn: Fix incomplete fix.
23606         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23607         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23608         warnings for GNULIB_POSIXCHECK again.
23609         Reported by Eric Blake.
23610
23611 2009-12-31  Bruno Haible  <bruno@clisp.org>
23612
23613         Avoid namespace pollution on glibc systems.
23614         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23615         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
23616         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
23617         glibc systems.
23618
23619 2009-12-31  Bruno Haible  <bruno@clisp.org>
23620
23621         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23622         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23623         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23624         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23625         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23626         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23627         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23628
23629 2009-12-31  Bruno Haible  <bruno@clisp.org>
23630
23631         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23632         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23633         afterwards.
23634
23635 2009-12-31  Bruno Haible  <bruno@clisp.org>
23636
23637         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23638         SYS_UTSNAME_H.
23639
23640 2009-12-31  Bruno Haible  <bruno@clisp.org>
23641
23642         spawn: Fix misapplied patch.
23643         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23644         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23645         warnings for GNULIB_POSIXCHECK.
23646
23647 2009-12-31  Bruno Haible  <bruno@clisp.org>
23648
23649         times: Update after sys_times changed.
23650         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23651         * modules/times (Files): Add it.
23652         (configure.ac): Invoke gl_FUNC_TIMES.
23653
23654 2009-12-31  Bruno Haible  <bruno@clisp.org>
23655
23656         Use AC_C_INLINE where necessary.
23657         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23658         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23659         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23660         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23661         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23662         * m4/mbiter.m4 (gl_MBITER): Likewise.
23663         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23664         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23665         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23666         * modules/u64 (configure.ac): Likewise.
23667
23668 2009-12-31  Bruno Haible  <bruno@clisp.org>
23669
23670         Use AC_C_INLINE instead of module 'inline' where possible.
23671         * modules/inline (Description): Clarify purpose.
23672         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23673         * modules/count-one-bits (Depends-on): Remove inline.
23674         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23675         * modules/openat (Depends-on): Remove inline.
23676         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23677         instead of depending on module 'inline'.
23678         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23679         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23680         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23681         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23682         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23683         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23684         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23685         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23686         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23687         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23688         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23689         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23690         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23691         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
23692         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
23693         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
23694         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
23695         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
23696         Likewise.
23697         * modules/unictype/property-ascii-hex-digit (Depends-on,
23698         configure.ac): Likewise.
23699         * modules/unictype/property-bidi-arabic-digit (Depends-on,
23700         configure.ac): Likewise.
23701         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
23702         configure.ac): Likewise.
23703         * modules/unictype/property-bidi-block-separator (Depends-on,
23704         configure.ac): Likewise.
23705         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
23706         configure.ac): Likewise.
23707         * modules/unictype/property-bidi-common-separator (Depends-on,
23708         configure.ac): Likewise.
23709         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
23710         Likewise.
23711         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
23712         configure.ac): Likewise.
23713         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
23714         configure.ac): Likewise.
23715         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
23716         configure.ac): Likewise.
23717         * modules/unictype/property-bidi-european-digit (Depends-on,
23718         configure.ac): Likewise.
23719         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
23720         configure.ac): Likewise.
23721         * modules/unictype/property-bidi-left-to-right (Depends-on,
23722         configure.ac): Likewise.
23723         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
23724         configure.ac): Likewise.
23725         * modules/unictype/property-bidi-other-neutral (Depends-on,
23726         configure.ac): Likewise.
23727         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
23728         Likewise.
23729         * modules/unictype/property-bidi-segment-separator (Depends-on,
23730         configure.ac): Likewise.
23731         * modules/unictype/property-bidi-whitespace (Depends-on,
23732         configure.ac): Likewise.
23733         * modules/unictype/property-combining (Depends-on, configure.ac):
23734         Likewise.
23735         * modules/unictype/property-composite (Depends-on, configure.ac):
23736         Likewise.
23737         * modules/unictype/property-currency-symbol (Depends-on,
23738         configure.ac): Likewise.
23739         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
23740         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
23741         Likewise.
23742         * modules/unictype/property-default-ignorable-code-point (Depends-on,
23743         configure.ac): Likewise.
23744         * modules/unictype/property-deprecated (Depends-on, configure.ac):
23745         Likewise.
23746         * modules/unictype/property-diacritic (Depends-on, configure.ac):
23747         Likewise.
23748         * modules/unictype/property-extender (Depends-on, configure.ac):
23749         Likewise.
23750         * modules/unictype/property-format-control (Depends-on, configure.ac):
23751         Likewise.
23752         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
23753         Likewise.
23754         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
23755         Likewise.
23756         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
23757         Likewise.
23758         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
23759         Likewise.
23760         * modules/unictype/property-hyphen (Depends-on, configure.ac):
23761         Likewise.
23762         * modules/unictype/property-id-continue (Depends-on, configure.ac):
23763         Likewise.
23764         * modules/unictype/property-id-start (Depends-on, configure.ac):
23765         Likewise.
23766         * modules/unictype/property-ideographic (Depends-on, configure.ac):
23767         Likewise.
23768         * modules/unictype/property-ids-binary-operator (Depends-on,
23769         configure.ac): Likewise.
23770         * modules/unictype/property-ids-trinary-operator (Depends-on,
23771         configure.ac): Likewise.
23772         * modules/unictype/property-ignorable-control (Depends-on,
23773         configure.ac): Likewise.
23774         * modules/unictype/property-iso-control (Depends-on, configure.ac):
23775         Likewise.
23776         * modules/unictype/property-join-control (Depends-on, configure.ac):
23777         Likewise.
23778         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
23779         Likewise.
23780         * modules/unictype/property-line-separator (Depends-on, configure.ac):
23781         Likewise.
23782         * modules/unictype/property-logical-order-exception (Depends-on,
23783         configure.ac): Likewise.
23784         * modules/unictype/property-lowercase (Depends-on, configure.ac):
23785         Likewise.
23786         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
23787         * modules/unictype/property-non-break (Depends-on, configure.ac):
23788         Likewise.
23789         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
23790         Likewise.
23791         * modules/unictype/property-numeric (Depends-on, configure.ac):
23792         Likewise.
23793         * modules/unictype/property-other-alphabetic (Depends-on,
23794         configure.ac): Likewise.
23795         * modules/unictype/property-other-default-ignorable-code-point
23796         (Depends-on, configure.ac): Likewise.
23797         * modules/unictype/property-other-grapheme-extend (Depends-on,
23798         configure.ac): Likewise.
23799         * modules/unictype/property-other-id-continue (Depends-on,
23800         configure.ac): Likewise.
23801         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
23802         Likewise.
23803         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
23804         Likewise.
23805         * modules/unictype/property-other-math (Depends-on, configure.ac):
23806         Likewise.
23807         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
23808         Likewise.
23809         * modules/unictype/property-paired-punctuation (Depends-on,
23810         configure.ac): Likewise.
23811         * modules/unictype/property-paragraph-separator (Depends-on,
23812         configure.ac): Likewise.
23813         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
23814         Likewise.
23815         * modules/unictype/property-pattern-white-space (Depends-on,
23816         configure.ac): Likewise.
23817         * modules/unictype/property-private-use (Depends-on, configure.ac):
23818         Likewise.
23819         * modules/unictype/property-punctuation (Depends-on, configure.ac):
23820         Likewise.
23821         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
23822         Likewise.
23823         * modules/unictype/property-radical (Depends-on, configure.ac):
23824         Likewise.
23825         * modules/unictype/property-sentence-terminal (Depends-on,
23826         configure.ac): Likewise.
23827         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
23828         Likewise.
23829         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
23830         * modules/unictype/property-terminal-punctuation (Depends-on,
23831         configure.ac): Likewise.
23832         * modules/unictype/property-titlecase (Depends-on, configure.ac):
23833         Likewise.
23834         * modules/unictype/property-unassigned-code-value (Depends-on,
23835         configure.ac): Likewise.
23836         * modules/unictype/property-unified-ideograph (Depends-on,
23837         configure.ac): Likewise.
23838         * modules/unictype/property-uppercase (Depends-on, configure.ac):
23839         Likewise.
23840         * modules/unictype/property-variation-selector (Depends-on,
23841         configure.ac): Likewise.
23842         * modules/unictype/property-white-space (Depends-on, configure.ac):
23843         Likewise.
23844         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
23845         Likewise.
23846         * modules/unictype/property-xid-start (Depends-on, configure.ac):
23847         Likewise.
23848         * modules/unictype/property-zero-width (Depends-on, configure.ac):
23849         Likewise.
23850         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
23851         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
23852         Likewise.
23853
23854 2009-12-31  Bruno Haible  <bruno@clisp.org>
23855
23856         Remove unnecessary AC_C_INLINE invocation.
23857         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
23858         since 2009-08-21.
23859
23860 2009-12-31  Jim Meyering  <meyering@redhat.com>
23861
23862         maint.mk: don't require explicit gpg_key_ID in cfg.mk
23863         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
23864         With this change, we can all remove the gpg_key_ID = ... definition
23865         from our respective cfg.mk files.
23866
23867         maint.mk: create announcement template in ~/, not in /tmp
23868         * top/maint.mk (emit_upload_commands): Adjust.
23869         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
23870         Remove temporary file, .ci-msg.
23871
23872 2009-12-31  Eric Blake  <ebb9@byu.net>
23873
23874         link-warning: always build headers with link warnings
23875         * modules/arpa_inet (Makefile.am): Always build replacement
23876         header.
23877         * modules/ctype (Makefile.am): Likewise.
23878         * modules/dirent (Makefile.am): Likewise.
23879         * modules/inttypes (Makefile.am): Likewise.
23880         * modules/langinfo (Makefile.am): Likewise.
23881         * modules/locale (Makefile.am): Likewise.
23882         * modules/spawn (Makefile.am): Likewise.
23883         * modules/sys_file (Makefile.am): Likewise.
23884         * modules/sys_ioctl (Makefile.am): Likewise.
23885         * modules/sys_select (Makefile.am): Likewise.
23886         * modules/sys_socket (Makefile.am): Likewise.
23887         * modules/sys_times (Makefile.am): Likewise.
23888         * modules/sys_utsname (Makefile.am): Likewise.
23889         * modules/sys_wait (Makefile.am): Likewise.
23890         * modules/wchar (Makefile.am): Likewise.
23891         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
23892         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
23893         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
23894         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
23895         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
23896         Likewise.
23897         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23898         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23899         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
23900         Likewise.
23901         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
23902         Likewise.
23903         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23904         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
23905         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
23906         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23907         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23908         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23909         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23910         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
23911         (gl_WCHAR_H_DEFAULTS): Likewise.
23912
23913 2009-12-31  Eric Blake  <ebb9@byu.net>
23914
23915         signal, spawn: use link warnings
23916         * lib/signal.in.h (sigset_t): Make unconditional.
23917         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
23918         (sigpending, sigprocmask, sigaction): Add link warnings.
23919         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
23920         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
23921         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
23922         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
23923         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
23924         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
23925         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
23926         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
23927         (posix_spawn_file_actions_destroy)
23928         (posix_spawn_file_actions_addopen)
23929         (posix_spawn_file_actions_addclose)
23930         (posix_spawn_file_actions_adddup2): Likewise.
23931         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
23932         * tests/test-signal.c (main): Enhance test.
23933
23934         spawn: improve wrapper support
23935         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
23936         (gl_SPAWN_H_DEFAULTS): New defaults.
23937         * modules/spawn (Makefile.am): Substitute them.
23938         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
23939         Only declare if missing or broken.
23940
23941         sys_times, sys_utsname: use include_next
23942         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
23943         header.
23944         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
23945         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23946         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23947         * modules/sys_times (Depends-on): Add include_next.
23948         (Makefile.am): Substitute additional values.
23949         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23950         * lib/sys_times.in.h (includes): Include native header, if
23951         available.
23952         * lib/sys_utsname.in.h (includes): Likewise.
23953         * tests/test-sys_times.c (main): Enhance test.
23954
23955         fdutimensat: revert prior patch
23956         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
23957         utimens.h.
23958         Reported by Bruno Haible.
23959
23960 2009-12-30  Eric Blake  <ebb9@byu.net>
23961
23962         sys_wait: drop link-warning dependency
23963         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
23964         link-warning efforts.
23965         * lib/sys_wait.in.h: Likewise.
23966
23967         fdutimensat: remove bogus dependency
23968         * modules/fdutimensat (Depends-on): Drop inline.
23969
23970         unistd: fix typo
23971         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
23972
23973 2009-12-30  Bruno Haible  <bruno@clisp.org>
23974
23975         Fix compilation error with Solaris cc.
23976         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
23977         * lib/unicase/u16-is-invariant.c: Likewise.
23978         * lib/unicase/u32-is-invariant.c: Likewise.
23979         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23980
23981 2009-12-30  Bruno Haible  <bruno@clisp.org>
23982
23983         Fix test crash.
23984         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
23985         locales.
23986         Reported by Simon Josefsson <simon@josefsson.org>.
23987
23988 2009-12-30  Bruno Haible  <bruno@clisp.org>
23989
23990         Fix compilation error on most platforms.
23991         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
23992         Reported by Simon Josefsson <simon@josefsson.org>
23993         and Nelson H. F. Beebe <beebe@math.utah.edu>.
23994
23995 2009-12-30  Eric Blake  <ebb9@byu.net>
23996
23997         futimens, utimensat: work around ntfs-3g bug
23998         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
23999         a ctime bug is present, and expand workaround to cover ntfs-3g.
24000         * lib/utimens.c (fdutimens, lutimens): Likewise.
24001         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
24002         (validate_timespec): Adjust return value.
24003         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
24004         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24005         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
24006
24007 2009-12-29  Eric Blake  <ebb9@byu.net>
24008
24009         link-warning: make usage consistent
24010         * modules/ctype (Depends-on): Add link-warning.
24011         (Makefile.am): Update rules accordingly.
24012         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24013         * modules/locale (Depends-on, Makefile.am): Likewise.
24014         * modules/sys_file (Makefile.am): Likewise.
24015         * modules/getopt-posix (Makefile.am): Delete unused link warning
24016         efforts.
24017         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
24018         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
24019         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
24020         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
24021
24022         stdio: remove unused variables
24023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
24024         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
24025         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24026
24027         tests: test more substitute headers
24028         * modules/ctype-tests: New file.
24029         * modules/dirent-tests: Likewise.
24030         * modules/spawn-tests: Likewise.
24031         * modules/sys_file-tests: Likewise.
24032         * modules/sys_ioctl-tests: Likewise.
24033         * modules/sys_wait-tests: Likewise.
24034         * tests/test-ctype.c: Likewise.
24035         * tests/test-dirent.c: Likewise.
24036         * tests/test-spawn.c: Likewise.
24037         * tests/test-sys_file.c: Likewise.
24038         * tests/test-sys_ioctl.c: Likewise.
24039         * tests/test-sys_wait.c: Likewise.
24040         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
24041         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
24042         whether or not flock is in use.
24043
24044         tests: remove License section from module
24045         * modules/arpa_inet-tests: Remove unneeded section.
24046         * modules/byteswap-tests: Likewise.
24047         * modules/ceilf-tests: Likewise.
24048         * modules/ceill-tests: Likewise.
24049         * modules/crypto/des-tests: Likewise.
24050         * modules/crypto/gc-arcfour-tests: Likewise.
24051         * modules/crypto/gc-arctwo-tests: Likewise.
24052         * modules/crypto/gc-des-tests: Likewise.
24053         * modules/crypto/gc-hmac-md5-tests: Likewise.
24054         * modules/crypto/gc-hmac-sha1-tests: Likewise.
24055         * modules/crypto/gc-md2-tests: Likewise.
24056         * modules/crypto/gc-md4-tests: Likewise.
24057         * modules/crypto/gc-md5-tests: Likewise.
24058         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
24059         * modules/crypto/gc-rijndael-tests: Likewise.
24060         * modules/crypto/gc-sha1-tests: Likewise.
24061         * modules/crypto/gc-tests: Likewise.
24062         * modules/crypto/md2-tests: Likewise.
24063         * modules/crypto/md4-tests: Likewise.
24064         * modules/fcntl-h-tests: Likewise.
24065         * modules/floorf-tests: Likewise.
24066         * modules/floorl-tests: Likewise.
24067         * modules/frexp-nolibm-tests: Likewise.
24068         * modules/frexp-tests: Likewise.
24069         * modules/frexpl-nolibm-tests: Likewise.
24070         * modules/frexpl-tests: Likewise.
24071         * modules/getaddrinfo-tests: Likewise.
24072         * modules/inttypes-tests: Likewise.
24073         * modules/isfinite-tests: Likewise.
24074         * modules/isinf-tests: Likewise.
24075         * modules/ldexpl-tests: Likewise.
24076         * modules/locale-tests: Likewise.
24077         * modules/math-tests: Likewise.
24078         * modules/netdb-tests: Likewise.
24079         * modules/netinet_in-tests: Likewise.
24080         * modules/printf-frexp-tests: Likewise.
24081         * modules/printf-frexpl-tests: Likewise.
24082         * modules/priv-set-tests: Likewise.
24083         * modules/random_r-tests: Likewise.
24084         * modules/round-tests: Likewise.
24085         * modules/roundf-tests: Likewise.
24086         * modules/roundl-tests: Likewise.
24087         * modules/search-tests: Likewise.
24088         * modules/select-tests: Likewise.
24089         * modules/signal-tests: Likewise.
24090         * modules/stdbool-tests: Likewise.
24091         * modules/stddef-tests: Likewise.
24092         * modules/stdint-tests: Likewise.
24093         * modules/stdio-tests: Likewise.
24094         * modules/stdlib-tests: Likewise.
24095         * modules/string-tests: Likewise.
24096         * modules/strings-tests: Likewise.
24097         * modules/sys_select-tests: Likewise.
24098         * modules/sys_socket-tests: Likewise.
24099         * modules/sys_stat-tests: Likewise.
24100         * modules/sys_time-tests: Likewise.
24101         * modules/sys_utsname-tests: Likewise.
24102         * modules/sysexits-tests: Likewise.
24103         * modules/time-tests: Likewise.
24104         * modules/trunc-tests: Likewise.
24105         * modules/truncf-tests: Likewise.
24106         * modules/truncl-tests: Likewise.
24107         * modules/tsearch-tests: Likewise.
24108         * modules/unistd-tests: Likewise.
24109         * modules/wchar-tests: Likewise.
24110         * modules/wctype-tests: Likewise.
24111
24112         tests: fix license on several tests
24113         * tests/test-des.c: Update to GPLv3+.
24114         * tests/test-flock.c: Likewise.
24115         * tests/test-fsync.c: Likewise.
24116         * tests/test-futimens.h: Likewise.
24117         * tests/test-gc-arcfour.c: Likewise.
24118         * tests/test-gc-arctwo.c: Likewise.
24119         * tests/test-gc-des.c: Likewise.
24120         * tests/test-gc-hmac-md5.c: Likewise.
24121         * tests/test-gc-hmac-sha1.c: Likewise.
24122         * tests/test-gc-md2.c: Likewise.
24123         * tests/test-gc-md4.c: Likewise.
24124         * tests/test-gc-md5.c: Likewise.
24125         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24126         * tests/test-gc-rijndael.c: Likewise.
24127         * tests/test-gc-sha1.c: Likewise.
24128         * tests/test-gc.c: Likewise.
24129         * tests/test-getcwd.c: Likewise.
24130         * tests/test-link.c: Likewise.
24131         * tests/test-link.h: Likewise.
24132         * tests/test-lutimens.h: Likewise.
24133         * tests/test-md2.c: Likewise.
24134         * tests/test-md4.c: Likewise.
24135         * tests/test-mkdir.h: Likewise.
24136         * tests/test-rename.c: Likewise.
24137         * tests/test-rename.h: Likewise.
24138         * tests/test-safe-alloc.c: Likewise.
24139         * tests/test-utimens-common.h: Likewise.
24140         * tests/test-utimens.h: Likewise.
24141
24142         maint: sync license texts
24143         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
24144         * doc/gpl-3.0.texi: Revert copyright year update.
24145         * doc/lgpl-3.0.texi: Likewise.
24146
24147 2009-12-29  Jim Meyering  <meyering@redhat.com>
24148
24149         update nearly all FSF copyright year lists to include 2009
24150         The files named by the following are exempted:
24151             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
24152               test -f "$dst" && { echo "$dst"; continue; }
24153               test -d "$dst" || continue
24154               echo "$dst"/$(basename "$src")
24155             done > exempt
24156             git ls-files tests/unictype >> exempt
24157         In the remaining files, convert to all-interval notation if
24158         - there is already at least one year interval like 2000-2003
24159         - the file is maintained by me
24160         - the file is in lib/uni*/, where that style already prevails
24161         Otherwise, use update-copyright's default.
24162
24163 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24164         and Eric Blake  <ebb9@byu.net>
24165
24166         tests: don't require debug system() to pass
24167         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
24168         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24169         * tests/test-unlink.h (test_unlink_func): Likewise.
24170         * tests/test-fstatat.c (main): ...into callers.
24171         * tests/test-lstat.c (main): Likewise.
24172         * tests/test-rmdir.c (main): Likewise.
24173         * tests/test-unlink.c (main): Likewise.
24174         * tests/test-unlinkat.c (main): Likewise.
24175         * tests/test-areadlink-with-size.c (main): Don't require a
24176         debug-only system call to pass, aiding cross-testing to mingw.
24177         * tests/test-areadlink.c (main): Likewise.
24178         * tests/test-areadlinkat-with-size.c (main): Likewise.
24179         * tests/test-areadlinkat.c (main): Likewise.
24180         * tests/test-canonicalize-lgpl.c (main): Likewise.
24181         * tests/test-canonicalize.c (main): Likewise.
24182         * tests/test-chown.c (main): Likewise.
24183         * tests/test-fchownat.c (main): Likewise.
24184         * tests/test-lchown.c (main): Likewise.
24185         * tests/test-fdutimensat.c (main): Likewise.
24186         * tests/test-futimens.c (main): Likewise.
24187         * tests/test-link.c (main): Likewise.
24188         * tests/test-linkat.c (main): Likewise.
24189         * tests/test-mkdir.c (main): Likewise.
24190         * tests/test-mkdirat.c (main): Likewise.
24191         * tests/test-mkfifo.c (main): Likewise.
24192         * tests/test-mkfifoat.c (main): Likewise.
24193         * tests/test-mknod.c (main): Likewise.
24194         * tests/test-readlink.c (main): Likewise.
24195         * tests/test-remove.c (main): Likewise.
24196         * tests/test-rename.c (main): Likewise.
24197         * tests/test-renameat.c (main): Likewise.
24198         * tests/test-symlink.c (main): Likewise.
24199         * tests/test-symlinkat.c (main): Likewise.
24200         * tests/test-utimens.c (main): Likewise.
24201         * tests/test-utimensat.c (main): Likewise.
24202
24203 2009-12-29  Simon Josefsson  <simon@josefsson.org>
24204
24205         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
24206         on $(UNUSED_PARAMETER_H) to avoid build failure.
24207
24208 2009-12-28  Jim Meyering  <meyering@redhat.com>
24209
24210         update-copyright: you may specify a max. line length other than 72
24211         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24212
24213         maint: use consistent FSF copyright line syntax
24214         * lib/posixtm.c: Add missing comma in FSF copyright line.
24215         * lib/posixtm.h: Likewise.
24216         * lib/getugroups.c: Add missing ", Inc.".
24217
24218         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
24219         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
24220         FSF copyright line.  Remove trailing blanks.
24221
24222 2009-12-28  Eric Blake  <ebb9@byu.net>
24223
24224         test-dup2: reduce dependencies
24225         * modules/cloexec (Configure.ac): Set witness.
24226         * modules/dup2-tests (Depends-on): Drop cloexec.
24227         * tests/test-dup2.c (main): Skip portion of test if cloexec module
24228         not present.
24229         Suggested by Bruno Haible.
24230
24231 2009-12-26  Bruno Haible  <bruno@clisp.org>
24232
24233         Remove an unneeded dependency.
24234         * modules/fseterr (Depends-on): Remove dup2.
24235
24236 2009-12-26  Eric Blake  <ebb9@byu.net>
24237
24238         tests: use macros.h in more places
24239         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
24240         (ASSERT_STREAM): Provide default of stderr.
24241         * tests/test-dirent-safer.c: Include macros.h, using alternate
24242         stream for assertions.
24243         * tests/test-dup-safer.c: Likewise.
24244         * tests/test-freopen-safer.c: Likewise.
24245         * tests/test-getopt.c: Likewise.
24246         * tests/test-openat-safer.c: Likewise.
24247         * tests/test-pipe.c: Likewise.
24248         * tests/test-popen-safer.c: Likewise.
24249         * modules/dirent-safer-tests (Files): Include macros.h.
24250         * modules/unistd-safer-tests (Files): Likewise.
24251         * modules/freopen-safer-tests (Files): Likewise.
24252         * modules/getopt-posix-tests (Files): Likewise.
24253         * modules/openat-safer-tests (Files): Likewise.
24254         * modules/pipe-tests (Files): Likewise.
24255
24256 2009-12-26  Bruno Haible  <bruno@clisp.org>
24257
24258         javacomp: Portability fix.
24259         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
24260         that it also works on Solaris.
24261
24262 2009-12-26  Bruno Haible  <bruno@clisp.org>
24263
24264         localename: Fix storage allocation of gl_locale_name_thread's result.
24265         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
24266         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
24267         all platforms that have 'uselocale'.
24268         (gl_locale_name_thread_unsafe): New function, extracted from
24269         gl_locale_name_thread.
24270         (gl_locale_name_thread): Call struniq on all platforms that have
24271         'uselocale'.
24272         * tests/test-localename.c (test_locale_name_thread): Check that the
24273         resulting strings are permanently allocated.
24274         * modules/localename-tests (Depends-on): Add strdup.
24275
24276 2009-12-26  Bruno Haible  <bruno@clisp.org>
24277
24278         * tests/test-localename.c (categories): Fill in the strings.
24279
24280 2009-12-26  Jim Meyering  <meyering@redhat.com>
24281
24282         isdir: complete the removal of m4/isdir.m4
24283         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
24284
24285         isdir: clean up, since at least grep still uses it
24286         * lib/isdir.c: Include "isdir.h".
24287         (S_ISDIR): Remove now-unneeded definition.
24288         * modules/isdir (Files): Add lib/isdir.h.
24289         * lib/isdir.h: New file, with declaration.
24290         * m4/isdir.m4: Remove file -- unneeded.
24291
24292 2009-12-25  Bruno Haible  <bruno@clisp.org>
24293
24294         selinux-h: Make generated .h files standalone.
24295         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
24296         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
24297         * lib/se-selinux.in.h: Likewise.
24298         * modules/selinux-h (Depends-on): Add unused-parameter.
24299         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
24300         selinux/selinux.h and selinux/context.h.
24301         Suggested by Eric Blake.
24302
24303 2009-12-25  Bruno Haible  <bruno@clisp.org>
24304
24305         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
24306         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
24307         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
24308         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24309         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24310
24311 2009-12-24  Bruno Haible  <bruno@clisp.org>
24312
24313         openat: Fix warning.
24314         * lib/openat-proc.c: Include <unistd.h>.
24315
24316 2009-12-24  Bruno Haible  <bruno@clisp.org>
24317
24318         New module 'unused-parameter'.
24319         * build-aux/unused-parameter.h: New file, extracted from earlier
24320         gnulib-common.m4.
24321         * modules/unused-parameter: New file.
24322         * lib/unistr.h: Include unused-parameter.h.
24323         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24324         _GL_UNUSED.
24325         * modules/unistr/base (Depends-on): Add unused-parameter.
24326
24327 2009-12-24  Bruno Haible  <bruno@clisp.org>
24328
24329         Add missing dependencies to 'extensions' module.
24330         * m4/extensions.m4: Add comment.
24331         * modules/accept4 (Depends-on): Add extensions.
24332         * modules/dup3 (Depends-on): Likewise.
24333         * modules/fcntl (Depends-on): Likewise.
24334         * modules/futimens (Depends-on): Likewise.
24335         * modules/mknod (Depends-on): Likewise.
24336         * modules/pipe2 (Depends-on): Likewise.
24337         * modules/stat-time (Depends-on): Likewise.
24338         * modules/strcasestr-simple (Depends-on): Likewise.
24339         * modules/strsignal (Depends-on): Likewise.
24340         * modules/utimensat (Depends-on): Likewise.
24341         * modules/localcharset (Depends-on): Likewise. Needed because of
24342         gl_FCNTL_O_FLAGS.
24343         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24344         AC_TYPE_MBSTATE_T.
24345         * modules/wcsnrtombs (Depends-on): Likewise.
24346         * modules/wcsrtombs (Depends-on): Likewise.
24347
24348 2009-12-24  Bruno Haible  <bruno@clisp.org>
24349
24350         binary-io: Avoid gcc warning due to SET_BINARY.
24351         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24352         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24353
24354 2009-12-24  Bruno Haible  <bruno@clisp.org>
24355
24356         Avoid future namespace pollution on glibc systems.
24357         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24358         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24359         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24360         glibc systems.
24361
24362 2009-12-24  Bruno Haible  <bruno@clisp.org>
24363
24364         Refactor common macros used in tests.
24365         * tests/macros.h: New file.
24366         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24367         and/or <stdlib.h>, if appropriate.
24368         (ASSERT, SIZEOF): Remove macros.
24369         * tests/test-areadlink-with-size.c: Likewise.
24370         * tests/test-areadlinkat.c: Likewise.
24371         * tests/test-areadlinkat-with-size.c: Likewise.
24372         * tests/test-argmatch.c: Likewise.
24373         * tests/test-argv-iter.c: Likewise.
24374         * tests/test-array-mergesort.c: Likewise.
24375         * tests/test-array_list.c: Likewise.
24376         * tests/test-array_oset.c: Likewise.
24377         * tests/test-avltree_list.c: Likewise.
24378         * tests/test-avltree_oset.c: Likewise.
24379         * tests/test-avltreehash_list.c: Likewise.
24380         * tests/test-base64.c: Likewise.
24381         * tests/test-binary-io.c: Likewise.
24382         * tests/test-bitrotate.c: Likewise.
24383         * tests/test-btowc.c: Likewise.
24384         * tests/test-byteswap.c: Likewise.
24385         * tests/test-c-ctype.c: Likewise.
24386         * tests/test-c-stack.c: Likewise.
24387         * tests/test-c-strcasecmp.c: Likewise.
24388         * tests/test-c-strcasestr.c: Likewise.
24389         * tests/test-c-strncasecmp.c: Likewise.
24390         * tests/test-c-strstr.c: Likewise.
24391         * tests/test-canonicalize-lgpl.c: Likewise.
24392         * tests/test-canonicalize.c: Likewise.
24393         * tests/test-carray_list.c: Likewise.
24394         * tests/test-ceilf1.c: Likewise.
24395         * tests/test-ceilf2.c: Likewise.
24396         * tests/test-ceill.c: Likewise.
24397         * tests/test-chown.c: Likewise.
24398         * tests/test-cloexec.c: Likewise.
24399         * tests/test-copy-acl.c: Likewise.
24400         * tests/test-copy-file.c: Likewise.
24401         * tests/test-count-one-bits.c: Likewise.
24402         * tests/test-dprintf-posix.c: Likewise.
24403         * tests/test-dup2.c: Likewise.
24404         * tests/test-dup3.c: Likewise.
24405         * tests/test-duplocale.c: Likewise.
24406         * tests/test-fbufmode.c: Likewise.
24407         * tests/test-fchdir.c: Likewise.
24408         * tests/test-fchownat.c: Likewise.
24409         * tests/test-fcntl-safer.c: Likewise.
24410         * tests/test-fcntl.c: Likewise.
24411         * tests/test-fdopendir.c: Likewise.
24412         * tests/test-fdutimensat.c: Likewise.
24413         * tests/test-fflush2.c: Likewise.
24414         * tests/test-file-has-acl.c: Likewise.
24415         * tests/test-filevercmp.c: Likewise.
24416         * tests/test-flock.c: Likewise.
24417         * tests/test-floorf1.c: Likewise.
24418         * tests/test-floorf2.c: Likewise.
24419         * tests/test-floorl.c: Likewise.
24420         * tests/test-fnmatch.c: Likewise.
24421         * tests/test-fopen.h: Likewise.
24422         * tests/test-fpending.c: Likewise.
24423         * tests/test-fprintf-posix.c: Likewise.
24424         * tests/test-fpurge.c: Likewise.
24425         * tests/test-freadable.c: Likewise.
24426         * tests/test-freadahead.c: Likewise.
24427         * tests/test-freading.c: Likewise.
24428         * tests/test-freadptr.c: Likewise.
24429         * tests/test-freadptr2.c: Likewise.
24430         * tests/test-freadseek.c: Likewise.
24431         * tests/test-freopen.c: Likewise.
24432         * tests/test-frexp.c: Likewise.
24433         * tests/test-frexpl.c: Likewise.
24434         * tests/test-fseek.c: Likewise.
24435         * tests/test-fseeko.c: Likewise.
24436         * tests/test-fstatat.c: Likewise.
24437         * tests/test-fstrcmp.c: Likewise.
24438         * tests/test-fsync.c: Likewise.
24439         * tests/test-ftell.c: Likewise.
24440         * tests/test-ftello.c: Likewise.
24441         * tests/test-func.c: Likewise.
24442         * tests/test-futimens.c: Likewise.
24443         * tests/test-fwritable.c: Likewise.
24444         * tests/test-fwriting.c: Likewise.
24445         * tests/test-getcwd.c: Likewise.
24446         * tests/test-getdate.c: Likewise.
24447         * tests/test-getdelim.c: Likewise.
24448         * tests/test-getdtablesize.c: Likewise.
24449         * tests/test-getgroups.c: Likewise.
24450         * tests/test-getline.c: Likewise.
24451         * tests/test-getndelim2.c: Likewise.
24452         * tests/test-glob.c: Likewise.
24453         * tests/test-hash.c: Likewise.
24454         * tests/test-i-ring.c: Likewise.
24455         * tests/test-iconv-utf.c: Likewise.
24456         * tests/test-iconv.c: Likewise.
24457         * tests/test-idpriv-drop.c: Likewise.
24458         * tests/test-idpriv-droptemp.c: Likewise.
24459         * tests/test-inet_ntop.c: Likewise.
24460         * tests/test-inet_pton.c: Likewise.
24461         * tests/test-isblank.c: Likewise.
24462         * tests/test-isfinite.c: Likewise.
24463         * tests/test-isinf.c: Likewise.
24464         * tests/test-isnan.c: Likewise.
24465         * tests/test-isnand.h: Likewise.
24466         * tests/test-isnanf.h: Likewise.
24467         * tests/test-isnanl.h: Likewise.
24468         * tests/test-lchown.c: Likewise.
24469         * tests/test-ldexpl.c: Likewise.
24470         * tests/test-link.c: Likewise.
24471         * tests/test-linkat.c: Likewise.
24472         * tests/test-linked_list.c: Likewise.
24473         * tests/test-linkedhash_list.c: Likewise.
24474         * tests/test-localename.c: Likewise.
24475         * tests/test-lseek.c: Likewise.
24476         * tests/test-lstat.c: Likewise.
24477         * tests/test-mbmemcasecmp.c: Likewise.
24478         * tests/test-mbmemcasecoll.c: Likewise.
24479         * tests/test-mbrtowc.c: Likewise.
24480         * tests/test-mbscasecmp.c: Likewise.
24481         * tests/test-mbscasestr1.c: Likewise.
24482         * tests/test-mbscasestr2.c: Likewise.
24483         * tests/test-mbscasestr3.c: Likewise.
24484         * tests/test-mbscasestr4.c: Likewise.
24485         * tests/test-mbschr.c: Likewise.
24486         * tests/test-mbscspn.c: Likewise.
24487         * tests/test-mbsinit.c: Likewise.
24488         * tests/test-mbsncasecmp.c: Likewise.
24489         * tests/test-mbsnrtowcs.c: Likewise.
24490         * tests/test-mbspbrk.c: Likewise.
24491         * tests/test-mbspcasecmp.c: Likewise.
24492         * tests/test-mbsrchr.c: Likewise.
24493         * tests/test-mbsrtowcs.c: Likewise.
24494         * tests/test-mbsspn.c: Likewise.
24495         * tests/test-mbsstr1.c: Likewise.
24496         * tests/test-mbsstr2.c: Likewise.
24497         * tests/test-mbsstr3.c: Likewise.
24498         * tests/test-memchr.c: Likewise.
24499         * tests/test-memchr2.c: Likewise.
24500         * tests/test-memcmp.c: Likewise.
24501         * tests/test-memmem.c: Likewise.
24502         * tests/test-memrchr.c: Likewise.
24503         * tests/test-mkdir.c: Likewise.
24504         * tests/test-mkdirat.c: Likewise.
24505         * tests/test-mkfifo.c: Likewise.
24506         * tests/test-mkfifoat.c: Likewise.
24507         * tests/test-mknod.c: Likewise.
24508         * tests/test-nanosleep.c: Likewise.
24509         * tests/test-nl_langinfo.c: Likewise.
24510         * tests/test-obstack-printf.c: Likewise.
24511         * tests/test-open.c: Likewise.
24512         * tests/test-openat.c: Likewise.
24513         * tests/test-pipe-filter-gi1.c: Likewise.
24514         * tests/test-pipe-filter-gi2-main.c: Likewise.
24515         * tests/test-pipe-filter-ii1.c: Likewise.
24516         * tests/test-pipe-filter-ii2-main.c: Likewise.
24517         * tests/test-pipe2.c: Likewise.
24518         * tests/test-popen.h: Likewise.
24519         * tests/test-posixtm.c: Likewise.
24520         * tests/test-pread.c: Likewise.
24521         * tests/test-printf-frexp.c: Likewise.
24522         * tests/test-printf-frexpl.c: Likewise.
24523         * tests/test-printf-posix.c: Likewise.
24524         * tests/test-priv-set.c: Likewise.
24525         * tests/test-quotearg.c: Likewise.
24526         * tests/test-random_r.c: Likewise.
24527         * tests/test-rawmemchr.c: Likewise.
24528         * tests/test-rbtree_list.c: Likewise.
24529         * tests/test-rbtree_oset.c: Likewise.
24530         * tests/test-rbtreehash_list.c: Likewise.
24531         * tests/test-readlink.c: Likewise.
24532         * tests/test-remove.c: Likewise.
24533         * tests/test-rename.c: Likewise.
24534         * tests/test-renameat.c: Likewise.
24535         * tests/test-rmdir.c: Likewise.
24536         * tests/test-round1.c: Likewise.
24537         * tests/test-roundf1.c: Likewise.
24538         * tests/test-roundl.c: Likewise.
24539         * tests/test-safe-alloc.c: Likewise.
24540         * tests/test-sameacls.c: Likewise.
24541         * tests/test-set-mode-acl.c: Likewise.
24542         * tests/test-setenv.c: Likewise.
24543         * tests/test-sigaction.c: Likewise.
24544         * tests/test-signbit.c: Likewise.
24545         * tests/test-sleep.c: Likewise.
24546         * tests/test-snprintf-posix.c: Likewise.
24547         * tests/test-snprintf.c: Likewise.
24548         * tests/test-sprintf-posix.c: Likewise.
24549         * tests/test-stat-time.c: Likewise.
24550         * tests/test-stat.c: Likewise.
24551         * tests/test-strcasestr.c: Likewise.
24552         * tests/test-strchrnul.c: Likewise.
24553         * tests/test-strerror.c: Likewise.
24554         * tests/test-striconv.c: Likewise.
24555         * tests/test-striconveh.c: Likewise.
24556         * tests/test-striconveha.c: Likewise.
24557         * tests/test-strsignal.c: Likewise.
24558         * tests/test-strstr.c: Likewise.
24559         * tests/test-strtod.c: Likewise.
24560         * tests/test-strverscmp.c: Likewise.
24561         * tests/test-symlink.c: Likewise.
24562         * tests/test-symlinkat.c: Likewise.
24563         * tests/test-trunc1.c: Likewise.
24564         * tests/test-trunc2.c: Likewise.
24565         * tests/test-truncf1.c: Likewise.
24566         * tests/test-truncf2.c: Likewise.
24567         * tests/test-truncl.c: Likewise.
24568         * tests/test-uname.c: Likewise.
24569         * tests/test-unlink.c: Likewise.
24570         * tests/test-unlinkat.c: Likewise.
24571         * tests/test-unsetenv.c: Likewise.
24572         * tests/test-usleep.c: Likewise.
24573         * tests/test-utimens.c: Likewise.
24574         * tests/test-utimensat.c: Likewise.
24575         * tests/test-vasnprintf-posix.c: Likewise.
24576         * tests/test-vasnprintf-posix2.c: Likewise.
24577         * tests/test-vasnprintf.c: Likewise.
24578         * tests/test-vasprintf-posix.c: Likewise.
24579         * tests/test-vasprintf.c: Likewise.
24580         * tests/test-vdprintf-posix.c: Likewise.
24581         * tests/test-vfprintf-posix.c: Likewise.
24582         * tests/test-vprintf-posix.c: Likewise.
24583         * tests/test-vsnprintf-posix.c: Likewise.
24584         * tests/test-vsnprintf.c: Likewise.
24585         * tests/test-vsprintf-posix.c: Likewise.
24586         * tests/test-wcrtomb.c: Likewise.
24587         * tests/test-wcsnrtombs.c: Likewise.
24588         * tests/test-wcsrtombs.c: Likewise.
24589         * tests/test-wctype.c: Likewise.
24590         * tests/test-wcwidth.c: Likewise.
24591         * tests/test-xfprintf-posix.c: Likewise.
24592         * tests/test-xmemdup0.c: Likewise.
24593         * tests/test-xprintf-posix.c: Likewise.
24594         * tests/test-xvasprintf.c: Likewise.
24595         * tests/unicase/test-locale-language.c: Likewise.
24596         * tests/unicase/test-mapping-part1.h: Likewise.
24597         * tests/unicase/test-predicate-part1.h: Likewise.
24598         * tests/unicase/test-u8-casecmp.c: Likewise.
24599         * tests/unicase/test-u8-casecoll.c: Likewise.
24600         * tests/unicase/test-u8-casefold.c: Likewise.
24601         * tests/unicase/test-u8-is-cased.c: Likewise.
24602         * tests/unicase/test-u8-is-casefolded.c: Likewise.
24603         * tests/unicase/test-u8-is-lowercase.c: Likewise.
24604         * tests/unicase/test-u8-is-titlecase.c: Likewise.
24605         * tests/unicase/test-u8-is-uppercase.c: Likewise.
24606         * tests/unicase/test-u8-tolower.c: Likewise.
24607         * tests/unicase/test-u8-totitle.c: Likewise.
24608         * tests/unicase/test-u8-toupper.c: Likewise.
24609         * tests/unicase/test-u16-casecmp.c: Likewise.
24610         * tests/unicase/test-u16-casecoll.c: Likewise.
24611         * tests/unicase/test-u16-casefold.c: Likewise.
24612         * tests/unicase/test-u16-is-cased.c: Likewise.
24613         * tests/unicase/test-u16-is-casefolded.c: Likewise.
24614         * tests/unicase/test-u16-is-lowercase.c: Likewise.
24615         * tests/unicase/test-u16-is-titlecase.c: Likewise.
24616         * tests/unicase/test-u16-is-uppercase.c: Likewise.
24617         * tests/unicase/test-u16-tolower.c: Likewise.
24618         * tests/unicase/test-u16-totitle.c: Likewise.
24619         * tests/unicase/test-u16-toupper.c: Likewise.
24620         * tests/unicase/test-u32-casecmp.c: Likewise.
24621         * tests/unicase/test-u32-casecoll.c: Likewise.
24622         * tests/unicase/test-u32-casefold.c: Likewise.
24623         * tests/unicase/test-u32-is-cased.c: Likewise.
24624         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24625         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24626         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24627         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24628         * tests/unicase/test-u32-tolower.c: Likewise.
24629         * tests/unicase/test-u32-totitle.c: Likewise.
24630         * tests/unicase/test-u32-toupper.c: Likewise.
24631         * tests/unicase/test-ulc-casecmp.c: Likewise.
24632         * tests/unicase/test-ulc-casecoll.c: Likewise.
24633         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24634         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24635         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24636         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24637         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24638         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24639         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24640         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24641         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24642         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24643         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24644         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24645         * tests/unictype/test-bidi_byname.c: Likewise.
24646         * tests/unictype/test-bidi_name.c: Likewise.
24647         * tests/unictype/test-bidi_of.c: Likewise.
24648         * tests/unictype/test-bidi_test.c: Likewise.
24649         * tests/unictype/test-block_list.c: Likewise.
24650         * tests/unictype/test-block_of.c: Likewise.
24651         * tests/unictype/test-block_test.c: Likewise.
24652         * tests/unictype/test-categ_and.c: Likewise.
24653         * tests/unictype/test-categ_and_not.c: Likewise.
24654         * tests/unictype/test-categ_byname.c: Likewise.
24655         * tests/unictype/test-categ_name.c: Likewise.
24656         * tests/unictype/test-categ_none.c: Likewise.
24657         * tests/unictype/test-categ_of.c: Likewise.
24658         * tests/unictype/test-categ_or.c: Likewise.
24659         * tests/unictype/test-categ_test_withtable.c: Likewise.
24660         * tests/unictype/test-combining.c: Likewise.
24661         * tests/unictype/test-decdigit.c: Likewise.
24662         * tests/unictype/test-digit.c: Likewise.
24663         * tests/unictype/test-mirror.c: Likewise.
24664         * tests/unictype/test-numeric.c: Likewise.
24665         * tests/unictype/test-pr_byname.c: Likewise.
24666         * tests/unictype/test-pr_test.c: Likewise.
24667         * tests/unictype/test-predicate-part1.h: Likewise.
24668         * tests/unictype/test-scripts.c: Likewise.
24669         * tests/unictype/test-sy_c_ident.c: Likewise.
24670         * tests/unictype/test-sy_java_ident.c: Likewise.
24671         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24672         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24673         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24674         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24675         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24676         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24677         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24678         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24679         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24680         * tests/uninorm/test-compat-decomposition.c: Likewise.
24681         * tests/uninorm/test-composition.c: Likewise.
24682         * tests/uninorm/test-decomposing-form.c: Likewise.
24683         * tests/uninorm/test-decomposition.c: Likewise.
24684         * tests/uninorm/test-u8-nfc.c: Likewise.
24685         * tests/uninorm/test-u8-nfd.c: Likewise.
24686         * tests/uninorm/test-u8-nfkc.c: Likewise.
24687         * tests/uninorm/test-u8-nfkd.c: Likewise.
24688         * tests/uninorm/test-u8-normcmp.c: Likewise.
24689         * tests/uninorm/test-u8-normcoll.c: Likewise.
24690         * tests/uninorm/test-u16-nfc.c: Likewise.
24691         * tests/uninorm/test-u16-nfd.c: Likewise.
24692         * tests/uninorm/test-u16-nfkc.c: Likewise.
24693         * tests/uninorm/test-u16-nfkd.c: Likewise.
24694         * tests/uninorm/test-u16-normcmp.c: Likewise.
24695         * tests/uninorm/test-u16-normcoll.c: Likewise.
24696         * tests/uninorm/test-u32-nfc.c: Likewise.
24697         * tests/uninorm/test-u32-nfd.c: Likewise.
24698         * tests/uninorm/test-u32-nfkc.c: Likewise.
24699         * tests/uninorm/test-u32-nfkd.c: Likewise.
24700         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24701         * tests/uninorm/test-u32-normcmp.c: Likewise.
24702         * tests/uninorm/test-u32-normcoll.c: Likewise.
24703         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
24704         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24705         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24706         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24707         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24708         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24709         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24710         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24711         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24712         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24713         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24714         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24715         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24716         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24717         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24718         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24719         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24720         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24721         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24722         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24723         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24724         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24725         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24726         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24727         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24728         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24729         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24730         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24731         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24732         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
24733         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
24734         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
24735         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
24736         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24737         * tests/uniwidth/test-u8-width.c: Likewise.
24738         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24739         * tests/uniwidth/test-u16-width.c: Likewise.
24740         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24741         * tests/uniwidth/test-u32-width.c: Likewise.
24742         * tests/uniwidth/test-uc_width.c: Likewise.
24743         * tests/uniwidth/test-uc_width2.c: Likewise.
24744         * modules/acl-tests (Files): Add tests/macros.h.
24745         * modules/areadlink-tests (Files): Likewise.
24746         * modules/areadlink-with-size-tests (Files): Likewise.
24747         * modules/areadlinkat-tests (Files): Likewise.
24748         * modules/areadlinkat-with-size-tests (Files): Likewise.
24749         * modules/argmatch-tests (Files): Likewise.
24750         * modules/argv-iter-tests (Files): Likewise.
24751         * modules/array-list-tests (Files): Likewise.
24752         * modules/array-mergesort-tests (Files): Likewise.
24753         * modules/array-oset-tests (Files): Likewise.
24754         * modules/avltree-list-tests (Files): Likewise.
24755         * modules/avltree-oset-tests (Files): Likewise.
24756         * modules/avltreehash-list-tests (Files): Likewise.
24757         * modules/base64-tests (Files): Likewise.
24758         * modules/binary-io-tests (Files): Likewise.
24759         * modules/bitrotate-tests (Files): Likewise.
24760         * modules/btowc-tests (Files): Likewise.
24761         * modules/byteswap-tests (Files): Likewise.
24762         * modules/c-ctype-tests (Files): Likewise.
24763         * modules/c-stack-tests (Files): Likewise.
24764         * modules/c-strcase-tests (Files): Likewise.
24765         * modules/c-strcasestr-tests (Files): Likewise.
24766         * modules/c-strstr-tests (Files): Likewise.
24767         * modules/canonicalize-lgpl-tests (Files): Likewise.
24768         * modules/canonicalize-tests (Files): Likewise.
24769         * modules/carray-list-tests (Files): Likewise.
24770         * modules/ceilf-tests (Files): Likewise.
24771         * modules/ceill-tests (Files): Likewise.
24772         * modules/chown-tests (Files): Likewise.
24773         * modules/cloexec-tests (Files): Likewise.
24774         * modules/copy-file-tests (Files): Likewise.
24775         * modules/count-one-bits-tests (Files): Likewise.
24776         * modules/dprintf-posix-tests (Files): Likewise.
24777         * modules/dup2-tests (Files): Likewise.
24778         * modules/dup3-tests (Files): Likewise.
24779         * modules/duplocale-tests (Files): Likewise.
24780         * modules/fbufmode-tests (Files): Likewise.
24781         * modules/fchdir-tests (Files): Likewise.
24782         * modules/fcntl-safer-tests (Files): Likewise.
24783         * modules/fcntl-tests (Files): Likewise.
24784         * modules/fdopendir-tests (Files): Likewise.
24785         * modules/fdutimensat-tests (Files): Likewise.
24786         * modules/fflush-tests (Files): Likewise.
24787         * modules/filevercmp-tests (Files): Likewise.
24788         * modules/flock-tests (Files): Likewise.
24789         * modules/floorf-tests (Files): Likewise.
24790         * modules/floorl-tests (Files): Likewise.
24791         * modules/fnmatch-tests (Files): Likewise.
24792         * modules/fopen-safer-tests (Files): Likewise.
24793         * modules/fopen-tests (Files): Likewise.
24794         * modules/fpending-tests (Files): Likewise.
24795         * modules/fprintf-posix-tests (Files): Likewise.
24796         * modules/fpurge-tests (Files): Likewise.
24797         * modules/freadable-tests (Files): Likewise.
24798         * modules/freadahead-tests (Files): Likewise.
24799         * modules/freading-tests (Files): Likewise.
24800         * modules/freadptr-tests (Files): Likewise.
24801         * modules/freadseek-tests (Files): Likewise.
24802         * modules/freopen-tests (Files): Likewise.
24803         * modules/frexp-nolibm-tests (Files): Likewise.
24804         * modules/frexp-tests (Files): Likewise.
24805         * modules/frexpl-nolibm-tests (Files): Likewise.
24806         * modules/frexpl-tests (Files): Likewise.
24807         * modules/fseek-tests (Files): Likewise.
24808         * modules/fseeko-tests (Files): Likewise.
24809         * modules/fstrcmp-tests (Files): Likewise.
24810         * modules/fsync-tests (Files): Likewise.
24811         * modules/ftell-tests (Files): Likewise.
24812         * modules/ftello-tests (Files): Likewise.
24813         * modules/func-tests (Files): Likewise.
24814         * modules/futimens-tests (Files): Likewise.
24815         * modules/fwritable-tests (Files): Likewise.
24816         * modules/fwriting-tests (Files): Likewise.
24817         * modules/getcwd-tests (Files): Likewise.
24818         * modules/getdate-tests (Files): Likewise.
24819         * modules/getdelim-tests (Files): Likewise.
24820         * modules/getdtablesize-tests (Files): Likewise.
24821         * modules/getgroups-tests (Files): Likewise.
24822         * modules/getline-tests (Files): Likewise.
24823         * modules/getndelim2-tests (Files): Likewise.
24824         * modules/glob-tests (Files): Likewise.
24825         * modules/hash-tests (Files): Likewise.
24826         * modules/i-ring-tests (Files): Likewise.
24827         * modules/iconv-tests (Files): Likewise.
24828         * modules/iconv_open-utf-tests (Files): Likewise.
24829         * modules/idpriv-drop-tests (Files): Likewise.
24830         * modules/idpriv-droptemp-tests (Files): Likewise.
24831         * modules/inet_ntop-tests (Files): Likewise.
24832         * modules/inet_pton-tests (Files): Likewise.
24833         * modules/isblank-tests (Files): Likewise.
24834         * modules/isfinite-tests (Files): Likewise.
24835         * modules/isinf-tests (Files): Likewise.
24836         * modules/isnan-tests (Files): Likewise.
24837         * modules/isnand-nolibm-tests (Files): Likewise.
24838         * modules/isnand-tests (Files): Likewise.
24839         * modules/isnanf-nolibm-tests (Files): Likewise.
24840         * modules/isnanf-tests (Files): Likewise.
24841         * modules/isnanl-nolibm-tests (Files): Likewise.
24842         * modules/isnanl-tests (Files): Likewise.
24843         * modules/lchown-tests (Files): Likewise.
24844         * modules/ldexpl-tests (Files): Likewise.
24845         * modules/link-tests (Files): Likewise.
24846         * modules/linkat-tests (Files): Likewise.
24847         * modules/linked-list-tests (Files): Likewise.
24848         * modules/linkedhash-list-tests (Files): Likewise.
24849         * modules/localename-tests (Files): Likewise.
24850         * modules/lseek-tests (Files): Likewise.
24851         * modules/lstat-tests (Files): Likewise.
24852         * modules/mbmemcasecmp-tests (Files): Likewise.
24853         * modules/mbmemcasecoll-tests (Files): Likewise.
24854         * modules/mbrtowc-tests (Files): Likewise.
24855         * modules/mbscasecmp-tests (Files): Likewise.
24856         * modules/mbscasestr-tests (Files): Likewise.
24857         * modules/mbschr-tests (Files): Likewise.
24858         * modules/mbscspn-tests (Files): Likewise.
24859         * modules/mbsinit-tests (Files): Likewise.
24860         * modules/mbsncasecmp-tests (Files): Likewise.
24861         * modules/mbsnrtowcs-tests (Files): Likewise.
24862         * modules/mbspbrk-tests (Files): Likewise.
24863         * modules/mbspcasecmp-tests (Files): Likewise.
24864         * modules/mbsrchr-tests (Files): Likewise.
24865         * modules/mbsrtowcs-tests (Files): Likewise.
24866         * modules/mbsspn-tests (Files): Likewise.
24867         * modules/mbsstr-tests (Files): Likewise.
24868         * modules/memchr-tests (Files): Likewise.
24869         * modules/memchr2-tests (Files): Likewise.
24870         * modules/memcmp-tests (Files): Likewise.
24871         * modules/memmem-tests (Files): Likewise.
24872         * modules/memrchr-tests (Files): Likewise.
24873         * modules/mkdir-tests (Files): Likewise.
24874         * modules/mkfifo-tests (Files): Likewise.
24875         * modules/mkfifoat-tests (Files): Likewise.
24876         * modules/mknod-tests (Files): Likewise.
24877         * modules/nanosleep-tests (Files): Likewise.
24878         * modules/nl_langinfo-tests (Files): Likewise.
24879         * modules/obstack-printf-tests (Files): Likewise.
24880         * modules/open-tests (Files): Likewise.
24881         * modules/openat-tests (Files): Likewise.
24882         * modules/pipe-filter-gi-tests (Files): Likewise.
24883         * modules/pipe-filter-ii-tests (Files): Likewise.
24884         * modules/pipe2-tests (Files): Likewise.
24885         * modules/popen-safer-tests (Files): Likewise.
24886         * modules/popen-tests (Files): Likewise.
24887         * modules/posixtm-tests (Files): Likewise.
24888         * modules/pread-tests (Files): Likewise.
24889         * modules/printf-frexp-tests (Files): Likewise.
24890         * modules/printf-frexpl-tests (Files): Likewise.
24891         * modules/printf-posix-tests (Files): Likewise.
24892         * modules/priv-set-tests (Files): Likewise.
24893         * modules/quotearg-tests (Files): Likewise.
24894         * modules/random_r-tests (Files): Likewise.
24895         * modules/rawmemchr-tests (Files): Likewise.
24896         * modules/rbtree-list-tests (Files): Likewise.
24897         * modules/rbtree-oset-tests (Files): Likewise.
24898         * modules/rbtreehash-list-tests (Files): Likewise.
24899         * modules/readlink-tests (Files): Likewise.
24900         * modules/remove-tests (Files): Likewise.
24901         * modules/rename-tests (Files): Likewise.
24902         * modules/renameat-tests (Files): Likewise.
24903         * modules/rmdir-tests (Files): Likewise.
24904         * modules/round-tests (Files): Likewise.
24905         * modules/roundf-tests (Files): Likewise.
24906         * modules/roundl-tests (Files): Likewise.
24907         * modules/safe-alloc-tests (Files): Likewise.
24908         * modules/setenv-tests (Files): Likewise.
24909         * modules/sigaction-tests (Files): Likewise.
24910         * modules/signbit-tests (Files): Likewise.
24911         * modules/sleep-tests (Files): Likewise.
24912         * modules/snprintf-posix-tests (Files): Likewise.
24913         * modules/snprintf-tests (Files): Likewise.
24914         * modules/sprintf-posix-tests (Files): Likewise.
24915         * modules/stat-tests (Files): Likewise.
24916         * modules/stat-time-tests (Files): Likewise.
24917         * modules/strcasestr-tests (Files): Likewise.
24918         * modules/strchrnul-tests (Files): Likewise.
24919         * modules/strerror-tests (Files): Likewise.
24920         * modules/striconv-tests (Files): Likewise.
24921         * modules/striconveh-tests (Files): Likewise.
24922         * modules/striconveha-tests (Files): Likewise.
24923         * modules/strsignal-tests (Files): Likewise.
24924         * modules/strstr-tests (Files): Likewise.
24925         * modules/strtod-tests (Files): Likewise.
24926         * modules/strverscmp-tests (Files): Likewise.
24927         * modules/symlink-tests (Files): Likewise.
24928         * modules/symlinkat-tests (Files): Likewise.
24929         * modules/trunc-tests (Files): Likewise.
24930         * modules/truncf-tests (Files): Likewise.
24931         * modules/truncl-tests (Files): Likewise.
24932         * modules/uname-tests (Files): Likewise.
24933         * modules/unicase/cased-tests (Files): Likewise.
24934         * modules/unicase/ignorable-tests (Files): Likewise.
24935         * modules/unicase/locale-language-tests (Files): Likewise.
24936         * modules/unicase/tolower-tests (Files): Likewise.
24937         * modules/unicase/totitle-tests (Files): Likewise.
24938         * modules/unicase/toupper-tests (Files): Likewise.
24939         * modules/unicase/u8-casecmp-tests (Files): Likewise.
24940         * modules/unicase/u8-casecoll-tests (Files): Likewise.
24941         * modules/unicase/u8-casefold-tests (Files): Likewise.
24942         * modules/unicase/u8-is-cased-tests (Files): Likewise.
24943         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
24944         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
24945         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
24946         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
24947         * modules/unicase/u8-tolower-tests (Files): Likewise.
24948         * modules/unicase/u8-totitle-tests (Files): Likewise.
24949         * modules/unicase/u8-toupper-tests (Files): Likewise.
24950         * modules/unicase/u16-casecmp-tests (Files): Likewise.
24951         * modules/unicase/u16-casecoll-tests (Files): Likewise.
24952         * modules/unicase/u16-casefold-tests (Files): Likewise.
24953         * modules/unicase/u16-is-cased-tests (Files): Likewise.
24954         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
24955         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
24956         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
24957         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
24958         * modules/unicase/u16-tolower-tests (Files): Likewise.
24959         * modules/unicase/u16-totitle-tests (Files): Likewise.
24960         * modules/unicase/u16-toupper-tests (Files): Likewise.
24961         * modules/unicase/u32-casecmp-tests (Files): Likewise.
24962         * modules/unicase/u32-casecoll-tests (Files): Likewise.
24963         * modules/unicase/u32-casefold-tests (Files): Likewise.
24964         * modules/unicase/u32-is-cased-tests (Files): Likewise.
24965         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
24966         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
24967         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
24968         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
24969         * modules/unicase/u32-tolower-tests (Files): Likewise.
24970         * modules/unicase/u32-totitle-tests (Files): Likewise.
24971         * modules/unicase/u32-toupper-tests (Files): Likewise.
24972         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
24973         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
24974         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
24975         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
24976         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
24977         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
24978         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
24979         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
24980         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
24981         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
24982         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
24983         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
24984         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
24985         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
24986         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
24987         * modules/unictype/bidicategory-name-tests (Files): Likewise.
24988         * modules/unictype/bidicategory-of-tests (Files): Likewise.
24989         * modules/unictype/bidicategory-test-tests (Files): Likewise.
24990         * modules/unictype/block-list-tests (Files): Likewise.
24991         * modules/unictype/block-of-tests (Files): Likewise.
24992         * modules/unictype/block-test-tests (Files): Likewise.
24993         * modules/unictype/category-C-tests (Files): Likewise.
24994         * modules/unictype/category-Cc-tests (Files): Likewise.
24995         * modules/unictype/category-Cf-tests (Files): Likewise.
24996         * modules/unictype/category-Cn-tests (Files): Likewise.
24997         * modules/unictype/category-Co-tests (Files): Likewise.
24998         * modules/unictype/category-Cs-tests (Files): Likewise.
24999         * modules/unictype/category-L-tests (Files): Likewise.
25000         * modules/unictype/category-Ll-tests (Files): Likewise.
25001         * modules/unictype/category-Lm-tests (Files): Likewise.
25002         * modules/unictype/category-Lo-tests (Files): Likewise.
25003         * modules/unictype/category-Lt-tests (Files): Likewise.
25004         * modules/unictype/category-Lu-tests (Files): Likewise.
25005         * modules/unictype/category-M-tests (Files): Likewise.
25006         * modules/unictype/category-Mc-tests (Files): Likewise.
25007         * modules/unictype/category-Me-tests (Files): Likewise.
25008         * modules/unictype/category-Mn-tests (Files): Likewise.
25009         * modules/unictype/category-N-tests (Files): Likewise.
25010         * modules/unictype/category-Nd-tests (Files): Likewise.
25011         * modules/unictype/category-Nl-tests (Files): Likewise.
25012         * modules/unictype/category-No-tests (Files): Likewise.
25013         * modules/unictype/category-P-tests (Files): Likewise.
25014         * modules/unictype/category-Pc-tests (Files): Likewise.
25015         * modules/unictype/category-Pd-tests (Files): Likewise.
25016         * modules/unictype/category-Pe-tests (Files): Likewise.
25017         * modules/unictype/category-Pf-tests (Files): Likewise.
25018         * modules/unictype/category-Pi-tests (Files): Likewise.
25019         * modules/unictype/category-Po-tests (Files): Likewise.
25020         * modules/unictype/category-Ps-tests (Files): Likewise.
25021         * modules/unictype/category-S-tests (Files): Likewise.
25022         * modules/unictype/category-Sc-tests (Files): Likewise.
25023         * modules/unictype/category-Sk-tests (Files): Likewise.
25024         * modules/unictype/category-Sm-tests (Files): Likewise.
25025         * modules/unictype/category-So-tests (Files): Likewise.
25026         * modules/unictype/category-Z-tests (Files): Likewise.
25027         * modules/unictype/category-Zl-tests (Files): Likewise.
25028         * modules/unictype/category-Zp-tests (Files): Likewise.
25029         * modules/unictype/category-Zs-tests (Files): Likewise.
25030         * modules/unictype/category-and-not-tests (Files): Likewise.
25031         * modules/unictype/category-and-tests (Files): Likewise.
25032         * modules/unictype/category-byname-tests (Files): Likewise.
25033         * modules/unictype/category-name-tests (Files): Likewise.
25034         * modules/unictype/category-none-tests (Files): Likewise.
25035         * modules/unictype/category-of-tests (Files): Likewise.
25036         * modules/unictype/category-or-tests (Files): Likewise.
25037         * modules/unictype/category-test-withtable-tests (Files): Likewise.
25038         * modules/unictype/combining-class-tests (Files): Likewise.
25039         * modules/unictype/ctype-alnum-tests (Files): Likewise.
25040         * modules/unictype/ctype-alpha-tests (Files): Likewise.
25041         * modules/unictype/ctype-blank-tests (Files): Likewise.
25042         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
25043         * modules/unictype/ctype-digit-tests (Files): Likewise.
25044         * modules/unictype/ctype-graph-tests (Files): Likewise.
25045         * modules/unictype/ctype-lower-tests (Files): Likewise.
25046         * modules/unictype/ctype-print-tests (Files): Likewise.
25047         * modules/unictype/ctype-punct-tests (Files): Likewise.
25048         * modules/unictype/ctype-space-tests (Files): Likewise.
25049         * modules/unictype/ctype-upper-tests (Files): Likewise.
25050         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
25051         * modules/unictype/decimal-digit-tests (Files): Likewise.
25052         * modules/unictype/digit-tests (Files): Likewise.
25053         * modules/unictype/mirror-tests (Files): Likewise.
25054         * modules/unictype/numeric-tests (Files): Likewise.
25055         * modules/unictype/property-alphabetic-tests (Files): Likewise.
25056         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
25057         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
25058         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
25059         Likewise.
25060         * modules/unictype/property-bidi-block-separator-tests (Files):
25061         Likewise.
25062         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
25063         Likewise.
25064         * modules/unictype/property-bidi-common-separator-tests (Files):
25065         Likewise.
25066         * modules/unictype/property-bidi-control-tests (Files): Likewise.
25067         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
25068         Likewise.
25069         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
25070         Likewise.
25071         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
25072         Likewise.
25073         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
25074         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
25075         Likewise.
25076         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
25077         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
25078         Likewise.
25079         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
25080         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
25081         * modules/unictype/property-bidi-segment-separator-tests (Files):
25082         Likewise.
25083         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
25084         * modules/unictype/property-byname-tests (Files): Likewise.
25085         * modules/unictype/property-combining-tests (Files): Likewise.
25086         * modules/unictype/property-composite-tests (Files): Likewise.
25087         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
25088         * modules/unictype/property-dash-tests (Files): Likewise.
25089         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
25090         * modules/unictype/property-default-ignorable-code-point-tests (Files):
25091         Likewise.
25092         * modules/unictype/property-deprecated-tests (Files): Likewise.
25093         * modules/unictype/property-diacritic-tests (Files): Likewise.
25094         * modules/unictype/property-extender-tests (Files): Likewise.
25095         * modules/unictype/property-format-control-tests (Files): Likewise.
25096         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
25097         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
25098         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
25099         * modules/unictype/property-hex-digit-tests (Files): Likewise.
25100         * modules/unictype/property-hyphen-tests (Files): Likewise.
25101         * modules/unictype/property-id-continue-tests (Files): Likewise.
25102         * modules/unictype/property-id-start-tests (Files): Likewise.
25103         * modules/unictype/property-ideographic-tests (Files): Likewise.
25104         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
25105         * modules/unictype/property-ids-trinary-operator-tests (Files):
25106         Likewise.
25107         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
25108         * modules/unictype/property-iso-control-tests (Files): Likewise.
25109         * modules/unictype/property-join-control-tests (Files): Likewise.
25110         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
25111         * modules/unictype/property-line-separator-tests (Files): Likewise.
25112         * modules/unictype/property-logical-order-exception-tests (Files):
25113         Likewise.
25114         * modules/unictype/property-lowercase-tests (Files): Likewise.
25115         * modules/unictype/property-math-tests (Files): Likewise.
25116         * modules/unictype/property-non-break-tests (Files): Likewise.
25117         * modules/unictype/property-not-a-character-tests (Files): Likewise.
25118         * modules/unictype/property-numeric-tests (Files): Likewise.
25119         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
25120         * modules/unictype/property-other-default-ignorable-code-point-tests
25121         (Files): Likewise.
25122         * modules/unictype/property-other-grapheme-extend-tests (Files):
25123         Likewise.
25124         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
25125         * modules/unictype/property-other-id-start-tests (Files): Likewise.
25126         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
25127         * modules/unictype/property-other-math-tests (Files): Likewise.
25128         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
25129         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
25130         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
25131         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
25132         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
25133         * modules/unictype/property-private-use-tests (Files): Likewise.
25134         * modules/unictype/property-punctuation-tests (Files): Likewise.
25135         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
25136         * modules/unictype/property-radical-tests (Files): Likewise.
25137         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
25138         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
25139         * modules/unictype/property-space-tests (Files): Likewise.
25140         * modules/unictype/property-terminal-punctuation-tests (Files):
25141         Likewise.
25142         * modules/unictype/property-test-tests (Files): Likewise.
25143         * modules/unictype/property-titlecase-tests (Files): Likewise.
25144         * modules/unictype/property-unassigned-code-value-tests (Files):
25145         Likewise.
25146         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
25147         * modules/unictype/property-uppercase-tests (Files): Likewise.
25148         * modules/unictype/property-variation-selector-tests (Files): Likewise.
25149         * modules/unictype/property-white-space-tests (Files): Likewise.
25150         * modules/unictype/property-xid-continue-tests (Files): Likewise.
25151         * modules/unictype/property-xid-start-tests (Files): Likewise.
25152         * modules/unictype/property-zero-width-tests (Files): Likewise.
25153         * modules/unictype/scripts-tests (Files): Likewise.
25154         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
25155         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
25156         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
25157         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
25158         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
25159         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
25160         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
25161         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
25162         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
25163         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
25164         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
25165         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
25166         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
25167         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
25168         * modules/uninorm/composition-tests (Files): Likewise.
25169         * modules/uninorm/decomposing-form-tests (Files): Likewise.
25170         * modules/uninorm/decomposition-tests (Files): Likewise.
25171         * modules/uninorm/filter-tests (Files): Likewise.
25172         * modules/uninorm/nfc-tests (Files): Likewise.
25173         * modules/uninorm/nfd-tests (Files): Likewise.
25174         * modules/uninorm/nfkc-tests (Files): Likewise.
25175         * modules/uninorm/nfkd-tests (Files): Likewise.
25176         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
25177         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
25178         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
25179         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
25180         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
25181         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
25182         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
25183         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25184         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
25185         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
25186         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
25187         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
25188         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25189         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
25190         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
25191         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
25192         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
25193         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25194         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
25195         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
25196         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
25197         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
25198         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25199         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
25200         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
25201         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
25202         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
25203         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
25204         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
25205         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
25206         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
25207         * modules/uniwidth/u8-width-tests (Files): Likewise.
25208         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
25209         * modules/uniwidth/u16-width-tests (Files): Likewise.
25210         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
25211         * modules/uniwidth/u32-width-tests (Files): Likewise.
25212         * modules/uniwidth/width-tests (Files): Likewise.
25213         * modules/unlink-tests (Files): Likewise.
25214         * modules/unsetenv-tests (Files): Likewise.
25215         * modules/usleep-tests (Files): Likewise.
25216         * modules/utimens-tests (Files): Likewise.
25217         * modules/utimensat-tests (Files): Likewise.
25218         * modules/vasnprintf-posix-tests (Files): Likewise.
25219         * modules/vasnprintf-tests (Files): Likewise.
25220         * modules/vasprintf-posix-tests (Files): Likewise.
25221         * modules/vasprintf-tests (Files): Likewise.
25222         * modules/vdprintf-posix-tests (Files): Likewise.
25223         * modules/vfprintf-posix-tests (Files): Likewise.
25224         * modules/vprintf-posix-tests (Files): Likewise.
25225         * modules/vsnprintf-posix-tests (Files): Likewise.
25226         * modules/vsnprintf-tests (Files): Likewise.
25227         * modules/vsprintf-posix-tests (Files): Likewise.
25228         * modules/wcrtomb-tests (Files): Likewise.
25229         * modules/wcsnrtombs-tests (Files): Likewise.
25230         * modules/wcsrtombs-tests (Files): Likewise.
25231         * modules/wctype-tests (Files): Likewise.
25232         * modules/wcwidth-tests (Files): Likewise.
25233         * modules/xmemdup0-tests (Files): Likewise.
25234         * modules/xprintf-posix-tests (Files): Likewise.
25235         * modules/xvasprintf-tests (Files): Likewise.
25236
25237 2009-12-24  Eric Blake  <ebb9@byu.net>
25238
25239         test-nanosleep: fix typo
25240         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
25241         patch.
25242         Reported by Bruno Haible.
25243
25244 2009-12-24  Bruno Haible  <bruno@clisp.org>
25245
25246         Reduce namespace pollution on glibc systems.
25247         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
25248         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
25249         systems.
25250         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
25251         <getopt.h> on glibc systems.
25252         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
25253         systems.
25254         * lib/fcntl.c: Include <unistd.h> here instead.
25255
25256 2009-12-24  Bruno Haible  <bruno@clisp.org>
25257
25258         * lib/stdlib.in.h (includes): Fix typo in today's commit.
25259
25260 2009-12-24  Eric Blake  <ebb9@byu.net>
25261
25262         tests: add signature checks
25263         * tests/signature.h (SIGNATURE_CHECK): New file.
25264         * modules/atexit-tests (Files): Use it.
25265         * modules/btowc-tests (Files): Likewise.
25266         * modules/canonicalize-lgpl-tests (Files): Likewise.
25267         * modules/ceilf-tests (Files): Likewise.
25268         * modules/ceill-tests (Files): Likewise.
25269         * modules/chown-tests (Files): Likewise.
25270         * modules/dprintf-posix-tests (Files): Likewise.
25271         * modules/dup2-tests (Files): Likewise.
25272         * modules/dup3-tests (Files): Likewise.
25273         * modules/duplocale-tests (Files): Likewise.
25274         * modules/fchdir-tests (Files): Likewise.
25275         * modules/fcntl-tests (Files): Likewise.
25276         * modules/fdopendir-tests (Files): Likewise.
25277         * modules/fflush-tests (Files): Likewise.
25278         * modules/flock-tests (Files): Likewise.
25279         * modules/floorf-tests (Files): Likewise.
25280         * modules/floorl-tests (Files): Likewise.
25281         * modules/fnmatch-tests (Files): Likewise.
25282         * modules/fopen-tests (Files): Likewise.
25283         * modules/fprintf-posix-tests (Files): Likewise.
25284         * modules/freopen-tests (Files): Likewise.
25285         * modules/frexp-nolibm-tests (Files): Likewise.
25286         * modules/frexp-tests (Files): Likewise.
25287         * modules/frexpl-nolibm-tests (Files): Likewise.
25288         * modules/frexpl-tests (Files): Likewise.
25289         * modules/fseek-tests (Files): Likewise.
25290         * modules/fseeko-tests (Files): Likewise.
25291         * modules/fsync-tests (Files): Likewise.
25292         * modules/ftell-tests (Files): Likewise.
25293         * modules/ftello-tests (Files): Likewise.
25294         * modules/futimens-tests (Files): Likewise.
25295         * modules/getaddrinfo-tests (Files): Likewise.
25296         * modules/getcwd-tests (Files): Likewise.
25297         * modules/getdelim-tests (Files): Likewise.
25298         * modules/getdtablesize-tests (Files): Likewise.
25299         * modules/getgroups-tests (Files): Likewise.
25300         * modules/gethostname-tests (Files): Likewise.
25301         * modules/getline-tests (Files): Likewise.
25302         * modules/getopt-posix-tests (Files): Likewise.
25303         * modules/gettimeofday-tests (Files): Likewise.
25304         * modules/glob-tests (Files): Likewise.
25305         * modules/iconv-tests (Files): Likewise.
25306         * modules/inet_ntop-tests (Files): Likewise.
25307         * modules/inet_pton-tests (Files): Likewise.
25308         * modules/isblank-tests (Files): Likewise.
25309         * modules/lchown-tests (Files): Likewise.
25310         * modules/ldexpl-tests (Files): Likewise.
25311         * modules/link-tests (Files): Likewise.
25312         * modules/linkat-tests (Files): Likewise.
25313         * modules/lseek-tests (Files): Likewise.
25314         * modules/lstat-tests (Files): Likewise.
25315         * modules/mbrtowc-tests (Files): Likewise.
25316         * modules/mbsinit-tests (Files): Likewise.
25317         * modules/mbsnrtowcs-tests (Files): Likewise.
25318         * modules/mbsrtowcs-tests (Files): Likewise.
25319         * modules/memchr-tests (Files): Likewise.
25320         * modules/memcmp-tests (Files): Likewise.
25321         * modules/memmem-tests (Files): Likewise.
25322         * modules/memrchr-tests (Files): Likewise.
25323         * modules/mkdir-tests (Files): Likewise.
25324         * modules/mkfifo-tests (Files): Likewise.
25325         * modules/mkfifoat-tests (Files): Likewise.
25326         * modules/mknod-tests (Files): Likewise.
25327         * modules/nanosleep-tests (Files): Likewise.
25328         * modules/nl_langinfo-tests (Files): Likewise.
25329         * modules/obstack-printf-tests (Files): Likewise.
25330         * modules/open-tests (Files): Likewise.
25331         * modules/openat-tests (Files): Likewise.
25332         * modules/perror-tests (Files): Likewise.
25333         * modules/pipe2-tests (Files): Likewise.
25334         * modules/poll-tests (Files): Likewise.
25335         * modules/popen-tests (Files): Likewise.
25336         * modules/posix_spawn-tests (Files): Likewise.
25337         * modules/posix_spawnp-tests (Files): Likewise.
25338         * modules/pread-tests (Files): Likewise.
25339         * modules/printf-posix-tests (Files): Likewise.
25340         * modules/pty-tests (Files): Likewise.
25341         * modules/random_r-tests (Files): Likewise.
25342         * modules/rawmemchr-tests (Files): Likewise.
25343         * modules/readlink-tests (Files): Likewise.
25344         * modules/remove-tests (Files): Likewise.
25345         * modules/rename-tests (Files): Likewise.
25346         * modules/renameat-tests (Files): Likewise.
25347         * modules/rmdir-tests (Files): Likewise.
25348         * modules/round-tests (Files): Likewise.
25349         * modules/roundf-tests (Files): Likewise.
25350         * modules/roundl-tests (Files): Likewise.
25351         * modules/select-tests (Files): Likewise.
25352         * modules/setenv-tests (Files): Likewise.
25353         * modules/sigaction-tests (Files): Likewise.
25354         * modules/sleep-tests (Files): Likewise.
25355         * modules/snprintf-posix-tests (Files): Likewise.
25356         * modules/snprintf-tests (Files): Likewise.
25357         * modules/sprintf-posix-tests (Files): Likewise.
25358         * modules/stat-tests (Files): Likewise.
25359         * modules/strcasestr-tests (Files): Likewise.
25360         * modules/strchrnul-tests (Files): Likewise.
25361         * modules/strerror-tests (Files): Likewise.
25362         * modules/strsignal-tests (Files): Likewise.
25363         * modules/strstr-tests (Files): Likewise.
25364         * modules/strtod-tests (Files): Likewise.
25365         * modules/strverscmp-tests (Files): Likewise.
25366         * modules/symlink-tests (Files): Likewise.
25367         * modules/symlinkat-tests (Files): Likewise.
25368         * modules/times-tests (Files): Likewise.
25369         * modules/trunc-tests (Files): Likewise.
25370         * modules/truncf-tests (Files): Likewise.
25371         * modules/truncl-tests (Files): Likewise.
25372         * modules/tsearch-tests (Files): Likewise.
25373         * modules/uname-tests (Files): Likewise.
25374         * modules/unlink-tests (Files): Likewise.
25375         * modules/unsetenv-tests (Files): Likewise.
25376         * modules/usleep-tests (Files): Likewise.
25377         * modules/utimensat-tests (Files): Likewise.
25378         * modules/vasprintf-tests (Files): Likewise.
25379         * modules/vdprintf-posix-tests (Files): Likewise.
25380         * modules/vfprintf-posix-tests (Files): Likewise.
25381         * modules/vprintf-posix-tests (Files): Likewise.
25382         * modules/vsnprintf-posix-tests (Files): Likewise.
25383         * modules/vsnprintf-tests (Files): Likewise.
25384         * modules/vsprintf-posix-tests (Files): Likewise.
25385         * modules/wcrtomb-tests (Files): Likewise.
25386         * modules/wcsnrtombs-tests (Files): Likewise.
25387         * modules/wcsrtombs-tests (Files): Likewise.
25388         * modules/wcwidth-tests (Files): Likewise.
25389         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25390         * tests/test-isinf.c (isinf): Likewise.
25391         * tests/test-isnan.c (isnan): Likewise.
25392         * tests/test-signbit.c (signbit): Likewise.
25393         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25394         declaration, either as macro or with correct signature.
25395         (select): Ensure function under test is declared with correct
25396         signature in correct header.
25397         * tests/test-atexit.c (atexit): Likewise.
25398         * tests/test-btowc.c (btowc): Likewise.
25399         * tests/test-canonicalize-lgpl.c (realpath)
25400         (canonicalize_file_name): Likewise.
25401         * tests/test-ceilf1.c (ceilf): Likewise.
25402         * tests/test-ceill.c (ceill): Likewise.
25403         * tests/test-chown.c (chown): Likewise.
25404         * tests/test-dprintf-posix.c (dprintf): Likewise.
25405         * tests/test-dup2.c (dup2): Likewise.
25406         * tests/test-dup3.c (dup3): Likewise.
25407         * tests/test-duplocale.c (duplocale): Likewise.
25408         * tests/test-fchdir.c (fchdir): Likewise.
25409         * tests/test-fchownat.c (fchownat): Likewise.
25410         * tests/test-fcntl.c (fcntl): Likewise.
25411         * tests/test-fdopendir.c (fdopendir): Likewise.
25412         * tests/test-fflush.c (fflush): Likewise.
25413         * tests/test-flock.c (flock): Likewise.
25414         * tests/test-floorf1.c (floorf): Likewise.
25415         * tests/test-floorl.c (floorl): Likewise.
25416         * tests/test-fnmatch.c (fnmatch): Likewise.
25417         * tests/test-fopen.c (fopen): Likewise.
25418         * tests/test-fprintf-posix.c (fprintf): Likewise.
25419         * tests/test-freopen.c (freopen): Likewise.
25420         * tests/test-frexp.c (frexp): Likewise.
25421         * tests/test-frexpl.c (frexpl): Likewise.
25422         * tests/test-fseek.c (fseek): Likewise.
25423         * tests/test-fseeko.c (fseeko): Likewise.
25424         * tests/test-fstatat.c (fstatat): Likewise.
25425         * tests/test-fsync.c (fsync): Likewise.
25426         * tests/test-ftell.c (ftell): Likewise.
25427         * tests/test-ftello.c (ftello): Likewise.
25428         * tests/test-futimens.c (futimens): Likewise.
25429         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25430         (gai_strerror): Likewise.
25431         * tests/test-getcwd.c (getcwd): Likewise.
25432         * tests/test-getdelim.c (getdelim): Likewise.
25433         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25434         * tests/test-getgroups.c (getgroups): Likewise.
25435         * tests/test-gethostname.c (gethostname): Likewise.
25436         * tests/test-getline.c (getline): Likewise.
25437         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25438         Likewise.
25439         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25440         * tests/test-glob.c (glob, globfree): Likewise.
25441         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25442         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25443         * tests/test-inet_pton.c (inet_pton): Likewise.
25444         * tests/test-isblank.c (isblank): Likewise.
25445         * tests/test-lchown.c (lchown): Likewise.
25446         * tests/test-ldexpl.c (ldexpl): Likewise.
25447         * tests/test-link.c (link): Likewise.
25448         * tests/test-linkat.c (linkat): Likewise.
25449         * tests/test-lseek.c (lseek): Likewise.
25450         * tests/test-lstat.c (lstat): Likewise.
25451         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25452         * tests/test-mbsinit.c (mbsinit): Likewise.
25453         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25454         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25455         * tests/test-memchr.c (memchr): Likewise.
25456         * tests/test-memcmp.c (memcmp): Likewise.
25457         * tests/test-memmem.c (memmem): Likewise.
25458         * tests/test-memrchr.c (memrchr): Likewise.
25459         * tests/test-mkdir.c (mkdir): Likewise.
25460         * tests/test-mkdirat.c (mkdirat): Likewise.
25461         * tests/test-mkfifo.c (mkfifo): Likewise.
25462         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25463         * tests/test-mknod.c (mknod): Likewise.
25464         * tests/test-nanosleep.c (nanosleep): Likewise.
25465         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25466         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25467         Likewise.
25468         * tests/test-open.c (open): Likewise.
25469         * tests/test-openat.c (openat): Likewise.
25470         * tests/test-perror.c (perror): Likewise.
25471         * tests/test-pipe2.c (pipe2): Likewise.
25472         * tests/test-poll.c (poll): Likewise.
25473         * tests/test-popen.c (popen, pclose): Likewise.
25474         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25475         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25476         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25477         (posix_spawn_file_actions_destroy)
25478         (posix_spawn_file_actions_addclose)
25479         (posix_spawn_file_actions_addopen)
25480         (posix_spawn_file_actions_adddup2): Likewise.
25481         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25482         * tests/test-pread.c (pread): Likewise.
25483         * tests/test-printf-posix.c (printf): Likewise.
25484         * tests/test-pty.c (openpty, forkpty): Likewise.
25485         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25486         (random_r): Likewise.
25487         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25488         * tests/test-readlink.c (readlink): Likewise.
25489         * tests/test-remove.c (remove): Likewise.
25490         * tests/test-rename.c (rename): Likewise.
25491         * tests/test-renameat.c (renameat): Likewise.
25492         * tests/test-rmdir.c (rmdir): Likewise.
25493         * tests/test-round1.c (round): Likewise.
25494         * tests/test-roundf1.c (roundf): Likewise.
25495         * tests/test-roundl.c (roundl): Likewise.
25496         * tests/test-setenv.c (setenv): Likewise.
25497         * tests/test-sigaction.c (sigaction): Likewise.
25498         * tests/test-sleep.c (sleep): Likewise.
25499         * tests/test-snprintf.c (snprintf): Likewise.
25500         * tests/test-sprintf-posix.c (sprintf): Likewise.
25501         * tests/test-stat.c (stat): Likewise.
25502         * tests/test-stpncpy.c (stpncpy): Likewise.
25503         * tests/test-strcasestr.c (strcasestr): Likewise.
25504         * tests/test-strchrnul.c (strchrnul): Likewise.
25505         * tests/test-strerror.c (strerror): Likewise.
25506         * tests/test-strsignal.c (strsignal): Likewise.
25507         * tests/test-strstr.c (strstr): Likewise.
25508         * tests/test-strtod.c (strtod): Likewise.
25509         * tests/test-strverscmp.c (strverscmp): Likewise.
25510         * tests/test-symlink.c (symlink): Likewise.
25511         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25512         * tests/test-times.c (times): Likewise.
25513         * tests/test-trunc1.c (trunc): Likewise.
25514         * tests/test-truncf1.c (truncf): Likewise.
25515         * tests/test-truncl.c (truncl): Likewise.
25516         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25517         Likewise.
25518         * tests/test-uname.c (uname): Likewise.
25519         * tests/test-unlink.c (unlink): Likewise.
25520         * tests/test-unlinkat.c (unlinkat): Likewise.
25521         * tests/test-unsetenv.c (unsetenv): Likewise.
25522         * tests/test-usleep.c (usleep): Likewise.
25523         * tests/test-utimensat.c (utimensat): Likewise.
25524         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25525         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25526         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
25527         * tests/test-vprintf-posix.c (vprintf): Likewise.
25528         * tests/test-vsnprintf.c (vsnprintf): Likewise.
25529         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
25530         * tests/test-wcrtomb.c (wcrtomb): Likewise.
25531         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
25532         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
25533         * tests/test-wcwidth.c (wcwidth): Likewise.
25534
25535         build: pull in conditional headers during GNULIB_POSIXCHECK
25536         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
25537         definitions from any conditionally-included headers.
25538         * lib/stdlib.in.h (includes): Likewise.
25539         * lib/unistd.in.h (includes): Likewise.
25540
25541 2009-12-24  Bruno Haible  <bruno@clisp.org>
25542
25543         * tests/test-argv-iter.c: Include header file being tested immediately
25544         after config.h.
25545         * tests/test-base64.c: Likewise.
25546         * tests/test-flock.c: Likewise.
25547         * tests/test-fsync.c: Likewise.
25548         * tests/test-getdate.c: Likewise.
25549         * tests/test-getndelim2.c: Likewise.
25550         * tests/test-isfinite.c: Likewise.
25551         * tests/test-isinf.c: Likewise.
25552         * tests/test-strerror.c: Likewise.
25553         * tests/test-strsignal.c: Likewise.
25554
25555 2009-12-23  Eric Blake  <ebb9@byu.net>
25556
25557         unistd: work around cygwin bug
25558         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
25559         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
25560         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25561
25562 2009-12-23  Bruno Haible  <bruno@clisp.org>
25563
25564         localename: More tests.
25565         * tests/test-localename.c (SIZEOF): New macro.
25566         (categories): New variable.
25567         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
25568         test_locale_name_default): Add test w.r.t. thread locale.
25569         (test_locale_name_thread): New function.
25570         (main): Invoke it.
25571
25572         localename: Make aware of thread locale.
25573         * lib/localename.h (gl_locale_name_thread): New declaration.
25574         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
25575         behaviour with respect to thread locale.
25576         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
25577         <langinfo.h>, glthread/lock.h.
25578         (SIZE_BITS): New macro.
25579         (string_hash): New function.
25580         (struct hash_node): New type.
25581         (HASH_TABLE_SIZE): New macro.
25582         (struniq_hash_table, struniq_lock): New variables.
25583         (struniq): New function.
25584         (gl_locale_name_thread): New function.
25585         (gl_locale_name): Invoke it.
25586         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
25587         * modules/localename (Depends-on): Add lock.
25588         Reported by Mike Gran <spk121@yahoo.com>.
25589
25590 2009-12-23  Eric Blake  <ebb9@byu.net>
25591
25592         va-args: new module
25593         * modules/va-args: New file.
25594         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
25595         * MODULES.html.sh (Core language properties): Mention it.
25596
25597         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
25598         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
25599         named alias for __attribute__((__unused__)).
25600         * lib/chown.c: Update client.
25601         * lib/fchmodat.c: Likewise.
25602         * lib/fts.c: Likewise.
25603         * lib/getdate.y: Likewise.
25604         * lib/getgroups.c: Likewise.
25605         * lib/getopt.c: Likewise.
25606         * lib/getugroups.c: Likewise.
25607         * lib/mkdir.c: Likewise.
25608         * lib/mkfifo.c: Likewise.
25609         * lib/mkfifoat.c: Likewise.
25610         * lib/mknod.c: Likewise.
25611         * lib/mknodat.c: Likewise.
25612         * lib/readlink.c: Likewise.
25613         * lib/se-context.in.h: Likewise.
25614         * lib/se-selinux.in.h: Likewise.
25615         * lib/sockets.c: Likewise.
25616         * lib/symlink.c: Likewise.
25617         * lib/symlinkat.c: Likewise.
25618         * lib/unicodeio.c: Likewise.
25619         * lib/unistr.h: Likewise.
25620         * tests/test-areadlink.c: Likewise.
25621         * tests/test-areadlinkat.c: Likewise.
25622         * tests/test-filenamecat.c: Likewise.
25623         * tests/test-fseeko.c: Likewise.
25624         * tests/test-ftello.c: Likewise.
25625         * tests/test-getdate.c: Likewise.
25626         * tests/test-getgroups.c: Likewise.
25627         * tests/test-gethostname.c: Likewise.
25628         * tests/test-quotearg.c: Likewise.
25629         * tests/test-version-etc.c: Likewise.
25630         * tests/test-xalloc-die.c: Likewise.
25631         * tests/test-xfprintf-posix.c: Likewise.
25632         * tests/test-xprintf-posix.c: Likewise.
25633         * tests/test-xvasprintf.c: Likewise.
25634
25635         tests: avoid compiler warnings
25636         * tests/test-fcntl.c (main): Delete unused parameters.
25637         * tests/test-freopen-safer.c (main): Likewise.
25638         * tests/test-xalloc-die.c (main): Mark unused parameters.
25639         * tests/test-fseeko.c (main): Likewise.
25640         * tests/test-ftello.c (main): Likewise.
25641         * tests/test-nanosleep.c (main): Avoid declaration warning.
25642         * tests/test-sleep.c (main): Likewise.
25643         * tests/test-unsetenv.c (main): Silence warning about string
25644         literal.
25645         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25646
25647 2009-12-23  Bruno Haible  <bruno@clisp.org>
25648
25649         * tests/test-localename.c (test_locale_name): New function, extracted
25650         from main. Also test mixed situations.
25651         (test_locale_name_posix, test_locale_name_environ,
25652         test_locale_name_default): New functions.
25653         (main): Invoke them all.
25654         * modules/localename-tests (configure.ac): Test for newlocale.
25655
25656 2009-12-23  Bruno Haible  <bruno@clisp.org>
25657
25658         unistd: Ensure getcwd gets declared before being overridden.
25659         * lib/unistd.in.h: Conditionally include <io.h>.
25660
25661 2009-12-22  Bruno Haible  <bruno@clisp.org>
25662
25663         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25664         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25665         (gl_WCHAR_H): Invoke it.
25666         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25667         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25668         Reported by Karl Berry <karl@freefriends.org>.
25669
25670 2009-12-22  Eric Blake  <ebb9@byu.net>
25671
25672         math, unistd: avoid redundant includes
25673         * lib/math.in.h (isnan): No need to re-include <math.h>.
25674         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25675
25676         getsubopt: work around cygwin bug
25677         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25678         avoid conflicting with system getsubopt.
25679         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25680         bug.
25681
25682         getopt: synchronize from glibc
25683         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25684         parameter order.  Adjust all callers.
25685         (_getopt_internal_r, main): Adjust quoting in error messages.
25686         Drop considerations for outdated POSIX 1003.2 error message.
25687         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25688         callers.
25689         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25690
25691         test-getopt: test stderr behavior
25692         * modules/getopt-posix-tests (Depends-on): Add dup2.
25693         * tests/test-getopt.c (ASSERT): Avoid stderr.
25694         (main): Move stderr to a temporary file.
25695         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
25696         Instead, add parameter to inform caller if output occurred.
25697         (test_getopt): Adjust all existing tests to expect silence, and
25698         add new tests of leading ":".
25699         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25700         glibc shortcomings with leading "-:" or "+:" in optstring.
25701         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25702         Likewise.
25703         * doc/posix-functions/getopt.texi (getopt): Likewise.
25704
25705         test-getopt: enhance test
25706         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
25707         supports optind=0.
25708         * tests/test-getopt.c (OPTIND_MIN): Move...
25709         * tests/test-getopt.h (OPTIND_MIN): ...here.
25710         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
25711         Require that optind=0 works, since modern BSD supports it in
25712         addition to optreset, and since coreutils expects it.
25713         (test_getopt_long_only): New test.
25714         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25715         glibc shortcomings with 'W;', and enforcement of optind=0.
25716         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25717         Likewise.
25718
25719 2009-12-21  Bruno Haible  <bruno@clisp.org>
25720
25721         localename: Improvements for MacOS X and Cygwin.
25722         * lib/localename.h (gl_locale_name_environ): New declaration.
25723         * lib/localename.c (gl_locale_name_environ): New function, extracted from
25724         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
25725         (gl_locale_name_posix): Invoke it.
25726         (gl_locale_name_default): Add comments. Use Windows native API also on
25727         Cygwin.
25728
25729 2009-12-21  Bruno Haible  <bruno@clisp.org>
25730
25731         Update list of Win32 locale ids.
25732         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
25733         (LANG_SAMI): Renamed from LANG_SAAMI.
25734         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
25735         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
25736         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
25737         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
25738         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
25739         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
25740         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
25741         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
25742         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
25743         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
25744         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
25745         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
25746         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
25747         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
25748         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
25749         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
25750         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
25751         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
25752         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
25753         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
25754         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
25755         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
25756         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
25757         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
25758         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
25759         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
25760         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
25761         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
25762         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
25763         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
25764         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
25765         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
25766         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
25767         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
25768         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
25769         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
25770         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
25771         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
25772         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
25773         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
25774         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
25775         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
25776         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
25777         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
25778         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
25779         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
25780         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
25781         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
25782         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
25783         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
25784         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
25785         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
25786         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
25787         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
25788         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
25789         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
25790         Add more languages and countries for Sami, Sorbian. Add more countries
25791         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
25792         for Pashto. Change country for Syriac, Tswana.
25793
25794 2009-12-21  Eric Blake  <ebb9@byu.net>
25795
25796         test-utimens: avoid spurious failure
25797         * tests/test-chown.h (nap): Factor...
25798         * tests/nap.h: ...into new file.
25799         * tests/test-lchown.h (nap): Avoid duplication.
25800         * tests/test-utimens-common.h (nap): Use shared implementation,
25801         necessary on file systems with 1-second resolution.
25802         * modules/chown-tests (Files): Include new file.
25803         * modules/fdutimensat-tests (Files): Likewise.
25804         * modules/futimens-tests (Files): Likewise.
25805         * modules/lchown-tests (Files): Likewise.
25806         * modules/openat-tests (Files): Likewise.
25807         * modules/utimens-tests (Files): Likewise.
25808         * modules/utimensat-tests (Files): Likewise.
25809
25810 2009-12-19  Eric Blake  <ebb9@byu.net>
25811
25812         futimens, utimensat: work around Linux bug
25813         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
25814         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25815         * lib/utimensat.c (rpl_utimensat): Work around it.
25816         * lib/futimens.c (rpl_futimens): Adjust comment.
25817
25818         utimens: work around Linux ctime bug
25819         * lib/utimens.c (detect_ctime_bug): New helper function.
25820         (update_timespec): Differentiate between workaround needed for
25821         this bug vs. what is needed for systems that lack utimensat.
25822         (fdutimens, lutimens): Work around bug.
25823
25824         utimens: check for ctime update
25825         * tests/test-utimens-common.h (check_ctime): Define.
25826         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
25827         * tests/test-futimens.h (test_futimens): Likewise.
25828         * tests/test-lutimens.h (test_lutimens): Likewise.
25829         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25830         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25831
25832 2009-12-19  Bruno Haible  <bruno@clisp.org>
25833
25834         dprintf-posix: Check against memory leak fixed on 2009-12-15.
25835         * tests/test-dprintf-posix2.sh: New file.
25836         * tests/test-dprintf-posix2.c: New file.
25837         * modules/dprintf-posix-tests (Files): Add them.
25838         (configure.ac): Check for getrlimit and setrlimit.
25839         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25840
25841 2009-12-19  Bruno Haible  <bruno@clisp.org>
25842
25843         fprintf-posix: Check against memory leak fixed on 2009-12-15.
25844         * tests/test-fprintf-posix3.sh: New file.
25845         * tests/test-fprintf-posix3.c: New file.
25846         * modules/fprintf-posix-tests (Files): Add them.
25847         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25848
25849 2009-12-19  Eric Blake  <ebb9@byu.net>
25850
25851         dirfd: fix prototype
25852         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
25853         * lib/dirfd.c (dirfd): Likewise.
25854
25855         canonicalize: reduce memory usage
25856         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
25857         allocation to size.
25858         Reported by Solar Designer <solar@openwall.com>.
25859
25860 2009-12-19  Bruno Haible  <bruno@clisp.org>
25861
25862         New module attribute 'Applicability'.
25863         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
25864         * gnulib-tool: New option --extract-applicability.
25865         (func_usage): Document it.
25866         (sed_extract_prog): Recognize it.
25867         (func_get_applicability): New function.
25868         (func_import): Generalize handling of 'link-warning' module.
25869         * modules/link-warning (Applicability): New section.
25870         * modules/arg-nonnull (Applicability): New section.
25871         Repoted by Simon Josefsson <simon@josefsson.org>.
25872
25873 2009-12-19  Bruno Haible  <bruno@clisp.org>
25874
25875         fflush: tweak
25876         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
25877         * lib/fseeko.c (rpl_fseeko): Likewise.
25878
25879 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
25880
25881         * lib/gl_list.h: Fix typo in comment.
25882
25883 2009-12-16  Eric Blake  <ebb9@byu.net>
25884
25885         fcntl: use to simplify other modules
25886         * modules/cloexec (Depends-on): Add fcntl.
25887         * modules/fchdir (Depends-on): Likewise.
25888         * modules/fd-safer-flag (Depends-on): Likewise.
25889         * modules/unistd-safer (Depends-on): Likewise.
25890         * modules/dup3 (configure.ac): Set module indicator.
25891         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
25892         missing.
25893         * lib/fchdir.c (_gl_register_dup): Fix comment.
25894         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
25895         * lib/dup-safer.c (dup_safer): Likewise.
25896         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
25897         * lib/dup3.c (dup3): Likewise.
25898         * tests/test-fchdir.c (main): Enhance test.
25899         Fixes a dup_cloexec bug reported by Ondřej Vašík.
25900
25901         fcntl: port portions of fcntl to mingw
25902         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
25903         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
25904         replacement for mingw.
25905         * modules/fcntl (Description): Update.
25906         (Depends-on): Add dup2.
25907         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
25908         * modules/fcntl-h (Makefile.am): Substitute it.
25909         * lib/fcntl.in.h (fcntl): Update declaration.
25910         (F_DUPFD, F_GETFD): New macros, when needed.
25911         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25912         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
25913         * tests/test-fcntl.c (check_flags, main): Enhance test for items
25914         we now guarantee.
25915
25916         fcntl: work around cygwin bug in F_DUPFD
25917         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
25918         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
25919         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
25920         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
25921         * doc/posix-functions/fcntl.texi (fcntl): Document it.
25922
25923         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
25924         * modules/fcntl (Files): List new files.
25925         (configure.ac): Run a test.
25926         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
25927         * lib/fcntl.c (rpl_fcntl): Likewise.
25928         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
25929         (gl_FCNTL_H): Always replace fcntl.h.
25930         * modules/fcntl-h (Makefile.am): Substitute witnesses.
25931         * lib/fcntl.in.h (fcntl): Declare replacement.
25932         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
25933         needed, plus a witness.
25934         * doc/posix-functions/fcntl.texi (fcntl): Document this.
25935         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25936         * tests/test-fcntl.c: New file.
25937         * modules/fcntl-tests: Likewise.
25938
25939         binary-io: avoid potential compilation warning
25940         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
25941         directives.
25942
25943         fflush: avoid compilation error on NetBSD
25944         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
25945         between off_t and fpos_t, since the latter is sometimes a struct.
25946         * lib/fseeko.c (rpl_fseeko): Likewise.
25947         Reported by Alexander Nasonov <alnsn@yandex.ru>.
25948
25949 2009-12-15  Eric Blake  <ebb9@byu.net>
25950
25951         fcntl-h, stdio, sys_ioctl: fix declarations
25952         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
25953         function must not take arguments.
25954         * lib/sys_ioctl.in.h (ioctl): Likewise.
25955         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
25956         (open): Add a link warning.
25957
25958 2009-12-15  Jim Meyering  <meyering@redhat.com>
25959
25960         areadlink, areadlink-with-size: relax license to LGPLv2+
25961         * modules/areadlink (License): Relax to LGPLv2+.
25962         * modules/areadlink-with-size (License): Likewise.
25963
25964 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
25965             Bruno Haible  <bruno@clisp.org>
25966
25967         *printf: Fix memory leak.
25968         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
25969         * lib/vfprintf.c (vfprintf): Likewise.
25970         * lib/dprintf.c (dprintf): Likewise.
25971         * lib/vdprintf.c (vdprintf): Likewise.
25972
25973 2009-12-14  Eric Blake  <ebb9@byu.net>
25974
25975         accept4: adjust module dependencies
25976         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
25977
25978         utimens: one more try at avoiding compiler warning
25979         * lib/utimens.c (lutimens): Lower scope of result.
25980
25981 2009-12-13  Bruno Haible  <bruno@clisp.org>
25982
25983         Move the malloc checking from module 'list' to new module 'xlist'.
25984         * modules/xlist: New file.
25985         * lib/gl_xlist.h: New file.
25986         * lib/gl_xlist.c: New file.
25987         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
25988         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
25989         gl_list_add_last, gl_list_add_before, gl_list_add_after,
25990         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
25991         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
25992         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
25993         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
25994         gl_sortedlist_nx_add): New declarations.
25995         (struct gl_list_implementation): Rename and change methods accordingly.
25996         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
25997         (gl_list_nx_create): Renamed from gl_list_create.
25998         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25999         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26000         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26001         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26002         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26003         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26004         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26005         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26006         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
26007         gl_list_create_empty.
26008         (gl_list_nx_create): Renamed from gl_list_create.
26009         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26010         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26011         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26012         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26013         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26014         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26015         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26016         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26017         * lib/gl_array_list.c: Don't include xalloc.h.
26018         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
26019         NULL upon out-of-memory.
26020         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
26021         out-of-memory.
26022         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
26023         Change return type to 'int'.
26024         (gl_array_nx_set_at): Renamed from gl_array_set_at.
26025         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26026         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
26027         upon out-of-memory.
26028         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
26029         upon out-of-memory.
26030         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
26031         upon out-of-memory.
26032         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
26033         upon out-of-memory.
26034         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
26035         out-of-memory.
26036         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
26037         Update.
26038         (gl_array_list_implementation): Update.
26039         * lib/gl_carray_list.c: Don't include xalloc.h.
26040         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
26041         Return NULL upon out-of-memory.
26042         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
26043         out-of-memory.
26044         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
26045         Change return type to 'int'.
26046         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
26047         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26048         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
26049         upon out-of-memory.
26050         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
26051         upon out-of-memory.
26052         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
26053         out-of-memory.
26054         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
26055         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
26056         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
26057         Update.
26058         (gl_carray_list_implementation): Update.
26059         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
26060         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
26061         gl_linked_create_empty. Return NULL upon out-of-memory.
26062         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
26063         out-of-memory.
26064         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
26065         Change return type to 'int'. Return -1 upon out-of-memory.
26066         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
26067         out-of-memory.
26068         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
26069         upon out-of-memory.
26070         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
26071         upon out-of-memory.
26072         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
26073         NULL upon out-of-memory.
26074         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
26075         upon out-of-memory.
26076         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
26077         out-of-memory.
26078         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
26079         Update.
26080         * lib/gl_linked_list.c: Don't include xalloc.h.
26081         (gl_linked_list_implementation): Update.
26082         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
26083         (add_to_bucket): Change return type to 'int'.
26084         (gl_linkedhash_list_implementation): Update.
26085         * lib/gl_anytree_list1.h (free_subtree): New function.
26086         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
26087         gl_tree_create_empty. Return NULL upon out-of-memory.
26088         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
26089         Change return type to 'int'. Return -1 upon out-of-memory.
26090         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
26091         out-of-memory.
26092         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
26093         (gl_tree_remove_node): New function, moved here from
26094         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
26095         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
26096         Update.
26097         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
26098         malloc, not xmalloc. Return NULL upon out-of-memory.
26099         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26100         out-of-memory.
26101         (gl_tree_remove_node_from_tree): New function, extracted from
26102         gl_tree_remove_node.
26103         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26104         upon out-of-memory.
26105         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26106         out-of-memory.
26107         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26108         upon out-of-memory.
26109         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26110         upon out-of-memory.
26111         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26112         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
26113         not xmalloc. Return NULL upon out-of-memory.
26114         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26115         out-of-memory.
26116         (gl_tree_remove_node_from_tree): New function, extracted from
26117         gl_tree_remove_node.
26118         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
26119         upon out-of-memory.
26120         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
26121         out-of-memory.
26122         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
26123         upon out-of-memory.
26124         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
26125         upon out-of-memory.
26126         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
26127         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
26128         gl_anytree_list1.h before gl_anyavltree_list2.h.
26129         (gl_avltree_list_implementation): Update.
26130         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
26131         gl_anytree_list1.h before gl_anyavltree_list2.h.
26132         (gl_rbtree_list_implementation): Update.
26133         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
26134         Change return type to 'int'. Return -1 upon out-of-memory. Use
26135         __builtin_expect.
26136         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
26137         (gl_avltreehash_list_implementation): Update.
26138         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
26139         (gl_rbtreehash_list_implementation): Update.
26140         * modules/array-list (Depends-on): Remove xalloc.
26141         * modules/carray-list (Depends-on): Likewise.
26142         * modules/linked-list (Depends-on): Likewise.
26143         * modules/linkedhash-list (Depends-on): Likewise.
26144         * modules/avltree-list (Depends-on): Likewise.
26145         * modules/rbtree-list (Depends-on): Likewise.
26146         * modules/avltreehash-list (Depends-on): Likewise.
26147         * modules/rbtreehash-list (Depends-on): Likewise.
26148
26149         * modules/xsublist: New file.
26150         * lib/gl_xsublist.h: New file.
26151         * lib/gl_xsublist.c: New file.
26152         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
26153         (gl_sublist_nx_create): New declaration.
26154         * lib/gl_sublist.c: Don't include xalloc.h.
26155         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
26156         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
26157         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
26158         Change return type to 'int'. Return -1 upon out-of-memory.
26159         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
26160         upon out-of-memory.
26161         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
26162         NULL upon out-of-memory.
26163         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
26164         upon out-of-memory.
26165         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
26166         NULL upon out-of-memory.
26167         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
26168         NULL upon out-of-memory.
26169         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
26170         upon out-of-memory.
26171         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
26172         (gl_sublist_list_implementation): Update.
26173         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
26174         upon out-of-memory.
26175         * modules/sublist (Depends-on): Remove xalloc.
26176
26177         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
26178         * tests/test-carray_list.c: Likewise.
26179         * tests/test-linked_list.c: Likewise.
26180         * tests/test-linkedhash_list.c: Likewise.
26181         * tests/test-avltree_list.c: Likewise.
26182         * tests/test-rbtree_list.c: Likewise.
26183         * tests/test-avltreehash_list.c: Likewise.
26184         * tests/test-rbtreehash_list.c: Likewise.
26185         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
26186         * modules/carray-list-tests (Makefile.am): Likewise.
26187         * modules/linked-list-tests (Makefile.am): Likewise.
26188         * modules/linkedhash-list-tests (Makefile.am): Likewise.
26189         * modules/avltree-list-tests (Makefile.am): Likewise.
26190         * modules/rbtree-list-tests (Makefile.am): Likewise.
26191         * modules/avltreehash-list-tests (Makefile.am): Likewise.
26192         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26193
26194         * NEWS: Mention the changes.
26195
26196         * lib/clean-temp.c: Include gl_xlist.h.
26197         * modules/clean-temp (Depends-on): Add xlist.
26198
26199         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
26200         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
26201
26202         * tests/test-array_oset.c: Include gl_xlist.h.
26203         * modules/array-oset-tests (Depends-on): Add xlist.
26204
26205         Reported by José E. Marchesi <jemarch@gnu.org>.
26206
26207 2009-12-13  Bruno Haible  <bruno@clisp.org>
26208
26209         Move the malloc checking from module 'oset' to new module 'xoset'.
26210         * modules/xoset: New file.
26211         * lib/gl_xoset.h: New file.
26212         * lib/gl_xoset.c: New file.
26213         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
26214         declarations.
26215         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
26216         (struct gl_oset_implementation): Rename and change methods accordingly.
26217         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
26218         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26219         'int'. Mark as __warn_unused_result__.
26220         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
26221         gl_oset_create_empty.
26222         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
26223         'int'.
26224         * lib/gl_array_oset.c: Don't include xalloc.h.
26225         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
26226         malloc, not xmalloc.
26227         (grow): Change return type to 'int'. Don't call xalloc_die.
26228         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
26229         to 'int'.
26230         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
26231         'int'.
26232         (gl_array_oset_implementation): Update.
26233         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
26234         gl_tree_create_empty.
26235         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
26236         'int'.
26237         * lib/gl_avltree_oset.c: Don't include xalloc.h.
26238         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26239         xmalloc.
26240         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26241         not xmalloc.
26242         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26243         xmalloc.
26244         (gl_avltree_oset_implementation): Update.
26245         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
26246         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
26247         xmalloc.
26248         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
26249         not xmalloc.
26250         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
26251         xmalloc.
26252         (gl_rbtree_oset_implementation): Update.
26253         * modules/array-oset (Depends-on): Remove xalloc.
26254         * modules/avltree-oset (Depends-on): Likewise.
26255         * modules/rbtree-oset (Depends-on): Likewise.
26256         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
26257         * tests/test-avltree_oset.c: Likewise.
26258         * tests/test-rbtree_oset.c: Likewise.
26259         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26260         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
26261         * modules/rbtree-oset-tests (Makefile.am): Likewise.
26262         * NEWS: Mention the change.
26263
26264 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
26265
26266         maint.mk: allow a project to override release-prep commands
26267         * top/maint.mk (alpha, beta, stable): Move release-preparatory
26268         commands into a new rule.
26269         (release-prep): New rule.
26270         (release-prep-hook): New overridable variable.
26271
26272 2009-12-13  Bruno Haible  <bruno@clisp.org>
26273
26274         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
26275
26276 2009-12-13  Jim Meyering  <meyering@redhat.com>
26277
26278         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
26279         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
26280
26281 2009-12-12  Bruno Haible  <bruno@clisp.org>
26282
26283         duplocale: Tweak.
26284         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
26285
26286 2009-12-12  Karl Berry  <karl@gnu.org>
26287
26288         * config/srclist.txt (strtoll.c): tab changes, no more sync.
26289
26290 2009-12-12  Bruno Haible  <bruno@clisp.org>
26291
26292         * m4/po.m4: Undo incorrect untabification.
26293
26294 2009-12-12  Bruno Haible  <bruno@clisp.org>
26295
26296         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
26297         * modules/c-strtod (Depends-on): Add locale.
26298         * modules/c-strtold (Depends-on): Likewise.
26299
26300 2009-12-12  Bruno Haible  <bruno@clisp.org>
26301
26302         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
26303
26304 2009-12-11  Eric Blake  <ebb9@byu.net>
26305
26306         setenv: relax requirement in light of POSIX ruling
26307         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
26308         not NULL.
26309         * tests/test-setenv.c (main): Relax test.
26310         * tests/test-unsetenv.c (main): Likewise.
26311         * doc/posix-functions/setenv.texi (setenv): Document this.
26312         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26313
26314 2009-12-11  Bruno Haible  <bruno@clisp.org>
26315
26316         New module 'fd-safer-flag'.
26317         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26318         * lib/dup-safer.c (dup_safer_flag): Remove function.
26319         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26320         * lib/fd-safer.c (fd_safer_flag): Remove function.
26321         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26322         * modules/cloexec (configure.ac): Drop indicator macro.
26323         * modules/fd-safer-flag: New file.
26324         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26325         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26326         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26327
26328 2009-12-11  Bruno Haible  <bruno@clisp.org>
26329
26330         Tests for module 'nl_langinfo'.
26331         * modules/nl_langinfo-tests: New file.
26332         * tests/test-nl_langinfo.sh: New file.
26333         * tests/test-nl_langinfo.c: New file.
26334
26335         New module 'nl_langinfo'.
26336         * lib/nl_langinfo.c: New file.
26337         * m4/nl_langinfo.m4: New file.
26338         * modules/nl_langinfo: New file.
26339         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26340
26341 2009-12-11  Bruno Haible  <bruno@clisp.org>
26342
26343         Tests for module 'langinfo'.
26344         * modules/langinfo-tests: New file.
26345         * tests/test-langinfo.c: New file.
26346
26347         New module 'langinfo'.
26348         * lib/langinfo.in.h: New file.
26349         * m4/langinfo_h.m4: New file.
26350         * modules/langinfo: New file.
26351         * doc/posix-headers/langinfo.texi: Mention the new module.
26352
26353 2009-12-11  Bruno Haible  <bruno@clisp.org>
26354
26355         * lib/config.charset: Untabify.
26356
26357 2009-12-11  Bruno Haible  <bruno@clisp.org>
26358
26359         * modules/unistd-safer (configure.ac): Drop indicator macro.
26360
26361 2009-12-11  Bruno Haible  <bruno@clisp.org>
26362
26363         Move pipe2-safer code to its own file.
26364         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26365         * lib/pipe-safer.c (pipe2_safer): Remove function.
26366         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26367         (Makefile.am): Add it to lib_SOURCES.
26368
26369 2009-12-10  Bruno Haible  <bruno@clisp.org>
26370
26371         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26372
26373 2009-12-10  Bruno Haible  <bruno@clisp.org>
26374
26375         Declare which arguments expect non-NULL values, for GCC and clang.
26376         * build-aux/arg-nonnull.h: New file.
26377         * modules/arg-nonnull: New file.
26378         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26379         (inet_ntop, inet_pton): Use it.
26380         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26381         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26382         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26383         (open, openat): Use it.
26384         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26385         (fnmatch): Use it.
26386         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26387         (getopt, getopt_long, getopt_long_only): Use it.
26388         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26389         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26390         Use it.
26391         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26392         (iconv_open): Use it.
26393         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26394         (strtoimax, strtoumax): Use it.
26395         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26396         (duplocale): Use it.
26397         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26398         (frexp, frexpl): Use it.
26399         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26400         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26401         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26402         (tsearch, tfind, tdelete, twalk): Use it.
26403         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26404         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26405         sigpending): Use it.
26406         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26407         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26408         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26409         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26410         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26411         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26412         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26413         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26414         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26415         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26416         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26417         Use it.
26418         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26419         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26420         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26421         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26422         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26423         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26424         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26425         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26426         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26427         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26428         strtoull, unsetenv): Use it.
26429         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26430         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26431         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26432         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26433         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26434         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26435         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26436         (strcasecmp, strncasecmp): Use it.
26437         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26438         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26439         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26440         rpl_setsockopt): Use it.
26441         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26442         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26443         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26444         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26445         (gettimeofday): Use it.
26446         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26447         (times): Use it.
26448         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26449         (uname): Use it.
26450         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26451         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26452         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26453         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26454         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26455         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26456         unlinkat, write): Use it.
26457         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26458         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26459         * lib/argv-iter.h: Include arg-nonnull.h.
26460         (_ATTRIBUTE_NONNULL_): Remove macro.
26461         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26462         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26463         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26464         optimization.
26465         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26466         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26467         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26468         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26469         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26470         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26471         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26472         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26473         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26474         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26475         * modules/dirent (Depends-on): Add arg-nonnull.
26476         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26477         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26478         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26479         * modules/fnmatch (Depends-on): Add arg-nonnull.
26480         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26481         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26482         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26483         * modules/glob (Depends-on): Add arg-nonnull.
26484         (Makefile.am): Insert arg-nonnull.h into glob.h.
26485         * modules/iconv_open (Depends-on): Add arg-nonnull.
26486         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26487         * modules/inttypes (Depends-on): Add arg-nonnull.
26488         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26489         * modules/locale (Depends-on): Add arg-nonnull.
26490         (Makefile.am): Insert arg-nonnull.h into locale.h.
26491         * modules/math (Depends-on): Add arg-nonnull.
26492         (Makefile.am): Insert arg-nonnull.h into math.h.
26493         * modules/netdb (Depends-on): Add arg-nonnull.
26494         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26495         * modules/search (Depends-on): Add arg-nonnull.
26496         (Makefile.am): Insert arg-nonnull.h into search.h.
26497         * modules/signal (Depends-on): Add arg-nonnull.
26498         (Makefile.am): Insert arg-nonnull.h into signal.h.
26499         * modules/spawn (Depends-on): Add arg-nonnull.
26500         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26501         * modules/stdio (Depends-on): Add arg-nonnull.
26502         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26503         * modules/stdlib (Depends-on): Add arg-nonnull.
26504         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26505         * modules/string (Depends-on): Add arg-nonnull.
26506         (Makefile.am): Insert arg-nonnull.h into string.h.
26507         * modules/strings (Depends-on): Add arg-nonnull.
26508         (Makefile.am): Insert arg-nonnull.h into strings.h.
26509         * modules/sys_socket (Depends-on): Add arg-nonnull.
26510         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26511         * modules/sys_stat (Depends-on): Add arg-nonnull.
26512         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26513         * modules/sys_time (Depends-on): Add arg-nonnull.
26514         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26515         * modules/sys_times (Depends-on): Add arg-nonnull.
26516         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26517         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26518         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26519         * modules/time (Depends-on): Add arg-nonnull.
26520         (Makefile.am): Insert arg-nonnull.h into time.h.
26521         * modules/unistd (Depends-on): Add arg-nonnull.
26522         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26523         * modules/wchar (Depends-on): Add arg-nonnull.
26524         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26525         * modules/argv-iter (Depends-on): Add arg-nonnull.
26526         * tests/test-canonicalize.c (null_ptr): New function.
26527         (main): Use it.
26528         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
26529         (main): Use it.
26530         * tests/test-memmem.c (null_ptr): New function.
26531         (main): Use it.
26532         Reported by Jim Meyering.
26533
26534 2009-12-10  Bruno Haible  <bruno@clisp.org>
26535
26536         Use spaces for indentation, not tabs.
26537         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26538         * m4/*.m4: Untabify.
26539         * build-aux/*.h: Untabify.
26540         * tests/**/*.[hc]: Untabify.
26541         * README: New section "Indent with spaces, not TABs", based on
26542         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
26543         * NEWS: Mention the change.
26544
26545 2009-12-10  Bruno Haible  <bruno@clisp.org>
26546
26547         pty test: Fix link error.
26548         * modules/pty-tests (Makefile.am): Add the default LDADD value to
26549         test_pty_LDADD.
26550
26551 2009-12-07  Simon Josefsson  <simon@josefsson.org>
26552
26553         * modules/pty: New file.
26554         * modules/pty-tests: New file.
26555         * m4/pty.m4: New file.
26556         * tests/test-pty.c: New file.
26557         * doc/glibc-headers/pty.texi: Modified.
26558         * doc/glibc-functions/forkpty.texi: Modified.
26559         * doc/glibc-functions/openpty.texi: Modified.
26560
26561 2009-12-10  Bruno Haible  <bruno@clisp.org>
26562
26563         Avoid syntax error in C++ mode.
26564         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
26565
26566 2009-12-10  Bruno Haible  <bruno@clisp.org>
26567
26568         Use sed with option -e.
26569         * gnulib-tool (func_version, func_emit_copyright_notice,
26570         func_emit_initmacro_end, func_import, func_create_testdir): Pass
26571         option -e to sed.
26572         * modules/link-warning (Makefile.am): Likewise.
26573
26574 2009-12-10  Jim Meyering  <meyering@redhat.com>
26575
26576         mgetgroups: do not write bytes beyond end of malloc'd buffer
26577         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
26578         username, we call getgroups with a one-element-shorter buffer,
26579         but still told it the length was original, max_n_groups.
26580
26581 2009-12-09  Eric Blake  <ebb9@byu.net>
26582
26583         cloexec: relax license
26584         * modules/cloexec (Maintainer): Add myself.
26585         (License): Use LGPL, not GPL.
26586
26587         link-warning: optimize generation
26588         * modules/link-warning (Makefile.am): Reduce process usage.
26589
26590 2009-12-09  Bruno Haible  <bruno@clisp.org>
26591
26592         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
26593         workaround was added on 2009-11-17.
26594
26595 2009-12-09  Jim Meyering  <meyering@redhat.com>
26596             Bruno Haible  <bruno@clisp.org>
26597
26598         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26599         * modules/link-warning (Makefile.am): Make the comment-removing sed
26600         command more robust in the face of bootstrap-prepended comment lines.
26601
26602 2009-12-09  Bruno Haible  <bruno@clisp.org>
26603
26604         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
26605         most one group.
26606
26607 2009-12-09  Simon Josefsson <simon@josefsson.org>
26608             Bruno Haible  <bruno@clisp.org>
26609
26610         * build-aux/link-warning.h: Add copyright notice.
26611         * modules/link-warning (Makefile.am): Generate link-warning.h from
26612         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
26613         * NEWS: Mention change in link-warning module.
26614         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
26615         * modules/dirent (Makefile.am): Add dependency to dirent.h.
26616         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
26617         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26618         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26619         * modules/math (Makefile.am): Add dependency to math.h.
26620         * modules/search (Makefile.am): Add dependency to search.h.
26621         * modules/signal (Makefile.am): Add dependency to signal.h.
26622         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26623         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26624         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26625         * modules/string (Makefile.am): Add dependency to string.h.
26626         * modules/strings (Makefile.am): Add dependency to strings.h.
26627         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26628         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26629         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26630         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26631         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26632         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26633         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26634         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26635         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26636
26637 2009-12-09  Bruno Haible  <bruno@clisp.org>
26638
26639         fchdir: Optimize away rpl_fstat when possible.
26640         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26641         REPLACE_OPEN_DIRECTORY.
26642         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26643
26644 2009-12-09  Bruno Haible  <bruno@clisp.org>
26645
26646         * lib/fchdir.c: Update comment.
26647
26648 2009-12-09  Bruno Haible  <bruno@clisp.org>
26649
26650         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26651
26652 2009-12-08  Eric Blake  <ebb9@byu.net>
26653
26654         fchdir: avoid memory leak on re-registration.
26655         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26656
26657 2009-12-08  Jim Meyering  <meyering@redhat.com>
26658
26659         init.sh: avoid Solaris 10 /bin/sh portability problem
26660         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26661         sourced script:
26662           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26663           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26664           bar
26665         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26666         and two tests used that idiom.
26667         * tests/init.sh: Update suggested usage comments.
26668         (path_prepend_): New function, to be used in place
26669         of the --src-path=DIR option.
26670         (setup_): Move PATH-prepending code into path_prepend_.
26671         * tests/test-pread.sh: Adapt to new usage.
26672         * tests/test-xalloc-die.sh: Likewise.
26673
26674 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26675
26676         * doc/gnulib.texi (Glibc pty.h): Add.
26677         * doc/glibc-functions/forkpty.texi: Add.
26678         * doc/glibc-functions/openpty.texi: Add.
26679         Suggested by Bruno Haible.
26680
26681 2009-12-08  Eric Blake  <ebb9@byu.net>
26682
26683         fchdir: fix logic bugs
26684         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26685         * tests/test-fchdir.c (main): Enhance test.
26686         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26687         is in use.
26688
26689         dup2: fix logic bugs
26690         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26691         REPLACE_DUP2 to decide when rpl_dup2 is needed.
26692         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
26693         exists.
26694         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
26695
26696 2009-12-07  Eric Blake  <ebb9@byu.net>
26697
26698         unlink: fix m4 detection
26699         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
26700
26701         unistd-safer: add unit test
26702         * modules/unistd-safer-tests: New file.
26703         * tests/test-dup-safer.c: Likewise.
26704         * tests/test-cloexec.c (setmode): Avoid compiler warning.
26705         * tests/test-dup2.c (setmode): Likewise.
26706         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
26707
26708         cloexec: preserve text vs. binary across dup_cloexec
26709         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
26710         mode.
26711         * modules/dup2-tests (Depends-on): Add binary-io.
26712         * modules/cloexec-tests (Depends-on): Likewise.
26713         * tests/test-dup2.c (setmode, is_mode): New helpers.
26714         (main): Add tests that translation mode is preserved.
26715         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
26716         Reported by Bruno Haible.
26717
26718         mgetgroups: reduce duplicate listings
26719         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
26720         resulting array.
26721         * tests/test-chown.h (test_chown): Simplify client.
26722         * tests/test-lchown.h (test_lchown): Likewise.
26723
26724 2009-12-06  Bruno Haible  <bruno@clisp.org>
26725
26726         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
26727         value.
26728
26729 2009-12-06  Bruno Haible  <bruno@clisp.org>
26730
26731         * lib/progname.c: Include stdio.h, stdlib.h.
26732         (set_program_name): Reject a NULL argument.
26733
26734 2009-12-05  Eric Blake  <ebb9@byu.net>
26735
26736         pipe2-safer: new module
26737         * modules/pipe2-safer: New file.
26738         * lib/unistd-safer.h (pipe2_safer): New prototype.
26739         * lib/unistd--.h (pipe2): New wrapper.
26740         * lib/pipe-safer.c (pipe2_safer): New function.
26741         * modules/pipe (Depends-on): Add pipe2-safer.
26742         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
26743
26744         stdlib-safer: preserve cloexec flag for mkostemp[s]
26745         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
26746         fd_safer_flag.
26747
26748         unistd-safer: allow preservation of cloexec status via flag
26749         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
26750         prototypes.
26751         * lib/dup-safer.c (dup_safer_flag): New function.
26752         * lib/fd-safer.c (fd_safer_flag): Likewise.
26753         * modules/cloexec (configure.ac): Set witness.
26754
26755         test-dup2: enhance test
26756         * modules/dup2-tests (Depends-on): Add cloexec.
26757         * tests/test-dup2.c (main): Enhance test.
26758
26759         cloexec: add dup_cloexec
26760         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
26761         header and comments.
26762         * lib/cloexec.c (set_cloexec_flag): Add comments.
26763         (dup_cloexec): New function, with mingw implementation borrowed
26764         from...
26765         * lib/w32spawn.h (dup_noinherit): ...here.
26766         * modules/execute (Depends-on): Add cloexec.
26767         * modules/pipe (Depends-on): Likewise.
26768         * modules/cloexec (Depends-on): Add dup2.
26769         * modules/cloexec-tests (Files): New file.
26770         * tests/test-cloexec.c: Likewise.
26771
26772         test-xalloc-die: fix test for mingw
26773         * modules/xalloc-die-tests (Files): Add tests/init.sh.
26774         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
26775         directory and .exe suffix off argv[0] output.
26776
26777         test-fseeko: fix test for mingw
26778         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
26779         than undefining fseek, so test will pass on mingw.
26780
26781 2009-12-05  Bruno Haible  <bruno@clisp.org>
26782
26783         * lib/progname.h (set_program_name): Clarify specification.
26784         * lib/progname.c (set_program_name): Likewise.
26785         Reported by Jim Meyering.
26786
26787 2009-12-05  Jim Meyering  <meyering@redhat.com>
26788
26789         maint.mk: backslash-escape parens in default regexp
26790         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
26791         backslash-escape the literal parentheses.
26792
26793         maint.mk: news-date-check: use grep -E
26794         * top/maint.mk (today): Define a Make variable, not a...
26795         (news-date-check): ...shell variable.
26796         (news-date-regexp): Use the Make variable.
26797         Use grep's -E option.  Change the failing diagnostic to mention
26798         the variable, $(news-date-regexp).
26799
26800 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
26801
26802         maintainer-makefile: allow customization of NEWS entry format
26803         * top/maint.mk (news-date-regexp): New overridable variable.
26804         (news-date-check): Use it.
26805
26806 2009-12-04  Eric Blake  <ebb9@byu.net>
26807
26808         mgetgroups: add xgetgroups, and avoid ENOSYS failures
26809         * lib/mgetgroups.h (xgetgroups): New prototype.
26810         * lib/mgetgroups.c (xgetgroups): New wrapper.
26811         (mgetgroups): Handle ENOSYS.
26812         * modules/mgetgroups (Depends-on): Add realloc.
26813         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
26814
26815         mgetgroups: avoid argument promotion issues with -1
26816         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
26817         for invalid gid_t.
26818         * tests/test-chown.h (getegid, test_chown): Likewise.
26819         * tests/test-lchown.h (getegid, test_lchown): Likewise.
26820
26821 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
26822
26823         exclude: Fix header file problems.
26824         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
26825
26826 2009-12-01  Jim Meyering  <meyering@redhat.com>
26827
26828         fts: fts_open: do not let an empty string cause immediate failure
26829         This is required in support of GNU rm, for which the command
26830         "rm A '' B" must process and remove both A and B, in spite of
26831         the empty string argument.
26832         * lib/fts.c (fts_open): Do not let the presence of an empty string
26833         cause fts_open to fail immediately.  Most fts-using tools must be
26834         able to process all arguments, in order, and can be expected to
26835         diagnose such arguments themselves.
26836
26837 2009-11-30  Eric Blake  <ebb9@byu.net>
26838
26839         utimens: fix compilation error
26840         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
26841         Declare variable at right scope.
26842
26843 2009-11-29  Jim Meyering  <meyering@redhat.com>
26844
26845         bootstrap: handle perl-5.11's changed --version output
26846         * build-aux/bootstrap (get_version): Handle perl separately,
26847         since perl-5.11's --version output is different.
26848
26849 2009-11-28  Jim Meyering  <meyering@redhat.com>
26850
26851         userspec: depend on the inttostr module, too
26852         * modules/userspec (Depends-on): Add inttostr.
26853
26854         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
26855         * lib/userspec.c (parse_with_separator): Do not accept a user ID
26856         number of MAXUID when it evaluates to (uid_t) -1.
26857         Likewise for group ID.  Reported by Matt McCutchen in
26858         <http://savannah.gnu.org/bugs/?28113>
26859
26860         userspec: reformat to use spaces, not TABs
26861         * lib/userspec.c: Expand TABs to spaces.
26862         Add Emacs' "indent-tabs-mode: nil" hint.
26863
26864 2009-11-27  Eric Blake  <ebb9@byu.net>
26865
26866         getopt-gnu: flush out another BSD bug
26867         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
26868         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
26869         flush out BSD bug.
26870         * tests/test-getopt.h (test_getopt): End lists with NULL.
26871         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26872         (test_getopt_long_posix): Enhance test.
26873         * modules/getopt-posix-tests (Depends-on): Add stdbool.
26874         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
26875         getopt-gnu.
26876         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26877         Likewise.
26878
26879 2009-11-27  Simon Josefsson  <simon@josefsson.org>
26880
26881         * modules/idpriv-droptemp-tests (Notice): Fix text.
26882
26883 2009-11-27  Jim Meyering  <meyering@redhat.com>
26884
26885         test-xalloc-die: avoid spurious failure due to libtool argv difference
26886         In a libtool-enabled project, this test would fail due to a difference
26887         in the emitted program name, e.g.,
26888         -test-xalloc-die: memory exhausted
26889         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
26890         Use program to avoid that.
26891         * modules/xalloc-die-tests (Depends-on): Add progname.
26892         * tests/test-xalloc-die.c: Include progname.h".
26893         (program_name): Remove decl.
26894         (main): Call set_program_name.
26895         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
26896
26897 2009-11-26  Richard Jones  <rjones@redhat.com>
26898
26899         w32sock: leave win32 error in place.
26900         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
26901
26902 2009-11-26  Eric Blake  <ebb9@byu.net>
26903
26904         init.sh: suggest to use skip_ and fail_ functions in comments
26905         * tests/init.sh: Add a sentence.
26906
26907 2009-11-25  Bruno Haible  <bruno@clisp.org>
26908
26909         init.sh: add documentation in comments
26910         * tests/init.sh: Add some developer and user documentation.
26911
26912 2009-11-26  Jim Meyering  <meyering@redhat.com>
26913
26914         init.sh: accommodate even those who specify bogus srcdir manually
26915         * tests/init.sh: Normally, srcdir is guaranteed by automake and
26916         configure-time tests to be sanitized, so that there is no need to
26917         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
26918         (with no double quotes) suffices.  However, since tests may be
26919         invoked manually, and since you may explicitly set srcdir to the
26920         name of a directory containing spaces, do quote its uses here.
26921         * tests/test-pread.sh: Likewise.
26922         Suggested by Bruno Haible.
26923
26924         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
26925         * tests/test-pread.sh: Write no data into the pipe, because
26926         test-pread actually reads none.  This avoids a diagnostic,
26927         "bash: echo: write error: Broken pipe", that arises in the unusual
26928         event something is ignoring SIGPIPE, and might be interpreted
26929         as some sort of failure.  Reported by Bruno Haible.
26930
26931 2009-11-25  Jim Meyering  <meyering@redhat.com>
26932
26933         test-pread: cover failure with ESPIPE and EINVAL
26934         * tests/test-pread.c (main): Test for failure, too.
26935         * tests/test-pread.sh: Invoke with stdin on a pipe.
26936         Suggested by Eric Blake.
26937
26938         pread: improvement and fix
26939         * modules/pread (Depends-on): Depend on lseek, for portability to
26940         e.g., mingw.  Suggested by Eric Blake.
26941         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
26942
26943         unistd.in.h: correct declaration of pread
26944         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
26945         Reported by Richard W.M. Jones.
26946
26947         test-pread.sh: distribute the test script
26948         * modules/pread-tests (Files): Include test-pread.sh.
26949
26950         test-pread.sh: clean up
26951         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
26952         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
26953         That is unnecessary, since it's always ".".
26954         Suggestion from Eric Blake.
26955
26956         test-pread.sh: make executable
26957         * tests/test-pread.sh: Set executable bit.
26958         Reported by Eric Blake.
26959
26960         correct typo in test-pread.sh
26961         * tests/test-pread.sh: Add #! line.
26962
26963         test pread
26964         * tests/test-pread.c: New file.
26965         * tests/test-pread.sh: Likewise.
26966         * modules/pread-tests: Likewise.
26967
26968         pread: new module
26969         * modules/pread: New file.
26970         * lib/unistd.in.h (pread): Define/declare.
26971         * lib/pread.c (pread): New file.
26972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
26973         * modules/unistd (Makefile.am): Substitute witnesses.
26974         * doc/posix-functions/pread.texi (pread): Update.
26975         * MODULES.html.sh: Add pread.
26976
26977 2009-11-25  Jim Meyering  <meyering@redhat.com>
26978
26979         tests/init.sh: new file to be used via most *.sh tests
26980         * tests/init.sh: New file.
26981
26982 2009-11-25  Eric Blake  <ebb9@byu.net>
26983
26984         utimens: work around older Linux failure with symlinks
26985         * lib/utimens.c (lutimensat_works_really): New variable.
26986         (fdutimens, lutimens): Use it to manage kernels that support
26987         nanosecond times on files, but not on symlinks.
26988         Reported by Ondřej Vašík.
26989
26990         utimes: fix configure grammar
26991         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
26992
26993 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
26994
26995         regex: Fix fastmap for multibyte character ranges.
26996         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
26997         characters when a multibyte character range is included.
26998
26999 2009-11-22  Andy Wingo  <wingo@pobox.com>
27000
27001         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
27002         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
27003
27004 2009-11-24  Bruno Haible  <bruno@clisp.org>
27005
27006         doc: Most *_l functions exist in MacOS X 10.5.
27007         * doc/posix-functions/duplocale.texi: Update platforms list.
27008         * doc/posix-functions/freelocale.texi: Likewise.
27009         * doc/posix-functions/newlocale.texi: Likewise.
27010         * doc/posix-functions/uselocale.texi: Likewise.
27011         * doc/posix-functions/isalnum_l.texi: Likewise.
27012         * doc/posix-functions/isalpha_l.texi: Likewise.
27013         * doc/posix-functions/isblank_l.texi: Likewise.
27014         * doc/posix-functions/iscntrl_l.texi: Likewise.
27015         * doc/posix-functions/isdigit_l.texi: Likewise.
27016         * doc/posix-functions/isgraph_l.texi: Likewise.
27017         * doc/posix-functions/islower_l.texi: Likewise.
27018         * doc/posix-functions/isprint_l.texi: Likewise.
27019         * doc/posix-functions/ispunct_l.texi: Likewise.
27020         * doc/posix-functions/isspace_l.texi: Likewise.
27021         * doc/posix-functions/isupper_l.texi: Likewise.
27022         * doc/posix-functions/iswalnum_l.texi: Likewise.
27023         * doc/posix-functions/iswalpha_l.texi: Likewise.
27024         * doc/posix-functions/iswblank_l.texi: Likewise.
27025         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27026         * doc/posix-functions/iswctype_l.texi: Likewise.
27027         * doc/posix-functions/iswdigit_l.texi: Likewise.
27028         * doc/posix-functions/iswgraph_l.texi: Likewise.
27029         * doc/posix-functions/iswlower_l.texi: Likewise.
27030         * doc/posix-functions/iswprint_l.texi: Likewise.
27031         * doc/posix-functions/iswpunct_l.texi: Likewise.
27032         * doc/posix-functions/iswspace_l.texi: Likewise.
27033         * doc/posix-functions/iswupper_l.texi: Likewise.
27034         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27035         * doc/posix-functions/isxdigit_l.texi: Likewise.
27036         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
27037         * doc/posix-functions/strcasecmp_l.texi: Likewise.
27038         * doc/posix-functions/strcoll_l.texi: Likewise.
27039         * doc/posix-functions/strfmon_l.texi: Likewise.
27040         * doc/posix-functions/strftime_l.texi: Likewise.
27041         * doc/posix-functions/strncasecmp_l.texi: Likewise.
27042         * doc/posix-functions/strxfrm_l.texi: Likewise.
27043         * doc/posix-functions/tolower_l.texi: Likewise.
27044         * doc/posix-functions/toupper_l.texi: Likewise.
27045         * doc/posix-functions/towctrans_l.texi: Likewise.
27046         * doc/posix-functions/towlower_l.texi: Likewise.
27047         * doc/posix-functions/towupper_l.texi: Likewise.
27048         * doc/posix-functions/wcscoll_l.texi: Likewise.
27049         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27050         * doc/posix-functions/wctrans_l.texi: Likewise.
27051         * doc/posix-functions/wctype_l.texi: Likewise.
27052         * doc/glibc-functions/strptime_l.texi: Likewise.
27053         * doc/glibc-functions/strtod_l.texi: Likewise.
27054         * doc/glibc-functions/strtof_l.texi: Likewise.
27055         * doc/glibc-functions/strtol_l.texi: Likewise.
27056         * doc/glibc-functions/strtold_l.texi: Likewise.
27057         * doc/glibc-functions/strtoll_l.texi: Likewise.
27058         * doc/glibc-functions/strtoul_l.texi: Likewise.
27059         * doc/glibc-functions/strtoull_l.texi: Likewise.
27060         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27061         * doc/glibc-functions/wcstod_l.texi: Likewise.
27062         * doc/glibc-functions/wcstof_l.texi: Likewise.
27063         * doc/glibc-functions/wcstol_l.texi: Likewise.
27064         * doc/glibc-functions/wcstold_l.texi: Likewise.
27065         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27066         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27067         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27068
27069 2009-11-24  Bruno Haible  <bruno@clisp.org>
27070
27071         duplocale: Fix logic bug.
27072         * lib/duplocale.c: Don't include <langinfo.h>.
27073         (_NL_LOCALE_NAME): Remove macro.
27074         (rpl_duplocale): Use setlocale instead of nl_langinfo.
27075         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
27076
27077 2009-11-23  Jim Meyering  <meyering@redhat.com>
27078
27079         test-update-copyright: don't hard-code /usr/bin/perl
27080         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
27081         perl to print the current year.  Gilles Espinasse reported that
27082         the replaced use of perl was hard-coded as /usr/bin/perl.
27083
27084 2009-11-23  Bruno Haible  <bruno@clisp.org>
27085
27086         duplocale: Add support for glibc 2.3.x.
27087         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
27088
27089 2009-11-22  Bruno Haible  <bruno@clisp.org>
27090
27091         vasnprintf: Tiny optimization.
27092         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
27093         MacOS X.
27094
27095 2009-11-22  Bruno Haible  <bruno@clisp.org>
27096
27097         Tests for module 'duplocale'.
27098         * modules/duplocale-tests: New file.
27099         * tests/test-duplocale.c: New file.
27100
27101         New module 'duplocale'.
27102         * m4/duplocale.m4: New file.
27103         * lib/locale.in.h (duplocale): New declaration.
27104         * lib/duplocale.c: New file.
27105         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
27106         gl_LOCALE_H_DEFAULTS): New macros.
27107         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
27108         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
27109         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
27110         REPLACE_DUPLOCALE.
27111         * modules/duplocale: New file.
27112         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
27113
27114 2009-11-22  Bruno Haible  <bruno@clisp.org>
27115
27116         * modules/locale-tests (configure.ac): Test for newlocale function.
27117         * tests/test-locale.c: When the system has extended locale functions,
27118         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
27119
27120         locale: Make locale_t available when possible.
27121         * lib/locale.in.h: Include <xlocale.h> when it exists.
27122         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
27123         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
27124         * modules/locale (Depends-on): Add extensions.
27125         (Makefile.am): Also substitute HAVE_XLOCALE_H.
27126         * doc/posix-headers/locale.texi: Document the problem with locale_t.
27127
27128 2009-11-22  Bruno Haible  <bruno@clisp.org>
27129
27130         Add comments.
27131         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
27132         invocation.
27133         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27134         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27135         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27136
27137 2009-11-22  Bruno Haible  <bruno@clisp.org>
27138
27139         error: account for the possibility of freopen (stdout).
27140         * lib/error.c: Include <unistd.h>.
27141         (flush_stdout): New function, extracted from error and error_at_line.
27142         Determine stdout's fd dynamically.
27143         (error, error_at_line): Invoke flush_stdout.
27144         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
27145         * modules/error (Depends-on): Add unistd.
27146
27147 2009-11-22  Bruno Haible  <bruno@clisp.org>
27148
27149         diffseq: Add comment.
27150         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
27151
27152 2009-11-22  Jim Meyering  <meyering@redhat.com>
27153
27154         c-stack: avoid defining an unused static function
27155         * lib/c-stack.c (find_stack_direction): Do not define this function
27156         when it will not be used.
27157
27158         diffseq: avoid spurious gcc warnings
27159         * lib/diffseq.h (IF_LINT2): Define.
27160         (compareseq): Use it to initialize two members of "part".
27161         This avoids two used-uninitialized warnings.
27162
27163 2009-11-21  Jim Meyering  <meyering@redhat.com>
27164
27165         c-stack: avoid "ignoring return value of `write'" warning
27166         * lib/c-stack.c: Include "ignore-value.h".
27167         (die): Explicitly ignore each write return value.
27168         * modules/c-stack (Depends-on): Add ignore-value.
27169
27170 2009-11-21  Bruno Haible  <bruno@clisp.org>
27171
27172         diffseq: reduce scope of variable 'best'.
27173         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
27174         variable, earlier used for two different purposes.
27175
27176 2009-11-21  Jim Meyering  <meyering@redhat.com>
27177
27178         diffseq: remove useless assignment to "best"
27179         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
27180         assignment.  At that point "best" is already guaranteed to be zero.
27181
27182 2009-11-20  Eric Blake  <ebb9@byu.net>
27183
27184         build: mention ftp redirector in release announcements
27185         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
27186         values that used to come from cfg.mk; mention FTP redirect URL.
27187         * build-aux/announce-gen: Mention the mirror list.
27188         Suggested by Karl Berry.
27189
27190         nanosleep: improve port to mingw
27191         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
27192         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
27193         LIB_NANOSLEEP, but only when needed.
27194         * modules/select (Link): Document LIBSOCKET.
27195         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
27196         enough.
27197
27198         nanosleep: work around cygwin bug
27199         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
27200         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
27201         bug.
27202         (getnow): Delete, not needed.
27203         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
27204         LIB_CLOCK_GETTIME.
27205         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
27206         clock-time, gettime.
27207         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
27208         bug.
27209         * modules/nanosleep-tests: New test.
27210         * tests/test-nanosleep.c: New file.
27211
27212         sleep: work around cygwin bug
27213         * lib/sleep.c (rpl_sleep): Work around the bug.
27214         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
27215         (gl_PREREQ_SLEEP): Delete unused macro.
27216         * modules/sleep (Depends-on): Add verify.
27217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27218         * modules/unistd (Makefile.am): Substitute witness.
27219         * lib/unistd.in.h (sleep): Update prototype.
27220         * doc/posix-functions/sleep.texi (sleep): Document the bug.
27221         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
27222         * modules/sleep-tests (Depends-on): Check for alarm.
27223
27224 2009-11-20  Jim Meyering  <meyering@redhat.com>
27225
27226         maint.mk: improve sc_prohibit_magic_number_exit
27227         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
27228         so it does not match uses like System.exit(1).
27229         Add comments showing how to correct all offenders.
27230
27231 2009-11-19  Eric Blake  <ebb9@byu.net>
27232
27233         xalloc-die-tests: add missing library
27234         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
27235
27236         test-xvasprintf: silence compiler warnings
27237         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
27238         empty string from gcc.
27239
27240 2009-11-19  Jim Meyering  <meyering@redhat.com>
27241
27242         xfreopen: new module, from coreutils
27243         * modules/xfreopen: New module.
27244         * lib/xfreopen.c: New file.
27245         * lib/xfreopen.h: New file.
27246         * MODULES.html.sh (File stream based Input/Output"): Add it.
27247
27248 2009-11-19  Eric Blake  <ebb9@byu.net>
27249
27250         manywarnings: depend on warnings
27251         * modules/manywarnings (Depends-on): Add warnings.
27252
27253         build: avoid compiler warnings
27254         * lib/select.c (rpl_select): Delete unused variable.
27255         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
27256
27257 2009-11-18  Eric Blake  <ebb9@byu.net>
27258
27259         tests: avoid false negative with --with-packager
27260         * tests/test-version-etc.sh: Discard packager information.
27261         * tests/test-argp-version-etc-1.sh: Likewise.
27262         Reported by Mike Frysinger.
27263
27264         utimens: fix regression on Solaris
27265         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
27266         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
27267         can only change fd timestamps via futimesat.  Instead, use an
27268         additional witness macro to avoid BSD bug.
27269         Reported by Jim Meyering.
27270
27271 2009-11-17  Eric Blake  <ebb9@byu.net>
27272
27273         usleep: use it to simplify tests
27274         * modules/stat-time-tests (Depends-on): Add usleep.
27275         (configure.ac): Drop usleep check.
27276         * modules/chown-tests (Depends-on, configure.ac): Likewise.
27277         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
27278         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
27279         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
27280         * modules/openat-tests (Depends-on, configure.ac): Likewise.
27281         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
27282         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
27283         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
27284         Likewise.
27285         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
27286         * tests/test-lchown.h (nap): Likewise.
27287         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
27288         * tests/test-stat-time.c (nap): Likewise.
27289         * tests/test-utimens-common.h (nap): Update comments.
27290
27291         usleep: new module
27292         * modules/usleep: New file.
27293         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
27294         * lib/usleep.c (usleep): Likewise.
27295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27296         * modules/unistd (Makefile.am): Substitute witnesses.
27297         * lib/unistd.in.h (usleep): Add declaration.
27298         * doc/pastposix-functions/usleep.texi (usleep): Document this.
27299         * MODULES.html.sh (Date and time): Likewise.
27300         * modules/usleep-tests (Depends-on): New test.
27301         * tests/test-usleep.c: New file.
27302
27303         chown: work around OpenBSD bug
27304         * lib/chown.c (rpl_chown): Work around the bug.
27305         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
27306         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
27307         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
27308         * modules/chown (Depends-on): Add stdbool.
27309         * modules/lchown (Depends-on): Likewise.
27310         * doc/posix-functions/chown.texi (chown): Document the bug.
27311         * doc/posix-functions/lchown.texi (lchown): Likewise.
27312         * tests/test-lchown.h (test_chown): Relax test.
27313
27314         mkstemp: avoid conflict with C++ keyword template
27315         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27316         * lib/mkostemp.c (mkostemp): Likewise.
27317         * lib/mkostemps.c (mkostemps): Likewise.
27318         * lib/mkstemp.c (mkstemp): Likewise.
27319         * lib/mkstemps.c (mkstemps): Likewise.
27320
27321         xalloc-die-tests: optimize
27322         * tests/test-xalloc-die.sh: Reduce number of processes.
27323
27324 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27325
27326         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27327         patch from ludo@gnu.org (Ludovic Courtès).
27328
27329 2009-11-17  Jim Meyering  <meyering@redhat.com>
27330
27331         version-etc: use proper license string
27332         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27333         * modules/version-etc-fsf: Likewise.
27334
27335 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27336
27337         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27338         printed to stdout.  Deal with EOL differences.
27339
27340 2009-11-17  Eric Blake  <ebb9@byu.net>
27341
27342         unsetenv: work around Solaris bug
27343         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27344         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27345         Reported by Jim Meyering.
27346
27347         vasnprintf: avoid compiler warnings
27348         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27349         variables.
27350         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27351
27352 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27353
27354         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27355         settings since xalloc-die is no longer the self test,
27356         xalloc-die.sh is.
27357
27358 2009-11-17  Jim Meyering  <meyering@redhat.com>
27359
27360         test-xalloc-die.sh: make the code agree with the commit log
27361         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27362         at the end, just in case you happen to have a test-xalloc-die
27363         program in some other PATH directory.
27364
27365         test-xalloc-die.sh: fix a portability bug
27366         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27367         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27368         Otherwise, argv[0] (as often seen in diagnostics) would be too
27369         system-dependent, sometimes with, and sometimes without the leading "./".
27370
27371         version-etc-fsf: relax license to LGPLv3+
27372         * modules/version-etc-fsf (License): Relax license.
27373
27374 2009-11-16  Eric Blake  <ebb9@byu.net>
27375
27376         xalloc-die-tests: avoid printing null pointer
27377         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27378         shell script.
27379         * tests/test-xalloc-die.c (program_name): Declare.
27380         * tests/test-xalloc-die.sh (tmpfiles): New file.
27381
27382         setenv, unsetenv: work around various bugs
27383         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27384         (setenv) [HAVE_SETENV]: Work around bugs.
27385         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27386         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27387         for bugs.
27388         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27389         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27390         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27391         * modules/stdlib (Makefile.am): Update substitutions.
27392         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27393         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27394         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27395         * modules/setenv-tests: New test.
27396         * modules/unsetenv-tests: Likewise.
27397         * tests/test-setenv.c: New file.
27398         * tests/test-unsetenv.c: Likewise.
27399
27400 2009-11-16  Jim Meyering  <meyering@redhat.com>
27401
27402         version-etc: relax license to LGPLv3+
27403         * modules/version-etc (License): Relax license.
27404
27405         better AC_REQUIRE expanded-before-required-warning avoidance
27406         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27407         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27408         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27409         which is no longer needed.
27410
27411 2009-11-16  Eric Blake  <ebb9@byu.net>
27412
27413         test-freading: clean up temporary file
27414         * tests/test-freading.c (main): Remove file on success, and use
27415         ASSERT more liberally.
27416         Reported by Jim Meyering.
27417
27418 2009-11-16  Jim Meyering  <meyering@redhat.com>
27419
27420         avoid new AC_REQUIRE expanded-before-required warnings
27421         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27422         merely using it.
27423         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27424         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27425
27426 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27427
27428         * tests/test-xalloc-die.c: New file.
27429         * modules/xalloc-die-tests: New file.
27430         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27431         XFAIL_TESTS so it can be appended by modules.
27432
27433 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27434
27435         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27436         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27437
27438 2009-11-14  Eric Blake  <ebb9@byu.net>
27439
27440         fnmatch: avoid compiler warning
27441         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27442         to silence compiler warning about mismatch signedness in ?:.
27443         Reported by Robert Millan.
27444
27445         intprops: add double-inclusion guard
27446         * lib/intprops.h: Allow idempotent includes.
27447         Suggested by Bruce Korb.
27448
27449         openat: detect Solaris fchownat bug
27450         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27451         penalizing glibc chownat when only lchownat is broken.
27452         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27453         trailing slash bugs.
27454         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27455         * modules/openat-tests (Files): Include more files.
27456         (Depends-on): Add mgetgroups, sleep, stat-time.
27457         (configure.ac): Add additional checks.
27458         (Makefile.am): Build new test.
27459         * tests/test-fchownat.c: New file.
27460
27461         lchown: detect Solaris and FreeBSD bug
27462         * lib/lchown.c (rpl_lchown): Work around bug.
27463         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27465         * modules/unistd (Makefile.am): Populate it.
27466         * lib/unistd.in.h (lchown): Update declaration.
27467         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27468         * modules/lchown-tests: New file.
27469         * tests/test-lchown.h (test_lchown): Likewise.
27470         * tests/test-lchown.c (main): Likewise.
27471
27472         chown: detect Solaris and FreeBSD bug
27473         * lib/chown.c (rpl_chown): Work around bug.
27474         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27475         (gl_PREREQ_CHOWN): Delete.
27476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27477         * modules/unistd (Makefile.am): Populate it.
27478         * lib/unistd.in.h (chown): Update declaration.
27479         * lib/lchown.c (chown): Update client.
27480         * modules/lchown (Depends-on): Add lstat.
27481         * doc/posix-functions/chown.texi (chown): Document the bug.
27482         * doc/posix-functions/getgroups.texi (getgroups): Document
27483         getgroups pitfall.
27484         * modules/chown-tests: New file.
27485         * tests/test-chown.h (test_chown): Likewise.
27486         * tests/test-chown.c (main): Likewise.
27487
27488 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27489
27490         gnulib-tool: correctly detect absence of m4 directories
27491         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27492
27493 2009-11-14  Jim Meyering  <meyering@redhat.com>
27494
27495         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27496         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27497
27498 2009-11-14  John W. Eaton  <jwe@gnu.org>
27499
27500         strftime.h: wrap funtion declaration in extern "C" block
27501         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27502
27503 2009-11-13  Eric Blake  <ebb9@byu.net>
27504
27505         getgroups: avoid compiler warning
27506         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27507
27508         getgroups: work around FreeBSD bug
27509         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27510         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27511         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27512         * tests/test-getgroups.c (main): Fix buffer overrun.
27513
27514         getgroups: avoid compilation failure
27515         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27516         * modules/getgroups (Depends-on): Add stdint.
27517
27518 2009-11-13  Jim Meyering  <meyering@redhat.com>
27519
27520         test-getgroups: avoid compilation failure
27521         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27522
27523 2009-11-13  Eric Blake  <ebb9@byu.net>
27524
27525         mgetgroups: new module, taken from coreutils
27526         * modules/mgetgroups: New file.
27527         * lib/mgetgroups.h: Likewise.
27528         * lib/mgetgroups.c (mgetgroups): Likewise.
27529         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
27530         * MODULES.html.sh (Users and groups): Mention it.
27531
27532         getgroups: don't expose GETGROUPS_T to user
27533         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
27534         an element at a time if GETGROUPS_T is wrong size.
27535         * lib/getugroups.h (getugroups): Change signature.
27536         * lib/unistd.in.h (getgroups): Likewise.
27537         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
27538         signature needs fixing.
27539         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
27540         AC_TYPE_GETGROUPS.
27541         * modules/group-member (Depends-on): Add getgroups.
27542         * lib/group-member.c (group_info, get_group_info): Use gid_t.
27543         (group_member): Rely on getgroups replacement.
27544         * lib/getugroups.c (getugroups): Use gid_t.
27545         * tests/test-getgroups.c (main): Likewise.
27546         * NEWS: Mention the signature change.
27547         * doc/posix-functions/getgroups.texi (getgroups): Mention the
27548         problem with signature.
27549         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
27550         GETGROUPS_T is still useful for setgroups.
27551
27552         getgroups, getugroups: provide stubs for mingw
27553         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
27554         * lib/getugroups.c (getugroups): Likewise.
27555         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
27556         function.  Modernize replacement scheme.
27557         (gl_PREREQ_GETGROUPS): Delete.
27558         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
27559         * modules/getgroups (configure.ac): Declare witness.
27560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27561         * modules/unistd (Depends-on): Substitute witness.
27562         * lib/unistd.in.h (getgroups): Declare replacement.
27563
27564         getgroups: avoid calling exit
27565         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
27566         drop xalloc.
27567         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
27568         dependencies.
27569         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
27570         exiting, in the rare case of malloc failure.
27571
27572         getgroups: fix logic error
27573         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
27574         has more than 20 groups.
27575         * modules/getgroups-tests: New test.
27576         * tests/test-getgroups.c: New file.
27577
27578 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27579
27580         * tests/test-base64.c: Improve.
27581
27582 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27583
27584         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
27585         Blake <ebb9@byu.net>.
27586
27587 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27588
27589         * tests/test-xvasprintf.c: Add %s%s related checks.
27590
27591 2009-11-12  Eric Blake  <ebb9@byu.net>
27592
27593         version-etc: match standards.texi style
27594         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
27595         and use <> only for URLs.
27596
27597 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
27598
27599         fts: do not fail on a submount during traversal
27600         * lib/fts.c (fts_build): Read the stat info again after opening
27601         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
27602         Original report at http://bugzilla.redhat.com/501848.
27603
27604 2009-11-12  Jim Meyering  <meyering@redhat.com>
27605
27606         bootstrap: sync from coreutils
27607         * build-aux/bootstrap (bootstrap_epilogue): New function.
27608         Use git_modules_config in one more place.  This make bootstrap's
27609         --gnulib-srcdir option more useful for testing.
27610
27611         bootstrap: generalize autoheader check
27612         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
27613         AC_CONFIG_HEADERS.
27614
27615 2009-11-11  Eric Blake  <ebb9@byu.net>
27616
27617         mkfifoat: use new modules for Solaris and BSD bugs
27618         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27619         * lib/mkfifoat.c (mknodat): Split...
27620         * lib/mknodat.c (mknodat): ...into new file.
27621         * modules/mkfifoat (Files): Ship new file.
27622         (Depends-on): Add mkfifo, mknod.
27623         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27624         (Depends-on): Add symlink.
27625         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27626         redundant with test_mkfifo.h.
27627         (do_mkfifoat, do_mknodat): New helpers.
27628
27629         mknod: new module
27630         * modules/mknod: New file.
27631         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27632         * lib/mknod.c (mknod): Likewise.
27633         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27634         defaults.
27635         * modules/sys_stat (Makefile.am): Substitute them.
27636         * lib/sys_stat.in.h (mknod): Declare replacement.
27637         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27638         Document it.
27639         * doc/posix-functions/mknod.texi (mknod): Likewise.
27640         * modules/mknod-tests: New test.
27641         * tests/test-mknod.c: Likewise.
27642
27643         mkfifo: new module
27644         * modules/mkfifo: New file.
27645         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27646         * lib/mkfifo.c (mkfifo): Likewise.
27647         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27648         defaults.
27649         * modules/sys_stat (Makefile.am): Substitute them.
27650         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27651         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27652         Document it.
27653         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27654         * modules/mkfifo-tests: New test.
27655         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27656         from test-mkfifoat.c.
27657         * tests/test-mkfifo.c: New file.
27658
27659         readlink: detect FreeBSD bug
27660         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27661         slash on symlink.
27662         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27663         * tests/test-readlink.h (test_readlink): Enhance test.
27664
27665         symlink: detect FreeBSD bug
27666         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27667         slash on symlink.
27668         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27669         * tests/test-symlink.h (test_symlink): Enhance test.
27670
27671 2009-11-10  Eric Blake  <ebb9@byu.net>
27672
27673         link: detect FreeBSD bug
27674         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27675         symlink.
27676         * doc/posix-functions/link.texi (link): Document the bug.
27677         * tests/test-link.h (test_link): Enhance test.
27678         * tests/test-linkat.c (main): Update caller.
27679
27680         unlink, remove: detect FreeBSD bug
27681         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27682         slash on symlink.
27683         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27684         * doc/posix-functions/remove.texi (remove): Likewise.
27685         * tests/test-unlink.h (test_unlink): Enhance test.
27686         * tests/test-remove.c (main): Likewise.
27687
27688 2009-11-09  Eric Blake  <ebb9@byu.net>
27689
27690         rename: detect FreeBSD bug
27691         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
27692         slash on symlink.
27693         * modules/renameat-tests (Depends-on): Add filenamecat.
27694         * tests/test-rename.h (test_rename): Allow one more errno.
27695         * tests/test-renameat.c (main): Likewise.
27696         * doc/posix-functions/rename.texi (rename): Document the bug.
27697
27698         open: detect FreeBSD bug
27699         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
27700         symlink.
27701         * doc/posix-functions/open.texi (open): Document the bug.
27702         * doc/posix-functions/utimes.texi (utimes): Likewise.
27703         * tests/test-open.h (test_open): Add parameters, and test symlink
27704         handling.
27705         * tests/test-open.c (main): Adjust caller.
27706         * tests/test-fcntl-safer.c (main): Likewise.
27707         * modules/open-tests (Depends-on): Add stdbool, symlink.
27708         * modules/fcntl-safer-tests (Depends-on): Likewise.
27709         * tests/test-openat.c (main): Add test-open tests.
27710
27711         stat: detect FreeBSD bug
27712         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
27713         symlink.
27714         * doc/posix-functions/stat.texi (stat): Document the bug.
27715         * tests/test-stat.h (test_stat_func): Add argument.
27716         * tests/test-stat.c (main): Adjust caller.
27717         * tests/test-fstatat.c (main): Likewise.
27718         * modules/stat-tests (Depends-on): Add stdbool, symlink.
27719         Reported by Jim Meyering.
27720
27721 2009-11-09  James Youngman  <jay@gnu.org>
27722
27723         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
27724         * lib/strftime.c: Correct placement of #include "ignore-value.h".
27725
27726 2009-11-08  Jim Meyering  <meyering@redhat.com>
27727
27728         utimens: remove invalid futimesat call
27729         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
27730         It used the file descriptor of the target file as the DIR_FD
27731         parameter and NULL as the file name.  That caused failure with
27732         errno == EFAULT on FreeBSD-8.0-rc2
27733
27734 2009-11-07  Eric Blake  <ebb9@byu.net>
27735
27736         fflush, freadseek: use fseeko, not fseek
27737         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
27738         (clear_ungetc_buffer): Avoid potential problems on large files.
27739         * lib/freadseek.c (freadseek): Likewise.
27740         * modules/freadseek (Depends-on): Add fseeko.
27741         * modules/fseek (configure.ac): Set a witness.
27742         * tests/test-fflush.c (main): Use fseeko.
27743         * tests/test-fpurge.c (fseek): Disable link warning.
27744         * tests/test-freadable.c (fseek): Likewise.
27745         * tests/test-freading.c (fseek): Likewise.
27746         * tests/test-fseeko.c (fseek): Likewise.
27747         * tests/test-ftell.c (fseek): Likewise.
27748         * tests/test-ftello.c (fseek): Likewise.
27749         * tests/test-fwritable.c (fseek): Likewise.
27750         * tests/test-fwriting.c (fseek): Likewise.
27751
27752 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27753
27754         * modules/memchr (Depends-on): Drop getpagesize dependency.
27755
27756 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27757
27758         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
27759         Reported by Ludovic Courtès.
27760         * build-aux/pmccabe2html: Improve example usage.
27761         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
27762
27763 2009-11-06  Jim Meyering  <meyering@redhat.com>
27764
27765         do-release-commit-and-tag: New module.
27766         Automate the release-commit and tag process.
27767         * build-aux/do-release-commit-and-tag: New script, from coreutils.
27768         * modules/do-release-commit-and-tag: New file.
27769         * MODULES.html.sh (Support for maintaining and releasing): Add it.
27770
27771 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27772
27773         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
27774         because test-select.c uses inet_pton.
27775
27776 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27777
27778         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
27779         GETADDRINFO_LIB.  Bump serial number.
27780         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
27781         Suggested by Eric Blake <ebb9@byu.net>.
27782
27783 2009-11-05  Eric Blake  <ebb9@byu.net>
27784
27785         strtod: detect darwin bug
27786         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
27787         Reported by Leo Davis.
27788
27789         freopen-safer: new module
27790         * modules/freopen-safer: New module.
27791         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
27792         * lib/freopen-safer.c (freopen_safer): New file.
27793         * lib/stdio-safer.h (freopen_safer): New declaration.
27794         * lib/stdio--.h (freopen): New override.
27795         * MODULES.html.sh (File stream based Input/Output): Mention it.
27796         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
27797         freopen-safer module.
27798         * doc/posix-functions/stderr.texi (stderr): Likewise.
27799         * doc/posix-functions/stdin.texi (stdin): Likewise.
27800         * doc/posix-functions/stdout.texi (stdout): Likewise.
27801         * modules/freopen-safer-tests: New test.
27802         * tests/test-reopen-safer.c: New file.
27803
27804 2009-11-05  Jim Meyering  <meyering@redhat.com>
27805
27806         maint.mk: Prohibit inclusion of "close-stream.h" without use.
27807         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27808
27809 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27810
27811         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
27812
27813 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27814
27815         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
27816
27817 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27818
27819         Fix link error.
27820         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27821         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27822
27823 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27824
27825         * tests/test-func.c: Also test value of __func__.
27826
27827 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27828
27829         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
27830         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
27831
27832 2009-11-05  Bruno Haible  <bruno@clisp.org>
27833
27834         Fix link error.
27835         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27836         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27837         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
27838
27839 2009-11-05  Bruno Haible  <bruno@clisp.org>
27840
27841         Tests for module 'inet_pton'.
27842         * modules/inet_pton-tests: New file.
27843         * tests/test-inet_pton.c: New file.
27844
27845 2009-11-05  Bruno Haible  <bruno@clisp.org>
27846
27847         Tests for module 'inet_ntop'.
27848         * modules/inet_ntop-tests: New file.
27849         * tests/test-inet_ntop.c: New file.
27850
27851 2009-11-04  Eric Blake  <ebb9@byu.net>
27852
27853         stdlib-safer: wrap all mkstemp variants
27854         * modules/mkostemp (configure.ac): Set witness.
27855         * modules/mkostemps (configure.ac): Likewise.
27856         * modules/mkstemps (configure.ac): Likewise.
27857         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
27858         (mkstemps_safer): Wrap more functions.
27859         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
27860         wrapping.
27861         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
27862         (mkstemps_safer): Implement the wrappers.
27863
27864         mkstemps, mkostemps: new modules
27865         * modules/mkostemps: New module.
27866         * modules/mkstemps: Likewise.
27867         * lib/mkostemps.c (mkostemps): New file.
27868         * lib/mkstemps.c (mkstemps): Likewise.
27869         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
27870         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
27871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
27872         * modules/stdlib (Makefile.am): Substitute them.
27873         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
27874         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
27875         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27876         * doc/gnulib.texi (Glibc stdlib.h): Include them.
27877         * MODULES.html.sh (File system functions): Mention them.
27878
27879         tempname: resync from glibc
27880         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
27881         same values for __GT_FILE as glibc.  Abort even when assertions
27882         are disabled.
27883         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
27884         match its value otherwise.  Allow idempotent inclusion.
27885         * lib/mkdtemp.c (mkdtemp): Adjust caller.
27886         * lib/mkostemp.c (mkostemp): Likewise.
27887         * lib/mkstemp.c (mkstemp): Likewise.
27888         * lib/tmpfile.c (tmpfile): Likewise.
27889         * NEWS: Document this.
27890
27891         utimens: fix use of futimens on older Linux
27892         * lib/utimens.c (fdutimens): Use updated, rather than original,
27893         timespec to avoid bug in older Linux kernel.
27894         Reported by Simon Josefsson.
27895
27896 2009-11-04  Bruno Haible  <bruno@clisp.org>
27897
27898         Make num_processors more flexible and consistent.
27899         * lib/nproc.h (enum nproc_query): New type.
27900         (num_processors): Add a 'query' argument.
27901         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
27902         (num_processors): Add a 'query' argument. Test the value of the
27903         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
27904         mingw, count the number of CPUs available for the current process.
27905         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
27906         Check for sched_getaffinity and sched_getaffinity_np.
27907         * modules/nproc (Depends-on): Add c-ctype, extensions.
27908         * NEWS: Mention the change.
27909
27910 2009-11-03  Bruno Haible  <bruno@clisp.org>
27911
27912         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
27913
27914 2009-11-03  Jim Meyering  <meyering@redhat.com>
27915
27916         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
27917         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
27918         if it is defined.
27919
27920 2009-11-02  Eric Blake  <ebb9@byu.net>
27921
27922         mktime, timegm: share common declaration
27923         * lib/mktime-internal.h: New file.
27924         * lib/mktime.c: Use it rather than open-coding a declaration.
27925         * lib/timegm.c: Likewise.
27926         * modules/mktime (Files): Ship it.
27927         * modules/timegm (Files): Likewise.
27928         Suggested by Bruno Haible.
27929
27930         test-update-copyright: update test to match script changes
27931         * tests/test-update-copyright.sh: Avoid hard-coding perl
27932         location.  Don't update *.bak created by earlier runs.
27933
27934 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27935             Simon Josefsson  <simon@josefsson.org>
27936             Bruno Haible  <bruno@clisp.org>
27937
27938         Fix link error on Solaris 8.
27939         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
27940         also in libnsl. Define also INET_PTON_LIB.
27941         * modules/inet_pton (Link): New section.
27942
27943 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27944             Bruno Haible  <bruno@clisp.org>
27945
27946         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
27947         * modules/inet_ntop (Link): New section.
27948         Reported by Boyan Kasarov <bkasarov@gmail.com>.
27949
27950 2009-11-02  Eric Blake  <ebb9@byu.net>
27951
27952         maint: avoid compiler warnings in m4 macros
27953         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
27954         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
27955
27956 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27957
27958         * m4/pmccabe2html.m4: Remove file.
27959         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
27960         function.  Change maintainer.
27961         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
27962         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
27963         Courtès).
27964
27965 2009-10-31  Eric Blake  <ebb9@byu.net>
27966
27967         fseeko: fix m4 regression
27968         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
27969         regression from 2009-10-27.
27970         Reported by Ralf Wildenhues.
27971
27972 2009-10-31  Jim Meyering  <meyering@redhat.com>
27973
27974         inttostr: aesthetics and improved (compile-time) safety
27975         Define inttype_is_signed rather than inttype_is_unsigned,
27976         since the sole use is via "#if inttype_is_signed".
27977         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
27978         inttype_is_unsigned.
27979         * lib/offtostr.c (inttype_is_signed): Likewise.
27980         * lib/uinttostr.c (inttype_is_signed): Likewise.
27981         * lib/umaxtostr.c (inttype_is_signed): Likewise.
27982         * lib/inttostr.c (inttostr): Use verify to cross-check the
27983         inttype_is_signed value and the signedness of the actual type.
27984         * modules/inttostr (Depends-on): Add verify.
27985
27986 2009-10-30  Eric Blake  <ebb9@byu.net>
27987
27988         build: avoid compiler warnings
27989         * lib/fchmodat.c (lchmod): Mark unused variables.
27990         * lib/getopt.c (_getopt_initialize): Likewise.
27991         * lib/mktime.c (__mktime_internal): Provide prototype.
27992         * lib/inttostr.c (inttostr): Avoid compiler warning even with
27993         older gcc that do not understand #pragma GCC diagnostic.
27994         * lib/uinttostr.c (inttype_is_unsigned): Define.
27995         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
27996
27997 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27998
27999         stat: fix compilation on AIX
28000         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
28001         only see struct stat64.
28002
28003 2009-10-30  Eric Blake  <ebb9@byu.net>
28004
28005         exclude: make more robust
28006         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
28007         rather than masking a coding bug.
28008         Suggested by Bruno Haible.
28009
28010 2009-10-30  Jim Meyering  <meyering@redhat.com>
28011
28012         perl scripts: remove #!/usr/bin/perl in favor of more portable...
28013         Rather than putting #!/usr/bin/perl on the first line,
28014         start with a variant of what's recommended by "man perlrun" that
28015         invokes the first "perl" program from your shell's search path.
28016         * build-aux/gitlog-to-changelog: Replace #!... as above.
28017         Add a "Local Variables" perl mode setting.
28018         Prompted by a patch from Ludovic Courtès.
28019         Improved by Eric Blake.
28020         * build-aux/useless-if-before-free: Likewise.
28021         * build-aux/announce-gen: Likewise.
28022         * build-aux/update-copyright: Likewise.
28023
28024 2009-10-29  Eric Blake  <ebb9@byu.net>
28025
28026         filenamecat-lgpl: adjust clients
28027         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
28028         filenamecat.
28029         * modules/renameat (Depends-on): Likewise.
28030
28031         filenamecat: split into filenamecat-lgpl
28032         * modules/filenamecat-lgpl: New module.
28033         * modules/filenamecat (Files): Move library-safe files into
28034         filenamecat-lgpl.
28035         (Depends-on): Add filenamecat-lgpl.
28036         (configure.ac): Declare witness.
28037         * lib/filenamecat.h (file_name_concat): Only declare when using
28038         GPL module.
28039         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
28040         Move...
28041         * lib/filenamecat-lgpl.c: ...into new file.
28042         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
28043         (gl_FILE_NAME_CONCAT): Use it.
28044         * MODULES.html.sh (File system functions): Mention new module.
28045
28046         argp: avoid memory leak
28047         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
28048         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
28049         base_name, since the latter malloc()s and can call exit().
28050         Leak introduced 2006-07-03.
28051
28052         dirname-lgpl: adjust clients that don't need full dirname
28053         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
28054         * modules/filenamecat (Depends-on): Likewise.
28055         * modules/linkat (Depends-on): Likewise.
28056         * modules/mkancesdirs (Depends-on): Likewise.
28057         * modules/mkdir (Depends-on): Likewise.
28058         * modules/openat (Depends-on): Likewise.
28059         * modules/savewd (Depends-on): Likewise.
28060         * modules/rename (Depends-on): Likewise.
28061         (License): Relax license.
28062         * modules/mkdir-tests (Depends-on): Drop progname.
28063         (Makefile.am): Delete unneeded LDADD.
28064         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
28065
28066         dirname: split into dirname-lgpl
28067         * modules/dirname-lgpl: New module.
28068         * modules/dirname (Files): Move library-safe files into
28069         dirname-lgpl.
28070         (Depends-on): Add dirname-lgpl.
28071         (configure.ac): Declare witness.
28072         * modules/double-slash-root (License): Relax license.
28073         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
28074         module.
28075         * lib/dirname.c (dir_len, mdir_name): Move...
28076         * lib/dirname-lgpl.c: ...into new file.
28077         * lib/basename.c (last_component, base_len): Move...
28078         * lib/basename-lgpl.c: ...into new file.
28079         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
28080         (gl_DIRNAME): Use it.
28081         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
28082         Mention new module.
28083         * modules/dirname-tests (Depends-on): Add progname.
28084         * tests/test-dirname.c (program_name): Delete.
28085
28086         mkdir: make safe for libraries
28087         * modules/mkdir (Depends-on): Drop xalloc.
28088         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
28089         exit.
28090
28091         tests: avoid some compiler warnings
28092         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
28093         literals.
28094         * tests/test-memchr.c (main): Avoid type mismatch.
28095         * tests/test-arpa_inet.c (main): Avoid unused parameters.
28096         * tests/test-base64.c (main): Likewise.
28097         * tests/test-getdelim.c (main): Likewise.
28098         * tests/test-gethostname.c (main): Likewise.
28099         * tests/test-getline.c (main): Likewise.
28100         * tests/test-netinet_in.c (main): Likewise.
28101         * tests/test-select.c (open_server_socket, main): Likewise.
28102         * tests/test-select-stdin.c (main): Likewise.
28103         * tests/test-sockets.c (main): Likewise.
28104         * tests/test-strsignal.c (main): Likewise.
28105         * tests/test-sys_select.c (main): Likewise.
28106         * tests/test-sys_socket.c (main): Likewise.
28107         * tests/test-u64.c (main): Likewise.
28108         * tests/test-xfprintf-posix.c (main): Likewise.
28109         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
28110
28111         sockets: avoid compiler warning
28112         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
28113
28114         maint: detect usage(1) and other suspicious exits
28115         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
28116
28117 2009-10-29  Jim Meyering  <meyering@redhat.com>
28118
28119         timespec: long-to-int truncation could make timespec_cmp malfunction
28120         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
28121         a multiple of 2^32 nanoseconds as no difference.
28122
28123 2009-10-28  Jim Meyering  <meyering@redhat.com>
28124
28125         fprintftime: wrap macro code argument in "do {...} while(0)"
28126         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
28127         cpy macro must be a statement that can be followed by a semicolon.
28128         Now that the else clause contains a comment and is hence longer
28129         than one line, I require curly braces.  That in turn requires
28130         that we wrap this code block in the standard do...while(0).
28131
28132         fprintftime: remove stray semicolon from previous change
28133         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
28134
28135         fprintftime: avoid a warning about ignored fwrite return value
28136         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
28137         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
28138         that is unsafe.
28139         * modules/fprintftime (Depends-on): Add ignore-value.
28140
28141         exclude: avoid an unwarranted warning
28142         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
28143
28144 2009-10-27  Eric Blake  <ebb9@byu.net>
28145
28146         fseek: avoid compilation failure when fflush is replaced
28147         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
28148         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
28149         module is in use.
28150         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
28151         module is not in use; since REPLACE_FSEEK worked otherwise.
28152         (GNULIB_FTELLO): Likewise for ftell.
28153         Reported by Ian Beckwith and others.
28154
28155 2009-10-27  Bruno Haible  <bruno@clisp.org>
28156
28157         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
28158         Reported by Jim Meyering.
28159
28160 2009-10-27  Jim Meyering  <jim@meyering.net>
28161             Bruno Haible  <bruno@clisp.org>
28162
28163         Avoid warning despite dropping the return value of fwrite.
28164         * lib/unicodeio.c: Include ignore-value.h.
28165         (fwrite_success_callback): Explicitly ignore fwrite's return value.
28166         * modules/unicodeio (Depends-on): Add ignore-value.
28167
28168 2009-10-26  Eric Blake  <ebb9@byu.net>
28169
28170         areadlinkat: fix fallback path
28171         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
28172         pointer and zero.
28173
28174 2009-10-22  Pádraig Brady  <P@draigBrady.com>
28175
28176         Use a better IO block size for modern systems
28177         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
28178         * lib/md2.c: Likewise.
28179         * lib/md4.c: Likewise.
28180         * lib/md5.c: Likewise.
28181         * lib/sha1.c: Likewise.
28182         * lib/sha256.c: Likewise.
28183         * lib/sha512.c: Likewise.
28184
28185 2009-10-22  Eric Blake  <ebb9@byu.net>
28186
28187         tests: avoid several compiler warnings
28188         * tests/test-getcwd.c (main): Avoid buffer underflow.
28189         * tests/test-getdate.c (main): String literals are not safe with
28190         putenv, so use setenv.  Declare unused argument.
28191         * modules/getdate-tests (Depends-on): Add setenv.
28192         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
28193         problems with string literals in char *.
28194         * tests/test-hash.c (main): Avoid shadowing declaration.
28195         (insert_new): Treat string literals as char const *.
28196         * tests/test-getopt.h (test_getopt): Likewise.
28197         (getopt_loop): Alter types to minimize casting elsewhere.
28198         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
28199         (test_getopt_long_posix): Likewise.
28200         (do_getopt_long): Add wrapper to minimize casting.
28201         * tests/test-atexit.c (clear_temp_file): Use void.
28202         * tests/test-areadlink-with-size.c (main): Declare unused
28203         arguments.
28204         * tests/test-areadlink.c (main): Likewise.
28205         * tests/test-areadlinkat-with-size.c (main): Likewise.
28206         * tests/test-areadlinkat.c (main): Likewise.
28207         * tests/test-canonicalize-lgpl.c (main): Likewise.
28208         * tests/test-canonicalize.c (main): Likewise.
28209         * tests/test-dirent-safer.c (main): Likewise.
28210         * tests/test-dirname.c (main): Likewise.
28211         * tests/test-dup2.c (main): Likewise.
28212         * tests/test-fchdir.c (main): Likewise.
28213         * tests/test-fcntl-h.c (main): Likewise.
28214         * tests/test-fcntl-safer.c (main): Likewise.
28215         * tests/test-fdopendir.c (main): Likewise.
28216         * tests/test-fdutimensat.c (main): Likewise.
28217         * tests/test-fflush.c (main): Likewise.
28218         * tests/test-filenamecat.c (main): Likewise.
28219         * tests/test-filevercmp.c (main): Likewise.
28220         * tests/test-fopen-safer.c (main): Likewise.
28221         * tests/test-fopen.c (main): Likewise.
28222         * tests/test-fpending.c (main): Likewise.
28223         * tests/test-fpurge.c (main): Likewise.
28224         * tests/test-freading.c (main): Likewise.
28225         * tests/test-fstatat.c (main): Likewise.
28226         * tests/test-fsync.c (main): Likewise.
28227         * tests/test-futimens.c (main): Likewise.
28228         * tests/test-getndelim2.c (main): Likewise.
28229         * tests/test-gettimeofday.c (main): Likewise.
28230         * tests/test-getopt.c (main): Likewise.
28231         * tests/test-i-ring.c (main): Likewise.
28232         * tests/test-inttypes.c (main): Likewise.
28233         * tests/test-link.c (main): Likewise.
28234         * tests/test-lstat.c (main): Likewise.
28235         * tests/test-math.c (main): Likewise.
28236         * tests/test-md5.c (main): Likewise.
28237         * tests/test-memchr2.c (main): Likewise.
28238         * tests/test-memrchr.c (main): Likewise.
28239         * tests/test-mkdir.c (main): Likewise.
28240         * tests/test-mkdirat.c (main): Likewise.
28241         * tests/test-mkfifoat.c (main): Likewise.
28242         * tests/test-open.c (main): Likewise.
28243         * tests/test-openat-safer.c (main): Likewise.
28244         * tests/test-openat.c (main): Likewise.
28245         * tests/test-quotearg.c (main): Likewise.
28246         * tests/test-rawmemchr.c (main): Likewise.
28247         * tests/test-readlink.c (main): Likewise.
28248         * tests/test-remove.c (main): Likewise.
28249         * tests/test-rename.c (main): Likewise.
28250         * tests/test-renameat.c (main): Likewise.
28251         * tests/test-rmdir.c (main): Likewise.
28252         * tests/test-sha1.c (main): Likewise.
28253         * tests/test-signal.c (main): Likewise.
28254         * tests/test-sigaction.c (main): Likewise.
28255         * tests/test-stat.c (main): Likewise.
28256         * tests/test-stat-time.c (main): Likewise.
28257         * tests/test-stddef.c (main): Likewise.
28258         * tests/test-stdint.c (main): Likewise.
28259         * tests/test-stdio.c (main): Likewise.
28260         * tests/test-stdlib.c (main): Likewise.
28261         * tests/test-strchrnul.c (main): Likewise.
28262         * tests/test-strerror.c (main): Likewise.
28263         * tests/test-string.c (main): Likewise.
28264         * tests/test-strtod.c (main): Likewise.
28265         * tests/test-strverscmp.c (main): Likewise.
28266         * tests/test-symlink.c (main): Likewise.
28267         * tests/test-symlinkat.c (main): Likewise.
28268         * tests/test-sys_stat.c (main): Likewise.
28269         * tests/test-sys_time.c (main): Likewise.
28270         * tests/test-time.c (main): Likewise.
28271         * tests/test-unistd.c (main): Likewise.
28272         * tests/test-unlink.c (main): Likewise.
28273         * tests/test-unlinkat.c (main): Likewise.
28274         * tests/test-utimens.c (main): Likewise.
28275         * tests/test-utimensat.c (main): Likewise.
28276         * tests/test-version-etc.c (main): Likewise.
28277         * tests/test-wchar.c (main): Likewise.
28278         * tests/test-wctype.c (main): Likewise.
28279         * tests/test-xprintf-posix.c (main): Likewise.
28280         * tests/test-posixtm.c (main): Likewise.
28281         (STREQ): Delete unused macro.
28282         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
28283         shadowed variables.
28284         * tests/test-memchr.c (main): Likewise.
28285
28286 2009-10-21  Eric Blake  <ebb9@byu.net>
28287
28288         areadlinkat: avoid failure on older glibc
28289         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
28290         rather than mis-comparing 0 against FUNC_RESULT of char*.
28291
28292 2009-10-21  Bruno Haible  <bruno@clisp.org>
28293
28294         * modules/stpncpy (License): Relicense under LGPLv2+.
28295         Reported by David Lutterkort <lutter@redhat.com>.
28296
28297 2009-10-20  Eric Blake  <ebb9@byu.net>
28298
28299         utimensat: work around Solaris 9 bug
28300         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
28301         has trailing slash bugs.
28302         * tests/test-lutimens.h (test_lutimens): Enhance test.
28303         * tests/test-utimens.h (test_utimens): Likewise.
28304         * doc/posix-functions/utime.texi (utime): Enhance documentation.
28305         * doc/posix-functions/utimes.texi (utimes): Likewise.
28306         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28307         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
28308         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28309         * doc/posix-functions/futimens.texi (futimens): Likewise.
28310
28311         fdutimensat: new module
28312         * modules/fdutimensat: New file.
28313         * lib/fdutimensat.c (fdutimensat): Likewise.
28314         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28315         * MODULES.html.sh (File system functions): Mention module.
28316         * modules/fdutimensat-tests: New test.
28317         * tests/test-fdutimensat.c: Likewise.
28318
28319         doc: regenerate INSTALL
28320         * doc/INSTALL: Reflect recent autoconf update.
28321         * doc/INSTALL.ISO: Likewise.
28322         * doc/INSTALL.UTF-8: Likewise.
28323
28324 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28325
28326         acl: warn if ACL support is not detected
28327         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28328
28329 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28330
28331         * lib/nproc.h: Add extern "C" block for C++.
28332
28333 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28334             Bruno Haible  <bruno@clisp.org>
28335
28336         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28337         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28338         * doc/posix-functions/isalpha.texi: Likewise.
28339         * doc/posix-functions/isblank.texi: Likewise.
28340         * doc/posix-functions/iscntrl.texi: Likewise.
28341         * doc/posix-functions/isdigit.texi: Likewise.
28342         * doc/posix-functions/isgraph.texi: Likewise.
28343         * doc/posix-functions/islower.texi: Likewise.
28344         * doc/posix-functions/isprint.texi: Likewise.
28345         * doc/posix-functions/ispunct.texi: Likewise.
28346         * doc/posix-functions/isspace.texi: Likewise.
28347         * doc/posix-functions/isupper.texi: Likewise.
28348         * doc/posix-functions/isxdigit.texi: Likewise.
28349
28350 2009-10-18  Bruno Haible  <bruno@clisp.org>
28351
28352         Tests for module 'isblank'.
28353         * modules/isblank-tests: New file.
28354         * tests/test-isblank.c: New file.
28355
28356         New module 'isblank'.
28357         * lib/isblank.c: New file.
28358         * m4/isblank.m4: New file.
28359         * modules/isblank: New file.
28360         * doc/posix-functions/isblank.texi: Mention the new module.
28361
28362 2009-10-18  Bruno Haible  <bruno@clisp.org>
28363
28364         New module 'ctype'.
28365         * lib/ctype.in.h: New file.
28366         * m4/ctype.m4: New file.
28367         * modules/ctype: New file.
28368         * doc/posix-headers/ctype.texi: Mention the new module.
28369
28370 2009-10-18  Jim Meyering  <meyering@redhat.com>
28371
28372         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28373         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28374         right after its initialization, rather than farther down.
28375         Keeping these in close proximity makes it easier to ensure
28376         that each such variable is initialized.  E.g.,
28377
28378             LIB_CLOCK_GETTIME=
28379             AC_SUBST([LIB_CLOCK_GETTIME])
28380
28381         This change also increments these serial numbers.
28382         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28383         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28384         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28385
28386 2009-10-18  Bruno Haible  <bruno@clisp.org>
28387
28388         Don't let environment variables perturb build.
28389         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28390         (gl_PREREQ_GETHRXTIME): ... not here.
28391
28392 2009-10-18  Bruno Haible  <bruno@clisp.org>
28393
28394         Avoid symlink attack in localcharset module.
28395         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28396         (O_NOFOLLOW): Define fallback.
28397         (get_charset_aliases): Don't open the file if it is a symbolic link.
28398         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28399         gl_FCNTL_H.
28400         (gl_FCNTL_H): Require it.
28401         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28402         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28403         Reported by Fergal Glynn <fglynn@veracode.com>.
28404
28405 2009-10-18  Bruno Haible  <bruno@clisp.org>
28406
28407         Implement nproc for mingw.
28408         * lib/nproc.c: Include <windows.h>
28409         (num_processors): On native Windows platforms, try GetSystemInfo.
28410
28411 2009-10-18  Bruno Haible  <bruno@clisp.org>
28412
28413         Implement nproc for IRIX.
28414         * lib/nproc.c: Include <sys/sysmp.h>.
28415         (num_processors): On IRIX systems, try sysmp.
28416         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28417
28418 2009-10-18  Bruno Haible  <bruno@clisp.org>
28419
28420         Implement nproc for HP-UX.
28421         * lib/nproc.c: Include <sys/pstat.h>
28422         (num_processors): On HP-UX systems, try pstat_getdynamic.
28423         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28424         pstat_getdynamic.
28425
28426 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28427             Bruno Haible  <bruno@clisp.org>
28428
28429         Implement nproc for NetBSD, OpenBSD.
28430         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28431         (ARRAY_SIZE): New macro.
28432         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28433         * m4/nproc.m4: New file.
28434         * modules/nproc (Files): Add m4/nproc.m4.
28435         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28436         (Makefile.am): Instead, augment lib_SOURCES.
28437
28438 2009-10-18  Bruno Haible  <bruno@clisp.org>
28439
28440         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28441         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28442         sys/param.h.
28443
28444 2009-10-16  Eric Blake  <ebb9@byu.net>
28445
28446         utimensat: new module
28447         * modules/utimensat: New file.
28448         * lib/utimensat.c (utimensat): Likewise.
28449         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28450         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28451         so we can work around Linux bugs.
28452         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28453         * modules/sys_stat (Makefile.am): Substitute them.
28454         * lib/sys_stat.in.h (utimensat): Declare it.
28455         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28456         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28457         * modules/utimensat-tests: New test.
28458         * tests/test-utimensat.c: Likewise.
28459
28460         utimens: let lutimens work on non-symlinks
28461         * lib/utimens.c (lutimens): Fall back to utimens rather than
28462         failing with ENOSYS, when file is not a symlink.
28463         (utimens): Reduce redirection.
28464         * tests/test-lutimens.h (test_lutimens): Update test to cover
28465         non-symlinks.
28466         * tests/test-utimens.h (test_utimens): Update test to cover
28467         symlinks.
28468         * tests/test-utimens.c (main): Update caller.
28469
28470         utimens: cache whether utimensat syscall works
28471         * lib/utimens.c (utimensat_works_really): New cache variable.
28472         (fdutimens, lutimens): Use it to avoid failing syscall.
28473
28474         test-stat-time, test-utimens: improve portability
28475         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28476         ext4 on alpha, and for cygwin.
28477         * tests/test-utimens-common.h: New file.
28478         (nap): Factor delays into single function.
28479         * tests/test-lutimens.h (test_lutimens): Use new header.
28480         * tests/test-futimens.h (test_futimens): Likewise.
28481         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28482         timestamps to occur from same machine, as was done previously for
28483         test_utimens.
28484         * modules/utimens-tests (Files): Ship new file.
28485         * modules/futimens-tests (Files): Likewise.
28486         Reported in part by Jim Meyering.
28487
28488         sys_stat: sort replacement declarations
28489         * lib/sys_stat.in.h: Sort declarations.
28490         * lib/futimens.c (futimens): Fix typo.
28491
28492 2009-10-15  Jim Meyering  <meyering@redhat.com>
28493
28494         don't let environment settings perturb build
28495         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28496         could cause a configure-time and/or build-time malfunction.
28497         Typically, a configure-time function-in-library test is performed
28498         via code like this:
28499
28500           LIB_VAR=
28501           AC_SUBST([LIB_VAR])
28502           prefix_saved_LIBS=$LIBS
28503             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28504                        [test "$ac_cv_search_FUNC" = "none required" ||
28505                         LIB_VAR=$ac_cv_search_FUNC])
28506           LIBS=$prefix_saved_LIBS
28507
28508         However, in each of the files affected by this change, the LIB_VAR=
28509         initialization was omitted.  Thus, when set in the environment, its
28510         value would propagate into generated Makefiles when FUNC is not found
28511         in LIB_NAME.
28512         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28513         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28514         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28515
28516 2009-10-14  Eric Blake  <ebb9@byu.net>
28517
28518         fchdir: avoid infinite recursion in mingw
28519         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28520         recursing.
28521
28522         test-stat-time: port to mingw
28523         * tests/test-stat-time.c (force_unlink): Return a value.
28524         (test_ctime) [W32]: Fix compilation error.
28525         (nap): Don't call usleep with too large an argument.  Use
28526         force_unlink.
28527         * doc/pastposix-functions/usleep.texi (usleep): Document the
28528         portability issue.
28529
28530 2009-10-13  Jim Meyering  <meyering@redhat.com>
28531
28532         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
28533         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
28534         * modules/pipe-filter-ii: Likewise.
28535         * modules/sys_socket-tests: Likewise.
28536         * modules/tsearch-tests: Likewise.
28537         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
28538         (check): Depend on it.
28539
28540 2009-10-12  Eric Blake  <ebb9@byu.net>
28541
28542         utimens-tests: port to NFS file systems
28543         * tests/test-utimens.h (test_utimens): Refactor utimecmp
28544         comparisons to avoid spurious failures from timestamp drift
28545         between NFS machines.
28546
28547 2009-10-12  Eric Blake  <ebb9@byu.net>
28548
28549         stat-time-tests: minor cleanups
28550         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
28551         * tests/test-stat-time.c (nap): Separate assignment from call.
28552         Suggested by Paolo Bonzini and Bruno Haible.
28553
28554         sys_stat: guarantee struct timespec
28555         * lib/sys_stat.in.h (includes): Always include <time.h>
28556         * modules/sys_stat (Depends-on): Add time.
28557         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
28558         mode_t permission values.
28559         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
28560         get at subsecond timestamps.
28561
28562 2009-10-10  Eric Blake  <ebb9@byu.net>
28563
28564         futimens: new module
28565         * modules/futimens: New file.
28566         * lib/futimens.c (futimens): Likewise.
28567         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
28568         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
28569         we can work around Linux bugs.
28570         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28571         * modules/sys_stat (Makefile.am): Substitute them.
28572         * lib/sys_stat.in.h (futimens): Declare it.
28573         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28574         * doc/posix-functions/futimens.texi (futimens): Likewise.
28575         * modules/futimens-tests: New test.
28576         * tests/test-futimens.c: Likewise.
28577
28578         utimens: introduce fdutimens
28579         * lib/utimens.h (fdutimens): New prototype.
28580         * lib/utimens.c (gl_futimens): Move guts...
28581         (fdutimens): ...to new interface.
28582         * tests/test-utimens.c (do_fdutimens): Use it.
28583
28584         utimens: add UTIME_NOW and UTIME_OMIT support
28585         * lib/utimens.c (validate_timespec, update_timespec): New helper
28586         functions.
28587         (gl_futimens, lutimens): Use them.
28588         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
28589         stdbool, sys_stat.
28590         (Link): Mention resulting library dependency.
28591         * modules/utimecmp (Link): Likewise.
28592         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
28593         (Makefile.am): Pick up library dependency.
28594         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
28595         definition.
28596         * tests/test-sys_stat.c: Test the definitions.
28597         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
28598         * NEWS: Document library dependency.
28599
28600         utimecmp: support symlink timestamps
28601         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
28602         hashing when possible.  Use pathconf when available.
28603         (SYSCALL_RESOLUTION): Recognize tighter resolution.
28604         * modules/utimecmp (Depends-on): Add lstat.
28605
28606         utimens: add lutimens interface
28607         * lib/utimens.c (lutimens): New function.
28608         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
28609         * lib/utimens.h (lutimens): Declare new interface.
28610         * tests/test-utimens.c (main): Enhance test.
28611         * tests/test-lutimens.h (test_lutimens): New file.
28612         * modules/utimens-tests (Files): Distribute it.
28613         (Depends-on): Add symlink.
28614         (configure.ac): Check for usleep.
28615
28616         utimens: validate futimens usage
28617         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28618         fewer syscalls on failure later on.  Avoid compiler warning on
28619         mingw.
28620         * modules/utimens (Depends-on): Add dup2.
28621
28622         utimens: add test
28623         * modules/utimens-tests: New test.
28624         * tests/test-utimens.h: New file.
28625         * tests/test-futimens.h: Likewise.
28626         * tests/test-utimens.c: Likewise.
28627
28628         doc: mention timestamp portability issues
28629         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28630         instead.
28631         * doc/posix-functions/utime.texi (utime): Likewise.
28632         * doc/posix-functions/utimes.texi (utimes): Likewise.
28633         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28634         instead.
28635         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28636         module.
28637         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28638         Mention weakness with symlink timestamps.
28639         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28640         to utimensat/futimens instead.
28641         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28642
28643         test-dup2: enhance test
28644         * tests/test-dup2.c (main): Also check AT_FDCWD.
28645
28646         test-stat-time: avoid more spurious failures
28647         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28648         xfs; and avoid race if the two timestamps cross quantization edge.
28649
28650         relocatable: prefer 'file system' over 'filesystem'
28651         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28652         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28653         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28654         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28655         * lib/relocatable.c (compute_curr_prefix): Likewise.
28656
28657 2009-10-10  Jim Meyering  <meyering@redhat.com>
28658
28659         stat-time-tests: check for the usleep function
28660         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28661
28662 2009-10-10  Bruno Haible  <bruno@clisp.org>
28663
28664         * modules/xnanosleep: Put the Link section after the Include section.
28665
28666 2009-10-09  Eric Blake  <ebb9@byu.net>
28667
28668         dup2: work around FreeBSD 6.1 bug
28669         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28670         * doc/posix-functions/dup2.texi (dup2): Document it.
28671         Reported by Nelson H. F. Beebe and Jim Meyering.
28672
28673         test-stat-time: port to buggy NFS clients
28674         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28675         (test_ctime): Also skip test if mtime and ctime are skewed.
28676
28677         maint: prefer 'file system' over 'filesystem'
28678         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28679         * doc/posix-functions/lstat.texi (lstat): Likewise.
28680         * lib/file-has-acl.c (file_has_acl): Likewise.
28681         * lib/fwriteerror.c [TEST]: Likewise.
28682         * tests/test-areadlink.h (test_areadlink): Likewise.
28683         * tests/test-areadlinkat-with-size.c (main): Likewise.
28684         * tests/test-areadlinkat.c (main): Likewise.
28685         * tests/test-canonicalize-lgpl.c (main): Likewise.
28686         * tests/test-canonicalize.c (main): Likewise.
28687         * tests/test-fstatat.c (main): Likewise.
28688         * tests/test-linkat.c (main): Likewise.
28689         * tests/test-lstat.h (test_lstat_func): Likewise.
28690         * tests/test-mkdir.h (test_mkdir): Likewise.
28691         * tests/test-readlink.h (test_readlink): Likewise.
28692         * tests/test-remove.c (main): Likewise.
28693         * tests/test-rename.h (test_rename): Likewise.
28694         * tests/test-renameat.c (main): Likewise.
28695         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28696         * tests/test-symlink.h (test_symlink): Likewise.
28697         * tests/test-symlinkat.c (main): Likewise.
28698         * tests/test-unlink.h (test_unlink_func): Likewise.
28699         * tests/test-unlinkat.c (main): Likewise.
28700
28701         maint: make realtime library usage explicit
28702         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
28703         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
28704         * modules/settime (Link): Likewise.
28705         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
28706
28707         test-stat-time: speed up execution
28708         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
28709         warning on mingw.
28710         (nap): New helper function.
28711         (prepare_test): Use it to reduce sleep time.
28712         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
28713         execution.
28714         * modules/stat-time-tests (configure.ac): Check for usleep.
28715
28716 2009-10-09  Jim Meyering  <meyering@redhat.com>
28717
28718         selinux-h: always use getfilecon wrappers
28719         * lib/getfilecon.c: New file.
28720         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
28721         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
28722         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
28723         (fgetfilecon): Provide a stub.
28724         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
28725         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
28726         file unconditionally.
28727         When <selinux/selinux.h> is found, arrange to use wrappers.
28728         * modules/selinux-h (Files): Add getfilecon.c.
28729         (Makefile.am): Substitute include-next-related bits
28730         into the now-always-generated selinux/selinux.h file.
28731         * doc/glibc-functions/lgetfilecon.texi: New file.
28732         * doc/glibc-functions/fgetfilecon.texi: New file.
28733         * doc/glibc-functions/getfilecon.texi: New file.
28734         * doc/glibc-functions/getfilecon-desc.texi: New file.
28735         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
28736         which to pull in the new files.
28737         * MODULES.html.sh (Misc): Add selinux-h.
28738
28739 2009-10-08  Jim Meyering  <meyering@redhat.com>
28740
28741         unistd: fix comment typo
28742         * lib/unistd.in.h (euidaccess): Fix a comment typo.
28743
28744 2009-10-08  Eric Blake  <ebb9@byu.net>
28745
28746         areadlink: use SIZE_MAX consistently
28747         * modules/areadlink (Depends-on): Add stdint.
28748         * modules/areadlink-with-size (Depends-on): Likewise.
28749         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
28750         gives NULL; drop sys/types, since unistd gives size_t; and add
28751         stdint for SIZE_MAX.
28752         (SIZE_MAX): Rely on headers.
28753         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
28754         and add stdint.
28755         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
28756         (SIZE_MAX): Likewise.
28757         (INITIAL_BUF_SIZE): Turn into enum.
28758         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
28759
28760 2009-10-08  Jim Meyering  <meyering@redhat.com>
28761
28762         areadlinkat: avoid compilation failure
28763         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
28764         Fix typo in comment.
28765
28766 2009-10-07  Eric Blake  <ebb9@byu.net>
28767
28768         areadlinkat-with-size: new module
28769         * modules/areadlinkat-with-size: New module.
28770         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
28771         * lib/areadlink.h (areadlinkat): Declare it.
28772         * MODULES.html.sh (File system functions): Mention it.
28773         * modules/areadlinkat-with-size-tests: New test.
28774         * tests/test-areadlinkat-with-size.c: New file.
28775
28776         xreadlinkat: new module
28777         * modules/xreadlinkat: New module.
28778         * lib/xreadlinkat.c (xreadlinkat): New file.
28779         * lib/xreadlink.h (xreadlinkat): Declare it.
28780         * MODULES.html.sh (File system functions): Mention it.
28781
28782         areadlinkat: new module
28783         * lib/at-func.c (FUNC_FAIL): New define.
28784         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
28785         * modules/areadlinkat: New module.
28786         * lib/linkat.c (areadlinkat): Move...
28787         * lib/areadlinkat.c (areadlinkat): ...to new file.
28788         * lib/areadlink.h (areadlinkat): Declare it.
28789         * modules/linkat (Depends-on): Add areadlinkat.
28790         * MODULES.html.sh (File system functions): Mention it.
28791         * modules/areadlinkat-tests: New test.
28792         * tests/test-areadlinkat.c: New file.
28793
28794         areadlink, areadlink-with-size: add tests
28795         * modules/areadlink-tests: New test.
28796         * modules/areadlink-with-size-tests: Likewise.
28797         * tests/test-areadlink.h: New file.
28798         * tests/test-areadlink.c: Likewise.
28799         * tests/test-areadlink-with-size.c: Likewise.
28800
28801         maint: minor cleanups
28802         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
28803         _UNUSED_PARAMETER_ instead.
28804         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
28805         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
28806         * modules/linkat-tests (Files): Distribute test-link.h.
28807
28808         openat, utimens: whitespace cleanup
28809         * lib/openat.c: Prefer space throughout, rather than mix of 8
28810         spaces vs. tabs.
28811         * lib/at-func.c: Likewise.
28812         * lib/utimens.c: Likewise.
28813
28814         openat: avoid using wrong fd
28815         * lib/openat.c (openat_permissive): Reject user's fd if saving the
28816         working directory chooses same fd.
28817         * lib/at-func.c (AT_FUNC_NAME): Likewise.
28818
28819         mkdir, mkdirat: fix cygwin 1.5.x bug
28820         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
28821         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
28822         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
28823         bug.
28824         (gl_PREREQ_MKDIR): Delete unused macro.
28825         * modules/mkdir (Files): Track file rename.
28826         (configure.ac): Update macro name.
28827         * modules/openat (Depends-on): Add mkdir.
28828         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
28829
28830         mkdir, mkdirat: add tests
28831         * modules/mkdir-tests: New test.
28832         * tests/test-mkdir.h: New file.
28833         * tests/test-mkdir.c: Likewise.
28834         * tests/test-mkdirat.c: Likewise.
28835         * modules/openat-tests (Files): Add new files.
28836         (Makefile.am): Run new test.
28837
28838 2009-10-06  Eric Blake  <ebb9@byu.net>
28839
28840         doc: tweak *at function documentation
28841         * doc/posix-functions/faccessat.texi (faccessat): Mention
28842         known issue with replacement.
28843         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
28844         * doc/posix-functions/linkat.texi (linkat): Likewise.
28845         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28846         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28847         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28848         * doc/posix-functions/renameat.texi (renameat): Likewise.
28849         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28850
28851         openat: fix GNU/Hurd bug in unlinkat
28852         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
28853         broken.
28854         * doc/posix-functions/unlink.texi (unlink): Document this.
28855         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
28856
28857         fdopendir: fix GNU/Hurd bug
28858         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
28859         allowing non-directory fds.
28860         * lib/fdopendir.c (rpl_fdopendir): Work around it.
28861         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28862         * modules/dirent (Makefile.am): Substitute it.
28863         * lib/dirent.in.h (fdopendir): Declare replacement.
28864         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
28865         * tests/test-fdopendir.c (main): Test something other than
28866         /dev/null, since on Hurd that behaves like a directory.
28867
28868         test-symlink: port to GNU/Hurd
28869         * tests/test-symlink.h (test_symlink): Relax expected errno.
28870
28871         doc: tweak more cygwin information
28872         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
28873         now compatible with glibc.
28874         * doc/posix-functions/getopt.texi (getopt): Likewise.
28875
28876         getopt-gnu: add another test
28877         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
28878         guarantee behavior relied on by m4.
28879         * tests/test-getopt.c (main): Use it.
28880         * modules/getopt-posix-tests (Depends-on): Add setenv.
28881         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
28882
28883         getopt: fix compilation on darwin
28884         * lib/getopt.in.h (includes): Leave breadcrumbs during system
28885         include.
28886         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
28887         Reported by Ludovic Courtès.
28888
28889 2009-10-06  Bruno Haible  <bruno@clisp.org>
28890
28891         * modules/size_max (Description): Discourage its use.
28892         Reported by Simon Josefsson.
28893
28894 2009-10-06  Jim Meyering  <meyering@redhat.com>
28895
28896         linkat: avoid compilation failure
28897         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
28898
28899 2009-10-05  Eric Blake  <ebb9@byu.net>
28900
28901         linkat: support Linux 2.6.17
28902         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
28903         linkat on Linux, but allow cache variable override.
28904         * lib/linkat.c (rpl_linkat): Define override.
28905         * modules/linkat (Depends-on): Add symlinkat.
28906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
28907         * modules/unistd (Makefile.am): Substitute it.
28908         * lib/unistd.in.h (linkat): Declare replacement.
28909         Reported by Pádraig Brady.
28910
28911         quotearg: port test to systems with C.UTF-8 locale
28912         * tests/test-quotearg.c (struct result_strings): Add another
28913         member, differentiating between C.ASCII and C.UTF-8 handling.
28914         (compare_strings): Add parameter.
28915         (main): Adjust all callers.
28916
28917         getopt: avoid clash with FreeBSD _getopt_internal
28918         * lib/getopt.in.h (_getopt_internal): Override the name.
28919         * lib/getopt_int.h (includes): Pick up any overrides.
28920         Reported by Reuben Thomas.
28921
28922         hash: allow C89 compilation
28923         * lib/hash.c (check_tuning): Move declaration before statement.
28924         Reported by Reuben Thomas.
28925
28926 2009-10-05  Karl Berry  <karl@gnu.org>
28927
28928         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
28929
28930 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
28931             Bruno Haible  <bruno@clisp.org>
28932
28933         * lib/uname.c (uname): Use a table-driven algorithm to compute
28934         Windows NT versions.
28935
28936 2009-10-04  Bruno Haible  <bruno@clisp.org>
28937
28938         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
28939         program_invocation_short_name.
28940         * modules/progname (configure.ac): Test for presence of
28941         program_invocation_short_name.
28942         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28943
28944 2009-10-04  Bruno Haible  <bruno@clisp.org>
28945
28946         * lib/progname.c (set_program_name): Fix comment.
28947         Reported by Jim Meyering.
28948
28949 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28950             Bruno Haible  <bruno@clisp.org>
28951
28952         * lib/uname.c: Include <string.h>.
28953         (uname): Do only one call to GetVersionEx in the common case.
28954
28955 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28956             Bruno Haible  <bruno@clisp.org>
28957
28958         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
28959         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
28960         (uname): Add support for Windows CE and various non-x86 CPU types.
28961
28962 2009-10-03  Bruno Haible  <bruno@clisp.org>
28963
28964         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
28965         invocation to tests/configure.ac.
28966         Reported by Ian Beckwith <ianb@erislabs.net>.
28967
28968 2009-10-02  Eric Blake  <ebb9@byu.net>
28969
28970         fchdir: avoid compiler warning
28971         * lib/fchdir.c (canonicalize_file_name)
28972         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
28973
28974         test-open: support mingw errno values
28975         * tests/test-open.h (test_open): Relax test.
28976         * tests/test-fopen.h (test_fopen): Likewise.
28977         * tests/test-openat-safer.c (main): Likewise.
28978
28979         open: fix opening directory on mingw
28980         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
28981
28982         test-open: on GNU/Hurd, /dev/null is a directory
28983         * tests/test-fopen.h (main): Rename...
28984         (test_fopen): ...to this.  Use a guaranteed non-directory when
28985         confirming open behavior on trailing slash.
28986         * tests/test-openat-safer.c (main): Likewise.
28987         * tests/test-open.h (main): Likewise....
28988         (test_open): ...to this.
28989         * tests/test-fopen.c (main): Adjust caller.
28990         * tests/test-fopen-safer.c (main): Likewise.
28991         * tests/test-open.c (main): Likewise.
28992         * tests/test-fcntl-safer.c (main): Likewise.
28993         Reported by Samuel Thibault.
28994
28995         rename, fchdir: don't ignore chdir failure
28996         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
28997         * lib/rename.c (rpl_rename) [W32]: Likewise.
28998         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
28999         an empty destination directory if source cannot be renamed,
29000         although there is still possibility for failure.
29001         * doc/posix-functions/rename.texi (rename): Document the race.
29002         Reported by Jim Meyering.
29003
29004         maint: cleanup whitespace in recent commits
29005         * lib/rename.c (rpl_rename): Remove tabs.
29006         * tests/test-link.h (test_link): Likewise.
29007         * lib/fchdir.c (get_name): Likewise.
29008         Reported by Jim Meyering.
29009
29010 2009-10-02  Ben Pfaff  <blp@gnu.org>
29011
29012         relocatable-prog-wrapper: Add missing dependency on
29013         double-slash-root.
29014         * modules/relocatable-prog-wrapper: Add dependency.
29015         Reported by Ian Beckwith <ianb@erislabs.net>.
29016
29017 2009-10-02  Eric Blake  <ebb9@byu.net>
29018
29019         renameat: fix Solaris bugs
29020         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
29021         needed fixing.
29022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
29023         * modules/stdio (Makefile.am): Substitute it.
29024         * lib/stdio.in.h (renameat): Declare replacement.
29025         * lib/renameat.c (rpl_renameat): Implement fix.
29026
29027         renameat: new module
29028         * modules/renameat: New file.
29029         * lib/renameat.c (renameat): Likewise.
29030         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
29031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29032         * modules/stdio (Makefile.am): Substitute them.
29033         * lib/stdio.in.h (renameat): Declare it.
29034         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29035         * doc/posix-functions/renameat.texi (renameat): Likewise.
29036         * modules/renameat-tests: New test.
29037         * tests/test-renameat.c: Likewise.
29038
29039         rename: fix mingw bugs
29040         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
29041         directory overwrite bugs.
29042
29043         rename: fix another cygwin 1.5 bug
29044         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
29045         checks.
29046         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
29047         unnecessary cygwin workarounds.  Also work around bug with moving
29048         full directory onto an empty one.
29049         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
29050
29051         rename-dest-slash: merge into rename module
29052         * modules/rename-dest-slash (Status): Mark obsolete.
29053         (Depends-on): Add rename.
29054         (Files): Let rename do it all.
29055         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
29056         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
29057         * m4/rename-dest-slash.m4: ...so this file can be deleted.
29058         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
29059         * lib/rename.c (rpl_rename): Update comments.
29060
29061         rename: fix cygwin 1.5.x bugs
29062         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
29063         * lib/rename.c (rpl_rename): Work around them.
29064         * modules/rename (Depends-on): Add same-inode.
29065
29066         rename: fix Solaris 10 bug
29067         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29068         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
29069         was the only bug.
29070
29071         rename: fix Solaris 9 bug
29072         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
29073         on non-directory.  Avoid calling exit.
29074         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
29075         strdup.
29076         * modules/rename-tests (Depends-on): Drop lstat.
29077         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29078         (gl_PREREQ_RENAME): Delete unused macro.
29079
29080         rename-dest-slash: fix NetBSD bug
29081         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
29082         links.
29083         * modules/rename-dest-slash (Depends-on): Add same-inode.
29084
29085         rename-tests: new test, exposes several platform bugs
29086         * modules/rename-tests: New file.
29087         * tests/test-rename.h: Likewise.
29088         * tests/test-rename.c: Likewise.
29089         * doc/posix-functions/rename.texi (rename): Improve documentation,
29090         including bugs that will eventually be fixed in gnulib.
29091
29092 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
29093
29094         * lib/uname.c: Include <stdlib.h>
29095         (uname): Assume version info is available.
29096
29097 2009-10-02  Jim Meyering  <meyering@redhat.com>
29098
29099         gnu-web-doc-update: correct --help output
29100         * build-aux/gnu-web-doc-update: Make --help output relevant.
29101
29102         gnu-web-doc-update: add standard options
29103         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
29104
29105         gnu-web-doc-update: New module.
29106         Use this script to automatically update the on-line web documentation
29107         for your GNU project at http://www.gnu.org/software/$pkg/manual/
29108         * modules/gnu-web-doc-update: New file, from coreutils.
29109         * build-aux/gnu-web-doc-update: New script.
29110
29111 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
29112
29113         link: LoadLibrary is not needed.
29114         * lib/link.c: Use GetModuleHandle.
29115
29116 2009-10-01  Eric Blake  <ebb9@byu.net>
29117
29118         getopt: bump serial number
29119         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
29120         change.
29121
29122         tests: tighten link, rmdir, and remove tests
29123         * tests/test-link.h (includes): No need to use <config.h> here.
29124         Clean up if directory hard link was created, otherwise test for
29125         trailing '.'.
29126         * tests/test-linkat.c (main): Simplify.
29127         * tests/test-remove.c (main): Enhance test for trailing '.'.
29128         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29129
29130 2009-10-01  Jim Meyering  <meyering@redhat.com>
29131
29132         maint.mk: requiring "make major" was annoying, for a "minor" release.
29133         What is intended is "stable", to contrast with alpha and beta,
29134         so require "make stable", not "make major".
29135         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
29136         (get_tool_versions): Likewise.
29137         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
29138
29139 2009-09-30  Ben Pfaff  <blp@gnu.org>
29140
29141         Fix broken build of replacement for Windows tmpfile().
29142         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
29143         flags argument added along with the 'mkostemp' module.
29144
29145 2009-09-28  Bruno Haible  <bruno@clisp.org>
29146
29147         Avoid identifier clash with POSIX function 'remove' defined as a macro.
29148         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
29149         to 'remove_elt'.
29150         (gl_list_remove): Update.
29151         * lib/gl_list.c (gl_list_remove): Update.
29152         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
29153         to 'remove_elt'.
29154         (gl_oset_remove): Update.
29155         * lib/gl_list.c (gl_oset_remove): Update.
29156         Reported by Eric Blake.
29157
29158 2009-09-28  Eric Blake  <ebb9@byu.net>
29159
29160         doc: mention yet more cygwin 1.7 status
29161         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
29162         cygwin.
29163         * doc/glibc-functions/execvpe.texi (execvpe): New file.
29164         * doc/gnulib.texi (Glibc unistd.h): Mention it.
29165
29166         argp: fix test failure
29167         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
29168         that are not upper-case.  Pass correct range to tolower.
29169
29170 2009-09-27  Jim Meyering  <meyering@redhat.com>
29171
29172         test-yesno: work around sparc-dash here-document infelicity
29173         Without this change, the literal \177 byte in a here document
29174         would make dash 0.5.5.1-3 access uninitialized memory.
29175         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
29176         Instead, use a marker, "@", and filter through tr to create the desired
29177         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
29178
29179 2009-09-27  Bruno Haible  <bruno@clisp.org>
29180
29181         Disable untested support for new flavours of ACLs on AIX.
29182         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
29183         progress.
29184         * lib/set-mode-acl.c (qset_acl): Likewise.
29185
29186 2008-12-07  Bruno Haible  <bruno@clisp.org>
29187
29188         Add support for new flavours of ACLs on AIX. (Untested.)
29189         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
29190         (file_has_acl): Add support for newer AIX.
29191         * lib/set-mode-acl.c (qset_acl): Likewise.
29192         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
29193         Rainer Tammer <tammer@tammer.net>.
29194
29195 2009-09-26  Eric Blake  <ebb9@byu.net>
29196
29197         argp: fix compilation of getopt
29198         * lib/getopt.in.h (includes): Use different guard than glibc.
29199         Reported by Sergey Poznyakoff.
29200
29201         doc: mention more cygwin 1.7 status
29202         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
29203         bug.
29204         * doc/posix-functions/execl.texi (execl): Likewise.
29205         * doc/posix-functions/execle.texi (execle): Likewise.
29206         * doc/posix-functions/execlp.texi (execlp): Likewise.
29207         * doc/posix-functions/execv.texi (execv): Likewise.
29208         * doc/posix-functions/execve.texi (execve): Likewise.
29209         * doc/posix-functions/execvp.texi (execvp): Likewise.
29210         * doc/glibc-functions/canonicalize_file_name.texi
29211         (canonicalize_file_name): Cygwin 1.7 now provides this.
29212         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
29213         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
29214         on AT_SYMLINK_NOFOLLOW.
29215
29216 2009-09-24  Eric Blake  <ebb9@byu.net>
29217
29218         test-linkat: make test more robust
29219         * tests/test-linkat.c (main): Avoid collision with EEXIST.
29220
29221         getopt: fix inclusion guards for cygwin
29222         * modules/getopt-posix (Depends-on): Add include-next.
29223         (Makefile.am): Substitute more items in replacement header.
29224         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
29225         <getopt.h>.
29226         * lib/getopt.in.h (includes): Use split inclusion guard, and
29227         prefer <getopt.h> over include <unistd.h> when one is present.
29228         (option): Also override name of 'struct option'.
29229
29230         same-inode: revert prior change; it is not yet ready
29231         * NEWS: Undo mention of this change.
29232         * lib/same-inode.h (same-inode.h): Undo tri-state change.
29233         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29234         * lib/cycle-check.c (cycle_check): Likewise.
29235         * lib/same.c (same_name): Likewise.
29236         * lib/at-func2.c (at_func2): Likewise.
29237
29238 2009-09-23  Eric Blake  <ebb9@byu.net>
29239
29240         linkat: new module
29241         * modules/linkat: New file.
29242         * lib/at-func2.c (at_func2): Likewise.
29243         * lib/linkat.c (linkat): Likewise.
29244         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29245         * lib/openat-priv.h (at_func2): Add declaration.
29246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29247         * modules/unistd (Makefile.am): Substitute them.
29248         * lib/unistd.in.h (linkat): Declare it.
29249         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29250         * doc/posix-functions/linkat.texi (linkat): Likewise.
29251         * doc/posix-functions/link.texi (link): Tweak wording.
29252         * tests/test-link.c (main): Move guts...
29253         * tests/test-link.h (test_link): ...into new file.
29254         * modules/linkat-tests: New test.
29255         * tests/test-linkat.c: Likewise.
29256         * modules/link-tests (Files): Ship new file.
29257         (Depends-on): Add stdbool.
29258
29259         dirname: add library-safe mdir_name
29260         * lib/dirname.h (mdir_name): New prototype.
29261         * lib/dirname.c (dir_name): Move guts...
29262         (mdir_name): ...to new function that avoids xalloc_die.
29263
29264         fchdir: another mingw fix
29265         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
29266         * lib/fchdir.c (get_name): New helper method; skips canonicalize
29267         on mingw (where it has not yet been ported), and make it optional
29268         elsewhere.
29269         (_gl_register_fd): Use it.
29270
29271         same-inode: make SAME_INODE tri-state, to port to mingw
29272         * NEWS: Mention this change.
29273         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
29274         st_ino always being 0.
29275         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
29276         * lib/cycle-check.c (cycle_check): Likewise.
29277         * lib/same.c (same_name): Likewise.
29278
29279         lstat: avoid mingw compilation error
29280         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
29281         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
29282         lstat ourselves.
29283         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
29284         was adequate.
29285         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
29286         the checks for lstat.
29287         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
29288
29289         link: fix test failure on Solaris 9
29290         * lib/link.c (rpl_link): Don't assume link will catch bogus
29291         trailing slash on source.
29292
29293         test-symlinkat: enhance test
29294         * tests/test-readlink.c (main): Move guts...
29295         * tests/test-readlink.h (test_readlink): ...into new file.
29296         * tests/test-symlink.c (main): Move guts...
29297         * tests/test-symlink.h (test_symlink): ...into new file.
29298         * tests/test-symlinkat.c (main): Use new files for further
29299         coverage.
29300         (do_symlink, do_readlink): New helper functions.
29301         * modules/symlink-tests (Files): Ship new file.
29302         (Depends-on): Add stdbool.
29303         * modules/readlink-tests (Files): Ship new file.
29304         (Depends-on): Add stdbool.
29305         * modules/symlinkat-tests (Files): Use new files.
29306
29307 2009-09-23  Eric Blake  <ebb9@byu.net>
29308
29309         readlink: document portability issue with symlink length
29310         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29311         systems have bogus st_size on symlinks, and mention the
29312         areadlink-with-size module.
29313         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29314         * doc/posix-functions/readlink.texi (readlink): Mention the
29315         areadlink module, and ERANGE failure.
29316         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29317         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29318
29319         readlink: fix Solaris 9 bug with trailing slash
29320         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29321         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29322         * doc/posix-functions/readlink.texi (readlink): Document this.
29323         * modules/readlink-tests: New test.
29324         * tests/test-readlink.c: Likewise.
29325
29326         readlink: fix cygwin 1.5.x bug with return type
29327         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29328         * lib/unistd.in.h (readlink): Use ssize_t.
29329         * lib/readlink.c (readlink): Likewise.
29330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29331         * modules/unistd (Makefile.am): Substitute it.
29332         * lib/unistd.in.h (readlink): Declare replacement.
29333         * doc/posix-functions/readlink.texi (readlink): Document this.
29334
29335         symlink: use throughout gnulib
29336         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29337         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29338         symlink is not used.
29339         * modules/symlinkat (Depends-on): Add symlink.
29340         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29341         * modules/canonicalize-tests (Depends-on): Likewise.
29342         * modules/lstat-tests (Depends-on): Likewise.
29343         * modules/openat-tests (Depends-on): Likewise.
29344         * modules/remove-tests (Depends-on): Likewise.
29345         * modules/rmdir-tests (Depends-on): Likewise.
29346         * modules/unlink-tests (Depends-on): Likewise.
29347         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29348         * tests/test-canonicalize.c (symlink): Likewise.
29349         * tests/test-fstatat.c (symlink): Likewise.
29350         * tests/test-lstat.c (symlink): Likewise.
29351         * tests/test-remove.c (symlink): Likewise.
29352         * tests/test-rmdir.c (symlink): Likewise.
29353         * tests/test-unlink.c (symlink): Likewise.
29354         * tests/test-unlinkat.c (symlink): Likewise.
29355
29356         symlink: new module, for Solaris 9 bug
29357         * modules/symlink: New file.
29358         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29359         * lib/symlink.c: Likewise.
29360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29361         * modules/unistd (Makefile.am): Substitute them.
29362         * lib/unistd.in.h (symlink): Declare replacement.
29363         * MODULES.html.sh (File system functions): Mention it.
29364         * doc/posix-functions/symlink.texi (symlink): Likewise.
29365         * modules/symlink-tests: New test.
29366         * tests/test-symlink.c: Likewise.
29367
29368 2009-09-23  Bruno Haible  <bruno@clisp.org>
29369
29370         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29371         when needed.
29372         Test case: gnulib-tool --import --with-tests atexit inttypes.
29373         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29374
29375 2009-09-23  Bruno Haible  <bruno@clisp.org>
29376
29377         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29378         subcommand, not in a subshell.
29379
29380 2009-09-22  Eric Blake  <ebb9@byu.net>
29381
29382         unistd: sort replacement declarations
29383         * lib/unistd.in.h: Sort declarations.
29384
29385         open, openat: minor optimization
29386         * lib/open.c (open): If open succeeded, len is non-zero.
29387         * lib/openat.c (rpl_openat): Likewise.
29388
29389         link-follow: ensure correct result
29390         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29391         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29392         distinguish between possible failures.
29393
29394 2009-09-21  Eric Blake  <ebb9@byu.net>
29395
29396         fts: avoid compiler warning
29397         * lib/fts.c (dirent_inode_sort_may_be_useful)
29398         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29399
29400 2009-09-19  Bruno Haible  <bruno@clisp.org>
29401
29402         * lib/progreloc.c (canonicalize_file_name): New declaration.
29403
29404 2009-09-19  Eric Blake  <ebb9@byu.net>
29405
29406         link: fix quoting
29407         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29408
29409         openat: fix openat bugs on Solaris 9
29410         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29411         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29412         * modules/openat (Depends-on): Add open.
29413         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29414         * modules/fcntl-h (Makefile.am): Substitute it.
29415         * lib/fcntl.in.h (openat): Declare replacement.
29416         * doc/posix-functions/openat.texi (openat): Document this.
29417
29418         openat: move fstatat and unlinkat into correct files
29419         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29420         compiled.
29421         * lib/openat.c (fstatat, unlinkat): Move...
29422         * lib/fstatat.c (fstatat): ...into correct files.
29423         * lib/unlinkat.c (unlinkat): Likewise.
29424
29425         openat: fix unlinkat bugs on Solaris 9
29426         * lib/unlinkat.c (unlinkat): New file.
29427         * modules/openat (Depends-on): Add unlink.
29428         (Files): Distribute it.
29429         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29430         trailing slash behavior is broken.
29431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29432         * modules/unistd (Makefile.am): Substitute it.
29433         * lib/unistd.in.h (unlinkat): Declare replacement.
29434         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29435
29436         openat: fix fstatat bugs on Solaris 9
29437         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29438         stat.
29439         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29440
29441         test-unlinkat: enhance test, to expose Solaris 9 bug
29442         * tests/test-unlink.c (main): Factor guts...
29443         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29444         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29445         * tests/test-rmdir.c (main): Adjust caller.
29446         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29447         (unlinker): New helper function.
29448         (rmdirat): Enhance check.
29449         * modules/rmdir-tests (Depends-on): Add stdbool.
29450         * modules/unlink-tests (Depends-on): Likewise.
29451         (Files): Add test-unlink.h.
29452         * modules/openat-tests (Files): Likewise.
29453         (Depends-on): Add unlinkdir.
29454
29455         test-fstatat: new test, to expose Solaris 9 bugs
29456         * tests/test-stat.c (main): Factor guts...
29457         * tests/test-stat.h (test_stat_func): ...into new file.
29458         * tests/test-lstat.c (main): Factor guts...
29459         * tests/test-lstat.h (test_lstat_func): ...into new file.
29460         * tests/test-fstatat.c: New file.
29461         * modules/stat-tests (Files): Add test-stat.h.
29462         * modules/lstat-tests (Files): Add test-lstat.h.
29463         (Depends-on): Add stdbool.
29464         * modules/openat-tests (Depends-on): Add pathmax.
29465         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29466         (Makefile.am): Run new test.
29467
29468         remove: new module, for mingw and Solaris 9 bugs
29469         * modules/remove: New file.
29470         * lib/remove.c: Likewise.
29471         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29473         * modules/stdio (Makefile.am): Use them.
29474         * lib/stdio.in.h (remove): Declare replacement.
29475         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29476         * doc/posix-functions/remove.texi (remove): Likewise.
29477         * modules/remove-tests: New test.
29478         * tests/test-remove.c: Likewise.
29479
29480         unlink: new module, for Solaris 9 bug
29481         * modules/unlink: New file.
29482         * lib/unlink.c: Likewise.
29483         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29485         * modules/unistd (Makefile.am): Use them.
29486         * lib/unistd.in.h (stat): Declare replacement.
29487         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29488         * doc/posix-functions/unlink.texi (unlink): Likewise.
29489         * modules/unlink-tests: New test.
29490         * tests/test-unlink.c: Likewise.
29491
29492         lstat: fix Solaris 9 bug
29493         * lib/lstat.c (lstat): Also check for trailing slash on
29494         non-symlink, non-directories.  Use stat module to simplify logic.
29495         * doc/posix-functions/lstat.texi (lstat): Document it.
29496         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29497         (configure.ac): Check for symlink.
29498         * tests/test-lstat.c (main): Add more tests.
29499
29500         stat: add as dependency to other modules
29501         * modules/chown (Depends-on): Add stat.
29502         * modules/euidaccess (Depends-on): Likewise.
29503         * modules/fchdir (Depends-on): Likewise.
29504         * modules/isdir (Depends-on): Likewise.
29505         * modules/link (Depends-on): Likewise.
29506         * modules/lstat (Depends-on): Likewise.
29507         * modules/mkdir-p (Depends-on): Likewise.
29508         * modules/modechange (Depends-on): Likewise.
29509         * modules/open (Depends-on): Likewise.
29510         * modules/readlink (Depends-on): Likewise.
29511         * modules/same (Depends-on): Likewise.
29512
29513         stat: fix Solaris 9 bug
29514         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29515         slash.
29516         * lib/stat.c (rpl_stat): Work around it.
29517         * doc/posix-functions/stat.texi (stat): Update documentation.
29518
29519         stat: new module, for mingw bug
29520         * modules/stat: New file.
29521         * lib/stat.c: Likewise.
29522         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29523         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29524         * modules/sys_stat (Makefile.am): Use them.
29525         * lib/sys_stat.in.h (stat): Declare replacement.
29526         * lib/openat.c (fstatat): Deal with lstat and stat being function
29527         macros.
29528         * modules/openat (Depends-on): Add inline.
29529         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29530         * doc/posix-functions/stat.texi (stat): Likewise.
29531         * modules/stat-tests: New test.
29532         * tests/test-stat.c: Likewise.
29533
29534 2009-09-19  Jim Meyering  <meyering@redhat.com>
29535
29536         syntax-check: detect unnecessary inclusion of canonicalize.h
29537         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
29538
29539 2009-09-19  Eric Blake  <ebb9@byu.net>
29540
29541         canonicalize-lgpl: adjust clients to use correct header
29542         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29543         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
29544         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
29545         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
29546         * lib/progreloc.c (includes): Likewise.
29547
29548 2009-09-19  Jim Meyering  <meyering@redhat.com>
29549
29550         test-posixtm.c: correct a comment
29551         * tests/test-posixtm.c: Correct first-line comment.
29552         Spotted by Eric Blake.
29553
29554 2009-09-16  Jim Meyering  <meyering@redhat.com>
29555
29556         posixtm-tests: make T const-correct; add a test case
29557         * tests/test-posixtm.c (T): Declare const.
29558         Add a test for -(2^31+1).
29559         Remove useless can-succeed-only-in-2002 test.
29560
29561         posixtm-tests: adjust the sole failing test
29562         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
29563         expected output matches what mktime now produces.  Cross-checked via
29564         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
29565
29566         posixtm: move #ifdef'd tests into a new module
29567         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
29568         * tests/test-posixtm.c: ... this new file.
29569         * modules/posixtm-tests: New module.
29570
29571 2009-09-19  Eric Blake  <ebb9@byu.net>
29572
29573         openat: simplify use of at-func.c
29574         * lib/at-func.c (includes): Include prerequisites here, to
29575         simplify requirements on client files.
29576         * lib/openat-priv.h: Add double-inclusion guard.
29577         * lib/faccessat.c (includes): Simplify.
29578         * lib/fchmodat.c (includes): Likewise.
29579         * lib/fchownat.c (includes): Likewise.
29580         * lib/mkdirat.c (includes): Likewise.
29581         * lib/mkfifoat.c (includes): Likewise.
29582         * lib/symlinkat.c (includes): Likewise.
29583
29584         openat: allow return of fd 0
29585         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
29586         * modules/save-cwd (Depends-on): Replace fcntl-safer with
29587         unistd-safer.
29588         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
29589         <fcntl.h>; this module does not leak fds.
29590         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
29591         must be allowed to return 0, leaving openat_safer to add the
29592         safety.
29593         (openat_permissive): Avoid writing to just-opened fd 2 if
29594         restoring the current directory fails.
29595         * lib/openat-die.c (openat_restore_fail): Add comment.
29596         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
29597         (save_cwd): Guarantee safe fd, but without use of open_safer.
29598         * tests/test-openat.c: New test.
29599         * modules/openat-tests (Files, Makefile.am): Distribute and build
29600         new file.
29601
29602         relocatable-prog-wrapper: fix build
29603         * modules/relocatable-prog-wrapper (Files): Update name of
29604         canonicalize m4 file, broken on 2009-09-17.
29605         Reported by emad hajjar <aleppos@hotmail.com>.
29606
29607 2009-09-19  Bruno Haible  <bruno@clisp.org>
29608
29609         * lib/safe-alloc.h: Use the standard header with GPL copyright.
29610         * lib/safe-alloc.c: Likewise.
29611         Reported by Ian Beckwith <ianb@erislabs.net>.
29612
29613 2009-09-18  Bruno Haible  <bruno@clisp.org>
29614
29615         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
29616         Reported by <erobles@sensacd.com.mx>.
29617
29618 2009-09-17  Eric Blake  <ebb9@byu.net>
29619
29620         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29621         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29622         slashes when checking if last component is missing.
29623         * tests/test-canonicalize.c (main): Test this.
29624
29625         canonicalize, canonicalize-lgpl: honor // if distinct from /
29626         * modules/canonicalize (Files): Add double-slash-root.m4.
29627         * modules/canonicalize-lgpl (Files): Likewise.
29628         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29629         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29630         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29631         fallback definition.
29632         (canonicalize_filename_mode): Use it to protect //.
29633         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29634         (__realpath): Likewise.
29635         * tests/test-canonicalize.c (main): Test this.
29636         * tests/test-canonicalize-lgpl.c (main): Likewise.
29637         * modules/canonicalize-tests (Depends-on): Add same-inode.
29638         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29639
29640         canonicalize-lgpl: fix glibc bug with trailing slash
29641         * m4/canonicalize-lgpl.m4: Move contents...
29642         * m4/canonicalize.m4: ...here.
29643         (gl_CANONICALIZE_LGPL): Factor realpath check...
29644         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29645         glibc 2.3.5 bug, fixed 2005-04-27.
29646         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29647         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29648         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29649         * modules/canonicalize-lgpl (Files): Manage file rename.
29650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29651         * modules/stdlib (Makefile.am): Substitute witness.
29652         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29653         is needed.
29654         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29655         replacement is required.
29656         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29657         * doc/glibc-functions/canonicalize_file_name.texi
29658         (canonicalize_file_name): Document this.
29659         * doc/posix-functions/realpath.texi (realpath): Likewise.
29660
29661         canonicalize-lgpl: reject non-directory with trailing slash
29662         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29663         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29664         catches failures in glibc 2.3.5.
29665         * tests/test-canonicalize.c (main): Likewise.
29666
29667         canonicalize-lgpl: use native realpath if it works
29668         * lib/canonicalize-lgpl.c (realpath): Guard with
29669         FUNC_REALPATH_WORKS.
29670         * lib/stdlib.in.h (realpath): Make declaration optional based on
29671         HAVE_REALPATH.
29672         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29673         native realpath works.
29674         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29675         * modules/stdlib (Makefile.am): Substitute witness.
29676
29677         canonicalize, canonicalize-lgpl: use <stdlib.h>
29678         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29679         (Include): Mention <stdlib.h>.
29680         (configure.ac): Mention functions we provide.
29681         * modules/canonicalize (configure.ac): Likewise.
29682         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29683         realpath if canonicalize_file_name is missing.
29684         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29685         * modules/stdlib (Makefile.am): Substitute witnesses.
29686         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29687         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29688         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29689         * NEWS: Document this.
29690         * doc/glibc-functions/canonicalize_file_name.texi
29691         (canonicalize_file_name): Likewise.
29692         * doc/posix-functions/realpath.texi (realpath): Likewise.
29693         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
29694
29695         test-canonicalize: consolidate into single C program
29696         * tests/test-canonicalize.sh: Delete; move setup into...
29697         * tests/test-canonicalize.c (main): ...the program, making it
29698         easier to run in debugger.  Add some tests.
29699         * modules/canonicalize-tests (Files): Remove unused file.
29700         (Depends-on): Add progname.
29701         (configure.ac, Makefile.am): Simplify.
29702
29703         test-canonicalize-lgpl: consolidate into single C program
29704         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
29705         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
29706         easier to run in debugger.  Add some tests.
29707         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
29708         (configure.ac, Makefile.am): Simplify.
29709
29710         canonicalize: avoid resolvepath
29711         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
29712         unnecessary checks.
29713         * lib/canonicalize.c (includes): Simplify.
29714         (canonicalize_file_name): Drop resolvepath implementation.
29715         * modules/canonicalize (Depends-on): Drop filenamecat.
29716
29717         canonicalize: don't lose errno
29718         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
29719         over calls to free.
29720
29721         canonicalize: simplify errno handling
29722         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
29723         assignment.
29724
29725         canonicalize, canonicalize-lgpl: update module dependencies
29726         * modules/canonicalize (Depends-on): Add extensions, lstat,
29727         pathmax, stdlib.
29728         (Files): Drop pathmax.h.
29729         (configure.ac): Adjust macro name.
29730         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
29731         lstat, stdlib, sys_stat.
29732         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
29733         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
29734         extensions.
29735         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
29736         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
29737         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
29738         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
29739         declaration, if available.
29740         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
29741         we can rely on the readlink module.
29742         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
29743         (includes): Use <unistd.h> unconditionally.
29744
29745 2009-09-17  Eric Blake  <ebb9@byu.net>
29746
29747         maint: make Include sections of modules consistent
29748         * modules/alloca: Use only header name; no need to list #include.
29749         * modules/alloca-opt: Likewise.
29750         * modules/arpa_inet: Likewise.
29751         * modules/canon-host: Likewise.
29752         * modules/configmake: Likewise.
29753         * modules/dirent: Likewise.
29754         * modules/eealloc: Likewise.
29755         * modules/environ: Likewise.
29756         * modules/fchdir: Likewise.
29757         * modules/fcntl: Likewise.
29758         * modules/fcntl-h: Likewise.
29759         * modules/gethrxtime: Likewise.
29760         * modules/gettime: Likewise.
29761         * modules/ignore-value: Likewise.
29762         * modules/inet_ntop: Likewise.
29763         * modules/inet_pton: Likewise.
29764         * modules/inttypes: Likewise.
29765         * modules/isnand-nolibm: Likewise.
29766         * modules/isnanf-nolibm: Likewise.
29767         * modules/mbchar: Likewise.
29768         * modules/mbfile: Likewise.
29769         * modules/mbiter: Likewise.
29770         * modules/mbuiter: Likewise.
29771         * modules/netdb: Likewise.
29772         * modules/netinet_in: Likewise.
29773         * modules/nproc: Likewise.
29774         * modules/pagealign_alloc: Likewise.
29775         * modules/poll: Likewise.
29776         * modules/printf-frexp: Likewise.
29777         * modules/pthread: Likewise.
29778         * modules/putenv: Likewise.
29779         * modules/random_r: Likewise.
29780         * modules/relocatable-prog: Likewise.
29781         * modules/search: Likewise.
29782         * modules/select: Likewise.
29783         * modules/selinux-h: Likewise.
29784         * modules/settime: Likewise.
29785         * modules/signal: Likewise.
29786         * modules/size_max: Likewise.
29787         * modules/socklen: Likewise.
29788         * modules/ssize_t: Likewise.
29789         * modules/stdarg: Likewise.
29790         * modules/stdbool: Likewise.
29791         * modules/stddef: Likewise.
29792         * modules/stdint: Likewise.
29793         * modules/stdio: Likewise.
29794         * modules/stdlib: Likewise.
29795         * modules/string: Likewise.
29796         * modules/strings: Likewise.
29797         * modules/sys_file: Likewise.
29798         * modules/sys_ioctl: Likewise.
29799         * modules/sys_select: Likewise.
29800         * modules/sys_socket: Likewise.
29801         * modules/sys_stat: Likewise.
29802         * modules/sys_time: Likewise.
29803         * modules/sys_times: Likewise.
29804         * modules/sys_utsname: Likewise.
29805         * modules/sys_wait: Likewise.
29806         * modules/sysexits: Likewise.
29807         * modules/time: Likewise.
29808         * modules/times: Likewise.
29809         * modules/tmpfile: Likewise.
29810         * modules/trim: Likewise.
29811         * modules/unistd: Likewise.
29812         * modules/wchar: Likewise.
29813         * modules/wctype: Likewise.
29814
29815 2009-09-17  Bruno Haible  <bruno@clisp.org>
29816
29817         Make getdate.y compile on QNX and NetBSD 5 / i386.
29818         * m4/getdate.m4 (gl_GETDATE): Conditionally define
29819         TIME_T_FITS_IN_LONG_INT.
29820         * lib/getdate.y (long_time_t): New type.
29821         (relative_time): Change type of 'seconds' field to long_time_t.
29822         (get_date): Update types of local variables. Check against overflow
29823         during conversion from long_time_t to time_t.
29824         Reported by Matt Kraai <kraai@ftbfs.org>
29825         and Hasso Tepper <hasso@netbsd.org>.
29826
29827 2009-09-17  Bruno Haible  <bruno@clisp.org>
29828
29829         * modules/COPYING: Update copyright years.
29830         * modules/README: Likeiwse.
29831         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
29832         Reported by Ian Beckwith <ianb@erislabs.net>.
29833
29834 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29835
29836         * users.txt: Update references for gnuit package.
29837
29838 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29839
29840         * m4/getdelim.m4: Fix typo in copyright line.
29841
29842 2009-09-17  Bruno Haible  <bruno@clisp.org>
29843
29844         * lib/atoll.c: Use the standard header with GPL copyright.
29845         * lib/argz.in.h: Likewise.
29846         * lib/glob.c: Likewise.
29847         * lib/glob-libc.h: Likewise.
29848         * lib/random_r.c: Likewise.
29849         * lib/siglist.h: Likewise.
29850         * lib/strsignal.c: Likewise.
29851         Reported by Ian Beckwith <ianb@erislabs.net>.
29852
29853 2009-09-17  Eric Blake  <ebb9@byu.net>
29854
29855         rmdir: ensure correct dependency order
29856         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
29857
29858 2009-09-17  Bruno Haible  <bruno@clisp.org>
29859
29860         Disable assertion that fails on NetBSD 5 / i386.
29861         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
29862         Reported by Sam Steingold <sds@gnu.org>
29863         and Hasso Tepper <hasso@netbsd.org>.
29864
29865 2009-09-16  Eric Blake  <ebb9@byu.net>
29866
29867         unlinkdir: port to mingw
29868         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
29869         on which no one can unlink a directory.
29870
29871         stdlib: sort witness names
29872         * modules/stdlib (Makefile.am): Sort replacements.
29873         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29874         * lib/stdlib.in.h: Likewise.
29875
29876         parse-duration-tests: avoid link failure
29877         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
29878         LIBINTL.
29879         Reported by Tom G. Christensen.
29880
29881         openat-tests: ensure unlinkat behaves like rmdir
29882         * tests/test-rmdir.c (main): Factor guts...
29883         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
29884         * modules/rmdir-tests (Files): Ship new file.
29885         * modules/openat-tests: New test.
29886         * tests/test-unlinkat.c: Likewise.
29887
29888         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
29889         * modules/rmdir-errno (Status, Notice): Now obsolete.
29890
29891         rmdir: work around cygwin 1.5.x and mingw bugs
29892         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
29893         * lib/rmdir.c (rmdir): Work around it.
29894         * modules/rmdir (Status, Notice): No longer obsolete.
29895         (Files): Add dos.m4.
29896         (Depends-on): Add unistd.
29897         (configure.ac): Set witnesses.
29898         (License): Relax to LGPLv2+.
29899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
29900         * modules/unistd (Makefile.am): Substitute witnesses.
29901         * lib/unistd.in.h (rmdir): Declare replacement.
29902         * doc/posix-functions/rmdir.texi (rmdir): Document this.
29903         * modules/rmdir-tests: New tests.
29904         * tests/test-rmdir.c: Likewise.
29905
29906 2009-09-15  Eric Blake  <ebb9@byu.net>
29907
29908         fchdir: improve use of replacement functions
29909         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
29910         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
29911         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
29912         REPLACE_CLOSEDIR.
29913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
29914         * modules/sys_stat (Makefile.am): Substitute correct witness.
29915         * modules/dirent (Makefile.am): Likewise.
29916         * modules/unistd (Makefile.am): Likewise.
29917         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
29918         * lib/unistd.in.h (dup): Likewise.
29919         * lib/sys_stat.in.h (fstat): Likewise.
29920
29921         maint: ignore gnulib-tool temp files
29922         * .gitignore: Ignore files created during gnulib-tool --test.
29923
29924 2009-09-13  Jim Meyering  <meyering@redhat.com>
29925
29926         posixtm: don't reject a time that specify "60" as the number of seconds
29927         * lib/posixtm.c (posixtime): The code to reject invalid dates
29928         would also reject a time specified with the .60 suffix.
29929         But POSIX allows that, in order to accommodate leap seconds.
29930         So don't reject it.
29931         (main): Adjust tests accordingly.
29932         * modules/posixtm (Depends-on): Add stpcpy.
29933
29934 2009-09-11  Jim Meyering  <meyering@redhat.com>
29935
29936         announce-gen: include [$release_type] in emitted Subject:
29937         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
29938         e.g., [stable] in the emitted Subject: line.
29939
29940 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29941
29942         Remove obsolete macros from several modules.
29943         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
29944         obsolete Autoconf macros with their modern counterparts.
29945         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
29946         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
29947         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
29948         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
29949         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
29950         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29951         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29952         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29953         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29954         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
29955         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29956         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29957         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
29958         * m4/sockets.m4 (gl_SOCKETS): Likewise.
29959         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
29960         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
29961         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29962         * m4/time_r.m4 (gl_TIME_R): Likewise.
29963         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29964         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
29965         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29966
29967         Fix copyright header in build-aux scripts.
29968         * build-aux/git-version-gen: Fix copyright header to match GPLv3
29969         recommendation.
29970         * build-aux/ncftpput-ftp: Likewise.
29971         * build-aux/update-copyright: Likewise.
29972
29973 2009-09-09  Eric Blake  <ebb9@byu.net>
29974
29975         test-link: allow Linux choice of errno
29976         * tests/test-link.c (main): Relax test for alternate error.
29977
29978         strndup: fix improper m4 caching
29979         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
29980         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
29981         (gl_PREREQ_STRNDUP): Delete.
29982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
29983         * modules/string (Makefile.am): Substitute it.
29984         * lib/string.in.h (strndup): Modernize prototype.
29985
29986         getcwd: port to mingw
29987         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
29988         different from the POSIX assumptions made throughout the getcwd
29989         module; fortunately, the mingw getcwd does not need replacement.
29990         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
29991         * modules/getcwd-tests: New test.
29992         * tests/test-getcwd.c: Likewise.
29993
29994         link: fix platform bugs
29995         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
29996         * lib/link.c (link): Work around them.  Fix related mingw bug.
29997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
29998         * modules/unistd (Makefile.am): Substitute it.
29999         * lib/unistd.in.h (link): Declare replacement.
30000         * doc/posix-functions/link.texi (link): Document this.
30001         * modules/link (Depends-on): Add strdup-posix, sys_stat.
30002
30003         test-link: consolidate into single C program, test more cases
30004         * tests/test-link.sh: Delete.
30005         * tests/test-link.c: Test more error conditions.  Exposes bugs on
30006         at least Cygwin and Solaris.
30007         * modules/link-tests (Files): Remove unused file.
30008         (Depends-on): Add errno, sys_stat.
30009         (Makefile.am): Simplify.
30010
30011 2009-09-08  Bruno Haible  <bruno@clisp.org>
30012
30013         Work around towlower, towupper bug on mingw.
30014         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
30015         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
30016         * doc/posix-functions/towlower.texi: Mention the mingw bug.
30017         * doc/posix-functions/towupper.texi: Likewise.
30018         Reported by Eric Blake.
30019
30020 2009-09-08  Jim Meyering  <meyering@redhat.com>
30021
30022         build: don't try to run autoheader if we don't use it
30023         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
30024         is not used in configure.ac.
30025
30026 2009-09-08  Eric Blake  <ebb9@byu.net>
30027
30028         euidaccess: fix compilation error
30029         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
30030
30031         rawmemchr: relax license
30032         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
30033         okay.
30034         Reported by Jim Meyering.
30035
30036         mkfifoat: new module
30037         * modules/mkfifoat: New file.
30038         * lib/mkfifoat.c: Likewise.
30039         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
30040         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30041         * modules/sys_stat (Makefile.am): Use them.
30042         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
30043         * MODULES.html.sh (File system functions): Mention module.
30044         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30045         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30046         * modules/mkfifoat-tests: New test.
30047         * tests/test-mkfifoat.c: Likewise.
30048
30049         strchrnul: relax license
30050         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
30051         okay.
30052         Reported by Jim Meyering.
30053
30054 2009-09-08  Eric Blake  <ebb9@byu.net>
30055
30056         fstatat: fix compilation on Solaris
30057         * lib/fstatat.c (includes): Add fcntl.h.
30058         Reported by Pádraig Brady.
30059
30060 2009-09-07  Eric Blake  <ebb9@byu.net>
30061
30062         rename: modernize replacement
30063         * modules/rename (Depends-on): Add stdio.
30064         (configure.ac): Declare witness.
30065         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
30066         stdio take care of replacement.
30067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30068         * modules/stdio (Makefile.am): Substitute them.
30069         * lib/stdio.in.h (rename): Declare replacement.
30070         * lib/rename.c (includes): Allow cross-compilation to non-windows
30071         machines.
30072         * doc/posix-functions/rename.texi (rename): Improve
30073         documentation.
30074
30075         stdio: sort witness names
30076         * modules/stdio (Makefile.am): Sort replacements.
30077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30078         * lib/stdio.in.h: Likewise.
30079
30080         getcwd: minor cleanups
30081         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
30082         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
30083
30084         openat: provide more convenience names
30085         * modules/faccessat (configure.ac): Add C witness.
30086         * lib/unistd.in.h (readlinkat): Fix typo.
30087         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
30088         convenience wrappers.
30089         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
30090         wrappers in syntax checks.
30091
30092 2009-09-06  Eric Blake  <ebb9@byu.net>
30093
30094         doc: fix comments in recent patches
30095         * lib/faccessat.c: Mention correct function.
30096         * lib/fchmodat.c: Likewise.
30097         * lib/fchownat.c: Likewise.
30098         * lib/symlinkat.c: Likewise.
30099         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
30100         constants.
30101
30102         faccessat, symlinkat: continue cleanup of previous patch
30103         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
30104         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30105         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
30106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
30107         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
30108         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
30109         set.
30110
30111 2009-09-06  Bruno Haible  <bruno@clisp.org>
30112
30113         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
30114         (fstatat): Declare if GNULIB_FSTATAT is set.
30115         (mkdirat): Declare if GNULIB_MKDIRAT is set.
30116         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
30117         (unlinkat): Declare if GNULIB_UNLINKAT is set.
30118         * modules/fcntl-h (Files): Remove m4/openat.m4.
30119         * modules/sys_stat (Files): Remove m4/openat.m4.
30120         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
30121         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
30122         * modules/unistd (Files): Remove m4/openat.m4.
30123         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
30124         GNULIB_OPENAT.
30125         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
30126         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
30127         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
30128         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
30129         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
30130         gl_OPENAT_DEFAULTS.
30131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
30132         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
30133         Don't require gl_OPENAT_DEFAULTS.
30134         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
30135         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
30136         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
30137         (gl_OPENAT_DEFAULTS): Remove macro.
30138
30139 2009-09-06  Bruno Haible  <bruno@clisp.org>
30140
30141         * modules/openat (configure.ac): Remove unneeded witness.
30142
30143 2009-09-06  Bruno Haible  <bruno@clisp.org>
30144
30145         Set errno to ENOSYS when a function is entirely unsupported.
30146         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
30147         EOPNOTSUPP.
30148         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30149         * modules/chown (Depends-on): Remove errno.
30150
30151 2009-09-06  Bruno Haible  <bruno@clisp.org>
30152
30153         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
30154
30155 2009-09-06  Bruno Haible  <bruno@clisp.org>
30156
30157         * lib/sys_stat.in.h: Fix preprocessor command indentation.
30158
30159 2009-09-06  Ben Pfaff  <blp@gnu.org>
30160             Bruno Haible  <bruno@clisp.org>
30161
30162         Work around a glibc bug in strtok_r.
30163         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
30164         Undefine if UNDEFINE_STRTOK_R is set.
30165         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
30166         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30167         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
30168         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
30169         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
30170         UNDEFINE_STRTOK_R.
30171         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
30172
30173 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30174
30175         exclude: minor fix
30176         * lib/exclude.c: Include wctype.h
30177
30178 2009-09-06  Akim Demaille  <demaille@gostai.com>
30179
30180         bootstrap: improve error message
30181         * build-aux/bootstrap (find_tool): Upon failure, report the list
30182         of candidates.
30183         Honor the initial value of the envvar.
30184
30185 2009-09-05  Eric Blake  <ebb9@byu.net>
30186
30187         symlinkat: new module
30188         * modules/symlinkat: New file.
30189         * lib/symlinkat.c: Likewise.
30190         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
30191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30192         * modules/unistd (Makefile.am): Use them.
30193         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
30194         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
30195         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
30196         * MODULES.html.sh (File system functions): Mention module.
30197         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30198         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30199         * modules/symlinkat-tests: New test.
30200         * tests/test-symlinkat.c: Likewise.
30201
30202         test-openat-safer: add more checks
30203         * tests/test-openat-safer.c (main): Check more code paths.
30204
30205 2009-09-05  Jim Meyering  <meyering@redhat.com>
30206
30207         syntax-check: detect unnecessary inclusion of openat.h
30208         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
30209
30210 2009-09-05  Bruno Haible  <bruno@clisp.org>
30211
30212         Support towlower, towupper.
30213         * doc/posix-functions/towlower.texi: Mention module wctype.
30214         * doc/posix-functions/towupper.texi: Likewise.
30215         * lib/wctype.in.h (towlower, towupper): New functions.
30216         * tests/test-wctype.c: Include stdio.h, stdlib.h.
30217         (ASSERT): New macro.
30218         (e): New variable.
30219         (main): Test also towlower, towupper. Test WEOF argument.
30220         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30221
30222 2009-09-05  Bruno Haible  <bruno@clisp.org>
30223
30224         Fix conversion behaviour when the input is invalid.
30225         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
30226         mark occurring in first pass of indirect conversion.
30227         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
30228         input.
30229         Found by clang's static analyzer.
30230
30231 2009-09-05  Bruno Haible  <bruno@clisp.org>
30232
30233         * tests/test-striconveh.c (main): Test indirect conversion on platforms
30234         where direct conversion is possible.
30235
30236 2009-09-04  Eric Blake  <ebb9@byu.net>
30237
30238         openat: fail with ENOENT on empty name
30239         * lib/openat-proc.c (openat_proc_name): Special-case the empty
30240         buffer.
30241
30242         link-follow: fix logic bug in prior patch
30243         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
30244         reversed sense of yes and no in prior patch.  Avoid confusing
30245         compilation failure with desired semantics.
30246
30247         link-follow: accomodate mingw and cross-compilation
30248         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
30249         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
30250         cross-compilation results to -1, to make linkat easier to
30251         implement when cross-compiling.  Trivially support mingw.
30252         * modules/link-follow (configure.ac): Call new name.
30253         * NEWS: Mention this.
30254
30255 2009-09-03  Eric Blake  <ebb9@byu.net>
30256
30257         faccessat: compile replacement
30258         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
30259         needed.
30260
30261         fts: fix compilation error
30262         * lib/fts.c (includes): Re-add "openat.h", for
30263         openat_needs_fchdir.
30264
30265         faccessat: new module
30266         * modules/faccessat: New file.
30267         * lib/faccessat.c: Likewise.
30268         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
30269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30270         * modules/unistd (Makefile.am): Use it.
30271         * lib/unistd.in.h (faccessat): Declare it.
30272         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
30273         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
30274         * MODULES.html.sh (File system functions): Mention it.
30275         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
30276         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30277
30278         euidaccess: prefer POSIX over non-standard implementation
30279         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
30280         * lib/euidaccess.c (euidaccess): Use it if available.
30281
30282         openat: make template easier to use
30283         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
30284         AT_FUNC_F2 to be undefined.
30285         (VALIDATE_FLAG): New macro; use it to reject bad flags.
30286         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
30287         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
30288         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
30289         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
30290         Likewise.
30291         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
30292         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
30293         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
30294         Likewise.
30295
30296         openat: declare in POSIX headers
30297         * NEWS: Mention this.
30298         * modules/openat (configure.ac): Declare witnesses.
30299         (Depends-on): Add fcntl-h, sys_stat, unistd.
30300         (Include): Mention correct headers.
30301         * modules/fcntl-h (Depends-on): Add link-warning.
30302         (Files): Add openat.m4.
30303         (Makefile.am): Substitute witnesses.
30304         * modules/sys_stat (Files, Makefile.am): Likewise.
30305         * modules/unistd (Files, Makefile.am): Likewise.
30306         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
30307         (gl_OPENAT_DEFAULTS): New macro.
30308         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30310         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30311         (SYS_STAT_H): Remove unused variable.
30312         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30313         * lib/fcntl--.h (includes): Remove unneeded header.
30314         * lib/openat-safer.c (includes): Likewise.
30315         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30316         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30317         appropriate headers.
30318         (__OPENAT_PREFIX): Delete.
30319         * lib/fcntl.in.h (openat): Provide declaration.
30320         (AT_FDCWD): Fix Solaris bug.
30321         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30322         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30323         * lib/fchmodat.c (includes):  Adjust to find declaration.
30324         * lib/fchownat.c (includes): Likewise.
30325         * lib/mkdirat.c (includes): Likewise.
30326         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30327         still visible.
30328
30329 2009-09-02  Eric Blake  <ebb9@byu.net>
30330
30331         errno: use consistently
30332         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30333         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30334         * lib/canonicalize.c (ELOOP): Likewise.
30335         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30336         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30337         * lib/lchown.c (EOPNOTSUPP): Likewise.
30338         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30339         * lib/savewd.c (ESTALE): Likewise.
30340         * lib/settime.c (ENOSYS): Likewise.
30341         * lib/utimens.c (ENOSYS): Likewise.
30342         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30343         * lib/chdir-safer.c (ELOOP): Likewise.
30344         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30345         * modules/c-stack (Depends-on): Add errno.
30346         * modules/canonicalize (Depends-on): Likewise.
30347         * modules/chdir-safer (Depends-on): Likewise.
30348         * modules/fdopendir (Depends-on): Likewise.
30349         * modules/inet_ntop (Depends-on): Likewise.
30350         * modules/inet_pton (Depends-on): Likewise.
30351         * modules/lchown (Depends-on): Likewise.
30352         * modules/openat (Depends-on): Likewise.
30353         * modules/savewd (Depends-on): Likewise.
30354         * modules/settime (Depends-on): Likewise.
30355         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30356
30357         fts: avoid leaking fds
30358         * modules/fts (Depends-on): Add cloexec.
30359         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30360         flag.
30361
30362         fts: make directory fds more robust
30363         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30364         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30365
30366         backupfile, chdir-long, fts, savedir: make safer
30367         * lib/backupfile.c (includes): Use "dirent--.h", since
30368         numbered_backup can write to stderr during readdir.
30369         * lib/savedir.c (includes): Likewise.
30370         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30371         emulation can write to stderr on failure.
30372         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30373         * lib/getcwd.c: Document why opendir_safer is unused.
30374         * lib/glob.c: Likewise.
30375         * lib/scandir.c: Likewise.
30376         * lib/openat-proc.c: Likewise, for open_safer.
30377         * modules/backupfile (Depends-on): Add dirent-safer.
30378         * modules/savedir (Depends-on): Likewise.
30379         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30380         * modules/chdir-long (Depends-on): Add openat-safer.
30381
30382         openat-safer: new module
30383         * modules/openat-safer: New file.
30384         * lib/openat-safer.c: Likewise.
30385         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30386         * lib/fcntl-safer.h (openat_safer): Declare.
30387         * lib/fcntl--.h (openat): Override.
30388         * MODULES.html.sh (File descriptor based I/O): Mention it.
30389         * lib/openat.h: Add double-inclusion guards.
30390         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30391         "fcntl--.h", so we can implement openat.
30392         * modules/openat-safer-tests: New test.
30393         * tests/test-openat-safer.c: New file.
30394
30395         dirent-safer: new module
30396         * modules/dirent-safer: New file.
30397         * lib/dirent--.h: Likewise.
30398         * lib/dirent-safer.h: Likewise.
30399         * lib/opendir-safer.c: Likewise.
30400         * m4/dirent-safer.m4: Likewise.
30401         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30402         * modules/dirent-safer-tests: New test.
30403         * tests/test-dirent-safer.c: New file.
30404         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30405
30406         fdopendir: optimize on mingw
30407         * lib/unistd.in.h (_gl_directory_name): New prototype.
30408         * lib/fchdir.c (_gl_directory_name): Implement it.
30409         (fchdir): Use it to simplify implementation.
30410         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30411         fchdir, when available, to avoid calling [f]chdir().
30412
30413         fdopendir: split into its own module
30414         * lib/openat.c (fdopendir): Move...
30415         * lib/fdopendir.c: ...into new file.
30416         * modules/fdopendir: New module.
30417         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30418         * modules/openat (Depends-on): Add fdopendir.
30419         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30420         fdopendir here.
30421         * modules/savedir (Depends-on): Only need fdopendir, not full
30422         openat.
30423         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30424         * lib/openat.h (fdopendir): Drop prototype.
30425         * lib/dirent.in.h (fdopendir): Provide prototype.
30426         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30427         * modules/dirent (Makefile.am): Substitute them.
30428         * MODULES.html.sh (File system functions): Mention it.
30429         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30430         * modules/fdopendir-tests: New file.
30431         * tests/test-fdopendir.c: Likewise.
30432
30433         fchdir: use more consistent macro convention
30434         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30435         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30436         REPLACE_FCHDIR, rather than relying on config.h macros.
30437         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30438         inside a single make-time REPLACE_FCHDIR block, rather than using
30439         the config.h FCHDIR_REPLACEMENT.
30440         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30441         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30442         Manage fstat replacement.
30443         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30444         REPLACE_FCHDIR.
30445         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30446         (Makefile.am): Substitute REPLACE_FCHDIR.
30447         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30448         FCHDIR_REPLACEMENT.
30449         * lib/dup-safer.c (dup_safer): Likewise.
30450         * lib/dup2.c (rpl_dup2): Likewise.
30451         * lib/dup3.c (rpl_dup3): Likewise.
30452         * lib/open.c (rpl_open): Likewise.
30453
30454         fchdir: simplify error handling, and support dup3
30455         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30456         stdbool, malloc-posix, realloc-posix.
30457         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30458         (ensure_dirs_slot): Return false on allocation failure.
30459         (rpl_dup2): Delete.
30460         (_gl_register_dup): New function.
30461         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30462         (_gl_register_fd): Close fd on allocation failure.
30463         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30464         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30465         prototype.
30466         (rpl_dup2_fchdir): Delete prototype.
30467         * lib/open.c (open): Update caller.
30468         * lib/dup2.c (dup2): Track fchdir metadata.
30469         * lib/dup3.c (dup3): Likewise.
30470         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30471         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30472
30473 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30474
30475         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30476         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30477         don't pass arguments to AC_OUTPUT.
30478
30479 2009-09-02  Bruno Haible  <bruno@clisp.org>
30480
30481         * modules/mkdtemp (License): Relicense under LGPLv2+.
30482         Reported by Paolo Bonzini.
30483
30484 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30485
30486         Replace uses of obsolete autoconf macros in Jim's modules.
30487         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30488         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30489         can evoke a warning from autoconf when run with -Wobsolete
30490         enabled.  They were declared obsolete for good reasons (see
30491         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30492         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30493         should not continue using the deprecated macros.
30494         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30495         obsolete Autoconf macros with modern counterparts.
30496         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30497         * m4/dos.m4 (gl_AC_DOS): Likewise.
30498         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30499         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30500         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30501         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30502         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30503         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30504         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30505         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30506         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30507         Likewise.
30508         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30509         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30510         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30511         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30512         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30513         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30514
30515 2009-09-01  Eric Blake  <ebb9@byu.net>
30516
30517         fchdir: fix off-by-one bug in previous patch
30518         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30519         (_gl_unregister_fd): Delete useless if.
30520
30521 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30522
30523         maint.mk: sort the list of syntax-check rules
30524         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30525         easier to get a sense of progress when the rules are run sequentially
30526         and take a long time.
30527
30528 2009-09-01  Simon Josefsson  <simon@josefsson.org>
30529
30530         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
30531         * modules/netinet_in: Likewise.
30532         * modules/sys_file: Likewise.
30533         * modules/sys_ioctl: Likewise.
30534         * modules/sys_select: Likewise.
30535         * modules/sys_socket: Likewise.
30536         * modules/sys_stat: Likewise.
30537         * modules/sys_time: Likewise.
30538         * modules/sys_times: Likewise.
30539         * modules/sys_utsname: Likewise.
30540         * modules/sys_wait: Likewise.
30541
30542 2009-09-01  Jim Meyering  <meyering@redhat.com>
30543
30544         fts: help ensure that return values are not ignored
30545         * lib/fts_.h (__GNUC_PREREQ): Define.
30546         (__attribute_warn_unused_result__): Define.
30547         (fts_children, fts_close, fts_open, fts_read): Declare with
30548         __attribute_warn_unused_result__.
30549
30550         fts: fts_close now fails also when closing a dir file descriptor fails
30551         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
30552         and propagate to caller, along with errno.
30553
30554         announce-gen: correct formatting in --help output
30555         * build-aux/announce-gen (usage): Move the one-line description in
30556         --help output "up", to where it belongs, just after Usage:.
30557
30558 2009-08-31  Eric Blake  <ebb9@byu.net>
30559
30560         fchdir: port to mingw
30561         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
30562         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
30563         opened, then use a substitute.
30564         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
30565         replacement.
30566         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
30567         (_gl_register_fd): No need to check stat if open already filters
30568         all directories.
30569         (fchdir): Fix error condition to match POSIX.
30570         * modules/fchdir (Depends-on): Add sys_stat.
30571         * doc/posix-functions/open.texi (open): Document the limitation.
30572         * modules/fchdir-tests: New file.
30573         * tests/test-fchdir.c: Likewise.
30574
30575         canonicalize: allow cross-testing from cygwin to mingw
30576         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
30577         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
30578         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
30579         Likewise.
30580         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
30581         target does not support symlinks.
30582         * tests/test-canonicalize-lgpl.sh: Likewise.
30583
30584         chown: avoid compilation warning on mingw
30585         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
30586         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
30587         mingw.
30588         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30589         * modules/chown (Depends-on): Add errno.
30590
30591 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30592
30593         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
30594         command.
30595
30596 2009-08-31  Jim Meyering  <meyering@redhat.com>
30597
30598         canonicalize: remove useless initialization
30599         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
30600         initialization of local, "end".
30601
30602 2009-08-30  Bruno Haible  <bruno@clisp.org>
30603
30604         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
30605         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
30606         ENOSYS.
30607
30608 2009-08-30  Bruno Haible  <bruno@clisp.org>
30609
30610         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
30611         /usr/xpg4/bin/tr when it exists.
30612         * tests/test-pipe-filter-gi1.sh: Likewise.
30613
30614 2009-08-30  Bruno Haible  <bruno@clisp.org>
30615
30616         Work around deficient /usr/bin/id program on Solaris.
30617         * tests/test-file-has-acl.sh (ID): New variable.
30618         * tests/test-set-mode-acl.sh (ID): Likewise.
30619         * tests/test-copy-acl.sh (ID): Likewise.
30620         * tests/test-copy-file.sh (ID): Likewise.
30621
30622 2009-08-30  Bruno Haible  <bruno@clisp.org>
30623
30624         New module 'xstriconveh'.
30625         * lib/xstriconveh.h: New file.
30626         * lib/xstriconveh.c: New file.
30627         * modules/xstriconveh: New file.
30628
30629 2009-08-30  Bruno Haible  <bruno@clisp.org>
30630
30631         Make it easier to use mem_cd_iconveh.
30632         * lib/striconveh.h (iconveh_t): New type.
30633         (iconveh_open, iconveh_close): New declarations.
30634         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30635         with a single 'const iconveh_t *' argument.
30636         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30637         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30638         with a single 'const iconveh_t *' argument.
30639         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30640         * tests/test-striconveh.c (main): Update.
30641         * NEWS: Mention the change.
30642
30643 2009-08-30  Bruno Haible  <bruno@clisp.org>
30644
30645         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30646         problem.
30647
30648 2009-08-30  Bruno Haible  <bruno@clisp.org>
30649
30650         Work around iconv_open problem on Solaris.
30651         * lib/iconv_open-solaris.gperf: New file.
30652         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30653         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30654         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30655         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30656         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30657         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30658
30659 2009-08-29  Jim Meyering  <meyering@redhat.com>
30660
30661         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30662         * top/maint.mk (cvs-check): Remove target; it was just an alias
30663         to the better-named vc-diff-check.
30664         (maintainer-distcheck): Remove rule.  It was used only from
30665         the (alpha/beta/major) target, and all of its commands but one
30666         were coreutils-specific.
30667         (vc-dist): Remove rule.
30668         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30669         Run vc-diff-check, not vc-dist.
30670         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30671
30672 2009-08-27  Bruno Haible  <bruno@clisp.org>
30673
30674         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30675         of 0.
30676
30677 2009-08-27  Bruno Haible  <bruno@clisp.org>
30678
30679         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30680         compilers.
30681         * doc/func.texi: Document the SunPRO C bug.
30682
30683 2009-08-27  Bruno Haible  <bruno@clisp.org>
30684
30685         Fix link error on Solaris.
30686         * tests/test-parse-duration.c (xstrdup): Remove function.
30687
30688 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30689
30690         ignore-value: handle pointer types, too
30691         * lib/ignore-value.h (__attribute__): Remove definition.
30692         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
30693         of a more concise and more-often effective "(void) i" statement.
30694         (ignore_ptr): New function to suppress warnings from functions that
30695         return pointers, and to make it explicit that one function doesn't
30696         handle all cases.
30697
30698 2009-08-25  Bruno Haible  <bruno@clisp.org>
30699
30700         dup2: work around a Linux bug.
30701         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
30702         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
30703         * doc/posix-functions/dup2.texi: Mention the Linux bug.
30704         Reported by Simon Josefsson.
30705
30706 2009-08-25  Jim Meyering  <meyering@redhat.com>
30707
30708         libguestfs uses gnulib
30709         * users.txt: Add libguestfs.
30710
30711 2009-08-24  Eric Blake  <ebb9@byu.net>
30712
30713         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
30714         * lib/pipe2.c (includes): Add binary-io.h.
30715         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
30716
30717 2009-08-24  Bruno Haible  <bruno@clisp.org>
30718
30719         Tolerate declared but missing accept4 syscall.
30720         * lib/accept4.c (accept4): Invoke original accept4 function first, if
30721         available.
30722         * lib/sys_socket.in.h (accept4): If the function is already present,
30723         override it.
30724         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
30725         * modules/accept4 (Makefile.am): Compile accept4.c always.
30726         Reported by Paolo Bonzini and Eric Blake.
30727
30728 2009-08-23  Bruno Haible  <bruno@clisp.org>
30729
30730         New module 'accept4'.
30731         * lib/sys_socket.in.h (accept4): New declaration.
30732         * lib/accept4.c: New file.
30733         * m4/accept4.m4: New file.
30734         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30735         GNULIB_ACCEPT4, HAVE_ACCEPT4.
30736         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
30737         HAVE_ACCEPT4.
30738         * modules/accept4: New file.
30739         * doc/glibc-functions/accept4.texi: Mention the new module.
30740
30741 2009-08-24  Jim Meyering  <meyering@redhat.com>
30742
30743         progname: also set global program_invocation_name, when possible
30744         Before this change, a libtool-enabled program that calls glibc's
30745         error function would report the program name as
30746         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
30747         * modules/progname (configure.ac): Check for a declaration of
30748         program_invocation_name.
30749         * lib/progname.c:  Include <errno.h>.
30750         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
30751         Set program_invocation_name.
30752
30753 2009-08-23  Bruno Haible  <bruno@clisp.org>
30754
30755         * lib/dup3.c: Include <string.h>.
30756
30757 2009-08-23  Bruno Haible  <bruno@clisp.org>
30758
30759         * lib/dup3.c (dup3): Test only once whether the system actually exists.
30760         * lib/pipe2.c (pipe2): Likewise.
30761         Suggested by Eric Blake.
30762
30763 2009-08-23  Bruno Haible  <bruno@clisp.org>
30764
30765         Tolerate declared but missing dup3 syscall.
30766         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
30767         * lib/unistd.in.h (dup3): If the function is already present,
30768         override it.
30769         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
30770         * modules/dup3 (Makefile.am): Compile dup3.c always.
30771         Reported by Paolo Bonzini.
30772
30773 2009-08-23  Bruno Haible  <bruno@clisp.org>
30774
30775         Tolerate declared but missing pipe2 syscall.
30776         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
30777         available.
30778         * lib/unistd.in.h (pipe2): If the function is already present,
30779         override it.
30780         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
30781         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
30782         Reported by Paolo Bonzini.
30783
30784 2009-08-23  Bruno Haible  <bruno@clisp.org>
30785
30786         * lib/pipe2.c (pipe2): Move #ifs inside function.
30787
30788 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30789
30790         quotearg: document limitations of quote_these_too
30791         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
30792         those limitations are created.
30793         * lib/quotearg.h (set_char_quoting): Document that digits and
30794         letters that are special after backslash are not permitted.
30795         (quotearg_char): Cross-reference set_char_quoting documentation.
30796
30797 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
30798
30799         quotearg: implement custom_quoting_style
30800         * lib/quotearg.c: (struct quoting_options): Add left_quote and
30801         right_quote fields.
30802         (set_custom_quoting): New public function.
30803         (quotearg_buffer_restyled): Add left_quote and right_quote
30804         arguments, handle them very much like locale quoting, and update
30805         all uses.
30806         (quotearg_n_custom): New public function.
30807         (quotearg_n_custom_mem): New public function.
30808         (quotearg_custom): New public function.
30809         (quotearg_custom_mem): New public function.
30810         * lib/quotearg.h: Prototype and document new public functions.
30811         (enum quoting_style): For escape_quoting_style and
30812         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
30813         ignored even though they're otherwise like c_quoting_style.
30814         Add custom_quoting_style member and document with comparison to
30815         clocale_quoting_style.
30816         * tests/test-quotearg.c (custom_quotes): New array.
30817         (custom_results): New array.
30818         (main): Extend to test custom quoting.
30819
30820 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30821
30822         quotearg: fix right quote escaping when it's in quote_these_too
30823         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
30824         quote, be sure to prepend only one backslash.
30825         * tests/test-quotearg.c (use_quote_double_quotes): New function.
30826         (main): Test it.
30827
30828 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30829
30830         quotearg-tests: test escaping of embedded locale quotes
30831         * tests/test-quotearg.c (struct result_strings): Add member for
30832         new input.
30833         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
30834         (inputs): Add new input.
30835         (results_g): Add expected results.
30836         (flag_results): Likewise.
30837         (locale_results): Likewise.
30838         (compare_strings): Check those.
30839
30840 2009-08-23  Bruno Haible  <bruno@clisp.org>
30841
30842         Tests for module 'dup3'.
30843         * modules/dup3-tests: New file.
30844         * tests/test-dup3.c: New file.
30845
30846         New module 'dup3'.
30847         * lib/unistd.in.h (dup3): New declaration.
30848         * lib/dup3.c: New file.
30849         * m4/dup3.m4: New file.
30850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
30851         HAVE_DUP3.
30852         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
30853         * modules/dup3: New file.
30854         * doc/glibc-functions/dup3.texi: Mention the new module.
30855
30856 2009-08-23  Bruno Haible  <bruno@clisp.org>
30857
30858         Tweak the dup2 test.
30859         * tests/test-dup2.c (main): Create the test file empty. Verify that an
30860         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
30861         the test file is still empty. Fix argument order of lseek.
30862
30863 2009-08-23  Bruno Haible  <bruno@clisp.org>
30864
30865         Avoid test link errors when the modules getopt-gnu, gettext are used.
30866         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
30867         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30868
30869 2009-08-23  Bruno Haible  <bruno@clisp.org>
30870
30871         Fix getdtablesize() on mingw.
30872         * lib/getdtablesize.c (getdtablesize): Implement differently.
30873         * lib/unistd.in.h (getdtablesize): Improve comment.
30874
30875 2009-08-23  Bruno Haible  <bruno@clisp.org>
30876
30877         New module 'mkostemp'.
30878         Based on Ulrich Drepper's 2007-08-10 change in glibc.
30879         * lib/stdlib.in.h (mksotemp): New declaration.
30880         * lib/mkostemp.c: New file, from glibc with modifications.
30881         * lib/tempname.h (GT_FILE): Remove outdated comment.
30882         (gen_tempname): Add flags argument.
30883         * lib/tempname.c (__GT_BIGFILE): Remove macro.
30884         (__GT_FILE): Map to 1.
30885         (small_open, large_open): Remove macros.
30886         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
30887         * lib/mkstemp.c (mkstemp): Update.
30888         * lib/mkdtemp.c (mkdtemp): Likewise.
30889         * m4/mkostemp.m4: New file.
30890         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
30891         HAVE_MKOSTEMP.
30892         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
30893         HAVE_MKOSTEMP.
30894         * modules/mkostemp: New file, based on modules/mkstemp.
30895         * doc/glibc-functions/mkostemp.texi: Mention the new module.
30896         * NEWS: Mention the change.
30897
30898 2009-08-23  Bruno Haible  <bruno@clisp.org>
30899
30900         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
30901         Reported by Eric Blake.
30902
30903 2009-08-23  Bruno Haible  <bruno@clisp.org>
30904
30905         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
30906         Reported by Eric Blake.
30907
30908 2009-08-23  Bruno Haible  <bruno@clisp.org>
30909
30910         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
30911         * modules/pipe2 (Depends-on): Likewise.
30912
30913 2009-08-23  Eric Blake  <ebb9@byu.net>
30914
30915         fcntl-h: add O_TTY_INIT support
30916         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
30917         * tests/test-fcntl-h.c (o): Test it.
30918         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30919
30920         fcntl-h: rename from fcntl, in preparation for fcntl(2)
30921         * modules/fcntl: Move <fcntl.h> header replacement...
30922         * modules/fcntl-h: ...to new name, so as not to collide with
30923         like-named function.
30924         * tests/test-fcntl.c: Rename...
30925         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
30926         * modules/fcntl-tests: Rename...
30927         * modules/fcntl-h-tests: ...to this.  Update test file name.
30928         * modules/chdir-long (Depends-on): Update clients.
30929         * modules/chdir-safer (Depends-on): Likewise.
30930         * modules/fcntl-safer (Depends-on): Likewise.
30931         * modules/fts (Depends-on): Likewise.
30932         * modules/mkancesdirs (Depends-on): Likewise.
30933         * modules/mkdir-p (Depends-on): Likewise.
30934         * modules/open (Depends-on): Likewise.
30935         * modules/savewd (Depends-on): Likewise.
30936         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
30937         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30938
30939 2009-08-22  Bruno Haible  <bruno@clisp.org>
30940
30941         * modules/binary-io (License): Relicense under LGPL.
30942         * modules/pipe2 (License): Likewise.
30943
30944 2009-08-22  Bruno Haible  <bruno@clisp.org>
30945
30946         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
30947         return value.
30948         * lib/pipe-filter-gi.c (filter_init): Likewise.
30949         Reported by Eric Blake.
30950
30951 2009-08-22  Bruno Haible  <bruno@clisp.org>
30952
30953         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
30954         * modules/pipe (Depends-on): Add pipe2.
30955
30956 2009-08-22  Bruno Haible  <bruno@clisp.org>
30957
30958         Tests for module 'pipe2'.
30959         * modules/pipe2-tests: New file.
30960         * tests/test-pipe2.c: New file.
30961
30962         New module 'pipe2'.
30963         * lib/unistd.in.h (pipe2): New declaration.
30964         * lib/pipe2.c: New file.
30965         * m4/pipe2.m4: New file.
30966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
30967         HAVE_PIPE2.
30968         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
30969         * modules/pipe2: New file.
30970         * doc/glibc-functions/pipe2.texi: Mention the new module.
30971
30972 2009-08-22  Bruno Haible  <bruno@clisp.org>
30973
30974         Reference some new glibc functions.
30975         * doc/glibc-functions/accept4.texi: New file.
30976         * doc/glibc-functions/dup3.texi: New file.
30977         * doc/glibc-functions/mkostemp.texi: New file.
30978         * doc/glibc-functions/pipe2.texi: New file.
30979         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
30980         (Glibc sys/socket.h): Refer to accept4.
30981         (Glibc unistd.h): Refer to dup3, pipe2.
30982         Reported by Eric Blake.
30983
30984 2009-08-22  Jim Meyering  <meyering@redhat.com>
30985             Bruno Haible  <bruno@clisp.org>
30986
30987         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
30988         This makes it so packages using automake-1.11's silent-rules option
30989         can print e.g., a single "GEN    configmake.h" line, rather than
30990         the 30+ statements that perform the job.  If you want to see the
30991         actual commands, you can still run "make V=1".
30992         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
30993         so that make output is abbreviated when those variables are defined
30994         appropriately.
30995         * modules/argz: Likewise.
30996         * modules/arpa_inet: Likewise.
30997         * modules/byteswap: Likewise.
30998         * modules/configmake: Likewise.
30999         * modules/dirent: Likewise.
31000         * modules/errno: Likewise.
31001         * modules/fcntl: Likewise.
31002         * modules/float: Likewise.
31003         * modules/fnmatch: Likewise.
31004         * modules/getopt-posix: Likewise.
31005         * modules/glob: Likewise.
31006         * modules/iconv_open: Likewise.
31007         * modules/inttypes: Likewise.
31008         * modules/localcharset: Likewise.
31009         * modules/locale: Likewise.
31010         * modules/math: Likewise.
31011         * modules/netdb: Likewise.
31012         * modules/netinet_in: Likewise.
31013         * modules/poll: Likewise.
31014         * modules/posix_spawnp-tests: Likewise.
31015         * modules/sched: Likewise.
31016         * modules/search: Likewise.
31017         * modules/selinux-h: Likewise.
31018         * modules/signal: Likewise.
31019         * modules/spawn: Likewise.
31020         * modules/stdarg: Likewise.
31021         * modules/stdbool: Likewise.
31022         * modules/stddef: Likewise.
31023         * modules/stdint: Likewise.
31024         * modules/stdio: Likewise.
31025         * modules/stdlib: Likewise.
31026         * modules/string: Likewise.
31027         * modules/strings: Likewise.
31028         * modules/sys_file: Likewise.
31029         * modules/sys_ioctl: Likewise.
31030         * modules/sys_select: Likewise.
31031         * modules/sys_socket: Likewise.
31032         * modules/sys_stat: Likewise.
31033         * modules/sys_time: Likewise.
31034         * modules/sys_times: Likewise.
31035         * modules/sys_utsname: Likewise.
31036         * modules/sys_wait: Likewise.
31037         * modules/sysexits: Likewise.
31038         * modules/time: Likewise.
31039         * modules/unistd: Likewise.
31040         * modules/wchar: Likewise.
31041         * modules/wctype: Likewise.
31042
31043 2009-08-22  Jim Meyering  <meyering@redhat.com>
31044
31045         announce-gen: detect write failure
31046         * build-aux/announce-gen: Add Coda at end.
31047         Remove equivalent-but-more-verbose block at top.
31048
31049 2009-08-19  Akim Demaille  <demaille@gostai.com>
31050
31051         bootstrap: --help to stdout.
31052         * bootstrap (usage): Don't send --help to stderr.
31053         Use a here doc instead of a long string.
31054
31055 2009-08-21  Eric Blake  <ebb9@byu.net>
31056
31057         test-popen-safer: split from test-popen
31058         * tests/test-popen.c (main): Move...
31059         * tests/test-popen.h: ...into new file.
31060         * tests/test-popen-safer2.c: New file.
31061         * modules/popen-tests (Files): Add test-popen.h.
31062         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
31063         Suggested by Bruno Haible.
31064
31065         test-fcntl-safer: split from test-open
31066         * tests/test-open.c (main): Move...
31067         * tests/test-open.h: ...into new file.
31068         * tests/test-fcntl-safer.c: New file.
31069         * modules/open-tests (Files): Add test-open.h.
31070         * modules/fcntl-safer-tests: New file.
31071         Suggested by Bruno Haible.
31072
31073         test-fopen-safer: split from test-fopen
31074         * tests/test-fopen.c (main): Move...
31075         * tests/test-fopen.h: ...into new file.
31076         * tests/test-fopen-safer.c: New file.
31077         * modules/fopen-tests (Files): Add test-fopen.h.
31078         * modules/fopen-safer-tests: New file.
31079         Suggested by Bruno Haible.
31080
31081 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31082
31083         popen-safer: test O_CLOEXEC at run-time.
31084         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
31085
31086 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31087
31088         fcntl: move more flags to the header
31089         * lib/cloexec.c: Do not define FD_CLOEXEC here.
31090         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
31091         * lib/fcntl.in.h: Do both things here.
31092
31093 2009-08-21  Jim Meyering  <meyering@redhat.com>
31094
31095         consistently remove $@-t before redirecting to it
31096         * modules/argz: Remove $@-t and $@ before redirecting to the former.
31097         * modules/alloca-opt: Likewise.
31098         * modules/byteswap: Likewise.
31099         * modules/fnmatch: Likewise.
31100         * modules/getopt-posix: Likewise.
31101         * modules/glob: Likewise.
31102         * modules/poll: Likewise.
31103         * modules/posix_spawnp-tests: Likewise.
31104         * modules/sys_socket: Likewise.
31105         * modules/sysexits: Likewise.
31106
31107 2009-08-21  Eric Blake  <ebb9@byu.net>
31108
31109         popen: simplify access to original popen
31110         * lib/popen.c (rpl_popen): No need to worry about popen being a
31111         macro.
31112         Reported by Bruno Haible.
31113
31114 2009-08-20  Eric Blake  <ebb9@byu.net>
31115
31116         build: avoid some compiler warnings
31117         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
31118         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
31119         type.
31120         (new_exclude_segment, excluded_file_pattern_p)
31121         (excluded_file_name_p): Reduce scope.
31122         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
31123         old-style declaration.
31124
31125 2009-08-20  Simon Josefsson  <simon@josefsson.org>
31126
31127         * tests/test-exclude1.sh: Handle Windows EOL.
31128         * tests/test-exclude2.sh: Likewise.
31129         * tests/test-exclude3.sh: Likewise.
31130         * tests/test-exclude4.sh: Likewise.
31131         * tests/test-exclude5.sh: Likewise.
31132         * tests/test-exclude6.sh: Likewise.
31133         * tests/test-exclude7.sh: Likewise.
31134
31135 2009-08-19  Akim Demaille  <demaille@gostai.com>
31136
31137         bootstrap: find sha1sum when named gsha1sum.
31138         * bootstrap (find_tool): New.
31139         ($SHA1SUM): New.
31140         Use it.
31141
31142 2009-08-20  Jim Meyering  <meyering@redhat.com>
31143
31144         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
31145         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
31146         expression that converts "." in a file name to "\." in the resulting
31147         regexp.  Start with a dummy statement, so that prior shell variable
31148         definitions are expanded portably.  Reported by Simon Josefsson.
31149
31150 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
31151
31152         Fix polling for writeability of a screen buffer.
31153         * lib/poll.c: Distinguish input and screen buffers for the
31154         Win32 implementation.
31155         * lib/select.c: Likewise.
31156
31157 2009-08-19  Eric Blake  <ebb9@byu.net>
31158
31159         popen-safer: prevent popen from clobbering std descriptors
31160         * modules/popen-safer: New file.
31161         * lib/popen-safer.c: Likewise.
31162         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
31163         * lib/stdio--.h (popen): Provide override.
31164         * lib/stdio-safer.h (popen_safer): Provide declaration.
31165         * tests/test-popen.c (includes): Partially test this.
31166         * modules/popen-safer-tests: New file, for more tests.
31167         * tests/test-popen-safer.c: Likewise.
31168         * MODULES.html.sh (file stream based Input/Output): Mention it.
31169
31170         tests: test some of the *-safer modules
31171         * modules/fopen-safer (Depends-on): Add fopen.
31172         * modules/fcntl-safer (Depends-on): Add fcntl.
31173         * modules/stdlib-safer (Depends-on): Add stdlib.
31174         (configure.ac): Set indicator.
31175         * modules/unistd-safer (configure.ac): Likewise.
31176         * modules/tmpfile-safer (configure.ac): Likewise.
31177         (Depends-on): Add tmpfile.
31178         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
31179         active.
31180         * tests/test-fopen.c (includes): Test safer versions when they are
31181         in use.
31182         * tests/test-open.c (includes): Likewise.
31183
31184         popen: fix cygwin 1.5 bug when stdin closed
31185         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
31186         * modules/popen: New file.
31187         * modules/popen-tests: Likewise.
31188         * tests/test-popen.c: Likewise.
31189         * m4/popen.m4: Likewise.
31190         * lib/popen.c: Likewise.
31191         * lib/stdio.in.h (popen): New declaration.
31192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
31193         * modules/stdio (Makefile.am): Likewise.
31194         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
31195
31196 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
31197
31198         maint.mk: give full control over update-copyright exclusions
31199         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
31200         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
31201         (update-copyright): Don't force inclusion of top-level
31202         ChangeLog.  Don't force exclusion of all COPYING files, but make
31203         them the default exclusion instead.
31204
31205 2009-08-16  Bruno Haible  <bruno@clisp.org>
31206
31207         Fix test failures on Solaris 10.
31208         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
31209         tests when Solaris iconv() is used.
31210         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
31211         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
31212         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
31213         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
31214         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
31215
31216 2009-08-16  Bruno Haible  <bruno@clisp.org>
31217
31218         Fix test failures on Solaris 10.
31219         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
31220         'tr' program and pass it as first argument.
31221         * tests/test-pipe-filter-gi1.sh: Likewise.
31222         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
31223         program as first argument.
31224         * tests/test-pipe-filter-gi1.c (main): Likewise.
31225
31226 2009-08-16  Eric Blake  <ebb9@byu.net>
31227
31228         fpurge: fix previous commits
31229         * modules/fpurge (Makefile.am): Make replacement conditional,
31230         partially reverting 2007-04-29 change; missed in previous
31231         attempt.
31232         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
31233         is missing.
31234
31235 2009-08-16  Bruno Haible  <bruno@clisp.org>
31236
31237         Clarify fpurge's effect on the file position.
31238         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
31239         * tests/test-fpurge.c (main): Make a second pass for checking the file
31240         position.
31241
31242 2009-08-16  Bruno Haible  <bruno@clisp.org>
31243
31244         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
31245         declaration of fpurge is missing.
31246         * tests/test-fpurge.c (main): Check that the file has not more contents
31247         than expected. Close the file before removing it.
31248
31249 2009-08-15  Eric Blake  <ebb9@byu.net>
31250
31251         fpurge: don't wrap working cygwin implementation
31252         * lib/fpurge.c (fpurge): Fix comment typo.
31253         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
31254         1.7 to avoid replacement.
31255         * tests/test-fpurge.c (main): Enhance test.
31256
31257 2009-08-15  Eric Blake  <ebb9@byu.net>
31258         and Jim Meyering  <meyering@redhat.com>
31259
31260         test-update-copyright: skip if perl is insufficient
31261         * tests/test-update-copyright.sh: Failure to run maintainer tool
31262         should not cause testsuite failure on cygwin 1.5.
31263
31264 2009-08-14  Eric Blake  <ebb9@byu.net>
31265
31266         doc: mention more functions added in cygwin 1.7.0
31267         * doc/posix-headers/limits.texi (limits.h): Update for recent
31268         cygwin additions.
31269         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
31270         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
31271         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
31272         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
31273         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
31274
31275 2009-08-14  Eric Blake  <ebb9@byu.net>
31276
31277         maint.mk: simplify update-copyright rule
31278         * top/maint.mk (update-copyright-local): Delete, and document how
31279         to do it in cfg.mk instead.
31280         (update-copyright-exclude-regexp): Delete, and document how to do
31281         it in .x-update-copyright instead.
31282         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
31283         exclude ChangeLog.
31284
31285 2009-08-14  Bruno Haible  <bruno@clisp.org>
31286
31287         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
31288
31289 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31290
31291         maint.mk: support update-copyright-env
31292         * top/maint.mk (update-copyright-env): Define place-holder.
31293         (update-copyright): Expand $(update-copyright-env) before
31294         invoking update-copyright.
31295
31296 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31297
31298         update-copyright: implement forced reformatting
31299         * build-aux/update-copyright: Implement and document
31300         UPDATE_COPYRIGHT_FORCE.
31301         * tests/test-update-copyright.sh: Test it.
31302
31303 2009-08-14  Eric Blake  <ebb9@byu.net>
31304         and Bruno Haible  <bruno@clisp.org>
31305
31306         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
31307         * tests/test-locale.c: Revert previous patch related to NULL.
31308         * tests/test-stdio.c: Likewise.
31309         * tests/test-stdlib.c: Likewise.
31310         * tests/test-string.c: Likewise.
31311         * tests/test-unistd.c: Likewise.
31312         * modules/time-tests (Depends-on): Add verify.
31313         * modules/wchar-tests (Depends-on): Likewise.
31314         * tests/test-time.c: Test for NULL compliance.
31315         * tests/test-wchar.c: Likewise.
31316         * modules/locale (Depends-on): Add stddef.
31317         * modules/stdio (Depends-on): Likewise.
31318         * modules/stdlib (Depends-on): Likewise.
31319         * modules/string (Depends-on): Likewise.
31320         * modules/time (Depends-on): Likewise.
31321         * modules/unistd (Depends-on): Likewise.
31322         * modules/wchar (Depends-on): Likewise.
31323         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31324         * lib/stdlib.in.h (includes): Likewise.
31325         * lib/string.in.h (includes): Likewise.
31326         * lib/time.in.h (includes): Likewise.
31327         * lib/unistd.in.h (includes): Likewise.
31328         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31329         replaced.
31330         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31331         * m4/stddef_h.m4: New file.
31332         * modules/stddef: Likewise.
31333         * lib/stddef.in.h: Likewise.
31334         * modules/stddef-tests: Likewise.
31335         * tests/test-stddef.c: Likewise.
31336         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31337         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31338         * doc/posix-headers/locale.texi (locale.h): Likewise.
31339         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31340         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31341         * doc/posix-headers/string.texi (string.h): Likewise.
31342         * doc/posix-headers/time.texi (time.h): Likewise.
31343         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31344         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31345
31346 2009-08-14  Eric Blake  <ebb9@byu.net>
31347
31348         doc: improve git diff of texinfo files
31349         * .gitattributes: Add rule for *.texi files, with hint on how to
31350         use it.
31351         Copied from m4, and based on a report by Bruno Haible.
31352
31353 2009-08-14  Bruno Haible  <bruno@clisp.org>
31354
31355         Disable multithread support by default on Cygwin 1.5.x for real.
31356         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31357
31358 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31359
31360         update-copyright: much ado about intervals
31361         * build-aux/update-copyright: Implement and document
31362         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31363         of copyright year intervals.
31364         Also, document UPDATE_COPYRIGHT_YEAR.
31365         * tests/test-update-copyright.sh: Test it.
31366
31367         update-copyright: convert 2-digit to 4-digit years
31368         * build-aux/update-copyright: Implement and document.
31369         * tests/test-update-copyright.sh: Update.
31370
31371 2009-08-14  Jim Meyering  <meyering@redhat.com>
31372
31373         test-exclude: avoid coreutils "make check" failure
31374         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31375         just as in test-argmatch.c.
31376
31377 2009-08-13  Eric Blake  <ebb9@byu.net>
31378
31379         test-dup2: fix bad assumption
31380         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31381         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31382
31383         test-version-etc: fix CRLF portability issue
31384         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31385         recognize \r.
31386         * tests/test-argp-version-etc-1.sh: Likewise.
31387
31388         getopt: update client modules
31389         * modules/argp (Depends-on): Use getopt-gnu.
31390         * modules/git-merge-changelog (Depends-on): Likewise.
31391         * modules/long-options (Depends-on): Likewise.
31392         * modules/xstrtol (Depends-on): Likewise.
31393
31394 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31395
31396         * tests/test-version-etc.sh: Don't fail on different
31397         project/version.  Don't fail on CRLF differences.  Rewrite to use
31398         multiple -e instead of multiple sed forks, suggested by Eric Blake
31399         <ebb9@byu.net>.
31400         * tests/test-argp-version-etc-1.sh: Likewise.
31401
31402 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31403
31404         * tests/test-version-etc.sh: Don't fail on different
31405         project/version.
31406
31407 2009-08-12  Bruno Haible  <bruno@clisp.org>
31408
31409         Tests for modules 'getopt-posix', 'getopt-gnu'.
31410         * modules/getopt-posix-tests: New file.
31411         * tests/test-getopt.c: New file.
31412         * tests/test-getopt.h: New file.
31413         * tests/test-getopt_long.h: New file.
31414
31415         New modules 'getopt-posix', 'getopt-gnu'.
31416         * modules/getopt-gnu: New file, renamed from modules/getopt.
31417         * modules/getopt-posix: New file.
31418         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31419         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31420         (gl_GETOPT): Remove macro.
31421         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31422         Disable the test against BSD systems that declare optreset. Test
31423         against mingw bug. Test against lack of support of optional arguments
31424         on many platforms.
31425         * doc/glibc-headers/getopt.texi: Update module name and list of
31426         relevant platforms.
31427         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31428         'getopt-gnu' and more portability problems.
31429         * NEWS: Mention the changes.
31430
31431 2009-08-12  Bruno Haible  <bruno@clisp.org>
31432
31433         Ensure that optarg etc. get declared by <unistd.h>.
31434         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31435         AC_USE_SYSTEM_EXTENSIONS.
31436         * modules/getopt (Depends-on): Add 'extensions'.
31437
31438 2009-08-12  Bruno Haible  <bruno@clisp.org>
31439
31440         Avoid test link errors.
31441         * modules/pipe-filter-ii-tests (Makefile.am): Define
31442         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31443         * modules/pipe-filter-gi-tests (Makefile.am): Define
31444         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31445         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31446
31447 2009-08-12  Bruno Haible  <bruno@clisp.org>
31448
31449         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31450         gl_GETOPT_SUBSTITUTE before.
31451         (gl_GETOPT): Use it.
31452         * m4/argp.m4 (gl_ARGP): Update.
31453         Reported by Sergey Poznyakoff.
31454
31455         * m4/getopt.m4: Reorder macros.
31456         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31457         (gl_GETOPT_SUBSTITUTE): Remove macro.
31458
31459 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31460
31461         Minor improvement in gitlog-to-changelog
31462
31463         * build-aux/gitlog-to-changelog: New option `--format' makes
31464         output format string configurable.
31465
31466 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31467
31468         Optimize exclude: use hash tables for non-wildcard patterns.
31469
31470         * lib/exclude.c: Include hash.h and mbuiter.h
31471         (struct exclude_pattern, exclude_segment): New data types.
31472         (struct exclude): Rewrite.
31473         (fnmatch_pattern_has_wildcards): New function.
31474         (new_exclude_segment, free_exclude_segment): New functions.
31475         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31476         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31477         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31478         * modules/exclude: Depend on hash and mbuiter.
31479
31480         * modules/exclude-tests: New file.
31481         * tests/test-exclude.c: New file.
31482         * tests/test-exclude1.sh: New file.
31483         * tests/test-exclude2.sh: New file.
31484         * tests/test-exclude3.sh: New file.
31485         * tests/test-exclude4.sh: New file.
31486         * tests/test-exclude5.sh: New file.
31487         * tests/test-exclude6.sh: New file.
31488         * tests/test-exclude7.sh: New file.
31489
31490 2009-08-12  Bruno Haible  <bruno@clisp.org>
31491
31492         Ensure that getopt() gets declared by <unistd.h>.
31493         * lib/unistd.in.h: Conditionally include getopt.h.
31494         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31495         Set GNULIB_UNISTD_H_GETOPT.
31496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31497         GNULIB_UNISTD_H_GETOPT.
31498         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31499
31500 2009-08-12  Bruno Haible  <bruno@clisp.org>
31501
31502         Clarify logic.
31503         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31504         gl_replace_getopt instead of GETOPT_H.
31505
31506 2009-08-12  Bruno Haible  <bruno@clisp.org>
31507
31508         * m4/getopt.m4: Add comments.
31509
31510 2009-08-12  Bruno Haible  <bruno@clisp.org>
31511
31512         Disable multithread support by default on Cygwin 1.5.x.
31513         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31514         set gl_use_threads=no if not specified otherwise.
31515
31516 2009-08-11  Bruno Haible  <bruno@clisp.org>
31517
31518         Avoid compilation error on NetBSD 5.0.
31519         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
31520         * tests/test-stdio.c: Likewise.
31521         * tests/test-stdlib.c: Likewise.
31522         * tests/test-string.c: Likewise.
31523         * tests/test-unistd.c: Likewise.
31524         Reported by Greg Troxel <gdt@ir.bbn.com>
31525         at <https://savannah.gnu.org/support/?106973>.
31526
31527 2009-08-11  Bruno Haible  <bruno@clisp.org>
31528
31529         * modules/dup2-tests (Depends-on): Remove close.
31530
31531         Undo 2009-07-19 commit.
31532         * modules/acl-tests (Depends-on): Remove close.
31533         * modules/binary-io-tests (Depends-on): Likewise.
31534         * modules/closein-tests (Depends-on): Likewise.
31535         * modules/flock-tests (Depends-on): Likewise.
31536         * modules/fsync-tests (Depends-on): Likewise.
31537         * modules/lseek-tests (Depends-on): Likewise.
31538         * modules/pipe-tests (Depends-on): Likewise.
31539         * modules/posix_spawn-tests (Depends-on): Likewise.
31540         * modules/posix_spawnp-tests (Depends-on): Likewise.
31541         * modules/stat-time-tests (Depends-on): Likewise.
31542         * modules/yesno-tests (Depends-on): Likewise.
31543
31544 2009-08-10  Bruno Haible  <bruno@clisp.org>
31545
31546         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
31547
31548 2009-08-10  Bruno Haible  <bruno@clisp.org>
31549
31550         Fix a gcc warning.
31551         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
31552
31553 2009-08-10  Bruno Haible  <bruno@clisp.org>
31554
31555         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
31556         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
31557         not only the first time.
31558         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
31559         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
31560         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
31561         is 1, not only the the first time.
31562
31563 2009-08-10  Bruno Haible  <bruno@clisp.org>
31564
31565         Make it possible to use module 'gethostname' without module 'close'.
31566         * lib/unistd.in.h (close): Evoke a link error only if
31567         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31569         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31570         * modules/unistd (Makefile.am): Substitute
31571         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31572         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
31573         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31574         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31575         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31576         * modules/sys_ioctl (Makefile.am): Substitute
31577         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31578         * modules/socket (configure.ac): On native Windows, set
31579         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
31580         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31581         Reported by Sam Steingold <sds@gnu.org>.
31582
31583 2009-08-10  Bruno Haible  <bruno@clisp.org>
31584
31585         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
31586         * modules/ioctl (configure.ac): Likewise.
31587
31588 2009-08-10  Bruno Haible  <bruno@clisp.org>
31589
31590         Avoid collision between gnulib wrapper and libintl wrapper.
31591         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
31592         already defined in intl/printf.c.
31593         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
31594         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
31595
31596 2009-08-09  Bruno Haible  <bruno@clisp.org>
31597
31598         Make <sys/select.h> really self-contained, also on Solaris 10.
31599         * lib/sys_select.in.h: Include <string.h>.
31600         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
31601         Solaris 10 problem.
31602         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
31603         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
31604         Reported by Jim Meyering.
31605
31606 2009-08-09  Bruno Haible  <bruno@clisp.org>
31607
31608         Avoid warnings from 'aclocal' that are due to a use of macro name
31609         AM_XGETTEXT_OPTION that is not defined in automake.
31610         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
31611         automake.
31612         * modules/error (configure.ac): Likewise.
31613         * modules/propername (configure.ac): Likewise.
31614         * modules/vasprintf (configure.ac): Likewise.
31615         * modules/verror (configure.ac): Likewise.
31616         * modules/xprintf (configure.ac): Likewise.
31617         * modules/xvasprintf (configure.ac): Likewise.
31618
31619 2009-08-08  Bruno Haible  <bruno@clisp.org>
31620
31621         Avoid compilation error in C++ mode.
31622         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31623         Reported by Sam Steingold <sds@gnu.org>.
31624
31625 2009-08-08  Bruno Haible  <bruno@clisp.org>
31626
31627         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31628         for the various Unix platforms.
31629         * doc/posix-headers/limits.texi: Update platforms list regarding
31630         HOST_NAME_MAX.
31631         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31632
31633 2009-08-07  Jim Meyering  <meyering@redhat.com>
31634
31635         selinux-at: fix typo in a comment
31636         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31637         Spotted by Paolo Bonzini.
31638
31639         selinux-at: remove redundant m4 code, add documentation
31640         * modules/selinux-at (configure.ac): Remove redundant code.
31641         LIB_SELINUX is already set via the dependent module, selinux-h.
31642         (Include): Add quotes around selinux-at.h.
31643         * lib/selinux-at.h: Add documentation.
31644         Reported by Bruno Haible in
31645         http://marc.info/?l=gnulib-bug&m=124958988300749
31646
31647 2009-08-07  Bruno Haible  <bruno@clisp.org>
31648
31649         Avoid link error on MacOS X 10.3 and 10.4.
31650         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31651         on non-ELF systems.
31652         * lib/argp-pv.c (argp_program_version): Likewise.
31653         Reported by Simon Josefsson.
31654
31655 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31656
31657         * tests/test-version-etc.sh: Use $EXEEXT.
31658
31659 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31660
31661         update-copyright: update documentation to point to maint.mk
31662         * build-aux/update-copyright: Here.
31663
31664 2009-08-06  Jim Meyering  <meyering@redhat.com>
31665
31666         maint.mk: support update-copyright-local
31667         * top/maint.mk (update-copyright-local): Define place-holder.
31668         (update-copyright): Depend on $(update-copyright-local).
31669
31670 2009-08-06  Jim Meyering  <meyering@redhat.com>
31671
31672         selinux-at: new module
31673         Initially written for coreutils, this module will soon be
31674         used by findutils, too.
31675         * MODULES.html.sh [Misc]: Add selinux-at.
31676         * lib/selinux-at.h: New file, from coreutils.
31677         * lib/selinux-at.c: Likewise.
31678         * modules/selinux-at: Likewise.
31679         (License): Change from LGPL to GPL, since it depends
31680         on the GPL'd openat module.
31681
31682         doc: update README
31683         * README: Remove references to cogito.
31684         Remove cvs-repo-updating instructions from 2007.
31685         Don't imply that CVS is better if you have limited disk space.
31686
31687 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31688
31689         update-copyright: support C-style comments
31690         * build-aux/update-copyright: Implement and document.
31691         * tests/test-update-copyright.sh: Test.
31692
31693 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31694
31695         update-copyright: support omitted "(C)"
31696         * build-aux/update-copyright: Implement and document.  Also,
31697         allow variable whitespace before "(C)".
31698         * tests/test-update-copyright.sh: Test.
31699
31700 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31701
31702         update-copyright: don't trip on non-FSF copyright statements
31703         * build-aux/update-copyright: Fix so that the first correctly
31704         formatted FSF copyright statement is recognized no matter what
31705         appears before it.  Update documentation.
31706         * tests/test-update-copyright.sh: Test that.
31707
31708 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31709
31710         update-copyright: clean up code a little
31711         * build-aux/update-copyright: Append "_re" to the name of any
31712         variable holding a regular expression.
31713         Replace "old" and "new" with "stmt" in variable names.
31714         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
31715         handled correctly.
31716         Format code more consistently.
31717
31718 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31719
31720         update-copyright-tests: improve portability
31721         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
31722         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
31723
31724 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31725
31726         update-copyright: support @copyright{} and &copy;
31727         * build-aux/update-copyright: Implement and document.
31728         * tests/test-update-copyright.sh: Test.
31729
31730 2009-08-04  Jim Meyering  <meyering@redhat.com>
31731
31732         update-copyright-tests: correctly test EOL=\r\n handling
31733         * tests/test-update-copyright.sh: Put \r at the end of some lines
31734         for the dos-eol tests.  Based on a patch by Joel E. Denny.
31735
31736         maint.mk: make update-copyright exclusion list more configurable
31737         * top/maint.mk (update-copyright): Default to excluding COPYING,
31738         but allow an override, in case someone does want to update that file.
31739
31740         maint.mk: don't update copyright date in COPYING
31741         * top/maint.mk (update-copyright): Exclude COPYING.
31742
31743         maint.mk: add a copyright-updating rule
31744         * top/maint.mk (update-copyright): New rule.
31745         Derived from coreutils/Makefile.am.
31746
31747         update-copyright: rename some variables
31748         * build-aux/update-copyright: Rename a few variables for clarity.
31749         Tweak syntax.  List Joel E. Denny as coauthor.
31750
31751 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31752
31753         update-copyright: fix bug for 2-digit last year and add tests
31754         * build-aux/update-copyright: Fix bug.
31755         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
31756         specified.
31757         * modules/update-copyright-tests: New
31758         * tests/test-update-copyright.sh: New.
31759
31760 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31761
31762         update-copyright: handle leading tabs in line prefix
31763         * build-aux/update-copyright: Count leading tabs as 8 spaces
31764         when computing margin.  This helps with the formatting of
31765         ChangeLogs, for example.
31766         Fix documentation a little.
31767
31768 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31769
31770         update-copyright: support EOL=\r\n
31771         * build-aux/update-copyright: Implement that.
31772
31773 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31774
31775         update-copyright: automatically format copyright statements
31776         * build-aux/update-copyright: Implement that.
31777         Also, be a little more predictable and safer by always failing
31778         when the full copyright format is not perfectly recognized as an
31779         unbroken whole.  Discussed at
31780         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
31781         Rewrite documentation.
31782
31783 2009-08-03  Bruno Haible  <bruno@clisp.org>
31784
31785         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
31786
31787 2009-08-02  Bruno Haible  <bruno@clisp.org>
31788
31789         Tests for module 'uname'.
31790         * modules/uname-tests: New file.
31791         * tests/test-uname.c: New file.
31792
31793         New module 'uname'.
31794         * lib/uname.c: New file.
31795         * m4/uname.m4: New file.
31796         * modules/uname: New file.
31797         * doc/posix-functions/uname.texi: Mention the new module.
31798
31799 2009-08-02  Bruno Haible  <bruno@clisp.org>
31800
31801         Tests for module 'sys_utsname'.
31802         * modules/sys_utsname-tests: New file.
31803         * tests/test-sys_utsname.c: New file.
31804
31805         New module 'sys_utsname'.
31806         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
31807         * m4/sys_utsname_h.m4: New file.
31808         * modules/sys_utsname: New file.
31809         * doc/posix-headers/sys_utsname.texi: Mention the new module.
31810
31811 2009-08-02  Bruno Haible  <bruno@clisp.org>
31812
31813         Implicitly initialize the sockets library.
31814         * lib/gethostname.c: Include sockets.h.
31815         (rpl_gethostname): Invoke gl_sockets_startup.
31816         * lib/socket.c: Include sockets.h.
31817         (rpl_socket): Invoke gl_sockets_startup.
31818         * modules/gethostname (Depends-on): Add sockets.
31819         * modules/socket (Depends-on): Likewise.
31820         * tests/test-poll.c: Don't include sockets.h.
31821         (main): Don't invoke gl_sockets_startup.
31822         * tests/test-select.c: Don't include sockets.h.
31823         (main): Don't invoke gl_sockets_startup.
31824
31825 2009-08-02  Bruno Haible  <bruno@clisp.org>
31826
31827         Allow multiple calls to gl_sockets_startup.
31828         * lib/sockets.c (initialized_sockets_version): New variable.
31829         (gl_sockets_startup): Do nothing if already called for this or a higher
31830         version.
31831         (gl_sockets_cleanup): Reset initialized_sockets_version.
31832
31833 2009-08-03  Simon Josefsson  <simon@josefsson.org>
31834
31835         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
31836         different project/version.
31837
31838 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
31839             Bruno Haible  <bruno@clisp.org>
31840
31841         Tests for module 'pipe-filter-gi'.
31842         * modules/pipe-filter-gi-tests: New file.
31843         * tests/test-pipe-filter-gi1.sh: New file.
31844         * tests/test-pipe-filter-gi1.c: New file.
31845         * tests/test-pipe-filter-gi2.sh: New file.
31846         * tests/test-pipe-filter-gi2-main.c: New file.
31847         * tests/test-pipe-filter-gi2-child.c: New file.
31848
31849         New module 'pipe-filter-gi'.
31850         * lib/pipe-filter-gi.c: New file.
31851         * modules/pipe-filter-gi: New file.
31852
31853 2009-08-02  Bruno Haible  <bruno@clisp.org>
31854             Paolo Bonzini  <bonzini@gnu.org>
31855
31856         Tests for module 'pipe-filter-ii'.
31857         * modules/pipe-filter-ii-tests: New file.
31858         * tests/test-pipe-filter-ii1.sh: New file.
31859         * tests/test-pipe-filter-ii1.c: New file.
31860         * tests/test-pipe-filter-ii2.sh: New file.
31861         * tests/test-pipe-filter-ii2-main.c: New file.
31862         * tests/test-pipe-filter-ii2-child.c: New file.
31863
31864         New module 'pipe-filter-ii'.
31865         * lib/pipe-filter.h: New file.
31866         * lib/pipe-filter-ii.c: New file.
31867         * lib/pipe-filter-aux.h: New file.
31868         * modules/pipe-filter-ii: New file.
31869
31870 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31871
31872         * lib/gc-libgcrypt.c: Change copyright to FSF.
31873         * lib/gc-gnulib.c: Likewise.
31874
31875 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
31876
31877         * lib/gethostname.c: Include limits.h.
31878
31879 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31880             Bruno Haible  <bruno@clisp.org>
31881
31882         Ensure HOST_NAME_MAX as part of the gethostname module.
31883         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
31884         define also HOST_NAME_MAX.
31885         * tests/test-gethostname.c: Include <limits.h>.
31886         (main): Check also HOST_NAME_MAX.
31887         * doc/posix-headers/limits.texi: Document the mingw problem.
31888
31889 2009-08-02  Bruno Haible  <bruno@clisp.org>
31890
31891         * lib/gethostname.c (gethostname): Fix handling of large len argument.
31892         Add comments.
31893
31894 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31895
31896         * lib/gethostname.c: Add Windows wrapper.
31897         * m4/gethostname.m4: Look for gethostname in -lws2_32.
31898         * modules/gethostname: Depend on sys_socket & errno, for also
31899         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
31900         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
31901
31902 2009-07-31  Jim Meyering  <meyering@redhat.com>
31903
31904         getloadavg: fix symbol name in comment
31905         * lib/getloadavg.c: Correct a typo I introduced when adding
31906         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
31907         Matt Kraai spotted the problem.
31908
31909 2009-07-29  Matt Kraai  <mkraai@beckman.com>
31910
31911         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
31912         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
31913         code also if ! defined N_NAME_POINTER.
31914         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
31915         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
31916         but the n_name member is a 12-byte array.
31917
31918 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
31919
31920         update-copyright: generalize comment handling
31921         * build-aux/update-copyright: Handle copyright statements
31922         within more comment styles.
31923         Document usage.
31924         Report any file with an external copyright holder or parse failure.
31925
31926 2009-07-29  Jim Meyering  <meyering@redhat.com>
31927
31928         mktime: correct setting of REPLACE_MKTIME
31929         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
31930
31931         update-copyright: new module
31932         * modules/update-copyright: New file.
31933         * build-aux/update-copyright: New file.
31934         * MODULES.html.sh (maint+release support): Add update-copyright.
31935
31936 2009-07-27  Bruno Haible  <bruno@clisp.org>
31937
31938         Fix compilation error when <ctime> is used and mktime is replaced.
31939         * lib/time.in.h (mktime): New declaration.
31940         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
31941         REPLACE_MKTIME instead of defining mktime in config.h.
31942         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
31943         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
31944         Reported by Ross McFarland <rwmcfa1@neces.com>.
31945
31946 2009-07-27  Bruno Haible  <bruno@clisp.org>
31947
31948         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
31949         Reported by Matt Kraai <mkraai@beckman.com>.
31950
31951 2009-07-25  Jim Meyering  <meyering@redhat.com>
31952
31953         maint.mk: avoid warnings about missing files
31954         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
31955         diagnostic when .prev-version does not exist.
31956         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
31957         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
31958         nonexistent cfg.mk.
31959         Suggestions from Simon Josefsson.
31960
31961 2009-07-25  Bruno Haible  <bruno@clisp.org>
31962
31963         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
31964         defined as macros. Needed on QNX 6.4.1.
31965         Reported by Matt Kraai <mkraai@beckman.com>.
31966
31967 2009-07-23  Jim Meyering  <meyering@redhat.com>
31968
31969         maint.mk: invoke "make dist" with a working value of XZ_OPT
31970         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
31971
31972 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
31973
31974         Make fseeko.c compile on QNX.
31975         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
31976
31977 2009-07-22  Peter Simons  <simons@cryp.to>
31978
31979         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
31980         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
31981         * lib/md4.h: Likewise.
31982         * lib/md5.h: Likewise.
31983         * lib/sha1.h: Likewise.
31984         * lib/sha256.h: Likewise.
31985         * lib/sha512.h: Likewise.
31986
31987         tests-sha1: don't assign literal string to 'char *' variable
31988         * tests/test-sha1.c (main): Declare locals with "const" to match
31989         attributes of the right hand side.
31990
31991 2009-07-21  Eric Blake  <ebb9@byu.net>
31992
31993         dup2: fix more mingw problems
31994         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
31995         fd to itself.
31996         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31997         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
31998         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
31999         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
32000         care of mingw bugs.
32001
32002 2009-07-21  Jim Meyering  <meyering@redhat.com>
32003
32004         vc-list-files: avoid failure when /bin/sh is dash
32005         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
32006         On some Debian based systems, /bin/sh is a symlink to dash, and running
32007         this command would omit the "/" following each 'tests' prefix:
32008           dash -x build-aux/vc-list-files -C . tests
32009         That is because bash and dash work differently:
32010           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
32011           bash ok
32012           dash odd
32013
32014 2009-07-21  Eric Blake  <ebb9@byu.net>
32015
32016         dup2-tests: test previous patch
32017         * modules/dup2-tests: New file.
32018         * tests/test-dup2.c: Likewise.
32019         * tests/test-open.c (main): Avoid unspecified behavior.
32020         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
32021         test.
32022
32023         dup2: work around mingw and cygwin 1.5 bug
32024         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
32025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32026         * modules/unistd (Makefile.am): Substitute it.
32027         * lib/unistd.in.h (dup2): Declare the replacement.
32028         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
32029         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
32030         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
32031         * modules/execute (Depends-on): Add dup2.
32032         * modules/fseterr (Depends-on): Likewise.
32033         * modules/pipe (Depends-on): Likewise.
32034         * modules/posix_spawn-internal (Depends-on): Likewise.
32035
32036 2009-07-21  Bruno Haible  <bruno@clisp.org>
32037
32038         * modules/.gitattributes: New file.
32039
32040 2009-07-20  Bruno Haible  <bruno@clisp.org>
32041
32042         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
32043         (main): Use it.
32044
32045 2009-07-20  Eric Blake  <ebb9@byu.net>
32046
32047         test-pipe: make a bit more robust.
32048         * tests/test-pipe.c (myerr): Allow error messages regardless of
32049         what we do to stderr.
32050         (test_pipe): Rearrange to avoid deadlock.
32051         (child_main): Try a larger read, to ensure we avoided deadlock.
32052         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
32053         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
32054         if misused.
32055
32056 2009-07-19  Jim Meyering  <meyering@redhat.com>
32057
32058         fts: avoid false-positive cycle-detection
32059         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
32060         for each new command line argument.
32061
32062 2009-07-19  Bruno Haible  <bruno@clisp.org>
32063
32064         Fix build error on mingw with the modules sys_select and unistd.
32065         * modules/acl-tests (Depends-on): Add close.
32066         * modules/binary-io-tests (Depends-on): Likewise.
32067         * modules/closein-tests (Depends-on): Likewise.
32068         * modules/flock-tests (Depends-on): Likewise.
32069         * modules/fsync-tests (Depends-on): Likewise.
32070         * modules/lseek-tests (Depends-on): Likewise.
32071         * modules/pipe-tests (Depends-on): Likewise.
32072         * modules/posix_spawn-tests (Depends-on): Likewise.
32073         * modules/posix_spawnp-tests (Depends-on): Likewise.
32074         * modules/stat-time-tests (Depends-on): Likewise.
32075         * modules/yesno-tests (Depends-on): Likewise.
32076
32077 2009-07-19  Bruno Haible  <bruno@clisp.org>
32078
32079         Unify conditionals.
32080         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
32081         macros, not at the compiler macros.
32082         * lib/pipe.c: Likewise.
32083         * lib/execute.c: Likewise.
32084         * lib/spawni.c: Likewise.
32085
32086 2009-07-19  Bruno Haible  <bruno@clisp.org>
32087
32088         Fix handling of closed stdin/stdout/stderr on mingw.
32089         * lib/w32spawn.h: Include unistd.h.
32090         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
32091         file descriptor with O_NOINHERIT flag.
32092         (fd_safer_noinherit): New function, based on fd-safer.c.
32093         (dup_safer_noinherit): New function, based on dup-safer.c.
32094         (undup_safer_noinherit): New function.
32095         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
32096         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
32097         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
32098         instead of fd_safer.
32099         * tests/test-pipe.c: Include <windows.h>.
32100         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
32101         result.
32102
32103         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
32104         from main.
32105         (test_pipe): Pass an extra argument for disambiguation.
32106         (main): Invoke parent_main or child_main.
32107
32108         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
32109         consistently.
32110
32111 2009-07-18  Eric Blake  <ebb9@byu.net>
32112
32113         test-pipe: fix mingw build
32114         * tests/test-pipe.c (main): Avoid fcntl on mingw.
32115
32116 2009-07-18  Bruno Haible  <bruno@clisp.org>
32117
32118         * modules/pipe-tests (Makefile.am): Fix typo.
32119
32120 2009-07-18  Eric Blake  <ebb9@byu.net>
32121
32122         error: fix mingw build
32123         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
32124         Reported by Bruno Haible.
32125
32126         error: avoid undefined use of stdout
32127         * lib/error.c (error, error_at_line): Check that fd 1 is open
32128         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
32129         is handling faults and the close_stdout module wants to report the
32130         detection of closed stdout as an error.
32131
32132 2009-07-17  Eric Blake  <ebb9@byu.net>
32133
32134         pipe: be robust in face of closed fds
32135         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
32136         should cause child to misbehave.
32137         * modules/pipe-tests: New module.
32138         * tests/test-pipe.c: New file.
32139         * tests/test-pipe.sh: New file.
32140         Reported by Akim Demaille.
32141
32142 2009-07-14  Bruno Haible  <bruno@clisp.org>
32143
32144         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
32145         Reported by anonymous kc.
32146
32147 2009-07-07  Jim Meyering  <meyering@redhat.com>
32148
32149         maint.mk: don't look for translatable strings in *.m4 or *.mk
32150         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
32151         when searching for translatable strings.
32152
32153 2009-07-05  Jim Meyering  <meyering@redhat.com>
32154
32155         remove superfluous parentheses in STREQ definition
32156         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
32157         * lib/getugroups.c (STREQ): Likewise.
32158         * lib/fnmatch.c (STREQ): Likewise.
32159         Spotted by Bruno Haible.
32160
32161 2009-07-04  Jim Meyering  <meyering@redhat.com>
32162
32163         argv-iter: new module
32164         * MODULES.html.sh: Add argv-iter.
32165         * lib/argv-iter.c, lib/argv-iter.h: New files.
32166         * modules/argv-iter: New file.
32167         * modules/argv-iter-tests: New file.
32168         * tests/test-argv-iter.c: Test it.
32169
32170 2009-07-04  Bruno Haible  <bruno@clisp.org>
32171
32172         Fix assertion.
32173         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
32174         contains more exact copies of a given entry than file2, leave the extra
32175         copies unpaired rather than aborting.
32176         Reported by Eric Blake.
32177
32178 2009-07-02  Bruno Haible  <bruno@clisp.org>
32179
32180         Speedup git-merge-changelog for git cherry-pick.
32181         * lib/git-merge-changelog.c (struct entries_mapping): New type.
32182         (entries_mapping_get): New function, extracted from compute_mapping.
32183         (entries_mapping_reverse_get): New function.
32184         (compute_mapping): Add a 'full' argument. Return the result in a
32185         'struct entries_mapping'.
32186         (main): Update. Access the mappings through entries_mapping_get.
32187         Reported by Eric Blake.
32188
32189 2009-07-02  Bruno Haible  <bruno@clisp.org>
32190
32191         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
32192         best_i.
32193
32194 2009-07-02  Bruno Haible  <bruno@clisp.org>
32195
32196         Speed up approximate search for matching ChangeLog entries.
32197         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
32198         argument. Call fstrcmp_bounded instead of fstrcmp.
32199         (compute_mapping, try_split_merged_entry, main): Update callers.
32200
32201 2009-07-02  Bruno Haible  <bruno@clisp.org>
32202
32203         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
32204
32205 2009-06-30  Bruno Haible  <bruno@clisp.org>
32206
32207         Reduce the number of uc_is_cased calls.
32208         * lib/unicase.h (casing_suffix_context_t): Add
32209         'first_char_except_ignorable' field.
32210         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
32211         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
32212         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
32213         Update initializer.
32214         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
32215         case-ignorable characters.
32216         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
32217         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
32218         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
32219         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
32220         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
32221
32222 2009-06-30  Bruno Haible  <bruno@clisp.org>
32223
32224         Tests for module 'unicase/ignorable'.
32225         * modules/unicase/ignorable-tests: New file.
32226         * tests/unicase/test-ignorable.c: New file, generated by
32227         gen-uni-tables.
32228
32229         Tests for module 'unicase/cased'.
32230         * modules/unicase/cased-tests: New file.
32231         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
32232         * tests/unicase/test-predicate-part1.h: New file, derived from
32233         tests/unictype/test-predicate-part1.h.
32234         * tests/unicase/test-predicate-part2.h: New file, same as
32235         tests/unictype/test-predicate-part2.h.
32236
32237         Fix evaluation of "Before C" condition of FINAL_SIGMA.
32238         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
32239         (output_casing_properties): New function.
32240         (main): Call it.
32241         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
32242         * lib/unicase/cased.c: Include unictype/bitmap.h.
32243         (uc_is_cased): Define through a bitmap lookup.
32244         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
32245         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
32246         (uc_is_case_ignorable): Define through a bitmap lookup.
32247         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
32248         lib/unictype/bitmap.h.
32249         (Depends-on): Add inline. Clean up.
32250         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
32251         lib/unictype/bitmap.h.
32252         (Depends-on): Add inline. Clean up.
32253         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
32254         recognition.
32255         * tests/unicase/test-u16-tolower.c (main): Likewise.
32256         * tests/unicase/test-u32-tolower.c (main): Likewise.
32257
32258 2009-06-30  Bruno Haible  <bruno@clisp.org>
32259
32260         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
32261         * lib/unicase/u16-casemap.c: Likewise.
32262         * lib/unicase/u32-casemap.c: Likewise.
32263
32264 2009-06-29  Bruno Haible  <bruno@clisp.org>
32265
32266         Define u32_casefold as a wrapper around u32_ct_casefold.
32267         * lib/unicase/u32-casefold.c: Update.
32268         * modules/unicase/u32-casefold (Depends-on): Add
32269         unicase/u32-ct-casefold, unicase/empty-prefix-context,
32270         unicase/empty-suffix-context. Clean up.
32271
32272         Define u16_casefold as a wrapper around u16_ct_casefold.
32273         * lib/unicase/u16-casefold.c: Update.
32274         * modules/unicase/u16-casefold (Depends-on): Add
32275         unicase/u16-ct-casefold, unicase/empty-prefix-context,
32276         unicase/empty-suffix-context. Clean up.
32277
32278         Define u8_casefold as a wrapper around u8_ct_casefold.
32279         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
32280         * lib/unicase/u8-casefold.c: Update.
32281         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
32282         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32283
32284         Define u32_totitle as a wrapper around u32_ct_totitle.
32285         * lib/unicase/u32-totitle.c: Update.
32286         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
32287         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32288
32289         Define u16_totitle as a wrapper around u16_ct_totitle.
32290         * lib/unicase/u16-totitle.c: Update.
32291         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
32292         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32293
32294         Define u8_totitle as a wrapper around u8_ct_totitle.
32295         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
32296         functions.
32297         (FUNC): Delegate to U_CT_TOTITLE.
32298         * lib/unicase/u8-totitle.c: Update.
32299         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
32300         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32301
32302         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
32303         invocation.
32304         * modules/unicase/u32-tolower (Depends-on): Add
32305         unicase/empty-prefix-context, unicase/empty-suffix-context.
32306
32307         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
32308         invocation.
32309         * modules/unicase/u16-tolower (Depends-on): Add
32310         unicase/empty-prefix-context, unicase/empty-suffix-context.
32311
32312         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32313         * modules/unicase/u8-tolower (Depends-on): Add
32314         unicase/empty-prefix-context, unicase/empty-suffix-context.
32315
32316         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32317         invocation.
32318         * modules/unicase/u32-toupper (Depends-on): Add
32319         unicase/empty-prefix-context, unicase/empty-suffix-context.
32320
32321         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32322         invocation.
32323         * modules/unicase/u16-toupper (Depends-on): Add
32324         unicase/empty-prefix-context, unicase/empty-suffix-context.
32325
32326         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32327         * modules/unicase/u8-toupper (Depends-on): Add
32328         unicase/empty-prefix-context, unicase/empty-suffix-context.
32329
32330         New module 'unicase/u32-ct-casefold'.
32331         * lib/unicase/u32-ct-casefold.c: New file.
32332         * modules/unicase/u32-ct-casefold: New file.
32333
32334         New module 'unicase/u16-ct-casefold'.
32335         * lib/unicase/u16-ct-casefold.c: New file.
32336         * modules/unicase/u16-ct-casefold: New file.
32337
32338         New module 'unicase/u8-ct-casefold'.
32339         * lib/unicase/u8-ct-casefold.c: New file.
32340         * lib/unicase/u-ct-casefold.h: New file, derived from
32341         lib/unicase/u-casefold.h.
32342         * modules/unicase/u8-ct-casefold: New file.
32343
32344         New module 'unicase/u32-ct-totitle'.
32345         * lib/unicase/u32-ct-totitle.c: New file.
32346         * modules/unicase/u32-ct-totitle: New file.
32347
32348         New module 'unicase/u16-ct-totitle'.
32349         * lib/unicase/u16-ct-totitle.c: New file.
32350         * modules/unicase/u16-ct-totitle: New file.
32351
32352         New module 'unicase/u8-ct-totitle'.
32353         * lib/unicase/u8-ct-totitle.c: New file.
32354         * lib/unicase/u-ct-totitle.h: New file, derived from
32355         lib/unicase/u-totitle.h.
32356         * modules/unicase/u8-ct-totitle: New file.
32357
32358         New module 'unicase/u32-ct-tolower'.
32359         * lib/unicase/u32-ct-tolower.c: New file.
32360         * modules/unicase/u32-ct-tolower: New file.
32361
32362         New module 'unicase/u16-ct-tolower'.
32363         * lib/unicase/u16-ct-tolower.c: New file.
32364         * modules/unicase/u16-ct-tolower: New file.
32365
32366         New module 'unicase/u8-ct-tolower'.
32367         * lib/unicase/u8-ct-tolower.c: New file.
32368         * modules/unicase/u8-ct-tolower: New file.
32369
32370         New module 'unicase/u32-ct-toupper'.
32371         * lib/unicase/u32-ct-toupper.c: New file.
32372         * modules/unicase/u32-ct-toupper: New file.
32373
32374         New module 'unicase/u16-ct-toupper'.
32375         * lib/unicase/u16-ct-toupper.c: New file.
32376         * modules/unicase/u16-ct-toupper: New file.
32377
32378         New module 'unicase/u8-ct-toupper'.
32379         * lib/unicase/u8-ct-toupper.c: New file.
32380         * modules/unicase/u8-ct-toupper: New file.
32381
32382         Add context arguments to u*_casemap functions.
32383         * lib/unicase/unicasemap.h: Include unicase.h.
32384         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32385         suffix_context arguments.
32386         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32387         functions.
32388         (FUNC): Add prefix_context and suffix_context arguments. Use
32389         uc_is_cased and uc_is_case_ignorable.
32390         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32391         * lib/unicase/u16-casemap.c: Likewise.
32392         * lib/unicase/u32-casemap.c: Likewise.
32393         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32394         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32395         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32396         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32397         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32398         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32399
32400         New module 'unicase/u32-suffix-context'.
32401         * lib/unicase/u32-suffix-context.c: New file.
32402         * modules/unicase/u32-suffix-context: New file.
32403
32404         New module 'unicase/u16-suffix-context'.
32405         * lib/unicase/u16-suffix-context.c: New file.
32406         * modules/unicase/u16-suffix-context: New file.
32407
32408         New module 'unicase/u8-suffix-context'.
32409         * lib/unicase/u8-suffix-context.c: New file.
32410         * lib/unicase/u-suffix-context.h: New file.
32411         * modules/unicase/u8-suffix-context: New file.
32412
32413         New module 'unicase/empty-suffix-context'.
32414         * lib/unicase/empty-suffix-context.c: New file.
32415         * modules/unicase/empty-suffix-context: New file.
32416
32417         New module 'unicase/u32-prefix-context'.
32418         * lib/unicase/u32-prefix-context.c: New file.
32419         * modules/unicase/u32-prefix-context: New file.
32420
32421         New module 'unicase/u16-prefix-context'.
32422         * lib/unicase/u16-prefix-context.c: New file.
32423         * modules/unicase/u16-prefix-context: New file.
32424
32425         New module 'unicase/u8-prefix-context'.
32426         * lib/unicase/u8-prefix-context.c: New file.
32427         * lib/unicase/u-prefix-context.h: New file.
32428         * lib/unicase/context.h: New file.
32429         * modules/unicase/u8-prefix-context: New file.
32430
32431         New module 'unicase/empty-prefix-context'.
32432         * lib/unicase/empty-prefix-context.c: New file.
32433         * modules/unicase/empty-prefix-context: New file.
32434
32435         New module 'unicase/ignorable'.
32436         * lib/unicase/ignorable.c: New file.
32437         * modules/unicase/ignorable: New file.
32438
32439         New module 'unicase/cased'.
32440         * lib/unicase/caseprop.h: New file.
32441         * lib/unicase/cased.c: New file.
32442         * modules/unicase/cased: New file.
32443
32444         New functions for case mapping of substrings.
32445         * lib/unicase.h (casing_prefix_context_t): New type.
32446         (unicase_empty_prefix_context): New variable.
32447         (u8_casing_prefix_context, u16_casing_prefix_context,
32448         u32_casing_prefix_context, u8_casing_prefixes_context,
32449         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32450         declarations.
32451         (casing_suffix_context_t): New type.
32452         (unicase_empty_suffix_context): New variable.
32453         (u8_casing_suffix_context, u16_casing_suffix_context,
32454         u32_casing_suffix_context, u8_casing_suffixes_context,
32455         u16_casing_suffixes_context, u32_casing_suffixes_context,
32456         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32457         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32458         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32459         declarations.
32460
32461 2009-06-28  Jim Meyering  <meyering@redhat.com>
32462
32463         boostrap: indent only with spaces
32464         * build-aux/bootstrap: Indent only with spaces, never TABs.
32465
32466         bootstrap: split long lines
32467         * build-aux/bootstrap: Keep line length < 80.
32468
32469         bootstrap: sync from coreutils
32470         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32471         just as autoreconf does.  Verify a list of prerequisite
32472         package-name,version-number pairs if defined in bootstrap.conf.
32473         Refer to README-prereq, if prerequisites are not satisfied.
32474
32475 2009-06-27  Eric Blake  <ebb9@byu.net>
32476
32477         tests: add test for bogus NULL definition
32478         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32479         * tests/test-stdlib.c: Likewise.
32480         * tests/test-string.c: Likewise.
32481         * tests/test-locale.c: Likewise.
32482         * tests/test-unistd.c: Likewise.
32483         * modules/stdio-tests (Depends-on): Add verify.
32484         * modules/stdlib-tests (Depends-on): Likewise.
32485         * modules/string-tests (Depends-on): Likewise.
32486         * modules/locale-tests (Depends-on): Likewise.
32487         * modules/unistd-tests (Depends-on): Likewise.
32488
32489 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32490
32491         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32492         self-explaining comment.
32493         * m4/selinux-selinux-h: Update serial.
32494         (gl_LIBSELINUX): New macro, adding a warning for missing development
32495         packages to code extracted from...
32496         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32497         Add warning for missing development packages here, too.
32498
32499 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32500
32501         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32502
32503 2009-06-25  Eric Blake  <ebb9@byu.net>
32504
32505         version-etc: fix regression
32506         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32507         gcc.
32508         (version_etc): Use it, to catch bugs with trailing NULL.
32509         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32510         (version_etc_va): Fix logic bug.
32511         * modules/version-etc-tests: Add test.
32512         * tests/test-version-etc.c: New file.
32513         * tests/test-version-etc.sh: Likewise.
32514
32515 2009-06-25  Sam Steingold  <sds@gnu.org>
32516
32517         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32518         mbtowc declaration.
32519
32520 2009-06-25  Eric Blake  <ebb9@byu.net>
32521
32522         fpurge: migrate into <stdio.h>
32523         * lib/fpurge.h: Delete...
32524         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32525         * lib/fpurge.c (fpurge): Change declaring header.
32526         * modules/fpurge (Files): Drop deleted file.
32527         (Depends-on): Add stdio.
32528         (configure.ac): Set witness.
32529         * modules/stdio (Makefile.am): Support fpurge macros.
32530         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32531         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
32532         * lib/fflush.c: Update client.
32533         * tests/test-fpurge.c: Likewise.
32534         * NEWS: Mention the change.
32535
32536 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32537
32538         * lib/argp-version-etc.c (program_authors): Add const
32539         qualifier.
32540         * lib/version-etc.c: Fix typos in the comments.
32541         * modules/argp-version-etc: Depends on version-etc.
32542
32543 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32544
32545         argp-version-etc: new module.
32546
32547         * lib/argp-version-etc.c: New file.
32548         * lib/argp-version-etc.h: New file.
32549         * modules/argp-version-etc: New file.
32550         * modules/argp-version-etc-tests: New file.
32551         * tests/test-argp-version-etc.c: New test.
32552         * tests/test-argp-version-etc-1.sh: New test.
32553
32554 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32555
32556         Provide additional interfaces and documentation for version-etc
32557         module.
32558
32559         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
32560         interfaces.
32561         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
32562         prototypes.
32563
32564 2009-06-24  Bruno Haible  <bruno@clisp.org>
32565
32566         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
32567         HAVE_LIB${NAME} macro.
32568         Reported by Sam Steingold <sds@gnu.org>.
32569
32570 2009-06-23  Simon Josefsson  <simon@josefsson.org>
32571
32572         * modules/hash-tests (test_hash_LDADD): Link to libintl when
32573         needed.
32574
32575 2009-06-21  Bruno Haible  <bruno@clisp.org>
32576
32577         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
32578         work.
32579         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
32580         together with LIB${NAME}, LTLIB${NAME}.
32581         Reported by Sam Steingold <sds@gnu.org>.
32582
32583 2009-06-20  Jim Meyering  <meyering@redhat.com>
32584
32585         tests: make sc_require_test_exit_idiom more generic
32586         * top/maint.mk (Exit_witness_file): New overridable variable.
32587         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
32588         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
32589
32590 2009-06-19  Jim Meyering  <meyering@redhat.com>
32591
32592         hash: reverse order of src/dst parameters in an internal interface
32593         * lib/hash.c (transfer_entries): Reverse order of parameters to
32594         put DST before SRC.  Adjust callers.
32595
32596         tests: test-hash: avoid wholesale duplication
32597         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
32598         Instead, use a loop and add a single conditional.
32599
32600         tests: test-hash: allow seed selection via a command line argument
32601         * tests/test-hash.c (get_seed): New function.
32602         (main): Use it.
32603
32604 2009-06-19  Eric Blake  <ebb9@byu.net>
32605
32606         hash: avoid memory leak on allocation failure
32607         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
32608         failure.  Factor repeated algorithm...
32609         (transfer_entries): ...into new helper routine.
32610         (hash_delete): React to hash_rehash return value.
32611
32612         hash: reduce memory pressure in hash_rehash no-op case
32613         * lib/hash.c (next_prime): Avoid overflow.
32614         (hash_initialize): Factor bucket size computation...
32615         (compute_bucket_size): ...into new helper function.
32616         (hash_rehash): Use new function and open coding to reduce memory
32617         pressure, and avoid a memory leak in USE_OBSTACK code.
32618         Reported by Jim Meyering.
32619
32620 2009-06-18  Eric Blake  <ebb9@byu.net>
32621
32622         hash: make rotation more obvious
32623         * modules/hash (Depends-on): Add bitrotate and stdint.
32624         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32625         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32626         (SIZE_MAX): Rely on headers for definition.
32627         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32628         (raw_hasher): Use rotr_sz.
32629         Suggested by Jim Meyering.
32630
32631         hash: fix memory leak in last patch
32632         * lib/hash.c (hash_rehash): Avoid memory leak.
32633
32634         hash: avoid no-op rehashing
32635         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32636
32637         hash: provide default callback functions
32638         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32639         (hash_initialize): Use them as defaults.
32640         * tests/test-hash.c (main): Test this.
32641
32642         hash: minor optimization
32643         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32644         when possible.
32645         (hash_initialize): Document this promise.
32646         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32647         * tests/test-hash.c (hash_compare_strings): Test this.
32648
32649 2009-06-18  Bruno Haible  <bruno@clisp.org>
32650
32651         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32652         going to be replaced anyway.
32653
32654 2009-06-18  Bruno Haible  <bruno@clisp.org>
32655
32656         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32657         in one place.
32658         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32659         be replaced anyway.
32660
32661 2009-06-18  Eric Blake  <ebb9@byu.net>
32662
32663         hash: check for resize before insertion
32664         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32665         threshold before insertion, so that a pathological hash_rehash
32666         that fills every bucket can still trigger another rehash.
32667
32668 2009-06-18  Jim Meyering  <meyering@redhat.com>
32669
32670         hash-tests: add a loop around the small tests
32671         * tests/test-hash.c (main): Repeat small tests with selected
32672         small initial table sizes.
32673
32674 2009-06-17  Eric Blake  <ebb9@byu.net>
32675
32676         hash: minor cleanups
32677         * lib/hash.h (hash_entry): Make opaque, by moving...
32678         * lib/hash.c (hash_entry): ...here.
32679         (hash_insert): Clarify restrictions on what can be inserted.
32680         (hash_get_next): Clarify when it is safe to remove an element
32681         during traversal.
32682         (check_tuning): Skip verification when tuning is known safe.
32683         (hash_initialize): Clarify restrictions on tuning.
32684
32685 2009-06-17  Jim Meyering  <jim@meyering.net>
32686         and Eric Blake  <ebb9@byu.net>
32687
32688         hash-tests: new module
32689         * modules/hash-tests: New file.
32690         * tests/test-hash.c: New file.
32691
32692 2009-06-17  Eric Blake  <ebb9@byu.net>
32693
32694         strstr-simple: document new module
32695         * MODULES.html.sh: Document new module.
32696
32697         strstr, strcasestr: replace on platforms with broken memchr
32698         * modules/strstr: Split into...
32699         * modules/strstr-simple: ...new module that does not care about
32700         performance, but does care about glibc bug.
32701         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
32702         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
32703         if platform memchr is broken, per Debian bug 521737.
32704         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
32705         memchr.
32706         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
32707         * doc/posix-functions/strstr.texi (strstr): Document the fix.
32708         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32709         * modules/mountlist (Depends-on): Add strstr-simple.
32710         * modules/gen-uni-tables (Depends-on): Likewise.
32711         * modules/argz (Depends-on): Add strstr.
32712
32713 2009-06-17  Bruno Haible  <bruno@clisp.org>
32714
32715         * modules/posix_spawn-internal (Depends-on): Add errno.
32716
32717 2009-06-17  Bruno Haible  <bruno@clisp.org>
32718
32719         Define missing ESTALE on Interix 3.5.
32720         * lib/errno.in.h (ESTALE): Assign a value if missing.
32721         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
32722         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
32723         missing.
32724         * doc/posix-headers/errno.texi: Mention the Interix bug.
32725         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
32726
32727 2009-06-15  Eric Blake  <ebb9@byu.net>
32728
32729         memchr, memchr2: add valgrind exception
32730         * lib/memchr.valgrind: New file.
32731         * lib/memchr2.valgrind: New file.
32732         * modules/memchr (Files): Distribute valgrind file.
32733         * modules/memchr2 (Files): Likewise.
32734
32735         docs: memchr is no longer obsolete
32736         * MODULES.html.sh: Move memchr from obsolete to string.h section.
32737         * lib/string.in.h (memchr): Simplify logic.
32738
32739 2009-06-14  Jim Meyering  <meyering@redhat.com>
32740
32741         link-follow: fix the "checking..." message to not mention trailing slash
32742         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
32743         never considered trailing slashes.
32744
32745 2009-06-14  Bruno Haible  <bruno@clisp.org>
32746
32747         * m4/memchr.m4: Mention also the bug on IA-64.
32748         * doc/posix-functions/memchr.texi: Likewise.
32749
32750 2009-06-12  Eric Blake  <ebb9@byu.net>
32751
32752         memchr: detect broken x86_64 and alpha implementations
32753         * modules/memchr-tests (Depends-on): Move mmap detection...
32754         * modules/memchr (Depends-on): ...here.
32755         (configure.ac): Set indicator.
32756         * lib/string.in.h (memchr): Declare replacement.
32757         * modules/string (Makefile.am): Trigger replacement.
32758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32759         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
32760         bugs.
32761         * doc/posix-functions/memchr.texi (memchr): Document the bug.
32762         * modules/getpagesize (License): Relax license.
32763
32764 2009-06-11  Bruno Haible  <bruno@clisp.org>
32765
32766         * lib/idpriv.h: Add more references.
32767
32768 2009-06-08  Bruno Haible  <bruno@clisp.org>
32769
32770         Tests for module 'idpriv-droptemp'.
32771         * modules/idpriv-droptemp-tests: New file.
32772         * tests/test-idpriv-droptemp.sh: New file.
32773         * tests/test-idpriv-droptemp.su.sh: New file.
32774         * tests/test-idpriv-droptemp.c: New file.
32775
32776         New module 'idpriv-droptemp'.
32777         * lib/idpriv-droptemp.c: New file.
32778         * modules/idpriv-droptemp: New file.
32779
32780 2009-06-08  Bruno Haible  <bruno@clisp.org>
32781
32782         Tests for module 'idpriv-drop'.
32783         * modules/idpriv-drop-tests: New file.
32784         * tests/test-idpriv-drop.sh: New file.
32785         * tests/test-idpriv-drop.su.sh: New file.
32786         * tests/test-idpriv-drop.c: New file.
32787
32788         New module 'idpriv-drop'.
32789         * lib/idpriv.h: New file.
32790         * lib-idpriv-drop.c: New file.
32791         * m4/idpriv.m4: New file.
32792         * modules/idpriv-drop: New file.
32793
32794 2009-06-08  Bruno Haible  <bruno@clisp.org>
32795
32796         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
32797         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32798         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32799         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32800         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32801         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32802         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32803
32804 2009-06-08  Eric Blake  <ebb9@byu.net>
32805
32806         test-strstr: use memory fence, when possible
32807         * tests/test-strstr.c (main): Use memory fence, in order to be
32808         more likely to trigger Debian bug 521737.
32809         * modules/strstr-tests (Files): Pull in additional files.
32810
32811         memchr: no longer obsolete, for wider field testing
32812         * modules/memchr (Status, Notice): Delete, this module is no
32813         longer obsolete.
32814         * modules/vasnprintf (Depends-on): Add memchr.
32815
32816 2009-06-07  Jim Meyering  <meyering@redhat.com>
32817
32818         hash: declare some functions with the warn_unused_result attribute
32819         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
32820
32821 2009-06-07  Bruno Haible  <bruno@clisp.org>
32822
32823         * tests/test-alignof.c: Don't test int64_t if it does not exist.
32824         Reported by Eric Blake.
32825
32826 2009-06-06  Eric Blake  <ebb9@byu.net>
32827
32828         test-alignof: fix typo with long double
32829         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
32830         compiler error.
32831
32832 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
32833
32834         Escape non-texinfo { and }s.
32835         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
32836         markup error.
32837
32838 2009-06-04  Jim Meyering  <meyering@redhat.com>
32839
32840         gitlog-to-changelog: don't infloop on an empty commit log
32841         * build-aux/gitlog-to-changelog: Warn about an empty log message.
32842         Reported by Boris Petersen <transacid@centerim.org>.
32843
32844 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
32845
32846         version-etc: extend for packagers
32847         Add three new configure options, intended for packagers:
32848           --with-packager="packager name"
32849           --with-packager-version="packager-specific version"
32850           --with-packager-bug-reports="packager bug reporting"
32851         An example with coreutils:
32852           $ ./configure \
32853             --with-packager=Gentoo \
32854             --with-packager-bug-report=http://bugs.gentoo.org/ \
32855             --with-packager-version="patchset 1.6"
32856           $ ./src/ls --version | head -n2
32857           ls (GNU coreutils) 7.1-dirty
32858           Packaged by Gentoo (patchset 1.6)
32859         Note that the bug reporting info via --help doesn't show up because
32860         coreutils uses its own custom emit_bug_reporting_address() implementation
32861         in src/system.h.  If it didn't, it'd look like:
32862           $ ./src/ls --help | tail -n4
32863           Report bugs to <bug-coreutils@gnu.org>.
32864           Report Gentoo bugs to <http://bugs.gentoo.org/>.
32865           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
32866           General help using GNU software: <http://www.gnu.org/gethelp/>.
32867         * lib/version-etc.c: Print new information, if provided.
32868         * m4/version-etc.m4: New file.
32869         * modules/version-etc (Files): Add m4/version-etc.m4.
32870         (configure.ac): Add gl_VERSION_ETC.
32871
32872 2009-05-31  Bruno Haible  <bruno@clisp.org>
32873
32874         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
32875         and 'int64_t'.
32876         * modules/alignof-tests (Dependencies): Add stdint.
32877         Reported by Eric Blake.
32878
32879 2009-05-31  Bruno Haible  <bruno@clisp.org>
32880
32881         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
32882         restriction due to compiler bugs.
32883         Reported by Eric Blake.
32884
32885 2009-05-31  Simon Josefsson  <simon@josefsson.org>
32886             Bruno Haible  <bruno@clisp.org>
32887
32888         Fix test-alignof failure.
32889         * lib/alignof.h (alignof_slot): New macro.
32890         (alignof_type): New macro, with the same semantics as the previous
32891         'alignof'.
32892         (alignof): Alias to alignof_slot.
32893         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
32894         check that the results are usable as constant expressions.
32895
32896 2009-05-31  Bruno Haible  <bruno@clisp.org>
32897
32898         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
32899         * tests/test-memchr.c (main): Check that memchr does not read past the
32900         first occurrence of the byte.
32901         * tests/test-strstr.c (main): Update comment.
32902         Suggested by Eric Blake.
32903
32904 2009-05-30  Bruno Haible  <bruno@clisp.org>
32905
32906         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
32907         detail how to use dumpbin.
32908         Reported by David Byron <dbyron@dbyron.com>.
32909
32910 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32911
32912         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
32913
32914 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32915
32916         * m4/manywarnings.m4: Add GCC 4.4 warnings.
32917
32918 2009-05-28  Bruno Haible  <bruno@clisp.org>
32919
32920         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
32921         build-aux/ files.
32922
32923 2009-05-28  Simon Josefsson  <simon@josefsson.org>
32924
32925         * gnulib-tool (func_import): Transform license on build-aux/ files too.
32926
32927 2009-05-27  Simon Josefsson  <simon@josefsson.org>
32928
32929         * gnulib-tool (sed_transform_main_lib_file)
32930         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
32931         regexps.
32932
32933 2009-05-26  Simon Josefsson  <simon@josefsson.org>
32934
32935         * tests/test-strstr.c: Add another self-test.
32936         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
32937         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
32938
32939 2009-05-23  Bruno Haible  <bruno@clisp.org>
32940
32941         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
32942         change.
32943
32944 2009-05-21  Bruno Haible  <bruno@clisp.org>
32945
32946         Simplify use of mode_t varargs.
32947         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
32948         uses 'mode_t' or 'int'.
32949         * lib/openat.c (openat): Likewise.
32950         * lib/open-safer.c (open_safer): Likewise.
32951         * m4/mode_t.m4: New file.
32952         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
32953         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
32954         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
32955         * modules/open (Files): Add m4/mode_t.m4.
32956         * modules/openat (Files): Likewise.
32957         * modules/fcntl-safer (Files): Likewise.
32958         Suggested by Eric Blake.
32959
32960 2009-05-21  Pádraig Brady  <P@draigbrady.com>
32961
32962         * doc/glibc-functions/fallocate.texi: New file.
32963         * doc/gnulib.texi: Include it.
32964
32965 2009-05-21  Eric Blake  <ebb9@byu.net>
32966             Bruno Haible  <bruno@clisp.org>
32967
32968         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
32969         invocations.
32970         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32971
32972 2009-05-21  Eric Blake  <ebb9@byu.net>
32973             Bruno Haible  <bruno@clisp.org>
32974
32975         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
32976         include_next. Fix of 2008-11-20 commit.
32977         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
32978         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
32979         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
32980         NEXT_MATH_H.
32981         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
32982         instead of NEXT_MATH_H.
32983
32984 2009-05-21  Bruno Haible  <bruno@clisp.org>
32985
32986         Avoid redefinition warnings for SIZE_MAX.
32987         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
32988         Reported by Simon Josefsson.
32989
32990 2009-05-21  Bruno Haible  <bruno@clisp.org>
32991
32992         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
32993         AC_CACHE_VAL.
32994
32995 2009-05-20  Bruno Haible  <bruno@clisp.org>
32996
32997         Make zeroptr.h work on mingw.
32998         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
32999         mprotect.
33000         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
33001         * modules/memchr2-tests (configure.ac): Likewise.
33002         * modules/memcmp-tests (configure.ac): Likewise.
33003         * modules/memmem-tests (configure.ac): Likewise.
33004         * modules/memrchr-tests (configure.ac): Likewise.
33005         Reported by Simon Josefsson.
33006
33007 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33008
33009         * tests/test-glob.c: Include string.h for strcmp prototype.
33010
33011 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33012
33013         * modules/getdelim (Depends-on): Add explicit stdint, although it
33014         was implicitly already pulled in via realloc-posix.
33015         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
33016
33017 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33018
33019         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
33020         G. Christensen" <tgc@jupiterrise.com>.
33021         * m4/sys_socket_h.m4: Check for sa_family_t.
33022         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
33023         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
33024         * tests/test-sys_socket.c: Check that sa_family_t works.
33025
33026 2009-05-18  Eric Blake  <ebb9@byu.net>
33027
33028         maint.mk: allow gnulib_dir in VPATH build
33029         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
33030
33031 2009-05-15  Jim Meyering  <meyering@redhat.com>
33032
33033         maint.mk: Give gnulib_dir a default definition.
33034         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
33035         Thus, most packages no longer need to specify this variable in cfg.mk
33036
33037 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
33038
33039         rename.m4: fix typos that would make non-mingw cross-configure fail
33040         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
33041
33042 2009-05-13  Eric Blake  <ebb9@byu.net>
33043
33044         mmap-anon: avoid out-of-order autoconf expansion
33045         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
33046         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
33047         * modules/memchr-tests (Depends-on): Add extensions.
33048         * modules/memchr2-tests (Depends-on): Add extensions.
33049         * modules/memcmp-tests (Depends-on): Add extensions.
33050         * modules/memmem-tests (Depends-on): Add extensions.
33051         * modules/memrchr-tests (Depends-on): Add extensions.
33052
33053 2009-05-13  Bruno Haible  <bruno@clisp.org>
33054
33055         Make some tests ISO C 99 compliant.
33056         * tests/zerosize-ptr.h: New file.
33057         * tests/test-memchr.c: Include zerosize-ptr.h.
33058         (main): Use a zero-size object pointer instead of NULL.
33059         * tests/test-memchr2.c: Include zerosize-ptr.h.
33060         (main): Use a zero-size object pointer instead of NULL.
33061         * tests/test-memcmp.c: Include zerosize-ptr.h.
33062         (main): Use a zero-size object pointer instead of NULL.
33063         * tests/test-memmem.c: Include zerosize-ptr.h.
33064         (main): Use a zero-size object pointer instead of NULL.
33065         * tests/test-memrchr.c: Include zerosize-ptr.h.
33066         (main): Use a zero-size object pointer instead of NULL.
33067         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
33068         m4/mmap-anon.m4.
33069         (Depends-on): Add getpagesize.
33070         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33071         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
33072         m4/mmap-anon.m4.
33073         (Depends-on): Add getpagesize.
33074         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33075         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
33076         m4/mmap-anon.m4.
33077         (Depends-on): Add getpagesize.
33078         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33079         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
33080         m4/mmap-anon.m4.
33081         (Depends-on): Add getpagesize.
33082         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33083         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
33084         m4/mmap-anon.m4.
33085         (Depends-on): Add getpagesize.
33086         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33087
33088 2009-05-12  Bruno Haible  <bruno@clisp.org>
33089
33090         Tests for module 'alignof'.
33091         * modules/alignof-tests: New file.
33092         * tests/test-alignof.c: New file.
33093
33094 2009-05-12  Bruno Haible  <bruno@clisp.org>
33095
33096         Fix alignof macro.
33097         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
33098         vendor compilers that are always correct.
33099
33100 2009-05-12  Bruno Haible  <bruno@clisp.org>
33101
33102         Make the MAP_ANONYMOUS detection work on HP-UX 11.
33103         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
33104         not whether its fully works.
33105
33106 2009-05-12  Bruno Haible  <bruno@clisp.org>
33107
33108         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
33109
33110 2009-05-12  Jim Meyering  <meyering@redhat.com>
33111
33112         * top/maint.mk: Adjust backslash alignment.
33113
33114 2009-05-11  Simon Josefsson  <simon@josefsson.org>
33115
33116         * top/maint.mk: Make $(srcdir)/build-aux configurable.
33117
33118 2009-05-11  Eric Blake  <ebb9@byu.net>
33119
33120         argp: avoid undefined behavior
33121         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
33122         macros.
33123
33124 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33125
33126         * tests/test-vc-list-files-git.sh: Do git config of user.email and
33127         user.name to prevent git commit from complaining.
33128
33129 2009-05-10  Bruno Haible  <bruno@clisp.org>
33130
33131         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
33132         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
33133         it rewrites every file name only once.
33134         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
33135
33136 2009-05-08  Bruno Haible  <bruno@clisp.org>
33137
33138         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
33139         instead of 'max'.
33140
33141 2009-05-08  Simon Josefsson  <simon@josefsson.org>
33142
33143         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
33144         sockaddr_storage test.
33145
33146 2009-05-07  Simon Josefsson  <simon@josefsson.org>
33147
33148         * modules/sys_socket (Makefile.am): Substitute
33149         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
33150         * m4/sys_socket_h.m4: Check for sockaddr_storage.
33151         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
33152         * tests/test-sys_socket.c: Check sockaddr_storage.
33153
33154 2009-05-08  Bruno Haible  <bruno@clisp.org>
33155
33156         New module 'alignof'.
33157         * lib/alignof.h: New file.
33158         * modules/alignof: New file.
33159
33160 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33161             Bruno Haible  <bruno@clisp.org>
33162
33163         Fix test-file-has-acl on FreeBSD.
33164         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
33165         mask is implicitly added.
33166         * tests/test-file-has-acl.c: Include <signal.h>.
33167         (main): Terminate the test after 5 seconds.
33168         * modules/acl-tests (configure.ac): Check for alarm function.
33169
33170 2009-05-04  Bruno Haible  <bruno@clisp.org>
33171
33172         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
33173         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
33174         * modules/errno (configure.ac): Drop AC_REQUIRE.
33175         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
33176         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
33177
33178 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33179
33180         * modules/glob-tests: New module.
33181         * tests/test-glob.c: Add.
33182
33183 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33184
33185         * modules/fnmatch-tests: New module.
33186         * tests/test-fnmatch.c: Add.
33187
33188 2009-05-04  Eric Blake  <ebb9@byu.net>
33189
33190         maint: make the new no-submodule-changes rule VPATH-safe
33191         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
33192
33193 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33194             Bruno Haible  <bruno@clisp.org>
33195
33196         acl: Fix infinite loop on FreeBSD.
33197         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
33198         of return value from acl_get_entry.
33199         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
33200         Likewise.
33201
33202 2009-05-03  Bruno Haible  <bruno@clisp.org>
33203
33204         * lib/acl-internal.h (acl_entries): Clarify return value.
33205         * lib/acl_entries.c (acl_entries): Likewise.
33206
33207 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33208
33209         Bug fix in acl module.
33210         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
33211
33212 2009-05-03  Bruno Haible  <bruno@clisp.org>
33213
33214         Create gperf-generated file in the source dir, not in the build dir.
33215         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
33216         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
33217         * modules/unicase/locale-language (unicase/locale-languages.h):
33218         Likewise.
33219         * modules/unicase/special-casing (unicase/special-casing-table.h):
33220         Likewise.
33221         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
33222         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
33223         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
33224         Reported by Ralf Wildenhues.
33225
33226 2009-05-03  Bruno Haible  <bruno@clisp.org>
33227
33228         * modules/fnmatch (Description, configure.ac): Taken from
33229         fnmatch-posix.
33230         * modules/fnmatch-posix: Turn into a symbolic reference to the
33231         'fnmatch' module, and deprecate.
33232         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
33233
33234 2009-05-03  Bruno Haible  <bruno@clisp.org>
33235
33236         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
33237         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
33238         Reported by Ralf Wildenhues.
33239
33240 2009-05-04  Simon Josefsson  <simon@josefsson.org>
33241
33242         * m4/fnmatch.m4: Fix fnmatch re-define.
33243
33244 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
33245
33246         priv-set: new module and tests; adapt write-any-file
33247         * lib/priv-set.c: New file.
33248         * lib/priv-set.h: New file.
33249         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
33250         * lib/write-any-file.c: Simplify by using priv-set module.
33251         * m4/priv-set.m4: New file.
33252         * modules/priv-set: New file.
33253         * modules/unlinkdir: Add dependency on priv-set module.
33254         * modules/write-any-file: Likewise.
33255
33256         Tests for module 'priv-set'.
33257         * modules/priv-set-tests: New file.
33258         * tests/test-priv-set.c: New file.
33259
33260 2009-05-03  Jim Meyering  <meyering@redhat.com>
33261             Bruno Haible  <bruno@clisp.org>
33262
33263         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
33264         use the converted UTF-8 variant of the name instead.
33265
33266 2009-05-03  Jim Meyering  <meyering@redhat.com>
33267
33268         tests: tighten some getdate tests
33269         * tests/test-getdate.c (main): Tighten tests: require equality,
33270         not just greater than.  Set TZ envvar to UTC0.
33271
33272 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33273
33274         getdate: correctly interpret "next monday" when run on a Monday
33275         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
33276         that e.g., "next tues" (when run on a tuesday) results in a date
33277         that is one week in the future, and not today's date.
33278         I.e., add a week when the wday is the same as the current one.
33279         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
33280         and earlier by Martin Bernreuther and Jan Minář.
33281         * tests/test-getdate.c (main): Check that "next DAY" is always in
33282         the future and that "last DAY" is always in the past.
33283
33284 2009-05-02  Jim Meyering  <meyering@redhat.com>
33285
33286         build: ensure that a release build fails when a submodule is unclean
33287         * top/maint.mk (no-submodule-changes): New rule.
33288         (alpha beta major): Depend on it.
33289
33290 2009-05-02  Bruno Haible  <bruno@clisp.org>
33291
33292         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
33293         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
33294         shell variable gl_fnmatch_required to detect which variant is
33295         requested.
33296         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
33297         gl_FUNC_FNMATCH_POSIX.
33298         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
33299         exclude fnmatch-posix.
33300
33301 2009-05-02  Bruno Haible  <bruno@clisp.org>
33302
33303         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
33304         * modules/mbsrtowcs (License): Change to LGPLv2+.
33305         * modules/strnlen1 (License): Likewise.
33306         Reported by Simon Josefsson.
33307
33308 2009-05-02  Bruno Haible  <bruno@clisp.org>
33309
33310         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33311         "cross".
33312         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33313         gnulib-tool was called with option --source-base=lib.
33314
33315 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33316
33317         Use automake *-local hooks without commands, for extensibility.
33318         * modules/localcharset (Makefile.am): Rename install-exec-local
33319         rule to install-exec-localcharset, and make it a prerequisite of
33320         install-exec-local.  Likewise, rename the uninstall-local rule to
33321         uninstall-localcharset, and make it a prerequisite of the former.
33322
33323 2009-05-01  Bruno Haible  <bruno@clisp.org>
33324
33325         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33326         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33327         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33328         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33329         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33330         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33331         m4/locale-zh.m4, m4/codeset.m4.
33332
33333         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33334         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33335         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33336         m4/locale-zh.m4.
33337
33338         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33339         REPLACE_WCRTOMB if mbstate_t must be replaced.
33340         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33341         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33342
33343 2009-05-01  Bruno Haible  <bruno@clisp.org>
33344
33345         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33346         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33347         dngettext, dcngettext, textdomain, bindtextdomain,
33348         bind_textdomain_codeset): Undefine before redefining.
33349
33350 2009-04-30  Bruno Haible  <bruno@clisp.org>
33351
33352         Fix bug introduced on 2009-04-25.
33353         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33354         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33355         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33356         is defined.
33357         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33358         is defined.
33359         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33360         is defined.
33361         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33362
33363 2009-04-28  Bruno Haible  <bruno@clisp.org>
33364
33365         Comment tweaks.
33366         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33367         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33368         * lib/unicase.h (u*_casexfrm): Likewise.
33369         Reported by Paolo Bonzini.
33370
33371 2009-04-28  Bruno Haible  <bruno@clisp.org>
33372
33373         Fix a compilation error.
33374         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33375         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33376         Reported by Jim Meyering.
33377
33378 2009-04-27  Bruno Haible  <bruno@clisp.org>
33379
33380         New module 'libunistring'.
33381         * modules/libunistring: New file.
33382         * m4/libunistring.m4: New file.
33383         * MODULES.html.sh (Unicode string functions): Add it.
33384
33385 2009-04-27  Eric Blake  <ebb9@byu.net>
33386
33387         maint.mk: allow package-specific header to provide <config.h>
33388         * top/maint.mk (sc_require_config_h): New variable.
33389         (sc_require_config_h, sc_require_config_h_first): Use it.
33390
33391 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33392
33393         * top/maint.mk (sc_avoid_if_before_free): Except
33394         useless-if-before-free script.
33395
33396 2009-04-27  Eric Blake  <ebb9@byu.net>
33397
33398         maintainer-makefile: depend on all required helper scripts
33399         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33400         useless-if-before-free.
33401         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33402         version, rather than assuming gnulib checkout is available.
33403         Reported by Simen Josefsson.
33404
33405 2009-04-26  Bruno Haible  <bruno@clisp.org>
33406
33407         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33408         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33409         "../" or "..".
33410
33411 2009-04-26  Bruno Haible  <bruno@clisp.org>
33412
33413         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33414         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33415         AC_LIB_HAVE_LINKFLAGS.
33416
33417 2009-04-26  Bruno Haible  <bruno@clisp.org>
33418
33419         Simplify calling convention of u*_conv_from_encoding.
33420         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33421         u32_conv_from_encoding): Expect a resultbuf argument and return the
33422         result directly as a pointer.
33423         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33424         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33425         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33426         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33427         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33428         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33429         Update.
33430         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33431         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33432         * lib/vasnprintf.c (VASNPRINTF): Update.
33433         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33434         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33435         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33436         * NEWS: Mention the change.
33437
33438 2009-04-26  Bruno Haible  <bruno@clisp.org>
33439
33440         Simplify calling convention of u*_conv_to_encoding.
33441         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33442         u32_conv_to_encoding): Expect a resultbuf argument and return the
33443         result directly as a pointer.
33444         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33445         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33446         freeing scaled_offsets if mem_iconveha failed.
33447         * lib/unicase/u-casexfrm.h (FUNC): Update.
33448         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33449         * lib/vasnprintf.c (VASNPRINTF): Update.
33450         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33451         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33452         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33453         * NEWS: Mention the change.
33454
33455 2009-04-26  Bruno Haible  <bruno@clisp.org>
33456
33457         Avoid test failures on AIX and OSF/1.
33458         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33459         malloc(0).
33460         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33461         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33462         Likewise.
33463         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33464         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33465         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33466         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33467         * doc/posix-functions/malloc.texi: Document the portability problem
33468         related to malloc(0).
33469
33470 2009-04-26  Bruno Haible  <bruno@clisp.org>
33471
33472         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33473         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33474         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33475
33476 2009-04-25  Bruno Haible  <bruno@clisp.org>
33477
33478         Avoid link error when creating a namespace clean library.
33479         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33480         as macro with arguments if already defined as an alias.
33481         * lib/signbitf.c (gl_signbitf): Don't undefine.
33482         * lib/signbitd.c (gl_signbitd): Don't undefine.
33483         * lib/signbitl.c (gl_signbitl): Don't undefine.
33484
33485 2009-04-25  Jim Meyering  <meyering@redhat.com>
33486
33487         vc-list-files: fix another quoting bug
33488         * build-aux/vc-list-files: Avoid sed backslash expansion
33489         of pathological directory names.
33490
33491 2009-04-25  Eric Blake  <ebb9@byu.net>
33492
33493         vc-list-files: fix shell quoting error
33494         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33495         timestamp.
33496
33497 2009-04-25  Jim Meyering  <meyering@redhat.com>
33498
33499         vc-list-files: restore lost functionality with subdir argument
33500         * build-aux/vc-list-files: When given a non-"." sub-directory
33501         argument, substitute the $dir/ prefix back onto each resulting name.
33502         Otherwise, coreutils' root_tests check would fail.
33503
33504 2009-04-24  Eric Blake  <ebb9@byu.net>
33505
33506         vc-list-files: ignore git symlinks
33507         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33508         than ls-files, to ignore git symlinks.
33509
33510         maint.mk: import improvements from m4
33511         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33512         (move_if_change): Delete unused macro.
33513         (news-date-check, vc-diff-check): Support VPATH builds.
33514         (announcement): Likewise.  Split --bootstrap-tools list...
33515         (boostrap-tools): ...into separate list, which can be overridden
33516         in cfg.mk.
33517         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33518         requiring dependency on useless-if-before-free module.
33519         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33520         Support VPATH builds.
33521
33522 2009-04-24  Jim Meyering  <meyering@redhat.com>
33523
33524         maint.mk: remove coreutils-specific rules and variables
33525         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33526         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
33527         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
33528
33529         maint.mk: remove obsolete rule
33530         * top/maint.mk (rel-check): Remove rule.
33531         (WGET, WGETFLAGS): Remove now-unused variables.
33532
33533 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33534
33535         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
33536         consistency.
33537
33538         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
33539         '$(PATH_SEPARATOR)' instead of ':'.
33540
33541 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33542
33543         * lib/getopt1.c (main): Use 'const' for static array.
33544
33545 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33546
33547         * top/maint.mk: Sync with coreutils.
33548         * NEWS: Explain incompatibilities.
33549
33550 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33551             Bruno Haible  <bruno@clisp.org>
33552
33553         Fix cross-compilation results.
33554         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
33555         statement, as third argument of AC_TRY_RUN.
33556         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
33557         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
33558         Likewise.
33559         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
33560         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
33561         Likewise.
33562         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33563         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
33564         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
33565
33566 2009-04-20  Bruno Haible  <bruno@clisp.org>
33567
33568         Avoid test failure on mingw.
33569         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
33570
33571 2009-04-20  Bruno Haible  <bruno@clisp.org>
33572
33573         Avoid compilation error on mingw.
33574         * modules/localename-tests (Depends-on): Add locale.
33575
33576 2009-04-19  Bruno Haible  <bruno@clisp.org>
33577
33578         Support for building a shared library on Windows platforms.
33579         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
33580         (main): Test the presence of UNINORM_NFC here.
33581         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
33582         (main): Test the presence of UNINORM_NFD here.
33583         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
33584         (main): Test the presence of UNINORM_NFKC here.
33585         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
33586         (main): Test the presence of UNINORM_NFKD here.
33587
33588 2009-04-19  Bruno Haible  <bruno@clisp.org>
33589
33590         Avoid a compiler warning.
33591         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
33592         Change type of variable 'sequence'.
33593
33594 2009-04-19  Bruno Haible  <bruno@clisp.org>
33595
33596         * modules/configmake (Makefile.am): When the contents of configmake.h
33597         does not change, arrange to preserve its modification time.
33598
33599 2009-04-17  Simon Josefsson  <simon@josefsson.org>
33600
33601         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
33602         gettext domain.
33603
33604 2009-04-16  Jim Meyering  <meyering@redhat.com>
33605
33606         useless-if-before-free: improve conversion code
33607         * build-aux/useless-if-before-free: Adjust code-in-comment to match
33608         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
33609
33610 2009-04-14  Bruno Haible  <bruno@clisp.org>
33611
33612         * modules/fcntl (Depends-on): Add extensions.
33613         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
33614
33615 2009-04-12  Ben Pfaff  <blp@gnu.org>
33616
33617         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33618         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33619
33620 2009-03-20  Ben Pfaff  <blp@gnu.org>
33621
33622         Make rename replace existing destinations on Windows.
33623         * m4/rename.m4: Add test for Mingw.
33624         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33625         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33626         * doc/posix-functions/rename.texi: Document.
33627
33628 2009-04-10  Bruno Haible  <bruno@clisp.org>
33629
33630         New include file "iconveh.h".
33631         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33632         * lib/striconveh.h: Include it.
33633         (enum iconv_ilseq_handler): Remove definition.
33634         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33635         striconveh.h.
33636         * lib/striconveha.c: Include striconveh.h.
33637         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33638         * modules/striconveh (Files): Add lib/iconveh.h.
33639         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33640         lib/striconveh.h.
33641
33642 2009-04-10  Bruno Haible  <bruno@clisp.org>
33643
33644         * lib/uniconv.h: Update comment.
33645
33646 2009-04-10  Bruno Haible  <bruno@clisp.org>
33647
33648         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33649         always.
33650         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33651         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33652         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33653         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33654         "unistring-notinline.h", so that the function gets defined always.
33655         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33656         * lib/unistr/u8-uctomb.c: Likewise.
33657         * lib/unistr/u16-mbtouc.c: Likewise.
33658         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33659         * lib/unistr/u16-uctomb.c: Likewise.
33660         * lib/unistr/u32-mbtouc.c: Likewise.
33661         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33662         * lib/unistr/u32-uctomb.c: Likewise.
33663
33664 2009-04-10  Bruno Haible  <bruno@clisp.org>
33665
33666         Mark 'utime' obsolete.
33667         * modules/utime (Status, Notice): New sections.
33668         Suggested by Jim Meyering.
33669
33670         Fix cross-compile guess for utime test.
33671         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33672         autoconf.
33673         * doc/posix-functions/utime.texi: Give more precisions.
33674         Reported by Jan <ipif@ymail.com>.
33675
33676 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33677
33678         filevercmp: correct today's change
33679         * lib/filevercmp.c: Also handle coreutils' test inputs.
33680         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33681
33682         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33683         for reporting it.
33684         * lib/filevercmp.c: Special handle for "", "." and "..".
33685         * tests/test-filevercmp.c: Enlarge the set suite.
33686
33687 2009-04-07  Jim Meyering  <meyering@redhat.com>
33688
33689         useless-if-before-free: show how to remove braced useless free, too
33690         * build-aux/useless-if-before-free: still only in a comment, though.
33691
33692 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
33693
33694         maint.mk: import changes to syntax-check macros from coreutils
33695         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
33696         Use them in the relevant macros.
33697
33698 2009-04-06  Bruno Haible  <bruno@clisp.org>
33699
33700         Fix unportable use of bit-fields.
33701         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
33702         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
33703         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
33704
33705 2009-04-06  Bruno Haible  <bruno@clisp.org>
33706
33707         Avoid test failures on AIX and OSF/1.
33708         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
33709         that malloc(0) = NULL.
33710         * tests/unicase/test-u8-tolower.c (check): Likewise.
33711         * tests/unicase/test-u8-totitle.c (check): Likewise.
33712         * tests/unicase/test-u8-toupper.c (check): Likewise.
33713         * tests/unicase/test-u16-casefold.c (check): Likewise.
33714         * tests/unicase/test-u16-tolower.c (check): Likewise.
33715         * tests/unicase/test-u16-totitle.c (check): Likewise.
33716         * tests/unicase/test-u16-toupper.c (check): Likewise.
33717         * tests/unicase/test-u32-casefold.c (check): Likewise.
33718         * tests/unicase/test-u32-tolower.c (check): Likewise.
33719         * tests/unicase/test-u32-totitle.c (check): Likewise.
33720         * tests/unicase/test-u32-toupper.c (check): Likewise.
33721         * tests/uninorm/test-u8-nfc.c (check): Likewise.
33722         * tests/uninorm/test-u8-nfd.c (check): Likewise.
33723         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
33724         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
33725         * tests/uninorm/test-u16-nfc.c (check): Likewise.
33726         * tests/uninorm/test-u16-nfd.c (check): Likewise.
33727         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
33728         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
33729         * tests/uninorm/test-u32-nfc.c (check): Likewise.
33730         * tests/uninorm/test-u32-nfd.c (check): Likewise.
33731         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
33732         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
33733
33734 2009-04-05  Bruno Haible  <bruno@clisp.org>
33735
33736         Work around an autoconf limitation.
33737         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
33738         comment line if it would be longer than 3 KB.
33739
33740 2009-04-05  Bruno Haible  <bruno@clisp.org>
33741
33742         Avoid test failure with libiconv-1.13.
33743         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
33744         of the expected test results.
33745
33746 2009-04-05  Bruno Haible  <bruno@clisp.org>
33747
33748         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
33749         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
33750         that it should be installed.
33751
33752 2009-04-05  Bruno Haible  <bruno@clisp.org>
33753
33754         * gnulib-tool: New option --copy-file.
33755         (func_usage): Document it.
33756         (func_dest_tmpfilename): Moved out of func_import.
33757         (func_add_file, func_update_file): New functions, extracted from
33758         func_import.
33759         (func_import): Update.
33760
33761 2009-04-05  Karl Berry  <karl@gnu.org>
33762
33763         * README: prominently mention gnulib-tool.
33764         Rearrange sections so getting the code is near the top.
33765
33766 2009-04-05  Bruno Haible  <bruno@clisp.org>
33767
33768         * lib/unicase.h: Mention u*_cmp2.
33769         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33770         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
33771         * lib/unicase/ulc-casecmp.c: Likewise.
33772         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
33773         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
33774         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
33775         unistr/u8-cmp.
33776         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
33777         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
33778         unistr/u16-cmp.
33779         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
33780         unistr/u32-cmp.
33781
33782         * lib/uninorm.h: Mention u*_cmp2.
33783         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33784         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
33785         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
33786         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
33787         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
33788         unistr/u8-cmp.
33789         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
33790         unistr/u16-cmp.
33791         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
33792         unistr/u32-cmp.
33793
33794         New module 'unistr/u32-cmp2'.
33795         * lib/unistr/u32-cmp2.c: New file.
33796         * modules/unistr/u32-cmp2: New file.
33797
33798         New module 'unistr/u16-cmp2'.
33799         * lib/unistr/u16-cmp2.c: New file.
33800         * modules/unistr/u16-cmp2: New file.
33801
33802         New module 'unistr/u8-cmp2'.
33803         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
33804         * lib/unistr/u8-cmp2.c: New file.
33805         * lib/unistr/u-cmp2.h: New file.
33806         * modules/unistr/u8-cmp2: New file.
33807
33808 2009-04-05  Bruno Haible  <bruno@clisp.org>
33809
33810         * lib/unictype.h (uc_property_is_valid): New macro.
33811         * tests/unictype/test-pr_byname.c (main): Use it.
33812
33813         * lib/unistr.h: Doc fixes.
33814         * lib/uniconv.h: Doc fixes.
33815         * lib/unictype.h: Doc fixes.
33816
33817 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
33818
33819         Port coreutils 7.2 to Solaris 8.
33820
33821         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
33822         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
33823         for Solaris 8.  This is a bit of a hack, as it means it's the
33824         caller's responsibility to add -lnsl if needed, but most likely it
33825         won't be needed since only getaddrinfo uses this and getaddrinfo
33826         isn't needed on Solaris 8.
33827
33828         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
33829         problem to Solaris 8 encountered with coreutils 7.2, which
33830         resulted in a message "fnmatch.c:292: warning: passing argument 4
33831         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
33832         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
33833
33834 2009-04-03  Simon Josefsson  <simon@josefsson.org>
33835
33836         * m4/ld-version-script.m4: Add FIXME comment.
33837
33838 2009-04-02  Simon Josefsson  <simon@josefsson.org>
33839
33840         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
33841         SOVERSION variable.
33842
33843 2009-04-02  Bruno Haible  <bruno@clisp.org>
33844
33845         * Makefile (info, html, dvi, pdf): Combine the rules.
33846         Suggested by Jim Meyering.
33847
33848 2009-04-01  Bruno Haible  <bruno@clisp.org>
33849
33850         * Makefile (info, html, dvi, pdf): New targets.
33851         Reported by Reuben Thomas <rrt@sc3d.org>.
33852
33853 2009-04-01  Bruno Haible  <bruno@clisp.org>
33854
33855         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
33856         can be put into PATH.
33857         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
33858
33859 2009-04-01  Bruno Haible  <bruno@clisp.org>
33860
33861         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
33862
33863 2009-04-01  Bruno Haible  <bruno@clisp.org>
33864
33865         Rename module 'visibility'.
33866         * modules/lib-symbol-visibility: Renamed from modules/visibility.
33867         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
33868         * doc/gnulib.texi: Update.
33869         * MODULES.html.sh (Misc): Update.
33870         * NEWS: Mention the change.
33871
33872 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33873
33874         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
33875         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
33876         Eric Blake <ebb9@byu.net> for review.
33877         * MODULES.html.sh: Add lib-msvc-compat.
33878         * doc/gnulib.texi: Link to new section.
33879         * m4/ld-output-def.m4: New file.
33880         * doc/ld-output-def.texi: New file.
33881
33882 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33883
33884         Rename ld-version-script to lib-symbol-versions.  Suggested by
33885         Bruno Haible <bruno@clisp.org>.
33886         * modules/ld-version-script: Renamed to lib-symbol-versions.
33887         * doc/ld-version-script.texi: Fix module name.
33888         * MODULES.html.sh: Add lib-symbol-versions.
33889
33890 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33891
33892         * modules/u64-tests: New file.
33893         * tests/test-u64.c: New file.
33894
33895 2009-03-04  Simon Josefsson  <simon@josefsson.org>
33896
33897         * MODULES.html.sh: Mention u64.
33898         * modules/u64: New module.
33899         * modules/crypto/sha512: Depend on u64 module instead of providing
33900         u64.h.
33901
33902 2009-03-27  Eric Blake  <ebb9@byu.net>
33903
33904         test-strerror: make debugging EAI_SYSTEM easier
33905         * modules/getaddrinfo-tests (Depends-on): Add strerror.
33906         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
33907         failure was EAI_SYSTEM.
33908
33909 2009-03-25  Bruno Haible  <bruno@clisp.org>
33910
33911         Fix a problem with --enable-relocatable on Solaris 7.
33912         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
33913         since 2008-02-24.
33914
33915 2009-03-25  Eric Blake  <ebb9@byu.net>
33916
33917         test-sockets: avoid gcc warning
33918         * tests/test-sockets.c (main): Silence compiler warning.
33919
33920 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33921
33922         New modules nproc, pthread, contributed by Glen Lenker.
33923
33924         * MODULES.html.sh: Add pthread, nproc.
33925         * lib/nproc.c: New file.
33926         * lib/nproc.h: New file.
33927         * lib/pthread.in.h: New file.
33928         * m4/pthread.m4: New file.
33929         * modules/nproc: New file.
33930         * modules/pthread: New file.
33931
33932 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33933
33934         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
33935         New variable.
33936
33937 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
33938
33939         filevercmp: handle simple~ and numbered.~3~ backup suffixes
33940         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
33941         * tests/test-filevercmp.c: Add tests for backup suffixes.
33942
33943 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33944
33945         * modules/stdlib (Depends-on): Add stdint, needed when defining
33946         struct random_data on, for example, HP-UX 10.20.  Reported by
33947         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33948
33949 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33950
33951         * lib/readline.c (readline): Call fflush on stdout after printing
33952         prompt.
33953
33954 2009-03-20  Bruno Haible  <bruno@clisp.org>
33955
33956         Remove dependency from 'close' module to -lws2_32 on native Windows.
33957         * lib/close-hook.h: New file.
33958         * lib/close-hook.c: New file.
33959         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
33960         w32sock.h.
33961         (_gl_close_fd_maybe_socket): Remove function.
33962         (rpl_close): Invoke execute_all_close_hooks instead of
33963         _gl_close_fd_maybe_socket.
33964         * lib/sockets.c: Include close-hook.h, w32sock.h.
33965         (close_fd_maybe_socket): New function, essentially from lib/close.c.
33966         (close_sockets_hook): New variable.
33967         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
33968         (gl_sockets_cleanup): Unregister it.
33969         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
33970         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
33971         * modules/close-hook: New file.
33972         * modules/close (Files): Remove lib/w32sock.h.
33973         (Depends-on): Add close-hook.
33974         (Link): Remove section.
33975         * modules/sockets (Files): Add lib/w32sock.h.
33976         (Depends-on): Add close-hook.
33977         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
33978         invocation.
33979         * NEWS: Mention that LIB_CLOSE is gone.
33980
33981 2009-03-23  Eric Blake  <ebb9@byu.net>
33982
33983         signal-tests: test previous patch
33984         * tests/test-signal.c: New file.
33985         * modules/signal-tests: Likewise.
33986
33987         signal.h: always support 'volatile sig_atomic_t'
33988         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
33989         (gl_SIGNAL_H_DEFAULTS): Add a default.
33990         * modules/signal (Makefile.am): Substitute if needed.
33991         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
33992         users can blindly add volatile.
33993         * doc/posix-headers/signal.texi (signal.h): Document it.
33994         Reported by Matthew Woehlke.
33995
33996 2009-03-23  Jim Meyering  <meyering@redhat.com>
33997
33998         pathmax: PATH_MAX: use pathconf only when available
33999         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
34000         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
34001         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
34002         This avoids a link failure in a PSP cross-compilation environment
34003         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
34004
34005         * lib/vasnprintf.c (divide): Fix typo in comment.
34006
34007 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34008
34009         * gnulib-tool (func_filter_filelist): Fix comment.
34010
34011 2009-03-20  Bruno Haible  <bruno@clisp.org>
34012
34013         Make sockets.h self-contained.
34014         * lib/sockets.c: Include sockets.h first.
34015         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
34016
34017 2009-03-19  Eric Blake  <ebb9@byu.net>
34018
34019         doc: mention more functions added in cygwin 1.7.0
34020         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
34021         addition.
34022         * doc/posix-functions/log2f.texi: Likewise.
34023
34024 2009-03-19  Jim Meyering  <meyering@redhat.com>
34025
34026         fsusage: avoid syntax error due to statement-before-declaration
34027         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
34028         after all declarations.  Reported by Matthew Woehlke in
34029         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
34030
34031 2009-03-18  Eric Blake  <ebb9@byu.net>
34032
34033         build-aux/compile: sync from automake
34034         * build-aux/compile: New file, from automake.
34035         * config/srclist.txt: Mention build-aux/compile.
34036
34037 2009-03-17  Bruno Haible  <bruno@clisp.org>
34038
34039         * lib/git-merge-changelog.c: Fix typo in comment.
34040         Reported by Reuben Thomas <rrt@sc3d.org>.
34041
34042 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
34043
34044         * m4/regex.m4: update and improve help for
34045         --without-included-regex.
34046
34047 2009-03-17  Simon Josefsson  <simon@josefsson.org>
34048
34049         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
34050         failure on missing include files.
34051
34052 2009-03-17  Eric Blake  <ebb9@byu.net>
34053
34054         doc: mention more functions added in cygwin 1.7.0
34055         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
34056         addition.
34057         * doc/posix-functions/fwscanf.texi: Likewise.
34058         * doc/posix-functions/swprintf.texi: Likewise.
34059         * doc/posix-functions/swscanf.texi: Likewise.
34060         * doc/posix-functions/vfwprintf.texi: Likewise.
34061         * doc/posix-functions/vfwscanf.texi: Likewise.
34062         * doc/posix-functions/vswprintf.texi: Likewise.
34063         * doc/posix-functions/vswscanf.texi: Likewise.
34064         * doc/posix-functions/vwprintf.texi: Likewise.
34065         * doc/posix-functions/vwscanf.texi: Likewise.
34066         * doc/posix-functions/wcscasecmp.texi: Likewise.
34067         * doc/posix-functions/wcsdup.texi: Likewise.
34068         * doc/posix-functions/wcsftime.texi: Likewise.
34069         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34070         * doc/posix-functions/wprintf.texi: Likewise.
34071         * doc/posix-functions/wscanf.texi: Likewise.
34072         * doc/glibc-functions/gethostbyname2.texi: Likewise.
34073
34074 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34075
34076         maint.mk: really add $(AM_MAKEFLAGS)
34077         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
34078         was inadvertently omitted in the last commit.
34079         Spotted by Bruno Haible.
34080
34081         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
34082         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
34083         $(AM_MAKEFLAGS)' rather than plain `make'.
34084
34085         gnulib-tool: execute $MAKE not make
34086         * gnulib-tool: Default $MAKE to 'make'.
34087         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
34088         than make.  Initialize $MAKE in the do-autobuild script.
34089
34090         gnulib-tool: use $MAKE not make in generated files
34091         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
34092         make, in generated files.  Initialize $MAKE in the do-autobuild
34093         script.
34094
34095         * top/GNUmakefile (_have-git-version-gen): Fix typo.
34096
34097         GNUmakefile: disable parallelism only for multiple, recursive targets
34098         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
34099         additions in the Makefile.
34100         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
34101         by Automake.
34102         (.NOTPARALLEL): Only disable parallel builds if multiple targets
34103         are listed on the command line and at least one of them is
34104         listed in $(ALL_RECURSIVE_TARGETS).
34105
34106 2009-03-14  Bruno Haible  <bruno@clisp.org>
34107
34108         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
34109         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
34110         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
34111         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
34112         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
34113         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
34114         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
34115         unistr/u8-uctomb.
34116         * modules/unistr/u8-strchr (Depends-on): Likewise.
34117         * modules/unistr/u8-strrchr (Depends-on): Likewise.
34118         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
34119         unistr/u16-uctomb.
34120         * modules/unistr/u16-strchr (Depends-on): Likewise.
34121         * modules/unistr/u16-strrchr (Depends-on): Likewise.
34122
34123 2009-03-12  Bruno Haible  <bruno@clisp.org>
34124
34125         Work around select() bug on Interix 3.5.
34126         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
34127         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
34128         * m4/select.m4: New file.
34129         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
34130         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
34131         * modules/select (Files): Add m4/select.m4.
34132         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
34133         * modules/nanosleep (Depends-on): Add select.
34134         * modules/poll (Depends-on): Likewise.
34135         * doc/posix-functions/select.texi: Mention the Interix bug.
34136         Reported by Markus Duft <mduft@gentoo.org>.
34137
34138         * lib/select.c: Renamed from lib/winsock-select.c.
34139         * modules/select (Files): Add lib/select.c, remove
34140         lib/winsock-select.c.
34141         (configure.ac): Update.
34142
34143 2009-03-12  Jim Meyering  <meyering@redhat.com>
34144
34145         avoid gcc warnings about unused macro definitions
34146         * lib/readtokens.c (STREQ): Remove unused definition.
34147         * lib/xmalloc.c (SIZE_MAX): Likewise.
34148         * lib/openat-die.c (N_): Likewise.
34149         * lib/mountlist.c (SIZE_MAX): Remove definition.
34150         Instead, include <stdint.h>.
34151         * lib/readutmp.c: Likewise.
34152         * modules/readutmp (Depends-on): Add stdint.
34153         * modules/mountlist (Depends-on): Add stdint.
34154         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
34155
34156 2009-03-10  Bruno Haible  <bruno@clisp.org>
34157
34158         Tests for module 'mbmemcasecoll'.
34159         * modules/mbmemcasecoll-tests: New file.
34160         * tests/test-mbmemcasecoll1.sh: New file.
34161         * tests/test-mbmemcasecoll2.sh: New file.
34162         * tests/test-mbmemcasecoll3.sh: New file.
34163         * tests/test-mbmemcasecoll.c: New file.
34164
34165         New module 'mbmemcasecoll'.
34166         * lib/mbmemcasecoll.h: New file.
34167         * lib/mbmemcasecoll.c: New file.
34168         * modules/mbmemcasecoll: New file.
34169
34170         * tests/test-mbmemcasecmp.h: New file, extracted from
34171         tests/test-mbmemcasecmp.c.
34172         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
34173         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
34174         (main): Update.
34175         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
34176
34177 2009-03-09  Bruno Haible  <bruno@clisp.org>
34178
34179         Tests for module 'mbmemcasecmp'.
34180         * modules/mbmemcasecmp-tests: New file.
34181         * tests/test-mbmemcasecmp1.sh: New file.
34182         * tests/test-mbmemcasecmp2.sh: New file.
34183         * tests/test-mbmemcasecmp3.sh: New file.
34184         * tests/test-mbmemcasecmp.c: New file.
34185
34186         New module 'mbmemcasecmp'.
34187         * lib/mbmemcasecmp.h: New file.
34188         * lib/mbmemcasecmp.c: New file.
34189         * modules/mbmemcasecmp: New file.
34190
34191 2009-03-09  Bruno Haible  <bruno@clisp.org>
34192
34193         Tests for module 'unicase/ulc-casecoll'.
34194         * modules/unicase/ulc-casecoll-tests: New file.
34195         * tests/unicase/test-ulc-casecoll1.sh: New file.
34196         * tests/unicase/test-ulc-casecoll2.sh: New file.
34197         * tests/unicase/test-ulc-casecoll.c: New file.
34198
34199         New module 'unicase/ulc-casecoll'.
34200         * lib/unicase.h (ulc_casecoll): New declaration.
34201         * lib/unicase/ulc-casecoll.c: New file.
34202         * modules/unicase/ulc-casecoll: New file.
34203
34204         New module 'unicase/ulc-casexfrm'.
34205         * lib/unicase.h (ulc_casexfrm): New declaration.
34206         * lib/unicase/ulc-casexfrm.c: New file.
34207         * modules/unicase/ulc-casexfrm: New file.
34208
34209 2009-03-09  Bruno Haible  <bruno@clisp.org>
34210
34211         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
34212         invocations.
34213
34214         * m4/mbscasecmp.m4: Remove file.
34215         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
34216         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
34217
34218         * m4/mbscasestr.m4: Remove file.
34219         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
34220         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
34221
34222         * m4/mbschr.m4: Remove file.
34223         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
34224         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
34225
34226         * m4/mbscspn.m4: Remove file.
34227         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
34228         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
34229
34230         * m4/mbslen.m4: Remove file.
34231         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
34232         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
34233
34234         * m4/mbsncasecmp.m4: Remove file.
34235         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
34236         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
34237
34238         * m4/mbsnlen.m4: Remove file.
34239         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
34240         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
34241
34242         * m4/mbspbrk.m4: Remove file.
34243         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
34244         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
34245
34246         * m4/mbspcasecmp.m4: Remove file.
34247         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
34248         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
34249
34250         * m4/mbsrchr.m4: Remove file.
34251         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
34252         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
34253
34254         * m4/mbssep.m4: Remove file.
34255         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
34256         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
34257
34258         * m4/mbsspn.m4: Remove file.
34259         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
34260         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
34261
34262         * m4/mbsstr.m4: Remove file.
34263         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
34264         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
34265
34266         * m4/mbstok_r.m4: Remove file.
34267         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
34268         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
34269
34270         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
34271
34272         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
34273         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
34274
34275         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
34276
34277 2009-03-08  Bruno Haible  <bruno@clisp.org>
34278
34279         Tests for module 'unicase/ulc-casecmp'.
34280         * modules/unicase/ulc-casecmp-tests: New file.
34281         * tests/unicase/test-ulc-casecmp1.sh: New file.
34282         * tests/unicase/test-ulc-casecmp2.sh: New file.
34283         * tests/unicase/test-ulc-casecmp.c: New file.
34284
34285         New module 'unicase/ulc-casecmp'.
34286         * lib/unicase.h (ulc_casecmp): New declaration.
34287         * lib/unicase/ulc-casecmp.c: New file.
34288         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
34289         'const SRC_UNIT *'.
34290         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
34291         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
34292         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
34293         * modules/unicase/ulc-casecmp: New file.
34294
34295         Tests for module 'unicase/u32-is-cased'.
34296         * modules/unicase/u32-is-cased-tests: New file.
34297         * tests/unicase/test-u32-is-cased.c: New file.
34298
34299         Tests for module 'unicase/u16-is-cased'.
34300         * modules/unicase/u16-is-cased-tests: New file.
34301         * tests/unicase/test-u16-is-cased.c: New file.
34302
34303         Tests for module 'unicase/u8-is-cased'.
34304         * modules/unicase/u8-is-cased-tests: New file.
34305         * tests/unicase/test-u8-is-cased.c: New file.
34306         * tests/unicase/test-is-cased.h: New file.
34307
34308         New module 'unicase/u32-is-cased'.
34309         * lib/unicase/u32-is-cased.c: New file.
34310         * modules/unicase/u32-is-cased: New file.
34311
34312         New module 'unicase/u16-is-cased'.
34313         * lib/unicase/u16-is-cased.c: New file.
34314         * modules/unicase/u16-is-cased: New file.
34315
34316         New module 'unicase/u8-is-cased'.
34317         * lib/unicase/u8-is-cased.c: New file.
34318         * lib/unicase/u-is-cased.h: New file.
34319         * modules/unicase/u8-is-cased: New file.
34320
34321         Tests for module 'unicase/u32-is-casefolded'.
34322         * modules/unicase/u32-is-casefolded-tests: New file.
34323         * tests/unicase/test-u32-is-casefolded.c: New file.
34324
34325         Tests for module 'unicase/u16-is-casefolded'.
34326         * modules/unicase/u16-is-casefolded-tests: New file.
34327         * tests/unicase/test-u16-is-casefolded.c: New file.
34328
34329         Tests for module 'unicase/u8-is-casefolded'.
34330         * modules/unicase/u8-is-casefolded-tests: New file.
34331         * tests/unicase/test-u8-is-casefolded.c: New file.
34332         * tests/unicase/test-is-casefolded.h: New file.
34333
34334         New module 'unicase/u32-is-casefolded'.
34335         * lib/unicase/u32-is-casefolded.c: New file.
34336         * modules/unicase/u32-is-casefolded: New file.
34337
34338         New module 'unicase/u16-is-casefolded'.
34339         * lib/unicase/u16-is-casefolded.c: New file.
34340         * modules/unicase/u16-is-casefolded: New file.
34341
34342         New module 'unicase/u8-is-casefolded'.
34343         * lib/unicase/u8-is-casefolded.c: New file.
34344         * modules/unicase/u8-is-casefolded: New file.
34345
34346         Tests for module 'unicase/u32-is-titlecase'.
34347         * modules/unicase/u32-is-titlecase-tests: New file.
34348         * tests/unicase/test-u32-is-titlecase.c: New file.
34349
34350         Tests for module 'unicase/u16-is-titlecase'.
34351         * modules/unicase/u16-is-titlecase-tests: New file.
34352         * tests/unicase/test-u16-is-titlecase.c: New file.
34353
34354         Tests for module 'unicase/u8-is-titlecase'.
34355         * modules/unicase/u8-is-titlecase-tests: New file.
34356         * tests/unicase/test-u8-is-titlecase.c: New file.
34357         * tests/unicase/test-is-titlecase.h: New file.
34358
34359         New module 'unicase/u32-is-titlecase'.
34360         * lib/unicase/u32-is-titlecase.c: New file.
34361         * modules/unicase/u32-is-titlecase: New file.
34362
34363         New module 'unicase/u16-is-titlecase'.
34364         * lib/unicase/u16-is-titlecase.c: New file.
34365         * modules/unicase/u16-is-titlecase: New file.
34366
34367         New module 'unicase/u8-is-titlecase'.
34368         * lib/unicase/u8-is-titlecase.c: New file.
34369         * modules/unicase/u8-is-titlecase: New file.
34370
34371         Tests for module 'unicase/u32-is-lowercase'.
34372         * modules/unicase/u32-is-lowercase-tests: New file.
34373         * tests/unicase/test-u32-is-lowercase.c: New file.
34374
34375         Tests for module 'unicase/u16-is-lowercase'.
34376         * modules/unicase/u16-is-lowercase-tests: New file.
34377         * tests/unicase/test-u16-is-lowercase.c: New file.
34378
34379         Tests for module 'unicase/u8-is-lowercase'.
34380         * modules/unicase/u8-is-lowercase-tests: New file.
34381         * tests/unicase/test-u8-is-lowercase.c: New file.
34382         * tests/unicase/test-is-lowercase.h: New file.
34383
34384         New module 'unicase/u32-is-lowercase'.
34385         * lib/unicase/u32-is-lowercase.c: New file.
34386         * modules/unicase/u32-is-lowercase: New file.
34387
34388         New module 'unicase/u16-is-lowercase'.
34389         * lib/unicase/u16-is-lowercase.c: New file.
34390         * modules/unicase/u16-is-lowercase: New file.
34391
34392         New module 'unicase/u8-is-lowercase'.
34393         * lib/unicase/u8-is-lowercase.c: New file.
34394         * modules/unicase/u8-is-lowercase: New file.
34395
34396         Tests for module 'unicase/u32-is-uppercase'.
34397         * modules/unicase/u32-is-uppercase-tests: New file.
34398         * tests/unicase/test-u32-is-uppercase.c: New file.
34399
34400         Tests for module 'unicase/u16-is-uppercase'.
34401         * modules/unicase/u16-is-uppercase-tests: New file.
34402         * tests/unicase/test-u16-is-uppercase.c: New file.
34403
34404         Tests for module 'unicase/u8-is-uppercase'.
34405         * modules/unicase/u8-is-uppercase-tests: New file.
34406         * tests/unicase/test-u8-is-uppercase.c: New file.
34407         * tests/unicase/test-is-uppercase.h: New file.
34408
34409         New module 'unicase/u32-is-uppercase'.
34410         * lib/unicase/u32-is-uppercase.c: New file.
34411         * modules/unicase/u32-is-uppercase: New file.
34412
34413         New module 'unicase/u16-is-uppercase'.
34414         * lib/unicase/u16-is-uppercase.c: New file.
34415         * modules/unicase/u16-is-uppercase: New file.
34416
34417         New module 'unicase/u8-is-uppercase'.
34418         * lib/unicase/u8-is-uppercase.c: New file.
34419         * modules/unicase/u8-is-uppercase: New file.
34420
34421         New module 'unicase/u32-is-invariant'.
34422         * lib/unicase/u32-is-invariant.c: New file.
34423         * modules/unicase/u32-is-invariant: New file.
34424
34425         New module 'unicase/u16-is-invariant'.
34426         * lib/unicase/u16-is-invariant.c: New file.
34427         * modules/unicase/u16-is-invariant: New file.
34428
34429         New module 'unicase/u8-is-invariant'.
34430         * lib/unicase/u8-is-invariant.c: New file.
34431         * lib/unicase/invariant.h: New file.
34432         * lib/unicase/u-is-invariant.h: New file.
34433         * modules/unicase/u8-is-invariant: New file.
34434
34435         Tests for module 'unicase/u32-casecoll'.
34436         * modules/unicase/u32-casecoll-tests: New file.
34437         * tests/unicase/test-u32-casecoll.c: New file.
34438
34439         Tests for module 'unicase/u16-casecoll'.
34440         * modules/unicase/u16-casecoll-tests: New file.
34441         * tests/unicase/test-u16-casecoll.c: New file.
34442
34443         Tests for module 'unicase/u8-casecoll'.
34444         * modules/unicase/u8-casecoll-tests: New file.
34445         * tests/unicase/test-u8-casecoll.c: New file.
34446
34447         New module 'unicase/u32-casecoll'.
34448         * lib/unicase/u32-casecoll.c: New file.
34449         * modules/unicase/u32-casecoll: New file.
34450
34451         New module 'unicase/u16-casecoll'.
34452         * lib/unicase/u16-casecoll.c: New file.
34453         * modules/unicase/u16-casecoll: New file.
34454
34455         New module 'unicase/u8-casecoll'.
34456         * lib/unicase/u8-casecoll.c: New file.
34457         * lib/unicase/u-casecoll.h: New file.
34458         * modules/unicase/u8-casecoll: New file.
34459
34460         New module 'unicase/u32-casexfrm'.
34461         * lib/unicase/u32-casexfrm.c: New file.
34462         * modules/unicase/u32-casexfrm: New file.
34463
34464         New module 'unicase/u16-casexfrm'.
34465         * lib/unicase/u16-casexfrm.c: New file.
34466         * modules/unicase/u16-casexfrm: New file.
34467
34468         New module 'unicase/u8-casexfrm'.
34469         * lib/unicase/u8-casexfrm.c: New file.
34470         * lib/unicase/u-casexfrm.h: New file.
34471         * modules/unicase/u8-casexfrm: New file.
34472
34473         Tests for module 'unicase/u32-casecmp'.
34474         * modules/unicase/u32-casecmp-tests: New file.
34475         * tests/unicase/test-u32-casecmp.c: New file.
34476
34477         Tests for module 'unicase/u16-casecmp'.
34478         * modules/unicase/u16-casecmp-tests: New file.
34479         * tests/unicase/test-u16-casecmp.c: New file.
34480
34481         Tests for module 'unicase/u8-casecmp'.
34482         * modules/unicase/u8-casecmp-tests: New file.
34483         * tests/unicase/test-u8-casecmp.c: New file.
34484         * tests/unicase/test-casecmp.h: New file.
34485
34486         New module 'unicase/u32-casecmp'.
34487         * lib/unicase/u32-casecmp.c: New file.
34488         * modules/unicase/u32-casecmp: New file.
34489
34490         New module 'unicase/u16-casecmp'.
34491         * lib/unicase/u16-casecmp.c: New file.
34492         * modules/unicase/u16-casecmp: New file.
34493
34494         New module 'unicase/u8-casecmp'.
34495         * lib/unicase/u8-casecmp.c: New file.
34496         * lib/unicase/u-casecmp.h: New file.
34497         * modules/unicase/u8-casecmp: New file.
34498
34499         Tests for module 'unicase/u32-casefold'.
34500         * modules/unicase/u32-casefold-tests: New file.
34501         * tests/unicase/test-u32-casefold.c: New file.
34502
34503         Tests for module 'unicase/u16-casefold'.
34504         * modules/unicase/u16-casefold-tests: New file.
34505         * tests/unicase/test-u16-casefold.c: New file.
34506
34507         Tests for module 'unicase/u8-casefold'.
34508         * modules/unicase/u8-casefold-tests: New file.
34509         * tests/unicase/test-u8-casefold.c: New file.
34510
34511         New module 'unicase/u32-casefold'.
34512         * lib/unicase/u32-casefold.c: New file.
34513         * modules/unicase/u32-casefold: New file.
34514
34515         New module 'unicase/u16-casefold'.
34516         * lib/unicase/u16-casefold.c: New file.
34517         * modules/unicase/u16-casefold: New file.
34518
34519         New module 'unicase/u8-casefold'.
34520         * lib/unicase/u8-casefold.c: New file.
34521         * lib/unicase/u-casefold.h: New file.
34522         * modules/unicase/u8-casefold: New file.
34523
34524         New module 'unicase/tocasefold'.
34525         * lib/unicase/casefold.h: New file.
34526         * lib/unicase/tocasefold.c: New file.
34527         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
34528         * modules/unicase/tocasefold: New file.
34529
34530         Tests for module 'unicase/u32-totitle'.
34531         * modules/unicase/u32-totitle-tests: New file.
34532         * tests/unicase/test-u32-totitle.c: New file.
34533
34534         Tests for module 'unicase/u16-totitle'.
34535         * modules/unicase/u16-totitle-tests: New file.
34536         * tests/unicase/test-u16-totitle.c: New file.
34537
34538         Tests for module 'unicase/u8-totitle'.
34539         * modules/unicase/u8-totitle-tests: New file.
34540         * tests/unicase/test-u8-totitle.c: New file.
34541
34542         New module 'unicase/u32-totitle'.
34543         * lib/unicase/u32-totitle.c: New file.
34544         * modules/unicase/u32-totitle: New file.
34545
34546         New module 'unicase/u16-totitle'.
34547         * lib/unicase/u16-totitle.c: New file.
34548         * modules/unicase/u16-totitle: New file.
34549
34550         New module 'unicase/u8-totitle'.
34551         * lib/unicase/u8-totitle.c: New file.
34552         * lib/unicase/u-totitle.h: New file.
34553         * modules/unicase/u8-totitle: New file.
34554
34555         Tests for module 'unicase/u32-tolower'.
34556         * modules/unicase/u32-tolower-tests: New file.
34557         * tests/unicase/test-u32-tolower.c: New file.
34558
34559         Tests for module 'unicase/u16-tolower'.
34560         * modules/unicase/u16-tolower-tests: New file.
34561         * tests/unicase/test-u16-tolower.c: New file.
34562
34563         Tests for module 'unicase/u8-tolower'.
34564         * modules/unicase/u8-tolower-tests: New file.
34565         * tests/unicase/test-u8-tolower.c: New file.
34566
34567         New module 'unicase/u32-tolower'.
34568         * lib/unicase/u32-tolower.c: New file.
34569         * modules/unicase/u32-tolower: New file.
34570
34571         New module 'unicase/u16-tolower'.
34572         * lib/unicase/u16-tolower.c: New file.
34573         * modules/unicase/u16-tolower: New file.
34574
34575         New module 'unicase/u8-tolower'.
34576         * lib/unicase/u8-tolower.c: New file.
34577         * modules/unicase/u8-tolower: New file.
34578
34579         Tests for module 'unicase/u32-toupper'.
34580         * modules/unicase/u32-toupper-tests: New file.
34581         * tests/unicase/test-u32-toupper.c: New file.
34582
34583         Tests for module 'unicase/u16-toupper'.
34584         * modules/unicase/u16-toupper-tests: New file.
34585         * tests/unicase/test-u16-toupper.c: New file.
34586
34587         Tests for module 'unicase/u8-toupper'.
34588         * modules/unicase/u8-toupper-tests: New file.
34589         * tests/unicase/test-u8-toupper.c: New file.
34590
34591         New module 'unicase/u32-toupper'.
34592         * lib/unicase/u32-toupper.c: New file.
34593         * modules/unicase/u32-toupper: New file.
34594
34595         New module 'unicase/u16-toupper'.
34596         * lib/unicase/u16-toupper.c: New file.
34597         * modules/unicase/u16-toupper: New file.
34598
34599         New module 'unicase/u8-toupper'.
34600         * lib/unicase/u8-toupper.c: New file.
34601         * modules/unicase/u8-toupper: New file.
34602
34603         New module 'unicase/u32-casemap'.
34604         * lib/unicase/u32-casemap.c: New file.
34605         * modules/unicase/u32-casemap: New file.
34606
34607         New module 'unicase/u16-casemap'.
34608         * lib/unicase/u16-casemap.c: New file.
34609         * modules/unicase/u16-casemap: New file.
34610
34611         New module 'unicase/u8-casemap'.
34612         * lib/unicase/unicasemap.h: New file.
34613         * lib/unicase/u8-casemap.c: New file.
34614         * lib/unicase/u-casemap.h: New file.
34615         * modules/unicase/u8-casemap: New file.
34616
34617         New module 'unicase/special-casing'.
34618         * lib/unicase/special-casing.h: New file.
34619         * lib/unicase/special-casing.c: New file.
34620         * lib/unicase/special-casing-table.gperf: New file, generated by
34621         gen-uni-tables.c.
34622         * modules/unicase/special-casing: New file.
34623
34624         Tests for module 'unicase/locale-language'.
34625         * modules/unicase/locale-language-tests: New file.
34626         * tests/unicase/test-locale-language.sh: New file.
34627         * tests/unicase/test-locale-language.c: New file.
34628
34629         New module 'unicase/locale-language'.
34630         * lib/unicase/locale-language.c: New file.
34631         * lib/unicase/locale-languages.gperf: New file.
34632         * modules/unicase/locale-language: New file.
34633
34634         Generate more tables for case conversion and case folding.
34635         * lib/gen-uni-tables.c (SCC_*): New enum items.
34636         (struct special_casing_rule): New type.
34637         (casing_rules, num_casing_rules, allocated_casing_rules): New
34638         variables.
34639         (add_casing_rule, fill_casing_rules): New functions.
34640         (struct casefold_rule): New type.
34641         (casefolding_rules, num_casefolding_rules,
34642         allocated_casefolding_rules): New variables.
34643         (fill_casefolding_rules): New function.
34644         (unicode_casefold): New variable.
34645         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34646         sort_casing_rules, output_casing_rules): New functions.
34647         (main): Accept to more arguments: SpecialCasing.txt and
34648         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34649         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34650         Output mapping for casefolding.
34651
34652         * lib/unicase.h: Include stdbool.h, uninorm.h.
34653         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34654         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34655         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34656         arguments.
34657         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34658         resultp arguments.
34659         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34660         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34661         resultp arguments.
34662         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34663         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34664         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34665         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34666         declarations.
34667         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34668
34669 2009-03-08  Bruno Haible  <bruno@clisp.org>
34670
34671         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34672         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34673         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34674         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34675
34676 2009-03-07  Bruno Haible  <bruno@clisp.org>
34677
34678         Adjust u*_normcmp, u*_normcoll API.
34679         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34680         u16_normcoll, u32_normcoll): Change failure conventions.
34681         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34682         errno and return -1.
34683         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34684
34685 2009-03-07  Bruno Haible  <bruno@clisp.org>
34686
34687         Tests for module 'uninorm/u32-normcoll'.
34688         * modules/uninorm/u32-normcoll-tests: New file.
34689         * tests/uninorm/test-u32-normcoll.c: New file.
34690
34691         Tests for module 'uninorm/u16-normcoll'.
34692         * modules/uninorm/u16-normcoll-tests: New file.
34693         * tests/uninorm/test-u16-normcoll.c: New file.
34694
34695         Tests for module 'uninorm/u8-normcoll'.
34696         * modules/uninorm/u8-normcoll-tests: New file.
34697         * tests/uninorm/test-u8-normcoll.c: New file.
34698
34699 2009-03-07  Bruno Haible  <bruno@clisp.org>
34700
34701         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
34702         tests/uninorm/test-u32-normcmp.c.
34703         * tests/uninorm/test-u32-normcmp.c: Include it.
34704         (test_nonascii): New function, extracted from main. Add some more
34705         tests.
34706         (main): Invoke test_ascii and test_nonascii.
34707         * modules/uninorm/u32-normcmp-tests (Files): Add
34708         tests/uninorm/test-u32-normcmp.h.
34709         (Depends-on): Remove uninorm/u32-normcmp.
34710
34711         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
34712         tests/uninorm/test-u16-normcmp.c.
34713         * tests/uninorm/test-u16-normcmp.c: Include it.
34714         (test_nonascii): New function, extracted from main. Add some more
34715         tests.
34716         (main): Invoke test_ascii and test_nonascii.
34717         * modules/uninorm/u16-normcmp-tests (Files): Add
34718         tests/uninorm/test-u16-normcmp.h.
34719         (Depends-on): Remove uninorm/u16-normcmp.
34720
34721         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
34722         tests/uninorm/test-u8-normcmp.c.
34723         * tests/uninorm/test-u8-normcmp.c: Include it.
34724         (test_nonascii): New function, extracted from main. Add some more
34725         tests.
34726         (main): Invoke test_ascii and test_nonascii.
34727         * modules/uninorm/u8-normcmp-tests (Files): Add
34728         tests/uninorm/test-u8-normcmp.h.
34729         (Depends-on): Remove uninorm/u8-normcmp.
34730
34731 2009-03-07  Bruno Haible  <bruno@clisp.org>
34732
34733         New module 'uninorm/u32-normcoll'.
34734         * lib/uninorm/u32-normcoll.c: New file.
34735         * modules/uninorm/u32-normcoll: New file.
34736
34737         New module 'uninorm/u16-normcoll'.
34738         * lib/uninorm/u16-normcoll.c: New file.
34739         * modules/uninorm/u16-normcoll: New file.
34740
34741         New module 'uninorm/u8-normcoll'.
34742         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
34743         declarations.
34744         * lib/uninorm/u8-normcoll.c: New file.
34745         * lib/uninorm/u-normcoll.h: New file.
34746         * modules/uninorm/u8-normcoll: New file.
34747
34748         New module 'uninorm/u32-normxfrm'.
34749         * lib/uninorm/u32-normxfrm.c: New file.
34750         * modules/uninorm/u32-normxfrm: New file.
34751
34752         New module 'uninorm/u16-normxfrm'.
34753         * lib/uninorm/u16-normxfrm.c: New file.
34754         * modules/uninorm/u16-normxfrm: New file.
34755
34756         New module 'uninorm/u8-normxfrm'.
34757         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
34758         declarations.
34759         * lib/uninorm/u8-normxfrm.c: New file.
34760         * lib/uninorm/u-normxfrm.h: New file.
34761         * modules/uninorm/u8-normxfrm: New file.
34762
34763 2009-03-07  Bruno Haible  <bruno@clisp.org>
34764
34765         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
34766         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
34767         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
34768
34769 2009-03-07  Bruno Haible  <bruno@clisp.org>
34770
34771         New module 'memxfrm'.
34772         * lib/memxfrm.h: New file.
34773         * lib/memxfrm.c: New file.
34774         * modules/memxfrm: New file.
34775
34776 2009-03-07  Bruno Haible  <bruno@clisp.org>
34777
34778         New module 'memcmp2'.
34779         * lib/memcmp2.h: New file.
34780         * lib/memcmp2.c: New file.
34781         * modules/memcmp2: New file.
34782
34783 2009-03-07  Bruno Haible  <bruno@clisp.org>
34784
34785         Tests for module 'uninorm/decomposing-form'.
34786         * modules/uninorm/decomposing-form-tests: New file.
34787         * tests/uninorm/test-decomposing-form.c: New file.
34788
34789         New module 'uninorm/decomposing-form'.
34790         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
34791         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
34792         Add 'decomposing_variant' field.
34793         * lib/uninorm/decomposing-form.c: New file.
34794         * lib/uninorm/nfc.c (uninorm_nfc): Update.
34795         * lib/uninorm/nfd.c (uninorm_nfd): Update.
34796         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
34797         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
34798         * modules/uninorm/decomposing-form: New file.
34799         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
34800         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
34801
34802 2009-03-07  Bruno Haible  <bruno@clisp.org>
34803
34804         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
34805         strings.
34806
34807 2009-03-06  Bruno Haible  <bruno@clisp.org>
34808
34809         Tests for module 'uninorm/u32-normcmp'.
34810         * tests/uninorm/test-u32-normcmp.c: New file.
34811         * modules/uninorm/u32-normcmp-tests: New file.
34812
34813         Tests for module 'uninorm/u16-normcmp'.
34814         * tests/uninorm/test-u16-normcmp.c: New file.
34815         * modules/uninorm/u16-normcmp-tests: New file.
34816
34817         Tests for module 'uninorm/u8-normcmp'.
34818         * tests/uninorm/test-u8-normcmp.c: New file.
34819         * modules/uninorm/u8-normcmp-tests: New file.
34820
34821         New module 'uninorm/u32-normcmp'.
34822         * lib/uninorm/u32-normcmp.c: New file.
34823         * modules/uninorm/u32-normcmp: New file.
34824
34825         New module 'uninorm/u16-normcmp'.
34826         * lib/uninorm/u16-normcmp.c: New file.
34827         * modules/uninorm/u16-normcmp: New file.
34828
34829         New module 'uninorm/u8-normcmp'.
34830         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
34831         declarations.
34832         * lib/uninorm/u8-normcmp.c: New file.
34833         * lib/uninorm/u-normcmp.h: New file.
34834         * modules/uninorm/u8-normcmp: New file.
34835
34836 2009-03-06  Bruno Haible  <bruno@clisp.org>
34837
34838         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
34839         Reported by Eric Blake.
34840
34841 2009-03-06  Eric Blake  <ebb9@byu.net>
34842             Bruno Haible  <bruno@clisp.org>
34843
34844         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
34845         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
34846         condition.
34847         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34848         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
34849         condition.
34850         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34851
34852 2009-03-06  Eric Blake  <ebb9@byu.net>
34853
34854         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
34855         to avoid compiler warnings.
34856         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
34857
34858 2009-03-05  Bruno Haible  <bruno@clisp.org>
34859
34860         * tests/test-ftell.c (main): Disable test beyond end of file on
34861         FreeMiNT.
34862         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34863
34864 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
34865
34866         * lib/filevercmp.c: Move hidden files up in ordering.
34867         * tests/test-filevercmp.c: Add tests for hidden files.
34868
34869 2009-03-04  Bruno Haible  <bruno@clisp.org>
34870
34871         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
34872         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
34873         AM_CFLAGS.
34874         Reported by Simon Josefsson.
34875
34876 2009-03-03  Bruno Haible  <bruno@clisp.org>
34877
34878         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
34879         Reported by Simon Josefsson.
34880
34881         * doc/ld-version-script.texi: Update node reference.
34882
34883 2009-03-03  Bruno Haible  <bruno@clisp.org>
34884
34885         * modules/visibility (License): Change to 'unlimited'.
34886         Suggested by Simon Josefsson.
34887
34888 2009-03-03  Jim Meyering  <meyering@redhat.com>
34889
34890         unlinkdir: cannot_unlink_dir may modify process state
34891         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
34892         it's neither thread-safe nor appropriate for use in a library.
34893
34894 2009-03-03  Eric Blake  <ebb9@byu.net>
34895
34896         test-closein: silence test under Darwin
34897         * tests/test-closein.sh: Ignore stderr from cat, since we don't
34898         care if it dies from EPIPE or EBADF.
34899
34900 2009-03-03  Bruno Haible  <bruno@clisp.org>
34901
34902         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
34903         earlier.
34904         * doc/visibility.texi: Fix @node and @section.
34905
34906 2009-03-03  Simon Josefsson  <simon@josefsson.org>
34907
34908         * doc/gnulib.texi: Link to sections for ld version script and
34909         visibility.
34910         * doc/visibility.texi: Add @node and @section.
34911         * modules/ld-version-script: New module.
34912         * m4/ld-version-script.m4: New file.
34913         * doc/ld-version-script.texi: New file.
34914
34915 2009-03-02  David Lutterkort  <lutter@redhat.com>
34916
34917         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
34918         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34919
34920 2009-03-02  Bruno Haible  <bruno@clisp.org>
34921
34922         * doc/visibility.texi: Mention libtool's -export-symbols option.
34923
34924 2009-03-02  Jim Meyering  <meyering@redhat.com>
34925
34926         announce-gen: new option: --no-print-checksums
34927         * build-aux/announce-gen (usage): Describe it.
34928         (print_checksums): Print a newline here, not in the [*] footnote.
34929         (main): Honor it.
34930
34931 2009-03-01  Bruno Haible  <bruno@clisp.org>
34932
34933         Use socklen_t in the native Windows replacements prototypes.
34934         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
34935         instead of 'int'.
34936         * lib/getsockopt.c (rpl_getsockopt): Likewise.
34937         * lib/setsockopt.c (rpl_setsockopt): Likewise.
34938         * modules/getsockopt (Depends-on): Add socklen.
34939         * modules/setsockopt (Depends-on): Add socklen.
34940
34941 2009-03-01  Bruno Haible  <bruno@clisp.org>
34942
34943         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
34944         least 4.2.
34945
34946 2009-03-01  Eric Blake  <ebb9@byu.net>
34947             Bruno Haible  <bruno@clisp.org>
34948
34949         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
34950         error messages.
34951         * lib/wait-process.c (wait_subprocess): Omit error message about
34952         deadly signal sent to the child of termsigp != NULL.
34953
34954 2009-03-01  Eric Blake  <ebb9@byu.net>
34955
34956         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
34957
34958 2009-03-01  Bruno Haible  <bruno@clisp.org>
34959
34960         Avoid a gcc warning.
34961         * tests/test-sched.c (b): Make global.
34962         Reported by Eric Blake.
34963
34964 2009-01-19  Martin Lambers  <marlam@marlam.de>
34965
34966         Provide POSIX semantics for socket timeout options on W32.
34967         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
34968         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
34969         * modules/setsockopt: Depend on sys_time module for struct timeval.
34970         * modules/getsockopt: Depend on sys_time module for struct timeval.
34971
34972 2009-03-01  Simon Josefsson  <simon@josefsson.org>
34973
34974         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
34975         __USE_GNU, for consistency with netdb.in.h.
34976         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34977
34978 2009-03-01  Bruno Haible  <bruno@clisp.org>
34979
34980         More support for FreeMiNT.
34981         * lib/fseeko.c (rpl_fseeko): Complete last commit.
34982         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34983
34984 2009-03-01  Bruno Haible  <bruno@clisp.org>
34985
34986         More support for FreeMiNT.
34987         * lib/fpurge.c (fpurge): Correct last commit.
34988         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34989
34990 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34991
34992         Fix unportable awk script in vc-list-files.
34993         * build-aux/vc-list-files: In the replacement awk script, use
34994         substr with a second argument of 1, not zero.
34995         Report by Simon Josefsson.
34996
34997 2009-02-28  Bruno Haible  <bruno@clisp.org>
34998
34999         More support for FreeMiNT.
35000         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
35001         to FreeMiNT today.
35002         * lib/fwriting.c (fwriting): Likewise.
35003         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
35004
35005 2009-02-28  Bruno Haible  <bruno@clisp.org>
35006
35007         * tests/test-freadseek.c (main): Disable test beyond end of file on
35008         FreeMiNT.
35009         * tests/test-ftello.c (main): Likewise.
35010         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35011
35012 2009-02-28  Bruno Haible  <bruno@clisp.org>
35013
35014         Add tentative support for FreeMiNT.
35015         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
35016         * lib/fpurge.c (fpurge): Likewise.
35017         * lib/freadable.c (freadable): Likewise.
35018         * lib/freading.c (freading): Likewise.
35019         * lib/freadptr.c (freadptr): Likewise.
35020         * lib/freadseek.c (freadptrinc): Likewise.
35021         * lib/fseeko.c (rpl_fseeko): Likewise.
35022         * lib/fseterr.c (fseterr): Likewise.
35023         * lib/fwritable.c (fwritable): Likewise.
35024         * lib/fwriting.c (fwriting): Likewise.
35025         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
35026         Hourihane.
35027         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35028
35029 2009-02-28  Bruno Haible  <bruno@clisp.org>
35030
35031         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
35032         SIGCHLD.
35033         Reported by Jim Meyering.
35034
35035 2009-02-28  Bruno Haible  <bruno@clisp.org>
35036
35037         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
35038         Mention the results of these tests on various platforms.
35039         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
35040         order.
35041         * doc/posix-functions/printf.texi: Likewise.
35042         * doc/posix-functions/snprintf.texi: Likewise.
35043         * doc/posix-functions/sprintf.texi: Likewise.
35044         * doc/posix-functions/vfprintf.texi: Likewise.
35045         * doc/posix-functions/vprintf.texi: Likewise.
35046         * doc/posix-functions/vsnprintf.texi: Likewise.
35047         * doc/posix-functions/vsprintf.texi: Likewise.
35048         * doc/glibc-functions/obstack_printf.texi: Likewise.
35049         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
35050
35051 2009-02-28  Bruno Haible  <bruno@clisp.org>
35052
35053         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
35054         Reported by Loïc Minier <lool@dooz.org>.
35055
35056 2009-02-27  Bruno Haible  <bruno@clisp.org>
35057
35058         * gnulib-tool (func_import): Make the sed expression used to create the
35059         sed script for updating the .gitignore file POSIX compliant.
35060         Reported by Eric Blake.
35061
35062 2009-02-27  Bruno Haible  <bruno@clisp.org>
35063
35064         * gnulib-tool (sed): Don't alias as "sed --posix".
35065         Reported by Eric Blake.
35066
35067 2009-02-27  Bruno Haible  <bruno@clisp.org>
35068
35069         Avoid test link errors.
35070         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
35071         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
35072         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
35073         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
35074         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35075
35076 2009-02-27  Bruno Haible  <bruno@clisp.org>
35077
35078         Avoid spurious "(cached)" in configure output.
35079         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
35080         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
35081         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35082         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35083         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35084         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
35085         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35086         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
35087         Reported by Eric Blake.
35088
35089 2009-02-27  Eric Blake  <ebb9@byu.net>
35090
35091         printf: fix regression in previous patch
35092         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
35093
35094 2009-02-27  Bruno Haible  <bruno@clisp.org>
35095
35096         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
35097         value.
35098         * lib/stdint.in.h: Likewise.
35099         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
35100
35101 2009-02-27  Eric Blake  <ebb9@byu.net>
35102
35103         doc: mention more functions added in cygwin 1.7.0
35104         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
35105         addition.
35106         * doc/posix-functions/open_wmemstream.texi: Likewise.
35107         * doc/posix-functions/wcsnlen.texi: Likewise.
35108         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35109         * doc/posix-functions/wcstod.texi: Likewise.
35110         * doc/posix-functions/wcstof.texi: Likewise.
35111         * doc/posix-functions/wcstoimax.texi: Likewise.
35112         * doc/posix-functions/wcstok.texi: Likewise.
35113         * doc/posix-functions/wcstoumax.texi: Likewise.
35114
35115         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
35116         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
35117         * doc/posix-functions/fprintf.texi: Update.
35118         * doc/posix-functions/printf.texi: Update.
35119         * doc/posix-functions/snprintf.texi: Update.
35120         * doc/posix-functions/sprintf.texi: Update.
35121         * doc/posix-functions/vfprintf.texi: Update.
35122         * doc/posix-functions/vprintf.texi: Update.
35123         * doc/posix-functions/vsnprintf.texi: Update.
35124         * doc/posix-functions/vsprintf.texi: Update.
35125         * doc/glibc-functions/obstack_printf.texi: Update.
35126         * doc/glibc-functions/obstack_vprintf.texi: Update.
35127
35128 2009-02-26  Eric Blake  <ebb9@byu.net>
35129
35130         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
35131         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
35132         compilation bug by using runtime conversion.
35133         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35134         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
35135         * modules/ceill-tests (Files): Use nan.h.
35136         * modules/floorl-tests (Files): Likewise.
35137         * modules/frexpl-tests (Files): Likewise.
35138         * modules/isnanl-tests (Files): Likewise.
35139         * modules/ldexpl-tests (Files): Likewise.
35140         * modules/roundl-tests (Files): Likewise.
35141         * modules/truncl-tests (Files): Likewise.
35142         * tests/test-ceill.c (main): Use a working NaN.
35143         * tests/test-floorl.c (main): Likewise.
35144         * tests/test-frexpl.c (main): Likewise.
35145         * tests/test-isnan.c (test_long_double): Likewise.
35146         * tests/test-isnanl.h (main): Likewise.
35147         * tests/test-ldexpl.h (main): Likewise.
35148         * tests/test-roundl.h (main): Likewise.
35149         * tests/test-truncl.h (main): Likewise.
35150         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
35151
35152 2009-02-26  Eric Blake  <ebb9@byu.net>
35153             Bruno Haible  <bruno@clisp.org>
35154
35155         Work around a *printf bug with %ls on Solaris.
35156         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
35157         precision is specified, sprintf stops converting the wide string
35158         argument when the number of bytes that have been produced by this
35159         conversion equals or exceeds the precision.
35160         * doc/posix-functions/fprintf.texi: Update.
35161         * doc/posix-functions/printf.texi: Update.
35162         * doc/posix-functions/snprintf.texi: Update.
35163         * doc/posix-functions/sprintf.texi: Update.
35164         * doc/posix-functions/vfprintf.texi: Update.
35165         * doc/posix-functions/vprintf.texi: Update.
35166         * doc/posix-functions/vsnprintf.texi: Update.
35167         * doc/posix-functions/vsprintf.texi: Update.
35168         * doc/glibc-functions/obstack_printf.texi: Update.
35169         * doc/glibc-functions/obstack_vprintf.texi: Update.
35170
35171 2009-02-26  Eric Blake  <ebb9@byu.net>
35172
35173         stdlib: favor compiler check of random.h
35174         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
35175         to avoid an ObjC random.h installed by Swarm.
35176
35177 2009-02-26  Bruno Haible  <bruno@clisp.org>
35178
35179         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
35180         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
35181         Reported by Gary V. Vaughan <gary@gnu.org>.
35182
35183 2009-02-26  Bruno Haible  <bruno@clisp.org>
35184
35185         Fix *printf behaviour regarding the %ls directive.
35186         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
35187         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
35188         NEED_PRINTF_DIRECTIVE_LS.
35189         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
35190         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35191         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35192         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
35193         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
35194         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
35195         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35196         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35197         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35198         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35199         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35200         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
35201         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35202         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35203         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35204         * doc/posix-functions/fprintf.texi: Update.
35205         * doc/posix-functions/printf.texi: Update.
35206         * doc/posix-functions/snprintf.texi: Update.
35207         * doc/posix-functions/sprintf.texi: Update.
35208         * doc/posix-functions/vfprintf.texi: Update.
35209         * doc/posix-functions/vprintf.texi: Update.
35210         * doc/posix-functions/vsnprintf.texi: Update.
35211         * doc/posix-functions/vsprintf.texi: Update.
35212         * doc/glibc-functions/obstack_printf.texi: Update.
35213         * doc/glibc-functions/obstack_vprintf.texi: Update.
35214         Reported by Eric Blake.
35215
35216 2009-02-25  Bruno Haible  <bruno@clisp.org>
35217
35218         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
35219         with known value.
35220         Reported by Gary V. Vaughan <gary@gnu.org>.
35221
35222 2009-02-25  Bruno Haible  <bruno@clisp.org>
35223
35224         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
35225         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
35226         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
35227         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
35228         Reported by Gary V. Vaughan <gary@gnu.org>.
35229
35230 2009-02-25  Bruno Haible  <bruno@clisp.org>
35231
35232         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
35233         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
35234         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
35235         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
35236         Reported by Gary V. Vaughan <gary@gnu.org>.
35237
35238 2009-02-25  Eric Blake  <ebb9@byu.net>
35239
35240         tests: skip fseek/ftell tests if ungetc is broken
35241         * m4/ungetc.m4: New file.
35242         * modules/fseek-tests: Split test, so ungetc dependency is
35243         separate from rest of test.
35244         * modules/fseeko-tests: Likewise.
35245         * modules/ftell-tests: Likewise.
35246         * modules/ftello-tests: Likewise.
35247         * tests/test-fseek.c (main): Isolate ungetc dependency.
35248         * tests/test-fseeko.c (main): Likewise.
35249         * tests/test-ftell.c (main): Likewise.
35250         * tests/test-ftello.c (main): Likewise.
35251         * tests/test-fseek2.sh: New file.
35252         * tests/test-fseeko2.sh: Likewise.
35253         * tests/test-ftell2.sh: Likewise.
35254         * tests/test-ftello2.sh: Likewise.
35255
35256 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
35257
35258         test-getaddrinfo: fix usage of skip return code 77
35259         * tests/test-gettaddrinfo.c: Return skip code 77 only
35260         for first occurance of skip (4x77 is not 77)
35261
35262 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
35263
35264         strtod: avoid C99 decl-after-statement
35265         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
35266
35267 2009-02-24  Eric Blake  <ebb9@byu.net>
35268
35269         strtod: detect HP-UX 11.31 bug
35270         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
35271         Reported by Gary V. Vaughan.
35272
35273 2009-02-23  Bruno Haible  <bruno@clisp.org>
35274
35275         Fix invalid read past end of memory block.
35276         * lib/vasnprintf.c (DCHAR_SET): Define.
35277         (local_wcslen): Define only when needed.
35278         (local_strnlen, local_wcsnlen): New functions.
35279         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
35280         directives that involve a conversion ourselves.
35281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
35282         wcsnlen, mbrtowc, wcrtomb.
35283         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
35284         * tests/test-vasprintf-posix.c (test_function): Likewise.
35285         * tests/test-snprintf-posix.h (test_function): Likewise.
35286         * tests/test-sprintf-posix.h (test_function): Likewise.
35287         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35288
35289 2009-02-22  Bruno Haible  <bruno@clisp.org>
35290
35291         Implement new clarified decomposition of Hangul syllables.
35292         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
35293         of type LTV, return only a pairwise decomposition.
35294         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
35295         Likewise.
35296         * tests/uninorm/test-decomposition.c (main): Updated expected result.
35297         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
35298         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
35299
35300 2009-02-22  Bruno Haible  <bruno@clisp.org>
35301
35302         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
35303         zero-length results and shrink excess allocated memory.
35304         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
35305         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
35306         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
35307         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
35308         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35309         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35310         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35311         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35312         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35313         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35314         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35315         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35316
35317 2009-02-21  Bruno Haible  <bruno@clisp.org>
35318
35319         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35320         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35321         spaces after a period. Put a space between a macro name and its
35322         argument list. Trivial rewordings.
35323         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35324         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35325         (main): Return 0 explicitly.
35326
35327 2009-02-21  Bruno Haible  <bruno@clisp.org>
35328
35329         Tests for module 'uninorm/filter'.
35330         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35331         * modules/uninorm/filter-tests: New file.
35332
35333         New module 'uninorm/filter'.
35334         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35335         uninorm_filter_flush, uninorm_filter_free): New declarations.
35336         * lib/uninorm/uninorm-filter.c: New file.
35337         * modules/uninorm/filter: New file.
35338
35339 2009-02-21  Bruno Haible  <bruno@clisp.org>
35340
35341         Tests for module 'uninorm/nfkc'.
35342         * tests/uninorm/test-nfkc.c: New file.
35343         * tests/uninorm/test-u8-nfkc.c: New file.
35344         * tests/uninorm/test-u16-nfkc.c: New file.
35345         * tests/uninorm/test-u32-nfkc.c: New file.
35346         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35347         * tests/uninorm/test-u32-nfkc-big.c: New file.
35348         * modules/uninorm/nfkc-tests: New file.
35349
35350         New module 'uninorm/nfkc'.
35351         * lib/uninorm/nfkc.c: New file.
35352         * modules/uninorm/nfkc: New file.
35353
35354         Tests for module 'uninorm/nfkd'.
35355         * tests/uninorm/test-nfkd.c: New file.
35356         * tests/uninorm/test-u8-nfkd.c: New file.
35357         * tests/uninorm/test-u16-nfkd.c: New file.
35358         * tests/uninorm/test-u32-nfkd.c: New file.
35359         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35360         * tests/uninorm/test-u32-nfkd-big.c: New file.
35361         * modules/uninorm/nfkd-tests: New file.
35362
35363         New module 'uninorm/nfkd'.
35364         * lib/uninorm/nfkd.c: New file.
35365         * modules/uninorm/nfkd: New file.
35366
35367         Tests for module 'uninorm/nfc'.
35368         * tests/uninorm/test-nfc.c: New file.
35369         * tests/uninorm/test-u8-nfc.c: New file.
35370         * tests/uninorm/test-u16-nfc.c: New file.
35371         * tests/uninorm/test-u32-nfc.c: New file.
35372         * tests/uninorm/test-u32-nfc-big.sh: New file.
35373         * tests/uninorm/test-u32-nfc-big.c: New file.
35374         * modules/uninorm/nfc-tests: New file.
35375
35376         New module 'uninorm/nfc'.
35377         * lib/uninorm/nfc.c: New file.
35378         * modules/uninorm/nfc: New file.
35379
35380         Tests for module 'uninorm/nfd'.
35381         * tests/uninorm/test-nfd.c: New file.
35382         * tests/uninorm/test-u8-nfd.c: New file.
35383         * tests/uninorm/test-u16-nfd.c: New file.
35384         * tests/uninorm/test-u32-nfd.c: New file.
35385         * tests/uninorm/test-u32-nfd-big.sh: New file.
35386         * tests/uninorm/test-u32-nfd-big.c: New file.
35387         * tests/uninorm/test-u32-normalize-big.h: New file.
35388         * tests/uninorm/test-u32-normalize-big.c: New file.
35389         * tests/uninorm/NormalizationTest.txt: New file, created from
35390         Unicode 5.1.0 NormalizationTest.txt.
35391         * modules/uninorm/nfd-tests: New file.
35392
35393         New module 'uninorm/nfd'.
35394         * lib/uninorm/nfd.c: New file.
35395         * modules/uninorm/nfd: New file.
35396
35397         New module 'uninorm/u32-normalize'.
35398         * lib/uninorm/u32-normalize.c: New file.
35399         * modules/uninorm/u32-normalize: New file.
35400
35401         New module 'uninorm/u16-normalize'.
35402         * lib/uninorm/u16-normalize.c: New file.
35403         * modules/uninorm/u16-normalize: New file.
35404
35405         New module 'uninorm/u8-normalize'.
35406         * lib/uninorm/u8-normalize.c: New file.
35407         * lib/uninorm/normalize-internal.h: New file.
35408         * lib/uninorm/u-normalize-internal.h: New file.
35409         * modules/uninorm/u8-normalize: New file.
35410
35411         New module 'uninorm/decompose-internal'.
35412         * lib/uninorm/decompose-internal.c: New file.
35413         * modules/uninorm/decompose-internal: New file.
35414
35415         Tests for module 'uninorm/composition'.
35416         * tests/uninorm/test-composition.c: New file.
35417         * modules/uninorm/composition-tests: New file.
35418
35419         New module 'uninorm/composition'.
35420         * lib/uninorm/composition.c: New file.
35421         * lib/uninorm/composition-table.gperf: New file, generated by
35422         gen-uni-tables.
35423         * modules/uninorm/composition: New file.
35424
35425         Tests for module 'uninorm/compat-decomposition'.
35426         * tests/uninorm/test-compat-decomposition.c: New file.
35427         * modules/uninorm/compat-decomposition-tests: New file.
35428
35429         New module 'uninorm/compat-decomposition'.
35430         * lib/uninorm/decompose-internal.h: New file.
35431         * lib/uninorm/compat-decomposition.c: New file.
35432         * modules/uninorm/compat-decomposition: New file.
35433
35434         Tests for module 'uninorm/canonical-decomposition'.
35435         * tests/uninorm/test-canonical-decomposition.c: New file.
35436         * modules/uninorm/canonical-decomposition-tests: New file.
35437
35438         New module 'uninorm/canonical-decomposition'.
35439         * lib/uninorm/canonical-decomposition.c: New file.
35440         * modules/uninorm/canonical-decomposition: New file.
35441
35442         Tests for module 'uninorm/decomposition'.
35443         * tests/uninorm/test-decomposition.c: New file.
35444         * modules/uninorm/decomposition-tests: New file.
35445
35446         New module 'uninorm/decomposition'.
35447         * lib/uninorm/decomposition.c: New file.
35448         * modules/uninorm/decomposition: New file.
35449
35450         New module 'uninorm/decomposition-table'.
35451         * lib/uninorm/decomposition-table.h: New file.
35452         * lib/uninorm/decomposition-table.c: New file.
35453         * lib/uninorm/decomposition-table1.h: New file, generated by
35454         gen-uni-tables.
35455         * lib/uninorm/decomposition-table2.h: New file, generated by
35456         gen-uni-tables.
35457         * modules/uninorm/decomposition-table: New file.
35458
35459         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35460         (UC_DECOMP_*): New enumeration items.
35461         (get_decomposition): New function.
35462         (struct decomp_table): New type.
35463         (output_decomposition, output_decomposition_tables): New functions.
35464         (unicode_composition_exclusions): New variable.
35465         (fill_composition_exclusions, debug_output_composition_tables): New
35466         functions.
35467         (main): Accept one more argument. Invoke fill_composition_exclusions.
35468         Output decomposition and composition tables.
35469
35470         New module 'uninorm/base'.
35471         * lib/uninorm.h: New file.
35472         * lib/unictype.h: Update comment.
35473         * modules/uninorm/base: New file.
35474
35475 2009-02-21  David Lutterkort  <lutter@redhat.com>
35476
35477         Tests for module 'safe-alloc'.
35478         * tests/test-safe-alloc.c: New file.
35479         * modules/safe-alloc-tests: New file.
35480
35481         New module 'safe-alloc'.
35482         * lib/safe-alloc.h: New file.
35483         * lib/safe-alloc.c: New file.
35484         * m4/safe-alloc.m4: New file.
35485         * modules/safe-alloc: New file.
35486         * doc/safe-alloc.texi: New file.
35487         * doc/gnulib.texi: Include it.
35488         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35489         safe-alloc.
35490
35491 2009-02-18  Bruno Haible  <bruno@clisp.org>
35492
35493         Fix link error on non-glibc systems.
35494         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35495         variable.
35496         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35497
35498 2009-02-18  Jim Meyering  <meyering@redhat.com>
35499
35500         fts: avoid used-uninitialized error due to recent change
35501         * lib/fts.c (fts_read): Guard uses of the new member,
35502         parent->fts_n_dirs_remaining, since it's not relevant for
35503         the parent of a directory specified on the command-line.
35504
35505 2009-02-17  James Youngman  <jay@gnu.org>
35506             Bruno Haible  <bruno@clisp.org>
35507
35508         * m4/include_next.m4: Reformulate comment.
35509
35510 2009-02-16  Jim Meyering  <meyering@redhat.com>
35511
35512         fts: add #if guards so that the fts_lgpl module still builds
35513         * lib/fts.c: Guard just-added hash-table-using parts with
35514         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35515         Reported by Simon Josefsson.
35516
35517 2009-02-15  Bruno Haible  <bruno@clisp.org>
35518
35519         * modules/array-mergesort-tests: New file.
35520         * tests/test-array-mergesort.c: New file.
35521
35522         New module 'array-mergesort'.
35523         * modules/array-mergesort: New file.
35524         * lib/array-mergesort.h: New file.
35525
35526 2009-02-15  Bruno Haible  <bruno@clisp.org>
35527
35528         Fix 2009-02-07 commit.
35529         * lib/gen-uni-tables.c (output_predicate, output_category,
35530         output_combclass, output_bidi_category, output_decimal_digit,
35531         output_digit, output_numeric, output_mirror, output_scripts,
35532         output_ident_category, output_simple_mapping): Fix format directives.
35533         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
35534
35535 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
35536
35537         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
35538         fixes are available from IBM.
35539
35540 2009-02-13  Jim Meyering  <meyering@redhat.com>
35541
35542         fts: arrange not to stat non-directories in more cases
35543         This makes GNU find (when it doesn't need to stat each file)
35544         *much* more efficient at traversing reiserfs file systems.
35545         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
35546         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
35547         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
35548         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
35549         (leaf_optimization_applies): New function.
35550         (LCO_hash, LCO_compare): New helper functions.
35551         (link_count_optimize_ok): New function.
35552         (fts_stat): Initialize new member (if dir).
35553         (fts_read): Decrement parent's fts_n_dirs_remaining count if
35554         we've just stat'ed a directory.  Skip the stat call when possible.
35555         ---
35556         Note this AFS-related exchange:
35557         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
35558         and note find's pioctl call in find/fstype.c.
35559         But that is necessary only if you want to enable the
35560         optimization for AFS, and for now, I don't.
35561
35562         fts: move a function definition "up" (no semantic change)
35563         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
35564         "up" to precede upcoming use of a related function.
35565
35566 2009-02-11  Jim Meyering  <meyering@redhat.com>
35567
35568         fts: correct internal computation of nlinks (optimization-related)
35569         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
35570         whether the current entry is a directory, so don't test it.
35571
35572 2009-02-10  Bruno Haible  <bruno@clisp.org>
35573
35574         Tests for module 'uniwbrk/ulc-wordbreaks'.
35575         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
35576         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
35577         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
35578
35579         Tests for module 'uniwbrk/u32-wordbreaks'.
35580         * modules/uniwbrk/u32-wordbreaks-tests: New file.
35581         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
35582
35583         Tests for module 'uniwbrk/u16-wordbreaks'.
35584         * modules/uniwbrk/u16-wordbreaks-tests: New file.
35585         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
35586
35587         Tests for module 'uniwbrk/u8-wordbreaks'.
35588         * modules/uniwbrk/u8-wordbreaks-tests: New file.
35589         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
35590
35591 2009-02-10  Bruno Haible  <bruno@clisp.org>
35592
35593         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
35594         property.
35595         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
35596         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
35597         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
35598
35599 2009-02-10  Simon Josefsson  <simon@josefsson.org>
35600
35601         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
35602         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
35603
35604 2009-02-10  Bruno Haible  <bruno@clisp.org>
35605
35606         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
35607         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
35608         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
35609         * lib/unilbrk/u8-possible-linebreaks.c: Update.
35610         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
35611         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
35612
35613 2009-02-09  Simon Josefsson  <simon@josefsson.org>
35614
35615         * lib/sockets.h (gl_fd_to_handle): New function.
35616
35617         * tests/test-sockets.c: Call gl_fd_to_handle.
35618
35619 2009-02-09  Bruno Haible  <bruno@clisp.org>
35620
35621         * doc/havelib.texi: Document the conventions on bi-arch systems.
35622
35623 2009-02-08  Bruno Haible  <bruno@clisp.org>
35624
35625         Document the AC_LIB_LINKFLAGS macro.
35626         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35627         * doc/gnulib.texi: Include it.
35628
35629 2009-02-08  Bruno Haible  <bruno@clisp.org>
35630
35631         Fix wrong order of sections, compared to TOC.
35632         * doc/gnulib.texi: Include relocatable-maint.texi after the
35633         "Regular expressions" node, not before.
35634
35635 2009-02-08  Bruno Haible  <bruno@clisp.org>
35636
35637         Tests for module 'unicase/totitle'.
35638         * modules/unicase/totitle-tests: New file.
35639
35640         Tests for module 'unicase/tolower'.
35641         * modules/unicase/tolower-tests: New file.
35642
35643         Tests for module 'unicase/toupper'.
35644         * modules/unicase/toupper-tests: New file.
35645         * tests/unicase/test-mapping-part1.h: New file.
35646         * tests/unicase/test-mapping-part2.h: New file.
35647
35648         New module 'unicase/totitle'.
35649         * modules/unicase/totitle: New file.
35650         * lib/unicase/totitle.c: New file.
35651
35652         New module 'unicase/tolower'.
35653         * modules/unicase/tolower: New file.
35654         * lib/unicase/tolower.c: New file.
35655
35656         New module 'unicase/toupper'.
35657         * modules/unicase/toupper: New file.
35658         * lib/unicase/toupper.c: New file.
35659         * lib/unicase/simple-mapping.h: New file.
35660
35661         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35662         (mapping_table): New structure.
35663         (output_simple_mapping): New function.
35664         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35665         * modules/gen-uni-tables (Description): Update.
35666         * lib/unicase/toupper.h: New file, automatically generated by
35667         gen-uni-tables.
35668         * lib/unicase/tolower.h: New file, automatically generated by
35669         gen-uni-tables.
35670         * lib/unicase/totitle.h: New file, automatically generated by
35671         gen-uni-tables.
35672         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35673         gen-uni-tables.
35674         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35675         gen-uni-tables.
35676         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35677         gen-uni-tables.
35678
35679         New module 'unicase/base'.
35680         * modules/unicase/base: New file.
35681         * lib/unicase.h: New file.
35682
35683 2009-02-08  Bruno Haible  <bruno@clisp.org>
35684
35685         New module 'uniwbrk/ulc-wordbreaks'.
35686         * modules/uniwbrk/ulc-wordbreaks: New file.
35687         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35688
35689         New module 'uniwbrk/u32-wordbreaks'.
35690         * modules/uniwbrk/u32-wordbreaks: New file.
35691         * lib/uniwbrk/u32-wordbreaks.c: New file.
35692
35693         New module 'uniwbrk/u16-wordbreaks'.
35694         * modules/uniwbrk/u16-wordbreaks: New file.
35695         * lib/uniwbrk/u16-wordbreaks.c: New file.
35696
35697         New module 'uniwbrk/u8-wordbreaks'.
35698         * modules/uniwbrk/u8-wordbreaks: New file.
35699         * lib/uniwbrk/u8-wordbreaks.c: New file.
35700         * lib/uniwbrk/u-wordbreaks.h: New file.
35701
35702         New module 'uniwbrk/table'.
35703         * modules/uniwbrk/table: New file.
35704         * lib/uniwbrk/wbrktable.h: New file.
35705         * lib/uniwbrk/wbrktable.c: New file.
35706
35707         New module 'uniwbrk/wordbreak-property'.
35708         * modules/uniwbrk/wordbreak-property: New file.
35709         * lib/uniwbrk/wordbreak-property.c: New file.
35710
35711         * lib/gen-uni-tables.c (WBP_*): New enum items.
35712         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
35713         (unicode_org_wbp): New variable.
35714         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
35715         New functions.
35716         (wbp_table): New structure.
35717         (output_wbp, output_wbrk_tables): New functions.
35718         (main): Accept additional argument. Invoke fill_org_wbp,
35719         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
35720         output_wbrk_tables.
35721         * modules/gen-uni-tables (Description): Update.
35722         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
35723         gen-uni-tables.
35724
35725         New module 'uniwbrk/base'.
35726         * modules/uniwbrk/base: New file.
35727         * lib/uniwbrk.h: New file.
35728
35729 2009-02-08  Bruno Haible  <bruno@clisp.org>
35730
35731         Update to Unicode 5.1.0.
35732         * lib/gen-uni-tables.c (is_property_alphabetic): Include
35733         U+2185..U+2188.
35734         (is_property_default_ignorable_code_point): Don't include characters
35735         of category Cc or Cs and not-a-characters.
35736         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
35737         U+0D79, U+109E, U+109F, U+A60C.
35738         * lib/unictype/bidi_of.h: Regenerated.
35739         * lib/unictype/blocks.h: Regenerated.
35740         * lib/unictype/categ_C.h: Regenerated.
35741         * lib/unictype/categ_Cf.h: Regenerated.
35742         * lib/unictype/categ_Cn.h: Regenerated.
35743         * lib/unictype/categ_L.h: Regenerated.
35744         * lib/unictype/categ_Ll.h: Regenerated.
35745         * lib/unictype/categ_Lm.h: Regenerated.
35746         * lib/unictype/categ_Lo.h: Regenerated.
35747         * lib/unictype/categ_Lu.h: Regenerated.
35748         * lib/unictype/categ_M.h: Regenerated.
35749         * lib/unictype/categ_Mc.h: Regenerated.
35750         * lib/unictype/categ_Me.h: Regenerated.
35751         * lib/unictype/categ_Mn.h: Regenerated.
35752         * lib/unictype/categ_N.h: Regenerated.
35753         * lib/unictype/categ_Nd.h: Regenerated.
35754         * lib/unictype/categ_Nl.h: Regenerated.
35755         * lib/unictype/categ_No.h: Regenerated.
35756         * lib/unictype/categ_P.h: Regenerated.
35757         * lib/unictype/categ_Pd.h: Regenerated.
35758         * lib/unictype/categ_Pe.h: Regenerated.
35759         * lib/unictype/categ_Pf.h: Regenerated.
35760         * lib/unictype/categ_Pi.h: Regenerated.
35761         * lib/unictype/categ_Po.h: Regenerated.
35762         * lib/unictype/categ_Ps.h: Regenerated.
35763         * lib/unictype/categ_S.h: Regenerated.
35764         * lib/unictype/categ_Sk.h: Regenerated.
35765         * lib/unictype/categ_Sm.h: Regenerated.
35766         * lib/unictype/categ_So.h: Regenerated.
35767         * lib/unictype/categ_of.h: Regenerated.
35768         * lib/unictype/combining.h: Regenerated.
35769         * lib/unictype/ctype_alnum.h: Regenerated.
35770         * lib/unictype/ctype_alpha.h: Regenerated.
35771         * lib/unictype/ctype_graph.h: Regenerated.
35772         * lib/unictype/ctype_lower.h: Regenerated.
35773         * lib/unictype/ctype_print.h: Regenerated.
35774         * lib/unictype/ctype_punct.h: Regenerated.
35775         * lib/unictype/ctype_upper.h: Regenerated.
35776         * lib/unictype/decdigit.h: Regenerated.
35777         * lib/unictype/digit.h: Regenerated.
35778         * lib/unictype/mirror.h: Regenerated.
35779         * lib/unictype/numeric.h: Regenerated.
35780         * lib/unictype/pr_alphabetic.h: Regenerated.
35781         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
35782         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
35783         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
35784         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
35785         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
35786         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
35787         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
35788         * lib/unictype/pr_combining.h: Regenerated.
35789         * lib/unictype/pr_dash.h: Regenerated.
35790         * lib/unictype/pr_decimal_digit.h: Regenerated.
35791         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
35792         * lib/unictype/pr_deprecated.h: Regenerated.
35793         * lib/unictype/pr_diacritic.h: Regenerated.
35794         * lib/unictype/pr_extender.h: Regenerated.
35795         * lib/unictype/pr_format_control.h: Regenerated.
35796         * lib/unictype/pr_grapheme_base.h: Regenerated.
35797         * lib/unictype/pr_grapheme_extend.h: Regenerated.
35798         * lib/unictype/pr_grapheme_link.h: Regenerated.
35799         * lib/unictype/pr_id_continue.h: Regenerated.
35800         * lib/unictype/pr_id_start.h: Regenerated.
35801         * lib/unictype/pr_ideographic.h: Regenerated.
35802         * lib/unictype/pr_ignorable_control.h: Regenerated.
35803         * lib/unictype/pr_lowercase.h: Regenerated.
35804         * lib/unictype/pr_math.h: Regenerated.
35805         * lib/unictype/pr_numeric.h: Regenerated.
35806         * lib/unictype/pr_other_alphabetic.h: Regenerated.
35807         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
35808         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
35809         * lib/unictype/pr_other_id_continue.h: Regenerated.
35810         * lib/unictype/pr_other_lowercase.h: Regenerated.
35811         * lib/unictype/pr_other_math.h: Regenerated.
35812         * lib/unictype/pr_punctuation.h: Regenerated.
35813         * lib/unictype/pr_sentence_terminal.h: Regenerated.
35814         * lib/unictype/pr_soft_dotted.h: Regenerated.
35815         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
35816         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
35817         * lib/unictype/pr_unified_ideograph.h: Regenerated.
35818         * lib/unictype/pr_uppercase.h: Regenerated.
35819         * lib/unictype/pr_xid_continue.h: Regenerated.
35820         * lib/unictype/pr_xid_start.h: Regenerated.
35821         * lib/unictype/pr_zero_width.h: Regenerated.
35822         * lib/unictype/scripts.h: Regenerated.
35823         * lib/unictype/scripts_byname.gperf: Regenerated.
35824         * lib/unictype/sy_java_ident.h: Regenerated.
35825         * lib/unilbrk/lbrkprop1.h: Regenerated.
35826         * lib/unilbrk/lbrkprop2.h: Regenerated.
35827         * tests/unictype/test-categ_C.c: Regenerated.
35828         * tests/unictype/test-categ_Cf.c: Regenerated.
35829         * tests/unictype/test-categ_Cn.c: Regenerated.
35830         * tests/unictype/test-categ_L.c: Regenerated.
35831         * tests/unictype/test-categ_Ll.c: Regenerated.
35832         * tests/unictype/test-categ_Lm.c: Regenerated.
35833         * tests/unictype/test-categ_Lo.c: Regenerated.
35834         * tests/unictype/test-categ_Lu.c: Regenerated.
35835         * tests/unictype/test-categ_M.c: Regenerated.
35836         * tests/unictype/test-categ_Mc.c: Regenerated.
35837         * tests/unictype/test-categ_Me.c: Regenerated.
35838         * tests/unictype/test-categ_Mn.c: Regenerated.
35839         * tests/unictype/test-categ_N.c: Regenerated.
35840         * tests/unictype/test-categ_Nd.c: Regenerated.
35841         * tests/unictype/test-categ_Nl.c: Regenerated.
35842         * tests/unictype/test-categ_No.c: Regenerated.
35843         * tests/unictype/test-categ_P.c: Regenerated.
35844         * tests/unictype/test-categ_Pd.c: Regenerated.
35845         * tests/unictype/test-categ_Pe.c: Regenerated.
35846         * tests/unictype/test-categ_Pf.c: Regenerated.
35847         * tests/unictype/test-categ_Pi.c: Regenerated.
35848         * tests/unictype/test-categ_Po.c: Regenerated.
35849         * tests/unictype/test-categ_Ps.c: Regenerated.
35850         * tests/unictype/test-categ_S.c: Regenerated.
35851         * tests/unictype/test-categ_Sk.c: Regenerated.
35852         * tests/unictype/test-categ_Sm.c: Regenerated.
35853         * tests/unictype/test-categ_So.c: Regenerated.
35854         * tests/unictype/test-ctype_alnum.c: Regenerated.
35855         * tests/unictype/test-ctype_alpha.c: Regenerated.
35856         * tests/unictype/test-ctype_graph.c: Regenerated.
35857         * tests/unictype/test-ctype_lower.c: Regenerated.
35858         * tests/unictype/test-ctype_print.c: Regenerated.
35859         * tests/unictype/test-ctype_punct.c: Regenerated.
35860         * tests/unictype/test-ctype_upper.c: Regenerated.
35861         * tests/unictype/test-decdigit.h: Regenerated.
35862         * tests/unictype/test-digit.h: Regenerated.
35863         * tests/unictype/test-numeric.h: Regenerated.
35864         * tests/unictype/test-pr_alphabetic.c: Regenerated.
35865         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
35866         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
35867         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
35868         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
35869         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
35870         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
35871         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
35872         * tests/unictype/test-pr_combining.c: Regenerated.
35873         * tests/unictype/test-pr_dash.c: Regenerated.
35874         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
35875         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
35876         * tests/unictype/test-pr_deprecated.c: Regenerated.
35877         * tests/unictype/test-pr_diacritic.c: Regenerated.
35878         * tests/unictype/test-pr_extender.c: Regenerated.
35879         * tests/unictype/test-pr_format_control.c: Regenerated.
35880         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
35881         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
35882         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
35883         * tests/unictype/test-pr_id_continue.c: Regenerated.
35884         * tests/unictype/test-pr_id_start.c: Regenerated.
35885         * tests/unictype/test-pr_ideographic.c: Regenerated.
35886         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
35887         * tests/unictype/test-pr_lowercase.c: Regenerated.
35888         * tests/unictype/test-pr_math.c: Regenerated.
35889         * tests/unictype/test-pr_numeric.c: Regenerated.
35890         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
35891         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
35892         Regenerated.
35893         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
35894         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
35895         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
35896         * tests/unictype/test-pr_other_math.c: Regenerated.
35897         * tests/unictype/test-pr_punctuation.c: Regenerated.
35898         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
35899         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
35900         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
35901         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
35902         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
35903         * tests/unictype/test-pr_uppercase.c: Regenerated.
35904         * tests/unictype/test-pr_xid_continue.c: Regenerated.
35905         * tests/unictype/test-pr_xid_start.c: Regenerated.
35906         * tests/unictype/test-pr_zero_width.c: Regenerated.
35907
35908         Update to Unicode 5.1.0.
35909         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
35910         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
35911         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
35912         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
35913         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
35914         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
35915         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
35916         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
35917         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
35918         (nonspacing_table_ind): Update.
35919         * tests/uniwidth/test-uc_width2.sh: Update expected result.
35920
35921         Update to Unicode 5.1.0.
35922         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
35923         code transform.
35924         * lib/uniname/uniname.c (unicode_character_name,
35925         unicode_name_character): Add the range 0x1Fxxx to the code transform.
35926         * lib/uniname/uninames.h: Regenerated.
35927         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
35928
35929 2009-02-07  Bruno Haible  <bruno@clisp.org>
35930
35931         Merge gen-ctype and gen-lbrk into a single program.
35932         * lib/gen-uni-tables.c: New file, incorporating
35933         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
35934         Add directory prefixes to the names of the generated files.
35935         * lib/unictype/gen-ctype.c: Remove file.
35936         * lib/unilbrk/gen-lbrk.c: Remove file.
35937         * modules/gen-uni-tables: New file.
35938         * modules/unictype/gen-ctype: Remove file.
35939         * modules/unilbrk/gen-lbrk: Remove file.
35940
35941 2009-02-07  Bruno Haible  <bruno@clisp.org>
35942
35943         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
35944
35945         New module 'unistr/u32-strcoll'.
35946         * modules/unistr/u32-strcoll: New file.
35947         * lib/unistr/u32-strcoll.c: New file.
35948
35949         New module 'unistr/u16-strcoll'.
35950         * modules/unistr/u16-strcoll: New file.
35951         * lib/unistr/u16-strcoll.c: New file.
35952
35953         New module 'unistr/u8-strcoll'.
35954         * modules/unistr/u8-strcoll: New file.
35955         * lib/unistr/u8-strcoll.c: New file.
35956         * lib/unistr/u-strcoll.h: New file.
35957
35958 2009-02-07  Bruno Haible  <bruno@clisp.org>
35959
35960         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
35961         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35962         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35963         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
35964         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
35965         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
35966
35967 2009-02-07  Bruno Haible  <bruno@clisp.org>
35968
35969         Make 64-bit clean.
35970         * lib/unictype/gen-ctype.c (output_predicate, output_category,
35971         output_combclass, output_bidi_category, output_decimal_digit,
35972         output_digit, output_numeric, output_mirror, output_scripts,
35973         output_ident_category): Use proper width specifier in format strings.
35974
35975 2009-02-07  Bruno Haible  <bruno@clisp.org>
35976
35977         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
35978         failure behaviour.
35979
35980 2009-02-07  Jim Meyering  <meyering@redhat.com>
35981
35982         regex: avoid compilation failure with upcoming gcc-4.4
35983         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
35984         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
35985         "... error: integer overflow in preprocessor expression".
35986
35987 2009-02-05  Ben Pfaff  <blp@gnu.org>
35988
35989         Fix link errors on Windows when close module is used.
35990         * modules/close: Add $(LIB_CLOSE) to Link section.
35991         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
35992         $(LIB_CLOSE) on Windows.
35993
35994 2009-02-05  Jim Meyering  <meyering@redhat.com>
35995
35996         still avoid unused-parameter warnings, but do it cleanly
35997         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
35998         (get_fs_usage): Cast to void instead.
35999         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
36000         (dev_from_mount_options, read_file_system_list): Cast to void.
36001         Prompted by Bruno Haible.
36002
36003 2009-02-04  Jim Meyering  <meyering@redhat.com>
36004
36005         fsusage.c: correct copyright year
36006         * lib/fsusage.c: Reflect year in which the change is pushed into
36007
36008         avoid misc. warnings
36009         * lib/fsusage.c (UNUSED_PARAM): Define.
36010         (get_fs_usage): Mark parameter "disk" as unused.
36011         * lib/getugroups.c (getgrent): Use "void" in prototype.
36012         * lib/mountlist.c: Mark unused parameters.
36013         (read_file_system_list): Declare a local with "const".
36014         * lib/nanosleep.c (getnow): Declare static.
36015         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
36016
36017         dirfd: set errno upon failure
36018         * lib/dirfd.c: Include <errno.h>.
36019         Set errno to ENOTSUP when returning -1.
36020         * modules/dirfd (Depends-on): Add errno.
36021         Suggested by John Kodis <kodis@comcast.net>.
36022
36023 2009-02-01  Bruno Haible  <bruno@clisp.org>
36024
36025         Don't assume sizeof (long) >= sizeof (void *).
36026         * lib/memcmp.c: Include stdint.h.
36027         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
36028         srcp2 to 'const byte *'.
36029         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
36030         types to uintptr_t.
36031         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
36032         * modules/memcmp (Depends-on): Add stdint.
36033         Reported by Ozkan Sezer <sezeroz@gmail.com>.
36034
36035 2009-01-30  Eric Blake  <ebb9@byu.net>
36036
36037         fix more require-before-expand issues
36038         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
36039         expand, AC_PROG_AWK.
36040         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
36041
36042 2009-01-28  Eric Blake  <ebb9@byu.net>
36043
36044         version-etc: use consistent URL formatting
36045         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
36046         Improve formatting.  Use fputs for string without %.
36047
36048 2009-01-28  Jim Meyering  <meyering@redhat.com>
36049
36050         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
36051         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
36052         "underquoted definition of NAME" from autoconf-2.59.
36053
36054 2009-01-28  Bruno Haible  <bruno@clisp.org>
36055
36056         * doc/gnulib.texi: Add "Obsolete modules" to index.
36057
36058 2009-01-28  Jim Meyering  <meyering@redhat.com>
36059
36060         useless-if-before-free: recognize more variants
36061         * build-aux/useless-if-before-free: Also recognize e.g.,
36062         if (NULL != p) free (p);
36063
36064 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
36065
36066         test-getaddrinfo: skip (don't fail) this test when there's no network
36067         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
36068         on the presumption that it means you lack network access.
36069
36070 2009-01-26  Jim Meyering  <meyering@redhat.com>
36071
36072         fflush: avoid warnings on modern systems
36073         * lib/fflush.c (rpl_fflush): Move declarations of locals,
36074         pos and result, into scopes where they're used.
36075
36076 2009-01-26  Eric Blake  <ebb9@byu.net>
36077
36078         Silence warning reintroduced by recent extensions patch.
36079         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
36080         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
36081         autoconf.
36082
36083         Backport improved autoconf semantics of AC_DEFUN_ONCE.
36084         * m4/00gnulib.m4: New file.
36085         * gnulib-tool (func_get_filelist): Always use it.
36086         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
36087         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
36088
36089 2009-01-25  Bruno Haible  <bruno@clisp.org>
36090
36091         Make test-quotearg work on MacOS X and AIX.
36092         * tests/test-quotearg.sh: New file.
36093         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
36094         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
36095         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
36096         include <libintl.h>.
36097         (fake_locale): Remove variable.
36098         (gettext, dgettext, dcgettext): Remove functions.
36099         (main): Instead of setting a fake locale, set a real locale. Call
36100         textdomain and bindtextdomain.
36101         * modules/quotearg-tests (Files): Add the new files.
36102         (Depends-on): Add gettext, setenv, unsetenv.
36103         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36104         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
36105         Augment TESTS_ENVIRONMENT.
36106
36107 2009-01-25  Bruno Haible  <bruno@clisp.org>
36108
36109         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
36110         fr_FR.ISO8859-1 locale on MacOS X.
36111         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
36112         ja_JP.eucJP locale on MacOS X.
36113         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
36114         zh_CN.GB18030 locale on MacOS X.
36115
36116 2009-01-25  Bruno Haible  <bruno@clisp.org>
36117
36118         Avoid link errors on MacOS X 10.3.
36119         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
36120         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36121
36122 2009-01-25  Bruno Haible  <bruno@clisp.org>
36123
36124         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36125         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
36126         * modules/pipe (Files): Remove m4/posix_spawn.m4.
36127         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36128         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
36129         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36130         posix_spawnattr_init, posix_spawnattr_setsigmask,
36131         posix_spawnattr_setflags, posix_spawnattr_destroy.
36132
36133         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
36134         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
36135         * modules/execute (Files): Remove m4/posix_spawn.m4.
36136         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
36137         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
36138         posix_spawnattr_init, posix_spawnattr_setsigmask,
36139         posix_spawnattr_setflags, posix_spawnattr_destroy.
36140
36141 2009-01-25  Bruno Haible  <bruno@clisp.org>
36142
36143         * lib/glthread/threadlib.c: Include <stdlib.h>.
36144
36145 2009-01-25  Bruno Haible  <bruno@clisp.org>
36146
36147         * lib/glthread/threadlib.c (dummy): New declaration.
36148
36149 2009-01-25  Bruno Haible  <bruno@clisp.org>
36150
36151         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
36152         multibyte characters also for the GB18030 encoding. Don't crash when
36153         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
36154
36155 2009-01-25  Bruno Haible  <bruno@clisp.org>
36156
36157         Avoid redefining 'struct random_data' on OSF/1 5.1.
36158         * lib/stdlib.in.h: Include <random.h> if it exists.
36159         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
36160         HAVE_RANDOM_H. Include <random.h> when testing whether
36161         'struct random_data' exists.
36162         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
36163
36164 2009-01-25  Bruno Haible  <bruno@clisp.org>
36165
36166         Don't install charset.alias on MacOS X >= 10.3.
36167         * lib/localcharset.c (DARWIN7): New macro.
36168         (get_charset_aliases): Hardcode the result for Darwin7.
36169         * modules/localcharset (install-exec-local): Don't install
36170         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
36171
36172 2009-01-25  Bruno Haible  <bruno@clisp.org>
36173
36174         Don't install charset.alias on mingw and Cygwin.
36175         * modules/localcharset (install-exec-local): Don't install
36176         charset.alias on mingw and Cygwin, if the file does not yet exist.
36177         The result for these platforms is hardcoded in localcharset.c.
36178
36179 2009-01-25  Bruno Haible  <bruno@clisp.org>
36180
36181         Make it possible again to use AC_GNU_SOURCE together with gnulib.
36182         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
36183         before requiring AC_USE_SYSTEM_EXTENSIONS.
36184
36185 2009-01-25  Jim Meyering  <meyering@redhat.com>
36186
36187         c-strtod: avoid warnings
36188         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
36189         "assignment discards qualifiers from pointer target type" warnings.
36190
36191 2009-01-24  Bruno Haible  <bruno@clisp.org>
36192
36193         Add support for non-UTF-8 locales on MacOS X.
36194         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
36195         canonical encodings. For Darwin 7 and newer, don't map traditional
36196         encodings to UTF-8.
36197         Reported by Vincent Lefevre <vincent@vinc17.org>
36198         at <http://savannah.gnu.org/bugs/?25235>.
36199
36200 2009-01-24  Bruno Haible  <bruno@clisp.org>
36201
36202         * doc/gnulib.texi (Obsolete modules): New section.
36203         Reported by Mike Frysinger <vapier@gentoo.org>.
36204
36205 2009-01-24  Bruno Haible  <bruno@clisp.org>
36206
36207         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
36208         (%.dvi): New rule.
36209
36210 2009-01-24  Bruno Haible  <bruno@clisp.org>
36211
36212         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
36213         Reported by Eric Blake.
36214
36215 2009-01-24  Bruno Haible  <bruno@clisp.org>
36216
36217         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
36218         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
36219         Reported by Gary V. Vaughan <gary@gnu.org>.
36220
36221 2009-01-24  Bruno Haible  <bruno@clisp.org>
36222
36223         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
36224
36225 2009-01-23  Bruno Haible  <bruno@clisp.org>
36226
36227         Make c-strtod, c-strtold usable in libraries.
36228         * lib/c-strtod.c: Include string.h instead of xalloc.h.
36229         (C_STRTOD): Call strdup instead of xstrdup.
36230         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
36231         * modules/c-strtold (Depends-on): Likewise.
36232         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
36233         * NEWS: Mention the change.
36234         Reported by Michael Gold <mgold@ncf.ca>.
36235
36236 2009-01-23  Jim Meyering  <meyering@redhat.com>
36237
36238         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
36239         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
36240         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
36241
36242 2009-01-23  Simon Josefsson  <simon@josefsson.org>
36243
36244         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
36245         GNU CoreUtils.
36246         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
36247         * modules/version-etc (Description): Update.
36248
36249 2009-01-22  Bruno Haible  <bruno@clisp.org>
36250
36251         Cache the C locale object.
36252         * lib/c-strtod.c (c_locale_cache): New variable.
36253         (c_locale): New function.
36254         (C_STRTOD): Use it, and don't call freelocale.
36255         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
36256         Suggested by Paolo Bonzini.
36257
36258 2009-01-21  Bruno Haible  <bruno@clisp.org>
36259
36260         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
36261         conditions other than overflow.
36262
36263 2009-01-21  Bruno Haible  <bruno@clisp.org>
36264
36265         * lib/c-strtod.c: Include errno.h.
36266         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
36267         value from STRTOD_L and STRTOD.
36268
36269 2009-01-21  Bruno Haible  <bruno@clisp.org>
36270         and Jim Meyering  <meyering@redhat.com>
36271
36272         nanosleep: skip configure test (fail it) for apple universal builds
36273         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
36274         universal builds, assume that nanosleep does not work.
36275         * modules/nanosleep (Depends-on): Add multiarch.
36276
36277         mktime: skip configure test (fail it) for apple universal builds
36278         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
36279         universal builds, assume that mktime does not work.
36280         * modules/mktime (Depends-on): Add multiarch.
36281
36282 2009-01-21  Eric Blake  <ebb9@byu.net>
36283
36284         multiarch: avoid expand-before-require warning
36285         * modules/multiarch (configure.ac): Require, rather than expand,
36286         gl_MULTIARCH.
36287         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
36288         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
36289         enforce that all clients require it.  Partial reversion of
36290         2008-12-29 patch.
36291
36292         error: avoid expand-before-require warning
36293         * modules/errno (configure.ac): Require, rather than expand,
36294         gl_HEADER_ERRNO_H.
36295         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
36296         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
36297         enforce that all clients require it.
36298
36299         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
36300         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
36301         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
36302         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
36303
36304 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
36305
36306         Revert:
36307         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36308
36309         regex: do not depend on obsolete modules.
36310         * modules/regex: Remove memcmp and memmove.
36311
36312 2009-01-20  Bruno Haible  <bruno@clisp.org>
36313
36314         Make the 'link' module link on Windows NT 4.
36315         * lib/link.c (_WIN32_WINNT): Don't define.
36316         (CreateHardLinkFuncType): New type.
36317         (CreateHardLinkFunc, initialized): New variables.
36318         (initialize): New function.
36319         (link): Invoke CreateHardLink indirectly through the function pointer.
36320
36321 2009-01-20  Bruno Haible  <bruno@clisp.org>
36322
36323         Fix compilation failure on mingw.
36324         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36325
36326 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36327
36328         * doc/c-strtod.texi: Mention a couple of restrictions.
36329
36330 2009-01-20  Jim Meyering  <meyering@redhat.com>
36331
36332         gettimeofday: move more declarations out of functions
36333         * lib/gettimeofday.c: Move extern declarations of tzset and
36334         gmtime out of containing functions.  Prompted by Bruno Haible.
36335
36336 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36337
36338         regex: do not depend on obsolete modules.
36339         * modules/regex: Remove memcmp and memmove.
36340
36341 2009-01-19  Bruno Haible  <bruno@clisp.org>
36342
36343         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36344         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36345         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36346         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36347         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36348
36349 2009-01-19  Bruno Haible  <bruno@clisp.org>
36350
36351         * tests/test-link.c: Include <errno.h>.
36352         (main): Exit with code 77 when a hard link cannot be created due to
36353         the file system.
36354         * tests/test-link.sh: Skip test when a hard link cannot be created due
36355         to the file system.
36356         Suggested by Eric Blake.
36357
36358 2009-01-19  Martin Lambers  <marlam@marlam.de>
36359
36360         * modules/link-tests: New file.
36361         * tests/test-link.sh: New file.
36362         * tests/test-link.c: New file.
36363
36364 2009-01-19  Eric Blake  <ebb9@byu.net>
36365
36366         doc: mention another function added in cygwin 1.7.0
36367         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36368         Another new function in cygwin 1.7.
36369
36370 2009-01-19  Bruno Haible  <bruno@clisp.org>
36371
36372         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36373         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36374         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36375         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36376         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36377         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36378         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36379         * m4/md4.m4 (gl_MD4): Likewise.
36380         * m4/md5.m4 (gl_MD5): Likewise.
36381         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36382         * m4/sha1.m4 (gl_SHA1): Likewise.
36383         * m4/sha256.m4 (gl_SHA256): Likewise.
36384         * m4/sha512.m4 (gl_SHA512): Likewise.
36385
36386 2009-01-19  Bruno Haible  <bruno@clisp.org>
36387
36388         * modules/uniname/uniname-tests (Depends-on): Add progname.
36389         * tests/uniname/test-uninames.c: Include progname.h.
36390         (main): Call set_program_name.
36391
36392         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36393         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36394         (main): Call set_program_name.
36395
36396         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36397         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36398         (main): Call set_program_name.
36399
36400         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36401         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36402         (main): Call set_program_name.
36403
36404         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36405         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36406         (main): Call set_program_name.
36407
36408         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36409         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36410         (main): Call set_program_name.
36411
36412         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36413         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36414         (main): Call set_program_name.
36415
36416         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36417         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36418         (main): Call set_program_name.
36419
36420         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36421         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36422         (main): Call set_program_name.
36423
36424 2009-01-19  Eric Blake  <ebb9@byu.net>
36425
36426         test-unistd: test previous patch
36427         * tests/test-unistd.c: Test *_FILENO macros.
36428
36429         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36430         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36431         Guarantee a definition.
36432         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36433         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36434         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36435         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36436         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36437         Likewise.
36438         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36439         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36440         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36441         Likewise.
36442         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36443         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36444         (STDERR_FILENO): Likewise.
36445         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36446         (STDERR_FILENO): Likewise.
36447         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36448         (STDERR_FILENO): Likewise.
36449         Reported by Elbert Pol.
36450
36451 2009-01-19  Eric Blake  <ebb9@byu.net>
36452
36453         doc: mention more functions added in cygwin 1.7.0
36454         * doc/posix-functions/abort.texi (abort): Update wording related
36455         to cygwin.
36456         * doc/posix-functions/daylight.texi (daylight): Likewise.
36457         * doc/posix-functions/optarg.texi (optarg): Likewise.
36458         * doc/posix-functions/optarg.texi (opterr): Likewise.
36459         * doc/posix-functions/optarg.texi (optind): Likewise.
36460         * doc/posix-functions/optarg.texi (optopt): Likewise.
36461         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36462         worked in 1.5.x, and was withdrawn in 1.7.
36463         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36464         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36465         cygwin versions.
36466         * doc/posix-functions/perror.texi (perror): Likewise.
36467         * doc/posix-functions/printf.texi (printf): Likewise.
36468         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36469         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36470         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36471         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36472         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36473         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36474         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36475         Likewise.
36476         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36477         Likewise.
36478         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36479         this function.
36480         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36481         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36482         Likewise.
36483         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36484         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36485         * doc/posix-functions/confstr.texi (confstr): Likewise.
36486         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36487         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36488         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36489         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36490         * doc/posix-functions/fputws.texi (fputws): Likewise.
36491         * doc/posix-functions/fwide.texi (fwide): Likewise.
36492         * doc/posix-functions/getwc.texi (getwc): Likewise.
36493         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36494         * doc/posix-functions/putwc.texi (putwc): Likewise.
36495         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36496         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36497         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36498         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36499         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36500         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36501         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36502         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36503         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36504         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36505         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36506
36507 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36508
36509         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36510         * lib/ioctl.c: Include <sys/ioctl.h>.
36511
36512 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36513
36514         * modules/getdate-tests (Depends-on): Add progname.
36515         * tests/test-getdate.c: Use progname module, to avoid link errors
36516         on non-glibc systems.
36517
36518 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36519
36520         * modules/filenamecat-tests (Depends-on): Add progname.
36521         * modules/fstrcmp-tests (Depends-on): Likewise.
36522
36523         * tests/test-filenamecat.c: Use progname module, to avoid link
36524         errors on non-glibc systems.
36525         * tests/test-fstrcmp.c: Likewise.
36526
36527 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36528
36529         gettimeofday: avoid warning: nested extern declaration of 'localtime'
36530         * lib/gettimeofday.c: Move extern declaration out of function.
36531
36532 2009-01-18  Bruno Haible  <bruno@clisp.org>
36533
36534         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
36535         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
36536         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
36537
36538 2009-01-18  Bruno Haible  <bruno@clisp.org>
36539
36540         * lib/strftime.c (MEMPCPY): Remove unused macro.
36541         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
36542
36543 2009-01-18  Martin Lambers  <marlam@marlam.de>
36544
36545         New module 'link'.
36546         * lib/unistd.in.h (link): New declaration.
36547         * lib/link.c: New file.
36548         * m4/link.m4: New file.
36549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
36550         HAVE_LINK.
36551         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
36552         * modules/link: New file.
36553         * doc/posix-functions/link.texi: Mention the new module.
36554
36555 2009-01-18  Bruno Haible  <bruno@clisp.org>
36556
36557         * tests/test-avltree_list.c (main): Call set_program_name.
36558         * tests/test-avltree_oset.c (main): Likewise.
36559         * tests/test-obstack-printf.c: Include progname.h.
36560         (main): Call set_program_name.
36561         * tests/test-quotearg.c: Include progname.h.
36562         (main): Call set_program_name.
36563         * tests/test-xmemdup0.c: Include progname.h.
36564         (main): Call set_program_name.
36565
36566 2009-01-18  Bruno Haible  <bruno@clisp.org>
36567
36568         New module 'alphasort'.
36569         * lib/dirent.in.h (alphasort): New declaration.
36570         * lib/alphasort.c: New file, from glibc with modifications.
36571         * m4/alphasort.m4: New file.
36572         * modules/alphasort: New file.
36573         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
36574         HAVE_ALPHASORT.
36575         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
36576         HAVE_ALPHASORT.
36577         * doc/posix-functions/alphasort.texi: Mention the new module and the
36578         portability problems.
36579
36580 2009-01-18  Bruno Haible  <bruno@clisp.org>
36581
36582         New module 'scandir'.
36583         * lib/dirent.in.h (scandir): New declaration.
36584         * lib/scandir.c: New file, from glibc with modifications.
36585         * m4/scandir.m4: New file.
36586         * modules/scandir: New file.
36587         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
36588         HAVE_SCANDIR.
36589         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
36590         HAVE_SCANDIR.
36591         * doc/posix-functions/scandir.texi: Mention the new module and the
36592         portability problems.
36593
36594 2009-01-17  Bruno Haible  <bruno@clisp.org>
36595
36596         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
36597         Update documentation.
36598         (func_remove_suffix): Escape all dots in the suffix. Update
36599         documentation.
36600         (func_filter_filelist): Update documentation.
36601         Reported by Ralf Wildenhues.
36602
36603 2009-01-17  Bruno Haible  <bruno@clisp.org>
36604
36605         * modules/dprintf-posix-tests: New file.
36606         * tests/test-dprintf-posix.sh: New file.
36607         * tests/test-dprintf-posix.c: New file.
36608
36609         New modules 'dprintf', 'dprintf-posix'.
36610         * lib/stdio.in.h (dprintf): New declaration.
36611         * lib/dprintf.c: New file.
36612         * m4/dprintf.m4: New file.
36613         * m4/dprintf-posix.m4: New file.
36614         * modules/dprintf: New file.
36615         * modules/dprintf-posix: New file.
36616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
36617         HAVE_DPRINTF, REPLACE_DPRINTF.
36618         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36619         HAVE_DPRINTF, REPLACE_DPRINTF.
36620         * doc/posix-functions/dprintf.texi: Mention the new modules.
36621
36622 2009-01-17  Bruno Haible  <bruno@clisp.org>
36623
36624         * modules/vdprintf-posix-tests: New file.
36625         * tests/test-vdprintf-posix.sh: New file.
36626         * tests/test-vdprintf-posix.c: New file.
36627
36628         New modules 'vdprintf', 'vdprintf-posix'.
36629         * lib/stdio.in.h (vdprintf): New declaration.
36630         * lib/vdprintf.c: New file.
36631         * m4/vdprintf.m4: New file.
36632         * m4/vdprintf-posix.m4: New file.
36633         * modules/vdprintf: New file.
36634         * modules/vdprintf-posix: New file.
36635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36636         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36637         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36638         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36639         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36640
36641 2009-01-17  Bruno Haible  <bruno@clisp.org>
36642
36643         Fix replacement of fopen on mingw.
36644         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36645         mingw.
36646
36647 2009-01-17  Bruno Haible  <bruno@clisp.org>
36648
36649         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36650         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36651
36652 2009-01-17  Bruno Haible  <bruno@clisp.org>
36653
36654         Avoid test-fflush2.sh failure on mingw.
36655         * tests/test-fflush2.c: Include binary-io.h.
36656         (main): Put standard input into binary mode.
36657         * modules/fflush-tests (Depends-on): Add binary-io.
36658
36659 2009-01-17  Bruno Haible  <bruno@clisp.org>
36660
36661         * lib/wchar.in.h: In another particular situation, include only the
36662         system's <wchar.h> file.
36663         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36664         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36665         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36666
36667 2009-01-17  Bruno Haible  <bruno@clisp.org>
36668
36669         Support for stripping executables in --enable-relocatable.
36670         * build-aux/install-reloc: Expect one more argument, or an environment
36671         variable RELOC_STRIP_PROG. If set, strip the destination program and
36672         its wrapper.
36673         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36674         RELOC_STRIP_PROG.
36675         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36676         to set RELOCATABLE_STRIP.
36677         * NEWS: Mention the new Makefile requirement.
36678
36679 2009-01-17  Bruno Haible  <bruno@clisp.org>
36680
36681         * build-aux/install-reloc: Remove debugging information left over by
36682         C compiler on MacOS X.
36683
36684 2009-01-17  Bruno Haible  <bruno@clisp.org>
36685
36686         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36687         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36688         _NSGetExecutablePath.
36689
36690 2009-01-16  Jim Meyering  <meyering@redhat.com>
36691
36692         strerror: avoid warnings about discarding "const"
36693         * lib/strerror.c (rpl_strerror): Instead of returning a const
36694         string from each and every "case", use a variable, and add a single
36695         cast after the switch.
36696
36697 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
36698
36699         * lib/arpa_inet.in.h: Add extern "C" block for C++.
36700
36701 2009-01-16  Bruno Haible  <bruno@clisp.org>
36702
36703         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
36704         array initializer syntax that also works in C++ mode.
36705         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36706
36707 2009-01-16  Jim Meyering  <meyering@redhat.com>
36708
36709         poll: suppress a warning
36710         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
36711         to ignore "...unsigned expression < 0 is always false" warnings.
36712
36713 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
36714
36715         poll: remove declarations of unused variables
36716         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
36717         sockbuf and optlen.
36718
36719 2009-01-15  Bruno Haible  <bruno@clisp.org>
36720
36721         Make fflush-after-ungetc POSIX compliant on BSD systems.
36722         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
36723         (clear_ungetc_buffer): Implement also for other systems.
36724         (rpl_fflush): On glibc systems, invoke
36725         clear_ungetc_buffer_preserving_position. Otherwise, invoke
36726         clear_ungetc_buffer after fetching the stream's position, not before.
36727
36728 2009-01-15  Bruno Haible  <bruno@clisp.org>
36729
36730         Make fflush-after-ungetc POSIX compliant on glibc systems.
36731         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
36732         after ungetc.
36733         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
36734         (rpl_fflush): On glibc systems, simply call the system's fflush
36735         function after clearing the ungetc buffer.
36736         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
36737         Instead, lseek only to the end of file, then use the system's fseeko
36738         for the rest. On glibc systems, reset the EOF indicator bit.
36739
36740 2009-01-15  Jim Meyering  <meyering@redhat.com>
36741
36742         openmp.m4: revert quote-adding change, for portability to older autoconf
36743         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
36744         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
36745         Simon Josefsson noticed the problem when using autoconf-2.61.
36746
36747 2009-01-15  Bruno Haible  <bruno@clisp.org>
36748
36749         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
36750         * tests/test-fflush2.c (ASSERT): Always fail.
36751         (main): Add two tests for fflush() after ungetc(), taking into account
36752         the Austin Group's clarification.
36753         Suggested by Eric Blake.
36754
36755 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
36756
36757         mktime.m4: remove K&R-style function prototypes
36758         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
36759         for the Sun C++ compiler.
36760
36761 2009-01-14  Bruno Haible  <bruno@clisp.org>
36762
36763         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
36764         while including <wchar.h>.
36765         * lib/wchar.in.h: In two particular situations on HP-UX, include only
36766         the system's <wchar.h> file.
36767         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36768
36769 2009-01-14  Bruno Haible  <bruno@clisp.org>
36770
36771         * m4/csharp.m4: Don't mention gettext on the serial number line.
36772         * m4/csharpexec.m4: Likewise.
36773         * m4/eaccess.m4: Likewise.
36774         * m4/javaexec.m4: Likewise.
36775         * m4/sig_atomic_t.m4: Likewise.
36776         * m4/tmpdir.m4: Likewise.
36777         * m4/intldir.m4: Bump gettext version.
36778         * m4/lib-ld.m4: Likewise.
36779
36780 2009-01-14  Bruno Haible  <bruno@clisp.org>
36781
36782         * lib/progname.c (set_program_name): Add more comments.
36783         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36784
36785 2009-01-14  Simon Josefsson  <simon@josefsson.org>
36786
36787         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
36788         were sys/stat.h does not define it.
36789
36790 2009-01-14  Jim Meyering  <meyering@redhat.com>
36791
36792         many *.m4 files: improve m4 quoting
36793         99% of this change was performed by running the following commands:
36794         git ls-files | grep '\.m4$' | xargs perl -pi \
36795           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
36796           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36797           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36798           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
36799         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
36800         The remainder were to add Copyright dates, increment serial numbers,
36801         undo some changes in comments, exclude m4/intl.m4, and add quotes
36802         around the "1" in ",1" where the unusual spacing prohibited the
36803         above regexps from doing the job.  For more details, see
36804         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
36805         * m4/acl.m4: Modified.
36806         * m4/afs.m4: Likewise.
36807         * m4/alloca.m4: Likewise.
36808         * m4/argp.m4: Likewise.
36809         * m4/argz.m4: Likewise.
36810         * m4/atexit.m4: Likewise.
36811         * m4/bison-i18n.m4: Likewise.
36812         * m4/bison.m4: Likewise.
36813         * m4/byteswap.m4: Likewise.
36814         * m4/c-stack.m4: Likewise.
36815         * m4/c-strtod.m4: Likewise.
36816         * m4/calloc.m4: Likewise.
36817         * m4/canonicalize-lgpl.m4: Likewise.
36818         * m4/chown.m4: Likewise.
36819         * m4/clock_time.m4: Likewise.
36820         * m4/codeset.m4: Likewise.
36821         * m4/copy-file.m4: Likewise.
36822         * m4/csharp.m4: Likewise.
36823         * m4/csharpcomp.m4: Likewise.
36824         * m4/csharpexec.m4: Likewise.
36825         * m4/d-ino.m4: Likewise.
36826         * m4/d-type.m4: Likewise.
36827         * m4/dirfd.m4: Likewise.
36828         * m4/double-slash-root.m4: Likewise.
36829         * m4/eaccess.m4: Likewise.
36830         * m4/eealloc.m4: Likewise.
36831         * m4/environ.m4: Likewise.
36832         * m4/errno_h.m4: Likewise.
36833         * m4/euidaccess.m4: Likewise.
36834         * m4/execute.m4: Likewise.
36835         * m4/fatal-signal.m4: Likewise.
36836         * m4/fchdir.m4: Likewise.
36837         * m4/fcntl_h.m4: Likewise.
36838         * m4/fileblocks.m4: Likewise.
36839         * m4/filenamecat.m4: Likewise.
36840         * m4/findprog.m4: Likewise.
36841         * m4/flexmember.m4: Likewise.
36842         * m4/fnmatch.m4: Likewise.
36843         * m4/fopen.m4: Likewise.
36844         * m4/fpending.m4: Likewise.
36845         * m4/fprintf-posix.m4: Likewise.
36846         * m4/free.m4: Likewise.
36847         * m4/frexp.m4: Likewise.
36848         * m4/frexpl.m4: Likewise.
36849         * m4/fsusage.m4: Likewise.
36850         * m4/ftruncate.m4: Likewise.
36851         * m4/gc-camellia.m4: Likewise.
36852         * m4/gc-random.m4: Likewise.
36853         * m4/gc.m4: Likewise.
36854         * m4/getaddrinfo.m4: Likewise.
36855         * m4/getcwd-abort-bug.m4: Likewise.
36856         * m4/getcwd-path-max.m4: Likewise.
36857         * m4/getdate.m4: Likewise.
36858         * m4/getdomainname.m4: Likewise.
36859         * m4/getgroups.m4: Likewise.
36860         * m4/gethostname.m4: Likewise.
36861         * m4/gethrxtime.m4: Likewise.
36862         * m4/getline.m4: Likewise.
36863         * m4/getloadavg.m4: Likewise.
36864         * m4/getndelim2.m4: Likewise.
36865         * m4/getpass.m4: Likewise.
36866         * m4/gettext.m4: Likewise.
36867         * m4/gettime.m4: Likewise.
36868         * m4/gettimeofday.m4: Likewise.
36869         * m4/gnulib-common.m4: Likewise.
36870         * m4/group-member.m4: Likewise.
36871         * m4/host-os.m4: Likewise.
36872         * m4/iconv.m4: Likewise.
36873         * m4/iconv_open.m4: Likewise.
36874         * m4/inet_ntop.m4: Likewise.
36875         * m4/inet_pton.m4: Likewise.
36876         * m4/inline.m4: Likewise.
36877         * m4/intldir.m4: Likewise.
36878         * m4/intlmacosx.m4: Likewise.
36879         * m4/intmax.m4: Likewise.
36880         * m4/intmax_t.m4: Likewise.
36881         * m4/inttypes.m4: Likewise.
36882         * m4/inttypes_h.m4: Likewise.
36883         * m4/inttypes-pri.m4: Likewise.
36884         * m4/isapipe.m4: Likewise.
36885         * m4/isnand.m4: Likewise.
36886         * m4/isnanf.m4: Likewise.
36887         * m4/isnanl.m4: Likewise.
36888         * m4/javacomp.m4: Likewise.
36889         * m4/javaexec.m4: Likewise.
36890         * m4/jm-winsz1.m4: Likewise.
36891         * m4/jm-winsz2.m4: Likewise.
36892         * m4/lchown.m4: Likewise.
36893         * m4/lcmessage.m4: Likewise.
36894         * m4/ldexpl.m4: Likewise.
36895         * m4/lib-ld.m4: Likewise.
36896         * m4/lib-link.m4: Likewise.
36897         * m4/libsigsegv.m4: Likewise.
36898         * m4/link-follow.m4: Likewise.
36899         * m4/localcharset.m4: Likewise.
36900         * m4/locale-fr.m4: Likewise.
36901         * m4/locale-ja.m4: Likewise.
36902         * m4/locale-tr.m4: Likewise.
36903         * m4/locale-zh.m4: Likewise.
36904         * m4/lock.m4: Likewise.
36905         * m4/longlong.m4: Likewise.
36906         * m4/ls-mntd-fs.m4: Likewise.
36907         * m4/lstat.m4: Likewise.
36908         * m4/malloc.m4: Likewise.
36909         * m4/mathl.m4: Likewise.
36910         * m4/mbrtowc.m4: Likewise.
36911         * m4/mbstate_t.m4: Likewise.
36912         * m4/mbswidth.m4: Likewise.
36913         * m4/memchr.m4: Likewise.
36914         * m4/memcmp.m4: Likewise.
36915         * m4/memcpy.m4: Likewise.
36916         * m4/memmem.m4: Likewise.
36917         * m4/memmove.m4: Likewise.
36918         * m4/mempcpy.m4: Likewise.
36919         * m4/memrchr.m4: Likewise.
36920         * m4/memset.m4: Likewise.
36921         * m4/minmax.m4: Likewise.
36922         * m4/mkdir-slash.m4: Likewise.
36923         * m4/mkdtemp.m4: Likewise.
36924         * m4/mktime.m4: Likewise.
36925         * m4/mmap-anon.m4: Likewise.
36926         * m4/mountlist.m4: Likewise.
36927         * m4/nanosleep.m4: Likewise.
36928         * m4/nls.m4: Likewise.
36929         * m4/nocrash.m4: Likewise.
36930         * m4/open.m4: Likewise.
36931         * m4/openat.m4: Likewise.
36932         * m4/openmp.m4: Likewise.
36933         * m4/pathmax.m4: Likewise.
36934         * m4/perl.m4: Likewise.
36935         * m4/physmem.m4: Likewise.
36936         * m4/pipe.m4: Likewise.
36937         * m4/po.m4: Likewise.
36938         * m4/poll.m4: Likewise.
36939         * m4/posixtm.m4: Likewise.
36940         * m4/posixver.m4: Likewise.
36941         * m4/printf-frexp.m4: Likewise.
36942         * m4/printf-frexpl.m4: Likewise.
36943         * m4/printf-posix.m4: Likewise.
36944         * m4/printf-posix-rpl.m4: Likewise.
36945         * m4/printf.m4: Likewise.
36946         * m4/progtest.m4: Likewise.
36947         * m4/putenv.m4: Likewise.
36948         * m4/readline.m4: Likewise.
36949         * m4/readlink.m4: Likewise.
36950         * m4/readutmp.m4: Likewise.
36951         * m4/realloc.m4: Likewise.
36952         * m4/regex.m4: Likewise.
36953         * m4/relocatable.m4: Likewise.
36954         * m4/relocatable-lib.m4: Likewise.
36955         * m4/rename-dest-slash.m4: Likewise.
36956         * m4/rename.m4: Likewise.
36957         * m4/rmdir-errno.m4: Likewise.
36958         * m4/rmdir.m4: Likewise.
36959         * m4/roundf.m4: Likewise.
36960         * m4/roundl.m4: Likewise.
36961         * m4/rpmatch.m4: Likewise.
36962         * m4/save-cwd.m4: Likewise.
36963         * m4/selinux-selinux-h.m4: Likewise.
36964         * m4/setenv.m4: Likewise.
36965         * m4/settime.m4: Likewise.
36966         * m4/sig2str.m4: Likewise.
36967         * m4/sig_atomic_t.m4: Likewise.
36968         * m4/signalblocking.m4: Likewise.
36969         * m4/signbit.m4: Likewise.
36970         * m4/sigpipe.m4: Likewise.
36971         * m4/sockets.m4: Likewise.
36972         * m4/sockpfaf.m4: Likewise.
36973         * m4/st_dm_mode.m4: Likewise.
36974         * m4/stat-time.m4: Likewise.
36975         * m4/stdbool.m4: Likewise.
36976         * m4/stdint.m4: Likewise.
36977         * m4/stdint_h.m4: Likewise.
36978         * m4/stpcpy.m4: Likewise.
36979         * m4/stpncpy.m4: Likewise.
36980         * m4/strcase.m4: Likewise.
36981         * m4/strchrnul.m4: Likewise.
36982         * m4/strcspn.m4: Likewise.
36983         * m4/strdup.m4: Likewise.
36984         * m4/strftime.m4: Likewise.
36985         * m4/strndup.m4: Likewise.
36986         * m4/strnlen.m4: Likewise.
36987         * m4/strpbrk.m4: Likewise.
36988         * m4/strptime.m4: Likewise.
36989         * m4/strsep.m4: Likewise.
36990         * m4/strtod.m4: Likewise.
36991         * m4/strtoimax.m4: Likewise.
36992         * m4/strtok_r.m4: Likewise.
36993         * m4/strtol.m4: Likewise.
36994         * m4/strtoll.m4: Likewise.
36995         * m4/strtoul.m4: Likewise.
36996         * m4/strtoull.m4: Likewise.
36997         * m4/strtoumax.m4: Likewise.
36998         * m4/strverscmp.m4: Likewise.
36999         * m4/threadlib.m4: Likewise.
37000         * m4/timegm.m4: Likewise.
37001         * m4/tm_gmtoff.m4: Likewise.
37002         * m4/tmpdir.m4: Likewise.
37003         * m4/tmpfile.m4: Likewise.
37004         * m4/tzset.m4: Likewise.
37005         * m4/uintmax_t.m4: Likewise.
37006         * m4/unlinkdir.m4: Likewise.
37007         * m4/unlocked-io.m4: Likewise.
37008         * m4/uptime.m4: Likewise.
37009         * m4/userspec.m4: Likewise.
37010         * m4/utimbuf.m4: Likewise.
37011         * m4/utime.m4: Likewise.
37012         * m4/utimes-null.m4: Likewise.
37013         * m4/utimes.m4: Likewise.
37014         * m4/vararrays.m4: Likewise.
37015         * m4/vasnprintf.m4: Likewise.
37016         * m4/vfprintf-posix.m4: Likewise.
37017         * m4/vprintf-posix.m4: Likewise.
37018         * m4/wait-process.m4: Likewise.
37019         * m4/wchar_t.m4: Likewise.
37020         * m4/wint_t.m4: Likewise.
37021         * m4/write-any-file.m4: Likewise.
37022         * m4/yield.m4: Likewise.
37023
37024 2009-01-13  Bruno Haible  <bruno@clisp.org>
37025
37026         Avoid test-copy-file.sh failures when ACL support insufficient.
37027         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
37028         TESTS_ENVIRONMENT.
37029         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
37030         Reported by Jim Meyering.
37031
37032 2009-01-13  Bruno Haible  <bruno@clisp.org>
37033
37034         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
37035         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
37036         * modules/unistdio/u8-printf-parse (Files): Likewise.
37037         * modules/unistdio/u32-printf-parse (Files): Likewise.
37038         * modules/unistdio/ulc-printf-parse (Files): Likewise.
37039
37040 2009-01-13  Simon Josefsson  <simon@josefsson.org>
37041
37042         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
37043         and m4/inttypes_h.m4 too.
37044
37045 2009-01-12  Eric Blake  <ebb9@byu.net>
37046
37047         tests: IRIX 6.2 cc can't compile -0.0 into .data
37048         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
37049         rather than at compile-time.
37050         * tests/test-floorl.c (minus_zero): Likewise.
37051         * tests/test-frexpl.c (minus_zero): Likewise.
37052         * tests/test-isnan.c (minus_zerol): Likewise.
37053         * tests/test-isnanl.h (minus_zero): Likewise.
37054         * tests/test-ldexpl.c (minus_zero): Likewise.
37055         * tests/test-roundl.c (minus_zero): Likewise.
37056         * tests/test-signbit.c (minus_zerol): Likewise.
37057         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37058         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37059         * tests/test-truncl.c (minus_zero): Likewise.
37060         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37061         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37062         Reported by Tom G. Christensen and Nelson H. F. Beebe.
37063
37064 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37065
37066         regex: fix glibc bug 9697
37067         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
37068         handling.
37069
37070 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37071
37072         regex: fix glibc bug 697
37073         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
37074         being NULL also if there are no backreferences.
37075
37076 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37077
37078         regex: merge glibc changes
37079         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
37080         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
37081         re_string_skip_chars, re_string_reconstruct): Likewise.
37082         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
37083
37084 2009-01-07  Jim Meyering  <meyering@redhat.com>
37085
37086         poll: filter through cppi
37087         * lib/poll.c: Indent cpp directives to reflect nesting.
37088
37089 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
37090
37091         poll: don't return uninitialized
37092         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
37093
37094 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
37095
37096         avoid compile failure on AIX 6.1
37097         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
37098         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
37099
37100 2009-01-04  Jim Meyering  <meyering@redhat.com>
37101
37102         remove duplicate inclusion of <stdio.h>
37103         * tests/test-fprintf-posix.c: Likewise.
37104         * tests/test-printf-posix.c: Likewise.
37105         * tests/test-snprintf-posix.c: Likewise.
37106         * tests/test-sprintf-posix.c: Likewise.
37107         * tests/test-vasprintf-posix.c: Likewise.
37108         * tests/test-vfprintf-posix.c: Likewise.
37109         * tests/test-vprintf-posix.c: Likewise.
37110         * tests/test-vsnprintf-posix.c: Likewise.
37111         * tests/test-vsprintf-posix.c: Likewise.
37112
37113 2009-01-03  Jim Meyering  <meyering@redhat.com>
37114
37115         gnulib-tool: fix sed-based filtering
37116         * gnulib-tool (func_filter_filelist): Remove extra backslash
37117         in sed_fff_filter definition.
37118
37119 2009-01-02  Jim Meyering  <meyering@redhat.com>
37120
37121         strftime: avoid compilation failure on Solaris 2.6
37122         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
37123         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
37124         Don't #define mbrlen or mbsinit, since now they're guaranteed to
37125         be available.  Reported by Tom G. Christensen.  Details in
37126         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
37127
37128 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37129             Bruno Haible  <bruno@clisp.org>
37130
37131         Speed up gnulib-tool by doing more string processing through shell
37132         built-ins.
37133         * gnulib-tool (fast_func_append): New variable.
37134         (func_remove_prefix, func_remove_suffix): New functions.
37135         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
37136         (func_filter_filelist): New function.
37137         (func_get_dependencies): Use func_remove_suffix instead of sed.
37138         (func_get_automake_snippet): Use func_filter_filelist instead of a
37139         subshell and sed invocation.
37140
37141 2009-01-01  Bruno Haible  <bruno@clisp.org>
37142
37143         Fix a security bug.
37144         * gnulib-tool (func_import, import, update): Don't allow the characters
37145         '"', '$', '`', '\' in macro arguments that become part of commands that
37146         are evaluated.
37147
37148 2009-01-01  Bruno Haible  <bruno@clisp.org>
37149
37150         * gnulib-tool (func_reset_sigpipe): Add more comments.
37151
37152 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37153
37154         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
37155         func_emit_tests_Makefile_am, func_import): Abort loops early if we
37156         already know the answer.
37157
37158 2009-01-01  Jim Meyering  <meyering@redhat.com>
37159
37160         * lib/version-etc.c (version_etc_va): Update copyright year.
37161
37162 2008-12-30  Bruno Haible  <bruno@clisp.org>
37163
37164         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
37165         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
37166         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
37167
37168 2008-12-29  Eric Blake  <ebb9@byu.net>
37169
37170         multiarch: avoid autoconf AC_REQUIRE bug
37171         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
37172         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
37173         2.63 and older.
37174         Reported by Bruno Haible, and analyzed in
37175         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
37176
37177 2008-12-29  Bruno Haible  <bruno@clisp.org>
37178
37179         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
37180         files in subdirectories correctly.
37181         Reported by Ralf Wildenhues.
37182
37183 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37184
37185         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
37186         rather than 'join FILE -', for Solaris join.
37187
37188 2008-12-29  Bruno Haible  <bruno@clisp.org>
37189
37190         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
37191         quoting.
37192         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
37193         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
37194         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
37195         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
37196         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
37197         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
37198         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
37199         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
37200         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
37201         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
37202         * m4/nls.m4 (AM_NLS): Likewise.
37203         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
37204         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
37205         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
37206         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
37207         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
37208         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
37209         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
37210         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
37211         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
37212         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37213         * m4/xsize.m4 (gl_XSIZE): Likewise.
37214         Suggested by Jim Meyering.
37215
37216 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37217
37218         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
37219         * lib/parse-duration.c: use a switch instead of cascading if's.
37220
37221 2008-12-29  Eric Blake  <ebb9@byu.net>
37222
37223         wchar.h: supply WEOF on Irix 5.3
37224         * lib/wchar.in.h (wint_t): Also supply WEOF.
37225         * lib/wctype.in.h (wint_t): Likewise.
37226         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
37227         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
37228         Reported by Tom G. Christensen.
37229
37230 2008-12-26  Bruno Haible  <bruno@clisp.org>
37231
37232         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
37233         i486, i586, i686.
37234
37235 2008-12-26  Bruno Haible  <bruno@clisp.org>
37236
37237         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
37238
37239 2008-12-26  Bruno Haible  <bruno@clisp.org>
37240
37241         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
37242         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
37243         not __STDC_CONSTANT_MACROS.
37244         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37245
37246 2008-12-25  Bruno Haible  <bruno@clisp.org>
37247
37248         Add support for universal builds to vasnprintf.
37249         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
37250         universal builds, guess no.
37251         * modules/vasnprintf-posix (Depends-on): Add multiarch.
37252         * modules/vasprintf-posix (Depends-on): Likewise.
37253         * modules/fprintf-posix (Depends-on): Likewise.
37254         * modules/vfprintf-posix (Depends-on): Likewise.
37255         * modules/snprintf-posix (Depends-on): Likewise.
37256         * modules/vsnprintf-posix (Depends-on): Likewise.
37257         * modules/sprintf-posix (Depends-on): Likewise.
37258         * modules/vsprintf-posix (Depends-on): Likewise.
37259         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37260         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37261         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37262         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37263         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37264         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37265         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37266
37267         Add support for universal builds to <inttypes.h>.
37268         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
37269         _SCNu64_PREFIX): In Apple
37270         universal builds, define directly, using _LP64.
37271         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
37272         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
37273         * modules/inttypes (Depends-on): Add multiarch.
37274         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37275
37276         Add support for universal builds to <stdint.h>.
37277         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
37278         universal builds, define directly, using _LP64.
37279         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
37280         Apple universal builds, don't test for the size and suffix of ptrdiff_t
37281         and size_t.
37282         * modules/stdint (Depends-on): Add multiarch.
37283         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
37284
37285         New module 'multiarch'.
37286         * modules/multiarch: New file.
37287         * m4/multiarch.m4: New file.
37288
37289 2008-12-25  Bruno Haible  <bruno@clisp.org>
37290
37291         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
37292
37293 2008-12-25  Bruno Haible  <bruno@clisp.org>
37294
37295         * modules/btowc (License): Relicense under LGPLv2+.
37296         * modules/mbsinit (License): Likewise.
37297         * modules/mbrtowc (License): Likewise.
37298         * modules/wcrtomb (License): Likewise.
37299         * modules/streq (License): Likewise.
37300         Reported by David Lutterkort <lutter@redhat.com>.
37301
37302 2008-12-23  Bruno Haible  <bruno@clisp.org>
37303
37304         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
37305
37306 2008-12-23  Bruno Haible  <bruno@clisp.org>
37307
37308         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37309         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37310         GETADDRINFO_LIB, not in LIBS.
37311         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37312         * modules/canon-host (Link): Likewise.
37313         * NEWS: Mention the change.
37314         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37315         GETADDRINFO_LIB.
37316
37317 2008-12-22  Bruno Haible  <bruno@clisp.org>
37318
37319         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37320         * doc/posix-functions/iswalpha_l.texi: Likewise.
37321         * doc/posix-functions/iswblank_l.texi: Likewise.
37322         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37323         * doc/posix-functions/iswctype_l.texi: Likewise.
37324         * doc/posix-functions/iswdigit_l.texi: Likewise.
37325         * doc/posix-functions/iswgraph_l.texi: Likewise.
37326         * doc/posix-functions/iswlower_l.texi: Likewise.
37327         * doc/posix-functions/iswprint_l.texi: Likewise.
37328         * doc/posix-functions/iswpunct_l.texi: Likewise.
37329         * doc/posix-functions/iswspace_l.texi: Likewise.
37330         * doc/posix-functions/iswupper_l.texi: Likewise.
37331         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37332         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37333         * doc/posix-functions/open_wmemstream.texi: Likewise.
37334         * doc/posix-functions/swscanf.texi: Likewise.
37335         * doc/posix-functions/towctrans_l.texi: Likewise.
37336         * doc/posix-functions/towlower.texi: Likewise.
37337         * doc/posix-functions/towlower_l.texi: Likewise.
37338         * doc/posix-functions/towupper.texi: Likewise.
37339         * doc/posix-functions/towupper_l.texi: Likewise.
37340         * doc/posix-functions/vfwprintf.texi: Likewise.
37341         * doc/posix-functions/vfwscanf.texi: Likewise.
37342         * doc/posix-functions/vswscanf.texi: Likewise.
37343         * doc/posix-functions/vwprintf.texi: Likewise.
37344         * doc/posix-functions/vwscanf.texi: Likewise.
37345         * doc/posix-functions/wcpcpy.texi: Likewise.
37346         * doc/posix-functions/wcpncpy.texi: Likewise.
37347         * doc/posix-functions/wcscasecmp.texi: Likewise.
37348         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37349         * doc/posix-functions/wcscoll_l.texi: Likewise.
37350         * doc/posix-functions/wcsdup.texi: Likewise.
37351         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37352         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37353         * doc/posix-functions/wcsnlen.texi: Likewise.
37354         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37355         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37356         * doc/posix-functions/wctrans_l.texi: Likewise.
37357         * doc/posix-functions/wctype_l.texi: Likewise.
37358         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37359         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37360         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37361         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37362         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37363         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37364         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37365         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37366         * doc/glibc-functions/wcschrnul.texi: Likewise.
37367         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37368         * doc/glibc-functions/wcstod_l.texi: Likewise.
37369         * doc/glibc-functions/wcstof_l.texi: Likewise.
37370         * doc/glibc-functions/wcstol_l.texi: Likewise.
37371         * doc/glibc-functions/wcstold_l.texi: Likewise.
37372         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37373         * doc/glibc-functions/wcstoq.texi: Likewise.
37374         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37375         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37376         * doc/glibc-functions/wcstouq.texi: Likewise.
37377         * doc/glibc-functions/wmempcpy.texi: Likewise.
37378
37379 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37380             Eric Blake  <ebb9@byu.net>
37381             Paolo Bonzini  <bonzini@gnu.org>
37382             Bruno Haible  <bruno@clisp.org>
37383
37384         Make c-stack work on Haiku.
37385         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37386         (c_stack_action): Use SA_ONSTACK flag.
37387
37388 2008-12-22  Bruno Haible  <bruno@clisp.org>
37389
37390         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37391
37392 2008-12-22  Bruno Haible  <bruno@clisp.org>
37393
37394         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37395         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37396         being overridden.
37397         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37398         New macros.
37399         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37400         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37401         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37402         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37403
37404 2008-12-22  Bruno Haible  <bruno@clisp.org>
37405
37406         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37407         from test code.
37408
37409 2008-12-22  Eric Blake  <ebb9@byu.net>
37410
37411         Avoid gcc warnings on cygwin.
37412         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37413         Avoid unused variable.
37414         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37415         Likewise.
37416
37417 2008-12-22  Bruno Haible  <bruno@clisp.org>
37418
37419         Remove HAVE_MBRTOWC conditionals.
37420         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37421         (mbscasecmp): Assume mbrtowc function.
37422         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37423         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37424         * lib/mbschr.c: Include mbuiter.h unconditionally.
37425         (mbschr): Assume mbrtowc function.
37426         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37427         (mbscspn): Assume mbrtowc function.
37428         * lib/mbslen.c: Include mbuiter.h unconditionally.
37429         (mbslen): Assume mbrtowc function.
37430         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37431         (mbsncasecmp): Assume mbrtowc function.
37432         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37433         (mbsnlen): Assume mbrtowc function.
37434         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37435         (mbspbrk): Assume mbrtowc function.
37436         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37437         (mbspcasecmp): Assume mbrtowc function.
37438         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37439         (mbsrchr): Assume mbrtowc function.
37440         * lib/mbssep.c: Include mbuiter.h unconditionally.
37441         (mbssep): Assume mbrtowc function.
37442         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37443         (mbsspn): Assume mbrtowc function.
37444         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37445         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37446         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37447         (mbstok_r): Assume mbrtowc function.
37448         * lib/propername.c: Include mbuiter.h unconditionally.
37449         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37450         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37451         (trim2): Assume mbrtowc function.
37452         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37453         (mbsnwidth): Assume mbrtowc function.
37454         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37455         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37456         fallback definitions.
37457         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37458
37459 2008-12-22  Bruno Haible  <bruno@clisp.org>
37460
37461         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37462
37463 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37464
37465         * modules/regex: Request emulations for the mb*/wc* functions we need.
37466         * m4/regex.m4: Don't look for those functions here.
37467         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37468
37469 2008-12-22  Bruno Haible  <bruno@clisp.org>
37470
37471         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37472
37473 2008-12-21  Bruno Haible  <bruno@clisp.org>
37474
37475         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37476         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37477         (Include): Remove conditionalization.
37478         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37479         (Include): Remove conditionalization.
37480         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37481         (Include): Remove conditionalization.
37482         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37483         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37484         * NEWS: Mention the change.
37485         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37486         via Sergey Poznyakoff <gray@gnu.org.ua>.
37487
37488 2008-12-21  Bruno Haible  <bruno@clisp.org>
37489
37490         * MODULES.html.sh (Extended multibyte and wide character utilities
37491         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37492         wcrtomb, wcsrtombs.
37493         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37494         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37495         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37496         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37497
37498 2008-12-21  Bruno Haible  <bruno@clisp.org>
37499
37500         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37501
37502 2008-12-21  Bruno Haible  <bruno@clisp.org>
37503
37504         * modules/wcsnrtombs-tests: New file.
37505         * tests/test-wcsnrtombs1.sh: New file.
37506         * tests/test-wcsnrtombs2.sh: New file.
37507         * tests/test-wcsnrtombs3.sh: New file.
37508         * tests/test-wcsnrtombs4.sh: New file.
37509         * tests/test-wcsnrtombs.c: New file.
37510
37511         New module 'wcsnrtombs'.
37512         * lib/wchar.in.h (wcsnrtombs): New declaration.
37513         * lib/wcsnrtombs.c: New file.
37514         * lib/wcsrtombs-state.c: New file.
37515         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37516         (internal_state): Remove variable.
37517         * m4/wcsnrtombs.m4: New file.
37518         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37519         compilation units.
37520         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37521         HAVE_WCSNRTOMBS.
37522         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37523         HAVE_WCSNRTOMBS.
37524         * modules/wcsnrtombs: New file.
37525         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37526         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
37527
37528 2008-12-21  Bruno Haible  <bruno@clisp.org>
37529
37530         * modules/wcsrtombs-tests: New file.
37531         * tests/test-wcsrtombs1.sh: New file.
37532         * tests/test-wcsrtombs2.sh: New file.
37533         * tests/test-wcsrtombs3.sh: New file.
37534         * tests/test-wcsrtombs4.sh: New file.
37535         * tests/test-wcsrtombs.c: New file.
37536
37537         New module 'wcsrtombs'.
37538         * lib/wchar.in.h (wcsrtombs): New declaration.
37539         * lib/wcsrtombs.c: New file.
37540         * m4/wcsrtombs.m4: New file.
37541         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
37542         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37543         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
37544         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37545         * modules/wcsrtombs: New file.
37546         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
37547         bugs.
37548
37549 2008-12-21  Bruno Haible  <bruno@clisp.org>
37550
37551         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
37552         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
37553         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
37554         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
37555         if not correct.
37556         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
37557         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
37558         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37559         m4/locale-zh.m4, m4/codeset.m4.
37560         * doc/posix-functions/wcrtomb.texi: Document the bug.
37561
37562 2008-12-21  Bruno Haible  <bruno@clisp.org>
37563
37564         Work around a btowc() bug on IRIX 6.5.
37565         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
37566         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
37567         REPLACE_WTOBC if not.
37568         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
37569         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
37570         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
37571
37572 2008-12-21  Bruno Haible  <bruno@clisp.org>
37573
37574         * modules/wcrtomb-tests: New file.
37575         * tests/test-wcrtomb.sh: New file.
37576         * tests/test-wcrtomb.c: New file.
37577
37578         New module 'wcrtomb'.
37579         * lib/wchar.in.h (wcrtomb): New declaration.
37580         * lib/wcrtomb.c: New file.
37581         * m4/wcrtomb.m4: New file.
37582         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
37583         HAVE_WCRTOMB.
37584         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
37585         HAVE_WCRTOMB.
37586         * modules/wcrtomb: New file.
37587         * doc/posix-functions/wcrtomb.texi: Mention the new module.
37588
37589 2008-12-21  Bruno Haible  <bruno@clisp.org>
37590
37591         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
37592         * modules/mbsrtowcs (Files): Likewise.
37593         * modules/wctob (Files): Likewise.
37594         * modules/c-strcase-tests (Files): Likewise.
37595         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37596         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37597         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37598         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37599         * modules/vasnprintf-posix-tests (Files): Likewise.
37600
37601 2008-12-21  William Pursell  <bill.pursell@gmail.com>
37602
37603         gitlog-to-changelog: pass all command-line arguments to git-log
37604         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
37605         it is sometimes convenient to filter the commits in various ways.
37606         gitlog-to-changelog only allows --since to specify a start date,
37607         but git-log itself supports many other filtering mechanisms.
37608         At the moment, I want to filter by branch name.  Rather than
37609         adding a --branch option to gitlog-to-changelog, it seems more
37610         flexible to simply pass all options directly to git-log and let
37611         git do the work.  Notice that this effectively makes --since a
37612         redundant option for gitlog-to-changelog, but removing it would
37613         require current usage to change since calls would then require
37614         an additional '--'.
37615
37616 2008-12-21  Bruno Haible  <bruno@clisp.org>
37617
37618         * modules/mbsnrtowcs-tests: New file.
37619         * tests/test-mbsnrtowcs1.sh: New file.
37620         * tests/test-mbsnrtowcs2.sh: New file.
37621         * tests/test-mbsnrtowcs3.sh: New file.
37622         * tests/test-mbsnrtowcs4.sh: New file.
37623         * tests/test-mbsnrtowcs.c: New file.
37624
37625         New module 'mbsnrtowcs'.
37626         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37627         * lib/mbsnrtowcs.c: New file.
37628         * lib/mbsrtowcs-state.c: New file.
37629         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37630         (internal_state): Remove variable.
37631         * m4/mbsnrtowcs.m4: New file.
37632         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37633         compilation units.
37634         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37635         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37636         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37637         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37638         * modules/mbsnrtowcs: New file.
37639         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37640         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37641         portability problem.
37642
37643 2008-12-21  Bruno Haible  <bruno@clisp.org>
37644
37645         Work around mbsrtowcs bug.
37646         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37647         (gl_FUNC_MBSRTOWCS): Invoke it.
37648         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37649         m4/locale-zh.m4.
37650         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37651
37652 2008-12-21  Bruno Haible  <bruno@clisp.org>
37653
37654         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37655
37656 2008-12-21  Bruno Haible  <bruno@clisp.org>
37657
37658         Update doc for AIX.
37659         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37660         16-bit wchar_t type.
37661         * doc/posix-functions/btowc.texi: Likewise.
37662         * doc/posix-functions/fgetwc.texi: Likewise.
37663         * doc/posix-functions/fgetws.texi: Likewise.
37664         * doc/posix-functions/fputwc.texi: Likewise.
37665         * doc/posix-functions/fputws.texi: Likewise.
37666         * doc/posix-functions/fwide.texi: Likewise.
37667         * doc/posix-functions/fwprintf.texi: Likewise.
37668         * doc/posix-functions/fwscanf.texi: Likewise.
37669         * doc/posix-functions/getwchar.texi: Likewise.
37670         * doc/posix-functions/getwc.texi: Likewise.
37671         * doc/posix-functions/iswalnum.texi: Likewise.
37672         * doc/posix-functions/iswalpha.texi: Likewise.
37673         * doc/posix-functions/iswblank.texi: Likewise.
37674         * doc/posix-functions/iswcntrl.texi: Likewise.
37675         * doc/posix-functions/iswctype.texi: Likewise.
37676         * doc/posix-functions/iswdigit.texi: Likewise.
37677         * doc/posix-functions/iswgraph.texi: Likewise.
37678         * doc/posix-functions/iswlower.texi: Likewise.
37679         * doc/posix-functions/iswprint.texi: Likewise.
37680         * doc/posix-functions/iswpunct.texi: Likewise.
37681         * doc/posix-functions/iswspace.texi: Likewise.
37682         * doc/posix-functions/iswupper.texi: Likewise.
37683         * doc/posix-functions/iswxdigit.texi: Likewise.
37684         * doc/posix-functions/mbrtowc.texi: Likewise.
37685         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37686         * doc/posix-functions/mbstowcs.texi: Likewise.
37687         * doc/posix-functions/mbtowc.texi: Likewise.
37688         * doc/posix-functions/putwchar.texi: Likewise.
37689         * doc/posix-functions/putwc.texi: Likewise.
37690         * doc/posix-functions/swprintf.texi: Likewise.
37691         * doc/posix-functions/tolower.texi: Likewise.
37692         * doc/posix-functions/toupper.texi: Likewise.
37693         * doc/posix-functions/towctrans.texi: Likewise.
37694         * doc/posix-functions/ungetwc.texi: Likewise.
37695         * doc/posix-functions/vswprintf.texi: Likewise.
37696         * doc/posix-functions/wcrtomb.texi: Likewise.
37697         * doc/posix-functions/wcscat.texi: Likewise.
37698         * doc/posix-functions/wcschr.texi: Likewise.
37699         * doc/posix-functions/wcscmp.texi: Likewise.
37700         * doc/posix-functions/wcscoll.texi: Likewise.
37701         * doc/posix-functions/wcscpy.texi: Likewise.
37702         * doc/posix-functions/wcscspn.texi: Likewise.
37703         * doc/posix-functions/wcsftime.texi: Likewise.
37704         * doc/posix-functions/wcslen.texi: Likewise.
37705         * doc/posix-functions/wcsncat.texi: Likewise.
37706         * doc/posix-functions/wcsncmp.texi: Likewise.
37707         * doc/posix-functions/wcsncpy.texi: Likewise.
37708         * doc/posix-functions/wcspbrk.texi: Likewise.
37709         * doc/posix-functions/wcsrchr.texi: Likewise.
37710         * doc/posix-functions/wcsrtombs.texi: Likewise.
37711         * doc/posix-functions/wcsspn.texi: Likewise.
37712         * doc/posix-functions/wcsstr.texi: Likewise.
37713         * doc/posix-functions/wcstod.texi: Likewise.
37714         * doc/posix-functions/wcstof.texi: Likewise.
37715         * doc/posix-functions/wcstoimax.texi: Likewise.
37716         * doc/posix-functions/wcstok.texi: Likewise.
37717         * doc/posix-functions/wcstold.texi: Likewise.
37718         * doc/posix-functions/wcstoll.texi: Likewise.
37719         * doc/posix-functions/wcstol.texi: Likewise.
37720         * doc/posix-functions/wcstombs.texi: Likewise.
37721         * doc/posix-functions/wcstoull.texi: Likewise.
37722         * doc/posix-functions/wcstoul.texi: Likewise.
37723         * doc/posix-functions/wcstoumax.texi: Likewise.
37724         * doc/posix-functions/wcswidth.texi: Likewise.
37725         * doc/posix-functions/wcsxfrm.texi: Likewise.
37726         * doc/posix-functions/wctob.texi: Likewise.
37727         * doc/posix-functions/wctomb.texi: Likewise.
37728         * doc/posix-functions/wctrans.texi: Likewise.
37729         * doc/posix-functions/wctype.texi: Likewise.
37730         * doc/posix-functions/wcwidth.texi: Likewise.
37731         * doc/posix-functions/wmemchr.texi: Likewise.
37732         * doc/posix-functions/wmemcmp.texi: Likewise.
37733         * doc/posix-functions/wmemcpy.texi: Likewise.
37734         * doc/posix-functions/wmemmove.texi: Likewise.
37735         * doc/posix-functions/wmemset.texi: Likewise.
37736         * doc/posix-functions/wprintf.texi: Likewise.
37737         * doc/posix-functions/wscanf.texi: Likewise.
37738
37739 2008-12-21  Bruno Haible  <bruno@clisp.org>
37740
37741         Update doc for HP-UX 11.11.
37742         * doc/posix-functions/btowc.texi: Clarify that the function is missing
37743         in HP-UX version 11.00, not in all versions of HP-UX 11.
37744         * doc/posix-functions/fwide.texi: Likewise.
37745         * doc/posix-functions/fwprintf.texi: Likewise.
37746         * doc/posix-functions/fwscanf.texi: Likewise.
37747         * doc/posix-functions/inet_ntop.texi: Likewise.
37748         * doc/posix-functions/inet_pton.texi: Likewise.
37749         * doc/posix-functions/mbrlen.texi: Likewise.
37750         * doc/posix-functions/mbrtowc.texi: Likewise.
37751         * doc/posix-functions/mbsinit.texi: Likewise.
37752         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37753         * doc/posix-functions/swprintf.texi: Likewise.
37754         * doc/posix-functions/swscanf.texi: Likewise.
37755         * doc/posix-functions/towctrans.texi: Likewise.
37756         * doc/posix-functions/vfwprintf.texi: Likewise.
37757         * doc/posix-functions/vswprintf.texi: Likewise.
37758         * doc/posix-functions/vwprintf.texi: Likewise.
37759         * doc/posix-functions/wcrtomb.texi: Likewise.
37760         * doc/posix-functions/wcsrtombs.texi: Likewise.
37761         * doc/posix-functions/wcsstr.texi: Likewise.
37762         * doc/posix-functions/wctob.texi: Likewise.
37763         * doc/posix-functions/wctrans.texi: Likewise.
37764         * doc/posix-functions/wmemchr.texi: Likewise.
37765         * doc/posix-functions/wmemcmp.texi: Likewise.
37766         * doc/posix-functions/wmemcpy.texi: Likewise.
37767         * doc/posix-functions/wmemmove.texi: Likewise.
37768         * doc/posix-functions/wmemset.texi: Likewise.
37769         * doc/posix-functions/wprintf.texi: Likewise.
37770         * doc/posix-functions/wscanf.texi: Likewise.
37771
37772 2008-12-21  Bruno Haible  <bruno@clisp.org>
37773
37774         Work around a portability problem.
37775         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
37776         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
37777
37778 2008-12-20  Bruno Haible  <bruno@clisp.org>
37779
37780         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
37781         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
37782         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
37783         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
37784         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
37785
37786         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
37787         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
37788         set.
37789         (GNULIB_defined_mbstate_t): New macro.
37790         (mbsinit): Redefine if REPLACE_MBSINIT is set.
37791         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
37792         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
37793         reuses the system's mbrtowc function but works around the bugs.
37794         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
37795         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
37796         macros.
37797         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
37798         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
37799         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
37800         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
37801         REPLACE_MBSINIT if mbsinit needs to be overridden.
37802         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
37803         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37804         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
37805         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37806         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37807         m4/locale-zh.m4.
37808         (Depends): Add mbsinit.
37809         * modules/mbsinit (Depends): Add mbrtowc.
37810         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
37811
37812 2008-12-20  Bruno Haible  <bruno@clisp.org>
37813
37814         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
37815         so that there are no conversion errors on AIX.
37816         * tests/test-mbsrtowcs.c (main): LIkewise.
37817
37818 2008-12-20  Bruno Haible  <bruno@clisp.org>
37819
37820         Work around wctob bug on Solaris <= 9.
37821         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
37822         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
37823         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
37824         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
37825         * modules/wctob (Files): Add m4/locale-fr.m4.
37826         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
37827
37828 2008-12-20  Bruno Haible  <bruno@clisp.org>
37829
37830         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
37831         /dev/null.
37832         * tests/test-select-in.sh: Likewise.
37833         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37834
37835 2008-12-20  Bruno Haible  <bruno@clisp.org>
37836
37837         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
37838         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
37839         Cygwin 1.5.x.
37840
37841 2008-12-20  Bruno Haible  <bruno@clisp.org>
37842
37843         Ensure mbstate_t is defined on HP-UX 11.11.
37844         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
37845         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
37846         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
37847         AC_USE_SYSTEM_EXTENSIONS.
37848         * modules/fnmatch (Depends-on): Add extensions.
37849         * modules/mbrlen (Depends-on): Likewise.
37850         * modules/mbrtowc (Depends-on): Likewise.
37851         * modules/mbsinit (Depends-on): Likewise.
37852         * modules/mbsrtowcs (Depends-on): Likewise.
37853         * modules/mbswidth (Depends-on): Likewise.
37854         * modules/quotearg (Depends-on): Likewise.
37855         * modules/strftime (Depends-on): Likewise.
37856
37857 2008-12-20  Bruno Haible  <bruno@clisp.org>
37858
37859         Ensure wctob is declared on IRIX 6.5.
37860         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
37861         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
37862         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
37863         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
37864         of HAVE_WCTOB.
37865         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
37866         HAVE_WCTOB.
37867         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
37868
37869 2008-12-19  Bruno Haible  <bruno@clisp.org>
37870
37871         * modules/mbsrtowcs-tests: New file.
37872         * tests/test-mbsrtowcs1.sh: New file.
37873         * tests/test-mbsrtowcs2.sh: New file.
37874         * tests/test-mbsrtowcs3.sh: New file.
37875         * tests/test-mbsrtowcs4.sh: New file.
37876         * tests/test-mbsrtowcs.c: New file.
37877
37878         New module 'mbsrtowcs'.
37879         * lib/wchar.in.h (mbsrtowcs): New declaration.
37880         * lib/mbsrtowcs.c: New file.
37881         * m4/mbsrtowcs.m4: New file.
37882         * modules/mbsrtowcs: New file.
37883         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
37884         HAVE_MBSRTOWCS.
37885         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
37886         HAVE_MBSRTOWCS.
37887         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
37888
37889 2008-12-19  Bruno Haible  <bruno@clisp.org>
37890
37891         New module 'mbrlen'.
37892         * lib/wchar.in.h (mbrlen): New declaration.
37893         * lib/mbrlen.c: New file.
37894         * m4/mbrlen.m4: New file.
37895         * modules/mbrlen: New file.
37896         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
37897         HAVE_MBRLEN.
37898         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
37899         HAVE_MBRLEN.
37900         * doc/posix-functions/mbrlen.texi: Document the new module.
37901
37902 2008-12-19  Bruno Haible  <bruno@clisp.org>
37903
37904         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
37905         * modules/mbrtowc (Depends-on): Add verify.
37906         Suggested by Paul Eggert.
37907
37908 2008-12-18  Bruno Haible  <bruno@clisp.org>
37909
37910         * modules/mbsinit-tests: New file.
37911         * tests/test-mbsinit.sh: New file.
37912         * tests/test-mbsinit.c: New file.
37913
37914 2008-12-18  Bruno Haible  <bruno@clisp.org>
37915
37916         * modules/mbrtowc-tests: New file.
37917         * tests/test-mbrtowc1.sh: New file.
37918         * tests/test-mbrtowc2.sh: New file.
37919         * tests/test-mbrtowc3.sh: New file.
37920         * tests/test-mbrtowc4.sh: New file.
37921         * tests/test-mbrtowc.c: New file.
37922
37923         New module 'mbrtowc'.
37924         * lib/wchar.in.h (mbstate_t): Override when the system does not have
37925         mbsinit and mbrtowc.
37926         (mbrtowc): New declaration.
37927         * lib/mbrtowc.c: New file.
37928         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
37929         * modules/mbrtowc: New file.
37930         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
37931         HAVE_MBRTOWC.
37932         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
37933         HAVE_MBRTOWC.
37934         * doc/posix-functions/mbrtowc.texi: Document the new module.
37935
37936 2008-12-18  Bruno Haible  <bruno@clisp.org>
37937
37938         New module 'wctob'.
37939         * lib/wchar.in.h (wctob): New declaration.
37940         * lib/wctob.c: New file.
37941         * m4/wctob.m4: New file.
37942         * modules/wctob: New file.
37943         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
37944         HAVE_WCTOB.
37945         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
37946         * doc/posix-functions/wctob.texi: Document the new module.
37947
37948 2008-12-18  Bruno Haible  <bruno@clisp.org>
37949
37950         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
37951         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
37952
37953 2008-12-18  Simon Josefsson  <simon@josefsson.org>
37954
37955         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
37956         G. Christensen" <tgc@jupiterrise.com>.
37957
37958         * lib/flock.c: Need to include errno.h.  Reported by "Tom
37959         G. Christensen" <tgc@jupiterrise.com>.
37960
37961         * lib/flock.c: Need to include string.h.  Reported by "Tom
37962         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
37963         <ebb9@byu.net>.
37964
37965 2008-12-18  Bruno Haible  <bruno@clisp.org>
37966
37967         * m4/locale-ja.m4: New file, from GNU gettext.
37968
37969 2008-12-17  Bruno Haible  <bruno@clisp.org>
37970
37971         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
37972         Suggested by Eric Blake.
37973
37974 2008-12-17  Bruno Haible  <bruno@clisp.org>
37975
37976         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
37977
37978 2008-12-17  Bruno Haible  <bruno@clisp.org>
37979
37980         * lib/mbsinit.c: Include verify.h. Verify an assumption.
37981         * modules/mbsinit (Depends-on): Add verify.
37982         Suggested by Paul Eggert.
37983
37984 2008-12-17  Bruno Haible  <bruno@clisp.org>
37985
37986         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
37987         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
37988         gl_FUNC_MBRTOWC.
37989         * m4/mbiter.m4 (gl_MBITER): LIkewise.
37990         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
37991         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
37992         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
37993         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
37994         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
37995         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
37996         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
37997         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
37998         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
37999         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
38000         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
38001         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
38002         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
38003         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
38004         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38005         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
38006         * modules/trim (configure.ac): Likewise.
38007
38008 2008-12-17  Bruno Haible  <bruno@clisp.org>
38009
38010         * modules/btowc-tests: New file.
38011         * tests/test-btowc1.sh: New file.
38012         * tests/test-btowc2.sh: New file.
38013         * tests/test-btowc.c: New file.
38014
38015         New module 'btowc'.
38016         * lib/wchar.in.h (btowc): New declaration.
38017         * lib/btowc.c: New file.
38018         * m4/btowc.m4: New file.
38019         * modules/btowc: New file.
38020         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
38021         HAVE_BTOWC.
38022         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
38023         * doc/posix-functions/btowc.texi: Document the new module.
38024
38025 2008-12-17  Bruno Haible  <bruno@clisp.org>
38026
38027         New module 'mbsinit'.
38028         * lib/wchar.in.h (mbsinit): New declaration.
38029         * lib/mbsinit.c: New file.
38030         * m4/mbsinit.m4: New file.
38031         * modules/mbsinit: New file.
38032         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
38033         HAVE_MBSINIT.
38034         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
38035         HAVE_MBSINIT.
38036         * doc/posix-functions/mbsinit.texi: Document the new module.
38037
38038 2008-12-16  Bruno Haible  <bruno@clisp.org>
38039
38040         * lib/unistd.in.h: Add comment.
38041         * tests/test-environ.c: Don't include <stdlib.h>.
38042
38043 2008-12-16  Bruno Haible  <bruno@clisp.org>
38044
38045         * lib/parse-duration.h (parse_duration): Document return value
38046         convention.
38047         * lib/parse-duration.c: Include specification header first. Add
38048         comments.
38049         (_): Remove macro.
38050         (parse_year_month_day, parse_hour_minute_second): Move side effects
38051         outside of strchr call.
38052         (parse_non_iso8601): Move side effects outside of isspace call.
38053         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
38054         call.
38055
38056 2008-12-16  Bruno Haible  <bruno@clisp.org>
38057
38058         * tests/test-parse-duration.sh: Produce no output when the test
38059         succeeds.
38060
38061 2008-12-16  Bruno Haible  <bruno@clisp.org>
38062
38063         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
38064         expressions.
38065
38066 2008-12-15  Bruno Haible  <bruno@clisp.org>
38067
38068         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
38069         * doc/glibc-functions/flistxattr.texi: Likewise.
38070         * doc/glibc-functions/fopencookie.texi: Likewise.
38071         * doc/glibc-functions/fremovexattr.texi: Likewise.
38072         * doc/glibc-functions/fsetxattr.texi: Likewise.
38073         * doc/glibc-functions/getxattr.texi: Likewise.
38074         * doc/glibc-functions/lgetxattr.texi: Likewise.
38075         * doc/glibc-functions/listxattr.texi: Likewise.
38076         * doc/glibc-functions/llistxattr.texi: Likewise.
38077         * doc/glibc-functions/lremovexattr.texi: Likewise.
38078         * doc/glibc-functions/lsetxattr.texi: Likewise.
38079         * doc/glibc-functions/removexattr.texi: Likewise.
38080         * doc/glibc-functions/setxattr.texi: Likewise.
38081         * doc/posix-functions/open_memstream.texi: Likewise.
38082
38083 2008-12-15  Eric Blake  <ebb9@byu.net>
38084
38085         Update doc for cygwin 1.7.
38086         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
38087         functions.
38088         * doc/posix-functions/fchmodat.texi: Likewise.
38089         * doc/posix-functions/fchownat.texi: Likewise.
38090         * doc/posix-functions/fdopendir.texi: Likewise.
38091         * doc/posix-functions/fmemopen.texi: Likewise.
38092         * doc/posix-functions/freeaddrinfo.texi: Likewise.
38093         * doc/posix-functions/fstatat.texi: Likewise.
38094         * doc/posix-functions/futimens.texi: Likewise.
38095         * doc/posix-functions/gai_strerror.texi: Likewise.
38096         * doc/posix-functions/getaddrinfo.texi: Likewise.
38097         * doc/posix-functions/getnameinfo.texi: Likewise.
38098         * doc/posix-functions/if_freenameindex.texi: Likewise.
38099         * doc/posix-functions/if_indextoname.texi: Likewise.
38100         * doc/posix-functions/if_nameindex.texi: Likewise.
38101         * doc/posix-functions/if_nametoindex.texi: Likewise.
38102         * doc/posix-functions/insque.texi: Likewise.
38103         * doc/posix-functions/linkat.texi: Likewise.
38104         * doc/posix-functions/llrint.texi: Likewise.
38105         * doc/posix-functions/llrintf.texi: Likewise.
38106         * doc/posix-functions/llrintl.texi: Likewise.
38107         * doc/posix-functions/lockf.texi: Likewise.
38108         * doc/posix-functions/lrintl.texi: Likewise.
38109         * doc/posix-functions/mkdirat.texi: Likewise.
38110         * doc/posix-functions/mkfifoat.texi: Likewise.
38111         * doc/posix-functions/mknodat.texi: Likewise.
38112         * doc/posix-functions/mq_close.texi: Likewise.
38113         * doc/posix-functions/mq_getattr.texi: Likewise.
38114         * doc/posix-functions/mq_notify.texi: Likewise.
38115         * doc/posix-functions/mq_open.texi: Likewise.
38116         * doc/posix-functions/mq_receive.texi: Likewise.
38117         * doc/posix-functions/mq_send.texi: Likewise.
38118         * doc/posix-functions/mq_setattr.texi: Likewise.
38119         * doc/posix-functions/mq_timedreceive.texi: Likewise.
38120         * doc/posix-functions/mq_timedsend.texi: Likewise.
38121         * doc/posix-functions/mq_unlink.texi: Likewise.
38122         * doc/posix-functions/open_memstream.texi: Likewise.
38123         * doc/posix-functions/openat.texi: Likewise.
38124         * doc/posix-functions/posix_fadvise.texi: Likewise.
38125         * doc/posix-functions/posix_fallocate.texi: Likewise.
38126         * doc/posix-functions/posix_madvise.texi: Likewise.
38127         * doc/posix-functions/posix_memalign.texi: Likewise.
38128         * doc/posix-functions/posix_openpt.texi: Likewise.
38129         * doc/posix-functions/readlinkat.texi: Likewise.
38130         * doc/posix-functions/remque.texi: Likewise.
38131         * doc/posix-functions/renameat.texi: Likewise.
38132         * doc/posix-functions/rintl.texi: Likewise.
38133         * doc/posix-functions/sem_unlink.texi: Likewise.
38134         * doc/posix-functions/shm_open.texi: Likewise.
38135         * doc/posix-functions/shm_unlink.texi: Likewise.
38136         * doc/posix-functions/signgam.texi: Likewise.
38137         * doc/posix-functions/sigset.texi: Likewise.
38138         * doc/posix-functions/stpcpy.texi: Likewise.
38139         * doc/posix-functions/stpncpy.texi: Likewise.
38140         * doc/posix-functions/strerror.texi: Likewise.
38141         * doc/posix-functions/strtod.texi: Likewise.
38142         * doc/posix-functions/symlinkat.texi: Likewise.
38143         * doc/posix-functions/unlinkat.texi: Likewise.
38144         * doc/posix-functions/utimensat.texi: Likewise.
38145         * doc/glibc-functions/bindresvport.texi: Likewise.
38146         * doc/glibc-functions/dn_expand.texi: Likewise.
38147         * doc/glibc-functions/exp10.texi: Likewise.
38148         * doc/glibc-functions/exp10f.texi: Likewise.
38149         * doc/glibc-functions/fgetxattr.texi: Likewise.
38150         * doc/glibc-functions/flistxattr.texi: Likewise.
38151         * doc/glibc-functions/fopencookie.texi: Likewise.
38152         * doc/glibc-functions/freeifaddrs.texi: Likewise.
38153         * doc/glibc-functions/fremovexattr.texi: Likewise.
38154         * doc/glibc-functions/fsetxattr.texi: Likewise.
38155         * doc/glibc-functions/getifaddrs.texi: Likewise.
38156         * doc/glibc-functions/getxattr.texi: Likewise.
38157         * doc/glibc-functions/lgetxattr.texi: Likewise.
38158         * doc/glibc-functions/listxattr.texi: Likewise.
38159         * doc/glibc-functions/llistxattr.texi: Likewise.
38160         * doc/glibc-functions/lremovexattr.texi: Likewise.
38161         * doc/glibc-functions/lsetxattr.texi: Likewise.
38162         * doc/glibc-functions/pow10.texi: Likewise.
38163         * doc/glibc-functions/pow10f.texi: Likewise.
38164         * doc/glibc-functions/rcmd_af.texi: Likewise.
38165         * doc/glibc-functions/removexattr.texi: Likewise.
38166         * doc/glibc-functions/res_init.texi: Likewise.
38167         * doc/glibc-functions/res_mkquery.texi: Likewise.
38168         * doc/glibc-functions/res_query.texi: Likewise.
38169         * doc/glibc-functions/res_querydomain.texi: Likewise.
38170         * doc/glibc-functions/res_send.texi: Likewise.
38171         * doc/glibc-functions/rresvport_af.texi: Likewise.
38172         * doc/glibc-functions/setxattr.texi: Likewise.
38173         * doc/glibc-functions/strcasestr.texi: Likewise.
38174
38175 2008-12-15  Bruno Haible  <bruno@clisp.org>
38176
38177         Fix compilation error on OSF/1 4.0.
38178         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
38179         <sys/time.h>, simply delegate to the system header.
38180         Reported by Daniel Richard G. <oss@teragram.com>.
38181
38182 2008-12-15  Bruno Haible  <bruno@clisp.org>
38183
38184         * doc/posix-functions/openat.texi: Mention the 'openat' module.
38185         * doc/posix-functions/fchmodat.texi: Likewise.
38186         * doc/posix-functions/fchownat.texi: Likewise.
38187         * doc/posix-functions/fdopendir.texi: Likewise.
38188         * doc/posix-functions/fstatat.texi: Likewise.
38189         * doc/posix-functions/mkdirat.texi: Likewise.
38190         * doc/posix-functions/unlinkat.texi: Likewise.
38191
38192 2008-12-14  Bruno Haible  <bruno@clisp.org>
38193
38194         Update doc for POSIX:2008.
38195         * doc/posix-functions/faccessat.texi: New file.
38196         * doc/posix-functions/fchmodat.texi: New file.
38197         * doc/posix-functions/fchownat.texi: New file.
38198         * doc/posix-functions/fdopendir.texi: New file.
38199         * doc/posix-functions/fstatat.texi: New file.
38200         * doc/posix-functions/futimens.texi: New file.
38201         * doc/posix-functions/linkat.texi: New file.
38202         * doc/posix-functions/mkdirat.texi: New file.
38203         * doc/posix-functions/mkfifoat.texi: New file.
38204         * doc/posix-functions/mknodat.texi: New file.
38205         * doc/posix-functions/open_wmemstream.texi: New file.
38206         * doc/posix-functions/openat.texi: New file.
38207         * doc/posix-functions/psiginfo.texi: New file.
38208         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
38209         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
38210         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
38211         * doc/posix-functions/readlinkat.texi: New file.
38212         * doc/posix-functions/renameat.texi: New file.
38213         * doc/posix-functions/strerror_l.texi: New file.
38214         * doc/posix-functions/symlinkat.texi: New file.
38215         * doc/posix-functions/unlinkat.texi: New file.
38216         * doc/posix-functions/utimensat.texi: New file.
38217         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38218
38219 2008-12-14  Bruno Haible  <bruno@clisp.org>
38220
38221         Update doc for POSIX:2008.
38222         * doc/posix-functions/alphasort.texi: Renamed from
38223         doc/glibc-functions/alphasort.texi.
38224         * doc/posix-functions/dirfd.texi: Renamed from
38225         doc/glibc-functions/dirfd.texi.
38226         * doc/posix-functions/dprintf.texi: Renamed from
38227         doc/glibc-functions/dprintf.texi.
38228         * doc/posix-functions/duplocale.texi: Renamed from
38229         doc/glibc-functions/duplocale.texi.
38230         * doc/posix-functions/fexecve.texi: Renamed from
38231         doc/glibc-functions/fexecve.texi.
38232         * doc/posix-functions/fmemopen.texi: Renamed from
38233         doc/glibc-functions/fmemopen.texi.
38234         * doc/posix-functions/freelocale.texi: Renamed from
38235         doc/glibc-functions/freelocale.texi.
38236         * doc/posix-functions/getdate_err.texi: Renamed from
38237         doc/glibc-functions/getdate_err.texi.
38238         * doc/posix-functions/isalnum_l.texi: Renamed from
38239         doc/glibc-functions/isalnum_l.texi.
38240         * doc/posix-functions/isalpha_l.texi: Renamed from
38241         doc/glibc-functions/isalpha_l.texi.
38242         * doc/posix-functions/isblank_l.texi: Renamed from
38243         doc/glibc-functions/isblank_l.texi.
38244         * doc/posix-functions/iscntrl_l.texi: Renamed from
38245         doc/glibc-functions/iscntrl_l.texi.
38246         * doc/posix-functions/isdigit_l.texi: Renamed from
38247         doc/glibc-functions/isdigit_l.texi.
38248         * doc/posix-functions/isgraph_l.texi: Renamed from
38249         doc/glibc-functions/isgraph_l.texi.
38250         * doc/posix-functions/islower_l.texi: Renamed from
38251         doc/glibc-functions/islower_l.texi.
38252         * doc/posix-functions/isprint_l.texi: Renamed from
38253         doc/glibc-functions/isprint_l.texi.
38254         * doc/posix-functions/ispunct_l.texi: Renamed from
38255         doc/glibc-functions/ispunct_l.texi.
38256         * doc/posix-functions/isspace_l.texi: Renamed from
38257         doc/glibc-functions/isspace_l.texi.
38258         * doc/posix-functions/isupper_l.texi: Renamed from
38259         doc/glibc-functions/isupper_l.texi.
38260         * doc/posix-functions/iswalnum_l.texi: Renamed from
38261         doc/glibc-functions/iswalnum_l.texi.
38262         * doc/posix-functions/iswalpha_l.texi: Renamed from
38263         doc/glibc-functions/iswalpha_l.texi.
38264         * doc/posix-functions/iswblank_l.texi: Renamed from
38265         doc/glibc-functions/iswblank_l.texi.
38266         * doc/posix-functions/iswcntrl_l.texi: Renamed from
38267         doc/glibc-functions/iswcntrl_l.texi.
38268         * doc/posix-functions/iswctype_l.texi: Renamed from
38269         doc/glibc-functions/iswctype_l.texi.
38270         * doc/posix-functions/iswdigit_l.texi: Renamed from
38271         doc/glibc-functions/iswdigit_l.texi.
38272         * doc/posix-functions/iswgraph_l.texi: Renamed from
38273         doc/glibc-functions/iswgraph_l.texi.
38274         * doc/posix-functions/iswlower_l.texi: Renamed from
38275         doc/glibc-functions/iswlower_l.texi.
38276         * doc/posix-functions/iswprint_l.texi: Renamed from
38277         doc/glibc-functions/iswprint_l.texi.
38278         * doc/posix-functions/iswpunct_l.texi: Renamed from
38279         doc/glibc-functions/iswpunct_l.texi.
38280         * doc/posix-functions/iswspace_l.texi: Renamed from
38281         doc/glibc-functions/iswspace_l.texi.
38282         * doc/posix-functions/iswupper_l.texi: Renamed from
38283         doc/glibc-functions/iswupper_l.texi.
38284         * doc/posix-functions/iswxdigit_l.texi: Renamed from
38285         doc/glibc-functions/iswxdigit_l.texi.
38286         * doc/posix-functions/isxdigit_l.texi: Renamed from
38287         doc/glibc-functions/isxdigit_l.texi.
38288         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
38289         doc/glibc-functions/mbsnrtowcs.texi.
38290         * doc/posix-functions/mkdtemp.texi: Renamed from
38291         doc/glibc-functions/mkdtemp.texi.
38292         * doc/posix-functions/newlocale.texi: Renamed from
38293         doc/glibc-functions/newlocale.texi.
38294         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
38295         doc/glibc-functions/nl_langinfo_l.texi.
38296         * doc/posix-functions/open_memstream.texi: Renamed from
38297         doc/glibc-functions/open_memstream.texi.
38298         * doc/posix-functions/opterr.texi: Renamed from
38299         doc/glibc-functions/opterr.texi.
38300         * doc/posix-functions/optind.texi: Renamed from
38301         doc/glibc-functions/optind.texi.
38302         * doc/posix-functions/optopt.texi: Renamed from
38303         doc/glibc-functions/optopt.texi.
38304         * doc/posix-functions/psignal.texi: Renamed from
38305         doc/glibc-functions/psignal.texi.
38306         * doc/posix-functions/scandir.texi: Renamed from
38307         doc/glibc-functions/scandir.texi.
38308         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38309         doc/glibc-functions/sched_get_priority_min.texi.
38310         * doc/posix-functions/signgam.texi: Renamed from
38311         doc/glibc-functions/signgam.texi.
38312         * doc/posix-functions/stpcpy.texi: Renamed from
38313         doc/glibc-functions/stpcpy.texi.
38314         * doc/posix-functions/stpncpy.texi: Renamed from
38315         doc/glibc-functions/stpncpy.texi.
38316         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38317         doc/glibc-functions/strcasecmp_l.texi.
38318         * doc/posix-functions/strcoll_l.texi: Renamed from
38319         doc/glibc-functions/strcoll_l.texi.
38320         * doc/posix-functions/strfmon_l.texi: Renamed from
38321         doc/glibc-functions/strfmon_l.texi.
38322         * doc/posix-functions/strftime_l.texi: Renamed from
38323         doc/glibc-functions/strftime_l.texi.
38324         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38325         doc/glibc-functions/strncasecmp_l.texi.
38326         * doc/posix-functions/strndup.texi: Renamed from
38327         doc/glibc-functions/strndup.texi.
38328         * doc/posix-functions/strnlen.texi: Renamed from
38329         doc/glibc-functions/strnlen.texi.
38330         * doc/posix-functions/strsignal.texi: Renamed from
38331         doc/glibc-functions/strsignal.texi.
38332         * doc/posix-functions/strxfrm_l.texi: Renamed from
38333         doc/glibc-functions/strxfrm_l.texi.
38334         * doc/posix-functions/timer_gettime.texi: Renamed from
38335         doc/glibc-functions/timer_gettime.texi.
38336         * doc/posix-functions/tolower_l.texi: Renamed from
38337         doc/glibc-functions/tolower_l.texi.
38338         * doc/posix-functions/toupper_l.texi: Renamed from
38339         doc/glibc-functions/toupper_l.texi.
38340         * doc/posix-functions/towctrans_l.texi: Renamed from
38341         doc/glibc-functions/towctrans_l.texi.
38342         * doc/posix-functions/towlower_l.texi: Renamed from
38343         doc/glibc-functions/towlower_l.texi.
38344         * doc/posix-functions/towupper_l.texi: Renamed from
38345         doc/glibc-functions/towupper_l.texi.
38346         * doc/posix-functions/uselocale.texi: Renamed from
38347         doc/glibc-functions/uselocale.texi.
38348         * doc/posix-functions/vdprintf.texi: Renamed from
38349         doc/glibc-functions/vdprintf.texi.
38350         * doc/posix-functions/wcpcpy.texi:
38351         Renamed from doc/glibc-functions/wcpcpy.texi.
38352         * doc/posix-functions/wcpncpy.texi: Renamed from
38353         doc/glibc-functions/wcpncpy.texi.
38354         * doc/posix-functions/wcscasecmp.texi: Renamed from
38355         doc/glibc-functions/wcscasecmp.texi.
38356         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38357         doc/glibc-functions/wcscasecmp_l.texi.
38358         * doc/posix-functions/wcscoll_l.texi: Renamed from
38359         doc/glibc-functions/wcscoll_l.texi.
38360         * doc/posix-functions/wcsdup.texi: Renamed from
38361         doc/glibc-functions/wcsdup.texi.
38362         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38363         doc/glibc-functions/wcsncasecmp.texi.
38364         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38365         doc/glibc-functions/wcsncasecmp_l.texi.
38366         * doc/posix-functions/wcsnlen.texi: Renamed from
38367         doc/glibc-functions/wcsnlen.texi.
38368         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38369         doc/glibc-functions/wcsnrtombs.texi.
38370         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38371         doc/glibc-functions/wcsxfrm_l.texi.
38372         * doc/posix-functions/wctrans_l.texi: Renamed from
38373         doc/glibc-functions/wctrans_l.texi.
38374         * doc/posix-functions/wctype_l.texi: Renamed from
38375         doc/glibc-functions/wctype_l.texi.
38376         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38377         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38378         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38379         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38380         these subsections.
38381         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38382         Remove sections.
38383
38384 2008-12-14  Bruno Haible  <bruno@clisp.org>
38385
38386         Update doc for POSIX:2008.
38387         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38388
38389 2008-12-14  Bruno Haible  <bruno@clisp.org>
38390
38391         Update doc for POSIX:2008.
38392         * doc/pastposix-functions/bcmp.texi: Renamed from
38393         doc/posix-functions/bcmp.texi.
38394         * doc/pastposix-functions/bcopy.texi: Renamed from
38395         doc/posix-functions/bcopy.texi.
38396         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38397         doc/posix-functions/bsd_signal.texi.
38398         * doc/pastposix-functions/bzero.texi: Renamed from
38399         doc/posix-functions/bzero.texi.
38400         * doc/pastposix-functions/ecvt.texi: Renamed from
38401         doc/posix-functions/ecvt.texi.
38402         * doc/pastposix-functions/fcvt.texi: Renamed from
38403         doc/posix-functions/fcvt.texi.
38404         * doc/pastposix-functions/ftime.texi: Renamed from
38405         doc/posix-functions/ftime.texi.
38406         * doc/pastposix-functions/gcvt.texi: Renamed from
38407         doc/posix-functions/gcvt.texi.
38408         * doc/pastposix-functions/getcontext.texi: Renamed from
38409         doc/posix-functions/getcontext.texi.
38410         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38411         doc/posix-functions/gethostbyaddr.texi.
38412         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38413         doc/posix-functions/gethostbyname.texi.
38414         * doc/pastposix-functions/getwd.texi: Renamed from
38415         doc/posix-functions/getwd.texi.
38416         * doc/pastposix-functions/h_errno.texi: Renamed from
38417         doc/posix-functions/h_errno.texi.
38418         * doc/pastposix-functions/index.texi: Renamed from
38419         doc/posix-functions/index.texi.
38420         * doc/pastposix-functions/makecontext.texi: Renamed from
38421         doc/posix-functions/makecontext.texi.
38422         * doc/pastposix-functions/mktemp.texi: Renamed from
38423         doc/posix-functions/mktemp.texi.
38424         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38425         doc/posix-functions/pthread_attr_getstackaddr.texi.
38426         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38427         doc/posix-functions/pthread_attr_setstackaddr.texi.
38428         * doc/pastposix-functions/rindex.texi: Renamed from
38429         doc/posix-functions/rindex.texi.
38430         * doc/pastposix-functions/scalb.texi: Renamed from
38431         doc/posix-functions/scalb.texi.
38432         * doc/pastposix-functions/setcontext.texi: Renamed from
38433         doc/posix-functions/setcontext.texi.
38434         * doc/pastposix-functions/swapcontext.texi: Renamed from
38435         doc/posix-functions/swapcontext.texi.
38436         * doc/pastposix-functions/ualarm.texi: Renamed from
38437         doc/posix-functions/ualarm.texi.
38438         * doc/pastposix-functions/usleep.texi: Renamed from
38439         doc/posix-functions/usleep.texi.
38440         * doc/pastposix-functions/vfork.texi: Renamed from
38441         doc/posix-functions/vfork.texi.
38442         * doc/pastposix-functions/wcswcs.texi: Renamed from
38443         doc/posix-functions/wcswcs.texi.
38444         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38445         (Function Substitutes): Update.
38446
38447 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38448
38449         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38450         m4/strerror.m4.
38451
38452 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38453             Bruno Haible  <bruno@clisp.org>
38454
38455         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38456
38457 2008-12-13  Bruno Haible  <bruno@clisp.org>
38458
38459         * modules/strtoull (Depends-on): Remove unistd.
38460
38461 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38462
38463         * modules/strtoull (Depends-on): Add stdlib.
38464
38465 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38466
38467         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38468
38469 2008-12-10  Jim Meyering  <meyering@redhat.com>
38470
38471         gl_ASSERT: don't say assertions are disabled when they're not
38472         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38473         "checking whether to enable assertions... no", when they are in
38474         fact enabled.  This is solely a bug in the output of configure.
38475         In spite of saying "no", NDEBUG was not defined in that case.
38476         Also, as noted by Eric Blake, leave assertions enabled upon
38477         --enable-assert=INVALID.
38478
38479 2008-12-10  Bruno Haible  <bruno@clisp.org>
38480
38481         Change MODULES.html to refer to POSIX:2008 where possible.
38482         * MODULES.html.sh (POSIX2008_URL): New variable.
38483         (posix_headers): Remove sys/timeb, ucontext.
38484         (posix2001_headers): New variable.
38485         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38486         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38487         index, makecontext, mktemp, pthread_attr_getstackaddr,
38488         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38489         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38490         (posix2001_functions): New variable.
38491         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38492         otherwise.
38493
38494 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38495
38496         add missing include to parse-duration.c
38497         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38498         * modules/parse-duration (Depends-on): Add xalloc.
38499
38500         fix sed script reading maint.mk
38501         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38502         (syntax-check-rules): Use it.
38503
38504 2008-12-09  Bruno Haible  <bruno@clisp.org>
38505
38506         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38507         MacOS X 10.4/PowerPC.
38508         Reported by Simon Josefsson.
38509
38510 2008-12-08  Jim Meyering  <meyering@redhat.com>
38511
38512         work around mingw's lack of some S_IF definitions
38513         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38514         Reported by Simon Josefsson.
38515
38516 2008-12-08  Bruno Haible  <bruno@clisp.org>
38517
38518         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38519         applied to variables. Needed on MacOS X 10.4/PowerPC.
38520         Reported by Simon Josefsson.
38521
38522 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38523         and Eric Blake  <ebb9@byu.net>
38524
38525         assert: honor --enable-assert
38526         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
38527         order to honor --enable-assert, rather than treating it as a
38528         synonym for --disable-assert.
38529
38530 2008-12-08  Jim Meyering  <meyering@redhat.com>
38531
38532         * lib/posixtm.c: Remove now-useless declaration of mktime.
38533
38534         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
38535
38536 2008-12-07  Bruno Haible  <bruno@clisp.org>
38537
38538         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
38539         test_once): Mark functions as static.
38540         * tests/test-tls.c (test_tls): Likewise.
38541
38542 2008-12-07  Bruno Haible  <bruno@clisp.org>
38543
38544         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
38545         iconv_register_autodetect.
38546
38547 2008-12-07  Jim Meyering  <meyering@redhat.com>
38548
38549         posixtm.c: avoid a warning
38550         * lib/posixtm.c (posixtime): Don't initialize tm0.
38551         It's no longer needed to placate gcc4's -Wuninitialized,
38552         and the attempt to placate would elicit a new warning.
38553
38554         unicodeio.c: mark unused parameters
38555         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38556         (fallback_failure_callback): Likewise.
38557
38558 2008-12-07  Bruno Haible  <bruno@clisp.org>
38559
38560         * gnulib-tool (func_create_testdir): When building the tests
38561         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
38562         Reported by Simon Josefsson.
38563
38564 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38565
38566         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
38567
38568 2008-12-06  Bruno Haible  <bruno@clisp.org>
38569
38570         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
38571         Suggested by Eric Blake.
38572
38573 2008-12-06  Bruno Haible  <bruno@clisp.org>
38574
38575         Fix a c-stack test failure on MacOS X.
38576         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
38577         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
38578         handler for SIGBUS as well.
38579         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
38580         install a signal handler for SIGBUS as well.
38581         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
38582
38583 2008-12-06  Bruno Haible  <bruno@clisp.org>
38584
38585         Advocacy documentation.
38586         * doc/gnulib-intro.texi (Benefits): New section.
38587         * doc/gnulib.texi: Update.
38588
38589 2008-12-06  Bruno Haible  <bruno@clisp.org>
38590
38591         Document the 'manywarnings' module.
38592         * doc/manywarnings.texi: New file.
38593         * doc/gnulib.texi: Include it.
38594
38595 2008-12-05  Eric Blake  <ebb9@byu.net>
38596
38597         tests: silence some gcc warnings
38598         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
38599         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
38600         type mismatches.
38601
38602 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38603             Bruno Haible  <bruno@clisp.org>
38604
38605         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
38606
38607 2008-11-29  Jim Meyering  <meyering@redhat.com>
38608
38609         unicodeio.c: mark unused parameters
38610         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38611         (fallback_failure_callback): Likewise.
38612
38613         fts: fix a thinko
38614         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
38615         (set_stat_type): Return S_IF*-valued "type" directly.
38616         Prompted by James Youngman's spotting a related bug.
38617         Confirmed by further testing through find.
38618
38619         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38620         * lib/fts.c (D_TYPE): Define.
38621         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38622         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38623         (s_ifmt_shift_bits): New function.
38624         (set_stat_type): New function.
38625         (fts_build): When not calling fts_stat, call set_stat_type
38626         to propagate dirent.d_type info to fts_read caller.
38627         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38628         fts_statp->st_mode type information may be valid.
38629
38630 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38631
38632         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38633         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38634         <sds@gnu.org>.
38635
38636 2008-11-20  Bruno Haible  <bruno@clisp.org>
38637
38638         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38639         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38640         INCLUDE_NEXT.
38641         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38642         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38643         * modules/math (Makefile.am): Substitute
38644         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38645         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38646
38647 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38648             Bruno Haible  <bruno@clisp.org>
38649
38650         * lib/stdint.in.h: Define all type macros so that their expansion is
38651         a single typedef'ed token. Fixes a compilation failure in Boost which
38652         does "using ::int8_t;".
38653
38654 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38655
38656         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38657         gl_MANYWARN_ALL_GCC.
38658         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38659         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38660         * modules/manywarnings: New file.
38661         * MODULES.html.sh: Mention manywarnings module.
38662
38663 2008-11-18  Bruno Haible  <bruno@clisp.org>
38664
38665         * doc/gnulib-tool.texi (Unit tests): New section.
38666
38667 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38668
38669         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38670         paths like 'lib/po/foo.po'.
38671
38672 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38673
38674         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38675         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38676
38677 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38678
38679         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38680         parameter works.
38681
38682 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38683
38684         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38685
38686 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38687
38688         * modules/parse-duration-tests: New file.
38689         * tests/test-parse-duration.sh: New file.
38690         * tests/test-parse-duration.c: New file.
38691
38692         New module 'parse-duration'.
38693         * lib/parse-duration.h: New file.
38694         * lib/parse-duration.c: New file.
38695         * modules/parse-duration: New file.
38696
38697 2008-11-17  Bruno Haible  <bruno@clisp.org>
38698
38699         * tests/test-select-out.sh: Comment out the first pipe test.
38700         Reported by Simon Josefsson.
38701
38702 2008-11-17  Bruno Haible  <bruno@clisp.org>
38703
38704         * modules/getaddrinfo (Depends-on): Add servent, hostent.
38705         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
38706         gl_HOSTENT.
38707
38708 2008-11-17  Bruno Haible  <bruno@clisp.org>
38709
38710         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
38711         -lnetwork and -lnet. Needed for Haiku and BeOS.
38712
38713 2008-11-16  Bruno Haible  <bruno@clisp.org>
38714
38715         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
38716
38717 2008-11-16  Bruno Haible  <bruno@clisp.org>
38718
38719         Avoid test failure on Haiku.
38720         * tests/test-fsync.c: Include <errno.h>.
38721         (main): Don't require that fsync (0) fails.
38722
38723 2008-11-15  Bruno Haible  <bruno@clisp.org>
38724
38725         New module 'hostent'.
38726         * modules/hostent: New file.
38727         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
38728
38729 2008-11-15  Bruno Haible  <bruno@clisp.org>
38730
38731         New module 'servent'.
38732         * modules/servent: New file.
38733         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
38734
38735 2008-11-15  Bruno Haible  <bruno@clisp.org>
38736
38737         Avoid generating same test program with two different rules.
38738         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
38739         test-frexp to test-frexp-nolibm.
38740         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
38741         test-frexpl to test-frexpl-nolibm.
38742
38743 2008-11-15  Bruno Haible  <bruno@clisp.org>
38744
38745         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
38746         $(FREXPL_LIBM).
38747
38748 2008-11-15  Bruno Haible  <bruno@clisp.org>
38749
38750         * lib/netdb.in.h: Activate the definitions also when the system's
38751         <netdb.h> has 'struct addrinfo'.
38752         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
38753         EAI_OVERFLOW or AI_NUMERICSERV.
38754         * doc/posix-headers/netdb.texi: Document the problem.
38755
38756 2008-11-15  Bruno Haible  <bruno@clisp.org>
38757
38758         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
38759
38760         Make the 'sched' module work on platforms where <sched.h> exists but
38761         is incomplete (such as Haiku).
38762         * lib/sched.in.h; Include the system's <sched.h> if it exists.
38763         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
38764         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
38765         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
38766         HAVE_STRUCT_SCHED_PARAM.
38767         * modules/sched (Depends-on): Add include_next.
38768         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
38769         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
38770         * doc/posix-headers/sched.texi: Document the issue.
38771
38772 2008-11-13  Jim Meyering  <meyering@redhat.com>
38773
38774         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
38775         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
38776         test would fail due to the difference in the Report bugs to ...
38777         line.  The expected address is empty, "<>", while the actual
38778         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
38779
38780 2008-11-12  Bruno Haible  <bruno@clisp.org>
38781
38782         lstat: don't compile lstat.c on systems lacking lstat
38783         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
38784         which don't have lstat; this is handled by lib/sys_stat.in.h already.
38785         Reported by Daniel P. Berrange via Jim Meyering.
38786
38787 2008-11-12  Jim Meyering  <meyering@redhat.com>
38788
38789         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
38790
38791 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38792
38793         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
38794         instead.
38795
38796 2008-11-12  Bruno Haible  <bruno@clisp.org>
38797
38798         * lib/unicodeio.c: Include unistr.h.
38799         (utf8_wctomb): Remove function.
38800         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
38801
38802 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38803
38804         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
38805         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
38806         <bruno@clisp.org>.
38807         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
38808
38809 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38810
38811         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
38812         * doc/gnulib.texi: Add section for warnings.
38813
38814 2008-11-11  Bruno Haible  <bruno@clisp.org>
38815
38816         * lib/sockets.h: Add a comment.
38817
38818 2008-11-11  Karl Berry  <karl@gnu.org>
38819
38820         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
38821
38822 2008-11-11  Eric Blake  <ebb9@byu.net>
38823
38824         fdl.texi: avoid git symlinks
38825         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
38826
38827 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38828
38829         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
38830
38831 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38832
38833         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
38834         (gl_WARN_ADD): Substitute $2 if literal.
38835
38836 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38837
38838         * m4/warning.m4: Remove.
38839
38840 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38841
38842         * m4/warnings.m4: Almost complete rewrite. :-)
38843
38844 2008-11-10  Simon Josefsson  <simon@josefsson.org>
38845
38846         * modules/warnings: New module.
38847         * m4/warnings.m4: New file.
38848         * MODULES.html.sh: Mention warnings module.
38849         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
38850         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38851
38852 2008-11-10  Eric Blake  <ebb9@byu.net>
38853
38854         fdl.texi: make a symlink to the latest version
38855         * doc/standards.texi: Revert today's earlier change.
38856         * doc/fdl-1.2.texi: Rename from old fdl.texi...
38857         * doc/fdl.texi: ...and replace this with a symlink to the newer
38858         fdl-1.3.texi.
38859
38860 2008-11-10  Bruno Haible  <bruno@clisp.org>
38861
38862         * tests/test-select-fd.c (main): Accept the result file name as fourth
38863         argument.
38864         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
38865         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
38866
38867 2008-11-10  Bruno Haible  <bruno@clisp.org>
38868
38869         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
38870         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
38871         as autoconf-substituted macros.
38872         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
38873         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
38874         gl_NETDB_H_DEFAULTS. Set these variables.
38875         * modules/netdb (Makefile.am): Substitute these variables.
38876
38877 2008-11-10  Eric Blake  <ebb9@byu.net>
38878
38879         standards.texi: include correct file for FDL 1.3
38880         * doc/standards.texi (GNU Free Documentation License): Change
38881         include file to pull in FDL 1.3, not 1.2.
38882
38883         fdl.texi: revert accidental change to license
38884         * doc/fdl.texi: This is FDL 1.2, not 1.3.
38885
38886 2008-11-10  Bruno Haible  <bruno@clisp.org>
38887
38888         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
38889         cross-compiling guesses also when the native compile gives no result.
38890
38891 2008-11-10  Bruno Haible  <bruno@clisp.org>
38892
38893         * lib/spawni.c (__spawni): Force variable into the stack.
38894
38895 2008-11-10  Bruno Haible  <bruno@clisp.org>
38896
38897         Add support for Haiku.
38898         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
38899         glibc and BeOS, but also on Haiku.
38900         * lib/fpurge.c (fpurge): Likewise.
38901         * lib/freadable.c (freadable): Likewise.
38902         * lib/freadahead.c (freadahead): Likewise.
38903         * lib/freading.c (freading): Likewise.
38904         * lib/freadptr.c (freadptr): Likewise.
38905         * lib/freadseek.c (freadptrinc): Likewise.
38906         * lib/fseeko.c (rpl_fseeko): Likewise.
38907         * lib/fseterr.c (fseterr): Likewise.
38908         * lib/fwritable.c (fwritable): Likewise.
38909         * lib/fwriting.c (fwriting): Likewise.
38910         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
38911
38912 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38913
38914         * lib/config.charset: Treat Haiku like BeOS.
38915
38916 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38917
38918         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
38919         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
38920
38921 2008-11-08  Bruno Haible  <bruno@clisp.org>
38922
38923         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
38924         AC_CACHE_CHECK.
38925
38926 2008-11-08  Bruno Haible  <bruno@clisp.org>
38927
38928         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
38929
38930 2008-11-08  Bruno Haible  <bruno@clisp.org>
38931
38932         * tests/test-select-fd.c: New file.
38933         * tests/test-select-in.sh: New file.
38934         * tests/test-select-out.sh: New file.
38935         * tests/test-select-stdin.c: New file.
38936         * modules/select-tests (Files): Add the new files.
38937         (Depends-on): Add gettimeofday.
38938         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
38939         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
38940         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
38941
38942 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
38943             Bruno Haible  <bruno@clisp.org>
38944
38945         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
38946
38947 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
38948
38949         * build-aux/pmccabe2html: Added support for C++ source files.
38950
38951 2008-11-05  Ben Pfaff  <blp@gnu.org>
38952
38953         Fix lib/close.c build on Windows.
38954         * modules/close (Files): Add lib/w32sock.h.
38955
38956 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
38957
38958         Accept Bison's NEWS format.
38959         * build-aux/announce-gen (print_news_deltas): Tweak
38960         $re_prefix.
38961
38962 2008-11-04  Bruno Haible  <bruno@clisp.org>
38963
38964         * modules/random_r (Maintainer): Add glibc.
38965
38966 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38967
38968         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
38969         by karl@freefriends.org (Karl Berry).
38970         * doc/alloca.texi: Likewise.
38971         * doc/c-ctype.texi: Likewise.
38972         * doc/c-strcase.texi: Likewise.
38973         * doc/c-strcaseeq.texi: Likewise.
38974         * doc/c-strcasestr.texi: Likewise.
38975         * doc/c-strstr.texi: Likewise.
38976         * doc/c-strtod.texi: Likewise.
38977         * doc/c-strtold.texi: Likewise.
38978         * doc/ctime.texi: Likewise.
38979         * doc/error.texi: Likewise.
38980         * doc/fdl.texi: Likewise.
38981         * doc/gcd.texi: Likewise.
38982         * doc/getdate.texi: Likewise.
38983         * doc/gnulib-intro.texi: Likewise.
38984         * doc/gnulib-tool.texi: Likewise.
38985         * doc/gnulib.texi: Likewise.
38986         * doc/inet_ntoa.texi: Likewise.
38987         * doc/maintain.texi: Likewise.
38988         * doc/make-stds.texi: Likewise.
38989         * doc/quote.texi: Likewise.
38990         * doc/regexprops-generic.texi: Likewise.
38991         * doc/standards.texi: Likewise.
38992         * doc/verify.texi: Likewise.
38993         * doc/visibility.texi: Likewise.
38994         * doc/gnulib.texi (GNU Free Documentation License): Include
38995         fdl-1.3.texi instead of fdl.texi.
38996
38997 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38998
38999         * doc/fdl-1.3.texi: New file, from
39000         <http://www.gnu.org/licenses/fdl-1.3.texi>.
39001         * modules/fdl-1.3: Add.
39002         * MODULES.html.sh: Add fdl-1.3.
39003
39004 2008-11-03  Bruno Haible  <bruno@clisp.org>
39005
39006         Make determination of absolute name of header file work with AIX xlc.
39007         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
39008         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
39009         preprocessing.
39010         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39011         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39012
39013 2008-11-03  Simon Josefsson  <simon@josefsson.org>
39014
39015         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
39016         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
39017         <ludo@gnu.org>.
39018
39019 2008-11-02  Bruno Haible  <bruno@clisp.org>
39020
39021         Mark 'strpbrk' obsolete.
39022         * modules/strpbrk (Status, Notice): New sections.
39023         * modules/strtok_r (Depends-on): Add strpbrk.
39024
39025 2008-11-02  Bruno Haible  <bruno@clisp.org>
39026
39027         Mark 'strdup' obsolete.
39028         * modules/strdup (Status, Notice): New sections.
39029         * modules/findprog (Depends-on): Add strdup.
39030         * modules/getaddrinfo (Depends-on): Likewise.
39031         * modules/localename (Depends-on): Likewise.
39032         * modules/relocatable-lib (Depends-on): Likewise.
39033         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
39034         * modules/relocatable-prog (Depends-on): Likewise.
39035         * modules/trim (Depends-on): Likewise.
39036         * modules/unictype/gen-ctype (Depends-on): Likewise.
39037         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39038
39039 2008-11-02  Bruno Haible  <bruno@clisp.org>
39040
39041         Mark 'strcspn' obsolete.
39042         * modules/strcspn (Status, Notice): New sections.
39043
39044 2008-11-02  Bruno Haible  <bruno@clisp.org>
39045
39046         Mark 'rmdir' obsolete.
39047         * modules/rmdir (Status, Notice): New sections.
39048         * modules/clean-temp (Depends-on): Add rmdir.
39049         * modules/openat (Depends-on): Likewise.
39050
39051 2008-11-02  Bruno Haible  <bruno@clisp.org>
39052
39053         Mark 'raise' obsolete.
39054         * modules/raise (Status, Notice): New sections.
39055         (Include): Specify <signal.h>.
39056         * modules/stdio (Depends-on): Add raise.
39057         * modules/write (Depends-on): Likewise.
39058
39059 2008-11-02  Bruno Haible  <bruno@clisp.org>
39060
39061         Mark 'memset' obsolete.
39062         * modules/memset (Status, Notice): New sections.
39063
39064 2008-11-02  Bruno Haible  <bruno@clisp.org>
39065
39066         Mark 'memmove' obsolete.
39067         * modules/memmove (Status, Notice): New sections.
39068         * modules/argp (Depends-on): Add memmove.
39069         * modules/argz (Depends-on): Likewise.
39070         * modules/canonicalize (Depends-on): Likewise.
39071         * modules/canonicalize-lgpl (Depends-on): Likewise.
39072         * modules/fts (Depends-on): Likewise.
39073         * modules/getcwd (Depends-on): Likewise.
39074         * modules/human (Depends-on): Likewise.
39075         * modules/regex (Depends-on): Likewise.
39076         * modules/striconveh (Depends-on): Likewise.
39077         * modules/trim (Depends-on): Likewise.
39078         * modules/unistr/u8-move (Depends-on): Likewise.
39079         * modules/unistr/u16-move (Depends-on): Likewise.
39080         * modules/unistr/u32-move (Depends-on): Likewise.
39081
39082 2008-11-02  Bruno Haible  <bruno@clisp.org>
39083
39084         Mark 'memcpy' obsolete.
39085         * modules/memcpy (Status, Notice): New sections.
39086
39087 2008-11-02  Bruno Haible  <bruno@clisp.org>
39088
39089         Mark 'memcmp' obsolete.
39090         * modules/memcmp (Status, Notice): New sections.
39091         * modules/argmatch (Depends-on): Add memchr.
39092         * modules/backupfile (Depends-on): Likewise.
39093         * modules/c-strcasestr (Depends-on): Likewise.
39094         * modules/crypto/des (Depends-on): Likewise.
39095         * modules/csharpcomp (Depends-on): Likewise.
39096         * modules/fnmatch (Depends-on): Likewise.
39097         * modules/git-merge-changelog (Depends-on): Likewise.
39098         * modules/isnand (Depends-on): Likewise.
39099         * modules/isnand-nolibm (Depends-on): Likewise.
39100         * modules/isnanf (Depends-on): Likewise.
39101         * modules/isnanf-nolibm (Depends-on): Likewise.
39102         * modules/isnanl (Depends-on): Likewise.
39103         * modules/isnanl-nolibm (Depends-on): Likewise.
39104         * modules/mbchar (Depends-on): Likewise.
39105         * modules/memcoll (Depends-on): Likewise.
39106         * modules/quotearg (Depends-on): Likewise.
39107         * modules/regex (Depends-on): Likewise.
39108         * modules/relocatable-prog (Depends-on): Likewise.
39109         * modules/same (Depends-on): Likewise.
39110         * modules/signbit (Depends-on): Likewise.
39111         * modules/strcasestr-simple (Depends-on): Likewise.
39112         * modules/unictype/gen-ctype (Depends-on): Likewise.
39113         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39114         * modules/uniname/uniname (Depends-on): Likewise.
39115         * modules/unistr/u8-cmp (Depends-on): Likewise.
39116
39117 2008-11-02  Bruno Haible  <bruno@clisp.org>
39118
39119         Mark 'memchr' obsolete.
39120         * modules/memchr (Status, Notice): New sections.
39121         * modules/argp (Depends-on): Add memchr.
39122         * modules/base64 (Depends-on): Likewise.
39123         * modules/c-strcasestr (Depends-on): Likewise.
39124         * modules/chdir-long (Depends-on): Likewise.
39125         * modules/fnmatch (Depends-on): Likewise.
39126         * modules/getsubopt (Depends-on): Likewise.
39127         * modules/git-merge-changelog (Depends-on): Likewise.
39128         * modules/glob (Depends-on): Likewise.
39129         * modules/strcasestr-simple (Depends-on): Likewise.
39130         * modules/strnlen (Depends-on): Likewise.
39131
39132 2008-11-02  Bruno Haible  <bruno@clisp.org>
39133
39134         Mark 'atexit' obsolete.
39135         * modules/atexit (Status, Notice): New sections.
39136         * modules/chdir-long (Depends-on): Add atexit.
39137         * modules/wait-process (Depends-on): Likewise.
39138
39139 2008-11-02  Bruno Haible  <bruno@clisp.org>
39140
39141         * gnulib-tool: New option --with-obsolete.
39142         (func_usage): Document it.
39143         (func_modules_transitive_closure): Drop obsolete dependencies if
39144         incobsolete is not true.
39145         (func_import): Read and save the incobsolete variable to the cache.
39146
39147 2008-11-02  Bruno Haible  <bruno@clisp.org>
39148
39149         * modules/TEMPLATE-EXTENDED: New field 'Status'.
39150         * gnulib-tool: New option --extract-status.
39151         (func_usage): Document it.
39152         (sed_extract_prog): Recognize it.
39153         (func_get_status): New function.
39154
39155 2008-10-30  Simon Josefsson  <simon@josefsson.org>
39156
39157         * modules/sockets (License): Change from LGPL to LGPLv2+.
39158
39159 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39160
39161         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
39162
39163 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39164
39165         * MODULES.html.sh (Support for systems lacking POSIX:2001):
39166         Mention times and sys_times.
39167         * modules/sys_times, modules/sys_times-tests: New modules.
39168         * modules/times, modules/times-tests: Likewise
39169         * m4/sys_times_h.m4: New file.
39170         * lib/sys_times.in.h: Likewise
39171         * lib/times.c: Likewise.
39172         * tests/test-sys_times.c: Likewise.
39173         * tests/test-times.c: Likewise.
39174         * doc/posix-headers/sys_times.texi: Update.
39175         * doc/posix-functions/times.texi: Update.
39176
39177 2008-10-28  Jim Meyering  <meyering@redhat.com>
39178
39179         * modules/tempname (Depends-on): Add lstat.
39180
39181         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
39182
39183 2008-10-28  Simon Josefsson  <simon@josefsson.org>
39184
39185         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
39186         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
39187         using idiom used elsewhere in gnulib.
39188
39189 2008-10-27  Jim Meyering  <meyering@redhat.com>
39190
39191         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
39192
39193 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39194
39195         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
39196         TESTS_ENVIRONMENT, for shell scripts that needs to call built
39197         programs.
39198         * tests/test-argp-2.sh: Use $EXEEXT when needed.
39199
39200 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39201
39202         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
39203
39204 2008-10-27  Bruno Haible  <bruno@clisp.org>
39205
39206         * tests/test-lstat.c: Include <stdio.h>.
39207
39208 2008-10-27  Simon Josefsson  <simon@josefsson.org>
39209
39210         * modules/lstat-tests: New module.
39211         * tests/test-lstat.c: New file.
39212
39213 2008-10-26  Jim Meyering  <meyering@redhat.com>
39214
39215         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
39216
39217 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39218             Bruno Haible  <bruno@clisp.org>
39219
39220         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
39221         * modules/configmake (Include): Add a note that the include must come
39222         after all system headers.
39223         * lib/javaversion.c: Include configmake.h after all other includes.
39224
39225 2008-10-26  Bruno Haible  <bruno@clisp.org>
39226
39227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
39228         HAVE_STRUCT_RANDOM_DATA to 1.
39229         (gl_STDLIB_H): Simplify.
39230
39231 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39232
39233         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
39234         substitute HAVE_STRUCT_RANDOM_DATA.
39235         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
39236         random_data.
39237         * modules/stdlib (Makefile.am): Substitute
39238         HAVE_STRUCT_RANDOM_DATA.
39239
39240 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39241
39242         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
39243         * doc/gnulib-intro.texi (Copyright): Likewise.
39244
39245 2008-10-26  Simon Josefsson  <simon@josefsson.org>
39246
39247         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
39248         findings.
39249
39250 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
39251             Bruno Haible  <bruno@clisp.org>
39252
39253         * lib/unistd.in.h: Include <winsock2.h>.
39254         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
39255         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
39256         Provide dummy declarations.
39257         (gethostname): Override.
39258         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
39259         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
39260         gl_PREREQ_SYS_H_WINSOCK2.
39261         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
39262         * doc/posix-functions/gethostname.texi: More details.
39263
39264 2008-10-25  Bruno Haible  <bruno@clisp.org>
39265
39266         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39267         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
39268         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
39269
39270         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
39271         here ...
39272         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
39273         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
39274         gl_UNISTD_H_DEFAULTS.
39275
39276 2008-10-25  Eric Blake  <ebb9@byu.net>
39277
39278         signbit: avoid spurious compiler failure
39279         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
39280         declarations inside function.
39281
39282 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39283             Bruno Haible  <bruno@clisp.org>
39284
39285         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
39286         * modules/random_r (Depends-on): Add stdint.
39287
39288 2008-10-24  Bruno Haible  <bruno@clisp.org>
39289
39290         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
39291         Eggert.
39292         * modules/strerror (License): Likewise.
39293
39294 2008-10-24  Jim Meyering  <meyering@redhat.com>
39295
39296         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
39297         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
39298
39299 2008-10-24  Eric Blake  <ebb9@byu.net>
39300
39301         getgroups: fix compilation when getgroups is available
39302         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
39303         but with <config.h> override of getgroups disabled.
39304
39305 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39306
39307         * doc/gnulib.texi (Header files): Add note about C++ problems.
39308         Explained by Bruno Haible <bruno@clisp.org>.
39309
39310 2008-10-23  Bruno Haible  <bruno@clisp.org>
39311
39312         Define a dummy SA_NODEFER macro on Interix.
39313         * lib/signal.in.h (SA_NODEFER): Define fallback.
39314         Reported by Aleksey Cheusov <cheusov@tut.by> via
39315         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39316
39317 2008-10-23  Bruno Haible  <bruno@clisp.org>
39318
39319         * modules/freadahead (License): Change to LGPLv2+.
39320         Suggested by Simon Josefsson.
39321
39322 2008-10-23  Jim Meyering  <meyering@redhat.com>
39323
39324         random_r: new module
39325         * modules/random_r: New file.
39326         * m4/random_r.m4: New file.
39327         * lib/random_r.c: New file, from glibc.
39328         * modules/random_r-tests: New file.
39329         * tests/test-random_r.c: New file.
39330         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39331          Declare.
39332         (RAND_MAX): Define.
39333         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39334         * modules/stdlib: Substitute them, too.
39335         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39336         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39337         * doc/glibc-functions/random_r.texi: Likewise.
39338         * doc/glibc-functions/setstate_r.texi: Likewise.
39339         * doc/glibc-functions/srandom_r.texi: Likewise.
39340         * config/srclist.txt: Mention it.
39341
39342 2008-10-23  David Lutterkort  <lutter@redhat.com>
39343
39344         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39345         link requirement
39346
39347 2008-10-23  Jim Meyering  <meyering@redhat.com>
39348
39349         selinux-h: mark parameters of stub functions as intentionally unused
39350         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39351         * lib/se-context.in.h: Likewise.
39352
39353 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39354
39355         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39356
39357 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39358
39359         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39360
39361 2008-10-22  Eric Blake  <ebb9@byu.net>
39362
39363         glthread/thread: avoid compiler warning
39364         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39365         Add unreachable abort to silence compiler.
39366
39367 2008-10-22  Eric Blake  <ebb9@byu.net>
39368
39369         netdb: also supply struct addrinfo for cygwin 1.5.x
39370         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39371         older cygwin.
39372         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39373         cygwin.
39374         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39375
39376 2008-10-22  Bruno Haible  <bruno@clisp.org>
39377
39378         * users.txt: Update entry about pspp.
39379
39380 2008-10-21  Bruno Haible  <bruno@clisp.org>
39381
39382         Simplification.
39383         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39384         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39385
39386         Simplification.
39387         * lib/ioctl.c (ioctl): Don't undefine.
39388         * lib/socket.c (socket): Don't undefine.
39389
39390         Remove unused module indicator macros.
39391         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39392         GNULIB_$1 as a C macro.
39393
39394         * doc/posix-functions/close.texi: Undo last change.
39395         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39396         Windows platforms.
39397
39398 2008-10-21  Bruno Haible  <bruno@clisp.org>
39399
39400         Add gethostname() declaration to <unistd.h>.
39401         * lib/unistd.in.h (gethostname): New declaration.
39402         * lib/gethostname.c: Include <unistd.h>.
39403         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39404         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39406         and HAVE_GETHOSTNAME.
39407         * modules/gethostname (Depends-on): Add unistd.
39408         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39409         (Include): Specify <unistd.h>.
39410         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39411         HAVE_GETHOSTNAME.
39412         * tests/test-gethostname.c: Include <unistd.h> first.
39413
39414 2008-10-21  Bruno Haible  <bruno@clisp.org>
39415
39416         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39417         * modules/select-tests (Depends-on): Likewise.
39418         Reported by Simon Josefsson.
39419
39420 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39421
39422         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39423         * lib/accept.c: New file, based on winsock.c.
39424         * lib/bind.c: New file, based on winsock.c.
39425         * lib/connect.c: New file, based on winsock.c.
39426         * lib/getpeername.c: New file, based on winsock.c.
39427         * lib/getsockname.c: New file, based on winsock.c.
39428         * lib/getsockopt.c: New file, based on winsock.c.
39429         * lib/ioctl.c: New file, based on winsock.c.
39430         * lib/listen.c: New file, based on winsock.c.
39431         * lib/recv.c: New file, based on winsock.c.
39432         * lib/recvfrom.c: New file, based on winsock.c.
39433         * lib/send.c: New file, based on winsock.c.
39434         * lib/sendto.c: New file, based on winsock.c.
39435         * lib/setsockopt.c: New file, based on winsock.c.
39436         * lib/shutdown.c: New file, based on winsock.c.
39437         * lib/socket.c: New file, based on winsock.c.
39438         * lib/w32sock.h: New file, based on winsock.c.
39439         * lib/winsock.c: Remove file.
39440         * modules/accept: Likewise.
39441         * modules/bind: Likewise.
39442         * modules/connect: Likewise.
39443         * modules/getpeername: Likewise.
39444         * modules/getsockname: Likewise.
39445         * modules/getsockopt: Likewise.
39446         * modules/ioctl: Likewise.
39447         * modules/listen: Likewise.
39448         * modules/recv: Likewise.
39449         * modules/recvfrom: Likewise.
39450         * modules/send: Likewise.
39451         * modules/sendto: Likewise.
39452         * modules/setsockopt: Likewise.
39453         * modules/shutdown: Likewise.
39454         * modules/socket: Use socket.c instead of winsock.c.
39455         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39456         * doc/posix-functions/accept.texi: Doc fix.
39457         * doc/posix-functions/bind.texi: Doc fix.
39458         * doc/posix-functions/close.texi: Doc fix.
39459         * doc/posix-functions/connect.texi: Doc fix.
39460         * doc/posix-functions/getpeername.texi: Doc fix.
39461         * doc/posix-functions/getsockname.texi: Doc fix.
39462         * doc/posix-functions/getsockopt.texi: Doc fix.
39463         * doc/posix-functions/ioctl.texi: Doc fix.
39464         * doc/posix-functions/listen.texi: Doc fix.
39465         * doc/posix-functions/recv.texi: Doc fix.
39466         * doc/posix-functions/recvfrom.texi: Doc fix.
39467         * doc/posix-functions/send.texi: Doc fix.
39468         * doc/posix-functions/sendto.texi: Doc fix.
39469         * doc/posix-functions/setsockopt.texi: Doc fix.
39470         * doc/posix-functions/shutdown.texi: Doc fix.
39471         * doc/posix-functions/socket.texi: Doc fix.
39472
39473 2008-10-20  Bruno Haible  <bruno@clisp.org>
39474
39475         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39476         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39477         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39478         as an alias for SIGABRT.
39479         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39480         (sigaction): Map it to SIGABRT.
39481         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39482
39483 2008-10-20  Bruno Haible  <bruno@clisp.org>
39484
39485         * lib/fts.c: Don't include lstat.h.
39486         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39487
39488         Move the lstat() declaration to <sys/stat.h>.
39489         * lib/lstat.h: Remove file.
39490         * lib/sys_stat.in.h: Add special invocation convention.
39491         (lstat): New declaration.
39492         * lib/lstat.c (orig_lstat): New function.
39493         (rpl_lstat): Use orig_lstat instead of lstat.
39494         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39495         AC_C_INLINE. Set REPLACE_LSTAT.
39496         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39497         and REPLACE_LSTAT.
39498         * modules/lstat (Files): Remove lib/lstat.h.
39499         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39500         (Include): Specify <sys/stat.h> instead of lstat.h.
39501         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39502         REPLACE_LSTAT.
39503         * NEWS: Mention the change.
39504
39505 2008-10-20  Bruno Haible  <bruno@clisp.org>
39506
39507         * modules/posix_spawn-tests: New file.
39508         * tests/test-posix_spawn3.c: New file.
39509
39510 2008-10-20  Bruno Haible  <bruno@clisp.org>
39511
39512         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39513         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39514         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39515         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39516         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39517
39518 2008-10-20  Bruno Haible  <bruno@clisp.org>
39519
39520         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39521         of posix_spawn on AIX 5.3.
39522
39523 2008-10-20  Bruno Haible  <bruno@clisp.org>
39524
39525         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39526
39527 2008-10-20  Bruno Haible  <bruno@clisp.org>
39528
39529         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
39530         of AC_LANG_PROGRAM.
39531
39532 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39533
39534         * lib/netdb.in.h: Don't define GNU specific constants until they
39535         are supported or needed.  Reported by Bruno Haible
39536         <bruno@clisp.org>.
39537
39538 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39539
39540         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
39541
39542 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39543
39544         * lib/getaddrinfo.h: Remove file.
39545         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
39546         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
39547         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
39548         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
39549         * modules/netdb: Substitute GNULIB_GETADDRINFO.
39550         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
39551         * tests/test-getaddrinfo.c: Likewise.
39552         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
39553         * NEWS: Mention change.
39554
39555 2008-10-19  Bruno Haible  <bruno@clisp.org>
39556
39557         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
39558
39559 2008-10-19  Bruno Haible  <bruno@clisp.org>
39560
39561         * lib/wait-process.c: Include simply <sys/wait.h>.
39562         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
39563         WIFSTOPPED): Remove fallback definitions.
39564         * modules/wait-process (Depends-on): Add sys_wait.
39565
39566         New module 'sys_wait'.
39567         * modules/sys_wait: New file.
39568         * lib/sys_wait.in.h: New file, partially copied from
39569         lib/wait-process.c.
39570         * m4/sys_wait_h.m4: New file.
39571         * doc/posix-headers/sys_wait.texi: Mention the new module.
39572
39573 2008-10-19  Bruno Haible  <bruno@clisp.org>
39574
39575         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
39576
39577 2008-10-19  Bruno Haible  <bruno@clisp.org>
39578
39579         Assume that waitpid() fills an 'int' status, not a 'union wait'.
39580         * lib/wait-process.c (WAIT_T): Remove type.
39581         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
39582         (wait_subprocess): Update.
39583
39584 2008-10-19  Bruno Haible  <bruno@clisp.org>
39585
39586         New module 'atoll'.
39587         * modules/atoll: New file.
39588         * lib/stdlib.in.h (atoll): New declaration.
39589         * lib/atoll.c: New file, from glibc with modifications.
39590         * m4/atoll.m4: New file.
39591         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
39592         HAVE_ATOLL.
39593         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
39594         * doc/posix-functions/atoll.texi: Mention the new module.
39595
39596 2008-10-19  Bruno Haible  <bruno@clisp.org>
39597
39598         Add strtoull() declaration to <stdlib.h>.
39599         * lib/stdlib.in.h (strtoull): New declaration.
39600         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39601         Set HAVE_STRTOULL.
39602         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
39603         HAVE_STRTOULL.
39604         * modules/strtoull (Depends-on): Add stdlib.
39605         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39606         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
39607         HAVE_STRTOULL.
39608
39609 2008-10-19  Bruno Haible  <bruno@clisp.org>
39610
39611         Add strtoll() declaration to <stdlib.h>.
39612         * lib/stdlib.in.h (strtoll): New declaration.
39613         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39614         Set HAVE_STRTOLL.
39615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
39616         HAVE_STRTOLL.
39617         * modules/strtoll (Depends-on): Add stdlib.
39618         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39619         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39620
39621 2008-10-19  Bruno Haible  <bruno@clisp.org>
39622
39623         * modules/bcopy (Depends-on): Add strings.
39624         (Include): Specify <strings.h>.
39625
39626 2008-10-19  Bruno Haible  <bruno@clisp.org>
39627
39628         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39629
39630 2008-10-19  Bruno Haible  <bruno@clisp.org>
39631
39632         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39633         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39634         mingw.
39635
39636 2008-10-19  Bruno Haible  <bruno@clisp.org>
39637
39638         * lib/atanl.c: Don't include isnanl.h.
39639         * lib/cosl.c: Likewise.
39640         * lib/ldexpl.c: Likewise.
39641         * lib/logl.c: Likewise.
39642         * lib/sinl.c: Likewise.
39643         * lib/sqrtl.c: Likewise.
39644         * lib/tanl.c: Likewise.
39645
39646         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39647         * lib/isnanf.h: Remove file.
39648         * lib/isnand.h: Remove file.
39649         * lib/isnanl.h: Remove file.
39650         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39651         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39652         macros.
39653         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39654         HAVE_ISNANF, don't define it as a C macro.
39655         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39656         HAVE_ISNAND, don't define it as a C macro.
39657         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39658         HAVE_ISNANL, don't define it as a C macro.
39659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39660         HAVE_ISNAN[FDL].
39661         * modules/isnanf (Files): Remove lib/isnanf.h.
39662         (Depends-on): Add math.
39663         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39664         (Include): Specify <math.h> instead of isnanf.h.
39665         * modules/isnand (Files): Remove lib/isnand.h.
39666         (Depends-on): Add math.
39667         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39668         (Include): Specify <math.h> instead of isnand.h.
39669         * modules/isnanl (Files): Remove lib/isnanl.h.
39670         (Depends-on): Add math.
39671         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39672         (Include): Specify <math.h> instead of isnanl.h.
39673         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39674         HAVE_ISNAN[FDL].
39675         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39676         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39677         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39678         * NEWS: Mention the change.
39679
39680 2008-10-18  Bruno Haible  <bruno@clisp.org>
39681
39682         Add getusershell(), setusershell(), endusershell() declarations to
39683         <unistd.h>.
39684         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39685         declarations.
39686         * lib/getusershell.c: Include unistd.h.
39687         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39688         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39689         HAVE_GETUSERSHELL.
39690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39691         and HAVE_GETUSERSHELL.
39692         * modules/getusershell (Depends-on): Add unistd, extensions.
39693         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39694         (Include): Specify <unistd.h>.
39695         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
39696         HAVE_GETUSERSHELL.
39697
39698 2008-10-18  Bruno Haible  <bruno@clisp.org>
39699
39700         Add a getloadavg() declaration to <stdlib.h>.
39701         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
39702         getloadavg declaration.
39703         (getloadavg): New declaration.
39704         * lib/getloadavg.c: Include <stdlib.h> first.
39705         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
39706         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
39707         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
39708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
39709         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39710         * modules/getloadavg (Depends-on): Add stdlib, extensions.
39711         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39712         (Include): Specify <stdlib.h>.
39713         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
39714         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39715
39716 2008-10-18  Bruno Haible  <bruno@clisp.org>
39717
39718         * lib/dirchownmod.c: Don't include lchmod.h.
39719
39720         Move the lchmod() declaration to <sys/stat.h>.
39721         * lib/lchmod.h: Remove file.
39722         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
39723         (lchmod): New declaration, moved here from lib/lchown.h.
39724         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
39725         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
39726         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
39727         and HAVE_LCHMOD.
39728         * modules/lchmod (Files): Remove lib/lchmod.h.
39729         (Depends-on): Add sys_stat, extensions.
39730         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39731         (Include): Specify <sys/stat.h> instead of lchmod.h.
39732         * modules/sys_stat (Depends-on): Add link-warning.
39733         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
39734         definition of GL_LINK_WARNING.
39735         * NEWS: Mention the change.
39736
39737 2008-10-18  Bruno Haible  <bruno@clisp.org>
39738
39739         * lib/fchdir.c: Don't include dirfd.h.
39740         * lib/fts.c: Likewise.
39741         * lib/getcwd.c: Likewise.
39742         * lib/glob.c: Likewise.
39743
39744         Move the dirfd() declaration to <dirent.h>.
39745         * lib/dirfd.h: Remove file.
39746         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
39747         (dirfd): New declaration.
39748         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
39749         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
39750         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
39751         HAVE_DECL_DIRFD.
39752         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
39753         HAVE_DECL_DIRFD.
39754         * modules/dirfd (Files): Remove lib/dirfd.h.
39755         (Depends-on): Add dirent, extensions.
39756         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
39757         (Include): Specify <dirent.h> instead of dirfd.h.
39758         * modules/dirent (Depends-on): Add link-warning.
39759         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
39760         definition of GL_LINK_WARNING.
39761         * NEWS: Mention the change.
39762
39763 2008-10-18  Bruno Haible  <bruno@clisp.org>
39764
39765         Move the euidaccess() declaration to <unistd.h>.
39766         * lib/euidaccess.h: Remove file.
39767         * lib/unistd.in.h (euidaccess): New declaration.
39768         * lib/euidaccess.c: Don't include euidaccess.h.
39769         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
39770         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
39771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
39772         and HAVE_EUIDACCESS.
39773         * modules/euidaccess (Files): Remove lib/euidaccess.h.
39774         (Depends-on): Add unistd.
39775         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39776         (Include): Specify <unistd.h> instead of euidaccess.h.
39777         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
39778         HAVE_EUIDACCESS.
39779         * NEWS: Mention the change.
39780
39781 2008-10-18  Bruno Haible  <bruno@clisp.org>
39782
39783         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
39784
39785         Move the getdomainname() declaration to <unistd.h>.
39786         * lib/getdomainname.h: Remove file.
39787         * lib/unistd.in.h (getdomainname): New declaration.
39788         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
39789         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39790         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39791         HAVE_GETDOMAINNAME.
39792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39793         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
39794         * modules/getdomainname (Files): Remove lib/getdomainname.h.
39795         (Depends-on): Add unistd, extensions.
39796         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39797         (Includes): Specify <unistd.h> instead of getdomainname.h.
39798         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
39799         HAVE_GETDOMAINNAME.
39800         * NEWS: Mention the change.
39801
39802 2008-10-18  Bruno Haible  <bruno@clisp.org>
39803
39804         * modules/dirent: New file.
39805         * m4/dirent_h.m4: New file.
39806         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
39807         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
39808         * modules/fchdir (Files): Remove lib/dirent.in.h.
39809         (Depends-on): Add dirent.
39810         (Makefile.am): Move rules to modules/dirent.
39811         * doc/posix-headers/dirent.texi: Mention the new module.
39812
39813 2008-10-18  Bruno Haible  <bruno@clisp.org>
39814
39815         Avoid -Wunused-parameter warnings in public gnulib header files.
39816         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
39817         macro.
39818         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
39819
39820 2008-10-18  Bruno Haible  <bruno@clisp.org>
39821
39822         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
39823         * doc/glibc-functions/error.texi: Mention the module 'error'.
39824         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
39825         * doc/glibc-functions/getdomainname.texi: Mention the module
39826         'getdomainname'.
39827         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
39828         * doc/glibc-functions/getpagesize.texi: Mention the module
39829         'getpagesize'.
39830         * doc/glibc-functions/getusershell.texi: Mention the module
39831         'getusershell'.
39832         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
39833         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
39834         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
39835         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
39836         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
39837         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
39838         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
39839         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
39840         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
39841         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
39842         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
39843         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
39844         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
39845         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
39846
39847 2008-10-17  Bruno Haible  <bruno@clisp.org>
39848
39849         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
39850         HP-UX and IRIX, use -0.0L.
39851         * tests/test-ceill.c (minus_zero): Likewise.
39852         * tests/test-floorl.c (minus_zero): Likewise.
39853         * tests/test-frexpl.c (minus_zero): Likewise.
39854         * tests/test-isnan.c (minus_zerol): Likewise.
39855         * tests/test-isnanl.h (minus_zero): Likewise.
39856         * tests/test-ldexpl.c (minus_zero): Likewise.
39857         * tests/test-roundl.c (minus_zero): Likewise.
39858         * tests/test-signbit.c (minus_zerol): Likewise.
39859         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39860         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39861         * tests/test-truncl.c (minus_zero): Likewise.
39862         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39863         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39864         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
39865         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39866
39867 2008-10-17  Bruno Haible  <bruno@clisp.org>
39868
39869         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
39870         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
39871         that it gets activated only for gcc >= 3.0.
39872         * lib/dirent.in.h: Likewise.
39873         * lib/errno.in.h: Likewise.
39874         * lib/fcntl.in.h: Likewise.
39875         * lib/float.in.h: Likewise.
39876         * lib/iconv.in.h: Likewise.
39877         * lib/inttypes.in.h: Likewise.
39878         * lib/locale.in.h: Likewise.
39879         * lib/math.in.h: Likewise.
39880         * lib/netdb.in.h: Likewise.
39881         * lib/netinet_in.in.h: Likewise.
39882         * lib/search.in.h: Likewise.
39883         * lib/signal.in.h: Likewise.
39884         * lib/spawn.in.h: Likewise.
39885         * lib/stdarg.in.h: Likewise.
39886         * lib/stdint.in.h: Likewise.
39887         * lib/stdio.in.h: Likewise.
39888         * lib/stdlib.in.h: Likewise.
39889         * lib/string.in.h: Likewise.
39890         * lib/strings.in.h: Likewise.
39891         * lib/sys_file.in.h: Likewise.
39892         * lib/sys_ioctl.in.h: Likewise.
39893         * lib/sys_select.in.h: Likewise.
39894         * lib/sys_socket.in.h: Likewise.
39895         * lib/sys_stat.in.h: Likewise.
39896         * lib/sys_time.in.h: Likewise.
39897         * lib/sysexits.in.h: Likewise.
39898         * lib/time.in.h: Likewise.
39899         * lib/unistd.in.h: Likewise.
39900         * lib/wchar.in.h: Likewise.
39901         * lib/wctype.in.h: Likewise.
39902         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39903
39904 2008-10-17  Jim Meyering  <meyering@redhat.com>
39905
39906         ignore-value: don't depend on inline module
39907         * modules/ignore-value (Depends-on): Remove 'inline'.
39908         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
39909         Suggestion from Bruno Haible.
39910
39911 2008-10-17  Bruno Haible  <bruno@clisp.org>
39912
39913         New implementation of condition variables for Win32.
39914         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
39915         (gl_linked_waitqueue_t): New type.
39916         (gl_cond_t): Use it.
39917         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
39918         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
39919         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
39920         (glthread_cond_init_func, glthread_cond_wait_func,
39921         glthread_cond_timedwait_func, glthread_cond_signal_func,
39922         glthread_cond_broadcast_func, glthread_cond_destroy_func):
39923         Reimplemented on the basis of gl_linked_waitqueue_t.
39924         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
39925         gl_waitqueue_t.
39926         (gl_rwlock_t): Update.
39927         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
39928
39929 2008-10-17  Simon Josefsson  <simon@josefsson.org>
39930
39931         * modules/recvfrom (Depends-on): Add dependency on getpeername.
39932         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39933
39934 2008-10-17  Jim Meyering  <meyering@redhat.com>
39935
39936         ignore-value: new module
39937         * modules/ignore-value: New file.
39938         * lib/ignore-value.h: New file.
39939         * MODULES.html.sh (Compiler warning management): New section,
39940         just for this module.  More to come.
39941
39942 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39943
39944         open-safer.c: avoid 'signed and unsigned in conditional...' warning
39945         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
39946         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
39947
39948 2008-10-16  Jim Meyering  <meyering@redhat.com>
39949
39950         openat-die.c: avoid 'no previous prototype' warning
39951         * lib/openat-die.c: Include "openat.h".
39952         Reported by Reuben Thomas <rrt@sc3d.org>.
39953
39954 2008-10-16  Simon Josefsson  <simon@josefsson.org>
39955
39956         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
39957         * lib/netdb.in.h: Fix typo.
39958         Reported by Bruno Haible  <bruno@clisp.org>
39959
39960         * lib/netdb.in.h: Include sys/socket.h for platforms without
39961         netdb.h, to get structures like hostent on MinGW.
39962         * modules/netdb (Depends-on): Add sys_socket.
39963
39964 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39965
39966         * modules/netdb, modules/netdb-tests: New file.
39967         * m4/netdb_h.m4: New file.
39968         * lib/netdb.in.h: Add, currently just an empty file pending
39969         definitions.
39970         * tests/test-netdb.c: New file.
39971         * doc/posix-headers/netdb.texi: Mention that we replace it if
39972         needed.
39973         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39974         netdb.
39975
39976 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39977
39978         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
39979         with code.
39980
39981 2008-10-13  Bruno Haible  <bruno@clisp.org>
39982
39983         * lib/glthread/cond.c (glthread_cond_wait_func,
39984         glthread_cond_timedwait_func): Add a comment.
39985
39986 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39987
39988         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
39989         * tests/test-select.c: Likewise,
39990
39991 2008-10-13  Bruno Haible  <bruno@clisp.org>
39992
39993         * lib/glthread/cond.c (glthread_cond_wait_func,
39994         glthread_cond_timedwait_func): Fix variable name.
39995         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39996
39997 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
39998
39999         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
40000         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
40001         struct sockaddr.sa_len.
40002         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
40003
40004 2008-10-13  Simon Josefsson  <simon@josefsson.org>
40005
40006         * build-aux/pmccabe2html: Add css and css_url parameters.
40007
40008 2008-10-12  Bruno Haible  <bruno@clisp.org>
40009
40010         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
40011         calling aclx_get.
40012         Reported by Rainer Tammer <tammer@tammer.net>.
40013
40014 2008-10-12  Bruno Haible  <bruno@clisp.org>
40015
40016         Use msvcrt aware primitives for creation/termination of Win32 threads.
40017         * lib/glthread/thread.c: Include <process.h>.
40018         (glthread_create_func): Use _beginthreadex instead of CreateThread.
40019         (wrapper_func): Update signature.
40020         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
40021
40022 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40023             Bruno Haible  <bruno@clisp.org>
40024
40025         Provide a Win32 implementation of the 'cond' module.
40026         * lib/glthread/cond.h [USE_WIN32]: New implementation.
40027         * lib/glthread/cond.c (glthread_cond_init_func,
40028         glthread_cond_wait_func, glthread_cond_timedwait_func,
40029         glthread_cond_signal_func, glthread_cond_broadcast_func,
40030         glthread_cond_destroy_func) [USE_WIN32]: New functions.
40031         * modules/cond (Dependencies): Add gettimeofday.
40032
40033 2008-10-11  Bruno Haible  <bruno@clisp.org>
40034
40035         Make sleep work on older versions of mingw.
40036         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
40037         only whether it exists.
40038         * doc/posix-functions/sleep.texi: Mention the problem with older
40039         versions of mingw.
40040
40041 2008-10-11  Bruno Haible  <bruno@clisp.org>
40042
40043         New module 'shutdown'.
40044         * modules/shutdown: New file.
40045         * lib/sys_socket.in.h (shutdown): New declaration.
40046         * lib/winsock.c (shutdown): New function.
40047         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40048         GNULIB_SHUTDOWN.
40049         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
40050         * doc/posix-functions/shutdown.texi: Document the new module.
40051
40052 2008-10-11  Jim Meyering  <meyering@redhat.com>
40053
40054         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
40055
40056 2008-10-11  Bruno Haible  <bruno@clisp.org>
40057
40058         New module 'fclose'.
40059         * modules/fclose: New file.
40060         * lib/stdio.in.h (fclose): New declaration.
40061         * lib/fclose.c: New file.
40062         * m4/fclose.m4: New file.
40063         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
40064         REPLACE_FCLOSE.
40065         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
40066         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
40067         REPLACE_FCLOSE.
40068         * modules/close (Depends-on): fclose.
40069         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
40070
40071 2008-10-11  Bruno Haible  <bruno@clisp.org>
40072
40073         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
40074         set errno and don't call _close.
40075
40076 2008-10-10  Bruno Haible  <bruno@clisp.org>
40077
40078         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
40079         ACL, not afterwards. Fixes test failure on Cygwin.
40080
40081 2008-10-09  Ben Pfaff  <blp@gnu.org>
40082
40083         * build-aux/announce-gen: Fix gnulib version related part of usage
40084         message.  Die with a useful error message if no tarballs are
40085         found.
40086
40087 2008-10-10  Jim Meyering  <meyering@redhat.com>
40088
40089         bootstrap: use git's --depth=N option only if it's supported
40090         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
40091         recognize the --depth option.  Reported by Pádraig Brady.
40092
40093 2008-10-09  Bruno Haible  <bruno@clisp.org>
40094
40095         New module 'ioctl'.
40096         * modules/ioctl: New file.
40097         * lib/sys_socket.in.h (ioctl): Remove declaration.
40098         * lib/winsock.c: Include <sys/ioctl.h>.
40099         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
40100         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40101         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
40102         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
40103         * doc/posix-functions/ioctl.texi: Mention the new module.
40104
40105 2008-10-09  Bruno Haible  <bruno@clisp.org>
40106
40107         New module 'sys_ioctl'.
40108         * lib/sys_ioctl.in.h: New file.
40109         * m4/sys_ioctl_h.m4: New file.
40110         * modules/sys_ioctl: New file.
40111         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
40112
40113 2008-10-09  Bruno Haible  <bruno@clisp.org>
40114
40115         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
40116         * lib/winsock.c: Include <stdarg.h>.
40117         (rpl_ioctl): Change to second argument 'int' and then varargs.
40118
40119 2008-10-09  Bruno Haible  <bruno@clisp.org>
40120
40121         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
40122         when the sys_socket module is present and the system has <winsock2.h>.
40123
40124 2008-10-09  Bruno Haible  <bruno@clisp.org>
40125
40126         * doc/posix-functions/close.texi: Mention module 'close' instead of
40127         module 'sys_socket'.
40128
40129 2008-10-09  Bruno Haible  <bruno@clisp.org>
40130
40131         * doc/glibc-headers/sys_ioctl.texi: New file.
40132         * doc/gnulib.texi: Include it.
40133
40134 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40135             Bruno Haible  <bruno@clisp.org>
40136
40137         Combine the two replacements of 'close'.
40138         * lib/sys_socket.in.h (close): Define to a reminder to include
40139         <unistd.h>.
40140         (_gl_close_fd_maybe_socket): New declaration.
40141         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
40142         * lib/winsock.c (close): Remove undefinition.
40143         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
40144         needed for the gnulib module 'close'.
40145         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
40146         define to an error symbol or to a warning, if suitable.
40147         * lib/close.c: Include <sys/socket.h>.
40148         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
40149         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
40150         UNISTD_H_HAVE_WINSOCK2_H.
40151         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
40152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40153         UNISTD_H_HAVE_WINSOCK2_H.
40154         * modules/sys_socket (Files): Add m4/unistd_h.m4.
40155         (configure.ac): Set a module indicator.
40156         (Makefile.am): Substitute GNULIB_CLOSE.
40157         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
40158         * modules/poll-tests (Depends-on): Add close.
40159         * modules/select-tests (Depends-on): Likewise.
40160
40161 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40162             Bruno Haible  <bruno@clisp.org>
40163
40164         New module 'close'.
40165         * modules/close: New file.
40166         * lib/unistd.in.h (close): Move declaration out of the
40167         FCHDIR_REPLACEMENT scope.
40168         (_gl_unregister_fd): New declaration.
40169         * lib/close.c: New file.
40170         * lib/fchdir.c (rpl_close): Remove function.
40171         * m4/close.m4: New file.
40172         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40173         close.
40174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
40175         REPLACE_CLOSE.
40176         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
40177         REPLACE_CLOSE.
40178         * modules/fchdir (Depends-on): Add close.
40179
40180 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40181             Bruno Haible  <bruno@clisp.org>
40182
40183         * lib/fcntl.in.h (open): Simplify conditionals.
40184         (_gl_register_fd): New declaration.
40185         * lib/fchdir.c (rpl_open): Remove function.
40186         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
40187         also.
40188         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
40189         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
40190         open.
40191
40192 2008-10-09  Jim Meyering  <meyering@redhat.com>
40193
40194         GNUmakefile: use the more name-space-friendly "_version"
40195         * top/GNUmakefile (_dummy): Update.
40196         (_version): Rename from "version".
40197
40198 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40199             Bruno Haible  <bruno@clisp.org>
40200
40201         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
40202         rpl_close.
40203         (_gl_register_fd): New function, extracted from rpl_open.
40204         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
40205         (rpl_open, rpl_opendir): Use _gl_register_fd.
40206
40207 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
40208
40209         Fix organization of 'open' replacement.
40210         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
40211         (gl_FUNC_OPEN): Use it.
40212         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
40213
40214 2008-10-08  Bruno Haible  <bruno@clisp.org>
40215
40216         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
40217
40218 2008-10-08  Simon Josefsson  <simon@josefsson.org>
40219
40220         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
40221         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
40222         listen).
40223
40224 2008-10-08  Eric Blake  <ebb9@byu.net>
40225
40226         GNUmakefile: add 'make version' target
40227         * top/GNUmakefile (_curr-ver): Split version update rules...
40228         (version): ...into a target.
40229
40230 2008-10-07  Bruno Haible  <bruno@clisp.org>
40231
40232         Use a more portable replacement expression for -0.0L.
40233         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
40234         instead of -0.0L. Fix m4 quotation.
40235
40236         * tests/test-signbit.c: Include <float.h>.
40237         (minus_zero): New variable.
40238         (test_signbitl): Use minus_zero instead of -zero.
40239         * modules/signbit-tests (Depends-on): Add float.
40240
40241         * tests/test-ceill.c: Include <float.h>.
40242         (zero): Remove variable.
40243         (minus_zero): New variable.
40244         (main): Use minus_zero instead of -zero.
40245         * modules/ceill-tests (Depends-on): Add float.
40246
40247         * tests/test-floorl.c: Include <float.h>.
40248         (zero): Remove variable.
40249         (minus_zero): New variable.
40250         (main): Use minus_zero instead of -zero.
40251         * modules/floorl-tests (Depends-on): Add float.
40252
40253         * tests/test-roundl.c: Include <float.h>.
40254         (zero): Remove variable.
40255         (minus_zero): New variable.
40256         (main): Use minus_zero instead of -zero.
40257         * modules/roundl-tests (Depends-on): Add float.
40258
40259         * tests/test-truncl.c: Include <float.h>.
40260         (zero): Remove variable.
40261         (minus_zero): New variable.
40262         (main): Use minus_zero instead of -zero.
40263         * modules/truncl-tests (Depends-on): Add float.
40264
40265         * tests/test-frexpl.c (zero): Remove variable.
40266         (minus_zero): New variable.
40267         (main): Use minus_zero instead of -zero.
40268         * modules/frexpl-tests (Depends-on): Add float.
40269
40270         * tests/test-isnan.c (zerol): Remove variable.
40271         (minus_zerol): New variable.
40272         (test_long_double): Use minus_zerol instead of -zerol.
40273         * modules/isnan-tests (Depends-on): Add float.
40274
40275         * tests/test-isnanl.h (zero): Remove variable.
40276         (minus_zero): New variable.
40277         (main): Use minus_zero instead of -zero.
40278         * modules/isnanl-nolibm-tests (Depends-on): Add float.
40279         * modules/isnanl-tests (Depends-on): Add float.
40280
40281         * tests/test-ldexpl.c (zero): Remove variable.
40282         (minus_zero): New variable.
40283         (main): Use minus_zero instead of -zero.
40284         * modules/ldexpl-tests (Depends-on): Add float.
40285
40286         * tests/test-snprintf-posix.h (zerol): Remove variable.
40287         (minus_zerol): New variable.
40288         (test_function): Use minus_zerol instead of -zerol.
40289         * modules/snprintf-posix-tests (Depends-on): Add float.
40290         * modules/vsnprintf-posix-tests (Depends-on): Add float.
40291
40292         * tests/test-sprintf-posix.h (zerol): Remove variable.
40293         (minus_zerol): New variable.
40294         (test_function): Use minus_zerol instead of -zerol.
40295         * modules/sprintf-posix-tests (Depends-on): Add float.
40296         * modules/vsprintf-posix-tests (Depends-on): Add float.
40297
40298         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
40299         (minus_zerol): New variable.
40300         (test_function): Use minus_zerol instead of -zerol.
40301         * modules/vasnprintf-posix-tests (Depends-on): Add float.
40302
40303         * tests/test-vasprintf-posix.c (zerol): Remove variable.
40304         (minus_zerol): New variable.
40305         (test_function): Use minus_zerol instead of -zerol.
40306         * modules/vasprintf-posix-tests (Depends-on): Add float.
40307
40308 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40309
40310         * MODULES.html.sh (Support for building documentation): Mention
40311         pmccabe2html.  Sort entries.
40312
40313         Add pmccabe2html module, from gnupdf.
40314         * build-aux/pmccabe.css: New file.
40315         * build-aux/pmccabe2html: New file.
40316         * m4/pmccabe2html.m4: New file.
40317         * modules/pmccabe2html: New file.
40318
40319 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40320
40321         flock: new module
40322         * MODULES.html.sh: Add to list of modules.
40323         * lib/flock.c: flock implementation for Windows and Unix systems
40324         which have fcntl.
40325         * doc/glibc-functions/flock.texi: Update documentation.
40326         * lib/sys_file.in.h: <sys/file.h> header file.
40327         * m4/flock.m4: M4 macros.
40328         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40329         * modules/flock: flock module.
40330         * modules/flock-tests: flock tests module.
40331         * modules/sys_file: sys/file.h module.
40332         * tests/test-flock.c: test suite for flock.
40333
40334 2008-10-06  Jim Meyering  <meyering@redhat.com>
40335
40336         bootstrap: check for LT_INIT more portably still ;-)
40337         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40338         Spotted by Bruno Haible.
40339
40340 2008-10-06  Eric Blake  <ebb9@byu.net>
40341
40342         test-signbit: avoid tripping Irix cc bug on -0.0L
40343         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40344         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40345         entire testsuite consistent and avoids an Irix 6.2 bug.
40346
40347 2008-10-05  Bruno Haible  <bruno@clisp.org>
40348             Jim Meyering  <jim@meyering.net>
40349
40350         Add an option for ignoring EPIPE during close_stdout.
40351         * lib/closeout.h: Include <stdbool.h>.
40352         (close_stdout_set_ignore_EPIPE): New declaration.
40353         * lib/closeout.c: Include <stdbool.h>.
40354         (ignore_EPIPE): New variable.
40355         (close_stdout_set_ignore_EPIPE): New function.
40356         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40357         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40358         failure.
40359         * modules/closeout (Depends-on): Add stdbool.
40360
40361 2008-10-05  Bruno Haible  <bruno@clisp.org>
40362
40363         * modules/accept: New file.
40364         * modules/bind: New file.
40365         * modules/connect: New file.
40366         * modules/getpeername: New file.
40367         * modules/getsockname: New file.
40368         * modules/getsockopt: New file.
40369         * modules/listen: New file.
40370         * modules/recv: New file.
40371         * modules/recvfrom: New file.
40372         * modules/send: New file.
40373         * modules/sendto: New file.
40374         * modules/setsockopt: New file.
40375         * modules/socket: New file.
40376         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40377         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40378         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40379         the particular module is requested. Add a link warning when the
40380         particular module is not requested.
40381         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40382         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40383         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40384         the particular module is requested.
40385         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40386         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40387         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40388         * modules/sys_socket (Depends-on): Add link-warning.
40389         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40390         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40391         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40392         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40393         GL_LINK_WARNING.
40394         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40395         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40396         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40397         * doc/posix-functions/getpeername.texi: Mention the new module
40398         'getpeername'.
40399         * doc/posix-functions/getsockname.texi: Mention the new module
40400         'getsockname'.
40401         * doc/posix-functions/getsockopt.texi: Mention the new module
40402         'getsockopt'.
40403         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40404         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40405         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40406         * doc/posix-functions/send.texi: Mention the new module 'send'.
40407         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40408         * doc/posix-functions/setsockopt.texi: Mention the new module
40409         'setsockopt'.
40410         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40411         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40412         listen, connect, accept.
40413         * modules/select-tests (Depends-on): Likewise.
40414
40415 2008-10-05  Bruno Haible  <bruno@clisp.org>
40416
40417         * lib/winsock.c (strerror): Remove unused #undef.
40418         (rpl_close): Remove unused local variable.
40419
40420         * modules/sys_socket (Depends-on); Add errno.
40421
40422 2008-10-05  Bruno Haible  <bruno@clisp.org>
40423
40424         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40425         (select): Add a link warning when the 'select' module is not used.
40426         * modules/sys_select (Depends-on): Add link-warning.
40427         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40428         Suggested by Paolo Bonzini.
40429
40430 2008-10-05  Jim Meyering  <meyering@redhat.com>
40431
40432         bootstrap: check for LT_INIT more portably
40433         * build-aux/bootstrap: Avoid using grep -E, since it's not
40434         portable enough.  Suggestion from Bruno Haible.
40435
40436 2008-10-05  Bruno Haible  <bruno@clisp.org>
40437
40438         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40439         as being fixed by gnulib.
40440
40441 2008-10-05  Bruno Haible  <bruno@clisp.org>
40442
40443         * modules/select-tests: New file, mostly copied from
40444         modules/sys_select-tests.
40445         * tests/test-select.c: New file, mostly copied from
40446         tests/test-sys_select.c.
40447         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40448         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40449         (Makefile.am): Remove test_sys_select_LDADD.
40450
40451         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40452         to an undefined symbol, for an error message.
40453         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40454         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40455         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40456         winsock-select.c here.
40457         * modules/sys_select (Files): Remove lib/winsock-select.c.
40458         (Depends-on): Remove alloca.
40459         (Makefile.am): Substitute GNULIB_SELECT.
40460         * modules/select: New file.
40461         * doc/posix-functions/select.texi: Update.
40462
40463 2008-10-05  Bruno Haible  <bruno@clisp.org>
40464
40465         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40466         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40467         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40468         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40469         getdtablesize.
40470         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40471         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40472
40473 2008-10-05  Bruno Haible  <bruno@clisp.org>
40474
40475         * modules/getdtablesize-tests: New file.
40476         * tests/test-getdtablesize.c: New file.
40477
40478         New module 'getdtablesize'.
40479         * lib/unistd.in.h (getdtablesize): New declaration.
40480         * lib/getdtablesize.c: New file.
40481         * m4/getdtablesize.m4: New file.
40482         * modules/getdtablesize: New file.
40483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40484         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40485         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40486         HAVE_GETDTABLESIZE.
40487         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40488
40489 2008-10-05  Bruno Haible  <bruno@clisp.org>
40490
40491         * modules/sched (Makefile.am): Fix typo.
40492         Reported by Simon Josefsson.
40493
40494 2008-10-05  Jim Meyering  <meyering@redhat.com>
40495
40496         bootstrap: check for LT_INIT, too
40497         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40498         are deprecated.  Suggestion from Ralf Wildenhues.
40499
40500 2008-10-05  Bruno Haible  <bruno@clisp.org>
40501
40502         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40503         overriding them by ours.
40504         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40505
40506 2008-10-05  Jim Meyering  <meyering@redhat.com>
40507
40508         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40509         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40510         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40511
40512 2008-10-04  Bruno Haible  <bruno@clisp.org>
40513
40514         * modules/dup2 (License): Change to LGPLv2+.
40515         * modules/sleep (License): Likewise.
40516         * modules/perror (License): Likewise.
40517         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40518         Blake.
40519         * modules/signal (License): Likewise.
40520         * modules/sigprocmask (License): Likewise.
40521         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40522         Meyering.
40523
40524 2008-10-04  Bruno Haible  <bruno@clisp.org>
40525
40526         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
40527         Reported by Rainer Tammer <tammer@tammer.net>.
40528
40529 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
40530             Bruno Haible  <bruno@clisp.org>
40531
40532         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
40533         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
40534         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
40535
40536 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
40537
40538         filevercmp: new module
40539         * lib/filevercmp.h: New function filevercmp comparing version strings.
40540         * lib/filevercmp.c: Implementation of filevercmp function.
40541         * modules/filevercmp: Module metadata.
40542         * tests/test-filevercmp.c: Unit test for new module.
40543         * modules/filevercmp-tests: Unit test metadata.
40544         * MODULES.html.sh: Add filevercmp module.
40545
40546 2008-10-03  Bruno Haible  <bruno@clisp.org>
40547
40548         * lib/c-ctype.h: Add comment.
40549         Reported by Jim Meyering.
40550
40551 2008-10-02  Bruno Haible  <bruno@clisp.org>
40552
40553         * modules/posix_spawn-internal (Depends-on): Add 'open'.
40554
40555 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40556
40557         * build-aux/bootstrap: Allow renaming bootstrap, and change the
40558         name of bootstrap.conf accordingly.
40559
40560 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40561
40562         * build-aux/bootstrap: Install git-merge-changelog configuration
40563         items into .gitconfig if needed.
40564
40565 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40566
40567         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
40568         git repository, and initialize/update it accordingly.
40569
40570 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
40571
40572         * modules/fsync-tests: New file.
40573         * tests/test-fsync.c: New file.
40574
40575         New module 'fsync'.
40576         * lib/fsync.c: New file.
40577         * m4/fsync.m4: New file.
40578         * modules/fsync: New file.
40579         * lib/unistd.in.h (fsync): New declaration.
40580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
40581         GNULIB_FSYNC and HAVE_FSYNC.
40582         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
40583         * MODULES.html.sh (posix_functions): Add fsync.
40584         * doc/posix-functions/fsync.texi: Mention the new module.
40585
40586 2008-10-02  Jim Meyering  <meyering@redhat.com>
40587
40588         fts.c: sync with similar code from coreutils' remove.c
40589         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
40590         Guard also with "#if defined __linux__", since for now at least,
40591         this code is Linux-kernel-specific.
40592
40593 2008-10-02  Jim Meyering  <meyering@redhat.com>
40594
40595         fts: bug fixes
40596         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
40597         Include <sys/vfs.h>, not <sys/statfs.h>.
40598
40599         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
40600         Include <sys/vfs.h>, not <sys/statfs.h>.
40601
40602 2008-10-01  Bruno Haible  <bruno@clisp.org>
40603
40604         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
40605         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
40606         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
40607         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
40608         * doc/posix-functions/posix_spawnp.texi: Likewise.
40609         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
40610         whether posix_spawn actually works.
40611         * m4/pipe.m4 (gl_PIPE): Likewise.
40612         * modules/execute (Files): Add m4/posix_spawn.m4.
40613         * modules/pipe (Files): Add m4/posix_spawn.m4.
40614         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
40615
40616 2008-10-01  Jim Meyering  <meyering@redhat.com>
40617
40618         remove trailing spaces
40619         * NEWS: Likewise.
40620         * lib/poll.c (poll): Likewise.
40621         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40622         * lib/winsock.c (rpl_close): Likewise.
40623         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40624         * modules/yield: Likewise.
40625         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40626         * tests/test-sys_select.c (connect_to_socket): Likewise.
40627
40628         fts.c: adjust a new interface to be more generally useful
40629         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40630         (fts_build): Adjust caller.
40631
40632 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40633
40634         * modules/cond-tests: New file.
40635         * tests/test-cond.c: New file.
40636
40637 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40638             Bruno Haible  <bruno@clisp.org>
40639
40640         * modules/cond (Dependencies): Add errno, time.
40641         * lib/glthread/cond.h: Include <time.h>.
40642         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40643         across platforms.
40644
40645 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40646             Bruno Haible  <bruno@clisp.org>
40647
40648         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40649
40650 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40651             Bruno Haible  <bruno@clisp.org>
40652
40653         * modules/tls-tests (Depends-on): Add thread, yield.
40654         (configure.ac): Remove all checks.
40655         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40656         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40657         gl_thread_self): Remove definitions. Include glthread/thread.h and
40658         glthread/yield.h instead.
40659         (test_tls): Pass an additional NULL argument to gl_thread_join.
40660
40661 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40662             Bruno Haible  <bruno@clisp.org>
40663
40664         * modules/lock-tests (Depends-on): Add thread, yield.
40665         (configure.ac): Remove all checks.
40666         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40667         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40668         gl_thread_self): Remove definitions. Include glthread/thread.h and
40669         glthread/yield.h instead.
40670         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40671         additional NULL argument to gl_thread_join.
40672
40673 2008-09-30  Bruno Haible  <bruno@clisp.org>
40674
40675         Fix the Win32 implementation of the 'thread' module.
40676         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40677         pointer type.
40678         (gl_thread_self): Invoke gl_thread_self_func.
40679         (gl_thread_self_func): New declaration.
40680         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40681         (do_init_self_key, init_self_key): New functions.
40682         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40683         Remove some fields.
40684         (running_threads, running_lock): Remove variables.
40685         (get_current_thread_handle): New function.
40686         (gl_thread_self_func, wrapper_func, glthread_create_func,
40687         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40688         simplified.
40689
40690 2008-09-30  Bruno Haible  <bruno@clisp.org>
40691
40692         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
40693         files.
40694
40695 2008-09-30  Jim Meyering  <meyering@redhat.com>
40696
40697         fts.m4: correct the test for statfs.f_type
40698         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
40699         when checking for statfs.f_type.
40700
40701 2008-09-15  Simon Josefsson  <simon@josefsson.org>
40702
40703         tests: avoid some compiler warnings
40704         * tests/test-memchr.c (main): Pass NULL indirectly.
40705         * tests/test-getdate.c (main): Remove unused variable 'ret'.
40706
40707 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
40708
40709         getdate.y: disallow countable dayshifts like "4 yesterday ago"
40710         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
40711         exactly specified dayshifts.
40712         (dayshift): New rule.
40713         (rel): Add dayshift.
40714         (relative_time_table) [tomorrow, yesterday, today, now]:
40715         Use tDAY_SHIFT in place of tDAY_UNIT.
40716         * tests/test-getdate.c: Add tests for now-disallowed countable
40717         dayshifts, e.g., "4 yesterday ago".
40718
40719 2008-09-29  Bruno Haible  <bruno@clisp.org>
40720
40721         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
40722         * tests/test-posix_spawn1.in.sh: Renamed from
40723         tests/test-posix_spawn.in.sh.
40724         * tests/test-posix_spawn2.c: New file.
40725         * tests/test-posix_spawn2.in.sh: New file.
40726         * modules/posix_spawnp-tests (Files): Update.
40727         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
40728
40729 2008-09-29  Bruno Haible  <bruno@clisp.org>
40730
40731         Propagate effects of putenv/setenv/unsetenv to child processes.
40732         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
40733         * lib/pipe.c (create_pipe): Likewise.
40734
40735 2008-09-29  Bruno Haible  <bruno@clisp.org>
40736
40737         Enable use of shell scripts as executables in mingw.
40738         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
40739         run the program as a shell script.
40740         * lib/pipe.c (create_pipe): Likewise.
40741         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
40742         resulting array.
40743
40744 2008-09-29  Eric Blake  <ebb9@byu.net>
40745
40746         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
40747
40748 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
40749
40750         * doc/posix-functions/accept.texi: Update mingw problems.
40751         * doc/posix-functions/bind.texi: Update mingw problems.
40752         * doc/posix-functions/close.texi: Update mingw problems.
40753         * doc/posix-functions/connect.texi: Update mingw problems.
40754         * doc/posix-functions/getpeername.texi: Update mingw problems.
40755         * doc/posix-functions/getsockname.texi: Update mingw problems.
40756         * doc/posix-functions/getsockopt.texi: Update mingw problems.
40757         * doc/posix-functions/ioctl.texi: Update mingw problems.
40758         * doc/posix-functions/listen.texi: Update mingw problems.
40759         * doc/posix-functions/recv.texi: Update mingw problems.
40760         * doc/posix-functions/recvfrom.texi: Update mingw problems.
40761         * doc/posix-functions/select.texi: Update mingw problems.
40762         * doc/posix-functions/send.texi: Update mingw problems.
40763         * doc/posix-functions/sendto.texi: Update mingw problems.
40764         * doc/posix-functions/setsockopt.texi: Update mingw problems.
40765         * doc/posix-functions/socket.texi: Update mingw problems.
40766
40767 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
40768             Bruno Haible  <bruno@clisp.org>
40769
40770         * lib/sys_select.in.h: Include sys/time.h.
40771         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
40772         * modules/sys_select: Depend on sys_time.
40773         * tests/test-sys_select.c: Test that sys/select.h defines struct
40774         timeval fully.
40775
40776 2008-09-29  Bruno Haible  <bruno@clisp.org>
40777
40778         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
40779         * lib/sys_select.in.h: Likewise.
40780
40781 2008-09-29  Bruno Haible  <bruno@clisp.org>
40782
40783         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
40784
40785 2008-09-29  Bruno Haible  <bruno@clisp.org>
40786
40787         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
40788         Set LIBSOCKET instead of augmenting LIBS.
40789         * modules/sockets (Link): New section.
40790         * modules/sockets-tests (test_sockets_LDADD): New variable.
40791         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
40792         * modules/poll-tests (test_poll_LDADD): New variable.
40793         * NEWS: Document the change.
40794
40795 2008-09-29  Bruno Haible  <bruno@clisp.org>
40796
40797         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
40798         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
40799         ARPA_INET_H directly.
40800         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40801
40802 2008-09-28  Bruno Haible  <bruno@clisp.org>
40803
40804         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
40805         from gl_HEADER_SYS_SOCKET.
40806         (gl_HEADER_SYS_SOCKET): Invoke it.
40807         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40808
40809 2008-09-28  Bruno Haible  <bruno@clisp.org>
40810
40811         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
40812         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
40813         Needed on OSF/1 4.0.
40814
40815 2008-09-28  Bruno Haible  <bruno@clisp.org>
40816
40817         Override open more carefully.
40818         * lib/open.c (orig_open): New function.
40819         (rpl_open): Use orig_open instead of open.
40820         * lib/fcntl.in.h: Add special invocation convention.
40821         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
40822         (gl_FUNC_OPEN): Invoke it.
40823
40824         Override freopen more carefully.
40825         * lib/freopen.c (orig_freopen): New function.
40826         (rpl_freopen): Use orig_freopen instead of freopen.
40827         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
40828         (gl_FUNC_FREOPEN): Invoke it.
40829
40830         Override fopen more carefully.
40831         * lib/fopen.c (orig_fopen): New function.
40832         (rpl_fopen): Use orig_fopen instead of fopen.
40833         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
40834         (gl_FUNC_FOPEN): Invoke it.
40835         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
40836
40837 2008-09-28  Bruno Haible  <bruno@clisp.org>
40838
40839         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
40840         SIGPIPE.
40841
40842 2008-09-28  Bruno Haible  <bruno@clisp.org>
40843
40844         * tests/test-sigaction.c (handler, main): Disable the check whether
40845         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
40846         glibc systems with LinuxThreads.
40847
40848 2008-09-28  Bruno Haible  <bruno@clisp.org>
40849
40850         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
40851
40852         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
40853         with AIX xlc.
40854         * lib/fcntl.in.h (open): Likewise.
40855         Reported by Rainer Tammer <tammer@tammer.net>.
40856
40857 2008-09-28  Bruno Haible  <bruno@clisp.org>
40858
40859         * modules/posix_spawnp-tests: New file.
40860         * tests/test-posix_spawn.c: New file.
40861         * tests/test-posix_spawn.in.sh: New file.
40862
40863         New module 'posix_spawnp'.
40864         * modules/posix_spawnp: New file.
40865         * lib/spawnp.c: New file, from GNU libc with modifications.
40866         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
40867
40868         New module 'posix_spawn'.
40869         * modules/posix_spawn: New file.
40870         * lib/spawn.c: New file, from GNU libc with modifications.
40871         * doc/posix-functions/posix_spawn.texi: Mention the new module.
40872
40873         New module 'posix_spawnattr_destroy'.
40874         * modules/posix_spawnattr_destroy: New file.
40875         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
40876         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
40877         module.
40878
40879         New module 'posix_spawnattr_setsigmask'.
40880         * modules/posix_spawnattr_setsigmask: New file.
40881         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
40882         modifications.
40883         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
40884         new module.
40885
40886         New module 'posix_spawnattr_getsigmask'.
40887         * modules/posix_spawnattr_getsigmask: New file.
40888         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
40889         modifications.
40890         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
40891         new module.
40892
40893         New module 'posix_spawnattr_setsigdefault'.
40894         * modules/posix_spawnattr_setsigdefault: New file.
40895         * lib/spawnattr_setdefault.c: New file, from GNU libc with
40896         modifications.
40897         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
40898         new module.
40899
40900         New module 'posix_spawnattr_getsigdefault'.
40901         * modules/posix_spawnattr_getsigdefault: New file.
40902         * lib/spawnattr_getdefault.c: New file, from GNU libc with
40903         modifications.
40904         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
40905         new module.
40906
40907         New module 'posix_spawnattr_setschedpolicy'.
40908         * modules/posix_spawnattr_setschedpolicy: New file.
40909         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
40910         modifications.
40911         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
40912         new module.
40913
40914         New module 'posix_spawnattr_getschedpolicy'.
40915         * modules/posix_spawnattr_getschedpolicy: New file.
40916         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
40917         modifications.
40918         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
40919         new module.
40920
40921         New module 'posix_spawnattr_setschedparam'.
40922         * modules/posix_spawnattr_setschedparam: New file.
40923         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
40924         modifications.
40925         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
40926         new module.
40927
40928         New module 'posix_spawnattr_getschedparam'.
40929         * modules/posix_spawnattr_getschedparam: New file.
40930         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
40931         modifications.
40932         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
40933         new module.
40934
40935         New module 'posix_spawnattr_setpgroup'.
40936         * modules/posix_spawnattr_setpgroup: New file.
40937         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
40938         modifications.
40939         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
40940         module.
40941
40942         New module 'posix_spawnattr_getpgroup'.
40943         * modules/posix_spawnattr_getpgroup: New file.
40944         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
40945         modifications.
40946         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
40947         module.
40948
40949         New module 'posix_spawnattr_setflags'.
40950         * modules/posix_spawnattr_setflags: New file.
40951         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
40952         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
40953         module.
40954
40955         New module 'posix_spawnattr_getflags'.
40956         * modules/posix_spawnattr_getflags: New file.
40957         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
40958         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
40959         module.
40960
40961         New module 'posix_spawnattr_init'.
40962         * modules/posix_spawnattr_init: New file.
40963         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
40964         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
40965         module.
40966
40967         New module 'posix_spawn_file_actions_destroy'.
40968         * modules/posix_spawn_file_actions_destroy: New file.
40969         * lib/spawn_faction_destroy.c: New file, from GNU libc with
40970         modifications.
40971         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
40972         the new module.
40973
40974         New module 'posix_spawn_file_actions_addopen'.
40975         * modules/posix_spawn_file_actions_addopen: New file.
40976         * lib/spawn_faction_addopen.c: New file, from GNU libc with
40977         modifications.
40978         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40979         the new module.
40980
40981         New module 'posix_spawn_file_actions_adddup2'.
40982         * modules/posix_spawn_file_actions_adddup2: New file.
40983         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
40984         modifications.
40985         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40986         the new module.
40987
40988         New module 'posix_spawn_file_actions_addclose'.
40989         * modules/posix_spawn_file_actions_addclose: New file.
40990         * lib/spawn_faction_addclose.c: New file, from GNU libc with
40991         modifications.
40992         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40993         the new module.
40994
40995         New module 'posix_spawn_file_actions_init'.
40996         * modules/posix_spawn_file_actions_init: New file.
40997         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
40998         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
40999         new module.
41000
41001         New module 'posix_spawn-internal'.
41002         * modules/posix_spawn-internal: New file.
41003         * lib/spawn_int.h: New file, from GNU libc with modifications.
41004         * lib/spawni.c: New file, from GNU libc with modifications.
41005         * m4/posix_spawn.m4: New file.
41006
41007         New module 'spawn'.
41008         * modules/spawn: New file.
41009         * lib/spawn.in.h: New file, from GNU libc with modifications.
41010         * m4/spawn_h.m4: New file.
41011         * doc/posix-headers/spawn.texi: Mention the new module.
41012
41013 2008-09-28  Bruno Haible  <bruno@clisp.org>
41014
41015         * modules/sched-tests: New file.
41016         * tests/test-sched.c: New file.
41017
41018         New module 'sched'.
41019         * modules/sched: New file.
41020         * lib/sched.in.h: New file.
41021         * m4/sched_h.m4: New file.
41022         * doc/posix-headers/sched.texi: Mention the new module.
41023
41024 2008-09-27  Eric Blake  <ebb9@byu.net>
41025
41026         Fix previous patch, and tweak references to $0.
41027         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
41028         (func_version, func_gnulib_dir): Don't call this program
41029         gnulib-tool.
41030         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
41031         with using $0 in function.
41032         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
41033         (func_fatal_error): Reuse the name the user invoked us with.
41034
41035 2008-09-27  Bruno Haible  <bruno@clisp.org>
41036
41037         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
41038         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
41039         (gl_ICONV_H): Not here.
41040         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
41041         instead of assigning ICONV_H directly.
41042
41043         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
41044         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
41045         WCHAR_H directly.
41046
41047 2008-09-27  Bruno Haible  <bruno@clisp.org>
41048
41049         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
41050         * modules/arpa_inet (Depends-on): Add link-warning.
41051         (Makefile.am): Insert the definition of GL_LINK-WARNING.
41052         * modules/unistd (Makefile.am): Likewise.
41053
41054 2008-09-26  Bruno Haible  <bruno@clisp.org>
41055
41056         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
41057         variables.
41058         (func_version): Essentially copied from gnulib-tool.
41059         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
41060         func_readlink): Copied from gnulib-tool.
41061
41062 2008-09-26  Bruno Haible  <bruno@clisp.org>
41063
41064         * gnulib-tool (func_version): Change directory to $gnulib_dir before
41065         invoking git-version-gen.
41066
41067 2008-09-26  Bruno Haible  <bruno@clisp.org>
41068
41069         * posix-modules: Update to directory names changed on 2008-01-19.
41070         Remove commas in output before splitting into words. No more need to
41071         avoid 'ftruncate' since 2007-02-19.
41072
41073 2008-09-26  Bruno Haible  <bruno@clisp.org>
41074
41075         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
41076
41077 2008-09-26  Bruno Haible  <bruno@clisp.org>
41078
41079         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
41080         * modules/fwriteerror (Depends-on): Add errno.
41081
41082 2008-09-26  Bruno Haible  <bruno@clisp.org>
41083
41084         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
41085         * tests/test-vc-list-files-cvs.sh: Likewise.
41086
41087 2008-09-26  Bruno Haible  <bruno@clisp.org>
41088
41089         * doc/posix-headers/sys_resource.texi: Reorder items.
41090
41091 2008-09-26  Jim Meyering  <meyering@redhat.com>
41092
41093         fts: tweak inode comparison function
41094         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
41095         inode numbers, as documented.
41096
41097         fts: sort dirent entries on inode number before traversing
41098         This avoids a quadratic, seek-related performance penalty when
41099         operating on a directory containing many entries (measurable at 10k;
41100         3.5 hours at 2 million entries with a cold cache) on certain types
41101         of file systems, including ext3 and ext4, but not tmpfs.
41102         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
41103         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
41104         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
41105         (fs_handles_readdir_ordered_dirents_efficiently): New function.
41106         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
41107         (fts_build): Set the stat.st_ino member from D_INO.
41108         If it is likely to be useful, sort dirent entries on inode number.
41109
41110         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
41111         and the struct statfs.f_type member.
41112         * modules/fts (Depends-on): Add d-ino.
41113
41114 2008-09-26  Bruno Haible  <bruno@clisp.org>
41115
41116         * modules/sigpipe-die (Depends-on): Add sigpipe.
41117
41118         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
41119         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
41120         and GNULIB_STDIO_H_SIGPIPE are set.
41121         * lib/stdio-write.c: New file.
41122         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
41123         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41124         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41125         REPLACE_STDIO_WRITE_FUNCS.
41126         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
41127         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41128         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41129         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41130         * modules/stdio (Files): Add lib/stdio-write.c.
41131         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
41132         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
41133         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
41134         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
41135         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
41136         REPLACE_FPRINTF_POSIX.
41137         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
41138         REPLACE_PRINTF_POSIX.
41139         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
41140         REPLACE_VFPRINTF_POSIX.
41141         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
41142         REPLACE_VPRINTF_POSIX.
41143         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
41144         SIGPIPE issue.
41145         * doc/posix-functions/fputc.texi: Likewise.
41146         * doc/posix-functions/fputs.texi: Likewise.
41147         * doc/posix-functions/fwrite.texi: Likewise.
41148         * doc/posix-functions/printf.texi: Likewise.
41149         * doc/posix-functions/putc.texi: Likewise.
41150         * doc/posix-functions/putchar.texi: Likewise.
41151         * doc/posix-functions/puts.texi: Likewise.
41152         * doc/posix-functions/vfprintf.texi: Likewise.
41153         * doc/posix-functions/vprintf.texi: Likewise.
41154
41155         * modules/safe-write (Depends-on): Add write.
41156
41157         * modules/sigpipe-tests: New file.
41158         * tests/test-sigpipe.c: New file.
41159         * tests/test-sigpipe.sh: New file.
41160
41161         * modules/write: New file.
41162         * lib/unistd.in.h: Include <sys/types.h>.
41163         (write): New declaration.
41164         * lib/write.c: New file.
41165         * m4/write.m4: New file.
41166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41167         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
41168         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
41169         GNULIB_WRITE, REPLACE_WRITE.
41170         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
41171         and the SIGPIPE issue.
41172
41173         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
41174         (raise): New declaration.
41175         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
41176         (ext_signal): New function.
41177         (rpl_raise): New function.
41178         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
41179         GNULIB_SIGNAL_H_SIGPIPE.
41180         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
41181         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
41182
41183         * modules/sigpipe: New file.
41184         * m4/sigpipe.m4: New file.
41185
41186 2008-09-25  Derek Price  <derek@ximbiot.com>
41187             Bruno Haible  <bruno@clisp.org>
41188
41189         * gnulib-tool (func_import): Report all license incompatibilities, not
41190         just the first one.
41191
41192 2008-09-25  Bruno Haible  <bruno@clisp.org>
41193
41194         * gnulib-tool (func_import): When computing the edits, consider not
41195         only the Makefile.ams that exist but also those that will be generated.
41196
41197 2008-09-25  Simon Josefsson  <simon@josefsson.org>
41198
41199         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
41200         fixes gnulib-tool --test warning about duplicate dependency.
41201
41202 2008-09-25  Bruno Haible  <bruno@clisp.org>
41203
41204         * gnulib-tool: Don't ask the user to perform edits in the generated
41205         Makefile.ams.
41206         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
41207         apply to the Makefile.am being generated.
41208         (func_emit_tests_Makefile_am): Execute edits that apply to the
41209         Makefile.am being generated.
41210         (func_import): Setup list of Makefile.am edits before emitting the
41211         Makefile.ams, not at the end.
41212         (func_create_testdir): Update.
41213         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41214
41215 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41216
41217         * gnulib-tool (func_import): Store the --tests-base option in the
41218         comment in gnulib-cache.m4.
41219
41220 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
41221
41222         * NEWS: Document increased portability that sys_select now provides.
41223
41224         * lib/sys_select.in.h: Install select wrapper.
41225         * lib/sys_socket.in.h: Use more descriptive name when there is no
41226         select wrapper.
41227         * lib/winsock-select.c: New.
41228         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
41229         Require gl_HEADER_SYS_SOCKET.
41230         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
41231         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
41232         * tests/test-sys_select.c: Add functional tests.
41233
41234 2008-09-24  Eric Blake  <ebb9@byu.net>
41235
41236         open, fopen: close fd leak in last patch
41237         * lib/open.c (rpl_open): Close fd before returning error.
41238         * lib/fopen.c (rpl_fopen): Close fd before returning error.
41239         * doc/posix-functions/open.texi (open): Document that Irix also
41240         has the bug.
41241         * doc/posix-functions/fopen.texi (fopen): Likewise.
41242         Reported by Paolo Bonzini.
41243
41244 2008-09-24  Bruno Haible  <bruno@clisp.org>
41245
41246         Ensure that a filename ending in a slash cannot be used to access a
41247         non-directory.
41248         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
41249         to check whether it's really a directory.
41250         * lib/fopen.c: Include fcntl.h, unistd.h.
41251         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
41252         and fdopen().
41253         * modules/fopen (Depends-on): Add unistd.
41254         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
41255         * tests/test-fopen.c (main): Likewise.
41256         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
41257         * doc/posix-functions/fopen.texi: Likewise.
41258         Reported by Eric Blake.
41259
41260 2008-09-23  Eric Blake  <ebb9@byu.net>
41261
41262         c-stack: avoid compiler optimizations when provoking overflow
41263         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
41264         recursion harder to optimize, to ensure a stack overflow occurs.
41265         * tests/test-c-stack.c (recurse): Likewise.
41266         Borrowed from libsigsegv.
41267
41268         c-stack: work around Irix sigaltstack bug
41269         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
41270         whether sigaltstack uses wrong end of stack_t (copied in part from
41271         libsigsegv).
41272         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
41273         Irix bug, without requiring an over-allocation.
41274         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
41275         bug.
41276
41277         fopen: document mingw bug on directories
41278         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
41279         not allowing a stream visiting a directory, even though reading
41280         from such a stream is not portable.
41281
41282 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41283
41284         * lib/poll.c: Rewrite.
41285         * modules/poll: Depend on alloca.
41286
41287 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41288
41289         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
41290         instead define prototypes for a full set of wrappers.  Ensure
41291         that Cygwin does not use the compatibility code, which is only
41292         for MinGW.
41293         * lib/winsock.c: New.
41294         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
41295         * modules/sys_socket: Add lib/winsock.c.
41296
41297         * modules/poll-tests: Add errno and perror.
41298         * tests/test-poll.c: Use ioctl, not ioctlsocket.
41299
41300 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41301
41302         * tests/test-poll.c: Downgrade minimum needed Winsock version.
41303
41304 2008-09-23  Bruno Haible  <bruno@clisp.org>
41305
41306         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
41307         * doc/glibc-functions/*: Likewise.
41308
41309 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41310
41311         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41312         success.
41313
41314 2008-09-22  Eric Blake  <ebb9@byu.net>
41315             Bruno Haible  <bruno@clisp.org>
41316
41317         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41318         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41319         supply %A but mishandle pseudo-NaN.
41320         Reported by Simon Josefsson.
41321
41322 2008-09-21  Bruno Haible  <bruno@clisp.org>
41323
41324         * tests/test-lock.c (main): Tweak skip message.
41325         * tests/test-tls.c (main): Likewise.
41326
41327 2008-09-21  Bruno Haible  <bruno@clisp.org>
41328
41329         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41330         whether 'struct sigaction' has sa_sigaction here...
41331         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41332         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41333
41334 2008-09-21  Bruno Haible  <bruno@clisp.org>
41335
41336         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41337         section.
41338         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41339         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41340         the new section.
41341         (Support for obsolete systems lacking POSIX:2001): New section.
41342         (String handling <string.h>): Move strdup to the new section.
41343         Suggested by Simon Josefsson and Paolo Bonzini.
41344
41345 2008-09-21  Bruno Haible  <bruno@clisp.org>
41346
41347         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41348         exponents in %e and %g results on 'long double'. Needed for mingw's
41349         improved *printf functions.
41350         * tests/test-vasprintf-posix.c (test_function): Likewise.
41351         * tests/test-snprintf-posix.h (test_function): Likewise.
41352         * tests/test-sprintf-posix.h (test_function): Likewise.
41353         Reported by Eric Blake.
41354
41355 2008-09-21  Bruno Haible  <bruno@clisp.org>
41356
41357         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41358         * tests/test-sprintf-posix.h (test_function): Likewise.
41359
41360 2008-09-21  Bruno Haible  <bruno@clisp.org>
41361
41362         * modules/getpass (Depends-on): Add strdup-posix.
41363
41364         New module 'strdup-posix'.
41365         * modules/strdup-posix: New file.
41366         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41367         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41368         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41369         REPLACE_STRDUP.
41370         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41371         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41372         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41373         strdup-posix.
41374
41375         * modules/strdup (Depends-on): Remove malloc-posix.
41376
41377 2008-09-20  Bruno Haible  <bruno@clisp.org>
41378
41379         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41380         Wildenhues.
41381
41382 2008-09-20  Bruno Haible  <bruno@clisp.org>
41383
41384         Ensure that wint_t gets defined on IRIX 5.3.
41385         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41386         * lib/wctype.in.h (wint_t): Likewise.
41387         (__wctype_wint_t): Remove type.
41388         (isw*): Use wint_t instead of __wctype_wint_t.
41389         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41390         * modules/wchar (Files): Add m4/wint_t.m4.
41391         (Makefile.am): Substitute HAVE_WINT_T.
41392         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41393         * tests/test-wctype.c: Check that wint_t is defined.
41394         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41395         * doc/posix-headers/wctype.texi: Likewise.
41396         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41397
41398 2008-09-18  Bruno Haible  <bruno@clisp.org>
41399
41400         * gnulib-tool (func_exit): Update comment.
41401
41402 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41403
41404         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41405         assumes strdup exists and does not depend on strdup to return
41406         ENOMEM on out of memory conditions.
41407
41408 2008-09-18  Bruno Haible  <bruno@clisp.org>
41409
41410         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
41411         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41412         digits for the exponent.
41413
41414 2008-09-18  Jim Meyering  <meyering@redhat.com>
41415             Bruno Haible  <bruno@clisp.org>
41416
41417         * lib/vasnprintf.c (decimal_point_char): Define also if
41418         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41419
41420 2008-09-16  Bruno Haible  <bruno@clisp.org>
41421         and Eric Blake  <ebb9@byu.net>
41422
41423         vasnprintf: support Irix 5.3
41424         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41425         that mishandle long double infinity.
41426         Reported by Tom G. Christensen.
41427
41428 2008-09-16  Bruno Haible  <bruno@clisp.org>
41429
41430         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41431         Solaris 9.
41432         * doc/glibc-functions/alphasort.texi: Likewise.
41433         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41434
41435 2008-09-16  Jim Meyering  <meyering@redhat.com>
41436
41437         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41438         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41439         a umask modification leak out of a subshell.  Otherwise, the
41440         opensolaris /bin/sh would be accepted and thus cause unwarranted
41441         failures in the coreutils test suite.
41442
41443 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41444
41445         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41446         to succeed.
41447
41448 2008-09-16  Jim Meyering  <meyering@redhat.com>
41449
41450         avoid spurious test failure when library is built without ACL support
41451         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41452         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41453         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41454         * tests/test-copy-acl.sh: Likewise.
41455
41456 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41457
41458         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41459         based on character occurrence counts.
41460
41461 2008-09-15  Eric Blake  <ebb9@byu.net>
41462
41463         tests: avoid some compiler warnings
41464         * tests/test-memchr.c (main): Pass NULL indirectly.
41465         * tests/test-closein.c (main): Avoid unused variable.
41466
41467 2008-09-15  Bruno Haible  <bruno@clisp.org>
41468
41469         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41470         are missing on OpenBSD 4.0 individually.
41471         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41472
41473 2008-09-15  Bruno Haible  <bruno@clisp.org>
41474
41475         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41476         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41477         * doc/posix-functions/perror.texi: Likewise.
41478         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41479         is missing.
41480         Reported by Eric Blake.
41481
41482         * lib/errno.in.h: Use replacement values >= 2000.
41483         Reported by Eric Blake.
41484
41485 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41486
41487         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41488         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41489         limit.
41490         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41491         compareseq was aborted.
41492
41493 2008-09-14  Bruno Haible  <bruno@clisp.org>
41494
41495         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41496         yvec_edit_count.
41497         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41498         (fstrcmp_bounded): Simplify result computation accordingly.
41499
41500 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41501
41502         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41503         (fstrcmp): Define in terms of fstrcmp_bounded.
41504         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41505         lower_bound argument.
41506         Return quickly if the result is certainly < lower_bound.
41507         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41508
41509 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41510
41511         * lib/diffseq.h (EARLY_ABORT): New macro.
41512         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41513         evaluates to true.
41514
41515 2008-09-14  Bruno Haible  <bruno@clisp.org>
41516
41517         * modules/perror-tests: New file.
41518         * tests/test-perror.sh: New file.
41519         * tests/test-perror.c: New file.
41520
41521         New module 'perror'.
41522         * lib/stdio.in.h (perror): New declaration.
41523         * lib/perror.c: New file.
41524         * m4/perror.m4: New file.
41525         * modules/perror: New file.
41526         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
41527         * doc/posix-functions/perror.texi: Mention the perror module.
41528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
41529         REPLACE_PERROR.
41530         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
41531         REPLACE_PERROR.
41532
41533 2008-09-14  Bruno Haible  <bruno@clisp.org>
41534
41535         * modules/stdio (Makefile.am): Reorder to match the order in
41536         lib/stdio.in.h.
41537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41538
41539 2008-09-13  Bruno Haible  <bruno@clisp.org>
41540
41541         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
41542
41543 2008-09-13  Bruno Haible  <bruno@clisp.org>
41544
41545         Extend strerror to cover the added errno values.
41546         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
41547         (rpl_strerror): Provide error messages for the added errno values and
41548         for the WSA* values.
41549         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
41550         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
41551         strerror.
41552         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
41553         * modules/strerror (Depends-on): Add errno.
41554         * doc/posix-functions/strerror.texi: Document the change.
41555         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
41556         and EOVERFLOW.
41557
41558 2008-09-13  Bruno Haible  <bruno@clisp.org>
41559
41560         * modules/EOVERFLOW: Remove file.
41561         * m4/eoverflow.m4: Remove file.
41562         * modules/EOVERFLOW-tests: Remove file.
41563         * tests/test-EOVERFLOW.c: Remove file.
41564         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
41565         * modules/ftell (Depends-on): Likewise.
41566         * modules/getdelim (Depends-on): Likewise.
41567         * modules/getugroups (Depends-on): Likewise.
41568         * modules/poll (Depends-on): Likewise.
41569         * modules/snprintf (Depends-on): Likewise.
41570         * modules/sprintf-posix (Depends-on): Likewise.
41571         * modules/vasnprintf (Depends-on): Likewise.
41572         * modules/vasprintf (Depends-on): Likewise.
41573         * modules/vfprintf-posix (Depends-on): Likewise.
41574         * modules/vsnprintf (Depends-on): Likewise.
41575         * modules/vsprintf-posix (Depends-on): Likewise.
41576         * modules/xvasprintf (Depends-on): Likewise.
41577         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41578         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
41579         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
41580         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
41581         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41582         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
41583         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
41584         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
41585         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41586         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
41587         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
41588         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
41589         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41590         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
41591         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
41592         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
41593         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41594         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
41595         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
41596         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
41597         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41598         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
41599         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
41600         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
41601         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
41602         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41603         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
41604         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
41605         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
41606         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
41607         * MODULES.html.sh: Remove EOVERFLOW.
41608         * NEWS: Mention the change.
41609
41610 2008-09-13  Bruno Haible  <bruno@clisp.org>
41611
41612         * modules/errno-tests: New file.
41613         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
41614
41615         * lib/errno.in.h: New file.
41616         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
41617         * modules/errno: New file.
41618         * doc/posix-headers/errno.texi: Update documentation.
41619         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41620
41621 2008-09-13  Bruno Haible  <bruno@clisp.org>
41622
41623         * tests/test-poll.c: Use #if for native Windows, rather than testing
41624         __MSVCRT__.
41625
41626 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41627             Bruno Haible  <bruno@clisp.org>
41628
41629         * lib/glob.c: Don't include <pwd.h> on native Windows.
41630         (WINDOWS32): New macro.
41631         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41632
41633 2008-09-13  Bruno Haible  <bruno@clisp.org>
41634
41635         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41636         (ETIMEDOUT): Remove macro.
41637         (glthread_cond_timedwait_multithreaded): New declaration.
41638         (glthread_cond_timedwait): Use it.
41639         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41640         (glthread_cond_timedwait_multithreaded): New function.
41641
41642 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41643
41644         * modules/poll-tests: Do not check for io.h.
41645         * tests/test-poll.c: Check for __MSVCRT__ instead.
41646
41647 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41648
41649         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41650         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41651         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41652
41653 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41654
41655         * modules/poll-tests: New.
41656         * tests/test-poll.c: New.
41657
41658 2008-09-12  Eric Blake  <ebb9@byu.net>
41659
41660         frexp: test for NetBSD failure on -0.0
41661         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41662         not all, bugs from NetBSD 3.0 have been fixed.
41663         * doc/posix-functions/frexp.texi (frexp): Document bug.
41664         Reported by Thomas Klausner.
41665
41666         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41667         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41668         literal -0.0.
41669         Reported by Jonathan C. Patschke <jp@centtech.com>.
41670
41671 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41672
41673         * lib/glthread/cond.h: Use dummy implementation also if
41674         USE_WIN32_THREADS.
41675
41676 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41677
41678         * modules/fnmatch-posix (License): Change to LGPLv2+.
41679         * modules/fnmatch-gnu (License): Likewise.
41680
41681 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41682
41683         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41684
41685 2008-09-11  Jim Meyering  <meyering@redhat.com>
41686
41687         * users.txt: Add gtk-vnc.
41688
41689 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41690
41691         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
41692         rotate amounts.
41693
41694         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
41695         required for 16-bit and 8-bit rotates.
41696         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
41697         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
41698         UINT8_MAX instead of hard-coded constants.
41699         Suggested by Paul Eggert.
41700
41701 2008-09-07  Bruno Haible  <bruno@clisp.org>
41702
41703         * tests/test-striconveh.c (main): Check behaviour when converting from
41704         UTF-7.
41705
41706         Make striconveh work better with stateful encodings.
41707         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
41708         that iconv does not increment the inptr when returning -1/EINVAL.
41709
41710 2008-09-07  Bruno Haible  <bruno@clisp.org>
41711
41712         * build-aux/config.rpath: Update according to libtool-2.2.6.
41713         * build-aux/config.libpath: Likewise.
41714
41715 2008-09-06  Bruno Haible  <bruno@clisp.org>
41716
41717         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
41718         * lib/freadptr.c (freadptr): Likewise.
41719         * lib/freadseek.c (freadptrinc): Likewise.
41720         Reported by Simon Josefsson.
41721
41722 2008-09-06  Bruno Haible  <bruno@clisp.org>
41723
41724         * modules/freadptr (License): Change to LGPLv2+.
41725         * modules/freadseek (License): Likewise.
41726         Suggested by Eric Blake.
41727
41728         * modules/memchr2 (License): Change to LGPLv2+.
41729         Approved by Eric Blake.
41730
41731 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41732             Bruno Haible  <bruno@clisp.org>
41733
41734         Make gnulib-tool work with native 'sed' on AIX.
41735         * gnulib-tool (sed_noop): New variable.
41736         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
41737         func_add_or_update, func_create_testdir): Use it to initialize sed
41738         script variables.
41739         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41740
41741 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
41742             Bruno Haible  <bruno@clisp.org>
41743
41744         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
41745         also works after #include directives.
41746
41747 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
41748
41749         getdate.y: reject an out-of-range timezone value
41750         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
41751         the range [-24...+24].  When specified with only one or two digits,
41752         * tests/test-getdate.c: Tests for the fix.
41753         * doc/getdate.texi: Document this change.
41754
41755 2008-09-03  Bruno Haible  <bruno@clisp.org>
41756
41757         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
41758
41759 2008-09-02  Simon Josefsson  <simon@josefsson.org>
41760
41761         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
41762         <bruce.korb@gmail.com> with ideas from Ben Pfaff
41763         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
41764         Blake <ebb9@byu.net>.
41765
41766         * tests/test-bitrotate.c: Add more test vectors.
41767
41768 2008-09-02  Eric Blake  <ebb9@byu.net>
41769
41770         vasnprintf-posix: handle large precision via %.*d
41771         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
41772         when handling it ourselves.
41773         * tests/test-vasnprintf-posix.c (test_function): Add test.
41774         * tests/test-snprintf-posix.h (test_function): Likewise.
41775         * tests/test-sprintf-posix.h (test_function): Likewise.
41776         * tests/test-vasprintf-posix.c (test_function): Likewise.
41777         Reported by Alain Guibert.
41778
41779 2008-09-01  Eric Blake  <ebb9@byu.net>
41780
41781         c-stack: make configure-time check more robust
41782         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
41783         successful sigaction call.
41784         Reported by Tom G. Christensen.
41785
41786 2008-09-01  Bruno Haible  <bruno@clisp.org>
41787
41788         New module 'findprog-lgpl'.
41789         * modules/findprog-lgpl: New file.
41790         * lib/findprog-lgpl.c: New file.
41791         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
41792         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
41793         to decide whether to use strdup or xstrdup, concatenated_filename or
41794         xconcatenated_filename.
41795
41796 2008-09-01  Bruno Haible  <bruno@clisp.org>
41797
41798         Split module 'concat-filename' into 'concat-filename' (LGPL) and
41799         'xconcat-filename' (GPL).
41800         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
41801         (License): Change to LGPLv2+.
41802         * modules/xconcat-filename: New file.
41803         * lib/concat-filename.h (concatenated_filename): Change specification.
41804         (xconcatenated_filename): New declaration.
41805         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
41806         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
41807         memory situations.
41808         * lib/xconcat-filename.c: New file.
41809         * NEWS: Mention the change.
41810         * lib/findprog.c: Include concat-filename.h, not filename.h.
41811         (find_in_path): Use xconcatenated_filename instead of
41812         concatenated_filename.
41813         * lib/javacomp.c: Include concat-filename.h, not filename.h.
41814         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41815         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41816         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41817         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
41818         instead of concatenated_filename.
41819         * lib/javaexec.c: Include concat-filename.h, not filename.h.
41820         (execute_java_class): Use xconcatenated_filename instead of
41821         concatenated_filename.
41822         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
41823         * modules/javacomp (Depends-on): Likewise.
41824         * modules/javaexec (Depends-on): Likewise.
41825
41826 2008-09-01  Bruno Haible  <bruno@clisp.org>
41827
41828         Split module 'filename' into 'filename' and 'concat-filename'.
41829         * modules/filename: Keep only lib/filename.h.
41830         (License): Change to LGPLv2+.
41831         * modules/concat-filename: New file, extracted from modules/filename.
41832         * lib/filename.h (concatenated_filename): Remove declaration.
41833         * lib/concat-filename.h: New file, extracted from lib/filename.h.
41834         * lib/concat-filename.c: Include concat-filename.h.
41835         * NEWS: Mention the change.
41836
41837 2008-09-01  Simon Josefsson  <simon@josefsson.org>
41838
41839         * lib/bitrotate.h (rotl8, rotr8): Add.
41840
41841         * modules/bitrotate (configure.ac): Need
41842         AC_REQUIRE([AC_C_INLINE]).
41843         (Description): Mention stdint.h.  Reported by Bruno Haible
41844         <bruno@clisp.org>.
41845
41846         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
41847         Paolo Bonzini <bonzini@gnu.org>.
41848
41849 2008-08-31  Bruno Haible  <bruno@clisp.org>
41850
41851         Assume Solaris specific bi-arch conventions on Solaris systems.
41852         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
41853         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
41854         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
41855         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
41856         like acl_libdirstem.
41857         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
41858         acl_libdirstem.
41859         * NEWS: Mention the change.
41860         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
41861
41862 2008-08-31  Jim Meyering  <meyering@redhat.com>
41863
41864         * lib/strftime.h: Add comments describing the two added arguments.
41865
41866         remove duplicate #include directives
41867         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
41868         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
41869
41870 2008-08-31  Bruno Haible  <bruno@clisp.org>
41871
41872         New module 'sigpipe-die'.
41873         * modules/sigpipe-die: New file.
41874         * lib/sigpipe-die.h: New file.
41875         * lib/sigpipe-die.c: New file.
41876         * MODULES.html.sh (Signal handling): Add sigpipe-die.
41877
41878 2008-08-31  Bruno Haible  <bruno@clisp.org>
41879
41880         Don't override previously installed signal handlers.
41881         * lib/fatal-signal.c (saved_sigactions): New variable.
41882         (uninstall_handlers): Reset the signal to the saved handler, not
41883         to SIG_DFL (except when ignored).
41884         (install_handlers): Save the previous handlers.
41885
41886 2008-08-30  Bruno Haible  <bruno@clisp.org>
41887
41888         * gnulib-tool (func_reset_sigpipe): New function.
41889         (func_get_automake_snippet, func_modules_transitive_closure,
41890         func_import): Invoke it before a join command that reads from stdin,
41891         to avoid "echo: write error: Broken pipe" error messages on stderr.
41892         Reported by Sam Steingold <sds@gnu.org>.
41893
41894 2008-08-30  Bruno Haible  <bruno@clisp.org>
41895
41896         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
41897         Code copied from m4/open.m4.
41898         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
41899         access and the filename ends in a slash. Code copied from lib/open.c.
41900         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
41901         * tests/test-fopen.c (main): Check against bug with trailing slash.
41902
41903 2008-08-29  Bruno Haible  <bruno@clisp.org>
41904
41905         Avoid some "gcc -pedantic" warnings.
41906         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
41907         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
41908         * lib/dirent.in.h: Likewise.
41909         * lib/fcntl.in.h: Likewise.
41910         * lib/float.in.h: Likewise.
41911         * lib/iconv.in.h: Likewise.
41912         * lib/inttypes.in.h: Likewise.
41913         * lib/locale.in.h: Likewise.
41914         * lib/math.in.h: Likewise.
41915         * lib/netinet_in.in.h: Likewise.
41916         * lib/search.in.h: Likewise.
41917         * lib/signal.in.h: Likewise.
41918         * lib/stdarg.in.h: Likewise.
41919         * lib/stdint.in.h: Likewise.
41920         * lib/stdio.in.h: Likewise.
41921         * lib/stdlib.in.h: Likewise.
41922         * lib/string.in.h: Likewise.
41923         * lib/strings.in.h: Likewise.
41924         * lib/sys_select.in.h: Likewise.
41925         * lib/sys_socket.in.h: Likewise.
41926         * lib/sys_stat.in.h: Likewise.
41927         * lib/sys_time.in.h: Likewise.
41928         * lib/sysexits.in.h: Likewise.
41929         * lib/time.in.h: Likewise.
41930         * lib/unistd.in.h: Likewise.
41931         * lib/wchar.in.h: Likewise.
41932         * lib/wctype.in.h: Likewise.
41933         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
41934         * modules/fchdir (Makefile.am): Likewise.
41935         * modules/fcntl (Makefile.am): Likewise.
41936         * modules/float (Makefile.am): Likewise.
41937         * modules/iconv_open (Makefile.am): Likewise.
41938         * modules/inttypes (Makefile.am): Likewise.
41939         * modules/locale (Makefile.am): Likewise.
41940         * modules/math (Makefile.am): Likewise.
41941         * modules/netinet_in (Makefile.am): Likewise.
41942         * modules/search (Makefile.am): Likewise.
41943         * modules/signal (Makefile.am): Likewise.
41944         * modules/stdarg (Makefile.am): Likewise.
41945         * modules/stdint (Makefile.am): Likewise.
41946         * modules/stdio (Makefile.am): Likewise.
41947         * modules/stdlib (Makefile.am): Likewise.
41948         * modules/string (Makefile.am): Likewise.
41949         * modules/strings (Makefile.am): Likewise.
41950         * modules/sys_select (Makefile.am): Likewise.
41951         * modules/sys_socket (Makefile.am): Likewise.
41952         * modules/sys_stat (Makefile.am): Likewise.
41953         * modules/sys_time (Makefile.am): Likewise.
41954         * modules/sysexits (Makefile.am): Likewise.
41955         * modules/time (Makefile.am): Likewise.
41956         * modules/unistd (Makefile.am): Likewise.
41957         * modules/wchar (Makefile.am): Likewise.
41958         * modules/wctype (Makefile.am): Likewise.
41959         Reported by Reuben Thomas <rrt@sc3d.org>.
41960
41961 2008-08-29  Bruno Haible  <bruno@clisp.org>
41962
41963         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
41964         any more.
41965
41966 2008-08-29  Simon Josefsson  <simon@josefsson.org>
41967
41968         * MODULES.html.sh (Misc): Add bitrotate.
41969
41970         * modules/bitrotate: New file.
41971
41972         * lib/bitrotate.h: New file.
41973
41974         * modules/bitrotate-tests: New file.
41975
41976         * tests/test-bitrotate.c: New file.
41977
41978         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
41979         on the bitrotate module.
41980
41981         * lib/arctwo.c: Use new bitrotate module.
41982
41983 2008-08-29  Jim Meyering  <meyering@redhat.com>
41984
41985         bootstrap: merge changes from coreutils
41986         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
41987         of copied files.  Remove a kludge, now that this is fixed.
41988         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
41989         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
41990         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
41991
41992 2008-08-29  Bruno Haible  <bruno@clisp.org>
41993
41994         * MODULES.html.sh: Remove --cvs-urls option.
41995
41996 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
41997
41998         maint.mk: adjust to file name change
41999         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
42000
42001 2008-08-28  Jim Meyering  <meyering@redhat.com>
42002
42003         * modules/getndelim2 (License): Relicense to LGPLv2+.
42004         Approved by Richard Stallman for the version of 1995, and by
42005         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
42006
42007 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
42008
42009         * lib/getdelim.c (flockfile, funlockfile): Make all of them
42010         dummy if one is not available.  Do not touch them if
42011         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
42012         (getc_maybe_unlocked): New.
42013         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
42014
42015 2008-08-26  Eric Blake  <ebb9@byu.net>
42016
42017         doc/INSTALL: resync from autoconf
42018         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
42019         (INSTALL_PRELUDE): Delete; this is done more efficiently by
42020         moving...
42021         * install.texi [!autoconf]: ...here.  Resync from autoconf.
42022         * INSTALL: Regenerate.
42023         * INSTALL.ISO: New file.
42024         * INSTALL.UTF-8: Likewise.
42025
42026 2008-08-26  Jim Meyering  <meyering@redhat.com>
42027
42028         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
42029         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
42030         these definitions conditional, so that they may be overridden, too.
42031
42032 2008-08-26  Bruno Haible  <bruno@clisp.org>
42033
42034         Generate INSTALL file variants with prettier quotes.
42035         * doc/Makefile (INSTALL_PRELUDE): New macro.
42036         (INSTALL): Use it.
42037         (INSTALL.ISO, INSTALL.UTF-8): New rules.
42038
42039 2008-08-26  Bruno Haible  <bruno@clisp.org>
42040
42041         Run makeinfo in an English locale.
42042         * doc/Makefile (MAKEINFO): New variable.
42043
42044 2008-08-26  Bruno Haible  <bruno@clisp.org>
42045
42046         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
42047         Suggested by Eric Blake.
42048
42049 2008-08-25  Bruno Haible  <bruno@clisp.org>
42050
42051         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
42052
42053 2008-08-25  Eric Blake  <ebb9@byu.net>
42054
42055         c-stack: test that stack overflow can be caught
42056         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
42057         that platform allows handling stack overflow; at least OS/2 EMX
42058         has sigaltstack, but crashes before transferring control to
42059         handler on stack overflow.
42060         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
42061         check for HAVE_STACK_OVERFLOW_HANDLING.
42062         Reported by Elbert Pol.
42063
42064 2008-08-25  Bruno Haible  <bruno@clisp.org>
42065
42066         * doc/posix-functions/strftime.texi: Fix description of strftime
42067         module.
42068
42069 2008-08-24  Bruno Haible  <bruno@clisp.org>
42070
42071         * tests/uniwidth/test-uc_width2.c: New file.
42072         * tests/uniwidth/test-uc_width2.sh: New file.
42073         * modules/uniwidth/width-tests (Files): Add the new files.
42074         (TESTS): Add uniwidth/test-uc_width2.sh.
42075         (TESTS_ENVIRONMENT): New variable.
42076         (check_PROGRAMS): Add test-uc_width2.
42077         (test_uc_width2_SOURCES): New variable.
42078
42079         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
42080         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
42081         not 0x00AB.
42082         Reported by Alexander V. Lukyanov <lav@netis.ru>.
42083
42084 2008-08-22  Eric Blake  <ebb9@byu.net>
42085
42086         test-lock, test-tls: mention why a test is skipped
42087         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
42088         skipped.
42089         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
42090
42091         count-one-bits: relax license
42092         * modules/count-one-bits (License): Relicense to LGPLv2+.
42093         Suggested by Ludovic Courtès, approved by Ben Pfaff.
42094
42095 2008-08-22  Andreas Schwab  <schwab@suse.de>
42096
42097         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
42098         Remove spurious space in assignment.
42099
42100 2008-08-21  Simon Josefsson  <simon@josefsson.org>
42101
42102         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
42103         Paul Eggert <eggert@CS.UCLA.EDU>.
42104
42105 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
42106
42107         * modules/gettext: Add m4/threadlib.m4.
42108
42109 2008-08-19  Eric Blake  <ebb9@byu.net>
42110
42111         test-c-stack: fix compilation failure on FreeBSD 5.0
42112         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
42113         headers before <sys/resource.h>.
42114         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
42115         the bug.
42116         Reported by Nelson H. F. Beebe.
42117
42118         strverscmp: migrate from "strverscmp.h" to <string.h>
42119         * modules/string (Makefile.am): Add new hooks.
42120         * modules/strverscmp (Files): Remove strverscmp.h.
42121         (Depends-on): Add string.
42122         (configure.ac): Add indicator.
42123         (Include): Mention new header.
42124         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
42125         defaults.
42126         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
42127         results.
42128         * lib/strverscmp.h: Delete.
42129         * lib/string.in.h (strverscmp): Provide declaration, when needed.
42130         * tests/test-strverscmp.c (includes): Adjust client.
42131         * lib/check-version.c (includes): Likewise.
42132         * NEWS: Document the change.
42133
42134         strverscmp: add unit test
42135         * modules/strverscmp-tests: New file.
42136         * tests/test-strverscmp.c: Likewise.
42137
42138 2008-08-19  Simon Josefsson  <simon@josefsson.org>
42139
42140         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
42141         regarding Windows crypto stuff, from Mono.
42142
42143 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
42144
42145         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
42146         if present, for intel RND.  Return error on failures.
42147
42148 2008-08-18  Ben Pfaff  <blp@gnu.org>
42149
42150         gitlog-to-changelog: give better diagnostic for failed pipe-open
42151         * build-aux/gitlog-to-changelog: Improve error message: suggest
42152         that the version of Git may be too old.
42153
42154 2008-08-18  Simon Josefsson  <simon@josefsson.org>
42155
42156         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
42157         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
42158
42159 2008-08-18  Bruno Haible  <bruno@clisp.org>
42160
42161         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
42162         pthread_in_use().
42163
42164 2008-08-18  Bruno Haible  <bruno@clisp.org>
42165
42166         * lib/glthread/threadlib.c: Include <pthread.h>.
42167
42168 2008-08-18  Bruno Haible  <bruno@clisp.org>
42169
42170         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
42171         glthread_recursive_lock_* macros.
42172         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
42173         Fix syntax error.
42174
42175 2008-08-18  Bruno Haible  <bruno@clisp.org>
42176
42177         * lib/glthread/thread.c: Avoid forcing a context switch right after
42178         thread creation.
42179
42180 2008-08-17  Bruno Haible  <bruno@clisp.org>
42181
42182         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
42183         * lib/glthread/thread.h: Provide Win32 specific implementation.
42184         * modules/thread (Files): Add lib/glthread/thread.c.
42185         (Depends-on): Add lock.
42186         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
42187
42188 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42189
42190         New module 'yield'.
42191         * modules/yield: New file.
42192         * lib/glthread/yield.h: New file.
42193         * m4/yield.m4: New file.
42194         * MODULES.html.sh (Multithreading): Add yield.
42195
42196 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42197
42198         New module 'thread'.
42199         * modules/thread: New file.
42200         * lib/glthread/thread.h: New file.
42201         * m4/thread.m4: New file.
42202         * MODULES.html.sh (Multithreading): Add thread.
42203
42204 2008-08-17  Bruno Haible  <bruno@clisp.org>
42205
42206         * lib/glthread/lock.h: Include <stdlib.h> always.
42207         * lib/glthread/tls.h: Likewise.
42208         * lib/glthread/cond.h: Likewise.
42209
42210 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42211
42212         New module 'cond'.
42213         * modules/cond: New file.
42214         * lib/glthread/cond.h: New file.
42215         * lib/glthread/cond.c: New file.
42216         * m4/cond.m4: New file.
42217         * MODULES.html.sh (Multithreading): Add cond.
42218
42219 2008-08-16  Eric Blake  <ebb9@byu.net>
42220
42221         c-stack: fix regression on Irix 5.3 from 2008-06-21
42222         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
42223         sa_sigaction...
42224         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
42225         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
42226         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
42227         * modules/signal (Makefile.am): Use the value.
42228         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
42229         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
42230         * doc/posix-headers/signal.texi (signal.h): Document this
42231         portability issue.
42232         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
42233         Reported by Tom G. Christensen.
42234
42235 2008-08-17  Bruno Haible  <bruno@clisp.org>
42236
42237         New module 'threadlib'.
42238         * modules/threadlib: New file.
42239         * lib/glthread/threadlib.c: New file, extracted from
42240         lib/glthread/lock.c.
42241         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
42242         functions.
42243         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
42244         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
42245         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
42246         macros.
42247         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
42248         (gl_DISABLE_THREADS): Remove macro.
42249         * modules/lock (Files): Remove build-aux/config.rpath.
42250         (Depends-on): Remove havelib. Add threadlib.
42251         (configure.ac-early): Remove section.
42252         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
42253         * modules/tls (Depends-on): Remove lock. Add threadlib.
42254         (Link): New section, copied from threadlib.
42255         * MODULES.html.sh (Multithreading): Add threadlib.
42256
42257 2008-08-14  Bruno Haible  <bruno@clisp.org>
42258
42259         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
42260         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
42261         glthread_rwlock_unlock, glthread_rwlock_destroy,
42262         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
42263         glthread_recursive_lock_destroy): Define as macros always.
42264         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
42265         glthread_lock_lock.
42266         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
42267         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
42268         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
42269         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
42270         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
42271         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
42272         (glthread_recursive_lock_lock_func): Renamed from
42273         glthread_recursive_lock_lock.
42274         (glthread_recursive_lock_unlock_func): Renamed from
42275         glthread_recursive_lock_unlock.
42276         (glthread_recursive_lock_destroy_func): Renamed from
42277         glthread_recursive_lock_destroy.
42278
42279 2008-08-14  Bruno Haible  <bruno@clisp.org>
42280
42281         * lib/glthread/lock.h: Renamed from lib/lock.h.
42282         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
42283         * lib/glthread/tls.h: Renamed from lib/tls.h.
42284         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
42285         * lib/fstrcmp.c: Update includes.
42286         * lib/strsignal.c: Update includes.
42287         * modules/lock (Files, Makefile.am): Update.
42288         (Include): Change to "glthread/lock.h".
42289         * modules/tls (Files, Makefile.am): Update.
42290         (Include): Change to "glthread/tls.h".
42291         * tests/test-lock.c: Update includes.
42292         * tests/test-tls.c: Update includes.
42293         * NEWS: Mention the renamed header files.
42294
42295 2008-08-11  Jim Meyering  <meyering@redhat.com>
42296
42297         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
42298
42299 2008-08-11  Eric Blake  <ebb9@byu.net>
42300
42301         test-c-stack: avoid C99-ism
42302         * tests/test-c-stack.c (main): Fix whitespace, move declaration
42303         before statement.
42304         Reported by Alain Guibert.
42305
42306 2008-08-10  Jim Meyering  <meyering@redhat.com>
42307
42308         ensure that return value of uinttostr et al are not ignored
42309         * lib/inttostr.h (__GNUC_PREREQ): Define.
42310         (__attribute_warn_unused_result__): Define.
42311         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42312
42313 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42314
42315         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42316         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42317
42318 2008-08-07  Jim Meyering  <meyering@redhat.com>
42319
42320         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42321
42322         * modules/mkstemp (License): Relicense under LGPLv2+.
42323         * modules/tempname (License): Likewise.
42324
42325 2008-08-06  Bruno Haible  <bruno@clisp.org>
42326
42327         * lib/poll.c (poll): Further micro-optimization.
42328
42329 2008-08-06  Jim Meyering  <meyering@redhat.com>
42330
42331         inet_pton.c: use locale-independent tolower
42332         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42333         (inet_pton6): Use c_tolower rather than tolower.
42334         * modules/inet_pton (Depends-on): Add c-ctype.
42335
42336 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42337
42338         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42339         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42340
42341 2008-08-06  Jim Meyering  <meyering@redhat.com>
42342
42343         * modules/inet_pton (License): Relicense under LGPLv2+.
42344
42345 2008-08-03  Bruno Haible  <bruno@clisp.org>
42346
42347         Additional non-aborting API for lock and tls.
42348         * lib/lock.h: Include <errno.h>.
42349         (glthread_lock_init): New macro/function.
42350         (gl_lock_init): Define as wrapper around glthread_lock_init.
42351         (glthread_lock_lock): New macro/function.
42352         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42353         (glthread_lock_unlock): New macro/function.
42354         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42355         (glthread_lock_destroy): New macro/function.
42356         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42357         (glthread_rwlock_init): New macro/function.
42358         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42359         (glthread_rwlock_rdlock): New macro/function.
42360         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42361         (glthread_rwlock_wrlock): New macro/function.
42362         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42363         (glthread_rwlock_unlock): New macro/function.
42364         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42365         (glthread_rwlock_destroy): New macro/function.
42366         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42367         (glthread_recursive_lock_init): New macro/function.
42368         (gl_recursive_lock_init): Define as wrapper around
42369         glthread_recursive_lock_init.
42370         (glthread_recursive_lock_lock): New macro/function.
42371         (gl_recursive_lock_lock): Define as wrapper around
42372         glthread_recursive_lock_lock.
42373         (glthread_recursive_lock_unlock): New macro/function.
42374         (gl_recursive_lock_unlock): Define as wrapper around
42375         glthread_recursive_lock_unlock.
42376         (glthread_recursive_lock_destroy): New macro/function.
42377         (gl_recursive_lock_destroy): Define as wrapper around
42378         glthread_recursive_lock_destroy.
42379         (glthread_once): New macro/function.
42380         (gl_once): Define as wrapper around glthread_once.
42381         Update function declarations.
42382         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42383         glthread_rwlock_init. Return error code.
42384         (glthread_rwlock_rdlock_multithreaded): Renamed from
42385         glthread_rwlock_rdlock. Return error code.
42386         (glthread_rwlock_wrlock_multithreaded): Renamed from
42387         glthread_rwlock_wrlock. Return error code.
42388         (glthread_rwlock_unlock_multithreaded): Renamed from
42389         glthread_rwlock_unlock. Return error code.
42390         (glthread_rwlock_destroy_multithreaded): Renamed from
42391         glthread_rwlock_destroy. Return error code.
42392         (glthread_recursive_lock_init_multithreaded): Renamed from
42393         glthread_recursive_lock_init. Return error code.
42394         (glthread_recursive_lock_lock_multithreaded): Renamed from
42395         glthread_recursive_lock_lock. Return error code.
42396         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42397         glthread_recursive_lock_unlock. Return error code.
42398         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42399         glthread_recursive_lock_destroy. Return error code.
42400         (glthread_once_call): Make static.
42401         (glthread_once_multithreaded): Renamed from glthread_once.
42402         * lib/tls.h: Include <errno.h>.
42403         (glthread_tls_key_init): New macro/function.
42404         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42405         (glthread_tls_set): New macro/function.
42406         (gl_tls_set): Define as wrapper around glthread_tls_set.
42407         (glthread_tls_key_destroy): New macro/function.
42408         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42409         Update function declarations.
42410         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42411         glthread_tls_get.
42412         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42413
42414 2008-08-04  Eric Blake  <ebb9@byu.net>
42415
42416         gnumakefile: use space, not TAB, outside of targets
42417         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42418
42419 2008-08-02  Jim Meyering  <meyering@redhat.com>
42420
42421         getdate.y: avoid locale-dependent date parsing failure
42422         In Turkish locales, getdate would fail to recognize keywords
42423         containing a lowercase "i".  The solution is not to rely on
42424         locale-sensitive case-conversion.
42425         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42426         (lookup_word): Use c_toupper in place of toupper.
42427         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42428         Reported by Vefa Bicakci <bicave@superonline.com> in
42429         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42430         * modules/getdate (Depends-on): Add c-ctype.
42431
42432 2008-08-02  Bruno Haible  <bruno@clisp.org>
42433
42434         * gnulib-tool (func_import): When updating or creating a .gitignore
42435         file, prepend each added line with a slash, and ignore leading slashes
42436         from the existing lines.
42437         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42438
42439 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42440
42441         Portability fix for GNU make 3.79.1.
42442         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42443         versions do not understand.
42444
42445 2008-08-01  Bruno Haible  <bruno@clisp.org>
42446
42447         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42448         * tests/test-isnanf.h (zero): New variable.
42449         (main): Avoid literal -0.0f.
42450         * tests/test-isnand.h (zero): New variable.
42451         (main): Avoid literal -0.0.
42452         * tests/test-isnanl.h (zero): New variable.
42453         (main): Avoid literal -0.0L.
42454         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42455         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42456         -0.0, -0.0L.
42457         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42458         (test_signbitd): Avoid literal -0.0.
42459         (test_signbitl): Avoid literal -0.0L.
42460         * tests/test-ceilf1.c (zero): New variable.
42461         (main): Avoid literal -0.0f.
42462         * tests/test-ceill.c (zero): New variable.
42463         (main): Avoid literal -0.0L.
42464         * tests/test-floorf1.c (zero): New variable.
42465         (main): Avoid literal -0.0f.
42466         * tests/test-floorl.c (zero): New variable.
42467         (main): Avoid literal -0.0L.
42468         * tests/test-roundf1.c (zero): New variable.
42469         (main): Avoid literal -0.0f.
42470         * tests/test-round1.c (zero): New variable.
42471         (main): Avoid literal -0.0.
42472         * tests/test-roundl.c (zero): New variable.
42473         (main): Avoid literal -0.0L.
42474         * tests/test-truncf1.c (zero): New variable.
42475         (main): Avoid literal -0.0f.
42476         * tests/test-trunc1.c (zero): New variable.
42477         (main): Avoid literal -0.0.
42478         * tests/test-truncl.c (zero): New variable.
42479         (main): Avoid literal -0.0L.
42480         * tests/test-frexp.c (zero): New variable.
42481         (main): Avoid literal -0.0.
42482         * tests/test-frexpl.c (zero): New variable.
42483         (main): Avoid literal -0.0L.
42484         * tests/test-ldexpl.c (zero): New variable.
42485         (main): Avoid literal -0.0L.
42486         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42487         (zerod, zerol): New variables.
42488         (test_function): Avoid literals -0.0, -0.0L.
42489         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42490         (zerod, zerol): New variables.
42491         (test_function): Avoid literals -0.0, -0.0L.
42492         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42493         (zerod, zerol): New variables.
42494         (test_function): Avoid literals -0.0, -0.0L.
42495         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42496         (zerod, zerol): New variables.
42497         (test_function): Avoid literals -0.0, -0.0L.
42498         * tests/test-strtod.c (zero): New variable.
42499         (main): Avoid literal -0.0.
42500         Reported by Jonathan C. Patschke <jp@centtech.com>.
42501
42502 2008-07-31  Jim Meyering  <meyering@redhat.com>
42503
42504         sha256.h: correct definition of SHA224_DIGEST_SIZE
42505         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42506         Reported by Paulie Pena IV <paulie4@gmail.com>.
42507         Define as 224 / 8, rather than as a literal.
42508         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42509         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42510         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42511
42512 2008-07-31  Bruno Haible  <bruno@clisp.org>
42513
42514         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42515         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42516         Reported by Jonathan Patschke <jp@centtech.com>.
42517
42518 2008-07-31  Bruno Haible  <bruno@clisp.org>
42519
42520         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42521         Reported by Paolo Bonzini <bonzini@gnu.org>.
42522
42523 2008-07-30  Eric Blake  <ebb9@byu.net>
42524
42525         test-strtod: allow compilation without -lm
42526         * tests/test-strtod.c (main): Avoid link dependence on fabs.
42527         Reported by Dennis Clarke <blastwave@gmail.com>.
42528
42529 2008-07-28  Jim Meyering  <meyering@redhat.com>
42530
42531         bootstrap: work also when there are no .po files in po/
42532         * build-aux/bootstrap (update_po_files): Complete the change
42533         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
42534
42535 2008-07-27  Jim Meyering  <meyering@redhat.com>
42536
42537         * users.txt: Add zile.
42538
42539 2008-07-26  Ben Pfaff  <blp@gnu.org>
42540
42541         Add missing dependencies on new m4/exponent[fdl].m4 files.
42542         * modules/isnanf-nolibm: Add m4/exponentf.m4.
42543         * modules/isnand-nolibm: Add m4/exponentd.m4.
42544         * modules/isnanl-nolibm: Add m4/exponentl.m4.
42545         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
42546         m4/isnan[fdl].m4, because the macros actually used moved.
42547         Reported by Jim Meyering.
42548
42549 2008-07-14  Ben Pfaff  <blp@gnu.org>
42550
42551         Add isinf module.
42552         * lib/isinf.c: New file.
42553         * lib/math.in.h: Define isinf macro if we have decided to replace
42554         it.
42555         * m4/isinf.m4: New file.
42556         * m4/math_h.m4: Initialize and substitute variables for isinf
42557         module.
42558         * modules/isinf: New file.
42559         * modules/isinf-tests: New file.
42560         * modules/math: Add substitutions for new module.
42561         * tests/test-isinf.c: New file.
42562         * doc/posix-functions/isinf.texi: Mention new module.
42563         * MODULES.html.sh: Mention new module.
42564
42565 2008-07-14  Ben Pfaff  <blp@gnu.org>
42566
42567         Factor out some macros for use by additional modules.
42568         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
42569         exponentf.m4.
42570         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
42571         exponentd.m4.
42572         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
42573         file exponentl.m4.
42574         * m4/exponentf.m4: New file.
42575         * m4/exponentd.m4: New file.
42576         * m4/exponentl.m4: New file.
42577         * modules/isnanf: Use new file m4/exponentf.m4.
42578         * modules/isnand: Use new file m4/exponentd.m4.
42579         * modules/isnanl: Use new file m4/exponentl.m4.
42580
42581 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
42582
42583         mktime.c: normalize tp->tm_isdst value to -1/0/1.
42584         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
42585         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
42586         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
42587
42588         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
42589         readlink on platforms without PATH_MAX.
42590
42591 2008-07-21  Eric Blake  <ebb9@byu.net>
42592
42593         Warn, not fail, on stale version.
42594         * top/GNUmakefile (_curr-ver): Tone down previous patch.
42595
42596         Don't allow installation with stale devel version number.
42597         * top/GNUmakefile (_is-install-target): New macro.
42598         (_curr-ver): Forbid installation with stale version number.
42599
42600 2008-07-20  Bruno Haible  <bruno@clisp.org>
42601
42602         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
42603         TESTS_ENVIRONMENT.
42604         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
42605
42606 2008-07-20  Bruno Haible  <bruno@clisp.org>
42607
42608         * lib/c-stack.h (c_stack_action): Add documentation.
42609         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
42610
42611 2008-07-20  Bruno Haible  <bruno@clisp.org>
42612
42613         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
42614         * modules/readlink (License): Likewise.
42615
42616 2008-07-17  Eric Blake  <ebb9@byu.net>
42617
42618         * modules/c-stack (Link): Fix typo.
42619
42620         Make c-stack use libsigsegv, when available.
42621         * modules/c-stack (Depends-on): Add libsigsegv.
42622         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42623         needed.
42624         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42625         (segv_handler, overflow_handler, c_stack_action)
42626         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42627         implementation when libsigsegv is available, but only when using
42628         the library is necessary.
42629         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42630         comment, explaining why XSI check fails on Linux.
42631         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42632         * tests/test-c-stack2.sh: Tweak skip message.
42633         * NEWS: Document new link-time requirements.
42634
42635 2008-07-16  Eric Blake  <ebb9@byu.net>
42636
42637         c-stack: Expose false positives when not using libsigsegv.
42638         * modules/c-stack-tests (Files): Expand test.
42639         * tests/test-c-stack.c (main): Add means to conditionally trigger
42640         non-overflow SIGSEGV.
42641         * tests/test-c-stack2.sh: New file.
42642
42643 2008-07-14  Bruno Haible  <bruno@clisp.org>
42644
42645         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42646         Reported by Eric Blake.
42647
42648 2008-07-14  Sam Steingold  <sds@gnu.org>
42649             Bruno Haible  <bruno@clisp.org>
42650
42651         New module libsigsegv.
42652         * modules/libsigsegv: New file.
42653         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42654         modifications.
42655         * MODULES.html.sh (Signal handling): New section.
42656
42657 2008-07-14  Bruno Haible  <bruno@clisp.org>
42658
42659         * modules/unictype/ctype-* (Description): Add the word "function".
42660         Improves the resulting doc in MODULES.html.
42661
42662 2008-07-12  Ben Pfaff  <blp@gnu.org>
42663
42664         Add longlong module.
42665         * modules/longlong: New file.
42666
42667 2008-07-12  Bruno Haible  <bruno@clisp.org>
42668
42669         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42670         to empty.
42671
42672 2008-07-10  Ben Pfaff  <blp@gnu.org>
42673
42674         Add isnan module.
42675         * doc/posix-functions/isnan.texi: Mention new module.
42676         * lib/math.in.h: Define isnan macro if we have decided to replace
42677         it.
42678         * m4/isnan.m4: New file.
42679         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42680         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42681         also.
42682         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42683         redundancy.
42684         * m4/math_h.m4: Initialize and substitute variables for isnan
42685         module.
42686         * modules/isnan: New file.
42687         * modules/isnan-tests: New file.
42688         * modules/math: Add substitutions for new module.
42689         * tests/test-isnan.c: New file.
42690         * MODULES.html.sh: Mention new module.
42691
42692 2008-07-10  Ben Pfaff  <blp@gnu.org>
42693
42694         Add isnanf module.
42695         * lib/isnanf.m4: New file.
42696         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
42697         (gl_HAVE_ISNANF_IN_LIBM): New macro.
42698         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
42699         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
42700         * modules/isnanf: New file.
42701         * modules/isnanf-tests: New file.
42702         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
42703         files.
42704         * tests/test-isnanf-nolibm.c: factored most of its contents into
42705         new file tests/test-isnanf.h.
42706         * tests/test-isnanf.h: New file.
42707         * tests/test-isnanf.c: New file.
42708         * MODULES.html.sh: Mention new module.
42709         * doc/glibc-functions/isnanf.texi: Mention new module.
42710
42711 2008-07-10  Ben Pfaff  <blp@gnu.org>
42712
42713         Add isnand module.
42714         * lib/isnand.h: New file.
42715         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
42716         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
42717         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
42718         functionality also.
42719         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
42720         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
42721         (gl_HAVE_ISNAND_IN_LIBM): New macro.
42722         * modules/isnand: New file.
42723         * modules/isnand-tests: New file.
42724         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
42725         files.
42726         * tests/test-isnand-nolibm.c: factored most of its contents into
42727         new file tests/test-isnand.h.
42728         * tests/test-isnand.h: New file.
42729         * tests/test-isnand.c: New file.
42730         * MODULES.html.sh: Mention new module.
42731
42732 2008-07-10  Ben Pfaff  <blp@gnu.org>
42733
42734         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
42735         * lib/isnand.h: Rename lib/isnand-nolibm.h.
42736         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
42737         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
42738         * modules/isnanf-nolibm: Update references to renamed files.
42739         * modules/isnand-nolibm: Likewise.
42740         * modules/isnanf-nolibm-tests: Likewise.
42741         * modules/isnand-nolibm-tests: Likewise.
42742         * lib/frexp.c: Likewise.
42743         * lib/isfinite.c: Likewise.
42744         * lib/signbitd.c: Likewise.
42745         * lib/signbitf.c: Likewise.
42746         * lib/vasnprintf.c: Likewise.
42747         * tests/test-ceilf1.c: Likewise.
42748         * tests/test-ceilf2.c: Likewise.
42749         * tests/test-floorf1.c: Likewise.
42750         * tests/test-floorf2.c: Likewise.
42751         * tests/test-frexp.c: Likewise.
42752         * tests/test-round1.c: Likewise.
42753         * tests/test-round2.c: Likewise.
42754         * tests/test-roundf1.c: Likewise.
42755         * tests/test-strtod.c: Likewise.
42756         * tests/test-trunc1.c: Likewise.
42757         * tests/test-trunc2.c: Likewise.
42758         * tests/test-truncf1.c: Likewise.
42759         * tests/test-truncf2.c: Likewise.
42760         * NEWS: Mention the renamed header files.
42761
42762 2008-07-11  Jim Meyering  <meyering@redhat.com>
42763
42764         vc-list-files: make the last-resort awk code more portable
42765         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
42766         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
42767         does not support it.
42768
42769 2008-07-10  Eric Blake  <ebb9@byu.net>
42770
42771         Work with tar's bootstrap.
42772         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
42773         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
42774         an m4 comment.
42775
42776 2008-07-09  Jim Meyering  <meyering@redhat.com>
42777
42778         posix-shell.m4: fix typo that made this test malfunction
42779         * m4/posix-shell.m4: Remove capitalization in variable name.
42780
42781 2008-07-08  Bruno Haible  <bruno@clisp.org>
42782
42783         * m4/onceonly.m4: Update comments.
42784         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42785
42786 2008-07-04  Jim Meyering  <meyering@redhat.com>
42787
42788         * users.txt: Add vc-dwim.
42789         (bison, coreutils): Use the gitweb URL.
42790
42791 2008-07-03  Jim Meyering  <meyering@redhat.com>
42792
42793         * users.txt: Add libffcall.  From Sam Steingold.
42794
42795 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
42796
42797         getdate.y: do not ignore TZ with relative day, month or year offset
42798         * lib/getdate.y (get_date): Move the tz-handling block to follow the
42799         relative-date-handling, since otherwise, the latter would clobber the
42800         sole output (an updated Start value) of the tz-handling block.
42801         * tests/test-getdate.c: Tests for the fix
42802
42803 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42804
42805         Recognize 'foo_LIBRARIES += libgnu.a'.
42806         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
42807         makefile snippet has already specified an installation location,
42808         also using '+='.
42809
42810 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
42811
42812         getdate.y: factor out common actions
42813         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
42814         Use them in place of open-coded actions.
42815
42816 2008-07-01  Simon Josefsson  <simon@josefsson.org>
42817
42818         Add self-test for getdate module.
42819         * modules/getdate-tests: New file.
42820         * tests/test-getdate.c: New file.
42821
42822 2008-06-29  Bruno Haible  <bruno@clisp.org>
42823
42824         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
42825         .gitignore.
42826         Reported by Sylvain Beucler <beuc@beuc.net>.
42827
42828 2008-06-29  Bruno Haible  <bruno@clisp.org>
42829
42830         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
42831         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
42832
42833 2008-06-29  Bruno Haible  <bruno@clisp.org>
42834
42835         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
42836         EXTRA_DIST.
42837         Reported by Sylvain Beucler <beuc@beuc.net>.
42838
42839 2008-06-26  Jim Meyering  <meyering@redhat.com>
42840
42841         make several modules depend on the "open" module
42842         This provides slightly increased consistency when opening-for-write
42843         the name of a non-directory spelled with a trailing slash.
42844         * modules/chdir-safer: Likewise.
42845         * modules/chown: Likewise.
42846         * modules/clean-temp: Likewise.
42847         * modules/copy-file: Likewise.
42848         * modules/fchdir: Likewise.
42849         * modules/fcntl-safer: Likewise.
42850         * modules/pipe: Likewise.
42851         * modules/utime: Likewise.
42852         Prompted by Eric Blake and Bruno Haible.
42853
42854 2008-06-24  Andreas Schwab  <schwab@suse.de>
42855
42856         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
42857         literals can be used as initializers for global variables.
42858
42859 2008-06-23  Eric Blake  <ebb9@byu.net>
42860
42861         Make gnulib-cache.m4 easier to diff.
42862         * gnulib-tool (func_import): Allow newlines when reading cached
42863         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
42864
42865 2008-06-23  Bruno Haible  <bruno@clisp.org>
42866
42867         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
42868         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
42869         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
42870         m4/signalblocking.m4.
42871         (gl_PREREQ_SIGACTION): Don't invoke it.
42872         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
42873         gl_PREREQ_SIG_HANDLER_H.
42874         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42875         Don't check for sigaction here.
42876
42877 2008-06-23  Bruno Haible  <bruno@clisp.org>
42878
42879         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
42880         (install_handlers): Don't set the SA_RESETHAND flag.
42881
42882 2008-06-23  Bruno Haible  <bruno@clisp.org>
42883
42884         * m4/sigaction.m4: Comment fixes.
42885         * lib/signal.in.h: Likewise.
42886
42887 2008-06-23  Eric Blake  <ebb9@byu.net>
42888
42889         Fix typo.
42890         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
42891
42892         Avoid SA_ namespace.
42893         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
42894         Reported by Ralf Wildenhues.
42895
42896         Avoid test failure due to SA_RESTORER.
42897         * tests/test-sigaction.c (SA_MASK): New macro.
42898         (main): Avoid failing due to extension flags being set.
42899         Reported by Jim Meyering.
42900
42901         Revert use of sig-handler.h in sigprocmask.c.
42902         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
42903         it requires the existence of struct sigaction.
42904         * lib/sigprocmask.c (handler_t): Restore typedef.
42905         (rpl_signal, old_handlers): Use local type.
42906
42907 2008-06-22  Bruno Haible  <bruno@clisp.org>
42908
42909         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
42910         conditionally.
42911         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42912
42913 2008-06-22  Bruno Haible  <bruno@clisp.org>
42914
42915         * doc/posix-functions/siginterrupt.texi: Move note.
42916
42917         * lib/signal.in.h (SA_RESTART): New macro.
42918         * lib/sigaction.c: Update comment.
42919
42920         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
42921
42922         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
42923         (gl_PREREQ_SIGPROCMASK): Invoke it.
42924         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
42925
42926         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
42927
42928         * lib/sigprocmask.c: Update a comment.
42929
42930 2008-06-21  Eric Blake  <ebb9@byu.net>
42931
42932         Use sigaction module rather than signal().
42933         * modules/c-stack (Depends-on): Add sigaction.
42934         * modules/fatal-signal (Depends-on): Likewise.
42935         * modules/nanosleep (Depends-on): Likewise.
42936         * modules/sigprocmask (Files): Add sig-handler.h.
42937         * modules/sigaction (Files): Likewise.
42938         * lib/sig-handler.h (get_handler): New file, suggested by Paul
42939         Eggert.
42940         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
42941         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
42942         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42943         (init_fatal_signals): Likewise.
42944         * lib/nanosleep.c (rpl_nanosleep): Likewise.
42945         (siginterrupt): Delete fallback.
42946         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
42947         instead.
42948         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
42949         siginterrupt.
42950
42951         New module sigaction, for mingw.
42952         * modules/sigaction: New module...
42953         * modules/sigaction-tests: ...and its test.
42954         * m4/sigaction.m4: New file.
42955         * lib/sigaction.c: Likewise.
42956         * tests/test-sigaction.c: Likewise.
42957         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
42958         * modules/signal (Makefile.am): Likewise.
42959         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
42960         needed.
42961         * doc/posix-headers/signal.texi (signal.h): Mention provided
42962         types.
42963         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
42964         that sigaction is preferable.
42965         * doc/posix-functions/sigaction.texi (sigaction): Mention new
42966         module.
42967         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42968         sigaction.
42969
42970         Improve robustness of sigprocmask by overriding signal.
42971         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
42972         is in use.
42973         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
42974         (SIGKILL, SIGSTOP): Provide fallbacks.
42975         (rpl_signal): Implement.
42976         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
42977         signal can be called inside handlers.
42978
42979         Fix nanosleep module on mingw.
42980         * modules/nanosleep (Depends-on): Add sys_select.
42981         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
42982
42983         Fix licensing of sigprocmask.
42984         * modules/raise (License): Relicense as LGPL.
42985
42986 2008-06-21  Bruno Haible  <bruno@clisp.org>
42987
42988         * lib/propername.c (proper_name_utf8): Don't use the transliterated
42989         result if it contains question marks.
42990         Reported by Michael Geng <linux@michaelgeng.de>.
42991
42992 2008-06-19  Bruno Haible  <bruno@clisp.org>
42993
42994         Fix CVS-ism.
42995         * doc/gnulib.texi: Include updated-stamp.texi.
42996         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
42997         (updated-stamp.texi): New rule.
42998         (gnulib.info): Depend on it.
42999         * doc/.gitignore: Add updated-stamp.texi.
43000         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
43001
43002 2008-06-19  Bruno Haible  <bruno@clisp.org>
43003
43004         * doc/Makefile (gnulib.info): Update and simplify dependencies.
43005         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43006
43007 2008-06-19  Eric Blake  <ebb9@byu.net>
43008
43009         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
43010         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
43011         Reported by Stepan Kasal.
43012
43013 2008-06-18  Bruno Haible  <bruno@clisp.org>
43014
43015         * lib/fatal-signal.c (init_fatal_signals): Add comment.
43016         Reported by Eric Blake.
43017
43018 2008-06-18  Eric Blake  <ebb9@byu.net>
43019
43020         Work around cygwin 1.5.25 strsignal bug.
43021         * tests/test-strsignal.c: Allow for const char *.
43022         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
43023
43024 2008-06-18  Simon Josefsson  <simon@josefsson.org>
43025
43026         * users.txt: Update URL to article and add author/date
43027         information.
43028
43029 2008-06-17  Bruno Haible  <bruno@clisp.org>
43030
43031         New macro gl_DISABLE_THREADS.
43032         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
43033         if the user did not pass --enable-threads or --disable-threads option.
43034         (gl_DISABLE_THREADS): New macro.
43035         Reported by Eric Blake <ebb9@byu.net>.
43036
43037 2008-06-17  Bruno Haible  <bruno@clisp.org>
43038
43039         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
43040         when the macro ignores it.
43041         Based on a patch by Eric Blake <ebb9@byu.net>.
43042
43043 2008-06-17  Bruno Haible  <bruno@clisp.org>
43044
43045         * modules/tls (License): Change to LGPLv2+.
43046         Reported by Eric Blake.
43047
43048 2008-06-17  Eric Blake  <ebb9@byu.net>
43049
43050         Simplify c-stack prerequisites.
43051         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
43052         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
43053         no longer requires <ucontext.h> to exist.  Optimize setrlimit
43054         check.
43055         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
43056         <sys/resource.h>.
43057
43058         Move c-stack test into testsuite.
43059         * modules/c-stack-tests: New file.
43060         * lib/c-stack.c [DEBUG]: Move test program...
43061         * tests/test-c-stack.c: ...into this new file.  Skip rather than
43062         fail test if sigaltstack is lacking.
43063         * tests/test-c-stack.sh: New driver file.
43064
43065 2008-06-16  Eric Blake  <ebb9@byu.net>
43066
43067         Use raise module consistently.
43068         * modules/fatal-signal (Depends-on): Add raise.
43069         * modules/sigprocmask (Depends-on): Likewise.
43070         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
43071         * lib/sigprocmask.c (sigprocmask): Likewise.
43072         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43073         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
43074
43075         Fix compliance bug in sigpending.
43076         * lib/sigprocmask.c (sigpending): Return pending array via
43077         parameter, not return value.
43078
43079 2008-06-14  Eric Blake  <ebb9@byu.net>
43080
43081         Improve obstack-printf test code.
43082         * tests/test-obstack-printf.c (test_function): Fix comment, and
43083         simplify usage of obstack_* in macros.  Add a test for coverage.
43084         Reported by Bruno Haible.
43085
43086 2008-06-14  Bruno Haible  <bruno@clisp.org>
43087
43088         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
43089         array size as a constant, not as a const variable.
43090         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
43091         AC_USE_SYSTEM_EXTENSIONS.
43092         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43093         Test whether the obstack_printf function actually exists.
43094         * modules/obstack-printf (Depends-on): Add extensions.
43095         (Include): Remove obstack.h.
43096         * modules/obstack-printf-posix (Depends-on): Add extensions.
43097         (Include): Remove obstack.h.
43098
43099 2008-06-13  Eric Blake  <ebb9@byu.net>
43100
43101         Add obstack-printf and obstack-printf-posix modules.
43102         * modules/obstack-printf: New file.
43103         * modules/obstack-printf-posix: Likewise.
43104         * MODULES.html.sh (Misc): Mention them.
43105         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43106         Likewise.
43107         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43108         Likewise.
43109         * modules/stdio (Makefile.am): Accomodate new modules.
43110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43111         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
43112         Declare.
43113         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
43114         functions.
43115         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
43116         (gl_REPLACE_OBSTACK_PRINTF): New macros
43117         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
43118         * tests/test-obstack-printf.c: New file.
43119         * modules/obstack-printf-tests: Likewise.
43120         * modules/obstack-printf-posix-tests: Likewise.
43121
43122 2008-06-11  Bruno Haible  <bruno@clisp.org>
43123
43124         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
43125         * lib/open.c: Include errno.h.
43126         (open): Fail when attempting to write to a file that has a trailing
43127         slash.
43128         * tests/test-open.c (main): Test against trailing slash bug.
43129         * doc/posix-functions/open.texi: Mention the trailing slash bug.
43130
43131 2008-06-10  Bruno Haible  <bruno@clisp.org>
43132
43133         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
43134         for $? to work inside the trap command, with various /bin/sh-s.
43135         * tests/test-vc-list-files-cvs.sh: Likewise.
43136
43137 2008-06-10  Bruno Haible  <bruno@clisp.org>
43138
43139         * lib/acl-internal.h: Don't include gettext.h here.
43140         * lib/set-mode-acl.c: Include gettext.h here.
43141         * lib/copy-acl.c: Likewise.
43142
43143 2008-06-10  Bruno Haible  <bruno@clisp.org>
43144
43145         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
43146         * lib/wait-process.c (wait_subprocess): Likewise.
43147         * lib/execute.h (execute): Add termsigp argument.
43148         * lib/execute.c (execute): Likewise.
43149         * lib/csharpcomp.c (compile_csharp_using_pnet,
43150         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
43151         * lib/csharpexec.c (execute_csharp_using_pnet,
43152         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
43153         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
43154         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
43155         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
43156         is_jikes_present): Update.
43157         * lib/javaexec.c (execute_java_class): Update.
43158         * lib/javaversion.c (execute_and_read_line): Update.
43159         * NEWS: Document the changes.
43160         Reported by Eric Blake.
43161
43162 2008-06-10  Eric Blake  <ebb9@byu.net>
43163
43164         Add missing include.
43165         * tests/test-strstr.c (includes): Add <signal.h>.
43166         * tests/test-strcasestr.c (includes): Likewise.
43167         * tests/test-memmem.c (includes): Likewise.
43168
43169 2008-06-10  Bruno Haible  <bruno@clisp.org>
43170
43171         * lib/wait-process.c (wait_subprocess): Add an assertion.
43172
43173 2008-06-10  Bruno Haible  <bruno@clisp.org>
43174
43175         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
43176
43177 2008-06-10  Bruno Haible  <bruno@clisp.org>
43178
43179         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
43180         using alarm().
43181         * tests/test-strcasestr.c (main): Likewise.
43182         * tests/test-strstr.c (main): Likewise.
43183
43184 2008-06-09  Bruno Haible  <bruno@clisp.org>
43185
43186         Work around the Solaris 10 ACE ACLs ABI change.
43187         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
43188         declare if ACL_NO_TRIVIAL is present.
43189         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
43190         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
43191         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
43192         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
43193         define if ACL_NO_TRIVIAL is present.
43194         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
43195         and use the current ABI.
43196         (file_has_acl): Use same #if condition as elsewhere.
43197         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
43198         in use, and use the current ABI.
43199         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
43200         Reported by Jim Meyering.
43201
43202 2008-06-09  Eric Blake  <ebb9@byu.net>
43203
43204         Work around environments that (stupidly) ignore SIGALRM.
43205         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
43206         before using alarm().
43207         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43208         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43209         Reported by Ian Beckwith <ianb@erislabs.net>.
43210
43211         Produce autobuild blurb earlier in log.
43212         * modules/autobuild (configure.ac-early): Move AB_INIT here.
43213
43214 2008-06-09  Jim Meyering  <meyering@redhat.com>
43215         and Ondřej Vašík  <ovasik@redhat.com>
43216
43217         utimens.c: correct kernel bug work-around
43218         Ondřej Vašík found that the invalid return value of 280 indicates
43219         failure, not success, and the kernel bug we're trying to work
43220         around affects not just the utimensat call, but also the fallback
43221         futimens call.
43222         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
43223         not success.
43224         [HAVE_FUTIMENS]: Use the same work-around, here.
43225
43226 2008-06-09  Jim Meyering  <meyering@redhat.com>
43227
43228         add more guards around definition of ACE_-related code
43229         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
43230         ALLOW and ACE_OWNER are also defined.
43231
43232 2008-06-08  Bruno Haible  <bruno@clisp.org>
43233
43234         * lib/acl-internal.h: Add me as co-author.
43235         * lib/file-has-acl.c: Likewise.
43236         * lib/set-mode-acl.c: Likewise.
43237         * lib/copy-acl.c: Likewise.
43238
43239 2008-06-08  Bruno Haible  <bruno@clisp.org>
43240
43241         Add support for AIX ACLs.
43242         * lib/acl-internal.h (acl_nontrivial): New declaration.
43243         * lib/file-has-acl.c (acl_nontrivial): New function.
43244         (file_has_acl): Add implementation using AIX 4 ACL API.
43245         * lib/set-mode-acl.c (qset_acl): Likewise.
43246         * lib/copy-acl.c (qcopy_acl): Likewise.
43247
43248 2008-06-08  Bruno Haible  <bruno@clisp.org>
43249
43250         Add support for HP-UX ACLs.
43251         * lib/acl-internal.h (acl_nontrivial): New declaration.
43252         * lib/file-has-acl.c (acl_nontrivial): New function.
43253         (file_has_acl): Add implementation using HP-UX 11 ACL API.
43254         * lib/set-mode-acl.c (qset_acl): Likewise.
43255         * lib/copy-acl.c (qcopy_acl): Likewise.
43256
43257 2008-06-08  Bruno Haible  <bruno@clisp.org>
43258
43259         Add support for Cygwin ACLs.
43260         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
43261         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
43262         the chmod_or_fchmod call.
43263         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
43264
43265 2008-06-08  Bruno Haible  <bruno@clisp.org>
43266
43267         Fix bug with setuid modes in Solaris 10+ code.
43268         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
43269         succeeded, when the mode contains some special bits.
43270
43271 2008-06-08  Bruno Haible  <bruno@clisp.org>
43272
43273         Add support for Solaris 7..10 ACLs.
43274         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
43275         declarations.
43276         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
43277         functions.
43278         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
43279         * lib/set-mode-acl.c (qset_acl): Likewise.
43280         * lib/copy-acl.c (qcopy_acl): Likewise.
43281
43282 2008-06-08  Bruno Haible  <bruno@clisp.org>
43283
43284         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
43285         declaration.
43286         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
43287         (acl_access_nontrivial): Remove MacOS X case.
43288         (file_has_acl): Use acl_extended_nontrivial.
43289         * lib/copy-acl.c (qcopy_acl): Likewise.
43290
43291 2008-06-08  Bruno Haible  <bruno@clisp.org>
43292
43293         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
43294
43295 2008-06-08  Jim Meyering  <meyering@redhat.com>
43296
43297         * modules/acl (Maintainer): Add Bruno Haible.
43298
43299 2008-06-07  Bruno Haible  <bruno@clisp.org>
43300
43301         Improve support for Tru64 ACLs.
43302         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
43303         ACL on OSF/1.
43304
43305 2008-06-07  Bruno Haible  <bruno@clisp.org>
43306
43307         Add support for MacOS X ACLs.
43308         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43309         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43310         * lib/set-mode-acl.c (qset_acl): Likewise.
43311         * lib/copy-acl.c (qcopy_acl): Likewise.
43312
43313 2008-06-07  Bruno Haible  <bruno@clisp.org>
43314
43315         Fix memory leak introduced on 2008-05-22.
43316         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43317         use.
43318
43319 2008-06-07  Bruno Haible  <bruno@clisp.org>
43320
43321         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43322         to construct an empty ACL.
43323
43324 2008-06-07  Bruno Haible  <bruno@clisp.org>
43325
43326         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43327         precisely.
43328         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43329
43330 2008-06-07  Bruno Haible  <bruno@clisp.org>
43331
43332         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43333         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43334
43335 2008-06-07  Bruno Haible  <bruno@clisp.org>
43336
43337         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43338         regardless of POSIX.
43339         * doc/posix-functions/_longjmp.texi: Likewise.
43340         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43341         SystemV platform in this case.
43342
43343 2008-06-06  Eric Blake  <ebb9@byu.net>
43344
43345         Document abort() bugs.
43346         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43347
43348         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43349         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43350         sigsetjmp.
43351         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43352         siglongjmp, but only as a macro.
43353         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43354         is obsolete.
43355         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43356
43357         Tweak documentation to cover cygwin argz bugs.
43358         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43359         argz bug fix; no code change needed since no cygwin releases
43360         occurred between the last fix and the bug being tested.
43361         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43362         module and recently fixed cygwin bugs.
43363         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43364         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43365         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43366         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43367         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43368         Likewise.
43369         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43370         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43371         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43372         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43373         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43374         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43375         Likewise.
43376
43377         Avoid gcc warning on cygwin.
43378         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43379         !ACL_NO_TRIVIAL]: Avoid unused variable.
43380
43381 2008-06-05  Eric Blake  <ebb9@byu.net>
43382
43383         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43384         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43385         git-version-gen fails to come up with a version.
43386         Reported by Simon Josefsson.
43387
43388 2008-06-05  Jim Meyering  <meyering@redhat.com>
43389             Paul Eggert  <eggert@cs.ucla.edu>
43390
43391         utimens.c: work around a probable Linux kernel bug
43392         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43393         appears to be a kernel bug that causes utimensat to return 280
43394         instead of 0, indicating success.
43395
43396 2008-06-04  Bruno Haible  <bruno@clisp.org>
43397
43398         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43399         2008-06-01 commit.
43400
43401 2008-06-04  Bruno Haible  <bruno@clisp.org>
43402
43403         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43404         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43405         (file_has_acl): Use it. Save errno afterwards.
43406         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43407
43408 2008-06-03  Bruno Haible  <bruno@clisp.org>
43409
43410         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43411         draft code. Simplify #ifs.
43412         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43413         Put Solaris code after POSIX-draft code. Fix comments regarding
43414         Solaris 10, HP-UX. Mention Cygwin.
43415         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43416
43417 2008-06-03  Eric Blake  <ebb9@byu.net>
43418
43419         Provide fallback for older kernels.
43420         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43421         Provide runtime fallback if kernel lacks support.
43422         Reported by Mike Frysinger.
43423
43424 2008-06-02  Bruno Haible  <bruno@clisp.org>
43425
43426         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43427         it exists.
43428
43429 2008-06-02  Bruno Haible  <bruno@clisp.org>
43430
43431         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43432         * lib/copy-acl.c (qcopy_acl): Update comment.
43433
43434 2008-06-02  Bruno Haible  <bruno@clisp.org>
43435
43436         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43437         like ACL APIs.
43438
43439 2008-06-02  Bruno Haible  <bruno@clisp.org>
43440
43441         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43442         * tests/test-set-mode-acl.sh: Likewise.
43443         * tests/test-copy-acl.sh: Likewise.
43444         * tests/test-copy-file.sh: Likewise.
43445
43446 2008-06-02  Bruno Haible  <bruno@clisp.org>
43447
43448         * tests/test-file-has-acl.sh: Remove unused code.
43449
43450 2008-06-01  Bruno Haible  <bruno@clisp.org>
43451
43452         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43453         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43454         messages.
43455         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43456
43457 2008-06-01  Bruno Haible  <bruno@clisp.org>
43458
43459         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43460         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43461         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43462         APIs.
43463         * modules/acl-tests (configure.ac): Remove tests now contained in
43464         m4/acl.m4.
43465
43466 2008-06-02  Jim Meyering  <meyering@redhat.com>
43467
43468         announce-gen: use a better key-server host name
43469         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43470         it may be more consistently reliable.  Suggested by Werner Koch
43471         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43472
43473 2008-06-01  Bruno Haible  <bruno@clisp.org>
43474
43475         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43476         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43477
43478 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43479
43480         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43481
43482 2008-06-01  Bruno Haible  <bruno@clisp.org>
43483
43484         New ACL tests.
43485         * tests/test-file-has-acl.sh: New file.
43486         * tests/test-file-has-acl.c: New file.
43487         * tests/test-set-mode-acl.sh: New file.
43488         * tests/test-set-mode-acl.c: New file.
43489         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43490         * tests/test-copy-acl.c: New file.
43491         * modules/acl-tests: New file, based on modules/copy-file-tests.
43492         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43493         (Depends-on): Add acl-tests.
43494         (configure.ac): Remove checks.
43495         (Makefile.am): Don't create test-sameacls program here any more.
43496
43497 2008-06-01  Bruno Haible  <bruno@clisp.org>
43498
43499         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43500         * tests/test-sameacls.c: Include progname.h.
43501         (main): Invoke set_program_name. Portability fixes for MacOS X,
43502         Solaris, HP-UX.
43503
43504 2008-06-01  Bruno Haible  <bruno@clisp.org>
43505
43506         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43507         function.
43508         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43509
43510 2008-06-01  Bruno Haible  <bruno@clisp.org>
43511
43512         * modules/rpmatch (Depends-on): Add strdup.
43513
43514 2008-06-01  Bruno Haible  <bruno@clisp.org>
43515
43516         * lib/pipe.c: Include unistd-safer.h.
43517         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43518         * modules/pipe (Depends-on): Add unistd-safer.
43519
43520 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43521
43522         * modules/autobuild (configure.ac): Call AB_INIT.
43523
43524 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43525
43526         * tests/test-getaddrinfo.c: Don't print debug messages by default.
43527         Suggested by Bruno Haible <bruno@clisp.org>.
43528
43529 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43530
43531         * tests/test-base64.c: Cast size_t to unsigned long when invoking
43532         printf.  Use %lu instead of %d.  Reported by Bruno Haible
43533         <bruno@clisp.org>.
43534
43535 2008-05-29  Eric Blake  <ebb9@byu.net>
43536
43537         Prefer new POSIX 200x interfaces over futimesat.
43538         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
43539         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
43540         when available.
43541         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
43542
43543 2008-05-28  Bruno Haible  <bruno@clisp.org>
43544
43545         * modules/stpcpy (License): Change to LGPLv2+.
43546         Requested by David Lutterkort <dlutter@redhat.com>.
43547
43548 2008-05-27  Bruno Haible  <bruno@clisp.org>
43549
43550         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
43551         current mingw.
43552         Reported by Jose E. Marchesi <jemarch@gnu.org>.
43553
43554 2008-05-27  Bruno Haible  <bruno@clisp.org>
43555
43556         * modules/iconv_open (Link): New section, from module 'iconv'.
43557         * modules/striconv (Link): Likewise.
43558         * modules/striconveh (Link): Likewise.
43559         * modules/xstriconv (Link): Likewise.
43560         * modules/unicodeio (Link): Likewise.
43561         * modules/propername (Link): Likewise.
43562         Reported by Jim Meyering.
43563
43564 2008-05-26  Jim Meyering  <meyering@redhat.com>
43565
43566         sha256: do not artificially restrict buffer length to be < 2^32
43567         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
43568         uint32_t to size_t.
43569         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
43570         to match.
43571
43572         avoid unaligned access errors, e.g., on sparc
43573         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
43574         direct access through a possibly-unaligned uint64* pointer.
43575         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
43576         direct access through a possibly-unaligned uint32* pointer.
43577         Prompted by this patch from Tom "spot" Callaway:
43578         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
43579
43580         sha512.c: fix typo in comment
43581         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
43582
43583 2008-05-25  Bruno Haible  <bruno@clisp.org>
43584
43585         * lib/set-mode-acl.c: Renamed from lib/acl.c.
43586         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
43587         (Makefile.am): Update lib_SOURCES.
43588
43589 2008-05-25  Bruno Haible  <bruno@clisp.org>
43590
43591         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
43592
43593 2008-05-25  Jim Meyering  <meyering@redhat.com>
43594
43595         useless-if-before-free: freed expr may have white-space differences
43596         * build-aux/useless-if-before-free: Recognize cases in which the
43597         freed expression differs from the tested one in embedded white
43598         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
43599         $1 was used, so we can't make any regexp shy.  Improved tests now
43600         detect this.
43601
43602         useless-if-before-free: accept white space in the expression.
43603         * build-aux/useless-if-before-free: For now, any white space
43604         in the expression must be identical in the free argument.
43605
43606         useless-if-before-free: efficiency tweak
43607         * build-aux/useless-if-before-free: Make the expression-matching
43608         regexp "shy".
43609         Make the *outer* regexp shy, not the expr-matching one.
43610
43611         update code-in-comment to accept cast of free arg
43612         * build-aux/useless-if-before-free: Update regexp.
43613
43614 2008-05-25  Bruno Haible  <bruno@clisp.org>
43615
43616         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
43617         * modules/copy-file-tests (Files, Makefile.am): Update.
43618         * tests/test-copy-file.c (func_test_copy): Update.
43619
43620 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43621
43622         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43623
43624 2008-05-23  Bruno Haible  <bruno@clisp.org>
43625
43626         Improve support for ACLs on OSF/1.
43627         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43628         Remove fallback for unknown flavors of ACLs.
43629
43630 2008-05-22  Bruno Haible  <bruno@clisp.org>
43631
43632         Add support for ACLs on OSF/1.
43633         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43634         replacements.
43635         (acl_free_text): New macro fallback.
43636         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43637         acl_free.
43638         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43639         acl_free_text function. Require AC_C_INLINE.
43640
43641 2008-05-22  Bruno Haible  <bruno@clisp.org>
43642
43643         Make copy_acl work on MacOS X 10.5.
43644         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43645         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43646         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43647         If MODE_INSIDE_ACL, don't assume that every system has the same text
43648         representation for ACLs as FreeBSD.
43649         * lib/copy-acl.c (copy_acl): Add support for platforms with
43650         !MODE_INSIDE_ACL.
43651         * lib/file-has-acl.c (file_has_acl): Likewise.
43652         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43653         FreeBSD, MacOS X, or IRIX, respectively.
43654
43655 2008-05-22  Bruno Haible  <bruno@clisp.org>
43656
43657         * lib/acl.h: Don't include <sys/acl.h>.
43658         (GETACLCNT): Move fallback to lib/acl-internal.h.
43659         * lib/acl-internal.h: Include <sys/acl.h> here.
43660         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43661
43662 2008-05-22  Bruno Haible  <bruno@clisp.org>
43663
43664         Split off copy_acl function to separate file.
43665         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43666         * lib/acl.c (copy_acl): Moved function to separate file.
43667         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43668         * modules/acl (Files): Add lib/copy-acl.c.
43669         (Makefiles.am): Augment lib_SOURCES.
43670
43671 2008-05-22  Bruno Haible  <bruno@clisp.org>
43672
43673         * modules/copy-file-tests: New file.
43674         * tests/test-copy-file.sh: New file.
43675         * tests/test-copy-file.c: New file.
43676         * tests/test-copy-file-sameacls.c: New file.
43677
43678 2008-05-22  Eric Blake  <ebb9@byu.net>
43679
43680         Avoid gcc warning.
43681         * tests/test-memcmp.c (main): Pass NULL indirectly.
43682
43683 2008-05-21  Bruno Haible  <bruno@clisp.org>
43684
43685         Add reference doc about ACLs.
43686         * doc/acl-resources.txt: New file.
43687         * doc/acl-cygwin.txt: New file.
43688
43689 2008-05-21  Bruno Haible  <bruno@clisp.org>
43690
43691         Avoid one more warning from gcc.
43692         * lib/vasnprintf.c (IF_LINT): Update comments.
43693         (VASNPRINTF): Use it also for the 'prefix' array initializer.
43694
43695 2008-05-21  Jim Meyering  <meyering@redhat.com>
43696
43697         avoid a warning from gcc
43698         * lib/vasnprintf.c (IF_LINT): Define.
43699         (scale10_round_decimal_long_double):
43700         Use it to avoid a "may be used uninitialized" warning.
43701         (scale10_round_decimal_double): Likewise.
43702
43703 2008-05-21  Simon Josefsson  <simon@josefsson.org>
43704
43705         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
43706         declared.
43707
43708 2008-05-20  Bruno Haible  <bruno@clisp.org>
43709
43710         * tests/test-memcmp.c (main): Test also the sign of the result. Test
43711         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
43712
43713 2008-05-20  Simon Josefsson  <simon@josefsson.org>
43714
43715         * modules/memcmp-tests: New file.
43716         * tests/test-memcmp.c: New file.
43717
43718 2008-05-19  Bruno Haible  <bruno@clisp.org>
43719
43720         * modules/propername (Notice, configure.ac): Put quoted "..." into
43721         --keyword option.
43722         * lib/propername.h: Update comments accordingly.
43723         Reported by Eric Blake.
43724
43725 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
43726
43727         * modules/getpass-gnu (Depends-on): Add fseeko.
43728
43729 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43730
43731         * modules/base64-tests: New file.
43732
43733 2008-05-19  Bo Borgerson <gigabo@gmail.com>
43734
43735         * lib/base64.c (base64_decode_ctx): If a decode context structure
43736         was passed in use it to ignore newlines.  If a context structure
43737         was _not_ passed in, continue to treat newlines as garbage (this
43738         is the historical behavior).  Formerly base64_decode.
43739         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43740         takes a decode context structure.
43741         * lib/base64.h (base64_decode): Macro for four-argument calls.
43742         (base64_decode_alloc): Likewise.
43743         * lib/base64.c (base64_decode_ctx): If a decode context structure
43744         was passed in use it to ignore newlines.  If a context structure
43745         was _not_ passed in, continue to treat newlines as garbage (this
43746         is the historical behavior).  Formerly base64_decode.
43747         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43748         takes a decode context structure.
43749         * lib/base64.h (base64_decode): Macro for four-argument calls.
43750         (base64_decode_alloc): Likewise.
43751
43752 2008-05-19  Jim Meyering  <meyering@redhat.com>
43753
43754         avoid a warning from gcc
43755         * lib/trim.c (IF_LINT): Define.
43756         (trim2): Use it to avoid a "may be used uninitialized" warning.
43757
43758         Fix doc typo.
43759         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
43760
43761 2008-05-19  Bruno Haible  <bruno@clisp.org>
43762
43763         * doc/glibc-functions/getpass.texi: Document limits of other
43764         implementations.
43765
43766 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43767             Bruno Haible <bruno@clisp.org>
43768
43769         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
43770
43771 2008-05-18  Bruno Haible  <bruno@clisp.org>
43772
43773         * modules/propername: New file, from GNU gettext.
43774         * lib/propername.h: New file, from GNU gettext.
43775         * lib/propername.c: New file, from GNU gettext.
43776         * MODULES.html.sh (Internationalization functions): Add propername.
43777
43778 2008-05-16  Jim Meyering  <meyering@redhat.com>
43779             Bruno Haible  <bruno@clisp.org>
43780
43781         Avoid some warnings from "gcc -Wshadow".
43782         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
43783
43784 2008-05-15  Eric Blake  <ebb9@byu.net>
43785
43786         Extend previous patch to cygwin 1.7.0.
43787         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
43788         fast implementation in cygwin >= 1.7.0.
43789         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43790         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43791
43792 2008-05-15  Bruno Haible  <bruno@clisp.org>
43793
43794         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
43795         implementation in glibc >= 2.9.
43796         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43797         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43798
43799 2008-05-15  Bruno Haible  <bruno@clisp.org>
43800
43801         * MODULES.html.sh (Internationalization functions): Remove linebreak.
43802         (Unicode string functions): Add unilbrk/*.
43803         Reported by Karl Berry.
43804
43805 2008-05-15  Eric Blake  <ebb9@byu.net>
43806
43807         Fix violation of <stdbool.h> replacement in regex.
43808         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
43809         * lib/regexec.c (re_search_internal): Likewise.
43810         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
43811
43812 2008-05-15  Jim Meyering  <meyering@redhat.com>
43813
43814         avoid distracting test output when git or cvs is not found
43815         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
43816         * tests/test-vc-list-files-git.sh: Likewise.
43817
43818 2008-05-15  Eric Blake  <ebb9@byu.net>
43819
43820         Glibc finally accepted the memmem speedup code, bugzilla #5514.
43821         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
43822         glibc version.
43823         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43824         * doc/posix-functions/strstr.texi (strstr): Likewise.
43825         * lib/str-two-way.h (MAX): Sychronize with glibc.
43826
43827 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
43828
43829         * lib/regcomp.c (optimize_utf8): Add a note on why we test
43830         opr.ctx_type.
43831         (calc_first): Initialize constraint field.
43832         (duplicate_node_closure): Use it instead of special casing ANCHORS.
43833         Fix grammar.
43834         (duplicate_node): Merge constraint field for all node types.
43835         (calc_eclosure_iter): Look at constraint field for all node types.
43836         * lib/regex_internal.c (create_cd_newstate): Don't look at
43837         opr.ctx_type.
43838
43839 2008-05-14  Bruno Haible  <bruno@clisp.org>
43840
43841         Help GCC to do better code generation.
43842         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
43843         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43844         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
43845         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
43846         Declare with attribute 'malloc' if supported.
43847
43848 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
43849
43850         use "echo STR|wc -c" rather than unportable "expr length STR"
43851         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
43852         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
43853
43854 2008-05-14  Jim Meyering  <meyering@redhat.com>
43855
43856         use dd ibs=$n count=1 ... rather than less-portable head -c$n
43857         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
43858         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
43859         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
43860         via Collin Lasse.
43861
43862 2008-05-14  Eric Blake  <ebb9@byu.net>
43863
43864         Avoid quadratic growth in gl_LIBSOURCES.
43865         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
43866         Suggested by Bruno Haible.
43867
43868         Test xmemdup0.
43869         * modules/xmemdup0-tests: New file.
43870         * tests/test-xmemdup0.c: Likewise.
43871
43872 2008-05-13  Eric Blake  <ebb9@byu.net>
43873
43874         Split xmemdup0 into its own module.
43875         * modules/xmemdup0: New file.
43876         * lib/xmemdup0.h: Likewise.
43877         * lib/xmemdup0.c: Likewise.
43878         * MODULES.html.sh (Memory management functions): Add xmemdup0.
43879         * lib/xalloc.h (xmemdup0): Remove.
43880         * lib/xmalloc.c (xmemdup0): Likewise.
43881
43882 2008-05-13  Eric Blake  <ebb9@byu.net>
43883             Bruno Haible  <bruno@clisp.org>
43884
43885         Reduce number of forks required during autoconf.
43886         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
43887         and gl_LIBSOURCES_DIR.
43888         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
43889         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
43890         m4_syscmd per file.
43891         <m4_foreach_w>: Move...
43892         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
43893
43894 2008-05-13  Eric Blake  <ebb9@byu.net>
43895
43896         * gnulib-tool: Fix various comment typos.
43897
43898 2008-05-12  Bruno Haible  <bruno@clisp.org>
43899
43900         Tailor the linebreaking algorithm.
43901         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
43902
43903 2008-05-12  Bruno Haible  <bruno@clisp.org>
43904
43905         Update to Unicode 5.0.0.
43906         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43907         LBP_JV, LBP_JT. Redistribute values.
43908         (unilbrk_table): Change size.
43909         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
43910         Unicode TR#14 rev. 22.
43911         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43912         LBP_JV, LBP_JT. Redistribute values.
43913         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
43914         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
43915         Update.
43916         * lib/unilbrk/lbrkprop1.h: Regenerated.
43917         * lib/unilbrk/lbrkprop2.h: Regenerated.
43918         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
43919         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
43920         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
43921         Likewise.
43922         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
43923         Likewise.
43924         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
43925         result.
43926         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43927         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43928         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
43929         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
43930         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
43931         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
43932
43933 2008-05-11  Bruno Haible  <bruno@clisp.org>
43934
43935         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
43936
43937 2008-05-11  Bruno Haible  <bruno@clisp.org>
43938
43939         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
43940         * modules/unilbrk/gen-lbrk: New file.
43941
43942 2008-05-11  Bruno Haible  <bruno@clisp.org>
43943
43944         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
43945         * m4/sha512.m4 (gl_SHA512): Likewise.
43946
43947 2008-05-11  Jim Meyering  <meyering@redhat.com>
43948
43949         New modules: crypto/sha256, crypto/sha512 (from coreutils)
43950         * modules/crypto/sha256: New file.
43951         * modules/crypto/sha512: Likewise.
43952         * lib/sha256.c: Likewise.
43953         * lib/sha256.h: Likewise.
43954         * lib/sha512.c: Likewise.
43955         * lib/sha512.h: Likewise.
43956         * lib/u64.h: Likewise.
43957         * m4/sha256.m4: Likewise.
43958         * m4/sha512.m4: Likewise.
43959         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
43960
43961 2008-05-10  Bruno Haible  <bruno@clisp.org>
43962
43963         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
43964         (Input/Output <stdio.h>): Add xprintf.
43965         (Signal handling <signal.h>): Add strsignal.
43966         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
43967         (Core language properties): Add func.
43968         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
43969         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
43970         strings.
43971         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
43972         (Input/output): New section.
43973         (File system functions): Add openat-die, stat-macros.
43974         (Networking functions): Add sockets.
43975         (Unicode string functions): Add unictype/*.
43976         (Support for building libraries and executables): Add gperf.
43977         (Support for building documentation): Add agpl-3.0.
43978         (Misc): Add nocrash.
43979
43980 2008-05-10  Bruno Haible  <bruno@clisp.org>
43981
43982         * modules/unictype/gen-ctype: New file.
43983
43984 2008-05-10  Jim Meyering  <meyering@redhat.com>
43985
43986         Make chdir-safer.c more efficient on a system with no symlinks.
43987         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
43988         also if ELOOP is zero.  Suggested by Bruno Haible.
43989
43990         Make chdir-safer.c slightly safer.
43991         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
43992         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
43993
43994         Avoid compile failure on systems without ELOOP (like mingw).
43995         * lib/chdir-safer.c (ELOOP): Define if not already defined.
43996         Reported by Bruno Haible.
43997
43998 2008-05-10  Bruno Haible  <bruno@clisp.org>
43999
44000         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
44001         (is_utf8_encoding): Use a case-insensitive comparison.
44002         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
44003         streq.
44004
44005 2008-05-10  Bruno Haible  <bruno@clisp.org>
44006
44007         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
44008         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
44009         * lib/unilbrk/ulc-common.h (iconv_string_length,
44010         iconv_string_keeping_offsets): Remove declarations.
44011         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
44012         Don't include <iconv.h>, streq.h, xsize.h.
44013         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
44014         conversion.
44015         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
44016         <iconv.h>, streq.h, xsize.h.
44017         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
44018         conversion.
44019         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
44020         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
44021         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
44022         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
44023
44024 2008-05-10  Bruno Haible  <bruno@clisp.org>
44025
44026         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
44027         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
44028
44029         * modules/unilbrk/u32-width-linebreaks-tests: New file.
44030         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
44031
44032         * modules/unilbrk/u16-width-linebreaks-tests: New file.
44033         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
44034
44035         * modules/unilbrk/u8-width-linebreaks-tests: New file.
44036         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
44037
44038         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
44039         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
44040
44041         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
44042         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
44043
44044         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
44045         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
44046
44047         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
44048         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
44049
44050 2008-05-10  Bruno Haible  <bruno@clisp.org>
44051
44052         Split up 'linebreak' module.
44053         * lib/unilbrk.h: New file, based on lib/linebreak.h.
44054         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
44055         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
44056         modifications.
44057         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
44058         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
44059         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
44060         lib/linebreak.c.
44061         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
44062         lib/linebreak.c.
44063         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
44064         lib/linebreak.c.
44065         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
44066         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
44067         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
44068         lib/linebreak.c.
44069         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
44070         lib/linebreak.c.
44071         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
44072         lib/linebreak.c.
44073         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
44074         lib/linebreak.c.
44075         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
44076         lib/linebreak.c.
44077         * modules/unilbrk/base: New file.
44078         * modules/unilbrk/tables: New file.
44079         * modules/unilbrk/u8-possible-linebreaks: New file.
44080         * modules/unilbrk/u16-possible-linebreaks: New file.
44081         * modules/unilbrk/u32-possible-linebreaks: New file.
44082         * modules/unilbrk/ulc-common: New file.
44083         * modules/unilbrk/ulc-possible-linebreaks: New file.
44084         * modules/unilbrk/u8-width-linebreaks: New file.
44085         * modules/unilbrk/u16-width-linebreaks: New file.
44086         * modules/unilbrk/u32-width-linebreaks: New file.
44087         * modules/unilbrk/ulc-width-linebreaks: New file.
44088         * lib/linebreak.h: Remove file.
44089         * lib/linebreak.c: Remove file.
44090         * m4/linebreak.m4: Remove file.
44091         * modules/linebreak: Remove file.
44092         * NEWS: Mention the changes.
44093
44094 2008-05-09  Eric Blake  <ebb9@byu.net>
44095
44096         Add xmemdup0.
44097         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
44098         implementation.
44099         * lib/xmalloc.c (xmemdup0): New C implementation.
44100
44101 2008-05-08  Bruno Haible  <bruno@clisp.org>
44102
44103         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
44104
44105 2008-05-07  Eric Blake  <ebb9@byu.net>
44106
44107         Support cross-compilation of <wctype.h>.
44108         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
44109         AC_CACHE_CHECK.
44110
44111 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
44112
44113         * build-aux/vc-list-files: Add support for bzr.
44114
44115 2008-05-03  Jim Meyering  <meyering@redhat.com>
44116
44117         avoid failed assertion with tight malloc
44118         * tests/test-getndelim2.c: Correct an off-by-one assertion.
44119
44120 2008-05-03  Simon Josefsson  <simon@josefsson.org>
44121
44122         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
44123         are needed from arpa/inet.h.
44124         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
44125         Reported by Bruno Haible.
44126
44127 2008-05-02  Jim Meyering  <meyering@redhat.com>
44128
44129         avoid compilation error on FreeBSD 6
44130         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
44131
44132 2008-05-01  Jim Meyering  <meyering@redhat.com>
44133
44134         useless-if-before-free: correct --help's exit status description
44135         * build-aux/useless-if-before-free (usage): Like grep, exit 0
44136         for one or more matches, etc.  Reported by Bruno Haible.
44137
44138         vc-list-files: make the stand-alone gnulib test work
44139         * modules/vc-list-files-tests (configure.ac):
44140         Define and AC_SUBST abs_aux_dir.
44141         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
44142         $(abs_top_srcdir) to each script and having each of them
44143         duplicate the work of setting PATH, set PATH here, using
44144         the new variable, abs_aux_dir instead.
44145         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
44146         * tests/test-vc-list-files-git.sh: Likewise.
44147         Reported by Bruno Haible.
44148
44149 2008-05-01  Bruno Haible  <bruno@clisp.org>
44150
44151         * lib/getndelim2.c (getndelim2): Fix newsize computation during
44152         reallocation. Rename 'done' to 'found_delimiter'.
44153
44154 2008-05-01  Jim Meyering  <meyering@redhat.com>
44155
44156         vc-list-files: accommodate /bin/sh like the one from Solaris 10
44157         * build-aux/vc-list-files: Use `...`, not $(...).
44158
44159 2008-04-30  Jim Meyering  <meyering@redhat.com>
44160
44161         add tests for vc-list-files
44162         * modules/vc-list-files-tests: New module.
44163         * tests/test-vc-list-files-cvs.sh: New file.
44164         * tests/test-vc-list-files-git.sh: New file.
44165
44166         avoid a warning from gcc
44167         * lib/getndelim2.c (IF_LINT): Define.
44168         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
44169
44170         vc-list-files: work properly with build-aux/cvsu, too
44171         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
44172         to all cvs-based clauses.
44173
44174         vc-list-files: work properly in the CVS+awk case, too
44175         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
44176
44177         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
44178         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
44179         take more than one file argument, so .  Add quotes, just in case $dir
44180         ever contains a shell meta-character.  Prompted by Soren Hansen in
44181         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
44182
44183 2008-04-29  Eric Blake  <ebb9@byu.net>
44184
44185         Optimize getndelim2 to use block operations when possible.
44186         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
44187         freadseek, and memchr2.
44188         * lib/getndelim2.c (getndelim2): Use them for block reads.
44189
44190 2008-04-29  Bruno Haible  <bruno@clisp.org>
44191
44192         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
44193         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44194         * modules/inet_ntop (Depends-on): Add extensions.
44195         * modules/inet_pton (Depends-on): Likewise.
44196         Reported by Simon Josefsson.
44197
44198 2008-04-29  Jim Meyering  <meyering@redhat.com>
44199
44200         When the is more than one match in a block, match all of them.
44201         * build-aux/useless-if-before-free: Iterate through each block
44202         until there are no more matches.
44203
44204         Fix broken useless-if-before-free script.
44205         * build-aux/useless-if-before-free: Fix typo: missing "?" after
44206         the expression to match cast of argument to free-like function.
44207
44208 2008-04-29  Eric Blake  <ebb9@byu.net>
44209
44210         Use new header.
44211         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
44212
44213 2008-04-29  Jim Meyering  <meyering@redhat.com>
44214
44215         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
44216         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
44217         by gnulib to exist and to declare e.g., inet_ntop.
44218         Don't include "inet_ntop.h", now removed.
44219
44220         * m4/arpa_inet_h.m4: Remove trailing blanks.
44221
44222 2008-04-29  Eric Blake  <ebb9@byu.net>
44223
44224         Silence valgrind on safe reads beyond potential array bounds.
44225         * lib/rawmemchr.valgrind: New file.
44226         * lib/strchrnul.valgrind: Likewise.
44227         * modules/rawmemchr (Files): Distribute new file.
44228         * modules/strchrnul (Files): Likewise.
44229         Suggested by Bruno Haible.
44230
44231 2008-04-29  Bruno Haible  <bruno@clisp.org>
44232
44233         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
44234         (inet_ntop, inet_pton): Change portability warning's wording.
44235         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
44236         Invoke gl_CHECK_NEXT_HEADERS.
44237         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
44238         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
44239         set ARPA_INET_H.
44240         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44241         * modules/arpa_inet (Description): No longer only for systems that
44242         lack it.
44243         (Depends-on): Add include_next.
44244         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
44245         HAVE_ARPA_INET_H.
44246
44247 2008-04-29  Jim Meyering  <meyering@redhat.com>
44248
44249         * modules/mkdir (License): Re-license as LGPLv2+.
44250
44251 2008-04-29  Bruno Haible  <bruno@clisp.org>
44252
44253         * modules/rawmemchr (Maintainer): Set to Eric.
44254         * modules/strchrnul (Maintainer): Likewise.
44255
44256 2008-04-29  Simon Josefsson  <simon@josefsson.org>
44257
44258         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
44259         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
44260
44261         * modules/arpa_inet (arpa/inet.h): Use them.
44262
44263 2008-04-28  Eric Blake  <ebb9@byu.net>
44264
44265         Test getndelim2.
44266         * modules/getndelim2-tests: New file.
44267         * tests/test-getndelim2.c: Likewise.
44268         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
44269         stream.
44270         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
44271
44272         * MODULES.html.sh: Document new module.
44273
44274 2008-04-20  Bruno Haible  <bruno@clisp.org>
44275
44276         * lib/c-stack.c (die): Use raise.
44277         * modules/c-stack (Depends-on): Add raise.
44278
44279 2008-04-28  Bruno Haible  <bruno@clisp.org>
44280
44281         Expect rpmatch to be declared.
44282         * lib/yesno.c (rpmatch): Remove declaration.
44283
44284         Declare rpmatch.
44285         * lib/stdlib.in.h (rpmatch): New declaration.
44286         * lib/rpmatch.c: Include <stdlib.h> first.
44287         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
44288         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
44289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
44290         HAVE_RPMATCH.
44291         * modules/rpmatch (Depends-on): Add stdlib, extensions.
44292         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44293         (Include): Set to <stdlib.h>.
44294         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
44295         HAVE_RPMATCH.
44296         * NEWS: Document the change.
44297
44298 2008-04-28  Bruno Haible  <bruno@clisp.org>
44299
44300         Change rpmatch to use nl_langinfo when appropriate.
44301         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
44302         (N_): New macro.
44303         (localized_pattern): New function/macro.
44304         (try): Remove match, nomatch arguments. Copy the pattern into safe
44305         memory before caching it.
44306         (rpmatch): Use localized_pattern. Add translator comments.
44307         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
44308         Suggested by Eric Blake.
44309         * modules/rpmatch (Depends-on): Add stdbool.
44310
44311 2008-04-28  Eric Blake  <ebb9@byu.net>
44312
44313         Add rawmemchr module, matching glibc.
44314         * modules/string (Makefile.am): New indicator.
44315         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44316         * lib/string.in.h (rawmemchr): Declare when appropriate.
44317         * modules/rawmemchr: New file.
44318         * m4/rawmemchr.m4: Likewise.
44319         * lib/rawmemchr.c: Likewise.
44320         * modules/rawmemchr-tests: Likewise.
44321         * tests/test-rawmemchr.c: Likewise.
44322         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44323         module.
44324         * modules/strchrnul (Depends-on): Add rawmemchr.
44325         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44326
44327         Whitespace cleanup.
44328         * tests/test-strchrnul.c: Reindent.
44329         * lib/strchrnul.c: Likewise.
44330
44331         Optimize and test strchrnul.
44332         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44333         * modules/strchrnul-tests: New file.
44334         * tests/test-strchrnul.c: Likewise.
44335
44336         Remove intprops dependency.
44337         * modules/memchr (Depends-on): Remove intprops.
44338         * modules/memrchr (Depends-on): Likewise.
44339         * modules/memchr2 (Depends-on): Likewise.
44340         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44341         * lib/memrchr.c (__memrchr): Likewise.
44342         * lib/memrchr2.c (memchr2): Likewise.
44343         Reported by Simon Josefsson.
44344
44345 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44346
44347         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44348         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44349
44350 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44351
44352         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44353
44354         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44355
44356         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44357
44358         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44359         declarations.
44360         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44361
44362         * m4/inet_pton.m4: Don't check for header files.
44363
44364         * m4/inet_ntop.m4: Don't check for header files.
44365
44366 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44367
44368         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44369         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44370         trigger for cygwin).
44371         Reported by Bruno Haible  <bruno@clisp.org>.
44372
44373 2008-04-28  Bruno Haible  <bruno@clisp.org>
44374
44375         * doc/posix-functions/strdup.texi: Mention mingw problem.
44376
44377 2008-04-27  Bruno Haible  <bruno@clisp.org>
44378
44379         * modules/stat-time-tests (Depends-on): Add sleep.
44380         * tests/test-stat-time.c (force_unlink): New function.
44381         (cleanup): Use it.
44382         (test_mtime): Remove the ctime related tests.
44383         (test_ctime): New function, containing the ctime related tests.
44384         (main): Call test_ctime, except on native Windows platforms.
44385
44386 2008-04-27  Bruno Haible  <bruno@clisp.org>
44387
44388         * lib/rpmatch.c (rpmatch): Add some comments.
44389         Reported by James Youngman <jay@gnu.org>.
44390
44391 2008-04-27  Bruno Haible  <bruno@clisp.org>
44392
44393         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44394         quiet NaNs.
44395
44396 2008-04-27  Bruno Haible  <bruno@clisp.org>
44397
44398         Make test-yesno.sh work on mingw.
44399         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44400         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44401         (main): Set stdin to binary mode.
44402         * modules/yesno-tests (Depends-on): Add binary-io.
44403
44404 2008-04-27  Bruno Haible  <bruno@clisp.org>
44405
44406         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44407         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44408         argument that lie outside the IEEE 854 domain.
44409         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44410         (gl_ISFINITE): Use it.
44411         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44412
44413 2008-04-27  Bruno Haible  <bruno@clisp.org>
44414
44415         Allow local renaming in config.h.
44416         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44417
44418 2008-04-27  Bruno Haible  <bruno@clisp.org>
44419
44420         * lib/memchr.c (__memchr): Change type of 'i'.
44421         * lib/memchr2.c (memchr2): Likewise.
44422
44423 2008-04-26  Eric Blake  <ebb9@byu.net>
44424         and Bruno Haible  <bruno@clisp.org>
44425
44426         Optimize and test memrchr.
44427         * modules/memrchr (Depends-on): Add intprops.
44428         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44429         * modules/memrchr-tests: New file.
44430         * tests/test-memrchr.c: New file.
44431
44432 2008-04-26  Bruno Haible  <bruno@clisp.org>
44433
44434         Add tentative support for DragonFly BSD.
44435         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44436         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44437         fp.
44438         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44439         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44440         * lib/fpurge.c (fpurge): Likewise.
44441         * lib/freadable.c (freaadable): Likewise.
44442         * lib/freadahead.c (freadahead): Likewise.
44443         * lib/freading.c (freading): Likewise.
44444         * lib/freadptr.c (freadptr): Likewise.
44445         * lib/freadseek.c (freadptrinc): Likewise.
44446         * lib/fseeko.c (fseeko): Likewise.
44447         * lib/fseterr.c (fseterr): Likewise.
44448         * lib/fwritable.c (fwritable): Likewise.
44449         * lib/fwriting.c (fwriting): Likewise.
44450
44451 2008-04-26  Bruno Haible  <bruno@clisp.org>
44452
44453         * lib/stdio-impl.h: New file.
44454         * lib/fbufmode.c: Include stdio-impl.h.
44455         (fbufmode): Use fp_, remove redundant #defines.
44456         * lib/fflush.c: Include stdio-impl.h.
44457         (clear_ungetc_buffer): Remove redundant #defines.
44458         * lib/fpurge.c: Include stdio-impl.h.
44459         (fpurge): Remove redundant #defines.
44460         * lib/freadable.c: Include stdio-impl.h.
44461         (freadable): Remove redundant #defines.
44462         * lib/freadahead.c: Include stdio-impl.h.
44463         (freadahead): Remove redundant #defines.
44464         * lib/freading.c: Include stdio-impl.h.
44465         (freading): Remove redundant #defines.
44466         * lib/freadptr.c: Include stdio-impl.h.
44467         (freadptr): Remove redundant #defines.
44468         * lib/freadseek.c: Include stdio-impl.h.
44469         (freadptrinc): Remove redundant #defines.
44470         * lib/fseeko.c: Include stdio-impl.h.
44471         (rpl_fseeko): Remove redundant #defines.
44472         * lib/fseterr.c: Include stdio-impl.h.
44473         (fseterr): Remove redundant #defines.
44474         * lib/fwritable.c: Include stdio-impl.h.
44475         (fwritable: Remove redundant #defines.
44476         * lib/fwriting.c: Include stdio-impl.h.
44477         (fwriting): Remove redundant #defines.
44478         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44479         * modules/fflush (Files): Likewise.
44480         * modules/fpurge (Files): Likewise.
44481         * modules/freadable (Files): Likewise.
44482         * modules/freadahead (Files): Likewise.
44483         * modules/freading (Files): Likewise.
44484         * modules/freadptr (Files): Likewise.
44485         * modules/freadseek (Files): Likewise.
44486         * modules/fseeko (Files): Likewise.
44487         * modules/fseterr (Files): Likewise.
44488         * modules/fwritable (Files): Likewise.
44489         * modules/fwriting (Files): Likewise.
44490
44491 2008-04-26  Bruno Haible  <bruno@clisp.org>
44492
44493         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44494         restore_seek_optimization, update_fpos_cache): New functions, extracted
44495         from rpl_fflush.
44496         (rpl_fflush): Use them.
44497         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44498         (gl_REPLACE_FFLUSH): Use it.
44499
44500 2008-04-26  Bruno Haible  <bruno@clisp.org>
44501
44502         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44503         on Solaris.
44504         * tests/test-xstrtoimax.sh: Likewise.
44505         * tests/test-xstrtoumax.sh: Likewise.
44506         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44507
44508 2008-04-26  Bruno Haible  <bruno@clisp.org>
44509
44510         * modules/memchr-tests: New file.
44511         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44512
44513 2008-04-26  Eric Blake  <ebb9@byu.net>
44514             Bruno Haible  <bruno@clisp.org>
44515
44516         * lib/memchr.c: Include intprops.h.
44517         (__memchr): Optimize parallel detection of matching bytes. Rename local
44518         variables. Add explanatory comments.
44519
44520 2008-04-26  Bruno Haible  <bruno@clisp.org>
44521
44522         Fix module 'memchr', broken since 2000-10-28.
44523         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44524
44525 2008-04-26  Bruno Haible  <bruno@clisp.org>
44526
44527         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
44528         comments.
44529
44530 2008-04-25  Eric Blake  <ebb9@byu.net>
44531
44532         Use native fstatat on cygwin 1.7.0.
44533         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
44534         first.
44535
44536 2008-04-23  Eric Blake  <ebb9@byu.net>
44537
44538         Improve memchr2 performance.
44539         * lib/memchr2.c (memchr2): Further optimize parallel detection of
44540         NUL bytes.
44541         * modules/memchr2 (Depends-on): Use intprops.h.
44542
44543 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44544
44545         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
44546         an inline function instead of a CPP macro.  Patch by Ben Pfaff
44547         <blp@cs.stanford.edu>.
44548
44549 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44550
44551         * lib/arpa_inet.in.h: New file.
44552
44553         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
44554         (Makefile.am): Sed in substitute header file.
44555
44556         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
44557         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
44558
44559         * modules/inet_ntop (configure.ac): Use
44560         gl_ARPA_INET_MODULE_INDICATOR.
44561
44562         * modules/inet_pton (configure.ac): Use
44563         gl_ARPA_INET_MODULE_INDICATOR.
44564
44565 2008-04-22  Jim Meyering  <meyering@redhat.com>
44566
44567         * modules/verify (License): Re-license as LGPLv2+.
44568
44569 2008-04-22  Simon Josefsson  <simon@josefsson.org>
44570
44571         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
44572         parameter to void* as per POSIX standard (MinGW uses char*).
44573
44574 2008-04-21  Bruno Haible  <bruno@clisp.org>
44575
44576         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44577         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44578         Define to replacements if REPLACE_ISWCNTRL is 1.
44579         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
44580         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
44581         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
44582         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
44583         what it fixes.
44584         * doc/posix-functions/iswalpha.texi: Likewise.
44585         * doc/posix-functions/iswblank.texi: Likewise.
44586         * doc/posix-functions/iswcntrl.texi: Likewise.
44587         * doc/posix-functions/iswdigit.texi: Likewise.
44588         * doc/posix-functions/iswgraph.texi: Likewise.
44589         * doc/posix-functions/iswlower.texi: Likewise.
44590         * doc/posix-functions/iswprint.texi: Likewise.
44591         * doc/posix-functions/iswpunct.texi: Likewise.
44592         * doc/posix-functions/iswspace.texi: Likewise.
44593         * doc/posix-functions/iswupper.texi: Likewise.
44594         * doc/posix-functions/iswxdigit.texi: Likewise.
44595         Reported by Alain Guibert.
44596
44597 2008-04-21  Bruno Haible  <bruno@clisp.org>
44598
44599         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
44600         Patch by Alain Guibert.
44601
44602 2008-04-21  Bruno Haible  <bruno@clisp.org>
44603
44604         Fix test failures on mingw.
44605         * tests/test-xstrtol.c (print_no_progname): New function.
44606         (main): Install it in error_print_progname hook.
44607         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
44608         * tests/test-xstrtoimax.sh: Likewise.
44609         * tests/test-xstrtoumax.sh: Likewise.
44610
44611 2008-04-21  Bruno Haible  <bruno@clisp.org>
44612
44613         Fix test failure on mingw.
44614         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
44615
44616 2008-04-21  Bruno Haible  <bruno@clisp.org>
44617
44618         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44619         Actually assign a value.
44620
44621 2008-04-20  Bruno Haible  <bruno@clisp.org>
44622
44623         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44624         take 2.
44625         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44626         'canonicalize-lgpl' module is also used.
44627         * lib/canonicalize-lgpl.c: Undo last change.
44628         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44629
44630 2008-04-20  Bruno Haible  <bruno@clisp.org>
44631
44632         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44633         config.h. Provide _mkdir based fallback for mingw.
44634         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44635         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44636         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44637         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44638         rather than defining mkdir in config.h.
44639         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44640         (gl_SYS_STAT_H_DEFAULTS): New macro.
44641         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44642         HAVE_IO_H any more.
44643         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44644         HAVE_DECL_MKDIR and HAVE_IO_H.
44645
44646 2008-04-20  Bruno Haible  <bruno@clisp.org>
44647
44648         * lib/isapipe.c: Port to native Windows platforms.
44649
44650 2008-04-20  Bruno Haible  <bruno@clisp.org>
44651
44652         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44653
44654 2008-04-21  Eric Blake  <ebb9@byu.net>
44655
44656         Work around preprocessors that don't handle UINTMAX_MAX.
44657         * lib/memchr2.c (memchr2): Avoid embedded #if.
44658         Reported by Alain Guibert, fix suggested by Bruno Haible.
44659
44660 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44661
44662         * doc/posix-functions/strftime.texi (strftime): Explain better
44663         Windows incompatibility.  Suggested by Micah Cowan
44664         <micah@cowan.name>.
44665
44666 2008-04-20  Bruno Haible  <bruno@clisp.org>
44667
44668         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44669         unistr/u8-mblen.
44670
44671 2008-04-20  Bruno Haible  <bruno@clisp.org>
44672
44673         Fix test failure on platforms with non-GNU iconv.
44674         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44675         (U_TO_U8): Use it, rather than u16_to_u8.
44676         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44677         units at the end of the input string.
44678         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44679
44680 2008-04-20  Bruno Haible  <bruno@clisp.org>
44681
44682         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44683         when the resulting length is 0.
44684         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44685
44686 2008-04-20  Bruno Haible  <bruno@clisp.org>
44687
44688         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44689         works.
44690         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44691
44692 2008-04-20  Bruno Haible  <bruno@clisp.org>
44693
44694         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
44695         * modules/tsearch-tests (configure.ac): Test for initstate function.
44696
44697 2008-04-20  Bruno Haible  <bruno@clisp.org>
44698
44699         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
44700         for nlink_t if missing.
44701         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
44702
44703 2008-04-19  Bruno Haible  <bruno@clisp.org>
44704
44705         Work around snprintf bug on Linux libc5.
44706         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
44707         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44708         gl_SNPRINTF_SIZE1.
44709         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44710         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
44711         that test failed.
44712         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
44713         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
44714         * modules/snprintf (Files): Add m4/printf.m4.
44715         * modules/vsnprintf (Files): Likewise.
44716         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
44717         * doc/posix-functions/vsnprintf.texi: Likewise.
44718
44719 2008-04-19  Bruno Haible  <bruno@clisp.org>
44720
44721         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
44722         from 0.0058 to less than 10^-7.
44723
44724 2008-04-19  Bruno Haible  <bruno@clisp.org>
44725
44726         Fix rounding when a precision is given.
44727         * lib/vasnprintf.c (is_borderline): New function.
44728         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
44729         9...9x.
44730         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
44731         %e, %g.
44732         * tests/test-vasprintf-posix.c (test_function): Likewise.
44733         * tests/test-snprintf-posix.h (test_function): Likewise.
44734         * tests/test-sprintf-posix.h (test_function): Likewise.
44735         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
44736         * tests/test-printf-posix.h (test_function): Likewise.
44737         * tests/test-printf-posix.output: Update.
44738         Reported by John Darrington <john@darrington.wattle.id.au> via
44739         Ben Pfaff <blp@cs.stanford.edu>.
44740
44741 2008-04-18  Simon Josefsson  <simon@josefsson.org>
44742
44743         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
44744         Suggested by Bruno Haible <bruno@clisp.org>.
44745
44746 2008-04-17  Bruno Haible  <bruno@clisp.org>
44747
44748         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
44749         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
44750         implementation.
44751         Patch by Bruce Merry <bmerry@gmail.com>.
44752
44753 2008-04-17  Simon Josefsson  <simon@josefsson.org>
44754
44755         * doc/posix-functions/strftime.texi (strftime): Mention that %e
44756         doesn't work under Windows.
44757
44758 2008-04-16  Bruno Haible  <bruno@clisp.org>
44759
44760         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
44761         New macros.
44762         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
44763         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
44764         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
44765         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
44766         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
44767         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
44768         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
44769         macros.
44770         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
44771         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
44772         Northern Sotho, Uighur.
44773
44774 2008-04-16  Bruno Haible  <bruno@clisp.org>
44775
44776         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
44777         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
44778         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
44779         Reported by Daniel Bergström <daniel@octocode.com>.
44780
44781 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
44782             Bruno Haible  <bruno@clisp.org>
44783
44784         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
44785         function.
44786         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
44787         New functions, mostly extracted from gl_locale_name_default.
44788         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
44789
44790 2008-04-16  Eric Blake  <ebb9@byu.net>
44791
44792         Adjust strtod detection to catch glibc 2.7 bug.
44793         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
44794         Reported by John Gatewood Ham.
44795
44796 2008-04-16  Bruno Haible  <bruno@clisp.org>
44797
44798         Add tentative support for Linux libc5.
44799         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
44800         * lib/fpurge.c (fpurge): Likewise.
44801         * lib/freadable.c (freadable): Likewise.
44802         * lib/freadahead.c (freadahead): Likewise.
44803         * lib/freading.c (freading): Likewise.
44804         * lib/freadptr.c (freadptr): Likewise.
44805         * lib/freadseek.c (freadptrinc): Likewise.
44806         * lib/fseeko.c (rpl_fseeko): Likewise.
44807         * lib/fseterr.c (fseterr): Likewise.
44808         * lib/fwritable.c (fwritable): Likewise.
44809         * lib/fwriting.c (fwriting): Likewise.
44810         Reported by Alain Guibert <alguibert+bts@free.fr>.
44811
44812 2008-04-15  Bruno Haible  <bruno@clisp.org>
44813
44814         * modules/mathl (configure.ac): Define module indicator.
44815
44816 2008-04-15  Bruno Haible  <bruno@clisp.org>
44817
44818         * lib/logl.c (logl): Remove unused variables.
44819
44820 2008-04-15  Bruno Haible  <bruno@clisp.org>
44821
44822         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
44823         fails.
44824
44825 2008-04-15  Bruno Haible  <bruno@clisp.org>
44826
44827         * lib/trim.c (trim2): Fix argument of isspace() macro.
44828
44829 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
44830
44831         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
44832         to 0.
44833         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
44834
44835 2008-04-14  Bruno Haible  <bruno@clisp.org>
44836
44837         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
44838         AC_LANG_PROGRAM argument.
44839         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
44840         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
44841         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44842         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44843         * m4/math_h.m4 (gl_MATH_H): Likewise.
44844         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44845         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44846         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44847         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
44848         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44849         * m4/regex.m4 (gl_REGEX): Likewise.
44850         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
44851         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
44852         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44853         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
44854         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44855         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44856         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44857         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44858
44859 2008-04-14  Jim Meyering  <meyering@redhat.com>
44860
44861         test-strtod: fix typos: s/abs/fabs/
44862         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
44863
44864 2008-04-13  Bruno Haible  <bruno@clisp.org>
44865
44866         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
44867         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
44868         module is also used and while not building the reloc-wrapper.
44869
44870 2008-04-13  Bruno Haible  <bruno@clisp.org>
44871
44872         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
44873
44874 2008-04-13  Bruno Haible  <bruno@clisp.org>
44875
44876         Fix AIX compilation failure introduced on 2008-04-02.
44877         * tests/test-frexp.c (exp): Undefine before redefining.
44878         * tests/test-frexpl.c (exp): Likewise.
44879
44880 2008-04-13  Bruno Haible  <bruno@clisp.org>
44881
44882         Work around a HP-UX stdio bug.
44883         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
44884         * tests/test-ftello.c (main): Likewise.
44885         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
44886         * doc/posix-functions/ftello.texi: Likewise.
44887
44888 2008-04-13  Bruno Haible  <bruno@clisp.org>
44889
44890         Make test-signbit pass on HP-UX/hppa.
44891         * tests/test-signbit.c (minus_zerol): New variable.
44892         (test_signbitl): Use it.
44893
44894 2008-04-13  Bruno Haible  <bruno@clisp.org>
44895
44896         Make truncl work on OSF/1 4.0.
44897         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
44898         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44899         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44900         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
44901         HAVE_DECL_TRUNCL.
44902         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
44903         HAVE_DECL_TRUNCL.
44904         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
44905
44906 2008-04-13  Bruno Haible  <bruno@clisp.org>
44907
44908         * lib/unictype.h: Remove trailing comma from enumeration definitions.
44909
44910 2008-04-13  Bruno Haible  <bruno@clisp.org>
44911
44912         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
44913         expression, so as to avoid HP-UX 11 cc compiler bug.
44914
44915 2008-04-13  Bruno Haible  <bruno@clisp.org>
44916
44917         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
44918
44919 2008-04-13  Bruno Haible  <bruno@clisp.org>
44920
44921         * lib/git-merge-changelog.c: Remove empty declaration outside of
44922         functions.
44923
44924 2008-04-13  Bruno Haible  <bruno@clisp.org>
44925
44926         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
44927
44928 2008-04-13  Bruno Haible  <bruno@clisp.org>
44929
44930         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
44931         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
44932         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
44933         also if it exists but lacks definitions of the SHUT_* macros.
44934         * modules/sys_socket (Description): Update.
44935         Reported by Elbert Pol <e.pol@chello.nl>.
44936
44937 2008-04-13  Bruno Haible  <bruno@clisp.org>
44938
44939         * lib/localcharset.c (OS2): Don't redefine if already defined.
44940         Reported by Elbert Pol <e.pol@chello.nl>.
44941
44942 2008-04-13  Bruno Haible  <bruno@clisp.org>
44943
44944         * lib/binary-io.h [__EMX__]: Include <io.h>.
44945         Reported by Elbert Pol <e.pol@chello.nl>.
44946
44947 2008-04-12  Bruno Haible  <bruno@clisp.org>
44948
44949         * lib/fpucw.h: Enable the definitions also for x86_64.
44950         Needed for NetBSD/x86_64.
44951         Reported by Thomas Klausner <tk@giga.or.at>.
44952
44953 2008-04-12  Bruno Haible  <bruno@clisp.org>
44954
44955         * tests/test-strtod.c: Include isnand.h.
44956         (main): Use isnand instead of isnan.
44957         Reported by Jim Meyering.
44958
44959 2008-04-12  Bruno Haible  <bruno@clisp.org>
44960
44961         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
44962         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44963
44964 2008-04-12  Jim Meyering  <meyering@redhat.com>
44965
44966         * m4/math_h.m4 (gl_MATH_H): Fix typos.
44967
44968 2008-04-12  Bruno Haible  <bruno@clisp.org>
44969
44970         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
44971         Reported by Elbert Pol <e.pol@chello.nl>.
44972
44973 2008-04-12  Eric Blake  <ebb9@byu.net>
44974
44975         Work around Solaris 10 math.h bug.
44976         * m4/math_h.m4 (gl_MATH_H): Check for bug.
44977         (gl_MATH_H_DEFAULTS): Set up default.
44978         * modules/math (Makefile.am): Replace new indicators.
44979         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
44980         * tests/test-math.c (main): Test this.
44981         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
44982         * doc/posix-headers/math.texi (math.h): Mention bug.
44983         Reported by Nelson H. F. Beebe and Jim Meyering.
44984
44985 2008-04-11  Bruno Haible  <bruno@clisp.org>
44986
44987         Adapt to future versions of Apple GCC.
44988         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
44989         Reported by Peter O'Gorman <peter@pogma.com>.
44990
44991 2008-04-11  Bruno Haible  <bruno@clisp.org>
44992
44993         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
44994
44995 2008-04-11  Bruno Haible  <bruno@clisp.org>
44996
44997         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
44998
44999         * modules/getaddrinfo-tests (Makefile.am): Define
45000         test_getaddrinfo_LDADD.
45001
45002 2008-04-11  Bruno Haible  <bruno@clisp.org>
45003
45004         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
45005         (init): Fix syntax error.
45006         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
45007         is declared.
45008
45009 2008-04-11  Bruno Haible  <bruno@clisp.org>
45010
45011         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
45012         * modules/glob (Depends-on): Add stdbool.
45013
45014 2008-04-11  Bruno Haible  <bruno@clisp.org>
45015
45016         * lib/trim.c: Include <string.h>.
45017
45018 2008-04-11  Eric Blake  <ebb9@byu.net>
45019
45020         Avoid compile failure on OS/2.
45021         * lib/regex_internal.h (internal_function): Disable optimization
45022         on OS/2 (__EMX__), where it caused compiler error.
45023         Reported by Elbert Pol.
45024
45025 2008-04-11  Bruno Haible  <bruno@clisp.org>
45026
45027         Flush the standard error stream before aborting. Needed on mingw.
45028         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
45029         * tests/test-array_list.c (ASSERT): Likewise.
45030         * tests/test-array_oset.c (ASSERT): Likewise.
45031         * tests/test-avltree_list.c (ASSERT): Likewise.
45032         * tests/test-avltree_oset.c (ASSERT): Likewise.
45033         * tests/test-avltreehash_list.c (ASSERT): Likewise.
45034         * tests/test-binary-io.c (ASSERT): Likewise.
45035         * tests/test-byteswap.c (ASSERT): Likewise.
45036         * tests/test-c-ctype.c (ASSERT): Likewise.
45037         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
45038         * tests/test-c-strcasestr.c (ASSERT): Likewise.
45039         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
45040         * tests/test-c-strstr.c (ASSERT): Likewise.
45041         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
45042         * tests/test-canonicalize.c (ASSERT): Likewise.
45043         * tests/test-carray_list.c (ASSERT): Likewise.
45044         * tests/test-ceilf1.c (ASSERT): Likewise.
45045         * tests/test-ceilf2.c (ASSERT): Likewise.
45046         * tests/test-ceill.c (ASSERT): Likewise.
45047         * tests/test-count-one-bits.c (ASSERT): Likewise.
45048         * tests/test-fbufmode.c (ASSERT): Likewise.
45049         * tests/test-fflush2.c (ASSERT): Likewise.
45050         * tests/test-floorf1.c (ASSERT): Likewise.
45051         * tests/test-floorf2.c (ASSERT): Likewise.
45052         * tests/test-floorl.c (ASSERT): Likewise.
45053         * tests/test-fopen.c (ASSERT): Likewise.
45054         * tests/test-fpending.c (ASSERT): Likewise.
45055         * tests/test-fprintf-posix.c (ASSERT): Likewise.
45056         * tests/test-fpurge.c (ASSERT): Likewise.
45057         * tests/test-freadable.c (ASSERT): Likewise.
45058         * tests/test-freadahead.c (ASSERT): Likewise.
45059         * tests/test-freading.c (ASSERT): Likewise.
45060         * tests/test-freadptr.c (ASSERT): Likewise.
45061         * tests/test-freadptr2.c (ASSERT): Likewise.
45062         * tests/test-freadseek.c (ASSERT): Likewise.
45063         * tests/test-freopen.c (ASSERT): Likewise.
45064         * tests/test-frexp.c (ASSERT): Likewise.
45065         * tests/test-frexpl.c (ASSERT): Likewise.
45066         * tests/test-fseek.c (ASSERT): Likewise.
45067         * tests/test-fseeko.c (ASSERT): Likewise.
45068         * tests/test-fstrcmp.c (ASSERT): Likewise.
45069         * tests/test-ftell.c (ASSERT): Likewise.
45070         * tests/test-ftello.c (ASSERT): Likewise.
45071         * tests/test-func.c (ASSERT): Likewise.
45072         * tests/test-fwritable.c (ASSERT): Likewise.
45073         * tests/test-fwriting.c (ASSERT): Likewise.
45074         * tests/test-getdelim.c (ASSERT): Likewise.
45075         * tests/test-getline.c (ASSERT): Likewise.
45076         * tests/test-i-ring.c (ASSERT): Likewise.
45077         * tests/test-iconv-utf.c (ASSERT): Likewise.
45078         * tests/test-iconv.c (ASSERT): Likewise.
45079         * tests/test-isfinite.c (ASSERT): Likewise.
45080         * tests/test-isnand.c (ASSERT): Likewise.
45081         * tests/test-isnanf.c (ASSERT): Likewise.
45082         * tests/test-isnanl.h (ASSERT): Likewise.
45083         * tests/test-ldexpl.c (ASSERT): Likewise.
45084         * tests/test-linked_list.c (ASSERT): Likewise.
45085         * tests/test-linkedhash_list.c (ASSERT): Likewise.
45086         * tests/test-localename.c (ASSERT): Likewise.
45087         * tests/test-lseek.c (ASSERT): Likewise.
45088         * tests/test-mbscasecmp.c (ASSERT): Likewise.
45089         * tests/test-mbscasestr1.c (ASSERT): Likewise.
45090         * tests/test-mbscasestr2.c (ASSERT): Likewise.
45091         * tests/test-mbscasestr3.c (ASSERT): Likewise.
45092         * tests/test-mbscasestr4.c (ASSERT): Likewise.
45093         * tests/test-mbschr.c (ASSERT): Likewise.
45094         * tests/test-mbscspn.c (ASSERT): Likewise.
45095         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
45096         * tests/test-mbspbrk.c (ASSERT): Likewise.
45097         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
45098         * tests/test-mbsrchr.c (ASSERT): Likewise.
45099         * tests/test-mbsspn.c (ASSERT): Likewise.
45100         * tests/test-mbsstr1.c (ASSERT): Likewise.
45101         * tests/test-mbsstr2.c (ASSERT): Likewise.
45102         * tests/test-mbsstr3.c (ASSERT): Likewise.
45103         * tests/test-memchr2.c (ASSERT): Likewise.
45104         * tests/test-memmem.c (ASSERT): Likewise.
45105         * tests/test-open.c (ASSERT): Likewise.
45106         * tests/test-printf-frexp.c (ASSERT): Likewise.
45107         * tests/test-printf-frexpl.c (ASSERT): Likewise.
45108         * tests/test-printf-posix.c (ASSERT): Likewise.
45109         * tests/test-quotearg.c (ASSERT): Likewise.
45110         * tests/test-rbtree_list.c (ASSERT): Likewise.
45111         * tests/test-rbtree_oset.c (ASSERT): Likewise.
45112         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
45113         * tests/test-round1.c (ASSERT): Likewise.
45114         * tests/test-roundf1.c (ASSERT): Likewise.
45115         * tests/test-roundl.c (ASSERT): Likewise.
45116         * tests/test-signbit.c (ASSERT): Likewise.
45117         * tests/test-sleep.c (ASSERT): Likewise.
45118         * tests/test-snprintf-posix.c (ASSERT): Likewise.
45119         * tests/test-snprintf.c (ASSERT): Likewise.
45120         * tests/test-sprintf-posix.c (ASSERT): Likewise.
45121         * tests/test-stat-time.c (ASSERT): Likewise.
45122         * tests/test-strcasestr.c (ASSERT): Likewise.
45123         * tests/test-strerror.c (ASSERT): Likewise.
45124         * tests/test-striconv.c (ASSERT): Likewise.
45125         * tests/test-striconveh.c (ASSERT): Likewise.
45126         * tests/test-striconveha.c (ASSERT): Likewise.
45127         * tests/test-strsignal.c (ASSERT): Likewise.
45128         * tests/test-strstr.c (ASSERT): Likewise.
45129         * tests/test-strtod.c (ASSERT): Likewise.
45130         * tests/test-trunc1.c (ASSERT): Likewise.
45131         * tests/test-trunc2.c (ASSERT): Likewise.
45132         * tests/test-truncf1.c (ASSERT): Likewise.
45133         * tests/test-truncf2.c (ASSERT): Likewise.
45134         * tests/test-truncl.c (ASSERT): Likewise.
45135         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
45136         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
45137         * tests/test-vasnprintf.c (ASSERT): Likewise.
45138         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
45139         * tests/test-vasprintf.c (ASSERT): Likewise.
45140         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
45141         * tests/test-vprintf-posix.c (ASSERT): Likewise.
45142         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
45143         * tests/test-vsnprintf.c (ASSERT): Likewise.
45144         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
45145         * tests/test-wcwidth.c (ASSERT): Likewise.
45146         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
45147         * tests/test-xprintf-posix.c (ASSERT): Likewise.
45148         * tests/test-xvasprintf.c (ASSERT): Likewise.
45149         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
45150         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
45151         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
45152         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
45153         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
45154         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
45155         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
45156         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
45157         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
45158         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
45159         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
45160         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
45161         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
45162         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
45163         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
45164         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
45165         * tests/unictype/test-block_list.c (ASSERT): Likewise.
45166         * tests/unictype/test-block_of.c (ASSERT): Likewise.
45167         * tests/unictype/test-block_test.c (ASSERT): Likewise.
45168         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
45169         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
45170         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
45171         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
45172         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
45173         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
45174         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
45175         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
45176         * tests/unictype/test-combining.c (ASSERT): Likewise.
45177         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
45178         * tests/unictype/test-digit.c (ASSERT): Likewise.
45179         * tests/unictype/test-mirror.c (ASSERT): Likewise.
45180         * tests/unictype/test-numeric.c (ASSERT): Likewise.
45181         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
45182         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
45183         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
45184         * tests/unictype/test-scripts.c (ASSERT): Likewise.
45185         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
45186         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
45187         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
45188         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
45189         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
45190         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
45191         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
45192         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
45193         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
45194         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
45195         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
45196         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
45197         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
45198         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
45199         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
45200         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
45201         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
45202         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
45203         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
45204         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
45205         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
45206         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
45207         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
45208         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
45209         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
45210         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
45211         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
45212         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
45213         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
45214         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
45215         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
45216         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
45217         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
45218         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
45219         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
45220         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
45221         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
45222         Reported by Eric Blake.
45223
45224 2008-04-11  Bruno Haible  <bruno@clisp.org>
45225
45226         * lib/wchar.in.h: Tweak comment.
45227
45228 2008-04-11  Bruno Haible  <bruno@clisp.org>
45229
45230         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
45231         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
45232         gl_COMMON.
45233         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
45234
45235 2008-04-11  Bruno Haible  <bruno@clisp.org>
45236
45237         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
45238
45239 2008-04-11  Simon Josefsson  <simon@josefsson.org>
45240
45241         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
45242         of attempting to use non-existing /dev/*random.  Based on patch
45243         from Adam Strzelecki <ono@java.pl> in
45244         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
45245
45246 2008-04-08  Bruno Haible  <bruno@clisp.org>
45247
45248         Add tentative support for emx+gcc.
45249         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
45250         * lib/fpurge.c (fpurge): Likewise.
45251         * lib/freadable.c (freadable): Likewise.
45252         * lib/freadahead.c (freadahead): Likewise.
45253         * lib/freading.c (freading): Likewise.
45254         * lib/freadptr.c (freadptr): Likewise.
45255         * lib/freadseek.c (freadptrinc): Likewise.
45256         * lib/fseeko.c (rpl_fseeko): Likewise.
45257         * lib/fseterr.c (fseterr): Likewise.
45258         * lib/fwritable.c (fwritable): Likewise.
45259         * lib/fwriting.c (fwriting): Likewise.
45260         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
45261
45262 2008-04-09  Eric Blake  <ebb9@byu.net>
45263
45264         Avoid some autoconf warnings.
45265         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
45266         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
45267         * m4/afs.m4 (gl_AFS): Likewise.
45268         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
45269         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
45270         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45271         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
45272         (gl_INTEGER_TYPE_SUFFIX): Likewise.
45273         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
45274         (AC_CHECK_DECLS_ONCE): Likewise.
45275         Rename file...
45276         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
45277         gnulib-tool requires autoconf 2.59 or better.
45278         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
45279
45280 2008-04-08  Eric Blake  <ebb9@byu.net>
45281
45282         Use 'git describe --match' if present (added in git 1.5.5).
45283         * build-aux/git-version-gen: Limit result to tags that match 'v*'
45284         if possible.
45285
45286 2008-04-08  Bruno Haible  <bruno@clisp.org>
45287
45288         Add tentative support for OpenServer.
45289         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
45290         _ptr, _cnt.
45291         * lib/fpurge.c (fpurge): Likewise.
45292         * lib/freadable.c (freadable): Likewise.
45293         * lib/freadahead.c (freadahead): Likewise.
45294         * lib/freading.c (freading): Likewise.
45295         * lib/freadptr.c (freadptr): Likewise.
45296         * lib/freadseek.c (freadptrinc): Likewise.
45297         * lib/fseeko.c (rpl_fseeko): Likewise.
45298         * lib/fseterr.c (fseterr): Likewise.
45299         * lib/fwritable.c (fwritable): Likewise.
45300         * lib/fwriting.c (fwriting): Likewise.
45301         Reported by Roger Cornelius <rac@tenzing.org> and
45302         Brian K. White <brian@aljex.com>.
45303
45304 2008-04-06  Jim Meyering  <meyering@redhat.com>
45305
45306         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
45307
45308 2008-04-06  Bruno Haible  <bruno@clisp.org>
45309
45310         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45311         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45312         * tests/test-printf-posix.sh: Likewise.
45313         * tests/test-vfprintf-posix.sh: Likewise.
45314         * tests/test-vprintf-posix.sh: Likewise.
45315         * tests/test-xprintf-posix.sh: Likewise.
45316
45317 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45318
45319         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45320         hide error from 'ls', needed on OS/2.
45321         Report by Elbert Pol <elbert.pol@gmail.com>.
45322
45323 2008-04-04  Eric Blake  <ebb9@byu.net>
45324
45325         Make test-fseeko.c failures meaningful.
45326         * tests/test-fseeko.c: Print line number on failure.
45327         * tests/test-fseek.c: Likewise.
45328         Reported by Nelson H. F. Beebe.
45329
45330         Improve strtod bug detection check.
45331         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45332         required for Solaris 10.
45333         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45334
45335 2008-04-04  Bruno Haible  <bruno@clisp.org>
45336
45337         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45338         by m4/setenv.m4.
45339
45340 2008-04-03  Eric Blake  <ebb9@byu.net>
45341
45342         Ensure sane .version contents.
45343         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45344         version string.
45345         * build-aux/git-version-gen: Improve documentation.
45346
45347         Make GNU make output nicer.
45348         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45349         MAKECMDGOALS to enforce message for all command line targets.  Set
45350         srcdir for use in maint.mk.
45351
45352         Another maintainer tweak.
45353         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45354         a target that regenerates version.
45355
45356 2008-04-03  Jim Meyering  <meyering@redhat.com>
45357
45358         vc-list-files: don't cause coreutils "make po-check" failure
45359         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45360
45361 2008-04-03  Eric Blake  <ebb9@byu.net>
45362
45363         Allow VPATH usage of vc-list-files.
45364         * build-aux/vc-list-files (scriptversion): Add timestamp.
45365         (options): Add --help, --version, -C.
45366         (CVS): Support installed cvsu.
45367
45368 2008-04-02  Bruno Haible  <bruno@clisp.org>
45369
45370         Avoid some "statement with no effect" warnings from gcc.
45371         * tests/test-wctype.c (main): Explicitly ignore unused values.
45372         Reported by Jim Meyering.
45373
45374 2008-04-02  Jim Meyering  <meyering@redhat.com>
45375
45376         Avoid some warnings from "gcc -Wshadow".
45377         * tests/test-frexp.c (exp): Define to a different identifier.
45378         * tests/test-frexpl.c (exp): Likewise.
45379
45380 2008-04-03  Jim Meyering  <meyering@redhat.com>
45381
45382         bootstrap: remove dangling *.[ch] symlinks from lib
45383         * build-aux/bootstrap [dangling symlink removal]: Move find's
45384         -depth option to precede all others, to avoid a warning.
45385         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45386
45387 2008-04-02  Bruno Haible  <bruno@clisp.org>
45388
45389         Avoid some warnings from "gcc -Wshadow".
45390         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45391         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45392         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45393         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45394         Reported by Jim Meyering.
45395
45396 2008-04-01  Bruno Haible  <bruno@clisp.org>
45397
45398         Fix test to work on IRIX 6.5 with cc.
45399         * tests/test-math.c (numeric_equal): New function.
45400         (main): Use it.
45401
45402 2008-04-01  Bruno Haible  <bruno@clisp.org>
45403
45404         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45405
45406 2008-04-01  Bruno Haible  <bruno@clisp.org>
45407
45408         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
45409         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45410         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
45411         (Depends-on): Remove math.
45412
45413         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45414         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45415         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45416         (Depends-on): Remove math.
45417
45418         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45419         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45420         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45421         (Depends-on): Remove math.
45422         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45423         (Depends-on): Remove math.
45424
45425         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45426         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45427         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45428         (Depends-on): Remove math.
45429         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45430         (Depends-on): Remove math.
45431
45432         * tests/test-round1.c: Include nan.h.
45433         (main): Use NaNd instead of NAN.
45434         * modules/round-tests (Files): Add tests/nan.h.
45435
45436         * tests/test-trunc1.c: Include nan.h.
45437         (main): Use NaNd instead of NAN.
45438         * modules/trunc-tests (Files): Add tests/nan.h.
45439
45440         * tests/test-roundf1.c: Include nan.h.
45441         (main): Use NaNf instead of NAN.
45442         * modules/roundf-tests (Files): Add tests/nan.h.
45443
45444         * tests/test-truncf1.c: Include nan.h.
45445         (main): Use NaNf instead of NAN.
45446         * modules/truncf-tests (Files): Add tests/nan.h.
45447
45448         * tests/test-ceilf1.c: Include nan.h.
45449         (main): Use NaNf instead of NAN.
45450         * modules/ceilf-tests (Files): Add tests/nan.h.
45451
45452         * tests/test-floorf1.c: Include nan.h.
45453         (main): Use NaNf instead of NAN.
45454         * modules/floorf-tests (Files): Add tests/nan.h.
45455
45456         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45457         (main): Use NaNf instead of NAN.
45458         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45459
45460         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45461         (main): Use NaNd instead of NAN.
45462         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45463
45464         * tests/test-frexp.c: Include nan.h.
45465         (main): Use NaNd instead of NAN.
45466         * modules/frexp-tests (Files): Add tests/nan.h.
45467
45468         * lib/isnan.c: Don't include <math.h>.
45469         (FUNC): Don't use NAN macro.
45470         * modules/isnand-nolibm (Depends-on): Remove math.
45471         * modules/isnanf-nolibm (Depends-on): Remove math.
45472         * modules/isnanl (Depends-on): Remove math.
45473         * modules/isnanl-nolibm (Depends-on): Remove math.
45474
45475         * tests/nan.h: New file.
45476
45477 2008-04-01  Eric Blake  <ebb9@byu.net>
45478
45479         Fix typos.
45480         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45481         values to be the right type.
45482
45483         For now, cater to gnulib strtod inaccuracies.
45484         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45485         fractional results.  While not as nice from a QoI perspective, it
45486         is a quicker patch than correctly implementing decimal to binary
45487         rounding.
45488
45489 2008-03-31  Eric Blake  <ebb9@byu.net>
45490
45491         Guarantee a definition of NAN.
45492         * lib/math.in.h (NAN): Define if missing.
45493         * tests/test-math.c (main): Test it.
45494         * doc/posix-headers/math.texi (math.h): Document this.
45495         * lib/isnan.c (rpl_isnand): Use it.
45496         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45497         * tests/test-floorf1.c (NaN): Likewise.
45498         * tests/test-frexp.c (NaN): Likewise.
45499         * tests/test-isnand.c (NaN): Likewise.
45500         * tests/test-isnanf.c (NaN): Likewise.
45501         * tests/test-round1.c (NaN): Likewise.
45502         * tests/test-roundf1.c (NaN): Likewise.
45503         * tests/test-snprintf-posix.h (NaN): Likewise.
45504         * tests/test-sprintf-posix.h (NaN): Likewise.
45505         * tests/test-trunc1.c (NaN): Likewise.
45506         * tests/test-truncf1.c (NaN): Likewise.
45507         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45508         * tests/test-vasprintf-posix.c (NaN): Likewise.
45509         * modules/isnand-nolibm (Depends-on): Add math.
45510         * modules/isnanf-nolibm (Depends-on): Likewise.
45511         * modules/isnanl (Depends-on): Likewise.
45512         * modules/isnanl-nolibm (Depends-on): Likewise.
45513         * modules/snprintf-posix-tests (Depends-on): Likewise.
45514         * modules/sprintf-posix-tests (Depends-on): Likewise.
45515         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45516         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45517         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45518         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45519
45520 2008-03-31  Bruno Haible  <bruno@clisp.org>
45521
45522         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45523         * doc/posix-functions/strtod.texi: Likewise.
45524
45525 2008-03-31  Bruno Haible  <bruno@clisp.org>
45526
45527         * tests/test-strtod.c (main): Don't use C99 syntax.
45528
45529 2008-03-31  Bruno Haible  <bruno@clisp.org>
45530
45531         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
45532         Reported by Eric Blake.
45533
45534 2008-03-31  Jim Meyering  <meyering@redhat.com>
45535
45536         Don't compare actual signbit return values.
45537         * tests/test-strtod.c (main): Rather, compare only their
45538         zero/non-zero nature.
45539
45540 2008-03-31  Eric Blake  <ebb9@byu.net>
45541
45542         More strtod documentation.
45543         * doc/posix-functions/strtod.texi (strtod): Interpret more test
45544         failures as distinct bugs.
45545
45546 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45547
45548         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
45549         Problem reported by Erik Benada in
45550         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
45551
45552 2008-03-30  Bruno Haible  <bruno@clisp.org>
45553
45554         * tests/test-strtod.c: Add comments about which assertion fails on which
45555         platform.
45556         * doc/posix-functions/strtod.texi: Add info about many more platforms.
45557
45558 2008-03-30  Eric Blake  <ebb9@byu.net>
45559
45560         Test signbit behavior on zeros.
45561         * tests/test-signbit.c (test_signbitf): Add tests for zero.
45562         (test_signbitd, test_signbitl): Likewise.
45563
45564         More strtod touchups.
45565         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
45566         sign of negative underflow, for now.  Use .5, not .1.
45567         * doc/posix-functions/strtod.texi (strtod): Mention these
45568         limitations.
45569         Reported by Jim Meyering.
45570
45571 2008-03-30  Bruno Haible  <bruno@clisp.org>
45572
45573         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
45574         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
45575
45576 2008-03-30  Bruno Haible  <bruno@clisp.org>
45577
45578         Avoid failure when attempting to return empty iconv results on some
45579         platforms.
45580         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
45581         allocation, don't report ENOMEM when the resulting string is empty.
45582
45583 2008-03-30  Bruno Haible  <bruno@clisp.org>
45584
45585         Fix buffer overrun.
45586         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
45587         Don't consider the width for tmp_length. Check count against tmp_length
45588         before doing the padding. Ensure enough allocation during padding.
45589
45590 2008-03-30  Eric Blake  <ebb9@byu.net>
45591
45592         strtod touchups.
45593         * lib/strtod.c (strtod): Avoid compiler warnings.
45594         Reported by Jim Meyering.
45595
45596 2008-03-30  Bruno Haible  <bruno@clisp.org>
45597
45598         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
45599         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
45600         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
45601         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
45602         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
45603         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
45604         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
45605         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
45606
45607         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
45608         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
45609         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
45610         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
45611         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
45612         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
45613         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
45614         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45615
45616         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
45617         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45618         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45619         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45620         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45621         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45622         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45623         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45624
45625         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45626         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45627
45628         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45629         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45630
45631         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45632         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45633
45634         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45635         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45636         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45637
45638         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45639         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45640         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45641
45642         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45643         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45644         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45645
45646         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45647         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45648         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45649
45650         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45651         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45652         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45653         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45654         (Depends-on): Add EOVERFLOW.
45655         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45656         (Depends-on): Add EOVERFLOW.
45657         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45658         (Depends-on): Add EOVERFLOW.
45659         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45660         (Depends-on): Add EOVERFLOW.
45661         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45662         (Depends-on): Add EOVERFLOW.
45663         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45664         (Depends-on): Add EOVERFLOW.
45665         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45666         (Depends-on): Add EOVERFLOW.
45667         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45668         (Depends-on): Add EOVERFLOW.
45669
45670         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45671         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45672         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45673
45674         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45675         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45676         * modules/snprintf (Depends-on): Add EOVERFLOW.
45677
45678         * lib/poll.c (EOVERFLOW): Remove fallback.
45679         * modules/poll (Depends-on): Add EOVERFLOW.
45680
45681         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45682         * modules/getugroups (Depends-on): Add EOVERFLOW.
45683
45684         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45685         * modules/getdelim (Depends-on): Add EOVERFLOW.
45686
45687         * lib/ftell.c (EOVERFLOW): Remove fallback.
45688         * modules/ftell (Depends-on): Add EOVERFLOW.
45689
45690         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45691         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
45692         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
45693
45694         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
45695
45696         * modules/EOVERFLOW-tests: New file.
45697         * tests/test-EOVERFLOW.c: New file.
45698
45699         * modules/EOVERFLOW: New file.
45700         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
45701
45702 2008-03-30  Bruno Haible  <bruno@clisp.org>
45703
45704         Fix bug introduced on 2007-06-10.
45705         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
45706         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
45707
45708 2008-03-30  Bruno Haible  <bruno@clisp.org>
45709
45710         Improve freadseek's efficiency after ungetc.
45711         * lib/freadseek.c: Include freadahead.h.
45712         (freadptrinc): New function, extracted from freadseek.
45713         (freadseek): Use it in a loop. Use freadahead to determine the number
45714         of loop iterations.
45715         * modules/freadseek (Depends-on): Add freadahead.
45716         (configure.ac): Require AC_C_INLINE.
45717
45718 2008-03-30  Bruno Haible  <bruno@clisp.org>
45719
45720         * lib/freadseek.c (freadseek): Don't ignore the return value of
45721         freadptr.
45722
45723 2008-03-29  Eric Blake  <ebb9@byu.net>
45724
45725         Add hex float support.
45726         * modules/strtod (Depends-on): Add c-ctype.
45727         (Link): Mention POW_LIB.
45728         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
45729         whitespace between 'e' and exponent.
45730         * tests/test-strtod.c (main): Enable hex float tests.
45731         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
45732         now provides.
45733
45734         Document various strtod bugs, with some fixes.
45735         * doc/posix-functions/strtod.texi (strtod): Document bugs with
45736         "-0x", "inf", "nan", and hex constants.
45737         * doc/posix-functions/atof.texi (atof): Likewise.
45738         * modules/stdlib (Makefile.am): Support strtod.
45739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45740         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
45741         detect additional strtod bugs.
45742         * lib/stdlib.in.h (rpl_strtod): Add declarations.
45743         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
45744         bool where appropriate.  Parse 'inf' and 'nan'.
45745         * tests/test-strtod.c: New file.
45746         * modules/strtod (Depends-on): Add stdbool, stdlib.
45747         (configure.ac): Turn on module indicator.
45748         * modules/strtod-tests: New module.
45749
45750 2008-03-29  Eric Blake  <ebb9@byu.net>
45751
45752         Fix ftell on mingw.
45753         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
45754         * modules/ftell-tests (Depends-on): Add binary-io.
45755         * modules/ftello-tests (Depends-on): Likewise.
45756         * tests/test-ftell.c (main): Enhance test to cover behavior after
45757         ungetc.  Enforce binary mode.
45758         * tests/test-ftello.c (main): Likewise.
45759
45760         Pass test-freadseek on cygwin.
45761         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
45762         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
45763         ungetc buffer.
45764
45765         * tests/test-fflush2.c (main): Fix typo.
45766
45767 2008-03-29  Bruno Haible  <bruno@clisp.org>
45768
45769         * tests/test-fflush2.c (main): Temporarily disable the contents of
45770         this test.
45771         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
45772         Reported by Eric Blake.
45773
45774 2008-03-28  Simon Josefsson  <simon@josefsson.org>
45775
45776         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
45777         (GC_SHA224_DIGEST_SIZE): Add.
45778
45779         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
45780         (gc_hash_digest_length): Likewise.
45781         (gc_hash_buffer): Likewise.
45782
45783 2008-03-25  Bruno Haible  <bruno@clisp.org>
45784
45785         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
45786         detail which gettext release to use.
45787         Reported by Simon Josefsson.
45788
45789 2008-03-26  Jim Meyering  <meyering@redhat.com>
45790
45791         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
45792         * modules/gnumakefile (clean-GNUmakefile): Also, use
45793         test ... && ... || : syntax rather than if-then ... fi.
45794
45795         gnumakefile: Don't double-quote-expand $(VPATH) value.
45796         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
45797
45798 2008-03-24  Eric Blake  <ebb9@byu.net>
45799
45800         Alter GNUmakefile to install into top directory.
45801         * modules/maintainer-makefile: Split, and add dependency...
45802         * modules/gnumakefile: to this new module.
45803         * build-aux/GNUmakefile: Move...
45804         * top/GNUmakefile: ...here.
45805         * build-aux/maint.mk: Move...
45806         * top/maint.mk: ...here.
45807         * MODULES.html.sh (Support for maintaining...): Document new
45808         module.
45809
45810 2008-03-23  Bruno Haible  <bruno@clisp.org>
45811
45812         * gnulib-tool: New options --vc-files, --no-vc-files.
45813         (func_usage): Document them.
45814         (vc_files): New variable.
45815         (func_import): Consider vc_files.
45816         (func_create_testdir): Set vc_files to empty.
45817         Suggested by Jim Meyering and Karl Berry.
45818
45819 2008-03-23  Bruno Haible  <bruno@clisp.org>
45820
45821         Fix regex compilation error on HP-UX 11.
45822         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
45823         * modules/regex (Files): Add m4/mbstate_t.m4.
45824         Reported by Ton Voon <ton.voon@altinity.com>.
45825
45826 2008-03-23  Bruno Haible  <bruno@clisp.org>
45827
45828         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
45829
45830 2008-03-23  Eric Blake  <ebb9@byu.net>
45831             Bruno Haible  <bruno@clisp.org>
45832
45833         Install files from top/ in the destination directory.
45834         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45835         augmentation also for the files from top/.
45836         (func_import, func_create_testdir): Rewrite file names:
45837         top/filename -> filename.
45838
45839 2008-03-23  Bruno Haible  <bruno@clisp.org>
45840
45841         Tweak "gnulib --version" output.
45842         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
45843
45844 2008-03-23  Bruno Haible  <bruno@clisp.org>
45845
45846         Tweak "gnulib --version" output.
45847         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
45848         rather than contents of ChangeLog, when possible.
45849
45850 2008-03-21  Eric Blake  <ebb9@byu.net>
45851
45852         More --version tweaks.
45853         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
45854         date of last ChangeLog entry.
45855
45856 2008-03-21  Jim Meyering  <meyering@redhat.com>
45857
45858         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
45859
45860 2008-03-20  Eric Blake  <ebb9@byu.net>
45861
45862         VPATH fix.
45863         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
45864
45865 2008-03-20  Simon Josefsson  <simon@josefsson.org>
45866
45867         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
45868         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
45869
45870 2008-03-20  Eric Blake  <ebb9@byu.net>
45871
45872         Sync GNUmakefile with coreutils.
45873         * build-aux/GNUmakefile (have-Makefile): Rename...
45874         (_have-Makefile): ...to this, for namespace consideration.
45875         (GNUmakefile.cfg): Include, if present.
45876         (_autoreconf): Define a default.
45877         (_is-dist-target): New rule for rebuilds to pick up intra-release
45878         version.
45879         (maint-cfg.mk): Rename...
45880         (cfg.mk): ...to this.
45881
45882 2008-03-18  Jim Meyering  <meyering@redhat.com>
45883
45884         New script and module: mktempd
45885         * MODULES.html.sh (maint+release support): Add mktempd.
45886         * build-aux/mktempd: New file.
45887         * modules/mktempd: New file.
45888
45889 2008-03-15  Jim Meyering  <meyering@redhat.com>
45890
45891         Undo last change.
45892         * lib/sha1.c, lib/md5.c: 63 != ~63.
45893         Reported by Andreas Schwab.
45894
45895         sha1.c, md5.c: Hoist a redundant expression.
45896         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
45897         "ctx->buflen" only once, before calling *_process_block.
45898         * lib/md5.c (md5_process_bytes): Likewise.
45899
45900 2008-03-14  Eric Blake  <ebb9@byu.net>
45901
45902         Bump copyright year in files generated by gnulib-tool.
45903         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
45904         gnulib-tool, rather than hard-coding it.
45905
45906         Fix 'gnulib-tool --version' output to work with git.
45907         * gnulib-tool (func_gnulib_dir): New function, extracted from...
45908         (startup): ...here.
45909         (func_version): Use it to invoke git-version-gen, rather than
45910         relying on CVS keyword expansion.  Modernize wording.
45911         (cvsdatestamp, last_checkin_date, version): Kill unused
45912         variables.
45913
45914 2008-03-12  Jim Meyering  <meyering@redhat.com>
45915
45916         Recognize optional cast of the argument to free.
45917         * build-aux/useless-if-before-free: Update regexps.
45918
45919         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
45920
45921 2008-03-11  Bruno Haible  <bruno@clisp.org>
45922
45923         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
45924         by a single package.
45925         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
45926         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
45927         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
45928         Reported by Sam Steingold <sds@gnu.org>.
45929
45930 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45931
45932         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
45933         repositories.
45934
45935 2008-03-11  Bruno Haible  <bruno@clisp.org>
45936
45937         Avoid conflicts between local macro definitions.
45938         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45939         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
45940
45941 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
45942             Bruno Haible  <bruno@clisp.org>
45943
45944         Make va_copy work with some version of xlc on AIX 5.1.
45945         * lib/stdarg.in.h: New file.
45946         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
45947         On AIX, use a <stdarg.h> file substitute.
45948         * modules/stdarg (Files): Add lib/stdarg.in.h.
45949         (Depends-on): Add include_next.
45950         (Makefile.am): Build a stdarg.h substitute if requested.
45951         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
45952
45953 2008-03-10  Bruno Haible  <bruno@clisp.org>
45954
45955         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
45956         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45957         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45958
45959 2008-03-10  Bruno Haible  <bruno@clisp.org>
45960
45961         * modules/stdlib (Depends-on): Add include_next, remove
45962         absolute-header.
45963
45964 2008-03-09  Bruno Haible  <bruno@clisp.org>
45965
45966         * lib/freadahead.h (freadahead): Document more precisely.
45967         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
45968         the sum of both buffer sizes.
45969         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
45970         * NEWS: Document the change.
45971
45972 2008-03-09  Bruno Haible  <bruno@clisp.org>
45973
45974         Extend freadptr to return also the buffer size.
45975         * lib/freadptr.h (freadptr): Add sizep argument.
45976         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
45977         (freadptr): Add sizep argument. Determine buffer size like freadahead
45978         does.
45979         * tests/test-freadptr.c: Don't include freadahead.h.
45980         (main): Adapt for new calling convention of freadptr.
45981         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
45982         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
45983         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
45984         tests/test-freadptr2.sh.
45985         (Depends): Remove freadahead.
45986         (TESTS): Add test-freadptr2.sh.
45987         (check_PROGRAMS): Add test-freadptr2.
45988
45989 2008-03-09  Bruno Haible  <bruno@clisp.org>
45990
45991         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
45992         Report and solution by Simon Josefsson.
45993
45994 2008-03-06  Bruno Haible  <bruno@clisp.org>
45995
45996         Make fflush after ungetc work on BSD platforms.
45997         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
45998         * tests/test-fflush2.c: New file.
45999         * tests/test-fflush2.sh: New file.
46000         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
46001         tests/test-fflush2.c.
46002         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
46003         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
46004
46005 2008-03-06  Eric Blake  <ebb9@byu.net>
46006
46007         Likewise for ftello.
46008         * modules/ftello (Dependencies): Add extensions.
46009         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
46010
46011 2008-03-06  Bruno Haible  <bruno@clisp.org>
46012
46013         * modules/fseeko (Dependencies): Add extensions.
46014         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
46015         Needed on glibc systems.
46016
46017 2008-03-06  Bruno Haible  <bruno@clisp.org>
46018
46019         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
46020         email address.
46021         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46022
46023 2008-03-06  Bruno Haible  <bruno@clisp.org>
46024
46025         * users.txt: Add libgnupdf.
46026
46027 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46028
46029         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
46030         (Header File Substitutes, Function Substitutes,
46031         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
46032         (Build robot for gnulib): Fix typo.
46033
46034 2008-03-06  Bruno Haible  <bruno@clisp.org>
46035
46036         * doc/gnulib-tool.texi (VCS Issues): Small updates.
46037         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46038
46039 2008-03-06  Bruno Haible  <bruno@clisp.org>
46040
46041         * doc/func.texi: New file, extracted from doc/gnulib.texi.
46042         * doc/gnulib.texi: Include it.
46043
46044 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46045
46046         * modules/func (License): Change license to unlimited; there was
46047         no LGPL parts in the module anyway.
46048
46049 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46050
46051         * modules/__func__: Renamed to modules/func.
46052         * modules/__func__-tests: Renamed to modules/func-tests.
46053         * tests/test-__func__.c: Renamed to tests/test-func.c.
46054         * m4/__func__.m4: Renamed to m4/func.m4.
46055         * doc/gnulib.texi (__func__): Section renamed to func.
46056         Suggested by Eric Blake <ebb9@byu.net>.
46057
46058 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46059
46060         * doc/gnulib.texi (__func__): Use C99 terminology when talking
46061         about __func__.  Make example self-contained.  Suggested by Eric
46062         Blake <ebb9@byu.net>.
46063
46064         * tests/test-__func__.c (main): Avoid extraneous () around __func.
46065         Suggested by Eric Blake <ebb9@byu.net>.
46066
46067 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46068
46069         * modules/__func__: New file.
46070         * modules/__func__-tests: New file.
46071         * tests/test-__func__.c: New file.
46072         * m4/__func__.m4: New file.
46073         * doc/gnulib.texi (__func__): Document __func__ module.
46074
46075 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46076
46077         * modules/byteswap (License): Re-license as LGPLv2+.
46078
46079 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46080
46081         * doc/Makefile: Add pdf target.
46082
46083 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46084
46085         * modules/inline (License): Use 'unlimited', since there are only
46086         *.m4 files in this module.
46087
46088 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46089             Bruno Haible  <bruno@clisp.org>
46090
46091         Add support for HP C 7.1 on OpenVMS 8.3.
46092         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
46093
46094 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46095
46096         Update VMS specifics.
46097         * lib/getopt.c [VMS]: Remove include of unixlib.h.
46098
46099 2008-03-02  Jim Meyering  <meyering@redhat.com>
46100
46101         Remove the last dependency on the "free" module.
46102         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
46103         Reported by Bob Proulx.
46104
46105         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
46106
46107         Remove useless "if" tests before free.  Deprecate "free" module.
46108         * doc/posix-functions/free.texi: Mention that this
46109         module is no longer useful.
46110         * modules/free (Notice): Say this module is obsolete.
46111         * modules/readutmp (Depends-on): Remove free.
46112         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
46113         * lib/putenv.c (putenv): Likewise.
46114         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
46115         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
46116         * tests/test-c-strcasestr.c (main): Likewise.
46117         * tests/test-c-strstr.c (main): Likewise.
46118         * tests/test-mbscasestr1.c (main): Likewise.
46119         * tests/test-mbscasestr2.c (main): Likewise.
46120         * tests/test-mbsstr1.c (main): Likewise.
46121         * tests/test-mbsstr2.c (main): Likewise.
46122         * tests/test-memmem.c (main): Likewise.
46123         * tests/test-strcasestr.c (main): Likewise.
46124         * tests/test-striconv.c (main): Likewise.
46125         * tests/test-striconveh.c (main): Likewise.
46126         * tests/test-striconveha.c (main): Likewise.
46127         * tests/test-strstr.c (main): Likewise.
46128
46129         * build-aux/git-version-gen: Adjust a comment and the Usage string.
46130
46131         bootstrap: sync from coreutils again
46132         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
46133
46134 2008-03-01  Jim Meyering  <meyering@redhat.com>
46135
46136         bootstrap: sync from coreutils
46137         * build-aux/bootstrap (update_po_files): Copy a .po file into place
46138         also when the target doesn't exist.
46139
46140 2008-03-01  Eric Blake  <ebb9@byu.net>
46141
46142         Fix bugs in last patch.
46143         * lib/memchr2.c (memchr2): Fix typo.
46144         * tests/test-memchr2.c: Test previous bug, and don't use GNU
46145         extension.
46146         Reported by Bruce Korb.
46147
46148         New module 'memchr2'.
46149         * modules/memchr2: New file.
46150         * modules/memchr2-tests: Likewise.
46151         * lib/memchr2.h: Likewise.
46152         * lib/memchr2.c: Likewise, based on memchr.c.
46153         * tests/test-memchr2.c: New test.
46154         * MODULES.html.sh (String handling): Add memchr2.
46155
46156 2008-02-29  Bruno Haible  <bruno@clisp.org>
46157
46158         * modules/freadseek-tests: New file.
46159         * tests/test-freadseek.sh: New file.
46160         * tests/test-freadseek.c: New file.
46161
46162         New module 'freadseek'.
46163         * modules/freadseek: New file.
46164         * lib/freadseek.h: New file.
46165         * lib/freadseek.c: New file.
46166         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
46167
46168 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
46169
46170         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
46171         wydawca.
46172
46173         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
46174         program_invocation_name and program_invocation_short_name are
46175         present.
46176
46177 2008-02-28  Bruno Haible  <bruno@clisp.org>
46178
46179         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
46180         * tests/test-freadptr.sh: Also test non-seekable stdin.
46181
46182 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
46183
46184         * build-aux/bootstrap (source_base, m4_base)
46185         (doc_base, tests_base): New variables.
46186         (gnulib_tool_options): Do not hardcode base directories, use
46187         the above variables instead.
46188
46189 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
46190
46191         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
46192
46193 2008-02-28  Bruno Haible  <bruno@clisp.org>
46194
46195         * modules/freadptr-tests: New file.
46196         * tests/test-freadptr.sh: New file.
46197         * tests/test-freadptr.c: New file.
46198
46199         New module 'freadptr'.
46200         * modules/freadptr: New file.
46201         * lib/freadptr.h: New file.
46202         * lib/freadptr.c: New file.
46203         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
46204
46205 2008-02-26  Karl Berry  <karl@freefriends.org>
46206
46207         Sync from Libtool:
46208         * libltdl/argz.c (argz_add, argz_count): New functions.
46209         * libltdl/argz.in.h: Declare them.
46210         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
46211
46212 2008-02-22  Bruno Haible  <bruno@clisp.org>
46213
46214         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
46215         is a pointer type.  Needed for HP-UX 10.
46216         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
46217         * doc/posix-functions/gmtime_r.texi: Likewise.
46218         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46219
46220 2008-02-24  Bruno Haible  <bruno@clisp.org>
46221
46222         * modules/environ-tests: New file.
46223         * tests/test-environ.c: New file.
46224
46225         New module 'environ'.
46226         * modules/environ: New file.
46227         * lib/unistd.in.h (environ): New declaration.
46228         * m4/environ.m4: New file.
46229         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
46230         after use.
46231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
46232         HAVE_DECL_ENVIRON.
46233         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
46234         HAVE_DECL_ENVIRON.
46235         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
46236         wrong claim that 'environ' is missing on some systems.
46237         * modules/execute (Depends-on): Add environ.
46238         * lib/execute.c (environ): Remove fallback declaration.
46239         * modules/pipe (Depends-on): Add environ.
46240         * lib/pipe.c (environ): Remove fallback declaration.
46241         * modules/setenv (Depends-on): Add environ.
46242         * lib/setenv.c (environ): Remove fallback declaration.
46243         * modules/unsetenv (Depends-on): Add environ.
46244         * lib/unsetenv.c (environ): Remove fallback declaration.
46245         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
46246         m4/environ.m4.
46247         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
46248         (gl_PREREQ_UNSETENV): Likewise.
46249
46250 2008-02-24  Bruno Haible  <bruno@clisp.org>
46251
46252         * doc/posix-functions/environ.texi: Document the MacOS X problem.
46253
46254 2008-02-20  Bob Proulx  <bob@proulx.com>
46255
46256         Enable use of older two part flavor 'git describe'.
46257         * build-aux/git-version-gen: If using the older two part flavor of
46258         git version then recreate the third part now present in the
46259         newer three part flavor of git describe.
46260
46261 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
46262
46263         * lib/fts.c (fts_build): Typo correction to comment.
46264
46265 2008-02-17  Bruno Haible  <bruno@clisp.org>
46266
46267         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
46268         generating no-op conflicts.
46269
46270 2008-02-17  Bruno Haible  <bruno@clisp.org>
46271
46272         Speed up by 10%.
46273         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
46274         result_entries, rather than an index-based loop.
46275
46276 2008-02-17  Bruno Haible  <bruno@clisp.org>
46277
46278         Speed up by 25%.
46279         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
46280         'hashcode_cached'.
46281         (entry_create): New function.
46282         (entry_hashcode): Use the cached hashcode if possible.
46283         (read_changelog_file, try_split_merged_entry): Use entry_create.
46284
46285 2008-02-17  Bruno Haible  <bruno@clisp.org>
46286
46287         Speed up from O(n^2) to O(n) for long ChangeLog files.
46288         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
46289         (read_changelog_file): Change implementation of entries_reversed list
46290         to rbtreehash.
46291         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
46292
46293 2008-02-17  Bruno Haible  <bruno@clisp.org>
46294
46295         New option --split-merged-entry.
46296         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
46297         (find_paragraph_end, try_split_merged_entry): New functions.
46298         (long_options): Add option --split-merged-entry.
46299         (usage): Document option --split-merged-entry.
46300         (main): Implement option --split-merged-entry.
46301         Reported by Eric Blake.
46302
46303 2008-02-17  Bruno Haible  <bruno@clisp.org>
46304
46305         * lib/git-merge-changelog.c: Include c-strstr.h.
46306         (main): Support the "git pull --rebase" situation.
46307         * modules/git-merge-changelog (Depends-on): Add c-strstr.
46308         Reported by Eric Blake.
46309
46310 2008-02-16  Eric Blake  <ebb9@byu.net>
46311
46312         Avoid doubling \ in common case of "c-maybe" quoting style.
46313         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46314         eliding outer quotes.
46315         * lib/quotearg.h: Document this.
46316         * tests/test-quotearg.c (result_strings, inputs, results_g)
46317         (flag_results, locale_results): Test it by adding a new string to
46318         each test group.
46319         (compare_strings): Test new string.
46320
46321 2008-02-13  Eric Blake  <ebb9@byu.net>
46322
46323         Avoid trigraph quoting in default output.
46324         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46325         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46326         unless explicitly requested.
46327         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46328
46329 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46330
46331         Don't rely on signed integer overflowing to negative value.
46332         * lib/getugroups.c (getugroups): Include <limits.h>.
46333         Instead, compare against INT_MAX, and increment only if the test passes.
46334
46335 2008-02-13  Jim Meyering  <meyering@redhat.com>
46336         and Eric Blake  <ebb9@byu.net>
46337
46338         Avoid shadowing warning and compile errors on Linux.
46339         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46340         forwarding macros on Linux.
46341         (dcgettext): Define a stub, for Linux.
46342         (results_g, main): Avoid warnings.
46343
46344 2008-02-12  Eric Blake  <ebb9@byu.net>
46345
46346         Silence warning in last patch.
46347         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46348
46349         Quotearg part 4: add tests, fix c-maybe colon quoting.
46350         * lib/quotearg.h: Improve documentation.
46351         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46352         escapes when adding outer quotes.  When quoting trigraphs, use
46353         valid C notation.  When quoting NUL, omit extra characters if next
46354         character is not digit.  Alter prototype.
46355         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46356         callers.
46357         * modules/quotearg-tests: New module.
46358         * tests/test-quotearg.c: New test.
46359
46360 2008-02-07  Eric Blake  <ebb9@byu.net>
46361
46362         Quotearg part 3: add flag to control outer quote elision.
46363         * lib/quotearg.h (c_maybe_quoting_style): New style.
46364         (enum quoting_flags): Better documentation of flags.
46365         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46366         c-maybe style.
46367         (quotearg_buffer_restyled): Handle new flag to elide outer
46368         quotes.
46369
46370         Quotearg part 2: add flag that can control NUL elision.
46371         * lib/quotearg.h (set_quoting_flags): New prototype.
46372         * lib/quotearg.c (struct quoting_options): Add flag field.
46373         (set_quoting_flags): New function.
46374         (quotearg_buffer_restyled): Add flags parameter.
46375         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46376         (quotearg_n_options): Set the flag, since length cannot be
46377         returned.
46378         (quoting_options_from_style): Default flags correctly.
46379
46380         Quotearg part 1: more wrappers, restore quotearg_char state.
46381         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46382         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46383         (quotearg_colon_mem): New wrappers.
46384         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46385         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46386         functions.
46387         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46388         (quotearg_colon_mem): New functions.
46389
46390 2008-02-11  Bruno Haible  <bruno@clisp.org>
46391
46392         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46393         library in the current directory: it does not work with parallel make.
46394         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46395
46396 2008-02-11  Bruno Haible  <bruno@clisp.org>
46397
46398         * .gitattributes: New file.
46399
46400 2008-02-11  Jim Meyering  <meyering@redhat.com>
46401
46402         useless-if-before-free: Fix reversed exit values.
46403         * build-aux/useless-if-before-free: Use correct values
46404         for EXIT_MATCH and EXIT_NO_MATCH.
46405
46406         * build-aux/useless-if-before-free: Close stdout carefully.
46407
46408 2008-02-10  Bruno Haible  <bruno@clisp.org>
46409
46410         New module 'git-merge-changelog'.
46411         * modules/git-merge-changelog: New file.
46412         * lib/git-merge-changelog.c: New file.
46413
46414 2008-02-10  Jim Meyering  <meyering@redhat.com>
46415
46416         useless-if-before-free: New option: --list (-l).
46417
46418         useless-if-before-free: Don't exit immediately upon open failure.
46419         * build-aux/useless-if-before-free: Exit 2 for errors.
46420         Upon failure to open a file, don't exit immediately.
46421         Rather, just warn and continue with any remaining files.
46422
46423 2008-02-10  Bruno Haible  <bruno@clisp.org>
46424
46425         New abstract list operation 'node_set_value'.
46426         * lib/gl_list.h (gl_list_node_set_value): New function.
46427         (struct gl_list_implementation): New field node_set_value.
46428         * lib/gl_list.c (gl_list_node_set_value): New function.
46429         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46430         (gl_array_list_implementation): Update.
46431         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46432         (gl_carray_list_implementation): Update.
46433         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46434         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46435         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46436         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46437         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46438         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46439         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46440         Update.
46441         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46442         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46443         (gl_sublist_list_implementation): Update.
46444
46445 2008-02-10  Bruno Haible  <bruno@clisp.org>
46446
46447         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46448         Needed when ELEMENT is #defined to 'some_type *'.
46449
46450 2008-02-10  Jim Meyering  <meyering@redhat.com>
46451
46452         New script and module: useless-if-before-free
46453         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46454         * build-aux/useless-if-before-free: New file.
46455         * modules/useless-if-before-free: New file.
46456
46457         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46458
46459         xstrtol_error: Fix typo.
46460         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46461         s/exit_failure/exit_status/.
46462
46463 2008-02-09  Jim Meyering  <meyering@redhat.com>
46464
46465         New script and module: gitlog-to-changelog
46466         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46467         * modules/gitlog-to-changelog: New file.
46468         * build-aux/gitlog-to-changelog: New file.
46469
46470 2008-02-08  Jim Meyering  <meyering@redhat.com>
46471
46472         Avoid two "parameter unused" warnings.
46473         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46474         Mark "st" as used.
46475
46476         Use "git COMMAND", not "git-COMMAND".
46477         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46478         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46479         * build-aux/git-version-gen: Use "git status", not "git-status".
46480
46481 2008-02-07  Bruno Haible  <bruno@clisp.org>
46482
46483         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46484         Avoids a crash on Windows Vista.
46485         Reported by Adam Strzelecki <ono@java.pl> via
46486         Simon Josefsson <simon@josefsson.org>.
46487
46488 2008-02-06  Bruno Haible  <bruno@clisp.org>
46489
46490         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46491         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46492         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46494         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46495         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46496         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46497         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46498         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46499         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46500         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46501         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46502         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46503         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46504         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46505         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46506         left-adjust flag.
46507         * tests/test-snprintf-posix.h (test_function): Likewise.
46508         * tests/test-sprintf-posix.h (test_function): Likewise.
46509         * tests/test-vasprintf-posix.c (test_function): Likewise.
46510         * doc/posix-functions/fprintf.texi: Update.
46511         * doc/posix-functions/printf.texi: Update.
46512         * doc/posix-functions/snprintf.texi: Update.
46513         * doc/posix-functions/sprintf.texi: Update.
46514         * doc/posix-functions/vfprintf.texi: Update.
46515         * doc/posix-functions/vprintf.texi: Update.
46516         * doc/posix-functions/vsnprintf.texi: Update.
46517         * doc/posix-functions/vsprintf.texi: Update.
46518         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46519
46520 2008-02-06  Bruno Haible  <bruno@clisp.org>
46521
46522         Fix bug introduced on 2008-01-26.
46523         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46524
46525 2008-02-06  Bruno Haible  <bruno@clisp.org>
46526
46527         Fix bug introduced on 2007-06-10.
46528         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
46529         !NEED_PRINTF_FLAG_ZERO.
46530
46531 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
46532
46533         getloadavg: use libperfstat on AIX5
46534         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
46535
46536 2008-02-03  Bruno Haible  <bruno@clisp.org>
46537
46538         * lib/diffseq.h: Add comments about required #includes.
46539         Reported by Michael Biggs <gnulib@doubleplum.net>.
46540
46541 2008-02-01  Bruno Haible  <bruno@clisp.org>
46542
46543         * users.txt: Add gnuit.
46544
46545 2008-01-31  Bruno Haible  <bruno@clisp.org>
46546
46547         * lib/md4.c (set_uint32): Mark as inline.
46548         * lib/md5.c (set_uint32): Likewise.
46549         * lib/sha1.c (set_uint32): Likewise.
46550         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
46551         * m4/md5.m4 (gl_MD5): Likewise.
46552         * m4/sha1.m4 (gl_SHA1): Likewise.
46553
46554 2008-01-31  Jim Meyering  <meyering@redhat.com>
46555
46556         Use "sizeof VAR", rather than a literal "4".
46557         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
46558         * lib/md4.c (md4_read_ctx): Likewise.
46559         * lib/sha1.c (sha1_read_ctx): Likewise.
46560
46561 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46562
46563         * tests/test-sha1.c: New file, based on test-md5.c.
46564
46565         * modules/crypto/sha1-tests: New file.
46566
46567 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46568
46569         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
46570
46571 2008-01-31  Jim Meyering  <meyering@redhat.com>
46572
46573         Prefer "sizeof v" over the equivalent "4".
46574         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
46575         * lib/md5.c (set_uint32): Likewise.
46576         * lib/sha1.c (set_uint32): Likewise.
46577
46578 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46579
46580         * lib/sha1.c (set_uint32): Mark function as static.
46581
46582 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46583
46584         md2: clarify comments to say that alignment is not required.
46585         * lib/md2.h: Remove warning about alignment in comment.
46586         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
46587         never been required.
46588
46589 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46590
46591         md4: adapt alignment constraint fix from sha1.
46592         * lib/md4.c (set_uint32): New function, from sha1.c
46593         (md4_read_ctx): Use it.
46594         (md4_finish_ctx): Doc fix.
46595         * lib/md4.h: Doc fix.
46596
46597 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46598
46599         md5: adapt alignment constraint fix from sha1.
46600         * lib/md5.c (set_uint32): New function, from sha1.c
46601         (md5_read_ctx): Use it.
46602         (md5_finish_ctx): Doc fix.
46603         * lib/md5.h: Doc fix.
46604
46605 2008-01-30  Peter Palfrader  <weasel@debian.org>
46606
46607         sha1: remove the result buffer alignment constraint
46608         * lib/sha1.c (set_uint32): New function.
46609         (sha1_read_ctx): Rewrite to remove the result buffer alignment
46610         constraint.
46611         (sha1_finish_ctx): Remove comment warning about alignment constraint.
46612         * lib/sha1.h: Likewise.
46613
46614 2008-01-30  Andreas Schwab  <schwab@suse.de>
46615             Bruno Haible  <bruno@clisp.org>
46616
46617         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46618         correct definition of LDBL_MIN_EXP.
46619
46620 2008-01-30  Karl Berry  <karl@gnu.org>
46621
46622         * config/srclist-update: try to preserve x bit on updates.
46623         * config/srclistvars.sh: update for karl.
46624
46625 2008-01-29  Jim Meyering  <meyering@redhat.com>
46626
46627         vasnprintf.c: Avoid warning about unused label
46628         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46629         "overflow" label definition and associated code with the
46630         same cpp condition that guards the sole use of that label.
46631
46632 2008-01-26  Bruno Haible  <bruno@clisp.org>
46633
46634         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46635         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46636         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46637         * lib/isnanl-nolibm.h (isnanl): Likewise.
46638         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46639
46640 2008-01-26  Bruno Haible  <bruno@clisp.org>
46641
46642         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46643         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46644
46645 2008-01-26  Bruno Haible  <bruno@clisp.org>
46646
46647         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46648         GCC >= 4.0 built-in.
46649         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46650
46651 2008-01-26  Bruno Haible  <bruno@clisp.org>
46652
46653         Rename isnan, applicable to 'double' only, to isnand.
46654         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46655         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46656         (configure.ac): Update.
46657         (Include): Replace "isnan.h" with "isnand.h".
46658         * m4/isnand.m4: Renamed from m4/isnan.m4.
46659         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46660         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46661         instead of isnan.c.
46662         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46663         instead of HAVE_ISNAN_IN_LIBC.
46664         (isnand): Renamed from isnan.
46665         * lib/isnand.c: New file.
46666         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46667         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46668         (Makefile.am): Update.
46669         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46670         Include isnand.h instead of isnan.h.
46671         (main): Test isnand instead of isnan.
46672         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46673         isnan-nolibm.
46674         * modules/frexp (Depends-on): Likewise.
46675         * modules/frexp-tests (Depends-on): Likewise.
46676         * modules/frexp-nolibm (Depends-on): Likewise.
46677         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46678         * modules/isfinite (Depends-on): Likewise.
46679         * modules/round-tests (Depends-on): Likewise.
46680         * modules/signbit (Depends-on): Likewise.
46681         * modules/signbit-tests (Depends-on): Likewise.
46682         * modules/snprintf-posix (Depends-on): Likewise.
46683         * modules/sprintf-posix (Depends-on): Likewise.
46684         * modules/trunc-tests (Depends-on): Likewise.
46685         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46686         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46687         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46688         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46689         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46690         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46691         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46692         * modules/vasnprintf-posix (Depends-on): Likewise.
46693         * modules/vasprintf-posix (Depends-on): Likewise.
46694         * modules/vfprintf-posix (Depends-on): Likewise.
46695         * modules/vsnprintf-posix (Depends-on): Likewise.
46696         * modules/vsprintf-posix (Depends-on): Likewise.
46697         * lib/frexp.c: Include isnand.h instead of isnan.h.
46698         (ISNAN): Set to isnand instead of isnan.
46699         * lib/isfinite.c: Include isnand.h instead of isnan.h.
46700         (gl_isfinited): Use isnand instead of isnan.
46701         * lib/signbitd.c: Include isnand.h instead of isnan.h.
46702         (gl_signbitd): Use isnand instead of isnan.
46703         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
46704         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
46705         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
46706         (main): Use isnand instead of isnan.
46707         * tests/test-round1.c: Include isnand.h.
46708         (main): Use isnand instead of isnan.
46709         * tests/test-round2.c: Include isnand.h instead of isnan.h.
46710         (ISNAN): Set to isnand instead of isnan.
46711         * tests/test-trunc1.c: Include isnand.h.
46712         (main): Use isnand instead of isnan.
46713         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
46714         (equal): Use isnand instead of isnan.
46715         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
46716         isnand-nolibm.
46717         * NEWS: Mention the change.
46718
46719 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46720             Bruno Haible  <bruno@clisp.org>
46721
46722         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
46723         the GCC builtins for signbits are present and set
46724         REPLACE_SIGNBIT_USING_GCC if so.
46725         * lib/math.in.h (signbit): Define using GCC builtins if
46726         REPLACE_SIGNBIT_USING_GCC is set.
46727         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
46728         REPLACE_SIGNBIT_USING_GCC.
46729         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
46730
46731 2008-01-25  Jim Meyering  <meyering@redhat.com>
46732
46733         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
46734         * lib/poll.c: Include <config.h>, not "config.h".
46735         * tests/test-getaddrinfo.c: Likewise.
46736
46737 2008-01-25  Simon Josefsson  <simon@josefsson.org>
46738
46739         * modules/sockets-tests: New file.
46740
46741 2008-01-24  Simon Josefsson  <simon@josefsson.org>
46742
46743         * modules/sockets: New module, can be used to call WSA_Startup and
46744         WSA_Cleanup when needed.
46745
46746         * lib/sockets.h, lib/sockets.c: New files.
46747
46748         * m4/sockets.m4: New file.
46749
46750         * tests/test-sockets.c: New file.
46751
46752 2008-01-19  Bruno Haible  <bruno@clisp.org>
46753
46754         * doc/posix-headers: Renamed from doc/headers.
46755         * doc/posix-functions: Renamed from doc/functions.
46756         * doc/gnulib.texi: Update.
46757
46758 2008-01-19  Bruno Haible  <bruno@clisp.org>
46759
46760         * doc/glibc-functions/strcasestr.texi: Include contents of
46761         doc/functions/strcasestr.texi, fixing the list of platforms.
46762         * doc/functions/strcasestr.texi: Remove file.
46763
46764 2008-01-19  Bruno Haible  <bruno@clisp.org>
46765
46766         * doc/glibc-functions/memmem.texi: Include contents of
46767         doc/functions/memmem.texi.
46768         * doc/functions/memmem.texi: Remove file.
46769
46770 2008-01-18  Bruno Haible  <bruno@clisp.org>
46771
46772         * doc/glibc-functions/*.texi: New files.
46773         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
46774         to use the new files.
46775
46776 2008-01-17  Bruno Haible  <bruno@clisp.org>
46777
46778         * tests/test-gethostname.c (main): Fix printf statement.
46779
46780 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46781
46782         * modules/gethostname-tests: New file.
46783
46784         * tests/test-gethostname.c: New file.
46785
46786 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46787
46788         * lib/gethostname.c: Include string.h unconditionally, strncpy is
46789         used by the UNAME case.  Reported by Bruno Haible
46790         <bruno@clisp.org>.
46791
46792 2008-01-17  Eric Blake  <ebb9@byu.net>
46793
46794         Convert c-strcasestr to be more efficient.
46795         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
46796         (Depends-on): Add c-strcase, remove malloca, strnlen.
46797         * tests/test-c-strcasestr.c (main): Enhance test.
46798         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
46799
46800 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46801
46802         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
46803         Use it in creating po/Makevars.
46804
46805 2008-01-15  Simon Josefsson  <simon@josefsson.org>
46806
46807         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
46808         Applications that requires it should initialize libgcrypt
46809         manually.
46810
46811 2008-01-16  Simon Josefsson  <simon@josefsson.org>
46812
46813         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
46814
46815 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
46816
46817         Fix problem with getdate on mingw32 reported by Simon Josefsson
46818         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
46819         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
46820         tzname", when deciding whether to declare tzname.
46821         * lib/strftime.c (tzname): Likewise.
46822
46823 2008-01-15  Bruno Haible  <bruno@clisp.org>
46824
46825         Work around a MacOS X 10.5 bug in frexpl().
46826         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
46827         * doc/functions/frexpl.texi: Document the bug.
46828         Reported by Elias Pipping <pipping@gentoo.org>.
46829
46830 2008-01-14  Eric Blake  <ebb9@byu.net>
46831
46832         Touch up previous patch.
46833         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
46834         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
46835
46836         Convert strcasestr module to use Two-Way algorithm.
46837         * modules/strcasestr-simple: New module, based on the old
46838         strcasestr, but with Two-Way rather than KMP.
46839         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
46840         * lib/string.in.h (rpl_strcasestr): Declare.
46841         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
46842         performance.
46843         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
46844         * modules/string (Makefile.am): Support strcasestr.
46845         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46846         * modules/strcasestr-tests (Depends-on): Check for alarm.
46847         * tests/test-strcasestr.c: Augment test.
46848         * lib/str-two-way.h: Clean up stray macro.
46849         * NEWS: Document new module.
46850         * MODULES.html.sh (string handling): Likewise.
46851         * doc/functions/strcasestr.texi: New file.
46852         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
46853         here, since it is not a POSIX function.
46854
46855 2008-01-14  Colin Watson  <cjwatson@debian.org>
46856             Bruno Haible  <bruno@clisp.org>
46857
46858         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
46859         works fine; if not, set REPLACE_STRSIGNAL.
46860         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
46861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46862         REPLACE_STRSIGNAL.
46863         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
46864         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
46865         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
46866
46867 2008-01-14  Bruno Haible  <bruno@clisp.org>
46868
46869         * modules/strsignal (Include): Change to <string.h>.
46870
46871 2008-01-14  Colin Watson  <cjwatson@debian.org>
46872
46873         * modules/argp (Notice): Add a notice recommending to change
46874         XGETTEXT_OPTIONS.
46875         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
46876
46877 2008-01-13  Colin Watson  <cjwatson@debian.org>
46878
46879         * modules/strsignal-tests: New file.
46880         * tests/test-strsignal.c: New file.
46881
46882         * lib/strsignal.c: New file, from glibc with modifications.
46883         * lib/siglist.h: New file, from glibc with modifications.
46884         * lib/string.in.h (strsignal): New declaration.
46885         * m4/strsignal.m4: New file.
46886         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46887         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
46888         * modules/strsignal: New file.
46889         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
46890         HAVE_DECL_STRSIGNAL.
46891
46892 2008-01-13  Bruno Haible  <bruno@clisp.org>
46893
46894         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
46895         locale encoding is not ASCII. Needed for OpenBSD 4.0.
46896         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46897         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46898
46899 2008-01-13  Bruno Haible  <bruno@clisp.org>
46900
46901         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
46902         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
46903         * lib/argp.h (__attribute__): Likewise.
46904         * lib/c-stack.c (__attribute__): Likewise.
46905         * lib/error.h (__attribute__): Likewise.
46906         * lib/fts.c (__attribute__): Likewise.
46907         * lib/openat.h (__attribute__): Likewise.
46908         * lib/stdio.in.h (__attribute__): Likewise.
46909         * lib/string.in.h (__attribute__): Likewise.
46910         * lib/utimens.c (__attribute__): Likewise.
46911         * lib/vasnprintf.h (__attribute__): Likewise.
46912         * lib/xalloc.h (__attribute__): Likewise.
46913         * lib/xprintf.h (__attribute__): Likewise.
46914         * lib/xstrtol.h (__attribute__): Likewise.
46915         * lib/xvasprintf.h (__attribute__): Likewise.
46916
46917 2008-01-12  Bruno Haible  <bruno@clisp.org>
46918
46919         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
46920         * doc/glibc-headers/a.out.texi: New file.
46921         * doc/glibc-headers/aliases.texi: New file.
46922         * doc/glibc-headers/alloca.texi: New file.
46923         * doc/glibc-headers/ar.texi: New file.
46924         * doc/glibc-headers/argp.texi: New file.
46925         * doc/glibc-headers/argz.texi: New file.
46926         * doc/glibc-headers/byteswap.texi: New file.
46927         * doc/glibc-headers/crypt.texi: New file.
46928         * doc/glibc-headers/endian.texi: New file.
46929         * doc/glibc-headers/envz.texi: New file.
46930         * doc/glibc-headers/err.texi: New file.
46931         * doc/glibc-headers/error.texi: New file.
46932         * doc/glibc-headers/execinfo.texi: New file.
46933         * doc/glibc-headers/fpu_control.texi: New file.
46934         * doc/glibc-headers/fstab.texi: New file.
46935         * doc/glibc-headers/fts.texi: New file.
46936         * doc/glibc-headers/getopt.texi: New file.
46937         * doc/glibc-headers/ieee754.texi: New file.
46938         * doc/glibc-headers/ifaddrs.texi: New file.
46939         * doc/glibc-headers/libintl.texi: New file.
46940         * doc/glibc-headers/mcheck.texi: New file.
46941         * doc/glibc-headers/mntent.texi: New file.
46942         * doc/glibc-headers/obstack.texi: New file.
46943         * doc/glibc-headers/paths.texi: New file.
46944         * doc/glibc-headers/printf.texi: New file.
46945         * doc/glibc-headers/pty.texi: New file.
46946         * doc/glibc-headers/resolv.texi: New file.
46947         * doc/glibc-headers/shadow.texi: New file.
46948         * doc/glibc-headers/sysexits.texi: New file.
46949         * doc/glibc-headers/ttyent.texi: New file.
46950
46951 2008-01-12  Jim Meyering  <meyering@redhat.com>
46952
46953         announce-gen: emit Gnulib's git-based version string.
46954         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
46955         New option --gnulib-version=V, where V is expected to be
46956         the output of running git describe in the gnulib directory.
46957         (get_tool_versions): Request feedback on xdelta.  I suspect it's
46958         not useful, and plan to stop publishing an xdelta file with each
46959         coreutils release.
46960
46961         * build-aux/announce-gen: Also check for lzma-compressed files.
46962
46963 2008-01-11  Bruno Haible  <bruno@clisp.org>
46964
46965         * tests/test-memmem.c (main): Increase maximum allowed time.
46966         * tests/test-strstr.c (main): Likewise.
46967
46968 2008-01-11  Bruno Haible  <bruno@clisp.org>
46969
46970         * doc/functions/memmem.texi: Add more precisions about platforms.
46971         * doc/functions/strstr.texi: Likewise.
46972
46973 2008-01-10  Eric Blake  <ebb9@byu.net>
46974
46975         * m4/strstr.m4: Delete cruft from copy-n-paste.
46976         Reported by Bruno Haible.
46977
46978 2008-01-10  Bruno Haible  <bruno@clisp.org>
46979
46980         Make c-strstr rely on strstr.
46981         * lib/c-strstr.c: Don't include str-kmp.h.
46982         (c_strstr): Define in terms of strstr.
46983         * modules/c-strstr (Files): Remove lib/str-kmp.h.
46984         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
46985
46986 2008-01-10  Bruno Haible  <bruno@clisp.org>
46987
46988         * doc/gnulib.texi (String Functions in C Locale): New section.
46989         * doc/c-ctype.texi: New file.
46990         * doc/c-strcase.texi: New file.
46991         * doc/c-strcaseeq.texi: New file.
46992         * doc/c-strcasestr.texi: New file.
46993         * doc/c-strstr.texi: New file.
46994         * doc/c-strtod.texi: New file.
46995         * doc/c-strtold.texi: New file.
46996
46997 2008-01-10  Eric Blake  <ebb9@byu.net>
46998
46999         * lib/relocatable.h: Fix a comment.
47000
47001 2008-01-10  Eric Blake  <ebb9@byu.net>
47002
47003         Share two-way algorithm.
47004         * lib/str-two-way.h: New file, merged from...
47005         * lib/memmem.c: ...here...
47006         * lib/strstr.c: ...and here.
47007         * modules/memmem (Files): Use it.
47008         * modules/strstr (Files): Likewise.
47009
47010         Avoid quadratic strstr implementations.
47011         * lib/strstr.c: New file.
47012         * m4/strstr.m4: Likewise.
47013         * modules/strstr: Likewise.
47014         * modules/strstr-tests: Likewise.
47015         * tests/test-strstr.c: Likewise.
47016         * lib/string.in.h (rpl_strstr): Declare.
47017         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
47018         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
47019         * modules/string (Makefile.am): Likewise.
47020         * MODULES.html.sh (string handling): Mention new module.
47021         * doc/functions/strstr.texi (strstr): Document the bug.
47022
47023 2008-01-10  Bruno Haible  <bruno@clisp.org>
47024
47025         * lib/relocatable.h (relocate): State whether result is freshly
47026         allocated or not.
47027         * lib/relocatable.c (relocate): Return a freshly allocated string
47028         instead of a pointer to a privately held string.
47029         Reported by Sylvain Beucler <beuc@gnu.org>.
47030
47031 2008-01-10  Colin Watson  <cjwatson@debian.org>
47032
47033         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
47034         s/S_ISNLK/S_ISLNK/.
47035
47036 2008-01-09  Bruno Haible  <bruno@clisp.org>
47037
47038         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
47039         and other files.
47040         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
47041         if it's only a guess.
47042         * modules/memmem: Simplify by depending on memmem-simple.
47043
47044 2008-01-09  Bruno Haible  <bruno@clisp.org>
47045
47046         Work around OpenBSD 4.0 tdelete() bug.
47047         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
47048         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
47049         macros and don't redefine the enum values.
47050         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
47051         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
47052         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
47053
47054 2008-01-09  Bruno Haible  <bruno@clisp.org>
47055
47056         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
47057         (main): Don't perform the tests if setlocale did not install a UTF-8
47058         locale. Needed on OpenBSD 4.0.
47059         * modules/wcwidth-tests (Depends-on): Add localcharset.
47060
47061 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47062
47063         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
47064         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
47065         * NEWS: announce this.
47066         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
47067
47068 2008-01-09  Simon Josefsson  <simon@josefsson.org>
47069         and Eric Blake  <ebb9@byu.net>
47070
47071         Add memmem-simple module.
47072         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
47073         (gl_FUNC_MEMMEM): Separate performance from presence checks.
47074         * modules/memmem-simple: New file.
47075         * modules/memmem (Description): Tweak.
47076         * MODULES.html.sh (string handling): Mention new module.
47077         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
47078         addressed by memmem-simple.
47079         * NEWS: Document the difference.
47080
47081 2008-01-09  Eric Blake  <ebb9@byu.net>
47082
47083         Give gcc some memmem optimization hints.
47084         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
47085         (strcasestr): Declare as pure.
47086         * modules/memmem (Maintainer): Claim my implementation.
47087
47088 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47089
47090         Support AIX 6.1 and higher.
47091         * build-aux/config.libpath: Likewise.
47092         * build-aux/config.rpath: Likewise.
47093
47094 2008-01-08  Jim Meyering  <meyering@redhat.com>
47095             Bruno Haible  <bruno@clisp.org>
47096
47097         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
47098         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
47099         Reported by Peter Fales in
47100         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
47101
47102 2008-01-08  Bruno Haible  <bruno@clisp.org>
47103
47104         * modules/unictype/category-of (Depends-on): Add
47105         unictype/category-none.
47106         * modules/unictype/category-and-tests (Depends-on): Add
47107         unictype/category-{L,N,Lu,Nd}.
47108         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
47109         * modules/unictype/category-or-tests (Depends-on): Add
47110         unictype/category-{L,N}.
47111         * modules/unictype/category-name-tests (Depends-on): Add
47112         unictype/category-{Z,Nl}.
47113         Reported by Simon Josefsson.
47114
47115 2008-01-08  Bruno Haible  <bruno@clisp.org>
47116
47117         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
47118         convention better.
47119         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
47120         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
47121         Reported by Peter Miller <millerp@canb.auug.org.au>.
47122
47123 2008-01-08  Eric Blake  <ebb9@byu.net>
47124
47125         Rewrite memmem to guarantee linear complexity without malloc.
47126         * lib/memmem.c (memmem): Use Two-Way rather than
47127         Knuth-Morris-Pratt, to allow O(1) space usage.
47128         (critical_factorization, two_way_short_needle)
47129         (two_way_long_needle): New functions.
47130         (knuth_morris_pratt): Delete.
47131         * modules/memmem (Depends-on): No longer need malloca or stdbool.
47132         Add stdint.
47133         * tests/test-memmem.c (main): Add tests for periodic needle and
47134         sublinear performance.
47135         * doc/functions/memmem.texi (memmem): Document other deficiencies
47136         in cygwin and older glibc.
47137
47138 2008-01-08  Bruno Haible  <bruno@clisp.org>
47139
47140         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
47141         augmentation.
47142
47143 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
47144
47145         Add a configure time option: --disable-acl.
47146         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
47147         AC_ARG_ENABLE(acl).
47148
47149 2008-01-06  Simon Josefsson  <simon@josefsson.org>
47150
47151         * tests/test-localename.c: Don't include obsolete "setenv.h".
47152
47153         * modules/localename-tests (Depends-on): Need unsetenv.
47154
47155 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47156
47157         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
47158
47159 2008-01-06  Colin Watson  <cjwatson@debian.org>
47160
47161         * users.txt: Add man-db.
47162
47163 2008-01-07  Bruno Haible  <bruno@clisp.org>
47164
47165         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
47166         previous section name.
47167
47168 2008-01-07  Bruno Haible  <bruno@clisp.org>
47169
47170         * lib/progname.c (set_program_name): Don't strip off a leading
47171         "lt-" prefix outside a .libs directory.
47172         Suggested by Paul Eggert.
47173
47174 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
47175             Bruno Haible  <bruno@clisp.org>
47176
47177         Improve memory cleanup in 'relocatable' module.
47178         * lib/relocatable.h (compute_curr_prefix): Change return type to
47179         'char *'.
47180         * lib/relocatable.c (compute_curr_prefix): Change return type to
47181         'char *'. Free curr_installdir after use.
47182         (relocate): Free curr_prefix_better after use.
47183         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
47184
47185 2008-01-01  Bruno Haible  <bruno@clisp.org>
47186
47187         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
47188         failure on older glibc systems.
47189         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47190
47191 2008-01-05  Eric Blake  <ebb9@byu.net>
47192
47193         Avoid quadratic system memmem.
47194         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
47195         Reported by Ralf Wildenhues.
47196
47197         Fix memmem test for mingw.
47198         * modules/memmem-tests (configure.ac): Check for alarm.
47199         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
47200         it.
47201         * doc/functions/memmem.texi: New file.
47202         * doc/gnulib.texi (Function Substitutes): Add memmem.
47203         Reported by Bruno Haible.
47204
47205 2008-01-04  Bruno Haible  <bruno@clisp.org>
47206
47207         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
47208         Require gl_HEADER_STRINGS_H_DEFAULTS, not
47209         gl_HEADER_STRING_H_DEFAULTS.
47210
47211 2008-01-04  Eric Blake  <ebb9@byu.net>
47212
47213         Shorten duration of memmem test.
47214         * tests/test-memmem.c (main): Use alarm to declare failure if test
47215         is taking too long.
47216         Reported by Ralf Wildenhues.
47217
47218 2007-12-21  Simon Josefsson  <simon@josefsson.org>
47219
47220         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
47221         string, needed by strerror.
47222
47223 2008-01-03  Colin Watson  <cjwatson@debian.org>
47224             Bruno Haible  <bruno@clisp.org>
47225
47226         * doc/gnulib-tool.texi (Localization): New section.
47227
47228 2008-01-02  Bruno Haible  <bruno@clisp.org>
47229
47230         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
47231         variables to 'unsigned char *' type.
47232         Reported by Paul Eggert.
47233
47234 2008-01-02  Jim Meyering  <jim@meyering.net>
47235
47236         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
47237
47238 2007-12-31  Jim Meyering  <jim@meyering.net>
47239
47240         Avoid use of private FTS type name.
47241         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
47242
47243 2007-12-30  Karl Berry  <karl@gnu.org>
47244
47245         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
47246         work around defect in Texinfo and/or the standalone Info browser.
47247
47248 2007-12-30  Bruno Haible  <bruno@clisp.org>
47249
47250         Unify 5 copies of the KMP code.
47251         * lib/str-kmp.h: New file.
47252         * lib/c-strcasestr.c: Include str-kmp.h.
47253         (knuth_morris_pratt): Remove function.
47254         (c_strcasestr): Update.
47255         * lib/c-strstr.c: Include str-kmp.h.
47256         (knuth_morris_pratt): Remove function.
47257         (c_strcasestr): Update.
47258         * lib/mbscasestr.c: Include str-kmp.h.
47259         (knuth_morris_pratt_unibyte): Remove function.
47260         * lib/mbsstr.c: Include str-kmp.h.
47261         (knuth_morris_pratt_unibyte): Remove function.
47262         * lib/strcasestr.c: Include str-kmp.h.
47263         (knuth_morris_pratt): Remove function.
47264         (strcasestr): Update.
47265         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
47266         * modules/c-strstr (Files): Likewise.
47267         * modules/mbscasestr (Files): Likewise.
47268         * modules/mbsstr (Files): Likewise.
47269         * modules/strcasestr (Files): Likewise.
47270         Suggested by Paul Eggert.
47271
47272 2007-12-30  Bruno Haible  <bruno@clisp.org>
47273
47274         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
47275         defined.
47276
47277 2007-12-30  Bruno Haible  <bruno@clisp.org>
47278
47279         * lib/xmalloca.h: Include xalloc.h.
47280         (xnmalloca): New macro.
47281
47282 2007-12-30  Bruno Haible  <bruno@clisp.org>
47283
47284         * lib/malloca.h (nmalloca): New macro.
47285         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
47286         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
47287         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
47288         knuth_morris_pratt_multibyte): Likewise.
47289         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
47290         knuth_morris_pratt_multibyte): Likewise.
47291         * lib/memmem.c (knuth_morris_pratt): Likewise.
47292         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
47293
47294 2007-12-25  Bruno Haible  <bruno@clisp.org>
47295
47296         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
47297         * lib/glob.c: Don't include openat.h.
47298         (link_exists2_p): Add back the code that deals with the
47299         !GLOB_ALTDIRFUNC case.
47300         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
47301         let it do the filename concatenation.
47302         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
47303         * modules/glob (Depends-on): Remove openat.
47304
47305 2007-12-31  Bruno Haible  <bruno@clisp.org>
47306
47307         * modules/dirfd (License): Change to LGPLv2+.
47308         Approved by Jim Meyering.
47309
47310 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47311
47312         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47313         when multiplying M by sizeof (size_t).
47314
47315 2007-12-10  Martin Lambers  <marlam@marlam.de>
47316
47317         Override getpagesize on mingw.
47318         * lib/getpagesize.c: New file.
47319         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47320         * modules/getpagesize (Files): Add lib/getpagesize.c.
47321         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47323         REPLACE_GETPAGESIZE.
47324         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47325
47326 2007-12-25  Bruno Haible  <bruno@clisp.org>
47327
47328         * modules/localcharset (Notice): New field.
47329         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47330         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47331
47332 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47333             Bruno Haible  <bruno@clisp.org>
47334
47335         Avoid using the syntax symbol() in formatted documentation.
47336         * MODULES.html.sh (func_module): When replacing symbol() with a
47337         hyperlink, remove the parentheses. Show an error if some remain.
47338         Recognize and render the '...' syntax.
47339         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47340         Rework. Add paragraph about GCC's inlining.
47341         * doc/alloca.texi: Likewise.
47342         * doc/error.texi: Remove parentheses from symbol reference.
47343         * doc/gnulib-intro.texi: Likewise.
47344         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47345         * modules/fnmatch (Description): Reword to say "the ... function".
47346         * modules/full-read (Description): Likewise.
47347         * modules/full-write (Description): Likewise.
47348         * modules/safe-read (Description): Likewise.
47349         * modules/safe-write (Description): Likewise.
47350         * modules/strchrnul (Description): Likewise.
47351         * modules/trim (Description): Likewise.
47352         * modules/error (Description): Remove parentheses from symbol
47353         references.
47354         * modules/verror (Description): Likewise.
47355         Reported by Karl Berry.
47356
47357 2007-12-25  Bruno Haible  <bruno@clisp.org>
47358
47359         Fixup after 2007-10-16 commit.
47360         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47361
47362 2007-12-24  Bruno Haible  <bruno@clisp.org>
47363
47364         Make --enable-relocatable work with DESTDIR.
47365         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47366         to compute installdir from destprog.
47367         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47368         also set the RELOC_DESTDIR variable.
47369         Reported by Левашев Иван <octagram@bluebottle.com>.
47370
47371 2007-12-24  Bruno Haible  <bruno@clisp.org>
47372
47373         Fix link error due to xalloc_die().
47374         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47375         of xreadlink.
47376         * lib/relocwrapper.c: Update comments.
47377         * build-aux/install-reloc: Remove xreadlink.c from file list.
47378         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47379         xreadlink.c.
47380         Reported by Левашев Иван <octagram@bluebottle.com>.
47381
47382 2007-12-24  Bruno Haible  <bruno@clisp.org>
47383
47384         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47385         * lib/setenv.h: Remove file.
47386         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47387         lib/setenv.h.
47388         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47389         (Depends-on): Add stdlib.
47390         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47391         gl_FUNC_UNSETENV.
47392         (Include): Replace setenv.h with <stdlib.h>.
47393         * modules/unsetenv: New file.
47394         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47395         * lib/unsetenv.c: Include <stdlib.h> first.
47396         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47397         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47398         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47399         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47400         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47401         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47403         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47404         * doc/functions/unsetenv.texi: Update.
47405         * modules/xsetenv (Depends-on): Add unsetenv.
47406         * modules/getdate (Depends-on): Likewise.
47407         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47408         * lib/xsetenv.c: Don't include setenv.h.
47409         * lib/getdate.y: Likewise.
47410         * lib/relocwrapper.c: Likewise.
47411         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47412         (Depends-on): Add stdlib.
47413         * NEWS: Mention the changes.
47414         Reported by Левашев Иван <octagram@bluebottle.com>.
47415
47416 2007-12-23  Bruno Haible  <bruno@clisp.org>
47417
47418         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47419         indentation.
47420
47421 2007-12-23  Bruno Haible  <bruno@clisp.org>
47422
47423         * lib/c-strcasestr.c: Add more comments.
47424         * lib/c-strstr.c: Likewise.
47425         * lib/mbscasestr.c: Likewise.
47426         * lib/mbsstr.c: Likewise.
47427         * lib/strcasestr.c: Likewise.
47428         * lib/memmem.c: Likewise.
47429
47430 2007-12-23  Bruno Haible  <bruno@clisp.org>
47431
47432         * tests/test-memmem.c: Include <string.h> first.
47433
47434 2007-12-22  Bruno Haible  <bruno@clisp.org>
47435
47436         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47437         the contents of $testsbase.
47438         Reported by Ralf Wildenhues.
47439
47440 2007-12-22  Bruno Haible  <bruno@clisp.org>
47441
47442         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47443         two variables local_ldadd_before, local_ldadd_last.
47444
47445 2007-12-20  Eric Blake  <ebb9@byu.net>
47446
47447         Work around circular library issue when cross-compiling.
47448         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47449         that progname.o does not need to pull in rpl_memcmp.
47450
47451 2007-12-19  Eric Blake  <ebb9@byu.net>
47452
47453         Fix memmem to avoid O(n^2) worst-case complexity.
47454         * lib/memmem.c (knuth_morris_pratt): New function.
47455         (memmem): Use it if first few naive iterations fail.
47456         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47457         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47458         * modules/memchr (License): Likewise.
47459         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47460         malloca.
47461         * tests/test-memmem.c: Rewrite, borrowing ideas from
47462         test-mbsstr1.c; the old version wouldn't even compile!
47463         * modules/memmem-tests: New file.
47464         * lib/string.in.h (rpl_memmem): Add declaration.
47465         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47466         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47467         REPLACE_MEMMEM.
47468
47469 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47470
47471         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47472         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47473         before any system include files, and undef after them all.  This
47474         should fix a problem on VMS reported by John E. Malmberg in
47475         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47476
47477 2007-12-17  Eric Blake  <ebb9@byu.net>
47478
47479         Revert addition of verify, for BSD/OS.
47480         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47481         can't handle large files, for the sake of obsolete platforms.
47482         * modules/fseeko (Depends-on): Remove verify.
47483         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47484         * doc/functions/ftello.texi (ftello): Likewise.
47485         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47486         Reported by Larry Jones.
47487
47488 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47489
47490         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47491         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47492
47493 2007-12-17  Jim Meyering  <meyering@redhat.com>
47494
47495         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47496         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47497         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47498         * modules/getcwd (Depends-on): Add openat.
47499         Reported by Petr Salinger.
47500
47501 2007-12-17  Bruno Haible  <bruno@clisp.org>
47502
47503         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47504         avoid a segmentation fault of the configure test on x86_64 systems.
47505
47506 2007-12-15  Jim Meyering  <meyering@redhat.com>
47507
47508         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47509
47510 2007-12-13  Eric Blake  <ebb9@byu.net>
47511
47512         Another fseek test.
47513         * tests/test-fseek.c (main): Also test ungetc handling.
47514         * tests/test-fseeko.c (main): Likewise.
47515         * modules/fseeko (Depends-on): Add verify.
47516         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47517         large.
47518         Reported by Larry Jones.
47519
47520         Fix fseeko on mingw.
47521         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47522         seek.
47523
47524         Beef up fseek tests.
47525         * tests/test-fseek.c (main): Also test eof handling.
47526         * tests/test-fseeko.c (main): Likewise.
47527         Reported by Larry Jones.
47528
47529 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
47530
47531         Fix fseeko on BSD-based platforms.
47532         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
47533         successful seek.
47534
47535 2007-12-12  Eric Blake  <ebb9@byu.net>
47536
47537         Allow circular dependency of separate libtests.a
47538         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
47539         when use_libtests.
47540
47541 2007-12-11  Eric Blake  <ebb9@byu.net>
47542
47543         Fix bug with -0.0L in previous patch.
47544         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
47545         * tests/test-isnan.c (main): Also test on zeroes.
47546         * tests/test-isnanf.c (main): Likewise.
47547         * tests/test-isnanl.h (main): Likewise.
47548
47549         Detect pseudo-denormals on x86 even when cross-compiling.
47550         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
47551         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
47552         invalid bit patterns that happen to satisfy ==.
47553
47554         Avoid link failures with separate libtests.a.
47555         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
47556         last, to satisfy circular dependencies.
47557
47558 2007-12-11  Eric Blake  <ebb9@byu.net>
47559         and Bruno Haible  <bruno@clisp.org>
47560
47561         Fix OpenBSD 4.0 <float.h> handling of long double.
47562         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
47563         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
47564         * doc/headers/float.texi (float.h): Document OpenBSD bug.
47565
47566 2007-12-11  Jim Meyering  <meyering@redhat.com>
47567
47568         * users.txt: Add libvirt.
47569
47570         Support versions of autoconf prior to 2.59c.
47571         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
47572         if it is not already defined.
47573
47574 2007-12-09  Bruno Haible  <bruno@clisp.org>
47575
47576         Let 'gnulib-tool --import' collect sources needed for the tests in
47577         tests/ rather than in lib/.
47578         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
47579         argument. If true, add rules to generate libtests.a, and put libtests.a
47580         into $(LDADD). Consider source files in subdirectories and set
47581         uses_subdirs.
47582         (func_emit_initmacro_start, func_emit_initmacro_end,
47583         func_emit_initmacro_done): Pass all arguments explicitly.
47584         (func_import): Determine two module lists main_modules,
47585         testsrelated_modules. Determine use_libtests. Determine two variables
47586         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
47587         instead of just sed_transform_lib_file. Determine two variables
47588         main_files and testsrelated_files. Compute 'files' as the union of
47589         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
47590         func_add_or_update. In the generated gnulib-comp.m4, collect the
47591         object files for tests/ in different variables than those for lib/.
47592         Substitute LIBTESTS_LIBDEPS.
47593         (func_create_testdir): Combine the uses_subdirs results from
47594         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
47595
47596 2007-12-09  Bruno Haible  <bruno@clisp.org>
47597
47598         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
47599         the build-aux directory.
47600
47601 2007-12-09  Bruno Haible  <bruno@clisp.org>
47602
47603         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
47604         introduced on 2006-09-09.
47605
47606 2007-12-07  Jim Meyering  <meyering@redhat.com>
47607
47608         Let these macros work also with autoconf-2.59.
47609         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
47610         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
47611         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47612
47613 2007-12-06  Jim Meyering  <meyering@redhat.com>
47614
47615         Avoid a configure-time syntax error in gl_FUNC_ACL.
47616         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
47617         function in each branch, before testing the cache variable.
47618
47619 2007-12-04  Eric Blake  <ebb9@byu.net>
47620
47621         Make scripts executable.
47622         * build-aux/config.guess: Add execute permissions.
47623         * build-aux/config.sub: Likewise.
47624         * build-aux/gendocs.sh: Likewise.
47625
47626         Fix frexp on mingw.
47627         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47628         cross-compiling.
47629         * doc/functions/frexp.texi (frexp): Document the bug.
47630
47631         Make cygwin fseeko check more reliable.
47632         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47633         version numbers, rather than unrelated feature check.
47634         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47635         * doc/functions/ftello.texi (ftello): Likewise.
47636         Reported by Bruno Haible.
47637
47638         * m4/strerror.m4: Bump version number.
47639
47640 2007-12-03  Bruno Haible  <bruno@clisp.org>
47641
47642         * doc/functions/mprotect.texi: Mention the mingw problem.
47643
47644 2007-12-03  Eric Blake  <ebb9@byu.net>
47645
47646         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47647         REPLACE_STRERROR is initialized before this macro.
47648
47649 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47650
47651         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47652         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47653         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47654         put -lsec in even for programs other than 'ls'.  This fixes a problem
47655         for gettext reported by Bruno Haible in
47656         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47657         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47658         Add support for Solaris 10.  This isn't efficient, but should get the
47659         job done for now.
47660
47661 2007-12-03  James Youngman  <jay@gnu.org>
47662
47663         * doc/regexprops-generic.texi: change "an close-group" to "a
47664         close-group" and "illegal" to "not allowed".
47665
47666 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47667
47668         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47669         pr_byname.h. Needed for the rare case when the maintainer has done
47670         "make maintainer-clean" in the source directory and then attempts a
47671         build outside the source directory.
47672         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47673         scripts_byname.h.
47674
47675 2007-12-02  Martin Lambers <marlam@marlam.de>
47676             Bruno Haible  <bruno@clisp.org>
47677
47678         * lib/getpagesize.h: Remove file.
47679         * lib/unistd.in.h: Include declaration of getpagesize here.
47680         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47681         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47682         HAVE_SYS_PARAM_H.
47683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47684         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47685         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47686         (Depends-on): Add unistd.
47687         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47688         (Include): Use <unistd.h> instead of getpagesize.h.
47689         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47690         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47691         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
47692         gl_GETPAGESIZE invocation, already handled by module dependency.
47693         * lib/pagealign_alloc.c: Don't include getpagesize.h.
47694
47695 2007-12-02  Bruno Haible  <bruno@clisp.org>
47696
47697         * modules/strings-tests: New file.
47698         * tests/test-strings.c: New file.
47699
47700         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
47701         * lib/strings.in.h: New file.
47702         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
47703         * m4/strings_h.m4: New file.
47704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
47705         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
47706         * modules/strings: New file.
47707         * modules/string (Makefile.am): Update.
47708         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
47709         Reported by Karl Berry.
47710
47711 2007-12-01  Eric Blake  <ebb9@byu.net>
47712
47713         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
47714         accomodate fix in cygwin 1.5.25.
47715
47716 2007-12-01  Jim Meyering  <meyering@redhat.com>
47717
47718         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
47719         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
47720         that would inhibit utf8-optimization of a regexp containing line-
47721         or buffer-anchors, e.g., `^', `$'.
47722
47723 2007-11-30  Bruno Haible  <bruno@clisp.org>
47724
47725         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
47726         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
47727         glthread_recursive_lock_init.
47728         * lib/lock.c (glthread_recursive_lock_init)
47729         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
47730         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47731
47732 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
47733
47734         New function qset_acl, like set_acl but with syscall semantics.
47735         * lib/acl.h (qset_acl): New decl.
47736         * lib/acl.c (qset_acl): New function.
47737         (set_acl): Use new function.  Use more-consistent diagnostics.
47738
47739 2007-11-28  Jim Meyering  <meyering@redhat.com>
47740
47741         * modules/physmem (License): Change from GPL to LGPLv2+.
47742
47743 2007-11-26  Bruno Haible  <bruno@clisp.org>
47744
47745         * lib/vasnprintf.c (decode_long_double): Don't abort if the
47746         'long double' type has excess precision.
47747         Reported by Jim Meyering in
47748         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
47749
47750 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47751
47752         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
47753         Sync from <http://gnu.org/licenses>.
47754         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
47755         with license text from same location.
47756         * doc/maintain.texi, doc/standards.texi:  Sync from
47757         <http://savannah.gnu.org/projects/gnustandards>.
47758
47759 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
47760         and Jim Meyering  <meyering@redhat.com>
47761
47762         Adjust getdate' grammar to accept a slightly more regular language.
47763         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
47764         Before, the former was rejected.
47765         * lib/getdate.y (digits_to_date_time): New function, factored
47766         out of ...
47767         (number): ...here.  Just call digits_to_date_time.
47768         (hybrid): New non-terminal to handle an <unsigned number,
47769         signed relative offset> sequence consistently.
47770
47771 2007-11-18  Jim Meyering  <meyering@redhat.com>
47772
47773         Pull my changes from coreutils:
47774         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
47775         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
47776         use of $gnulib_tool_option_extras, so that it's separated from the
47777         preceding argument.
47778
47779         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
47780         * build-aux/bootstrap (cp_mark_as_generated): Create any required
47781         parent destination directories before copying a file into place.
47782
47783 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47784
47785         bootstrap: work also with 4-argument variant of AC_INIT
47786         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
47787
47788 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47789
47790         Port test-getaddrinfo to Solaris.
47791         Problem reported by Bruno Haible in
47792         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
47793         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
47794         explanation of setting 'hints'.
47795         Don't reject an implementation merely because it returns EAI_SERVICE.
47796         (EAI_SERVICE): Define to 0 if not defined.
47797
47798 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47799
47800         The license of gnu-make and posix-shell is now "GPLed build tool".
47801         * modules/gnu-make (License): Likewise.
47802         * modules/posix-shell (License): Likewise.
47803
47804         New module posix-shell, for determining a POSIX shell
47805         or perhaps something that is close enough to a POSIX shell.
47806         * m4/posix-shell.m4: New file.
47807         * modules/posix-shell: New file.
47808
47809         * MODULES.html.sh: Mention new module.
47810
47811         New module gnu-make, for determining whether we're using GNU Make.
47812         * m4/gnu-make.m4: New file.
47813         * modules/gnu-make: New file.
47814         * MODULES.html.sh: Mention new module.
47815
47816 2007-11-14  Jim Meyering  <meyering@redhat.com>
47817
47818         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
47819         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
47820         use this macro to create a function _definition_.
47821         Remove useless "#undef ARGMATCH_DIE".
47822
47823 2007-11-14  Bruno Haible  <bruno@clisp.org>
47824
47825         * lib/config.charset: Update for OpenBSD 4.1.
47826         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
47827
47828 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
47829
47830         Document 64-bit #if problems in stdint.texi.
47831         * doc/headers/stdint.texi (stdint.h): Mention problems with
47832         64-bit-#if, and how to work around them.
47833
47834         Don't insist on 'long long int' support in the preprocessor.  It
47835         breaks too many things.  For example, PRIdMAX still uses a 'long
47836         long int' format with the latest Sun compiler, even though
47837         HAVE_LONG_LONG_INT isn't defined due to that compiler's
47838         preprocessor problem.  This causes the latest coreutils to dump
47839         core on Solaris 10 sparc with the Sun C compiler.
47840         Instead, fix the 2007-10-16 problem in a different way, by evaluating
47841         the troublesome expressions at configure-time, not at #if-time.
47842         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
47843         preprocessor.
47844         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
47845         compile-time C checks, done at 'configure'-time.
47846         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
47847         * modules/inttypes (Makefile): Substitute the new symbols that
47848         gl_INTTYPES_H now generates.
47849         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
47850
47851 2007-11-12  Bruno Haible  <bruno@clisp.org>
47852
47853         Tests for Unicode character classification functions.
47854
47855         * modules/unictype/bidicategory-byname-tests: New file.
47856         * modules/unictype/bidicategory-name-tests: New file.
47857         * modules/unictype/bidicategory-of-tests: New file.
47858         * modules/unictype/bidicategory-test-tests: New file.
47859         * modules/unictype/block-list-tests: New file.
47860         * modules/unictype/block-of-tests: New file.
47861         * modules/unictype/block-test-tests: New file.
47862         * modules/unictype/category-C-tests: New file.
47863         * modules/unictype/category-Cc-tests: New file.
47864         * modules/unictype/category-Cf-tests: New file.
47865         * modules/unictype/category-Cn-tests: New file.
47866         * modules/unictype/category-Co-tests: New file.
47867         * modules/unictype/category-Cs-tests: New file.
47868         * modules/unictype/category-L-tests: New file.
47869         * modules/unictype/category-Ll-tests: New file.
47870         * modules/unictype/category-Lm-tests: New file.
47871         * modules/unictype/category-Lo-tests: New file.
47872         * modules/unictype/category-Lt-tests: New file.
47873         * modules/unictype/category-Lu-tests: New file.
47874         * modules/unictype/category-M-tests: New file.
47875         * modules/unictype/category-Mc-tests: New file.
47876         * modules/unictype/category-Me-tests: New file.
47877         * modules/unictype/category-Mn-tests: New file.
47878         * modules/unictype/category-N-tests: New file.
47879         * modules/unictype/category-Nd-tests: New file.
47880         * modules/unictype/category-Nl-tests: New file.
47881         * modules/unictype/category-No-tests: New file.
47882         * modules/unictype/category-P-tests: New file.
47883         * modules/unictype/category-Pc-tests: New file.
47884         * modules/unictype/category-Pd-tests: New file.
47885         * modules/unictype/category-Pe-tests: New file.
47886         * modules/unictype/category-Pf-tests: New file.
47887         * modules/unictype/category-Pi-tests: New file.
47888         * modules/unictype/category-Po-tests: New file.
47889         * modules/unictype/category-Ps-tests: New file.
47890         * modules/unictype/category-S-tests: New file.
47891         * modules/unictype/category-Sc-tests: New file.
47892         * modules/unictype/category-Sk-tests: New file.
47893         * modules/unictype/category-Sm-tests: New file.
47894         * modules/unictype/category-So-tests: New file.
47895         * modules/unictype/category-Z-tests: New file.
47896         * modules/unictype/category-Zl-tests: New file.
47897         * modules/unictype/category-Zp-tests: New file.
47898         * modules/unictype/category-Zs-tests: New file.
47899         * modules/unictype/category-and-not-tests: New file.
47900         * modules/unictype/category-and-tests: New file.
47901         * modules/unictype/category-byname-tests: New file.
47902         * modules/unictype/category-name-tests: New file.
47903         * modules/unictype/category-none-tests: New file.
47904         * modules/unictype/category-of-tests: New file.
47905         * modules/unictype/category-or-tests: New file.
47906         * modules/unictype/category-test-withtable-tests: New file.
47907         * modules/unictype/combining-class-tests: New file.
47908         * modules/unictype/ctype-alnum-tests: New file.
47909         * modules/unictype/ctype-alpha-tests: New file.
47910         * modules/unictype/ctype-blank-tests: New file.
47911         * modules/unictype/ctype-cntrl-tests: New file.
47912         * modules/unictype/ctype-digit-tests: New file.
47913         * modules/unictype/ctype-graph-tests: New file.
47914         * modules/unictype/ctype-lower-tests: New file.
47915         * modules/unictype/ctype-print-tests: New file.
47916         * modules/unictype/ctype-punct-tests: New file.
47917         * modules/unictype/ctype-space-tests: New file.
47918         * modules/unictype/ctype-upper-tests: New file.
47919         * modules/unictype/ctype-xdigit-tests: New file.
47920         * modules/unictype/decimal-digit-tests: New file.
47921         * modules/unictype/digit-tests: New file.
47922         * modules/unictype/mirror-tests: New file.
47923         * modules/unictype/numeric-tests: New file.
47924         * modules/unictype/property-alphabetic-tests: New file.
47925         * modules/unictype/property-ascii-hex-digit-tests: New file.
47926         * modules/unictype/property-bidi-arabic-digit-tests: New file.
47927         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
47928         * modules/unictype/property-bidi-block-separator-tests: New file.
47929         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
47930         * modules/unictype/property-bidi-common-separator-tests: New file.
47931         * modules/unictype/property-bidi-control-tests: New file.
47932         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
47933         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
47934         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
47935         * modules/unictype/property-bidi-european-digit-tests: New file.
47936         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
47937         * modules/unictype/property-bidi-left-to-right-tests: New file.
47938         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
47939         * modules/unictype/property-bidi-other-neutral-tests: New file.
47940         * modules/unictype/property-bidi-pdf-tests: New file.
47941         * modules/unictype/property-bidi-segment-separator-tests: New file.
47942         * modules/unictype/property-bidi-whitespace-tests: New file.
47943         * modules/unictype/property-byname-tests: New file.
47944         * modules/unictype/property-combining-tests: New file.
47945         * modules/unictype/property-composite-tests: New file.
47946         * modules/unictype/property-currency-symbol-tests: New file.
47947         * modules/unictype/property-dash-tests: New file.
47948         * modules/unictype/property-decimal-digit-tests: New file.
47949         * modules/unictype/property-default-ignorable-code-point-tests: New file.
47950         * modules/unictype/property-deprecated-tests: New file.
47951         * modules/unictype/property-diacritic-tests: New file.
47952         * modules/unictype/property-extender-tests: New file.
47953         * modules/unictype/property-format-control-tests: New file.
47954         * modules/unictype/property-grapheme-base-tests: New file.
47955         * modules/unictype/property-grapheme-extend-tests: New file.
47956         * modules/unictype/property-grapheme-link-tests: New file.
47957         * modules/unictype/property-hex-digit-tests: New file.
47958         * modules/unictype/property-hyphen-tests: New file.
47959         * modules/unictype/property-id-continue-tests: New file.
47960         * modules/unictype/property-id-start-tests: New file.
47961         * modules/unictype/property-ideographic-tests: New file.
47962         * modules/unictype/property-ids-binary-operator-tests: New file.
47963         * modules/unictype/property-ids-trinary-operator-tests: New file.
47964         * modules/unictype/property-ignorable-control-tests: New file.
47965         * modules/unictype/property-iso-control-tests: New file.
47966         * modules/unictype/property-join-control-tests: New file.
47967         * modules/unictype/property-left-of-pair-tests: New file.
47968         * modules/unictype/property-line-separator-tests: New file.
47969         * modules/unictype/property-logical-order-exception-tests: New file.
47970         * modules/unictype/property-lowercase-tests: New file.
47971         * modules/unictype/property-math-tests: New file.
47972         * modules/unictype/property-non-break-tests: New file.
47973         * modules/unictype/property-not-a-character-tests: New file.
47974         * modules/unictype/property-numeric-tests: New file.
47975         * modules/unictype/property-other-alphabetic-tests: New file.
47976         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
47977         * modules/unictype/property-other-grapheme-extend-tests: New file.
47978         * modules/unictype/property-other-id-continue-tests: New file.
47979         * modules/unictype/property-other-id-start-tests: New file.
47980         * modules/unictype/property-other-lowercase-tests: New file.
47981         * modules/unictype/property-other-math-tests: New file.
47982         * modules/unictype/property-other-uppercase-tests: New file.
47983         * modules/unictype/property-paired-punctuation-tests: New file.
47984         * modules/unictype/property-paragraph-separator-tests: New file.
47985         * modules/unictype/property-pattern-syntax-tests: New file.
47986         * modules/unictype/property-pattern-white-space-tests: New file.
47987         * modules/unictype/property-private-use-tests: New file.
47988         * modules/unictype/property-punctuation-tests: New file.
47989         * modules/unictype/property-quotation-mark-tests: New file.
47990         * modules/unictype/property-radical-tests: New file.
47991         * modules/unictype/property-sentence-terminal-tests: New file.
47992         * modules/unictype/property-soft-dotted-tests: New file.
47993         * modules/unictype/property-space-tests: New file.
47994         * modules/unictype/property-terminal-punctuation-tests: New file.
47995         * modules/unictype/property-test-tests: New file.
47996         * modules/unictype/property-titlecase-tests: New file.
47997         * modules/unictype/property-unassigned-code-value-tests: New file.
47998         * modules/unictype/property-unified-ideograph-tests: New file.
47999         * modules/unictype/property-uppercase-tests: New file.
48000         * modules/unictype/property-variation-selector-tests: New file.
48001         * modules/unictype/property-white-space-tests: New file.
48002         * modules/unictype/property-xid-continue-tests: New file.
48003         * modules/unictype/property-xid-start-tests: New file.
48004         * modules/unictype/property-zero-width-tests: New file.
48005         * modules/unictype/scripts-tests: New file.
48006         * modules/unictype/syntax-c-ident-tests: New file.
48007         * modules/unictype/syntax-c-whitespace-tests: New file.
48008         * modules/unictype/syntax-java-ident-tests: New file.
48009         * modules/unictype/syntax-java-whitespace-tests: New file.
48010         * tests/unictype/test-bidi_byname.c: New file.
48011         * tests/unictype/test-bidi_name.c: New file.
48012         * tests/unictype/test-bidi_of.c: New file.
48013         * tests/unictype/test-bidi_test.c: New file.
48014         * tests/unictype/test-block_list.c: New file.
48015         * tests/unictype/test-block_of.c: New file.
48016         * tests/unictype/test-block_test.c: New file.
48017         * tests/unictype/test-categ_and.c: New file.
48018         * tests/unictype/test-categ_and_not.c: New file.
48019         * tests/unictype/test-categ_byname.c: New file.
48020         * tests/unictype/test-categ_name.c: New file.
48021         * tests/unictype/test-categ_none.c: New file.
48022         * tests/unictype/test-categ_of.c: New file.
48023         * tests/unictype/test-categ_or.c: New file.
48024         * tests/unictype/test-categ_test_withtable.c: New file.
48025         * tests/unictype/test-combining.c: New file.
48026         * tests/unictype/test-decdigit.c: New file.
48027         * tests/unictype/test-digit.c: New file.
48028         * tests/unictype/test-mirror.c: New file.
48029         * tests/unictype/test-numeric.c: New file.
48030         * tests/unictype/test-pr_byname.c: New file.
48031         * tests/unictype/test-pr_test.c: New file.
48032         * tests/unictype/test-predicate-part1.h: New file.
48033         * tests/unictype/test-predicate-part2.h: New file.
48034         * tests/unictype/test-scripts.c: New file.
48035         * tests/unictype/test-sy_c_ident.c: New file.
48036         * tests/unictype/test-sy_java_ident.c: New file.
48037
48038         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
48039         for Unicode 5.0.0.
48040         * tests/unictype/test-categ_Cc.c: Likewise.
48041         * tests/unictype/test-categ_Cf.c: Likewise.
48042         * tests/unictype/test-categ_Cn.c: Likewise.
48043         * tests/unictype/test-categ_Co.c: Likewise.
48044         * tests/unictype/test-categ_Cs.c: Likewise.
48045         * tests/unictype/test-categ_L.c: Likewise.
48046         * tests/unictype/test-categ_Ll.c: Likewise.
48047         * tests/unictype/test-categ_Lm.c: Likewise.
48048         * tests/unictype/test-categ_Lo.c: Likewise.
48049         * tests/unictype/test-categ_Lt.c: Likewise.
48050         * tests/unictype/test-categ_Lu.c: Likewise.
48051         * tests/unictype/test-categ_M.c: Likewise.
48052         * tests/unictype/test-categ_Mc.c: Likewise.
48053         * tests/unictype/test-categ_Me.c: Likewise.
48054         * tests/unictype/test-categ_Mn.c: Likewise.
48055         * tests/unictype/test-categ_N.c: Likewise.
48056         * tests/unictype/test-categ_Nd.c: Likewise.
48057         * tests/unictype/test-categ_Nl.c: Likewise.
48058         * tests/unictype/test-categ_No.c: Likewise.
48059         * tests/unictype/test-categ_P.c: Likewise.
48060         * tests/unictype/test-categ_Pc.c: Likewise.
48061         * tests/unictype/test-categ_Pd.c: Likewise.
48062         * tests/unictype/test-categ_Pe.c: Likewise.
48063         * tests/unictype/test-categ_Pf.c: Likewise.
48064         * tests/unictype/test-categ_Pi.c: Likewise.
48065         * tests/unictype/test-categ_Po.c: Likewise.
48066         * tests/unictype/test-categ_Ps.c: Likewise.
48067         * tests/unictype/test-categ_S.c: Likewise.
48068         * tests/unictype/test-categ_Sc.c: Likewise.
48069         * tests/unictype/test-categ_Sk.c: Likewise.
48070         * tests/unictype/test-categ_Sm.c: Likewise.
48071         * tests/unictype/test-categ_So.c: Likewise.
48072         * tests/unictype/test-categ_Z.c: Likewise.
48073         * tests/unictype/test-categ_Zl.c: Likewise.
48074         * tests/unictype/test-categ_Zp.c: Likewise.
48075         * tests/unictype/test-categ_Zs.c: Likewise.
48076         * tests/unictype/test-ctype_alnum.c: Likewise.
48077         * tests/unictype/test-ctype_alpha.c: Likewise.
48078         * tests/unictype/test-ctype_blank.c: Likewise.
48079         * tests/unictype/test-ctype_cntrl.c: Likewise.
48080         * tests/unictype/test-ctype_digit.c: Likewise.
48081         * tests/unictype/test-ctype_graph.c: Likewise.
48082         * tests/unictype/test-ctype_lower.c: Likewise.
48083         * tests/unictype/test-ctype_print.c: Likewise.
48084         * tests/unictype/test-ctype_punct.c: Likewise.
48085         * tests/unictype/test-ctype_space.c: Likewise.
48086         * tests/unictype/test-ctype_upper.c: Likewise.
48087         * tests/unictype/test-ctype_xdigit.c: Likewise.
48088         * tests/unictype/test-decdigit.h: Likewise.
48089         * tests/unictype/test-digit.h: Likewise.
48090         * tests/unictype/test-numeric.h: Likewise.
48091         * tests/unictype/test-pr_alphabetic.c: Likewise.
48092         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
48093         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
48094         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
48095         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
48096         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
48097         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
48098         * tests/unictype/test-pr_bidi_control.c: Likewise.
48099         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
48100         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
48101         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
48102         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
48103         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
48104         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
48105         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
48106         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
48107         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
48108         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
48109         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
48110         * tests/unictype/test-pr_combining.c: Likewise.
48111         * tests/unictype/test-pr_composite.c: Likewise.
48112         * tests/unictype/test-pr_currency_symbol.c: Likewise.
48113         * tests/unictype/test-pr_dash.c: Likewise.
48114         * tests/unictype/test-pr_decimal_digit.c: Likewise.
48115         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
48116         * tests/unictype/test-pr_deprecated.c: Likewise.
48117         * tests/unictype/test-pr_diacritic.c: Likewise.
48118         * tests/unictype/test-pr_extender.c: Likewise.
48119         * tests/unictype/test-pr_format_control.c: Likewise.
48120         * tests/unictype/test-pr_grapheme_base.c: Likewise.
48121         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
48122         * tests/unictype/test-pr_grapheme_link.c: Likewise.
48123         * tests/unictype/test-pr_hex_digit.c: Likewise.
48124         * tests/unictype/test-pr_hyphen.c: Likewise.
48125         * tests/unictype/test-pr_id_continue.c: Likewise.
48126         * tests/unictype/test-pr_id_start.c: Likewise.
48127         * tests/unictype/test-pr_ideographic.c: Likewise.
48128         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
48129         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
48130         * tests/unictype/test-pr_ignorable_control.c: Likewise.
48131         * tests/unictype/test-pr_iso_control.c: Likewise.
48132         * tests/unictype/test-pr_join_control.c: Likewise.
48133         * tests/unictype/test-pr_left_of_pair.c: Likewise.
48134         * tests/unictype/test-pr_line_separator.c: Likewise.
48135         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
48136         * tests/unictype/test-pr_lowercase.c: Likewise.
48137         * tests/unictype/test-pr_math.c: Likewise.
48138         * tests/unictype/test-pr_non_break.c: Likewise.
48139         * tests/unictype/test-pr_not_a_character.c: Likewise.
48140         * tests/unictype/test-pr_numeric.c: Likewise.
48141         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
48142         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
48143         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
48144         * tests/unictype/test-pr_other_id_continue.c: Likewise.
48145         * tests/unictype/test-pr_other_id_start.c: Likewise.
48146         * tests/unictype/test-pr_other_lowercase.c: Likewise.
48147         * tests/unictype/test-pr_other_math.c: Likewise.
48148         * tests/unictype/test-pr_other_uppercase.c: Likewise.
48149         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
48150         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
48151         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
48152         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
48153         * tests/unictype/test-pr_private_use.c: Likewise.
48154         * tests/unictype/test-pr_punctuation.c: Likewise.
48155         * tests/unictype/test-pr_quotation_mark.c: Likewise.
48156         * tests/unictype/test-pr_radical.c: Likewise.
48157         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
48158         * tests/unictype/test-pr_soft_dotted.c: Likewise.
48159         * tests/unictype/test-pr_space.c: Likewise.
48160         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
48161         * tests/unictype/test-pr_titlecase.c: Likewise.
48162         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
48163         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
48164         * tests/unictype/test-pr_uppercase.c: Likewise.
48165         * tests/unictype/test-pr_variation_selector.c: Likewise.
48166         * tests/unictype/test-pr_white_space.c: Likewise.
48167         * tests/unictype/test-pr_xid_continue.c: Likewise.
48168         * tests/unictype/test-pr_xid_start.c: Likewise.
48169         * tests/unictype/test-pr_zero_width.c: Likewise.
48170         * tests/unictype/test-sy_c_whitespace.c: Likewise.
48171         * tests/unictype/test-sy_java_whitespace.c: Likewise.
48172
48173 2007-11-12  Bruno Haible  <bruno@clisp.org>
48174
48175         Unicode character classification functions.
48176         * lib/unictype.h: New file.
48177         * modules/unictype/base: New file.
48178         * modules/unictype/category-L: New file.
48179         * modules/unictype/category-Lu: New file.
48180         * modules/unictype/category-Ll: New file.
48181         * modules/unictype/category-Lt: New file.
48182         * modules/unictype/category-Lm: New file.
48183         * modules/unictype/category-Lo: New file.
48184         * modules/unictype/category-M: New file.
48185         * modules/unictype/category-Mn: New file.
48186         * modules/unictype/category-Mc: New file.
48187         * modules/unictype/category-Me: New file.
48188         * modules/unictype/category-N: New file.
48189         * modules/unictype/category-Nd: New file.
48190         * modules/unictype/category-Nl: New file.
48191         * modules/unictype/category-No: New file.
48192         * modules/unictype/category-P: New file.
48193         * modules/unictype/category-Pc: New file.
48194         * modules/unictype/category-Pd: New file.
48195         * modules/unictype/category-Ps: New file.
48196         * modules/unictype/category-Pe: New file.
48197         * modules/unictype/category-Pi: New file.
48198         * modules/unictype/category-Pf: New file.
48199         * modules/unictype/category-Po: New file.
48200         * modules/unictype/category-S: New file.
48201         * modules/unictype/category-Sm: New file.
48202         * modules/unictype/category-Sc: New file.
48203         * modules/unictype/category-Sk: New file.
48204         * modules/unictype/category-So: New file.
48205         * modules/unictype/category-Z: New file.
48206         * modules/unictype/category-Zs: New file.
48207         * modules/unictype/category-Zl: New file.
48208         * modules/unictype/category-Zp: New file.
48209         * modules/unictype/category-C: New file.
48210         * modules/unictype/category-Cc: New file.
48211         * modules/unictype/category-Cf: New file.
48212         * modules/unictype/category-Cs: New file.
48213         * modules/unictype/category-Co: New file.
48214         * modules/unictype/category-Cn: New file.
48215         * modules/unictype/category-or: New file.
48216         * modules/unictype/category-of: New file.
48217         * modules/unictype/category-test: New file.
48218         * modules/unictype/category-test-withtable: New file.
48219         * modules/unictype/category-byname: New file.
48220         * modules/unictype/category-none: New file.
48221         * modules/unictype/category-and: New file.
48222         * modules/unictype/category-and-not: New file.
48223         * modules/unictype/category-name: New file.
48224         * modules/unictype/combining-class: New file.
48225         * modules/unictype/category-all: New file.
48226         * modules/unictype/bidicategory-all: New file.
48227         * modules/unictype/bidicategory-byname: New file.
48228         * modules/unictype/bidicategory-name: New file.
48229         * modules/unictype/bidicategory-of: New file.
48230         * modules/unictype/bidicategory-test: New file.
48231         * modules/unictype/decimal-digit: New file.
48232         * modules/unictype/digit: New file.
48233         * modules/unictype/numeric: New file.
48234         * modules/unictype/mirror: New file.
48235         * modules/unictype/property-white-space: New file.
48236         * modules/unictype/property-alphabetic: New file.
48237         * modules/unictype/property-other-alphabetic: New file.
48238         * modules/unictype/property-not-a-character: New file.
48239         * modules/unictype/property-default-ignorable-code-point: New file.
48240         * modules/unictype/property-other-default-ignorable-code-point: New
48241         file.
48242         * modules/unictype/property-deprecated: New file.
48243         * modules/unictype/property-logical-order-exception: New file.
48244         * modules/unictype/property-variation-selector: New file.
48245         * modules/unictype/property-private-use: New file.
48246         * modules/unictype/property-unassigned-code-value: New file.
48247         * modules/unictype/property-uppercase: New file.
48248         * modules/unictype/property-other-uppercase: New file.
48249         * modules/unictype/property-lowercase: New file.
48250         * modules/unictype/property-other-lowercase: New file.
48251         * modules/unictype/property-titlecase: New file.
48252         * modules/unictype/property-soft-dotted: New file.
48253         * modules/unictype/property-id-start: New file.
48254         * modules/unictype/property-other-id-start: New file.
48255         * modules/unictype/property-id-continue: New file.
48256         * modules/unictype/property-other-id-continue: New file.
48257         * modules/unictype/property-xid-start: New file.
48258         * modules/unictype/property-xid-continue: New file.
48259         * modules/unictype/property-pattern-white-space: New file.
48260         * modules/unictype/property-pattern-syntax: New file.
48261         * modules/unictype/property-join-control: New file.
48262         * modules/unictype/property-grapheme-base: New file.
48263         * modules/unictype/property-grapheme-extend: New file.
48264         * modules/unictype/property-other-grapheme-extend: New file.
48265         * modules/unictype/property-grapheme-link: New file.
48266         * modules/unictype/property-bidi-control: New file.
48267         * modules/unictype/property-bidi-left-to-right: New file.
48268         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
48269         * modules/unictype/property-bidi-arabic-right-to-left: New file.
48270         * modules/unictype/property-bidi-european-digit: New file.
48271         * modules/unictype/property-bidi-eur-num-separator: New file.
48272         * modules/unictype/property-bidi-eur-num-terminator: New file.
48273         * modules/unictype/property-bidi-arabic-digit: New file.
48274         * modules/unictype/property-bidi-common-separator: New file.
48275         * modules/unictype/property-bidi-block-separator: New file.
48276         * modules/unictype/property-bidi-segment-separator: New file.
48277         * modules/unictype/property-bidi-whitespace: New file.
48278         * modules/unictype/property-bidi-non-spacing-mark: New file.
48279         * modules/unictype/property-bidi-boundary-neutral: New file.
48280         * modules/unictype/property-bidi-pdf: New file.
48281         * modules/unictype/property-bidi-embedding-or-override: New file.
48282         * modules/unictype/property-bidi-other-neutral: New file.
48283         * modules/unictype/property-hex-digit: New file.
48284         * modules/unictype/property-ascii-hex-digit: New file.
48285         * modules/unictype/property-ideographic: New file.
48286         * modules/unictype/property-unified-ideograph: New file.
48287         * modules/unictype/property-radical: New file.
48288         * modules/unictype/property-ids-binary-operator: New file.
48289         * modules/unictype/property-ids-trinary-operator: New file.
48290         * modules/unictype/property-zero-width: New file.
48291         * modules/unictype/property-space: New file.
48292         * modules/unictype/property-non-break: New file.
48293         * modules/unictype/property-iso-control: New file.
48294         * modules/unictype/property-format-control: New file.
48295         * modules/unictype/property-dash: New file.
48296         * modules/unictype/property-hyphen: New file.
48297         * modules/unictype/property-punctuation: New file.
48298         * modules/unictype/property-line-separator: New file.
48299         * modules/unictype/property-paragraph-separator: New file.
48300         * modules/unictype/property-quotation-mark: New file.
48301         * modules/unictype/property-sentence-terminal: New file.
48302         * modules/unictype/property-terminal-punctuation: New file.
48303         * modules/unictype/property-currency-symbol: New file.
48304         * modules/unictype/property-math: New file.
48305         * modules/unictype/property-other-math: New file.
48306         * modules/unictype/property-paired-punctuation: New file.
48307         * modules/unictype/property-left-of-pair: New file.
48308         * modules/unictype/property-combining: New file.
48309         * modules/unictype/property-composite: New file.
48310         * modules/unictype/property-decimal-digit: New file.
48311         * modules/unictype/property-numeric: New file.
48312         * modules/unictype/property-diacritic: New file.
48313         * modules/unictype/property-extender: New file.
48314         * modules/unictype/property-ignorable-control: New file.
48315         * modules/unictype/property-test: New file.
48316         * modules/unictype/property-byname: New file.
48317         * modules/unictype/property-all: New file.
48318         * modules/unictype/scripts: New file.
48319         * modules/unictype/scripts-all: New file.
48320         * modules/unictype/block-of: New file.
48321         * modules/unictype/block-test: New file.
48322         * modules/unictype/block-list: New file.
48323         * modules/unictype/block-all: New file.
48324         * modules/unictype/syntax-c-whitespace: New file.
48325         * modules/unictype/syntax-java-whitespace: New file.
48326         * modules/unictype/syntax-c-ident: New file.
48327         * modules/unictype/syntax-java-ident: New file.
48328         * modules/unictype/ctype-alnum: New file.
48329         * modules/unictype/ctype-alpha: New file.
48330         * modules/unictype/ctype-cntrl: New file.
48331         * modules/unictype/ctype-digit: New file.
48332         * modules/unictype/ctype-graph: New file.
48333         * modules/unictype/ctype-lower: New file.
48334         * modules/unictype/ctype-print: New file.
48335         * modules/unictype/ctype-punct: New file.
48336         * modules/unictype/ctype-space: New file.
48337         * modules/unictype/ctype-upper: New file.
48338         * modules/unictype/ctype-xdigit: New file.
48339         * modules/unictype/ctype-blank: New file.
48340         * lib/unictype/bidi_byname.c: New file.
48341         * lib/unictype/bidi_name.c: New file.
48342         * lib/unictype/bidi_of.c: New file.
48343         * lib/unictype/bidi_test.c: New file.
48344         * lib/unictype/bitmap.h: New file.
48345         * lib/unictype/block_test.c: New file.
48346         * lib/unictype/blocks.c: New file.
48347         * lib/unictype/categ_C.c: New file.
48348         * lib/unictype/categ_Cc.c: New file.
48349         * lib/unictype/categ_Cf.c: New file.
48350         * lib/unictype/categ_Cn.c: New file.
48351         * lib/unictype/categ_Co.c: New file.
48352         * lib/unictype/categ_Cs.c: New file.
48353         * lib/unictype/categ_L.c: New file.
48354         * lib/unictype/categ_Ll.c: New file.
48355         * lib/unictype/categ_Lm.c: New file.
48356         * lib/unictype/categ_Lo.c: New file.
48357         * lib/unictype/categ_Lt.c: New file.
48358         * lib/unictype/categ_Lu.c: New file.
48359         * lib/unictype/categ_M.c: New file.
48360         * lib/unictype/categ_Mc.c: New file.
48361         * lib/unictype/categ_Me.c: New file.
48362         * lib/unictype/categ_Mn.c: New file.
48363         * lib/unictype/categ_N.c: New file.
48364         * lib/unictype/categ_Nd.c: New file.
48365         * lib/unictype/categ_Nl.c: New file.
48366         * lib/unictype/categ_No.c: New file.
48367         * lib/unictype/categ_P.c: New file.
48368         * lib/unictype/categ_Pc.c: New file.
48369         * lib/unictype/categ_Pd.c: New file.
48370         * lib/unictype/categ_Pe.c: New file.
48371         * lib/unictype/categ_Pf.c: New file.
48372         * lib/unictype/categ_Pi.c: New file.
48373         * lib/unictype/categ_Po.c: New file.
48374         * lib/unictype/categ_Ps.c: New file.
48375         * lib/unictype/categ_S.c: New file.
48376         * lib/unictype/categ_Sc.c: New file.
48377         * lib/unictype/categ_Sk.c: New file.
48378         * lib/unictype/categ_Sm.c: New file.
48379         * lib/unictype/categ_So.c: New file.
48380         * lib/unictype/categ_Z.c: New file.
48381         * lib/unictype/categ_Zl.c: New file.
48382         * lib/unictype/categ_Zp.c: New file.
48383         * lib/unictype/categ_Zs.c: New file.
48384         * lib/unictype/categ_and.c: New file.
48385         * lib/unictype/categ_and_not.c: New file.
48386         * lib/unictype/categ_byname.c: New file.
48387         * lib/unictype/categ_name.c: New file.
48388         * lib/unictype/categ_none.c: New file.
48389         * lib/unictype/categ_of.c: New file.
48390         * lib/unictype/categ_or.c: New file.
48391         * lib/unictype/categ_test.c: New file.
48392         * lib/unictype/combining.c: New file.
48393         * lib/unictype/ctype_alnum.c: New file.
48394         * lib/unictype/ctype_alpha.c: New file.
48395         * lib/unictype/ctype_blank.c: New file.
48396         * lib/unictype/ctype_cntrl.c: New file.
48397         * lib/unictype/ctype_digit.c: New file.
48398         * lib/unictype/ctype_graph.c: New file.
48399         * lib/unictype/ctype_lower.c: New file.
48400         * lib/unictype/ctype_print.c: New file.
48401         * lib/unictype/ctype_punct.c: New file.
48402         * lib/unictype/ctype_space.c: New file.
48403         * lib/unictype/ctype_upper.c: New file.
48404         * lib/unictype/ctype_xdigit.c: New file.
48405         * lib/unictype/decdigit.c: New file.
48406         * lib/unictype/digit.c: New file.
48407         * lib/unictype/identsyntaxmap.h: New file.
48408         * lib/unictype/mirror.c: New file.
48409         * lib/unictype/numeric.c: New file.
48410         * lib/unictype/pr_alphabetic.c: New file.
48411         * lib/unictype/pr_ascii_hex_digit.c: New file.
48412         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48413         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48414         * lib/unictype/pr_bidi_block_separator.c: New file.
48415         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48416         * lib/unictype/pr_bidi_common_separator.c: New file.
48417         * lib/unictype/pr_bidi_control.c: New file.
48418         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48419         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48420         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48421         * lib/unictype/pr_bidi_european_digit.c: New file.
48422         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48423         * lib/unictype/pr_bidi_left_to_right.c: New file.
48424         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48425         * lib/unictype/pr_bidi_other_neutral.c: New file.
48426         * lib/unictype/pr_bidi_pdf.c: New file.
48427         * lib/unictype/pr_bidi_segment_separator.c: New file.
48428         * lib/unictype/pr_bidi_whitespace.c: New file.
48429         * lib/unictype/pr_byname.c: New file.
48430         * lib/unictype/pr_byname.gperf: New file.
48431         * lib/unictype/pr_combining.c: New file.
48432         * lib/unictype/pr_composite.c: New file.
48433         * lib/unictype/pr_currency_symbol.c: New file.
48434         * lib/unictype/pr_dash.c: New file.
48435         * lib/unictype/pr_decimal_digit.c: New file.
48436         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48437         * lib/unictype/pr_deprecated.c: New file.
48438         * lib/unictype/pr_diacritic.c: New file.
48439         * lib/unictype/pr_extender.c: New file.
48440         * lib/unictype/pr_format_control.c: New file.
48441         * lib/unictype/pr_grapheme_base.c: New file.
48442         * lib/unictype/pr_grapheme_extend.c: New file.
48443         * lib/unictype/pr_grapheme_link.c: New file.
48444         * lib/unictype/pr_hex_digit.c: New file.
48445         * lib/unictype/pr_hyphen.c: New file.
48446         * lib/unictype/pr_id_continue.c: New file.
48447         * lib/unictype/pr_id_start.c: New file.
48448         * lib/unictype/pr_ideographic.c: New file.
48449         * lib/unictype/pr_ids_binary_operator.c: New file.
48450         * lib/unictype/pr_ids_trinary_operator.c: New file.
48451         * lib/unictype/pr_ignorable_control.c: New file.
48452         * lib/unictype/pr_iso_control.c: New file.
48453         * lib/unictype/pr_join_control.c: New file.
48454         * lib/unictype/pr_left_of_pair.c: New file.
48455         * lib/unictype/pr_line_separator.c: New file.
48456         * lib/unictype/pr_logical_order_exception.c: New file.
48457         * lib/unictype/pr_lowercase.c: New file.
48458         * lib/unictype/pr_math.c: New file.
48459         * lib/unictype/pr_non_break.c: New file.
48460         * lib/unictype/pr_not_a_character.c: New file.
48461         * lib/unictype/pr_numeric.c: New file.
48462         * lib/unictype/pr_other_alphabetic.c: New file.
48463         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48464         * lib/unictype/pr_other_grapheme_extend.c: New file.
48465         * lib/unictype/pr_other_id_continue.c: New file.
48466         * lib/unictype/pr_other_id_start.c: New file.
48467         * lib/unictype/pr_other_lowercase.c: New file.
48468         * lib/unictype/pr_other_math.c: New file.
48469         * lib/unictype/pr_other_uppercase.c: New file.
48470         * lib/unictype/pr_paired_punctuation.c: New file.
48471         * lib/unictype/pr_paragraph_separator.c: New file.
48472         * lib/unictype/pr_pattern_syntax.c: New file.
48473         * lib/unictype/pr_pattern_white_space.c: New file.
48474         * lib/unictype/pr_private_use.c: New file.
48475         * lib/unictype/pr_punctuation.c: New file.
48476         * lib/unictype/pr_quotation_mark.c: New file.
48477         * lib/unictype/pr_radical.c: New file.
48478         * lib/unictype/pr_sentence_terminal.c: New file.
48479         * lib/unictype/pr_soft_dotted.c: New file.
48480         * lib/unictype/pr_space.c: New file.
48481         * lib/unictype/pr_terminal_punctuation.c: New file.
48482         * lib/unictype/pr_test.c: New file.
48483         * lib/unictype/pr_titlecase.c: New file.
48484         * lib/unictype/pr_unassigned_code_value.c: New file.
48485         * lib/unictype/pr_unified_ideograph.c: New file.
48486         * lib/unictype/pr_uppercase.c: New file.
48487         * lib/unictype/pr_variation_selector.c: New file.
48488         * lib/unictype/pr_white_space.c: New file.
48489         * lib/unictype/pr_xid_continue.c: New file.
48490         * lib/unictype/pr_xid_start.c: New file.
48491         * lib/unictype/pr_zero_width.c: New file.
48492         * lib/unictype/scripts.c: New file.
48493         * lib/unictype/sy_c_ident.c: New file.
48494         * lib/unictype/sy_c_whitespace.c: New file.
48495         * lib/unictype/sy_java_ident.c: New file.
48496         * lib/unictype/sy_java_whitespace.c: New file.
48497
48498         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48499         Unicode 5.0.0.
48500         * lib/unictype/blocks.h: Likewise.
48501         * lib/unictype/categ_C.h: Likewise.
48502         * lib/unictype/categ_Cc.h: Likewise.
48503         * lib/unictype/categ_Cf.h: Likewise.
48504         * lib/unictype/categ_Cn.h: Likewise.
48505         * lib/unictype/categ_Co.h: Likewise.
48506         * lib/unictype/categ_Cs.h: Likewise.
48507         * lib/unictype/categ_L.h: Likewise.
48508         * lib/unictype/categ_Ll.h: Likewise.
48509         * lib/unictype/categ_Lm.h: Likewise.
48510         * lib/unictype/categ_Lo.h: Likewise.
48511         * lib/unictype/categ_Lt.h: Likewise.
48512         * lib/unictype/categ_Lu.h: Likewise.
48513         * lib/unictype/categ_M.h: Likewise.
48514         * lib/unictype/categ_Mc.h: Likewise.
48515         * lib/unictype/categ_Me.h: Likewise.
48516         * lib/unictype/categ_Mn.h: Likewise.
48517         * lib/unictype/categ_N.h: Likewise.
48518         * lib/unictype/categ_Nd.h: Likewise.
48519         * lib/unictype/categ_Nl.h: Likewise.
48520         * lib/unictype/categ_No.h: Likewise.
48521         * lib/unictype/categ_P.h: Likewise.
48522         * lib/unictype/categ_Pc.h: Likewise.
48523         * lib/unictype/categ_Pd.h: Likewise.
48524         * lib/unictype/categ_Pe.h: Likewise.
48525         * lib/unictype/categ_Pf.h: Likewise.
48526         * lib/unictype/categ_Pi.h: Likewise.
48527         * lib/unictype/categ_Po.h: Likewise.
48528         * lib/unictype/categ_Ps.h: Likewise.
48529         * lib/unictype/categ_S.h: Likewise.
48530         * lib/unictype/categ_Sc.h: Likewise.
48531         * lib/unictype/categ_Sk.h: Likewise.
48532         * lib/unictype/categ_Sm.h: Likewise.
48533         * lib/unictype/categ_So.h: Likewise.
48534         * lib/unictype/categ_Z.h: Likewise.
48535         * lib/unictype/categ_Zl.h: Likewise.
48536         * lib/unictype/categ_Zp.h: Likewise.
48537         * lib/unictype/categ_Zs.h: Likewise.
48538         * lib/unictype/categ_of.h: Likewise.
48539         * lib/unictype/combining.h: Likewise.
48540         * lib/unictype/ctype_alnum.h: Likewise.
48541         * lib/unictype/ctype_alpha.h: Likewise.
48542         * lib/unictype/ctype_blank.h: Likewise.
48543         * lib/unictype/ctype_cntrl.h: Likewise.
48544         * lib/unictype/ctype_digit.h: Likewise.
48545         * lib/unictype/ctype_graph.h: Likewise.
48546         * lib/unictype/ctype_lower.h: Likewise.
48547         * lib/unictype/ctype_print.h: Likewise.
48548         * lib/unictype/ctype_punct.h: Likewise.
48549         * lib/unictype/ctype_space.h: Likewise.
48550         * lib/unictype/ctype_upper.h: Likewise.
48551         * lib/unictype/ctype_xdigit.h: Likewise.
48552         * lib/unictype/decdigit.h: Likewise.
48553         * lib/unictype/digit.h: Likewise.
48554         * lib/unictype/mirror.h: Likewise.
48555         * lib/unictype/numeric.h: Likewise.
48556         * lib/unictype/pr_alphabetic.h: Likewise.
48557         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
48558         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
48559         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
48560         * lib/unictype/pr_bidi_block_separator.h: Likewise.
48561         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
48562         * lib/unictype/pr_bidi_common_separator.h: Likewise.
48563         * lib/unictype/pr_bidi_control.h: Likewise.
48564         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
48565         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
48566         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
48567         * lib/unictype/pr_bidi_european_digit.h: Likewise.
48568         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
48569         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
48570         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
48571         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
48572         * lib/unictype/pr_bidi_pdf.h: Likewise.
48573         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
48574         * lib/unictype/pr_bidi_whitespace.h: Likewise.
48575         * lib/unictype/pr_combining.h: Likewise.
48576         * lib/unictype/pr_composite.h: Likewise.
48577         * lib/unictype/pr_currency_symbol.h: Likewise.
48578         * lib/unictype/pr_dash.h: Likewise.
48579         * lib/unictype/pr_decimal_digit.h: Likewise.
48580         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
48581         * lib/unictype/pr_deprecated.h: Likewise.
48582         * lib/unictype/pr_diacritic.h: Likewise.
48583         * lib/unictype/pr_extender.h: Likewise.
48584         * lib/unictype/pr_format_control.h: Likewise.
48585         * lib/unictype/pr_grapheme_base.h: Likewise.
48586         * lib/unictype/pr_grapheme_extend.h: Likewise.
48587         * lib/unictype/pr_grapheme_link.h: Likewise.
48588         * lib/unictype/pr_hex_digit.h: Likewise.
48589         * lib/unictype/pr_hyphen.h: Likewise.
48590         * lib/unictype/pr_id_continue.h: Likewise.
48591         * lib/unictype/pr_id_start.h: Likewise.
48592         * lib/unictype/pr_ideographic.h: Likewise.
48593         * lib/unictype/pr_ids_binary_operator.h: Likewise.
48594         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
48595         * lib/unictype/pr_ignorable_control.h: Likewise.
48596         * lib/unictype/pr_iso_control.h: Likewise.
48597         * lib/unictype/pr_join_control.h: Likewise.
48598         * lib/unictype/pr_left_of_pair.h: Likewise.
48599         * lib/unictype/pr_line_separator.h: Likewise.
48600         * lib/unictype/pr_logical_order_exception.h: Likewise.
48601         * lib/unictype/pr_lowercase.h: Likewise.
48602         * lib/unictype/pr_math.h: Likewise.
48603         * lib/unictype/pr_non_break.h: Likewise.
48604         * lib/unictype/pr_not_a_character.h: Likewise.
48605         * lib/unictype/pr_numeric.h: Likewise.
48606         * lib/unictype/pr_other_alphabetic.h: Likewise.
48607         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
48608         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
48609         * lib/unictype/pr_other_id_continue.h: Likewise.
48610         * lib/unictype/pr_other_id_start.h: Likewise.
48611         * lib/unictype/pr_other_lowercase.h: Likewise.
48612         * lib/unictype/pr_other_math.h: Likewise.
48613         * lib/unictype/pr_other_uppercase.h: Likewise.
48614         * lib/unictype/pr_paired_punctuation.h: Likewise.
48615         * lib/unictype/pr_paragraph_separator.h: Likewise.
48616         * lib/unictype/pr_pattern_syntax.h: Likewise.
48617         * lib/unictype/pr_pattern_white_space.h: Likewise.
48618         * lib/unictype/pr_private_use.h: Likewise.
48619         * lib/unictype/pr_punctuation.h: Likewise.
48620         * lib/unictype/pr_quotation_mark.h: Likewise.
48621         * lib/unictype/pr_radical.h: Likewise.
48622         * lib/unictype/pr_sentence_terminal.h: Likewise.
48623         * lib/unictype/pr_soft_dotted.h: Likewise.
48624         * lib/unictype/pr_space.h: Likewise.
48625         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48626         * lib/unictype/pr_titlecase.h: Likewise.
48627         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48628         * lib/unictype/pr_unified_ideograph.h: Likewise.
48629         * lib/unictype/pr_uppercase.h: Likewise.
48630         * lib/unictype/pr_variation_selector.h: Likewise.
48631         * lib/unictype/pr_white_space.h: Likewise.
48632         * lib/unictype/pr_xid_continue.h: Likewise.
48633         * lib/unictype/pr_xid_start.h: Likewise.
48634         * lib/unictype/pr_zero_width.h: Likewise.
48635         * lib/unictype/scripts.h: Likewise.
48636         * lib/unictype/scripts_byname.gperf: Likewise.
48637         * lib/unictype/sy_c_ident.h: Likewise.
48638         * lib/unictype/sy_c_whitespace.h: Likewise.
48639         * lib/unictype/sy_java_ident.h: Likewise.
48640         * lib/unictype/sy_java_whitespace.h: Likewise.
48641
48642         * lib/unictype/Makefile: New file.
48643         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48644         glibc.
48645         * lib/unictype/3level.h: New file, copied from glibc.
48646         * lib/unictype/3levelbit.h: New file.
48647
48648 2007-11-11  Bruno Haible  <bruno@clisp.org>
48649
48650         * modules/gperf: New file.
48651         * modules/iconv_open (Depends-on): Add it.
48652         (Makefile.am): Remove the GPERF definition.
48653
48654 2007-11-11  Bruno Haible  <bruno@clisp.org>
48655
48656         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48657         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48658
48659 2007-11-11  Bruno Haible  <bruno@clisp.org>
48660
48661         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48662         (usage): Remove function.
48663
48664 2007-11-11  Bruno Haible  <bruno@clisp.org>
48665
48666         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48667         gl_FUNC_CEILF_LIBS.
48668         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48669         gl_FUNC_CEIL_LIBS.
48670         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48671         gl_FUNC_CEILL_LIBS.
48672         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48673         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48674         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48675
48676 2007-11-11  Bruno Haible  <bruno@clisp.org>
48677
48678         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48679         roundf were declared but do not exist on functions.
48680         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48681         roundl were declared but do not exist on functions.
48682         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48683         HAVE_FLOORL_AND_CEILL, respectively.
48684         Needed for Sun C on Solaris 10.
48685
48686 2007-11-11  Bruno Haible  <bruno@clisp.org>
48687
48688         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48689         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48690         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48691         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
48692         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
48693         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
48694         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48695         HAVE_DECL_ROUNDF.
48696         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
48697         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
48698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
48699         of HAVE_DECL_ROUND*.
48700         * modules/math (Makefile.am): Update.
48701
48702 2007-11-10  Bruno Haible  <bruno@clisp.org>
48703
48704         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
48705         ptrdiff_t as m4/intl.m4.
48706
48707 2007-11-10  Jim Meyering  <meyering@redhat.com>
48708
48709         Avoid link failure for the argmatch test.
48710         * tests/test-argmatch.c (usage): Define function to avoid a link
48711         failure: argmatch_die requires a usage function.
48712
48713 2007-11-09  Bruno Haible  <bruno@clisp.org>
48714
48715         * doc/functions/snprintf.texi: Mention BeOS deficiency.
48716         * doc/functions/vsnprintf.texi: Likewise.
48717         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
48718         with a size argument < 2.
48719
48720 2007-11-09  Bruno Haible  <bruno@clisp.org>
48721
48722         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
48723         buffer. Fixes an inefficiency introduced on 2007-11-03.
48724
48725 2007-11-09  Bruno Haible  <bruno@clisp.org>
48726
48727         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
48728         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
48729
48730 2007-11-08  Jim Meyering  <meyering@redhat.com>
48731
48732         Change cache variable name prefix "jm_" to "gl_" everywhere.
48733         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
48734         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
48735         * m4/uptime.m4: s/gl_/jm_/
48736
48737 2007-11-07  Bruno Haible  <bruno@clisp.org>
48738
48739         Update to GNU gettext 0.17.
48740         * m4/intl.m4: Update to GNU gettext 0.17.
48741         * m4/po.m4: Likewise.
48742         * modules/gettext (Files): Remove m4/ulonglong.m4.
48743         (configure.ac): Require gettext infrastructure from version 0.17.
48744
48745 2007-11-06  Bruno Haible  <bruno@clisp.org>
48746
48747         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
48748         symbolic values are not defined in a public header.
48749         * lib/freadable.c (freadable) [QNX]: Likewise.
48750         * lib/freadahead.c (freadahead) [QNX]: Likewise.
48751         * lib/freading.c (freading) [QNX]: Likewise.
48752         * lib/fseterr.c (fseterr) [QNX]: Likewise.
48753         * lib/fwritable.c (fwritable) [QNX]: Likewise.
48754         * lib/fwriting.c (fwriting) [QNX]: Likewise.
48755         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
48756         Reported by Alain Magloire.
48757
48758         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
48759
48760 2007-11-05  Bruno Haible  <bruno@clisp.org>
48761
48762         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
48763         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
48764         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
48765         Reported by Eric Blake.
48766
48767 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48768             Bruno Haible  <bruno@clisp.org>
48769
48770         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
48771         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
48772         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
48773         (malloc): Undefine also before including <stdlib.h>.
48774         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
48775         Needed on OSF/1 4.0.
48776
48777 2007-11-05  Jim Meyering  <meyering@redhat.com>
48778
48779         git-version-gen: sync from coreutils.
48780         * build-aux/git-version-gen: Add comments.
48781         Change the first '-' to '.' in the snapshot version string,
48782         e.g., 6.9-377-08144 -> 6.9.377-08144
48783         Remove first parameter.
48784         Don't declare a version "-dirty" merely because a time
48785         stamp has changed.
48786
48787 2007-11-04  Bruno Haible  <bruno@clisp.org>
48788
48789         * lib/lock.h: Protect all macro definitions containing an 'if'
48790         statement through a "do { ... } while (0)".
48791         * lib/tls.h: Likewise.
48792
48793 2007-11-04  Bruno Haible  <bruno@clisp.org>
48794
48795         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
48796
48797 2007-11-04  Bruno Haible  <bruno@clisp.org>
48798
48799         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
48800         * modules/fprintf-posix (Depends-on): Add nocrash.
48801         * modules/snprintf-posix (Depends-on): Likewise.
48802         * modules/sprintf-posix (Depends-on): Likewise.
48803         * modules/vasnprintf-posix (Depends-on): Likewise.
48804         * modules/vasprintf-posix (Depends-on): Likewise.
48805         * modules/vfprintf-posix (Depends-on): Likewise.
48806         * modules/vsnprintf-posix (Depends-on): Likewise.
48807         * modules/vsprintf-posix (Depends-on): Likewise.
48808         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48809         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48810         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48811         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48812         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48813         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48814         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48815
48816 2007-11-04  Bruno Haible  <bruno@clisp.org>
48817
48818         * modules/nocrash: New file.
48819         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
48820         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
48821
48822 2007-11-04  Bruno Haible  <bruno@clisp.org>
48823
48824         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
48825         precision handling.
48826         * tests/test-vasprintf-posix.c (test_function): Likewise.
48827         * tests/test-snprintf-posix.h (test_function): Likewise.
48828         * tests/test-sprintf-posix.h (test_function): Likewise.
48829
48830         Fix *printf behaviour for large precisions on mingw and BeOS.
48831         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
48832         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
48833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
48834         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48835         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48836         gl_PRINTF_PRECISION and test its result. Invoke
48837         gl_PREREQ_VASNPRINTF_PRECISION.
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         * doc/functions/fprintf.texi: Update.
48846         * doc/functions/printf.texi: Update.
48847         * doc/functions/snprintf.texi: Update.
48848         * doc/functions/sprintf.texi: Update.
48849         * doc/functions/vfprintf.texi: Update.
48850         * doc/functions/vprintf.texi: Update.
48851         * doc/functions/vsnprintf.texi: Update.
48852         * doc/functions/vsprintf.texi: Update.
48853
48854 2007-11-04  Bruno Haible  <bruno@clisp.org>
48855
48856         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
48857
48858 2007-11-04  Bruno Haible  <bruno@clisp.org>
48859
48860         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
48861         Reported by Sylvain Beucler <beuc@gnu.org>.
48862
48863 2007-11-03  Bruno Haible  <bruno@clisp.org>
48864
48865         * tests/test-fprintf-posix2.sh: New file.
48866         * tests/test-fprintf-posix2.c: New file.
48867         * modules/fprintf-posix-tests (Files): Add them.
48868         (TESTS): Add test-fprintf-posix2.sh.
48869         (configure.ac): Check for getrlimit and setrlimit.
48870         (check_PROGRAMS): Add test-fprintf-posix2.
48871
48872         * tests/test-printf-posix2.sh: New file.
48873         * tests/test-printf-posix2.c: New file.
48874         * modules/printf-posix-tests (Files): Add them.
48875         (TESTS): Add test-printf-posix2.sh.
48876         (configure.ac): Check for getrlimit and setrlimit.
48877         (check_PROGRAMS): Add test-printf-posix2.
48878
48879         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
48880         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
48881         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
48882         (decode_double): New function, copied from decode_long_double.
48883         (scale10_round_decimal_decoded): New function, extracted from
48884         scale10_round_decimal_long_double.
48885         (scale10_round_decimal_long_double): Use it.
48886         (scale10_round_decimal_double): New function.
48887         (floorlog10): New function.
48888         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
48889         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
48890         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48891         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48892         gl_PRINTF_ENOMEM and test its result. Invoke
48893         gl_PREREQ_VASNPRINTF_ENOMEM.
48894         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48895         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48896         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48897         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48898         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48899         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48900         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48901         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
48902         * modules/snprintf-posix (Depends-on): Likewise.
48903         * modules/sprintf-posix (Depends-on): Likewise.
48904         * modules/vasnprintf-posix (Depends-on): Likewise.
48905         * modules/vasprintf-posix (Depends-on): Likewise.
48906         * modules/vfprintf-posix (Depends-on): Likewise.
48907         * modules/vsnprintf-posix (Depends-on): Likewise.
48908         * modules/vsprintf-posix (Depends-on): Likewise.
48909         * doc/functions/fprintf.texi: Update.
48910         * doc/functions/printf.texi: Update.
48911         * doc/functions/snprintf.texi: Update.
48912         * doc/functions/sprintf.texi: Update.
48913         * doc/functions/vfprintf.texi: Update.
48914         * doc/functions/vprintf.texi: Update.
48915         * doc/functions/vsnprintf.texi: Update.
48916         * doc/functions/vsprintf.texi: Update.
48917
48918 2007-11-03  Bruno Haible  <bruno@clisp.org>
48919
48920         * modules/frexp-nolibm-tests: New file.
48921
48922         * modules/frexp-nolibm: New file.
48923         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
48924
48925 2007-11-03  Bruno Haible  <bruno@clisp.org>
48926
48927         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
48928         value is C99 compliant.
48929         Needed for OSF/1 5.1.
48930
48931 2007-11-03  Bruno Haible  <bruno@clisp.org>
48932
48933         Fix out-of-memory handling of vasnprintf.
48934         * lib/printf-parse.c: Include <errno.h>.
48935         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
48936         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
48937         is already set.
48938
48939 2007-11-02  Eric Blake  <ebb9@byu.net>
48940
48941         Fix tests on cygwin.
48942         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
48943
48944 2007-11-01  Bruno Haible  <bruno@clisp.org>
48945
48946         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
48947         warning.
48948         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
48949         needed for POSIX compatibility.
48950
48951 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
48952
48953         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
48954         for compatibility with GNU.
48955
48956 2007-11-01  Bruno Haible  <bruno@clisp.org>
48957
48958         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
48959         (putenv): Renamed from rpl_putenv. Change argument type from
48960         'const char *' to 'char *'.
48961         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
48962         of defining putenv in config.h, just set REPLACE_PUTENV.
48963         * modules/putenv (Depends-on): Add stdlib.
48964         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48965         (Include): Use <stdlib.h>.
48966         * lib/stdlib.in.h (putenv): New declaration.
48967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
48968         REPLACE_PUTENV.
48969         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
48970         REPLACE_PUTENV.
48971         Needed for MacOS X 10.5.0.
48972         Reported by Peter O'Gorman <peter@pogma.com>.
48973
48974 2007-11-01  Jim Meyering  <meyering@redhat.com>
48975
48976         Treat an empty date string exactly like "0".
48977         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
48978         if the remaining date string (to be parsed) is empty, use "0".
48979         Reported by Mischa Molhoek and discussed in this thread:
48980         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
48981
48982 2007-10-31  Bruno Haible  <bruno@clisp.org>
48983
48984         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
48985         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
48986         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
48987         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
48988         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
48989         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
48990
48991 2007-10-31  Bruno Haible  <bruno@clisp.org>
48992
48993         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
48994         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
48995         (AC_TYPE_LONG_LONG_INT): Use it.
48996         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
48997         it as well.
48998         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
48999         to m4/longlong.m4.
49000         * modules/stdint (Files): Remove m4/ulonglong.m4.
49001         * modules/strtoull (Files): Use m4/longlong.m4 instead of
49002         m4/ulonglong.m4.
49003         * modules/strtoumax (Files): Likewise.
49004
49005 2007-10-30  Bruno Haible  <bruno@clisp.org>
49006
49007         * modules/xvasprintf-posix: New file.
49008         Suggested by Eric Blake.
49009
49010 2007-10-30  Bruno Haible  <bruno@clisp.org>
49011
49012         * modules/xprintf-posix-tests: New file.
49013         * tests/test-xprintf-posix.sh: New file.
49014         * tests/test-xprintf-posix.c: New file.
49015         * tests/test-xfprintf-posix.c: New file.
49016
49017         * modules/xprintf-posix: New file.
49018
49019 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49020
49021         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
49022         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
49023         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
49024
49025 2007-10-29  Bruno Haible  <bruno@clisp.org>
49026
49027         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
49028         contain the special marker '_cv_'.
49029         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49030         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49031         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49032         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49033         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49034         Reported by Ralf Wildenhues.
49035
49036 2007-10-29  Bruno Haible  <bruno@clisp.org>
49037
49038         * gnulib-tool (func_import): When --lgpl is not specified, set
49039         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
49040         GPLv3.
49041         Reported by Simon Josefsson.
49042
49043 2007-10-28  Bruno Haible  <bruno@clisp.org>
49044
49045         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
49046         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
49047         HAVE_DECL_ISFINITE.
49048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49049         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
49050         HAVE_DECL_ISFINITE.
49051
49052 2007-10-28  Bruno Haible  <bruno@clisp.org>
49053
49054         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
49055         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
49056
49057 2007-10-28  Bruno Haible  <bruno@clisp.org>
49058
49059         Fix link errors with Sun C 5.0 on Solaris 10.
49060         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
49061         function is declared but not present in the compiler's libm.
49062         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49063         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49064         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
49065         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
49066         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
49067         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
49068         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
49069         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49070         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
49071         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
49072         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
49073         HAVE_DECL_FLOORL.
49074
49075 2007-10-28  Bruno Haible  <bruno@clisp.org>
49076
49077         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
49078         gl_FUNC_FLOORL. Cache the result.
49079         (gl_FUNC_FLOORL): Use it.
49080         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
49081         gl_FUNC_CEILL. Cache the result.
49082         (gl_FUNC_CEILL): Use it.
49083
49084         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
49085         gl_FUNC_FLOOR. Cache the result.
49086         (gl_FUNC_FLOOR): Use it.
49087         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
49088         gl_FUNC_CEIL. Cache the result.
49089         (gl_FUNC_CEIL): Use it.
49090
49091         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
49092         gl_FUNC_FLOORF. Cache the result.
49093         (gl_FUNC_FLOORF): Use it.
49094         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
49095         gl_FUNC_CEILF. Cache the result.
49096         (gl_FUNC_CEILF): Use it.
49097
49098 2007-10-28  Bruno Haible  <bruno@clisp.org>
49099
49100         * gnulib-tool: Allow specifying the LGPL version number through
49101         --lgpl=2 or --lgpl=3.
49102         (func_usage): Document --lgpl with argument.
49103         Handle --lgpl=... arguments.
49104         (func_import): Recognize also gl_LGPL calls with an argument. When
49105         --lgpl=2 is used and the module's license is just LGPL, report an
49106         error. Set sed_transform_lib_file according to the lgpl variable. In
49107         the generated files, use --lgpl or gl_LGPL invocations with argument,
49108         if necessary.
49109         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
49110         an LGPv2+ license.
49111         * doc/gnulib-tool.texi (Modified imports): Update explanation of
49112         gl_LGPL macro.
49113
49114 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49115             Bruno Haible  <bruno@clisp.org>
49116
49117         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
49118         (u16_uctomb_aux): Likewise.
49119         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
49120         !HAVE_INLINE.
49121         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
49122
49123 2007-10-28  Bruno Haible  <bruno@clisp.org>
49124
49125         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
49126         Invoke AM_GETTEXT_OPTION if it exists.
49127         * modules/vasprintf: Likewise.
49128         * modules/verror: Likewise.
49129         * modules/xprintf: Likewise.
49130         * modules/xvasprintf: Likewise.
49131
49132 2007-10-27  Ben Pfaff  <blp@gnu.org>
49133
49134         * lib/math.in.h: Define isfinite macro and prototypes for
49135         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
49136         implementations.
49137         * m4/math_h.m4: New substitutions for isfinite module.
49138         * lib/isfinite.c: New file.
49139         * m4/isfinite.m4: New file.
49140         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
49141         * modules/isfinite: New file.
49142         * modules/isfinite-tests: New file.
49143         * tests/tests-isfinite.c: New file.
49144         * doc/functions/isfinite.texi: Mention isfinite module.
49145         * MODULES.html.sh: Mention new module.
49146
49147 2007-10-27  Ben Pfaff  <blp@gnu.org>
49148
49149         Ralf Wildenhues reported that Tru64 4.0D declares the round
49150         functions but does not have definitions.
49151         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
49152         cannot be found in any library, set the output variable to
49153         "missing" instead of "".
49154         * m4/round.m4: Also use our substitute if we cannot find round in
49155         any library, even if it is declared.
49156         * m4/roundf.m4: Likewise for roundf.
49157         * m4/roundl.m4: Likewise for roundl.
49158         * lib/math.in.h: Undefine roundf, round, roundl before defining
49159         their replacements, to allow for hypothetical systems where these
49160         may be defined as macros but not available in libraries.
49161
49162 2007-10-27  Bruno Haible  <bruno@clisp.org>
49163
49164         * doc/gnulib.texi: Invoke @firstparagraphindent.
49165         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
49166         changes in gnulib.
49167         (Source changes): New section.
49168
49169 2007-10-26  Bruno Haible  <bruno@clisp.org>
49170
49171         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
49172         borrowed from autoconf.
49173
49174 2007-10-26  Bruno Haible  <bruno@clisp.org>
49175
49176         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
49177         strerror returned the empty string. Needed on HP-UX 11.00.
49178
49179 2007-10-24  Micah Cowan  <micah@cowan.name>
49180
49181         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
49182         * build-aux/bootstrap: Remove support for now-unnecessary option,
49183         --cvs-user, and envvars CVS_USER, CVS_RSH.
49184
49185 2007-10-24  Jim Meyering  <meyering@redhat.com>
49186
49187         Avoid diagnostics from sha1sum when there is no cached checksum.
49188         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
49189         if the po.s1 file hasn't been created yet.
49190
49191         * build-aux/bootstrap: Sync from coreutils:
49192         2007-10-24  Jim Meyering  <meyering@redhat.com>
49193         Get gnulib from the git repository, not from an obsolete cvs one.
49194         * build-aux/bootstrap: Suggestion from Micah Cowan.
49195         2007-10-04  Jim Meyering  <jim@meyering.net>
49196         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
49197         (update_po_files): Work also when there are no .po files in po/.
49198
49199 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49200
49201         * README: Append ".git" to git and cg examples.
49202         Problem reported by Benoit Sigoure.
49203
49204 2007-10-23  Micah Cowan  <micah@cowan.name>
49205
49206         * users.txt: Add wget.
49207
49208 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49209
49210         Fix linking of some unistdio tests on FreeBSD.
49211         * modules/unistdio/u16-vsnprintf-tests
49212         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
49213         * modules/unistdio/u16-vsprintf-tests
49214         (test_u16_vsnprintf1_LDADD): Likewise.
49215         * modules/unistdio/u32-vsnprintf-tests
49216         (test_u32_vsnprintf1_LDADD): Likewise.
49217         * modules/unistdio/u32-vsprintf-tests
49218         (test_u32_vsprintf1_LDADD): Likewise.
49219         * modules/unistdio/u8-vsnprintf-tests
49220         (test_u8_vsnprintf1_LDADD): Likewise.
49221         * modules/unistdio/u8-vsprintf-tests
49222         (test_u8_vsprintf1_LDADD): Likewise.
49223         * modules/unistdio/ulc-vsnprintf-tests
49224         (test_ulc_vsnprintf1_LDADD): Likewise.
49225         * modules/unistdio/ulc-vsprintf-tests
49226         (test_ulc_vsprintf1_LDADD): Likewise.
49227
49228         Fix linking of some uniconv tests on FreeBSD.
49229         * modules/uniconv/u16-conv-from-enc-tests
49230         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
49231         * modules/uniconv/u16-conv-to-enc-tests
49232         (test_u16_conv_to_enc_LDADD): Likewise.
49233         * modules/uniconv/u16-strconv-from-enc-tests
49234         (test_u16_strconv_from_enc_LDADD): Likewise.
49235         * modules/uniconv/u16-strconv-to-enc-tests
49236         (test_u16_strconv_to_enc_LDADD): Likewise.
49237         * modules/uniconv/u32-conv-from-enc-tests
49238         (test_u32_conv_from_enc_LDADD): Likewise.
49239         * modules/uniconv/u32-conv-to-enc-tests
49240         (test_u32_conv_to_enc_LDADD): Likewise.
49241         * modules/uniconv/u32-strconv-from-enc-tests
49242         (test_u32_strconv_from_enc_LDADD): Likewise.
49243         * modules/uniconv/u32-strconv-to-enc-tests
49244         (test_u32_strconv_to_enc_LDADD): Likewise.
49245         * modules/uniconv/u8-conv-from-enc-tests
49246         (test_u8_conv_from_enc_LDADD): Likewise.
49247         * modules/uniconv/u8-conv-to-enc-tests
49248         (test_u8_conv_to_enc_LDADD): Likewise.
49249         * modules/uniconv/u8-strconv-from-enc-tests
49250         (test_u8_strconv_from_enc_LDADD): Likewise.
49251         * modules/uniconv/u8-strconv-to-enc-tests
49252         (test_u8_strconv_to_enc_LDADD): Likewise.
49253
49254 2007-10-22  Bruno Haible  <bruno@clisp.org>
49255
49256         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
49257         size.
49258
49259 2007-10-22  Eric Blake  <ebb9@byu.net>
49260
49261         Tweak x*printf documentation.
49262         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
49263         variable name and comments.
49264         Suggested by Bruno Haible.
49265
49266 2007-10-22  Bruno Haible  <bruno@clisp.org>
49267
49268         * lib/acl.c (copy_acl): Fix file name in comment.
49269
49270 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49271
49272         Fix Tru64 problem with stdbool.h.
49273         * lib/stdbool.in.h (false, true):
49274         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
49275         Don't declare as an enum in this situation; it runs afoul of Tru64.
49276         Problem reported by Steven M. Schweda in
49277         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
49278
49279 2007-10-22  Eric Blake  <ebb9@byu.net>
49280
49281         Also wrap vf?printf.
49282         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
49283         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
49284         (xvprintf, xvfprintf): New functions.
49285
49286 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49287
49288         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
49289         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
49290
49291         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
49292         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
49293
49294 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49295
49296         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
49297         by Bruno Haible.
49298
49299 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49300
49301         * lib/getloadavg.c
49302         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
49303         Undef `sys' after including sys/table.h, for Tru64 4.0D.
49304
49305         * tests/test-i-ring.c: Work for C89.
49306
49307 2007-10-22  Bruno Haible  <bruno@clisp.org>
49308
49309         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49310         -1u, in preprocessor expression, so that we don't test for the bug
49311         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49312         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49313
49314 2007-10-22  Eric Blake  <ebb9@byu.net>
49315
49316         * tests/test-yesno.sh: Silence stderr during test.
49317
49318 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49319
49320         * modules/crypto/gc-camellia: New file.
49321
49322         * m4/gc-camellia.m4: New file.
49323
49324         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49325
49326         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49327
49328 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49329
49330         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49331         --help to stdout.  Reported by sms@antinode.org (Steven
49332         M. Schweda).
49333
49334 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49335
49336         * users.txt: Fix link to libksba.
49337
49338 2007-10-21  Ben Pfaff  <blp@gnu.org>
49339
49340         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49341         round.c roundf implementation that depends on floorf and ceilf to
49342         be tested unconditionally.
49343
49344 2007-10-21  Ben Pfaff  <blp@gnu.org>
49345
49346         * m4/check-libm-func.m4: Removed.
49347         * m4/check-math-lib.m4: New file.
49348         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49349         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49350         definition and lack of AC_LIBOBJ([roundf]).
49351         * m4/roundl.m4: Ditto, and similarly for roundl.
49352         * modules/round: Reference new m4 file.
49353         * modules/roundf: Ditto.
49354         * modules/roundl: Ditto.
49355         * tests/test-round2.c (main): Use ROUND instead of round.
49356         Bug report from Bruno Haible.
49357
49358 2007-10-21  Bruno Haible  <bruno@clisp.org>
49359
49360         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49361         context.
49362
49363 2007-10-21  Bruno Haible  <bruno@clisp.org>
49364
49365         * tests/test-wcwidth.c (main): Allow negative result for some control
49366         characters.
49367
49368         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49369         Needed on OSF/1 5.1.
49370
49371 2007-10-21  Bruno Haible  <bruno@clisp.org>
49372
49373         * tests/test-floorf1.c: Include isnanf.h.
49374         (main): Use isnanf() instead of isnan().
49375         * tests/test-ceilf1.c: Include isnanf.h.
49376         (main): Use isnanf() instead of isnan().
49377         * tests/test-truncf1.c: Include isnanf.h.
49378         (main): Use isnanf() instead of isnan().
49379         * tests/test-roundf1.c: Include isnanf.h.
49380         (main): Use isnanf() instead of isnan().
49381
49382 2007-10-21  Eric Blake  <ebb9@byu.net>
49383
49384         * users.txt: Update URL for m4.
49385
49386 2007-10-21  Bruno Haible  <bruno@clisp.org>
49387
49388         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49389
49390 2007-10-21  Bruno Haible  <bruno@clisp.org>
49391
49392         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49393         Git's management files if the CVS files are not present.
49394
49395 2007-10-20  Bruno Haible  <bruno@clisp.org>
49396
49397         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49398         gcc-3.4.x.
49399
49400 2007-10-20  Ben Pfaff  <blp@gnu.org>
49401
49402         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49403         implementations.
49404         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49405         * lib/round.c: New file.
49406         * lib/roundf.c: New file.
49407         * lib/roundl.c: New file.
49408         * m4/round.m4: New file.
49409         * m4/roundf.m4: New file.
49410         * m4/roundl.m4: New file.
49411         * m4/check-libm-func-m4: New file.
49412         * modules/math: Replace round, roundf, roundl related @VARS@ in
49413         math.in.h.
49414         * modules/round: New file.
49415         * modules/round-tests: New file.
49416         * modules/roundf: New file.
49417         * modules/roundf-tests: New file.
49418         * modules/roundl: New file.
49419         * modules/roundl-tests: New file.
49420         * tests/test-round1.c: New file.
49421         * tests/test-round2.c: New file.
49422         * tests/test-roundf1.c: New file.
49423         * tests/test-roundf2.c: New file.
49424         * tests/test-roundl.c: New file.
49425         * doc/functions/round.texi: Mention round module.
49426         * doc/functions/roundf.texi: Mention roundf module.
49427         * doc/functions/roundl.texi: Mention roundl module.
49428         * MODULES.html.sh: Mention new modules.
49429         Thanks to Bruno Haible for suggestions.
49430
49431 2007-10-20  Jim Meyering  <meyering@redhat.com>
49432
49433         * lib/xprintf.c: Include <config.h> unconditionally.
49434
49435         Change xprintf's license to GPL.
49436         * modules/xprintf (License): s/LGPL/GPL/, since this module
49437         depends on modules (exit and exitfail) which are GPL.
49438         Suggestion from Bruno Haible.
49439
49440         xprintf fixes.
49441         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49442         Use a clearer diagnostic.
49443         Patch from Bruno Haible.
49444
49445 2007-10-20  Bruno Haible  <bruno@clisp.org>
49446
49447         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49448         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49449         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49450
49451 2007-10-20  Bruno Haible  <bruno@clisp.org>
49452
49453         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49454         precision in the comparison result > x - 1 or similar.
49455         * tests/test-ceilf2.c (correct_result_p): Likewise.
49456         * tests/test-truncf2.c (correct_result_p): Likewise.
49457         * tests/test-trunc2.c (correct_result_p): Likewise.
49458         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49459
49460 2007-10-20  Bruno Haible  <bruno@clisp.org>
49461
49462         * modules/ceil: New file.
49463         * m4/ceil.m4: New file.
49464         * doc/functions/ceil.texi: Mention the 'ceil' module.
49465
49466 2007-10-20  Bruno Haible  <bruno@clisp.org>
49467
49468         * modules/floor: New file.
49469         * m4/floor.m4: New file.
49470         * doc/functions/floor.texi: Mention the 'floor' module.
49471
49472 2007-10-20  Bruno Haible  <bruno@clisp.org>
49473
49474         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49475         of %a.
49476         * modules/floorf-tests (Depends-on): Likewise.
49477         * modules/truncf-tests (Depends-on): Likewise.
49478         * modules/trunc-tests (Depends-on): Likewise.
49479         Reported by Ben Pfaff.
49480
49481 2007-10-19  Jim Meyering  <meyering@redhat.com>
49482
49483         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49484         Don't bother testing specific errno values.  Just test ferror.
49485
49486         New module: xprintf
49487         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49488
49489 2007-10-19  Bruno Haible  <bruno@clisp.org>
49490
49491         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49492         syntax.
49493         * modules/javaexec (Makefile.am): Likewise.
49494         * modules/relocatable-prog (Makefile.am): Likewise.
49495         Suggested by Jim Meyering.
49496
49497 2007-10-18  Bruno Haible  <bruno@clisp.org>
49498
49499         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49500         Reported by Jim Meyering.
49501
49502 2007-10-18  Eric Blake  <ebb9@byu.net>
49503
49504         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49505
49506 2007-10-18  Bruno Haible  <bruno@clisp.org>
49507
49508         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49509         the format string into writable memory. Needed in Fortify conditions.
49510
49511 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49512             Bruno Haible  <bruno@clisp.org>
49513
49514         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49515         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49516         * modules/trim (Depends-on): Add mbchar.
49517         (configure.ac): Add gl_FUNC_MBRTOWC.
49518         (Makefile.am): Augment lib_SOURCES.
49519
49520 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49521
49522         Modify glob.c to use fstatat and dirfd, to simplify it.
49523         Suggested by Eric Blake.
49524         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49525         Don't include <stdbool.h>; not used.
49526         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
49527         (link_exists_p): Simplify implementation, since we can now assume
49528         dirfd and fstatat.
49529         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
49530
49531 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49532
49533         * gnulib-tool (func_get_dependencies): Fix sed script to
49534         match only tests.
49535
49536 2007-10-17  Bruno Haible  <bruno@clisp.org>
49537
49538         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
49539         allow locale names without encoding suffix.
49540         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49541         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49542
49543 2007-10-16  Bruno Haible  <bruno@clisp.org>
49544
49545         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
49546         * lib/getgroups.c (getgroups): Likewise.
49547         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
49548
49549 2007-10-16  Bruno Haible  <bruno@clisp.org>
49550
49551         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
49552         * modules/malloc-posix (License): Likewise.
49553         * modules/realloc-posix (License): Likewise.
49554         * modules/calloc-posix (License): Likewise.
49555         * modules/intprops (License): Change from GPL to LGPL, with
49556         Paul Eggert's approval.
49557
49558 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49559
49560         Merge glibc changes into lib/glob.c.
49561
49562         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
49563         2007-10-15 04:59:03 UTC.  Here are the changes:
49564
49565         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
49566
49567         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
49568
49569         * lib/glob.c: Add some branch prediction throughout.
49570
49571         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
49572
49573         [BZ #5103]
49574         * lib/glob.c (glob): Recognize patterns starting \/.
49575
49576         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
49577
49578         [BZ #3996]
49579         * lib/glob.c (attribute_hidden): Define if not defined.
49580         (glob): Unescape dirname, filename or username when needed and not
49581         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
49582         is NULL.  Handle unescaped [ in pattern without closing ].
49583         Don't pass GLOB_CHECK down to recursive glob for directories.
49584         (__glob_pattern_type): New function.
49585         (__glob_pattern_p): Implement using __glob_pattern_type.
49586         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
49587         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
49588         Remove unreachable code.
49589
49590         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
49591
49592         * lib/glob.c (glob_in_dir): Add some comments and asserts to
49593         explain why there are no leaks.
49594
49595         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
49596
49597         [BZ #3253]
49598         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
49599         time, rather allocate increasingly bigger arrays of pointers, if
49600         possible with alloca, if too large with malloc.
49601
49602 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49603
49604         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
49605         Problem reported by H.Merijn Brand in
49606         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
49607         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
49608         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49609
49610 2007-10-15  Bruno Haible  <bruno@clisp.org>
49611
49612         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
49613         with explicit rpl_ prefix.
49614         * lib/fopen.c (fopen): Likewise.
49615         * lib/freopen.c (freopen): Likewise.
49616         * lib/iconv.c (iconv): Likewise.
49617         * lib/iconv_close.c (iconv_close): Likewise.
49618
49619 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49620
49621         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49622
49623 2007-10-15  Bruno Haible  <bruno@clisp.org>
49624
49625         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49626         <stddef.h> instead of <stdlib.h> since we only need NULL.
49627         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49628
49629 2007-10-15  Bruno Haible  <bruno@clisp.org>
49630
49631         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49632         Replace paragraph talking about LIBOBJS.
49633         Reported by Colin Watson <cjwatson@debian.org>.
49634
49635 2007-10-15  Bruno Haible  <bruno@clisp.org>
49636
49637         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49638         <stdlib.h> before using NULL.
49639
49640 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49641
49642         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49643         Reported by Albert Chin <china@thewrittenword.com>.
49644
49645 2007-10-14  Bruno Haible  <bruno@clisp.org>
49646
49647         * modules/iconv_open-utf-tests: New file.
49648         * tests/test-iconv-utf.c: New file.
49649
49650         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49651         * modules/iconv_open-utf: New file.
49652         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49653         (iconv, iconv_close): New declarations.
49654         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49655         be defined.
49656         (iconv_open): Add special handling of conversion between UTF-8 and
49657         UTF-{16,32}{BE,LE}.
49658         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49659         * lib/iconv_close.c: New file.
49660         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49661         gl_FUNC_ICONV_OPEN.
49662         (gl_FUNC_ICONV_OPEN): Use it.
49663         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49664         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49665         and REPLACE_ICONV_UTF.
49666         * modules/iconv_open (Depends-on): Add c-strcase.
49667         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49668         ICONV_CONST.
49669         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49670
49671 2007-10-13  Albert Chin  <china@thewrittenword.com>
49672             Bruno Haible  <bruno@clisp.org>
49673
49674         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49675         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49676
49677 2007-10-13  Bruno Haible  <bruno@clisp.org>
49678
49679         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49680         defined, use the ISO C99 inline semantics.
49681         * lib/argp.h (ARGP_EI): Likewise.
49682
49683 2007-10-13  Bruno Haible  <bruno@clisp.org>
49684
49685         Handle 'inline' change in gcc 4.3.0.
49686         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49687         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49688         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49689         argp_fmtstream_point): Disable 'extern' declaration if the function
49690         definition is going to be provided inline.
49691         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
49692         semantics, not the ISO C99 inline semantics.
49693         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
49694         'extern' declaration if the function definition is going to be provided
49695         inline.
49696         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
49697         the GNU C inline semantics, not the ISO C99 inline semantics. With
49698         GCC 4.2, avoid a warning.
49699
49700 2007-10-13  Bruno Haible  <bruno@clisp.org>
49701
49702         * lib/freading.h (freading): Enable the use of __freading for
49703         glibc >= 2.7.
49704         * lib/freading.c (freading): Likewise.
49705
49706 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49707
49708         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
49709         "warning: C99 inline functions are not supported; using GNU89".
49710
49711 2007-10-12  Bruno Haible  <bruno@clisp.org>
49712
49713         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
49714         of 2.
49715         * tests/test-ceilf2.c: New file.
49716         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
49717
49718         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
49719         * modules/ceilf-tests: Update.
49720
49721 2007-10-12  Bruno Haible  <bruno@clisp.org>
49722
49723         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
49724         of 2.
49725         * tests/test-floorf2.c: New file.
49726         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
49727
49728         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
49729         * modules/floorf-tests: Update.
49730
49731 2007-10-12  Bruno Haible  <bruno@clisp.org>
49732
49733         * tests/test-trunc2.c: New file.
49734         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
49735
49736         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
49737         * modules/trunc-tests: Update.
49738
49739 2007-10-12  Bruno Haible  <bruno@clisp.org>
49740
49741         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
49742         of 2.
49743         * tests/test-truncf2.c: New file.
49744         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
49745
49746         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
49747         * modules/truncf-tests: Update.
49748
49749 2007-10-11  Eric Blake  <ebb9@byu.net>
49750
49751         Don't claim strerror is broken on Interix.
49752         * doc/functions/strerror.texi (strerror): Known broken systems are
49753         now Solaris 8, and not Interix.
49754         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
49755         Interix on cross-compile.
49756         Reported by Martin Koeppe in
49757         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
49758
49759 2007-10-11  Bruno Haible  <bruno@clisp.org>
49760
49761         * modules/i-ring-tests: New file.
49762         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
49763         instead of assert.
49764
49765 2007-10-11  Bruno Haible  <bruno@clisp.org>
49766
49767         * modules/filenamecat-tests: New file.
49768         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
49769         * lib/filenamecat.c: Remove test code.
49770
49771 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49772
49773         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
49774
49775         * lib/strerror.c: Include <string.h> always, to test interface,
49776         and to remove the need for the dummy.
49777         Include intprops.h to compute width instead of doing it ourselves
49778         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
49779         (strerror): Define it to return NULL if there's no system strerror.
49780         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
49781         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
49782         ancient pre-strerror Unix systems well any more.  Saying "unknown
49783         system error" is enough.
49784         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
49785         simpler strerror.c implementation.
49786         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
49787         Simplify the tests to reflect the simpler strerror implementation.
49788         * modules/strerror (Depends-on): Add intprops.
49789
49790 2007-10-09  Eric Blake  <ebb9@byu.net>
49791
49792         Silence test-fpending.
49793         * modules/fpending-tests (Files): Add wrapper script.
49794         * tests/test-fpending.sh: New file.
49795
49796 2007-10-09  Bruno Haible  <bruno@clisp.org>
49797
49798         * MODULES.html.sh (func_module): Don't create a hyperlink for
49799         function names like 'printf_frexp'.
49800         (Misc): Add crc, memxor.
49801         (Characteristics of floating types): New section.
49802         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
49803         isnanf-nolibm, signbit, trunc, truncf, truncl.
49804         (Enhancements for ISO C 99 functions): New subsection Input/output.
49805         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
49806         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
49807         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
49808         (Compatibility checks for POSIX:2001 functions): Add clock-time.
49809         (Enhancements for POSIX:2001 functions): Add chdir-long.
49810         (File system functions): Add areadlink, chdir-safer, read-file.
49811         Remove cycle-check.
49812         (File system as inode set): New section.
49813         (Date and time): Add gethrxtime.
49814         (Multithreading): Add openmp.
49815         (Internationalization functions): Add localename.
49816         (Unicode string functions): Add unistr/u*-mbsnlen.
49817         (Support for maintaining and releasing projects): Add git-version-gen.
49818         (Lone files): Remove directories.
49819
49820 2007-10-08  Ben Pfaff  <blp@gnu.org>
49821
49822         * lib/xmalloca.h: Fix typo in comment.
49823
49824 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49825
49826         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
49827         when avoiding problems with integer overflow.  Use a portable test
49828         instead.
49829
49830 2007-10-08  Simon Josefsson  <simon@josefsson.org>
49831
49832         * modules/dummy (License): Change to LGPLv2+.
49833         * modules/float (License): Likewise
49834         * modules/realloc (License): Likewise
49835         * modules/stdlib (License): Likewise
49836
49837 2007-10-07  Bruno Haible  <bruno@clisp.org>
49838
49839         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
49840         * floor.c (TWO_MANT_DIG): Likewise.
49841         * ceil.c (TWO_MANT_DIG): Likewise.
49842         Reported by Ben Pfaff.
49843
49844 2007-10-07  Bruno Haible  <bruno@clisp.org>
49845
49846         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
49847         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
49848         * lib/frexp.c (FUNC): Likewise.
49849         * lib/printf-frexp.h (printf_frexp): Likewise.
49850         * lib/printf-frexpl.h (printf_frexpl): Likewise.
49851         * lib/printf-frexp.c (FUNC): Likewise.
49852         Suggested by Jim Meyering.
49853
49854 2007-10-07  Jim Meyering  <meyering@redhat.com>
49855
49856         Make xnanosleep's integer overflow test more robust.
49857         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
49858         so that gcc-4.3.0 doesn't optimize away this test for overflow.
49859
49860 2007-10-07  Bruno Haible  <bruno@clisp.org>
49861
49862         * NEWS: Mention the license change.
49863
49864         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
49865         abbreviations in the modules files.
49866
49867         Change copyright notice from GPLv2+ to GPLv3+.
49868         * README: Change copyright notice.
49869         * MODULES.html.sh: Likewise.
49870         * build-aux/bootstrap.conf: Likewise.
49871         * build-aux/config.libpath: Likewise.
49872         * build-aux/csharpcomp.sh.in: Likewise.
49873         * build-aux/csharpexec.sh.in: Likewise.
49874         * build-aux/install-reloc: Likewise.
49875         * build-aux/javacomp.sh.in: Likewise.
49876         * build-aux/javaexec.sh.in: Likewise.
49877         * build-aux/ldd.sh.in: Likewise.
49878         * build-aux/reloc-ldflags: Likewise.
49879         * build-aux/relocatable.sh.in: Likewise.
49880         * build-aux/x-to-1.in: Likewise.
49881         * check-module: Likewise.
49882         * config/srclistvars.sh: Likewise.
49883         * gnulib-tool: Likewise.
49884         * lib/acl-internal.h: Likewise.
49885         * lib/acl.c: Likewise.
49886         * lib/acl.h: Likewise.
49887         * lib/acl_entries.c: Likewise.
49888         * lib/areadlink-with-size.c: Likewise.
49889         * lib/areadlink.c: Likewise.
49890         * lib/areadlink.h: Likewise.
49891         * lib/argmatch.c: Likewise.
49892         * lib/argmatch.h: Likewise.
49893         * lib/argp-ba.c: Likewise.
49894         * lib/argp-eexst.c: Likewise.
49895         * lib/argp-fmtstream.c: Likewise.
49896         * lib/argp-fmtstream.h: Likewise.
49897         * lib/argp-fs-xinl.c: Likewise.
49898         * lib/argp-help.c: Likewise.
49899         * lib/argp-namefrob.h: Likewise.
49900         * lib/argp-parse.c: Likewise.
49901         * lib/argp-pin.c: Likewise.
49902         * lib/argp-pv.c: Likewise.
49903         * lib/argp-pvh.c: Likewise.
49904         * lib/argp-xinl.c: Likewise.
49905         * lib/argp.h: Likewise.
49906         * lib/at-func.c: Likewise.
49907         * lib/atanl.c: Likewise.
49908         * lib/backupfile.c: Likewise.
49909         * lib/backupfile.h: Likewise.
49910         * lib/basename.c: Likewise.
49911         * lib/binary-io.h: Likewise.
49912         * lib/byteswap.in.h: Likewise.
49913         * lib/c-stack.c: Likewise.
49914         * lib/c-stack.h: Likewise.
49915         * lib/c-strcasestr.c: Likewise.
49916         * lib/c-strcasestr.h: Likewise.
49917         * lib/c-strstr.c: Likewise.
49918         * lib/c-strstr.h: Likewise.
49919         * lib/c-strtod.c: Likewise.
49920         * lib/calloc.c: Likewise.
49921         * lib/canon-host.c: Likewise.
49922         * lib/canon-host.h: Likewise.
49923         * lib/canonicalize-lgpl.c: Likewise.
49924         * lib/canonicalize.c: Likewise.
49925         * lib/canonicalize.h: Likewise.
49926         * lib/ceil.c: Likewise.
49927         * lib/ceilf.c: Likewise.
49928         * lib/ceill.c: Likewise.
49929         * lib/chdir-long.c: Likewise.
49930         * lib/chdir-long.h: Likewise.
49931         * lib/chdir-safer.c: Likewise.
49932         * lib/chdir-safer.h: Likewise.
49933         * lib/chown.c: Likewise.
49934         * lib/classpath.c: Likewise.
49935         * lib/classpath.h: Likewise.
49936         * lib/clean-temp.c: Likewise.
49937         * lib/clean-temp.h: Likewise.
49938         * lib/cloexec.c: Likewise.
49939         * lib/close-stream.c: Likewise.
49940         * lib/closein.c: Likewise.
49941         * lib/closein.h: Likewise.
49942         * lib/closeout.c: Likewise.
49943         * lib/closeout.h: Likewise.
49944         * lib/concat-filename.c: Likewise.
49945         * lib/copy-file.c: Likewise.
49946         * lib/copy-file.h: Likewise.
49947         * lib/count-one-bits.h: Likewise.
49948         * lib/crc.c: Likewise.
49949         * lib/crc.h: Likewise.
49950         * lib/creat-safer.c: Likewise.
49951         * lib/csharpcomp.c: Likewise.
49952         * lib/csharpcomp.h: Likewise.
49953         * lib/csharpexec.c: Likewise.
49954         * lib/csharpexec.h: Likewise.
49955         * lib/cycle-check.c: Likewise.
49956         * lib/cycle-check.h: Likewise.
49957         * lib/diacrit.c: Likewise.
49958         * lib/diacrit.h: Likewise.
49959         * lib/diffseq.h: Likewise.
49960         * lib/dirchownmod.c: Likewise.
49961         * lib/dirent.in.h: Likewise.
49962         * lib/dirfd.c: Likewise.
49963         * lib/dirfd.h: Likewise.
49964         * lib/dirname.c: Likewise.
49965         * lib/dirname.h: Likewise.
49966         * lib/dummy.c: Likewise.
49967         * lib/dup-safer.c: Likewise.
49968         * lib/dup2.c: Likewise.
49969         * lib/eealloc.h: Likewise.
49970         * lib/error.c: Likewise.
49971         * lib/error.h: Likewise.
49972         * lib/euidaccess.c: Likewise.
49973         * lib/exclude.c: Likewise.
49974         * lib/exclude.h: Likewise.
49975         * lib/execute.c: Likewise.
49976         * lib/execute.h: Likewise.
49977         * lib/exitfail.c: Likewise.
49978         * lib/exitfail.h: Likewise.
49979         * lib/expl.c: Likewise.
49980         * lib/fatal-signal.c: Likewise.
49981         * lib/fatal-signal.h: Likewise.
49982         * lib/fbufmode.c: Likewise.
49983         * lib/fbufmode.h: Likewise.
49984         * lib/fchdir.c: Likewise.
49985         * lib/fchmodat.c: Likewise.
49986         * lib/fchownat.c: Likewise.
49987         * lib/fcntl--.h: Likewise.
49988         * lib/fcntl-safer.h: Likewise.
49989         * lib/fcntl.in.h: Likewise.
49990         * lib/fd-safer.c: Likewise.
49991         * lib/fflush.c: Likewise.
49992         * lib/file-has-acl.c: Likewise.
49993         * lib/file-set.c: Likewise.
49994         * lib/file-type.c: Likewise.
49995         * lib/file-type.h: Likewise.
49996         * lib/fileblocks.c: Likewise.
49997         * lib/filemode.c: Likewise.
49998         * lib/filemode.h: Likewise.
49999         * lib/filename.h: Likewise.
50000         * lib/filenamecat.c: Likewise.
50001         * lib/filenamecat.h: Likewise.
50002         * lib/findprog.c: Likewise.
50003         * lib/findprog.h: Likewise.
50004         * lib/float.in.h: Likewise.
50005         * lib/floor.c: Likewise.
50006         * lib/floorf.c: Likewise.
50007         * lib/floorl.c: Likewise.
50008         * lib/fopen-safer.c: Likewise.
50009         * lib/fopen.c: Likewise.
50010         * lib/fpending.c: Likewise.
50011         * lib/fpending.h: Likewise.
50012         * lib/fprintf.c: Likewise.
50013         * lib/fprintftime.h: Likewise.
50014         * lib/fpucw.h: Likewise.
50015         * lib/fpurge.c: Likewise.
50016         * lib/fpurge.h: Likewise.
50017         * lib/freadable.c: Likewise.
50018         * lib/freadable.h: Likewise.
50019         * lib/freadahead.c: Likewise.
50020         * lib/freadahead.h: Likewise.
50021         * lib/freading.c: Likewise.
50022         * lib/freading.h: Likewise.
50023         * lib/free.c: Likewise.
50024         * lib/freopen.c: Likewise.
50025         * lib/frexp.c: Likewise.
50026         * lib/frexpl.c: Likewise.
50027         * lib/fseek.c: Likewise.
50028         * lib/fseterr.c: Likewise.
50029         * lib/fseterr.h: Likewise.
50030         * lib/fstatat.c: Likewise.
50031         * lib/fstrcmp.c: Likewise.
50032         * lib/fstrcmp.h: Likewise.
50033         * lib/fsusage.c: Likewise.
50034         * lib/fsusage.h: Likewise.
50035         * lib/ftell.c: Likewise.
50036         * lib/ftello.c: Likewise.
50037         * lib/fts-cycle.c: Likewise.
50038         * lib/fts.c: Likewise.
50039         * lib/fts_.h: Likewise.
50040         * lib/full-read.c: Likewise.
50041         * lib/full-read.h: Likewise.
50042         * lib/full-write.c: Likewise.
50043         * lib/full-write.h: Likewise.
50044         * lib/fwritable.c: Likewise.
50045         * lib/fwritable.h: Likewise.
50046         * lib/fwriteerror.c: Likewise.
50047         * lib/fwriteerror.h: Likewise.
50048         * lib/fwriting.c: Likewise.
50049         * lib/fwriting.h: Likewise.
50050         * lib/gcd.c: Likewise.
50051         * lib/gcd.h: Likewise.
50052         * lib/getcwd.c: Likewise.
50053         * lib/getdate.h: Likewise.
50054         * lib/getdate.y: Likewise.
50055         * lib/getdomainname.c: Likewise.
50056         * lib/getdomainname.h: Likewise.
50057         * lib/getgroups.c: Likewise.
50058         * lib/gethostname.c: Likewise.
50059         * lib/gethrxtime.c: Likewise.
50060         * lib/gethrxtime.h: Likewise.
50061         * lib/getloadavg.c: Likewise.
50062         * lib/getndelim2.c: Likewise.
50063         * lib/getndelim2.h: Likewise.
50064         * lib/getnline.c: Likewise.
50065         * lib/getnline.h: Likewise.
50066         * lib/getopt.c: Likewise.
50067         * lib/getopt.in.h: Likewise.
50068         * lib/getopt1.c: Likewise.
50069         * lib/getopt_int.h: Likewise.
50070         * lib/getpagesize.h: Likewise.
50071         * lib/getsubopt.c: Likewise.
50072         * lib/gettime.c: Likewise.
50073         * lib/getugroups.c: Likewise.
50074         * lib/getugroups.h: Likewise.
50075         * lib/getusershell.c: Likewise.
50076         * lib/gl_anyavltree_list1.h: Likewise.
50077         * lib/gl_anyavltree_list2.h: Likewise.
50078         * lib/gl_anyhash_list1.h: Likewise.
50079         * lib/gl_anyhash_list2.h: Likewise.
50080         * lib/gl_anylinked_list1.h: Likewise.
50081         * lib/gl_anylinked_list2.h: Likewise.
50082         * lib/gl_anyrbtree_list1.h: Likewise.
50083         * lib/gl_anyrbtree_list2.h: Likewise.
50084         * lib/gl_anytree_list1.h: Likewise.
50085         * lib/gl_anytree_list2.h: Likewise.
50086         * lib/gl_anytree_oset.h: Likewise.
50087         * lib/gl_anytreehash_list1.h: Likewise.
50088         * lib/gl_anytreehash_list2.h: Likewise.
50089         * lib/gl_array_list.c: Likewise.
50090         * lib/gl_array_list.h: Likewise.
50091         * lib/gl_array_oset.c: Likewise.
50092         * lib/gl_array_oset.h: Likewise.
50093         * lib/gl_avltree_list.c: Likewise.
50094         * lib/gl_avltree_list.h: Likewise.
50095         * lib/gl_avltree_oset.c: Likewise.
50096         * lib/gl_avltree_oset.h: Likewise.
50097         * lib/gl_avltreehash_list.c: Likewise.
50098         * lib/gl_avltreehash_list.h: Likewise.
50099         * lib/gl_carray_list.c: Likewise.
50100         * lib/gl_carray_list.h: Likewise.
50101         * lib/gl_linked_list.c: Likewise.
50102         * lib/gl_linked_list.h: Likewise.
50103         * lib/gl_linkedhash_list.c: Likewise.
50104         * lib/gl_linkedhash_list.h: Likewise.
50105         * lib/gl_list.c: Likewise.
50106         * lib/gl_list.h: Likewise.
50107         * lib/gl_oset.c: Likewise.
50108         * lib/gl_oset.h: Likewise.
50109         * lib/gl_rbtree_list.c: Likewise.
50110         * lib/gl_rbtree_list.h: Likewise.
50111         * lib/gl_rbtree_oset.c: Likewise.
50112         * lib/gl_rbtree_oset.h: Likewise.
50113         * lib/gl_rbtreehash_list.c: Likewise.
50114         * lib/gl_rbtreehash_list.h: Likewise.
50115         * lib/gl_sublist.c: Likewise.
50116         * lib/gl_sublist.h: Likewise.
50117         * lib/group-member.c: Likewise.
50118         * lib/group-member.h: Likewise.
50119         * lib/hard-locale.c: Likewise.
50120         * lib/hard-locale.h: Likewise.
50121         * lib/hash-pjw.c: Likewise.
50122         * lib/hash-pjw.h: Likewise.
50123         * lib/hash-triple.c: Likewise.
50124         * lib/hash.c: Likewise.
50125         * lib/hash.h: Likewise.
50126         * lib/human.c: Likewise.
50127         * lib/human.h: Likewise.
50128         * lib/i-ring.c: Likewise.
50129         * lib/i-ring.h: Likewise.
50130         * lib/idcache.c: Likewise.
50131         * lib/imaxabs.c: Likewise.
50132         * lib/imaxdiv.c: Likewise.
50133         * lib/inet_pton.c: Likewise.
50134         * lib/inet_pton.h: Likewise.
50135         * lib/intprops.h: Likewise.
50136         * lib/inttostr.c: Likewise.
50137         * lib/inttostr.h: Likewise.
50138         * lib/inttypes.in.h: Likewise.
50139         * lib/isapipe.c: Likewise.
50140         * lib/isdir.c: Likewise.
50141         * lib/isnan.c: Likewise.
50142         * lib/isnan.h: Likewise.
50143         * lib/isnanf.c: Likewise.
50144         * lib/isnanf.h: Likewise.
50145         * lib/isnanl-nolibm.h: Likewise.
50146         * lib/isnanl.c: Likewise.
50147         * lib/isnanl.h: Likewise.
50148         * lib/javacomp.c: Likewise.
50149         * lib/javacomp.h: Likewise.
50150         * lib/javaexec.c: Likewise.
50151         * lib/javaexec.h: Likewise.
50152         * lib/javaversion.c: Likewise.
50153         * lib/javaversion.h: Likewise.
50154         * lib/javaversion.java: Likewise.
50155         * lib/lbrkprop.h: Likewise.
50156         * lib/lchmod.h: Likewise.
50157         * lib/lchown.c: Likewise.
50158         * lib/ldexpl.c: Likewise.
50159         * lib/linebreak.c: Likewise.
50160         * lib/linebreak.h: Likewise.
50161         * lib/linebuffer.c: Likewise.
50162         * lib/linebuffer.h: Likewise.
50163         * lib/locale.in.h: Likewise.
50164         * lib/logl.c: Likewise.
50165         * lib/long-options.c: Likewise.
50166         * lib/long-options.h: Likewise.
50167         * lib/lstat.c: Likewise.
50168         * lib/lstat.h: Likewise.
50169         * lib/math.in.h: Likewise.
50170         * lib/mbchar.c: Likewise.
50171         * lib/mbchar.h: Likewise.
50172         * lib/mbfile.h: Likewise.
50173         * lib/mbiter.h: Likewise.
50174         * lib/mbscasecmp.c: Likewise.
50175         * lib/mbscasestr.c: Likewise.
50176         * lib/mbschr.c: Likewise.
50177         * lib/mbscspn.c: Likewise.
50178         * lib/mbslen.c: Likewise.
50179         * lib/mbsncasecmp.c: Likewise.
50180         * lib/mbsnlen.c: Likewise.
50181         * lib/mbspbrk.c: Likewise.
50182         * lib/mbspcasecmp.c: Likewise.
50183         * lib/mbsrchr.c: Likewise.
50184         * lib/mbssep.c: Likewise.
50185         * lib/mbsspn.c: Likewise.
50186         * lib/mbsstr.c: Likewise.
50187         * lib/mbstok_r.c: Likewise.
50188         * lib/mbswidth.c: Likewise.
50189         * lib/mbswidth.h: Likewise.
50190         * lib/mbuiter.h: Likewise.
50191         * lib/memcasecmp.c: Likewise.
50192         * lib/memcasecmp.h: Likewise.
50193         * lib/memchr.c: Likewise.
50194         * lib/memcmp.c: Likewise.
50195         * lib/memcoll.c: Likewise.
50196         * lib/memcoll.h: Likewise.
50197         * lib/memcpy.c: Likewise.
50198         * lib/memrchr.c: Likewise.
50199         * lib/mkancesdirs.c: Likewise.
50200         * lib/mkdir-p.c: Likewise.
50201         * lib/mkdir-p.h: Likewise.
50202         * lib/mkdir.c: Likewise.
50203         * lib/mkdirat.c: Likewise.
50204         * lib/mkdtemp.c: Likewise.
50205         * lib/mkstemp-safer.c: Likewise.
50206         * lib/mkstemp.c: Likewise.
50207         * lib/modechange.c: Likewise.
50208         * lib/modechange.h: Likewise.
50209         * lib/mountlist.c: Likewise.
50210         * lib/mountlist.h: Likewise.
50211         * lib/mpsort.c: Likewise.
50212         * lib/nanosleep.c: Likewise.
50213         * lib/obstack.c: Likewise.
50214         * lib/obstack.h: Likewise.
50215         * lib/open-safer.c: Likewise.
50216         * lib/open.c: Likewise.
50217         * lib/openat-die.c: Likewise.
50218         * lib/openat-priv.h: Likewise.
50219         * lib/openat-proc.c: Likewise.
50220         * lib/openat.c: Likewise.
50221         * lib/openat.h: Likewise.
50222         * lib/pagealign_alloc.c: Likewise.
50223         * lib/pagealign_alloc.h: Likewise.
50224         * lib/physmem.c: Likewise.
50225         * lib/physmem.h: Likewise.
50226         * lib/pipe-safer.c: Likewise.
50227         * lib/pipe.c: Likewise.
50228         * lib/pipe.h: Likewise.
50229         * lib/posixtm.c: Likewise.
50230         * lib/posixtm.h: Likewise.
50231         * lib/posixver.c: Likewise.
50232         * lib/printf-frexp.c: Likewise.
50233         * lib/printf-frexp.h: Likewise.
50234         * lib/printf-frexpl.c: Likewise.
50235         * lib/printf-frexpl.h: Likewise.
50236         * lib/printf.c: Likewise.
50237         * lib/progname.c: Likewise.
50238         * lib/progname.h: Likewise.
50239         * lib/progreloc.c: Likewise.
50240         * lib/putenv.c: Likewise.
50241         * lib/quote.c: Likewise.
50242         * lib/quote.h: Likewise.
50243         * lib/quotearg.c: Likewise.
50244         * lib/quotearg.h: Likewise.
50245         * lib/raise.c: Likewise.
50246         * lib/readline.c: Likewise.
50247         * lib/readline.h: Likewise.
50248         * lib/readlink.c: Likewise.
50249         * lib/readtokens.c: Likewise.
50250         * lib/readtokens.h: Likewise.
50251         * lib/readtokens0.c: Likewise.
50252         * lib/readtokens0.h: Likewise.
50253         * lib/readutmp.c: Likewise.
50254         * lib/readutmp.h: Likewise.
50255         * lib/realloc.c: Likewise.
50256         * lib/relocwrapper.c: Likewise.
50257         * lib/rename-dest-slash.c: Likewise.
50258         * lib/rename.c: Likewise.
50259         * lib/rmdir.c: Likewise.
50260         * lib/rpmatch.c: Likewise.
50261         * lib/safe-read.c: Likewise.
50262         * lib/safe-read.h: Likewise.
50263         * lib/safe-write.c: Likewise.
50264         * lib/safe-write.h: Likewise.
50265         * lib/same-inode.h: Likewise.
50266         * lib/same.c: Likewise.
50267         * lib/same.h: Likewise.
50268         * lib/save-cwd.c: Likewise.
50269         * lib/save-cwd.h: Likewise.
50270         * lib/savedir.c: Likewise.
50271         * lib/savedir.h: Likewise.
50272         * lib/savewd.c: Likewise.
50273         * lib/savewd.h: Likewise.
50274         * lib/search.in.h: Likewise.
50275         * lib/setenv.c: Likewise.
50276         * lib/setenv.h: Likewise.
50277         * lib/settime.c: Likewise.
50278         * lib/sh-quote.c: Likewise.
50279         * lib/sh-quote.h: Likewise.
50280         * lib/sig2str.c: Likewise.
50281         * lib/sig2str.h: Likewise.
50282         * lib/signal.in.h: Likewise.
50283         * lib/signbitd.c: Likewise.
50284         * lib/signbitf.c: Likewise.
50285         * lib/signbitl.c: Likewise.
50286         * lib/sigprocmask.c: Likewise.
50287         * lib/sincosl.c: Likewise.
50288         * lib/sleep.c: Likewise.
50289         * lib/sprintf.c: Likewise.
50290         * lib/sqrtl.c: Likewise.
50291         * lib/stat-time.h: Likewise.
50292         * lib/stdio--.h: Likewise.
50293         * lib/stdio-safer.h: Likewise.
50294         * lib/stdlib--.h: Likewise.
50295         * lib/stdlib-safer.h: Likewise.
50296         * lib/stdlib.in.h: Likewise.
50297         * lib/stpcpy.c: Likewise.
50298         * lib/stpncpy.c: Likewise.
50299         * lib/strchrnul.c: Likewise.
50300         * lib/strcspn.c: Likewise.
50301         * lib/strerror.c: Likewise.
50302         * lib/strftime.c: Likewise.
50303         * lib/strftime.h: Likewise.
50304         * lib/striconveh.c: Likewise.
50305         * lib/striconveh.h: Likewise.
50306         * lib/striconveha.c: Likewise.
50307         * lib/striconveha.h: Likewise.
50308         * lib/stripslash.c: Likewise.
50309         * lib/strnlen1.c: Likewise.
50310         * lib/strnlen1.h: Likewise.
50311         * lib/strtod.c: Likewise.
50312         * lib/strtoimax.c: Likewise.
50313         * lib/strtok_r.c: Likewise.
50314         * lib/strtol.c: Likewise.
50315         * lib/strtoll.c: Likewise.
50316         * lib/strtoul.c: Likewise.
50317         * lib/strtoull.c: Likewise.
50318         * lib/sysexits.in.h: Likewise.
50319         * lib/tempname.c: Likewise.
50320         * lib/tempname.h: Likewise.
50321         * lib/timespec.h: Likewise.
50322         * lib/tls.c: Likewise.
50323         * lib/tls.h: Likewise.
50324         * lib/tmpdir.c: Likewise.
50325         * lib/tmpdir.h: Likewise.
50326         * lib/tmpfile-safer.c: Likewise.
50327         * lib/tmpfile.c: Likewise.
50328         * lib/trigl.c: Likewise.
50329         * lib/trigl.h: Likewise.
50330         * lib/trim.c: Likewise.
50331         * lib/trim.h: Likewise.
50332         * lib/trunc.c: Likewise.
50333         * lib/truncf.c: Likewise.
50334         * lib/truncl.c: Likewise.
50335         * lib/tsearch.c: Likewise.
50336         * lib/unicodeio.c: Likewise.
50337         * lib/unicodeio.h: Likewise.
50338         * lib/unistd--.h: Likewise.
50339         * lib/unistd-safer.h: Likewise.
50340         * lib/unistdio/ulc-fprintf.c: Likewise.
50341         * lib/unistdio/ulc-vfprintf.c: Likewise.
50342         * lib/unlinkdir.c: Likewise.
50343         * lib/unlinkdir.h: Likewise.
50344         * lib/unlocked-io.h: Likewise.
50345         * lib/unsetenv.c: Likewise.
50346         * lib/userspec.c: Likewise.
50347         * lib/utime.c: Likewise.
50348         * lib/utimecmp.c: Likewise.
50349         * lib/utimecmp.h: Likewise.
50350         * lib/utimens.c: Likewise.
50351         * lib/verify.h: Likewise.
50352         * lib/verror.c: Likewise.
50353         * lib/verror.h: Likewise.
50354         * lib/version-etc-fsf.c: Likewise.
50355         * lib/version-etc.c: Likewise.
50356         * lib/version-etc.h: Likewise.
50357         * lib/vfprintf.c: Likewise.
50358         * lib/vprintf.c: Likewise.
50359         * lib/vsprintf.c: Likewise.
50360         * lib/w32spawn.h: Likewise.
50361         * lib/wait-process.c: Likewise.
50362         * lib/wait-process.h: Likewise.
50363         * lib/wcwidth.c: Likewise.
50364         * lib/write-any-file.c: Likewise.
50365         * lib/xalloc-die.c: Likewise.
50366         * lib/xalloc.h: Likewise.
50367         * lib/xasprintf.c: Likewise.
50368         * lib/xgetcwd.c: Likewise.
50369         * lib/xgetcwd.h: Likewise.
50370         * lib/xgetdomainname.c: Likewise.
50371         * lib/xgetdomainname.h: Likewise.
50372         * lib/xgethostname.c: Likewise.
50373         * lib/xmalloc.c: Likewise.
50374         * lib/xmalloca.c: Likewise.
50375         * lib/xmalloca.h: Likewise.
50376         * lib/xmemcoll.c: Likewise.
50377         * lib/xnanosleep.c: Likewise.
50378         * lib/xreadlink.c: Likewise.
50379         * lib/xreadlink.h: Likewise.
50380         * lib/xsetenv.c: Likewise.
50381         * lib/xsetenv.h: Likewise.
50382         * lib/xstriconv.c: Likewise.
50383         * lib/xstriconv.h: Likewise.
50384         * lib/xstrndup.c: Likewise.
50385         * lib/xstrndup.h: Likewise.
50386         * lib/xstrtod.c: Likewise.
50387         * lib/xstrtod.h: Likewise.
50388         * lib/xstrtol-error.c: Likewise.
50389         * lib/xstrtol.c: Likewise.
50390         * lib/xstrtol.h: Likewise.
50391         * lib/xtime.h: Likewise.
50392         * lib/xvasprintf.c: Likewise.
50393         * lib/xvasprintf.h: Likewise.
50394         * lib/yesno.c: Likewise.
50395         * lib/yesno.h: Likewise.
50396         * posix-modules: Likewise.
50397         * tests/test-alloca-opt.c: Likewise.
50398         * tests/test-arcfour.c: Likewise.
50399         * tests/test-arctwo.c: Likewise.
50400         * tests/test-argmatch.c: Likewise.
50401         * tests/test-argp-2.sh: Likewise.
50402         * tests/test-argp.c: Likewise.
50403         * tests/test-arpa_inet.c: Likewise.
50404         * tests/test-array_list.c: Likewise.
50405         * tests/test-array_oset.c: Likewise.
50406         * tests/test-atexit.c: Likewise.
50407         * tests/test-avltree_list.c: Likewise.
50408         * tests/test-avltree_oset.c: Likewise.
50409         * tests/test-avltreehash_list.c: Likewise.
50410         * tests/test-base64.c: Likewise.
50411         * tests/test-binary-io.c: Likewise.
50412         * tests/test-byteswap.c: Likewise.
50413         * tests/test-c-ctype.c: Likewise.
50414         * tests/test-c-strcasecmp.c: Likewise.
50415         * tests/test-c-strcasestr.c: Likewise.
50416         * tests/test-c-strncasecmp.c: Likewise.
50417         * tests/test-c-strstr.c: Likewise.
50418         * tests/test-canonicalize-lgpl.c: Likewise.
50419         * tests/test-canonicalize.c: Likewise.
50420         * tests/test-carray_list.c: Likewise.
50421         * tests/test-ceilf.c: Likewise.
50422         * tests/test-ceill.c: Likewise.
50423         * tests/test-count-one-bits.c: Likewise.
50424         * tests/test-crc.c: Likewise.
50425         * tests/test-dirname.c: Likewise.
50426         * tests/test-fbufmode.c: Likewise.
50427         * tests/test-fcntl.c: Likewise.
50428         * tests/test-fflush.c: Likewise.
50429         * tests/test-floorf.c: Likewise.
50430         * tests/test-floorl.c: Likewise.
50431         * tests/test-fopen.c: Likewise.
50432         * tests/test-fprintf-posix.c: Likewise.
50433         * tests/test-fprintf-posix.h: Likewise.
50434         * tests/test-fpurge.c: Likewise.
50435         * tests/test-freadable.c: Likewise.
50436         * tests/test-freadahead.c: Likewise.
50437         * tests/test-freading.c: Likewise.
50438         * tests/test-freopen.c: Likewise.
50439         * tests/test-frexp.c: Likewise.
50440         * tests/test-frexpl.c: Likewise.
50441         * tests/test-fseek.c: Likewise.
50442         * tests/test-fseeko.c: Likewise.
50443         * tests/test-fseterr.c: Likewise.
50444         * tests/test-fstrcmp.c: Likewise.
50445         * tests/test-ftell.c: Likewise.
50446         * tests/test-ftello.c: Likewise.
50447         * tests/test-fwritable.c: Likewise.
50448         * tests/test-fwriting.c: Likewise.
50449         * tests/test-getaddrinfo.c: Likewise.
50450         * tests/test-getpass.c: Likewise.
50451         * tests/test-gettimeofday.c: Likewise.
50452         * tests/test-hmac-md5.c: Likewise.
50453         * tests/test-hmac-sha1.c: Likewise.
50454         * tests/test-iconv.c: Likewise.
50455         * tests/test-iconvme.c: Likewise.
50456         * tests/test-inttypes.c: Likewise.
50457         * tests/test-isnan.c: Likewise.
50458         * tests/test-isnanf.c: Likewise.
50459         * tests/test-isnanl-nolibm.c: Likewise.
50460         * tests/test-isnanl.c: Likewise.
50461         * tests/test-isnanl.h: Likewise.
50462         * tests/test-ldexpl.c: Likewise.
50463         * tests/test-linked_list.c: Likewise.
50464         * tests/test-linkedhash_list.c: Likewise.
50465         * tests/test-locale.c: Likewise.
50466         * tests/test-localename.c: Likewise.
50467         * tests/test-lock.c: Likewise.
50468         * tests/test-lseek.c: Likewise.
50469         * tests/test-malloca.c: Likewise.
50470         * tests/test-math.c: Likewise.
50471         * tests/test-mbscasecmp.c: Likewise.
50472         * tests/test-mbscasestr1.c: Likewise.
50473         * tests/test-mbscasestr2.c: Likewise.
50474         * tests/test-mbscasestr3.c: Likewise.
50475         * tests/test-mbscasestr4.c: Likewise.
50476         * tests/test-mbschr.c: Likewise.
50477         * tests/test-mbscspn.c: Likewise.
50478         * tests/test-mbsncasecmp.c: Likewise.
50479         * tests/test-mbspbrk.c: Likewise.
50480         * tests/test-mbspcasecmp.c: Likewise.
50481         * tests/test-mbsrchr.c: Likewise.
50482         * tests/test-mbsspn.c: Likewise.
50483         * tests/test-mbsstr1.c: Likewise.
50484         * tests/test-mbsstr2.c: Likewise.
50485         * tests/test-mbsstr3.c: Likewise.
50486         * tests/test-md5.c: Likewise.
50487         * tests/test-memmem.c: Likewise.
50488         * tests/test-netinet_in.c: Likewise.
50489         * tests/test-open.c: Likewise.
50490         * tests/test-printf-frexp.c: Likewise.
50491         * tests/test-printf-frexpl.c: Likewise.
50492         * tests/test-printf-posix.c: Likewise.
50493         * tests/test-printf-posix.h: Likewise.
50494         * tests/test-rbtree_list.c: Likewise.
50495         * tests/test-rbtree_oset.c: Likewise.
50496         * tests/test-rbtreehash_list.c: Likewise.
50497         * tests/test-read-file.c: Likewise.
50498         * tests/test-rijndael.c: Likewise.
50499         * tests/test-search.c: Likewise.
50500         * tests/test-signbit.c: Likewise.
50501         * tests/test-sleep.c: Likewise.
50502         * tests/test-snprintf-posix.c: Likewise.
50503         * tests/test-snprintf-posix.h: Likewise.
50504         * tests/test-snprintf.c: Likewise.
50505         * tests/test-sprintf-posix.c: Likewise.
50506         * tests/test-sprintf-posix.h: Likewise.
50507         * tests/test-stat-time.c: Likewise.
50508         * tests/test-stdbool.c: Likewise.
50509         * tests/test-stdint.c: Likewise.
50510         * tests/test-stdio.c: Likewise.
50511         * tests/test-stdlib.c: Likewise.
50512         * tests/test-stpncpy.c: Likewise.
50513         * tests/test-strcasestr.c: Likewise.
50514         * tests/test-striconv.c: Likewise.
50515         * tests/test-striconveh.c: Likewise.
50516         * tests/test-striconveha.c: Likewise.
50517         * tests/test-string.c: Likewise.
50518         * tests/test-sys_select.c: Likewise.
50519         * tests/test-sys_socket.c: Likewise.
50520         * tests/test-sys_stat.c: Likewise.
50521         * tests/test-sys_time.c: Likewise.
50522         * tests/test-sysexits.c: Likewise.
50523         * tests/test-time.c: Likewise.
50524         * tests/test-tls.c: Likewise.
50525         * tests/test-trunc.c: Likewise.
50526         * tests/test-truncf.c: Likewise.
50527         * tests/test-truncl.c: Likewise.
50528         * tests/test-unistd.c: Likewise.
50529         * tests/test-vasnprintf-posix.c: Likewise.
50530         * tests/test-vasnprintf-posix2.c: Likewise.
50531         * tests/test-vasnprintf.c: Likewise.
50532         * tests/test-vasprintf-posix.c: Likewise.
50533         * tests/test-vasprintf.c: Likewise.
50534         * tests/test-verify.c: Likewise.
50535         * tests/test-vfprintf-posix.c: Likewise.
50536         * tests/test-vprintf-posix.c: Likewise.
50537         * tests/test-vsnprintf-posix.c: Likewise.
50538         * tests/test-vsnprintf.c: Likewise.
50539         * tests/test-vsprintf-posix.c: Likewise.
50540         * tests/test-wchar.c: Likewise.
50541         * tests/test-wctype.c: Likewise.
50542         * tests/test-wcwidth.c: Likewise.
50543         * tests/test-xstrtol.c: Likewise.
50544         * tests/test-xvasprintf.c: Likewise.
50545         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50546         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50547         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50548         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50549         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50550         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50551         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50552         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50553         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50554         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50555         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50556         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50557         * tests/uniname/test-uninames.c: Likewise.
50558         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50559         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
50560         * tests/unistdio/test-u16-printf1.h: Likewise.
50561         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50562         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50563         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50564         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50565         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50566         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50567         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50568         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
50569         * tests/unistdio/test-u32-printf1.h: Likewise.
50570         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50571         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50572         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50573         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50574         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50575         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50576         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50577         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
50578         * tests/unistdio/test-u8-printf1.h: Likewise.
50579         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50580         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50581         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50582         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50583         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50584         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50585         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50586         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
50587         * tests/unistdio/test-ulc-printf1.h: Likewise.
50588         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50589         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50590         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50591         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50592         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50593         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50594         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50595         * tests/uniwidth/test-u16-width.c: Likewise.
50596         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50597         * tests/uniwidth/test-u32-width.c: Likewise.
50598         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50599         * tests/uniwidth/test-u8-width.c: Likewise.
50600         * tests/uniwidth/test-uc_width.c: Likewise.
50601         * config/srclist-update: Likewise.
50602         (fixlicense): Update to GPLv3+.
50603
50604         Change copyright notice from LGPLv2.1+ to LGPLv3+.
50605         * tests/test-tsearch.c: Change copyright notice.
50606
50607         Change copyright notice from LGPLv2.0+ to LGPLv3+.
50608         * lib/c-strcaseeq.h: Change copyright notice.
50609         * lib/streq.h: Likewise.
50610         * lib/uniconv.h: Likewise.
50611         * lib/uniconv/u-conv-from-enc.h: Likewise.
50612         * lib/uniconv/u-conv-to-enc.h: Likewise.
50613         * lib/uniconv/u-strconv-from-enc.h: Likewise.
50614         * lib/uniconv/u-strconv-to-enc.h: Likewise.
50615         * lib/uniconv/u16-conv-from-enc.c: Likewise.
50616         * lib/uniconv/u16-conv-to-enc.c: Likewise.
50617         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50618         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50619         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50620         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50621         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50622         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50623         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50624         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50625         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50626         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50627         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50628         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50629         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50630         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50631         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50632         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50633         * lib/uniname.h: Likewise.
50634         * lib/uniname/uniname.c: Likewise.
50635         * lib/unistdio.h: Likewise.
50636         * lib/unistdio/u-asnprintf.h: Likewise.
50637         * lib/unistdio/u-asprintf.h: Likewise.
50638         * lib/unistdio/u-printf-args.c: Likewise.
50639         * lib/unistdio/u-printf-args.h: Likewise.
50640         * lib/unistdio/u-printf-parse.h: Likewise.
50641         * lib/unistdio/u-snprintf.h: Likewise.
50642         * lib/unistdio/u-sprintf.h: Likewise.
50643         * lib/unistdio/u-vasprintf.h: Likewise.
50644         * lib/unistdio/u-vsnprintf.h: Likewise.
50645         * lib/unistdio/u-vsprintf.h: Likewise.
50646         * lib/unistdio/u16-asnprintf.c: Likewise.
50647         * lib/unistdio/u16-asprintf.c: Likewise.
50648         * lib/unistdio/u16-printf-parse.c: Likewise.
50649         * lib/unistdio/u16-snprintf.c: Likewise.
50650         * lib/unistdio/u16-sprintf.c: Likewise.
50651         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50652         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50653         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50654         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50655         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50656         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50657         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50658         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50659         * lib/unistdio/u16-vasnprintf.c: Likewise.
50660         * lib/unistdio/u16-vasprintf.c: Likewise.
50661         * lib/unistdio/u16-vsnprintf.c: Likewise.
50662         * lib/unistdio/u16-vsprintf.c: Likewise.
50663         * lib/unistdio/u32-asnprintf.c: Likewise.
50664         * lib/unistdio/u32-asprintf.c: Likewise.
50665         * lib/unistdio/u32-printf-parse.c: Likewise.
50666         * lib/unistdio/u32-snprintf.c: Likewise.
50667         * lib/unistdio/u32-sprintf.c: Likewise.
50668         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50669         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50670         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50671         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50672         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50673         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50674         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50675         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50676         * lib/unistdio/u32-vasnprintf.c: Likewise.
50677         * lib/unistdio/u32-vasprintf.c: Likewise.
50678         * lib/unistdio/u32-vsnprintf.c: Likewise.
50679         * lib/unistdio/u32-vsprintf.c: Likewise.
50680         * lib/unistdio/u8-asnprintf.c: Likewise.
50681         * lib/unistdio/u8-asprintf.c: Likewise.
50682         * lib/unistdio/u8-printf-parse.c: Likewise.
50683         * lib/unistdio/u8-snprintf.c: Likewise.
50684         * lib/unistdio/u8-sprintf.c: Likewise.
50685         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50686         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50687         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50688         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50689         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50690         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50691         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
50692         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
50693         * lib/unistdio/u8-vasnprintf.c: Likewise.
50694         * lib/unistdio/u8-vasprintf.c: Likewise.
50695         * lib/unistdio/u8-vsnprintf.c: Likewise.
50696         * lib/unistdio/u8-vsprintf.c: Likewise.
50697         * lib/unistdio/ulc-asnprintf.c: Likewise.
50698         * lib/unistdio/ulc-asprintf.c: Likewise.
50699         * lib/unistdio/ulc-printf-parse.c: Likewise.
50700         * lib/unistdio/ulc-snprintf.c: Likewise.
50701         * lib/unistdio/ulc-sprintf.c: Likewise.
50702         * lib/unistdio/ulc-vasnprintf.c: Likewise.
50703         * lib/unistdio/ulc-vasprintf.c: Likewise.
50704         * lib/unistdio/ulc-vsnprintf.c: Likewise.
50705         * lib/unistdio/ulc-vsprintf.c: Likewise.
50706         * lib/unistr.h: Likewise.
50707         * lib/unistr/u-cpy-alloc.h: Likewise.
50708         * lib/unistr/u-cpy.h: Likewise.
50709         * lib/unistr/u-endswith.h: Likewise.
50710         * lib/unistr/u-move.h: Likewise.
50711         * lib/unistr/u-set.h: Likewise.
50712         * lib/unistr/u-startswith.h: Likewise.
50713         * lib/unistr/u-stpcpy.h: Likewise.
50714         * lib/unistr/u-stpncpy.h: Likewise.
50715         * lib/unistr/u-strcat.h: Likewise.
50716         * lib/unistr/u-strcpy.h: Likewise.
50717         * lib/unistr/u-strcspn.h: Likewise.
50718         * lib/unistr/u-strdup.h: Likewise.
50719         * lib/unistr/u-strlen.h: Likewise.
50720         * lib/unistr/u-strncat.h: Likewise.
50721         * lib/unistr/u-strncpy.h: Likewise.
50722         * lib/unistr/u-strnlen.h: Likewise.
50723         * lib/unistr/u-strpbrk.h: Likewise.
50724         * lib/unistr/u-strspn.h: Likewise.
50725         * lib/unistr/u-strstr.h: Likewise.
50726         * lib/unistr/u-strtok.h: Likewise.
50727         * lib/unistr/u16-check.c: Likewise.
50728         * lib/unistr/u16-chr.c: Likewise.
50729         * lib/unistr/u16-cmp.c: Likewise.
50730         * lib/unistr/u16-cpy-alloc.c: Likewise.
50731         * lib/unistr/u16-cpy.c: Likewise.
50732         * lib/unistr/u16-endswith.c: Likewise.
50733         * lib/unistr/u16-mblen.c: Likewise.
50734         * lib/unistr/u16-mbsnlen.c: Likewise.
50735         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50736         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50737         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50738         * lib/unistr/u16-mbtouc.c: Likewise.
50739         * lib/unistr/u16-mbtoucr.c: Likewise.
50740         * lib/unistr/u16-move.c: Likewise.
50741         * lib/unistr/u16-next.c: Likewise.
50742         * lib/unistr/u16-prev.c: Likewise.
50743         * lib/unistr/u16-set.c: Likewise.
50744         * lib/unistr/u16-startswith.c: Likewise.
50745         * lib/unistr/u16-stpcpy.c: Likewise.
50746         * lib/unistr/u16-stpncpy.c: Likewise.
50747         * lib/unistr/u16-strcat.c: Likewise.
50748         * lib/unistr/u16-strchr.c: Likewise.
50749         * lib/unistr/u16-strcmp.c: Likewise.
50750         * lib/unistr/u16-strcpy.c: Likewise.
50751         * lib/unistr/u16-strcspn.c: Likewise.
50752         * lib/unistr/u16-strdup.c: Likewise.
50753         * lib/unistr/u16-strlen.c: Likewise.
50754         * lib/unistr/u16-strmblen.c: Likewise.
50755         * lib/unistr/u16-strmbtouc.c: Likewise.
50756         * lib/unistr/u16-strncat.c: Likewise.
50757         * lib/unistr/u16-strncmp.c: Likewise.
50758         * lib/unistr/u16-strncpy.c: Likewise.
50759         * lib/unistr/u16-strnlen.c: Likewise.
50760         * lib/unistr/u16-strpbrk.c: Likewise.
50761         * lib/unistr/u16-strrchr.c: Likewise.
50762         * lib/unistr/u16-strspn.c: Likewise.
50763         * lib/unistr/u16-strstr.c: Likewise.
50764         * lib/unistr/u16-strtok.c: Likewise.
50765         * lib/unistr/u16-to-u32.c: Likewise.
50766         * lib/unistr/u16-to-u8.c: Likewise.
50767         * lib/unistr/u16-uctomb-aux.c: Likewise.
50768         * lib/unistr/u16-uctomb.c: Likewise.
50769         * lib/unistr/u32-check.c: Likewise.
50770         * lib/unistr/u32-chr.c: Likewise.
50771         * lib/unistr/u32-cmp.c: Likewise.
50772         * lib/unistr/u32-cpy-alloc.c: Likewise.
50773         * lib/unistr/u32-cpy.c: Likewise.
50774         * lib/unistr/u32-endswith.c: Likewise.
50775         * lib/unistr/u32-mblen.c: Likewise.
50776         * lib/unistr/u32-mbsnlen.c: Likewise.
50777         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50778         * lib/unistr/u32-mbtouc.c: Likewise.
50779         * lib/unistr/u32-mbtoucr.c: Likewise.
50780         * lib/unistr/u32-move.c: Likewise.
50781         * lib/unistr/u32-next.c: Likewise.
50782         * lib/unistr/u32-prev.c: Likewise.
50783         * lib/unistr/u32-set.c: Likewise.
50784         * lib/unistr/u32-startswith.c: Likewise.
50785         * lib/unistr/u32-stpcpy.c: Likewise.
50786         * lib/unistr/u32-stpncpy.c: Likewise.
50787         * lib/unistr/u32-strcat.c: Likewise.
50788         * lib/unistr/u32-strchr.c: Likewise.
50789         * lib/unistr/u32-strcmp.c: Likewise.
50790         * lib/unistr/u32-strcpy.c: Likewise.
50791         * lib/unistr/u32-strcspn.c: Likewise.
50792         * lib/unistr/u32-strdup.c: Likewise.
50793         * lib/unistr/u32-strlen.c: Likewise.
50794         * lib/unistr/u32-strmblen.c: Likewise.
50795         * lib/unistr/u32-strmbtouc.c: Likewise.
50796         * lib/unistr/u32-strncat.c: Likewise.
50797         * lib/unistr/u32-strncmp.c: Likewise.
50798         * lib/unistr/u32-strncpy.c: Likewise.
50799         * lib/unistr/u32-strnlen.c: Likewise.
50800         * lib/unistr/u32-strpbrk.c: Likewise.
50801         * lib/unistr/u32-strrchr.c: Likewise.
50802         * lib/unistr/u32-strspn.c: Likewise.
50803         * lib/unistr/u32-strstr.c: Likewise.
50804         * lib/unistr/u32-strtok.c: Likewise.
50805         * lib/unistr/u32-to-u16.c: Likewise.
50806         * lib/unistr/u32-to-u8.c: Likewise.
50807         * lib/unistr/u32-uctomb.c: Likewise.
50808         * lib/unistr/u8-check.c: Likewise.
50809         * lib/unistr/u8-chr.c: Likewise.
50810         * lib/unistr/u8-cmp.c: Likewise.
50811         * lib/unistr/u8-cpy-alloc.c: Likewise.
50812         * lib/unistr/u8-cpy.c: Likewise.
50813         * lib/unistr/u8-endswith.c: Likewise.
50814         * lib/unistr/u8-mblen.c: Likewise.
50815         * lib/unistr/u8-mbsnlen.c: Likewise.
50816         * lib/unistr/u8-mbtouc-aux.c: Likewise.
50817         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50818         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50819         * lib/unistr/u8-mbtouc.c: Likewise.
50820         * lib/unistr/u8-mbtoucr.c: Likewise.
50821         * lib/unistr/u8-move.c: Likewise.
50822         * lib/unistr/u8-next.c: Likewise.
50823         * lib/unistr/u8-prev.c: Likewise.
50824         * lib/unistr/u8-set.c: Likewise.
50825         * lib/unistr/u8-startswith.c: Likewise.
50826         * lib/unistr/u8-stpcpy.c: Likewise.
50827         * lib/unistr/u8-stpncpy.c: Likewise.
50828         * lib/unistr/u8-strcat.c: Likewise.
50829         * lib/unistr/u8-strchr.c: Likewise.
50830         * lib/unistr/u8-strcmp.c: Likewise.
50831         * lib/unistr/u8-strcpy.c: Likewise.
50832         * lib/unistr/u8-strcspn.c: Likewise.
50833         * lib/unistr/u8-strdup.c: Likewise.
50834         * lib/unistr/u8-strlen.c: Likewise.
50835         * lib/unistr/u8-strmblen.c: Likewise.
50836         * lib/unistr/u8-strmbtouc.c: Likewise.
50837         * lib/unistr/u8-strncat.c: Likewise.
50838         * lib/unistr/u8-strncmp.c: Likewise.
50839         * lib/unistr/u8-strncpy.c: Likewise.
50840         * lib/unistr/u8-strnlen.c: Likewise.
50841         * lib/unistr/u8-strpbrk.c: Likewise.
50842         * lib/unistr/u8-strrchr.c: Likewise.
50843         * lib/unistr/u8-strspn.c: Likewise.
50844         * lib/unistr/u8-strstr.c: Likewise.
50845         * lib/unistr/u8-strtok.c: Likewise.
50846         * lib/unistr/u8-to-u16.c: Likewise.
50847         * lib/unistr/u8-to-u32.c: Likewise.
50848         * lib/unistr/u8-uctomb-aux.c: Likewise.
50849         * lib/unistr/u8-uctomb.c: Likewise.
50850         * lib/unitypes.h: Likewise.
50851         * lib/uniwidth.h: Likewise.
50852         * lib/uniwidth/cjk.h: Likewise.
50853         * lib/uniwidth/u16-strwidth.c: Likewise.
50854         * lib/uniwidth/u16-width.c: Likewise.
50855         * lib/uniwidth/u32-strwidth.c: Likewise.
50856         * lib/uniwidth/u32-width.c: Likewise.
50857         * lib/uniwidth/u8-strwidth.c: Likewise.
50858         * lib/uniwidth/u8-width.c: Likewise.
50859         * lib/uniwidth/width.c: Likewise.
50860
50861 2007-10-07  Bruno Haible  <bruno@clisp.org>
50862
50863         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
50864         The file is still under LGPL (see modules/inttypes).
50865
50866 2007-10-06  Bruno Haible  <bruno@clisp.org>
50867
50868         * modules/trunc (Dependencies): Add 'extensions'.
50869         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
50870         Reported by Ben Pfaff <blp@gnu.org>.
50871
50872 2007-10-06  Bruno Haible  <bruno@clisp.org>
50873
50874         * modules/freopen-tests: New file.
50875         * tests/test-freopen.c: New file.
50876
50877         * modules/fopen-tests: New file.
50878         * tests/test-fopen.c: New file.
50879
50880         * modules/fopen: New file.
50881         * lib/fopen.c: New file.
50882         * m4/fopen.m4: New file.
50883         * modules/freopen: New file.
50884         * lib/freopen.c: New file.
50885         * m4/freopen.m4: New file.
50886         * lib/stdio.in.h (fopen, freopen): New declarations.
50887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
50888         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50889         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
50890         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50891         * doc/functions/fopen.texi: Mention the 'fopen' module.
50892         * doc/functions/freopen.texi: Mention the 'freopen' module.
50893
50894 2007-10-06  Bruno Haible  <bruno@clisp.org>
50895
50896         * modules/open-tests: New file.
50897         * tests/test-open.c: New file.
50898
50899         * modules/open: New file.
50900         * lib/open.c: New file.
50901         * m4/open.m4: New file.
50902         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
50903         lib/open.c does.
50904         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
50905         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
50906         macros.
50907         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
50908         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
50909         REPLACE_OPEN.
50910         * doc/functions/open.texi: Mention the 'open' module.
50911
50912 2007-10-04  Bruno Haible  <bruno@clisp.org>
50913
50914         * modules/ceill-tests: New file.
50915         * tests/test-ceill.c: New file.
50916
50917         * modules/ceill: New file.
50918         * lib/ceill.c: Replace entire file.
50919         * m4/ceill.m4: New file.
50920         * lib/math.in.h (ceill): Replace declaration.
50921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
50922         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
50923         * doc/functions/ceill.texi: Mention the 'ceill' module.
50924         * modules/mathl (Files): Remove lib/ceill.c.
50925         (Depends-on): Add ceill.
50926
50927 2007-10-04  Bruno Haible  <bruno@clisp.org>
50928
50929         * modules/ceilf-tests: New file.
50930         * tests/test-ceilf.c: New file.
50931
50932         * modules/ceilf: New file.
50933         * lib/ceil.c: New file.
50934         * lib/ceilf.c: New file.
50935         * m4/ceilf.m4: New file.
50936         * lib/math.in.h (ceilf): New declaration.
50937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
50938         HAVE_DECL_CEILF.
50939         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
50940         HAVE_DECL_CEILF.
50941         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
50942
50943 2007-10-04  Bruno Haible  <bruno@clisp.org>
50944
50945         * modules/floorl-tests: New file.
50946         * tests/test-floorl.c: New file.
50947
50948         * modules/floorl: New file.
50949         * lib/floorl.c: Replace entire file.
50950         * m4/floorl.m4: New file.
50951         * lib/math.in.h (floorl): Replace declaration.
50952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
50953         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
50954         * doc/functions/floorl.texi: Mention the 'floorl' module.
50955         * modules/mathl (Files): Remove lib/floorl.c.
50956         (Depends-on): Add floorl.
50957
50958 2007-10-04  Bruno Haible  <bruno@clisp.org>
50959
50960         * modules/floorf-tests: New file.
50961         * tests/test-floorf.c: New file.
50962
50963         * modules/floorf: New file.
50964         * lib/floor.c: New file.
50965         * lib/floorf.c: New file.
50966         * m4/floorf.m4: New file.
50967         * lib/math.in.h (floorf): New declaration.
50968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
50969         HAVE_DECL_FLOORF.
50970         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
50971         HAVE_DECL_FLOORF.
50972         * doc/functions/floorf.texi: Mention the 'floorf' module.
50973
50974 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
50975             Bruno Haible  <bruno@clisp.org>
50976
50977         Advertise for the Git server instead of the CVS server.
50978         * doc/gnulib-intro.texi (Steady Development): Mention the Git
50979         repository instead of the CVS one.
50980         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
50981         about all VCS systems generically.
50982         * doc/gnulib.texi (Introduction): Capitalize `Git'.
50983
50984 2007-10-04  Bruno Haible  <bruno@clisp.org>
50985
50986         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
50987         means.
50988         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
50989
50990 2007-10-04  Bruno Haible  <bruno@clisp.org>
50991
50992         * modules/truncl-tests: New file.
50993         * tests/test-truncl.c: New file.
50994
50995         * modules/truncl: New file.
50996         * lib/truncl.c: New file.
50997         * m4/truncl.m4: New file.
50998         * lib/math.in.h (truncl): New declaration.
50999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
51000         HAVE_DECL_TRUNCL.
51001         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
51002         HAVE_DECL_TRUNCL.
51003         * doc/functions/truncl.texi: Mention the 'truncl' module.
51004
51005 2007-10-04  Bruno Haible  <bruno@clisp.org>
51006
51007         * modules/truncf-tests: New file.
51008         * tests/test-truncf.c: New file.
51009
51010         * modules/truncf: New file.
51011         * lib/trunc.c: Make paramerizable through USE_* macros.
51012         * lib/truncf.c: New file.
51013         * m4/truncf.m4: New file.
51014         * lib/math.in.h (truncf): New declaration.
51015         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
51016         HAVE_DECL_TRUNCF.
51017         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
51018         HAVE_DECL_TRUNCF.
51019         * doc/functions/truncf.texi: Mention the 'truncf' module.
51020
51021 2007-10-03  Bruno Haible  <bruno@clisp.org>
51022
51023         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51024         augmentation also for tests modules.
51025         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
51026         * modules/atexit-tests (Makefile.am): Likewise.
51027         * modules/binary-io-tests (Makefile.am): Likewise.
51028         * modules/c-strcase-tests (Makefile.am): Likewise.
51029         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
51030         * modules/canonicalize-tests (Makefile.am): Likewise.
51031         * modules/closein-tests (Makefile.am): Likewise.
51032         * modules/fprintf-posix-tests (Makefile.am): Likewise.
51033         * modules/freadahead-tests (Makefile.am): Likewise.
51034         * modules/fseek-tests (Makefile.am): Likewise.
51035         * modules/fseeko-tests (Makefile.am): Likewise.
51036         * modules/ftell-tests (Makefile.am): Likewise.
51037         * modules/ftello-tests (Makefile.am): Likewise.
51038         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
51039         * modules/isnanl-tests (Makefile.am): Likewise.
51040         * modules/lseek-tests (Makefile.am): Likewise.
51041         * modules/mbscasecmp-tests (Makefile.am): Likewise.
51042         * modules/mbscasestr-tests (Makefile.am): Likewise.
51043         * modules/mbschr-tests (Makefile.am): Likewise.
51044         * modules/mbscspn-tests (Makefile.am): Likewise.
51045         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
51046         * modules/mbspbrk-tests (Makefile.am): Likewise.
51047         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
51048         * modules/mbsrchr-tests (Makefile.am): Likewise.
51049         * modules/mbsspn-tests (Makefile.am): Likewise.
51050         * modules/mbsstr-tests (Makefile.am): Likewise.
51051         * modules/printf-posix-tests (Makefile.am): Likewise.
51052         * modules/snprintf-posix-tests (Makefile.am): Likewise.
51053         * modules/sprintf-posix-tests (Makefile.am): Likewise.
51054         * modules/tsearch-tests (Makefile.am): Likewise.
51055         * modules/uniname/uniname-tests (Makefile.am): Likewise.
51056         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
51057         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
51058         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
51059         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
51060         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
51061         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
51062         * modules/vprintf-posix-tests (Makefile.am): Likewise.
51063         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
51064         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
51065         * modules/xstrtoimax-tests (Makefile.am): Likewise.
51066         * modules/xstrtol-tests (Makefile.am): Likewise.
51067         * modules/xstrtoumax-tests (Makefile.am): Likewise.
51068         * modules/yesno-tests (Makefile.am): Likewise.
51069
51070 2007-10-03  Bruno Haible  <bruno@clisp.org>
51071
51072         * modules/trunc-tests: New file.
51073         * tests/test-trunc.c: New file.
51074
51075         * modules/trunc: New file.
51076         * lib/trunc.c: New file.
51077         * m4/trunc.m4: New file.
51078         * lib/math.in.h (trunc): New declaration.
51079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
51080         HAVE_DECL_TRUNC.
51081         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
51082         HAVE_DECL_TRUNC.
51083         * doc/functions/trunc.texi: Mention the 'trunc' module.
51084
51085 2007-10-03  Bruno Haible  <bruno@clisp.org>
51086
51087         * tests/test-fpending.c: New file, mostly copied
51088         from coreutils/lib/t-fpending.c.
51089         * modules/fpending-tests: New file.
51090
51091 2007-10-03  Bruno Haible  <bruno@clisp.org>
51092
51093         Port the stdio extensions to QNX (untested).
51094         * lib/fseterr.c (fseterr): Add support for QNX.
51095         * lib/fbufmode.c (fbufmode): Likewise.
51096         * lib/freadable.c (freadable): Likewise.
51097         * lib/fwritable.c (fwritable): Likewise.
51098         * lib/freading.c (freading): Likewise.
51099         * lib/fwriting.c (fwriting): Likewise.
51100         * lib/freadahead.c (freadahed): Likewise.
51101         * lib/fpurge.c (fpurge): Likewise.
51102         * lib/fseeko.c (rpl_fseeko): Likewise.
51103
51104 2007-10-03  Bruno Haible  <bruno@clisp.org>
51105             Jim Meyering  <jim@meyering.net>
51106             Eric Blake  <ebb9@byu.net>
51107
51108         * doc/relocatable.texi: Use @command instead of @program.
51109
51110 2007-10-02  Jim Meyering  <jim@meyering.net>
51111
51112         Perform one more "_.h" -> ".in.h" substitution.
51113         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
51114         instead of unistd_.h here, too.
51115
51116 2007-10-01  Bruno Haible  <bruno@clisp.org>
51117
51118         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
51119         Needed for the alloca-opt module.
51120
51121 2007-09-30  Bruno Haible  <bruno@clisp.org>
51122
51123         * lib/alloca.in.h: Renamed from lib/alloca_.h.
51124         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
51125         alloca_.h.
51126         * lib/argz.in.h: Renamed from lib/argz_.h.
51127         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
51128         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
51129         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
51130         byteswap_.h.
51131         * lib/dirent.in.h: Renamed from lib/dirent_.h.
51132         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
51133         dirent_.h.
51134         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
51135         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
51136         fcntl_.h.
51137         * lib/float.in.h: Renamed from lib/float_.h.
51138         * modules/float (Files, Makefile.am): Use float.in.h instead of
51139         float_.h.
51140         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
51141         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
51142         fnmatch_.h.
51143         * lib/getopt.in.h: Renamed from lib/getopt_.h.
51144         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
51145         getopt_.h.
51146         * lib/glob.in.h: Renamed from lib/glob_.h.
51147         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
51148         * lib/iconv.in.h: Renamed from lib/iconv_.h.
51149         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
51150         iconv_.h.
51151         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
51152         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
51153         inttypes_.h.
51154         * lib/locale.in.h: Renamed from lib/locale_.h.
51155         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
51156         locale_.h.
51157         * lib/math.in.h: Renamed from lib/math_.h.
51158         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
51159         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
51160         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
51161         of netinet_in_.h. Add dependency.
51162         * lib/poll.in.h: Renamed from lib/poll_.h.
51163         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
51164         * lib/search.in.h: Renamed from lib/search_.h.
51165         * modules/search (Files, Makefile.am): Use search.in.h instead of
51166         search_.h.
51167         * lib/signal.in.h: Renamed from lib/signal_.h.
51168         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
51169         _signal.h.
51170         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
51171         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
51172         stdbool_.h.
51173         * lib/stdint.in.h: Renamed from lib/stdint_.h.
51174         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
51175         stdint_.h.
51176         * lib/stdio.in.h: Renamed from lib/stdio_.h.
51177         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
51178         stdio_.h.
51179         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
51180         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
51181         stdlib_.h.
51182         * lib/string.in.h: Renamed from lib/string_.h.
51183         * modules/string (Files, Makefile.am): Use string.in.h instead of
51184         string_.h.
51185         * doc/gnulib-tool.texi (Initial import): Update.
51186         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
51187         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
51188         of sys_select_.h. Add dependency.
51189         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
51190         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
51191         of sys_socket_.h.
51192         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
51193         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
51194         sys_stat_.h.
51195         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
51196         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
51197         sys_time_.h.
51198         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
51199         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
51200         sysexits_.h.
51201         * lib/time.in.h: Renamed from lib/time_.h.
51202         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
51203         * lib/unistd.in.h: Renamed from lib/unistd_.h.
51204         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
51205         unistd_.h.
51206         * lib/wchar.in.h: Renamed from lib/wchar_.h.
51207         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
51208         wchar_.h.
51209         * lib/wctype.in.h: Renamed from lib/wctype_.h.
51210         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
51211         wctype_.h.
51212         * build-aux/bootstrap (slurp): Update.
51213         * lib/.cppi-disable: Update.
51214
51215 2007-09-30  Bruno Haible  <bruno@clisp.org>
51216
51217         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
51218         Needed on BeOS.
51219
51220 2007-09-30  Bruno Haible  <bruno@clisp.org>
51221
51222         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
51223
51224 2007-09-29  Bruno Haible  <bruno@clisp.org>
51225
51226         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
51227
51228 2007-09-29  Bruno Haible  <bruno@clisp.org>
51229
51230         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
51231         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
51232         * build-aux/install-reloc: Compile also areadlink.c.
51233         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
51234
51235 2007-09-29  Bruno Haible  <bruno@clisp.org>
51236
51237         * gnulib-tool (func_emit_initmacro_done): Indentation.
51238
51239 2007-09-29  Bruno Haible  <bruno@clisp.org>
51240
51241         * README: Add CVS checkout update instructions.
51242         Info from Bob Proulx <bob@proulx.com>.
51243
51244 2007-09-28  Eric Blake  <ebb9@byu.net>
51245
51246         Provide move-if-change.
51247         * build-aux/move-if-change: New file, based on best practice
51248         rather than any canonical upstream location.
51249
51250 2007-09-28  Jim Meyering  <jim@meyering.net>
51251
51252         Fix canonicalize loop-detection corner case.
51253         Do not attempt to stat the symlink values stored via seen_triple.
51254         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
51255         on linux-2.6.18, (but not 2.6.22).
51256         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
51257         triple_compare.  The former compares dev,ino,filename, while the latter
51258         would actually stat dirname(filename) when dev and ino were equal.
51259         * lib/hash-triple.c: Install <string.h>.
51260         (STREQ): Define.
51261         (triple_compare_ino_str): New function.
51262         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
51263
51264 2007-09-28  Eric Blake  <ebb9@byu.net>
51265
51266         Enforce that AC_REPLACE_FUNCS files exist.
51267         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
51268         override check for typos.
51269
51270         Fix test-closein on Solaris 10.
51271         * tests/test-closein.c (main): Don't assume stdin can be inherited
51272         closed on all systems.
51273         * tests/test-closein.sh: Likewise.
51274         Reported by Piotr Tarnowski.
51275
51276 2007-09-28  Jim Meyering  <jim@meyering.net>
51277
51278         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
51279
51280 2007-09-27  Jim Meyering  <jim@meyering.net>
51281
51282         canonicalize: Avoid a false-positive cycle failure.
51283         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
51284         Sort.  Remove cycle-check.
51285         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
51286         not cycle-check.h.
51287         (seen_triple): New function.
51288         (canonicalize_filename_mode): Use it instead of cycle-check.
51289         * tests/test-canonicalize.c: Add a test for this bug.
51290         * tests/test-canonicalize.sh: Set up and run the test.
51291
51292         New module, file-set, from coreutils.
51293         * modules/file-set: Define it.
51294         * lib/file-set.c, lib/file-set.h: Implement.
51295
51296         New module, hash-triple, from coreutils.
51297         * modules/hash-triple: Define it.
51298         * lib/hash-triple.c, lib/hash-triple.h: Implement.
51299
51300 2007-09-25  Eric Blake  <ebb9@byu.net>
51301
51302         Fix strerror on Interix.
51303         * lib/string_.h (strerror): Declare replacement.
51304         * doc/functions/strerror.texi (strerror): Document the Interix
51305         shortcoming.
51306         * modules/string (Makefile.am): Support new hooks.
51307         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
51308         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51309         gl_FUNC_STRERROR_SEPARATE.
51310         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51311         * lib/strerror.c (rpl_strerror): Provide replacement.
51312         * modules/strerror (Depends-on): Add string.
51313         (configure.ac): Detect use of module.
51314         * tests/test-strerror.c: New file.
51315         * modules/strerror-tests: New test module.
51316         * modules/argp (Depends-on): Add strerror.
51317         * modules/error (Depends-on): Likewise.
51318         Reported by Martin Koeppe.
51319
51320 2007-09-24  Bruno Haible  <bruno@clisp.org>
51321
51322         * README: Update git instructions.
51323
51324 2007-09-24  Eric Blake  <ebb9@byu.net>
51325
51326         Revert fpending breakage from 2007-09-08.
51327         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51328         __fpending.c.
51329
51330 2007-09-24  Jim Meyering  <jim@meyering.net>
51331
51332         filenamecat.c: Add a test.
51333         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51334         showing how the function works when DIR is the empty string.
51335
51336 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51337
51338         * tests/test-canonicalize.sh: Turn on executable bit.
51339
51340 2007-09-19  Eric Blake  <ebb9@byu.net>
51341
51342         * README: Update CVS instructions.
51343
51344 2007-09-18  Bruno Haible  <bruno@clisp.org>
51345
51346         * modules/areadlink: New file.
51347         * lib/areadlink.h (areadlink): New declaration.
51348         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51349
51350 2007-09-17  Jim Meyering  <jim@meyering.net>
51351
51352         * lib/savewd.c (ESTALE) [!defined]: Define.
51353         Reported to be required on Interix by Martin Koeppe.
51354
51355 2007-09-17  Bruno Haible  <bruno@clisp.org>
51356
51357         * gnulib-tool (func_version): Use $version.
51358
51359 2007-09-16  Bruno Haible  <bruno@clisp.org>
51360
51361         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51362         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51363         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51364         Reported by Greg Schafer <gschafer@zip.com.au>.
51365
51366 2007-09-15  Bruno Haible  <bruno@clisp.org>
51367
51368         * gnulib-tool (sed): Try a little harder to make bash understand the
51369         alias.
51370         Reported by Bruce Korb <bruce.korb@gmail.com>.
51371
51372 2007-09-13  Eric Blake  <ebb9@byu.net>
51373
51374         * ChangeLog: Remove conflict markers.
51375
51376 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51377
51378         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51379         Reported by Bruno Haible <bruno@clisp.org>.
51380
51381 2007-09-12  Bruno Haible  <bruno@clisp.org>
51382
51383         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51384         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51385         is not defined.
51386
51387 2007-09-12  Eric Blake  <ebb9@byu.net>
51388
51389         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51390         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51391         Autoconf definition.
51392         * modules/euidaccess (Depends-on): Add extensions, for
51393         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51394         * modules/fnmatch (Depends-on): Likewise.
51395         * modules/getaddrinfo (Depends-on): Likewise.
51396         * modules/getdelim (Depends-on): Likewise.
51397         * modules/getline (Depends-on): Likewise.
51398         * modules/getsubopt (Depends-on): Likewise.
51399         * modules/gettext (Depends-on): Likewise.
51400         * modules/group-member (Depends-on): Likewise.
51401         * modules/mbchar (Depends-on): Likewise.
51402         * modules/memmem (Depends-on): Likewise.
51403         * modules/mempcpy (Depends-on): Likewise.
51404         * modules/memrchr (Depends-on): Likewise.
51405         * modules/pagealign_alloc (Depends-on): Likewise.
51406         * modules/readutmp (Depends-on): Likewise.
51407         * modules/stpcpy (Depends-on): Likewise.
51408         * modules/stpncpy (Depends-on): Likewise.
51409         * modules/strchrnul (Depends-on): Likewise.
51410         * modules/strndup (Depends-on): Likewise.
51411         * modules/strsep (Depends-on): Likewise.
51412         * modules/strverscmp (Depends-on): Likewise.
51413         * modules/vasprintf (Depends-on): Likewise.
51414         * modules/wcwidth (Depends-on): Likewise.
51415         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51416         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51417         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51418         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51419         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51420         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51421         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51422         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51423         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51424         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51425         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51426         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51427         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51428         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51429         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51430         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51431         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51432         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51433         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51434         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51435         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51436         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51437         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51438         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51439         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51440         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51441         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51442         so that lock.m4 can be used in gettext without extensions module.
51443
51444 2007-09-11  Bruno Haible  <bruno@clisp.org>
51445
51446         * m4/isc-posix.m4: Remove file.
51447         Suggested by Eric Blake.
51448
51449 2007-09-11  Eric Blake  <ebb9@byu.net>
51450
51451         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51452
51453 2007-09-10  Bruno Haible  <bruno@clisp.org>
51454
51455         * posix-modules: Fix typo in error message.
51456         Reported by Matt <mkraai@beckman.com>.
51457
51458 2007-09-09  Bruno Haible  <bruno@clisp.org>
51459
51460         * doc/functions/getdelim.texi: Update list of platforms lacking the
51461         function.
51462         * doc/functions/getline.texi: Likewise.
51463
51464 2007-09-09  Jim Meyering  <jim@meyering.net>
51465
51466         * lib/hash.c (hash_initialize): Detect calloc failure.
51467         Reported by Bruno Haible.
51468
51469 2007-09-09  Bruno Haible  <bruno@clisp.org>
51470
51471         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51472         malloc or realloc fails.
51473
51474 2007-09-09  Bruno Haible  <bruno@clisp.org>
51475
51476         * modules/getcwd (Depends-on): Add malloc-posix.
51477         * modules/glob (Depends-on): Likewise.
51478         * modules/putenv (Depends-on): Likewise.
51479         * modules/strdup (Depends-on): Likewise.
51480         * modules/getdelim (Depends-on): Add realloc-posix.
51481         * modules/read-file (Depends-on): Likewise.
51482
51483 2007-09-09  Bruno Haible  <bruno@clisp.org>
51484
51485         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51486         (gl_FUNC_MALLOC_POSIX): Require it.
51487         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51488         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51489         * modules/realloc (Files): Add m4/malloc.m4.
51490         * modules/calloc (Files): Likewise.
51491
51492 2007-09-09  Bruno Haible  <bruno@clisp.org>
51493
51494         * modules/malloc-posix: New file.
51495         * modules/malloc (Depends-on): Add malloc-posix.
51496         * lib/malloc.c: Include errno.h.
51497         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51498         and a POSIX-compatible malloc into a single function. Set ENOMEM
51499         when returning NULL.
51500         * m4/malloc.m4: New file.
51501         * doc/functions/malloc.texi: Mention the malloc-posix module.
51502         * lib/stdlib_.h (malloc): New declaration.
51503         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51504         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51505         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51506         and HAVE_MALLOC_POSIX.
51507
51508 2007-09-09  Bruno Haible  <bruno@clisp.org>
51509
51510         * modules/realloc-posix: New file.
51511         * modules/realloc (Depends-on): Add realloc-posix.
51512         * lib/realloc.c: Include errno.h.
51513         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51514         and a POSIX-compatible realloc into a single function. Set ENOMEM
51515         when returning NULL.
51516         * m4/realloc.m4: New file.
51517         * doc/functions/realloc.texi: Mention the realloc-posix module.
51518         * lib/stdlib_.h (realloc): New declaration.
51519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51520         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51521         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51522         and HAVE_REALLOC_POSIX.
51523
51524 2007-09-09  Bruno Haible  <bruno@clisp.org>
51525
51526         * modules/calloc-posix: New file.
51527         * modules/calloc (Depends-on): Add calloc-posix.
51528         * lib/calloc.c: Include errno.h.
51529         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
51530         and a POSIX-compatible calloc into a single function. Set ENOMEM
51531         when returning NULL.
51532         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
51533         * doc/functions/calloc.texi: Mention the calloc-posix module.
51534         * lib/stdlib_.h (calloc): New declaration.
51535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51536         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
51537         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
51538         and HAVE_CALLOC_POSIX.
51539
51540 2007-09-09  Bruno Haible  <bruno@clisp.org>
51541
51542         Allow for modules to show an arbitrary notice.
51543         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
51544         * gnulib-tool: New option --extract-notice.
51545         (func_usage): Document it.
51546         (sed_extract_prog): Update.
51547         (func_get_notice): New function.
51548         (func_modules_notice): New function.
51549         (func_import, func_create_testdir): Invoke it.
51550         Suggested by Jim Meyering.
51551
51552 2007-09-09  Bruno Haible  <bruno@clisp.org>
51553
51554         * gnulib-tool: New options --verbose, --quiet.
51555         (func_usage): Document them.
51556         (verbose): New variable.
51557         (func_execute_command): New function.
51558         (func_import): Don't show the module list and the file list if
51559         $verbose < 0.
51560         (func_create_testdir): Likewise. Use func_execute_command.
51561         (func_create_megatestdir): Use func_execute_command.
51562
51563 2007-09-08  Bruno Haible  <bruno@clisp.org>
51564
51565         * gnulib-tool (func_import): Prefer rsync over wget when available,
51566         for fetching the PO files.
51567
51568 2007-09-08  Bruno Haible  <bruno@clisp.org>
51569
51570         * posix-modules: New file. Portions copied from gnulib-tool.
51571         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
51572
51573 2007-09-08  Jim Meyering  <jim@meyering.net>
51574
51575         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
51576         * lib/fpending.h: Rename from __fpending.h.
51577         * lib/fpending.c: Rename from __fpending.c.
51578         Include "fpending.h", not "__fpending.h".
51579         * lib/__fpending.h, lib/__fpending.c: Remove files.
51580         * modules/fpending (Files): Reflect new file names.
51581         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
51582
51583 2007-09-08  Bruno Haible  <bruno@clisp.org>
51584
51585         * m4/inttypes-h.m4: Remove stub file.
51586
51587 2007-09-07  Simon Josefsson  <simon@josefsson.org>
51588
51589         * doc/headers/stdint.texi: Discuss #include_next issue.
51590
51591 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51592
51593         * build-aux/bootstrap: Remove obsolete comment about wget --help.
51594
51595 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51596
51597         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
51598         in variable name.
51599
51600 2007-09-03  Jim Meyering  <jim@meyering.net>
51601
51602         New module: git-version-gen.
51603         * modules/git-version-gen: New file.
51604
51605         Import changes from coreutils for bootstrap script.
51606
51607         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
51608
51609         bootstrap: uses rsync to download the .po files
51610         * build-aux/bootstrap (po_download_command_format): New global.
51611         (download_po_files): Use rsync.
51612         (update_po_files): Don't remove .po files after download,
51613         so future rsync runs can take advantage of the copies.
51614
51615         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
51616
51617         Solve the unnecessary-.po-file-regeneration problem once and for all.
51618         * build-aux/bootstrap (download_po_files): New function, renamed from
51619         get_translations.  Now, downloads, but doesn't update LINGUAS.
51620         (update_po_files): New function.
51621
51622         bootstrap: Ignore more.
51623         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51624         uniwidth to e.g., lib/.gitignore.
51625         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51626
51627         * build-aux/bootstrap: New setting: vc_ignore.
51628         (insert_sorted_if_absent): Create $file if absent.
51629         Adapt to new, possibly empty, list: $vc_ignore.
51630
51631         bootstrap: generate more ignorable names
51632         * build-aux/bootstrap (slurp): When generating ignorable names,
51633         also map .sin to .sed, .gperf to .c, and .y to .c.
51634
51635 2007-09-03  Jim Meyering  <jim@meyering.net>
51636
51637         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51638         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51639
51640 2007-09-02  Bruno Haible  <bruno@clisp.org>
51641
51642         Fix mis-recognition of 'mcs' on QNX 6.
51643         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51644         output contains the string "Mono".
51645         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51646         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51647
51648 2007-09-01  Bruno Haible  <bruno@clisp.org>
51649
51650         Fix collision between uniwidth/* and linebreak modules.
51651         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51652         u32_width): Remove declarations.
51653         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51654         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51655         streq3, streq2, streq1, streq0): Remove functions.
51656         (STREQ): Remove macro.
51657         (is_cjk_encoding): Remove function.
51658         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51659         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51660         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51661         * NEWS: Document the change.
51662
51663 2007-09-01  Bruno Haible  <bruno@clisp.org>
51664
51665         * lib/streq.h: Add double-inclusion guard.
51666
51667 2007-09-01  Karl Berry  <karl@gnu.org>
51668
51669         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51670
51671 2007-08-28  Jim Meyering  <jim@meyering.net>
51672
51673         Rename mreadlink_with_size to areadlink_with_size.
51674         * NEWS: Document the change.
51675         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51676         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51677         * lib/mreadlink.h: Rename this to...
51678         * lib/areadlink.h: ...this.
51679         * modules/mreadlink-with-size: Rename this to...
51680         * modules/areadlink-with-size: ...this.
51681         * lib/canonicalize.c: Reflect the renaming.
51682         * modules/canonicalize: Likewise.
51683
51684 2007-08-26  Bruno Haible  <bruno@clisp.org>
51685
51686         * gnulib-tool (func_import): When deciding which files to remove,
51687         consider also dangling symbolic links.
51688         Reported by Eric Blake.
51689
51690 2007-08-26  Bruno Haible  <bruno@clisp.org>
51691
51692         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
51693
51694 2007-08-23  Simon Josefsson  <simon@josefsson.org>
51695
51696         * lib/readline.c: Don't include getline.h, the prototype is now
51697         found in stdio.h.
51698
51699 2007-08-23  Jim Meyering  <jim@meyering.net>
51700
51701         Getdelim touchup.
51702         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
51703         around the funlockfile call, since funlockfile never sets errno.
51704         Don't set errno upon failed realloc.
51705
51706 2007-08-22  Eric Blake  <ebb9@byu.net>
51707
51708         Getline touchups.
51709         * lib/getdelim.c (getdelim): Revert regression that required *n to
51710         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
51711         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
51712         getdelim, rather than whether implementation is missing.
51713         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
51714         * lib/stdio_.h (getline): Also declare if replacement is
51715         required.
51716         * doc/functions/getdelim.texi: New file.
51717         * doc/functions/getline.texi: Likewise.
51718         * doc/gnulib.texi (Function Substitutes): Add new files.
51719         Reported by Bruno Haible.
51720
51721 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
51722
51723         * users.txt: Add Guile.
51724
51725 2007-08-22  Eric Blake  <ebb9@byu.net>
51726
51727         * tests/test-getdelim.c (main): Use remove, not unlink.
51728         * tests/test-getline.c (main): Likewise.
51729
51730         Move getline and getdelim into stdio.h, per POSIX 200x.
51731         * modules/getline (Files): Remove getline.h.
51732         (Depends-on): Add stdio.
51733         (configure.ac): Add module indicator.
51734         * modules/getdelim (Files): Remove getdelim.h.
51735         (Depends-on): Add stdio.
51736         (configure.ac): Add module indicator.
51737         * modules/stdio (Makefile.am): Work with new indicators.
51738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
51739         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
51740         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51741         * lib/getdelim.h: Delete.
51742         * lib/getline.h: Delete.
51743         * lib/stdio_.h (getdelim, getline): Declare.
51744         * modules/getdelim-tests: New module.
51745         * modules/getline-tests: Likewise.
51746         * tests/test-getdelim.c: New file.
51747         * tests/test-getline.c: Likewise.
51748         * NEWS: Document the change.
51749         * lib/getline.c: Update choice of header.
51750         * lib/csharpcomp.c: Likewise.
51751         * lib/getpass.c: Likewise.
51752         * lib/javacomp.c: Likewise.
51753         * lib/javaversion.c: Likewise.
51754         * lib/yesno.c: Likewise.
51755         * lib/getdelim.c: Likewise.
51756         (getdelim): Set errno on failure, and avoid memory leak.
51757
51758 2007-08-19  Bruno Haible  <bruno@clisp.org>
51759
51760         * modules/closein (Depends-on): Add freadahead.
51761         * lib/closein.c: Include freadahead.h.
51762         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
51763         is zero.
51764
51765 2007-08-19  Bruno Haible  <bruno@clisp.org>
51766
51767         * modules/freadahead-tests: New file.
51768         * tests/test-freadahead.sh: New file.
51769         * tests/test-freadahead.c: New file.
51770
51771         * modules/freadahead: New file.
51772         * lib/freadahead.h: New file.
51773         * lib/freadahead.c: New file.
51774         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
51775         fbufmode, fpurge, freadable, fwritable.
51776
51777 2007-08-19  Eric Blake  <ebb9@byu.net>
51778
51779         Test yesno in combination with closein.
51780         * lib/yesno.c (yesno): Document use of stdin.
51781         * modules/yesno-tests (Files): New module.
51782         * tests/test-yesno.c (main): New file.
51783         * tests/test-yesno.sh: Likewise.
51784
51785 2007-08-19  Bruno Haible  <bruno@clisp.org>
51786
51787         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
51788         * lib/fseeko.c (rpl_fseeko): Likewise.
51789         * lib/fseterr.c (fseterr): Likewise.
51790
51791 2007-08-19  Bruno Haible  <bruno@clisp.org>
51792
51793         * tests/test-lseek.c (main): Disable a test for BeOS.
51794         * doc/functions/lseek.texi: Document the BeOS bug.
51795
51796 2007-08-19  Bruno Haible  <bruno@clisp.org>
51797             Eric Blake  <ebb9@byu.net>
51798
51799         * lib/lseek.c: Include <sys/stat.h>.
51800         (rpl_lseek): Add workaround code also for Unix platforms.
51801         Needed for BeOS.
51802         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
51803         * doc/functions/lseek.texi: Document BeOS definiency.
51804
51805 2007-08-18  Bruno Haible  <bruno@clisp.org>
51806
51807         * modules/fstrcmp-tests: New file.
51808         * tests/test-fstrcmp.c: New file.
51809
51810 2007-08-18  Bruno Haible  <bruno@clisp.org>
51811
51812         * modules/fstrcmp: New file, from GNU gettext with modifications.
51813         * lib/fstrcmp.h: New file, from GNU gettext.
51814         * lib/fstrcmp.c: New file, from GNU gettext.
51815         * MODULES.html.sh (String handling): Add fstrcmp.
51816
51817 2007-08-18  Bruno Haible  <bruno@clisp.org>
51818
51819         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
51820         'bool'.
51821         (diag, compareseq): Remove const from the ctxt argument.
51822         (USE_HEURISTIC): Undefine at the end.
51823
51824 2007-08-18  Jim Meyering  <jim@meyering.net>
51825
51826         New file: lib/idcache.h
51827         * NEWS: Mention the addition.
51828         * modules/idcache (Files): Add lib/idcache.h
51829         * lib/idcache.c: Include "idcache.h".
51830         Don't include <sys/types.h>.
51831         Add a FIXME comment.
51832         Move file-scoped "static" declarations to the top.
51833         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
51834
51835 2007-08-17  Bruno Haible  <bruno@clisp.org>
51836         and Paul Eggert  <eggert@cs.ucla.edu>
51837
51838         * MODULES.html.sh: Add diffseq.
51839         * modules/diffseq: New file.
51840         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
51841         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
51842
51843 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51844
51845         Import changes from coreutils for bootstrap script.
51846
51847         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
51848
51849         * build-aux/bootstrap (slurp): Work even in environments where
51850         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
51851         current code does not slurp files whose names start with ".", and
51852         this looks like it might be a troublesome area.
51853
51854         2007-07-11  Jim Meyering  <jim@meyering.net>
51855
51856         If there's a GPL vN copyright comment, require that N == 3.
51857
51858         2007-07-08  Jim Meyering  <jim@meyering.net>
51859
51860         Run the coreutils-specific code only if tests/Makefile.am.in exists.
51861         * build-aux/bootstrap (mam_template): Move definition out of loop.
51862
51863         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
51864
51865         * build-aux/bootstrap (symlink_to_dir): Rename function from
51866         symlink_to_gnulib.  Add a directory parameter.  Update all
51867         callers.
51868         (cp_mark_as_generated): Also check for -- and link to -- files in
51869         gl/.
51870
51871         2007-07-08  Jim Meyering  <jim@meyering.net>
51872
51873         Adapt to deeper hierarchy in gnulib.
51874         * build-aux/bootstrap (symlink_to_dir): If the destination
51875         directory doesn't exist, create it. This is required at least for
51876         "lib/uniwidth/cjk.h".
51877
51878         2007-05-15  Jim Meyering  <jim@meyering.net>
51879
51880         * build-aux/bootstrap: Now that generated Makefile.am files
51881         are no longer under version control, they must be created at
51882         bootstrap time.
51883
51884 2007-08-14  Ben Pfaff  <blp@gnu.org>
51885
51886         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
51887
51888 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51889
51890         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
51891         given the changes below.
51892         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
51893         even on hosts that have padding bits beyond the supported 64.
51894
51895 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51896
51897         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
51898         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
51899         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
51900         depends on it.
51901         (xstrtol_error): Remove.
51902         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
51903         but with a different signature.
51904         (ATTRIBUTE_NORETURN, __attribute__): New macros.
51905         * lib/xstrtol-error.c: Include exitfail.h.
51906         (xstrtol_fatal): New function, with a different signature from the
51907         old xstrtol_error, so that the caller need not worry about passing
51908         in an exit status, or about storage management of the option argument.
51909         (xstrtol_error): Now a static function.  Redo signature to
51910         implement xstrtol_fatal.  Output the correct number of hyphens in
51911         front of the option so that the caller need not worry about
51912         storage management.
51913         (N_): New macro.
51914         (_): Remove; not used now.
51915         * modules/xstrtol: Depend on getopt.
51916         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
51917         of old STRTOL_FATAL_ERROR macro.
51918         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
51919         of test program.
51920         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
51921         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
51922
51923 2007-08-08  Eric Blake  <ebb9@byu.net>
51924
51925         * lib/xstrtol-error.c: Add missing include.
51926
51927         Move xstrtol messages into gnulib domain, when --pobase is used.
51928         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
51929         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
51930         * modules/xstrtol (Files): Distribute new file.
51931         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
51932         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
51933         * tests/test-xstrtol.c: ...into new file.
51934         * tests/test-xstrtoul.c: Also test xstrtoul.
51935         * tests/test-xstrtoimax.c: Also test xstrtoimax.
51936         * tests/test-xstrtoumax.c: Also test xstrtoumax.
51937         * tests/test-xstrtol.sh: Drive the tests.
51938         * tests/test-xstrtoimax.sh: Likewise.
51939         * tests/test-xstrtoumax.sh: Likewise.
51940         * modules/xstrtol-tests: New module.
51941         * modules/xstrtoimax-tests: Likewise.
51942         * modules/xstrtoumax-tests: Likewise.
51943
51944 2007-08-08  Jim Meyering  <jim@meyering.net>
51945
51946         New function: mfile_name_concat.
51947         * lib/filenamecat.c (mfile_name_concat): New function, just like
51948         file_name_concat, but return NULL upon failure rather than exiting
51949         with a diagnostic.
51950         * lib/filenamecat.h: Declare it.
51951
51952 2007-08-07  Bruno Haible  <bruno@clisp.org>
51953
51954         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
51955         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
51956         warning from gcc.
51957         Reported by Eric Blake.
51958
51959 2007-08-07  Simon Josefsson  <simon@josefsson.org>
51960
51961         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
51962         * modules/crypto/arcfour (License): Likewise.
51963         * modules/crypto/des-tests (License): Likewise.
51964         * modules/crypto/gc-arctwo-tests (License): Likewise.
51965         * modules/crypto/gc-des-tests (License): Likewise.
51966         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
51967         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
51968         * modules/crypto/gc-md2-tests (License): Likewise.
51969         * modules/crypto/gc-md4-tests (License): Likewise.
51970         * modules/crypto/gc-md5-tests (License): Likewise.
51971         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
51972         * modules/crypto/gc-rijndael-tests (License): Likewise.
51973         * modules/crypto/gc-sha1-tests (License): Likewise.
51974         * modules/crypto/gc-tests (License): Likewise.
51975         * modules/crypto/hmac-md5 (License): Likewise.
51976         * modules/crypto/hmac-sha1 (License): Likewise.
51977         * modules/crypto/md2-tests (License): Likewise.
51978         * modules/crypto/md4-tests (License): Likewise.
51979         * modules/crypto/md5 (License): Likewise.
51980         * modules/crypto/rijndael (License): Likewise.
51981         * modules/crypto/sha1 (License): Likewise.
51982         * modules/memxor (License): Likewise.
51983
51984 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51985         and Bruno Haible  <bruno@clisp.org>
51986
51987         * NEWS: Describe interface changes to human, xstrtol.
51988         * lib/human.h: Include <xstrtol.h>.
51989         (human_options): Return enum strtol_error, not int.  Remove
51990         bool arg; take int * instead.
51991         * lib/human.c: Don't include "gettext.h".
51992         (_): Remove; no longer used.
51993         Don't include <xstrtol.h>, since human.h does it.
51994         (human_options): Adjust to abovementioned interface changes.
51995         Do not report error to stderr; that's now the caller's
51996         responsibility.
51997         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
51998         interface change.
51999         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
52000         Str, Argument_type_string.  All uses changed.  Put " argument"
52001         in diagnostics to make them clearer.  Change wording of suffix
52002         message for clarity.
52003         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
52004         Argument_type_string.
52005         (STRTOL_FATAL_WARN): Remove; no longer used.
52006         * modules/human (Depends-on): Remove gettext-h.
52007
52008 2007-08-06  Simon Josefsson  <simon@josefsson.org>
52009
52010         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
52011
52012 2007-07-31  Bruno Haible  <bruno@clisp.org>
52013
52014         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
52015         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
52016         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
52017
52018 2007-07-31  Bruno Haible  <bruno@clisp.org>
52019
52020         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
52021         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
52022
52023 2007-07-30  Bruno Haible  <bruno@clisp.org>
52024
52025         * modules/base64 (License): Use the synonymous term "LGPLv2+".
52026         * modules/c-ctype (License): Likewise.
52027         * modules/c-strcase (License): Likewise.
52028         * modules/check-version (License): Likewise.
52029         * modules/iconv (License): Likewise.
52030         * modules/iconv_open (License): Likewise.
52031         * modules/read-file (License): Likewise.
52032         * modules/striconv (License): Likewise.
52033         * modules/strverscmp (License): Likewise.
52034         * modules/vasprintf (License): Likewise.
52035         * modules/crypto/des (License): Likewise.
52036         * modules/crypto/gc (License): Likewise.
52037         * modules/crypto/gc-arcfour (License): Likewise.
52038         * modules/crypto/gc-arctwo (License): Likewise.
52039         * modules/crypto/gc-des (License): Likewise.
52040         * modules/crypto/gc-hmac-md5 (License): Likewise.
52041         * modules/crypto/gc-hmac-sha1 (License): Likewise.
52042         * modules/crypto/gc-md2 (License): Likewise.
52043         * modules/crypto/gc-md4 (License): Likewise.
52044         * modules/crypto/gc-md5 (License): Likewise.
52045         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
52046         * modules/crypto/gc-random (License): Likewise.
52047         * modules/crypto/gc-rijndael (License): Likewise.
52048         * modules/crypto/gc-sha1 (License): Likewise.
52049         * modules/crypto/md2 (License): Likewise.
52050         * modules/crypto/md4 (License): Likewise.
52051
52052 2007-07-30  Jim Meyering  <jim@meyering.net>
52053
52054         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
52055         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
52056         it has valid stat data.  This bug would cause du not to count the
52057         sizes of inaccessible directories.
52058         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
52059         in <http://bugzilla.redhat.com/250077>.
52060
52061 2007-07-25  Peter O'Gorman  <peter@pogma.com>
52062             Bruno Haible  <bruno@clisp.org>
52063
52064         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
52065         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
52066         #include_next, gives a diagnostic about it, but reports no error in
52067         the exit code.
52068         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52069
52070 2007-07-24  Ben Pfaff  <blp@gnu.org>
52071
52072         Improve name: "count-one-bits" is better than "popcount".
52073         * MODULES.html.sh: Update name.
52074         * lib/popcount.h: Renamed lib/count-one-bits.h.
52075         (popcount): Renamed count_one_bits.
52076         (popcountl): Renamed count_one_bits_l.
52077         (popcountll): Renamed count_one_bits_ll.
52078         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
52079         * modules/popcount: Renamed module/count-one-bits.
52080         * modules/popcount-tests: Renamed module/count-one-bits-tests.
52081         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
52082
52083 2007-07-23  Ben Pfaff  <blp@gnu.org>
52084
52085         * lib/popcount.h (popcount32): Reduce size of constants, to allow
52086         better code generation, and add U to large constants to avoid
52087         warnings, in non-GCC case.
52088         Suggested by Bruno Haible.
52089
52090 2007-07-23  Ben Pfaff  <blp@gnu.org>
52091
52092         * lib/popcount.h: Use verify_true instead of if...abort.
52093         * modules/popcount: Depend on verify module.
52094         Suggested by Jim Meyering.
52095
52096 2007-07-23  Bruno Haible  <bruno@clisp.org>
52097
52098         * gnulib-tool (func_import): Create a .cvsignore file also when the
52099         directory is not yet in CVS but the toplevel directory is. When
52100         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
52101         Reported by Karl Berry.
52102
52103 2007-07-22  Ben Pfaff  <blp@gnu.org>
52104
52105         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
52106         case.
52107         Suggested by Eric Blake.
52108
52109 2007-07-22  Ben Pfaff  <blp@gnu.org>
52110
52111         New module: popcount.
52112         * MODULES.html.sh: Add popcount.
52113         * modules/popcount: New file.
52114         * modules/popcount-tests: New file.
52115         * tests/test-popcount.c: New file.
52116         * lib/popcount.h: New file.
52117         * m4/popcount.m4: New file.
52118
52119 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52120
52121         * build-aux/announce-gen: Update to GPLv3.
52122
52123         * build-aux/config.guess: Update from config.
52124
52125 2007-07-21  Bruno Haible  <bruno@clisp.org>
52126
52127         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
52128         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
52129
52130 2007-07-20  Jim Meyering  <jim@meyering.net>
52131
52132         * check-module: Diagnose a self-dependency.
52133
52134 2007-07-19  Bruno Haible  <bruno@clisp.org>
52135
52136         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
52137         empty.
52138         Reported by Eric Blake.
52139
52140 2007-07-18  Bruno Haible  <bruno@clisp.org>
52141
52142         * gnulib-tool: New options --po-base, --po-domain.
52143         (func_usage): Document them.
52144         (pobase, po_domain): New variables.
52145         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
52146         DEFAULT_TEXT_DOMAIN.
52147         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
52148         (func_import): Consider pobase and po_domain. Create a po/ directory.
52149         (func_create_testdir): Set pobase and po_domain to empty.
52150         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
52151         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
52152
52153 2007-07-18  Bruno Haible  <bruno@clisp.org>
52154
52155         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52156         EXTRA_DIST augmentation for files in build-aux/.
52157
52158 2007-07-16  Bruno Haible  <bruno@clisp.org>
52159
52160         * modules/lseek (License): Use the synonymous term "LGPLv2+".
52161         * modules/getdelim (License): Likewise.
52162
52163 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52164
52165         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
52166         * modules/d-type (License): Likewise.
52167         * modules/extensions (License): Likewise.
52168         * modules/fnmatch (License): Likewise.
52169         * modules/fseeko (License): Likewise.
52170         * modules/getaddrinfo (License): Likewise.
52171         * modules/getline (License): Likewise.
52172         * modules/getlogin_r (License): Likewise.
52173         * modules/getpass (License): Likewise.
52174         * modules/gettimeofday (License): Likewise.
52175         * modules/glob (License): Likewise.
52176         * modules/inet_ntop (License): Likewise.
52177         * modules/malloc (License): Likewise.
52178         * modules/malloca (License): Likewise.
52179         * modules/memmem (License): Likewise.
52180         * modules/mempcpy (License): Likewise.
52181         * modules/memset (License): Likewise.
52182         * modules/minmax (License): Likewise.
52183         * modules/mktime (License): Likewise.
52184         * modules/netinet_in (License): Likewise.
52185         * modules/pathmax (License): Likewise.
52186         * modules/poll (License): Likewise.
52187         * modules/regex (License): Likewise.
52188         * modules/snprintf (License): Likewise.
52189         * modules/stdbool (License): Likewise.
52190         * modules/stdint (License): Likewise.
52191         * modules/stdio (License): Likewise.
52192         * modules/strcase (License): Likewise.
52193         * modules/strcasestr (License): Likewise.
52194         * modules/strdup (License): Likewise.
52195         * modules/string (License): Likewise.
52196         * modules/strndup (License): Likewise.
52197         * modules/strnlen (License): Likewise.
52198         * modules/strpbrk (License): Likewise.
52199         * modules/strptime (License): Likewise.
52200         * modules/strsep (License): Likewise.
52201         * modules/sys_select (License): Likewise.
52202         * modules/sys_socket (License): Likewise.
52203         * modules/sys_stat (License): Likewise.
52204         * modules/sys_time (License): Likewise.
52205         * modules/time (License): Likewise.
52206         * modules/time_r (License): Likewise.
52207         * modules/timegm (License): Likewise.
52208         * modules/unistd (License): Likewise.
52209         * modules/vsnprintf (License): Likewise.
52210         * modules/wctype (License): Likewise.
52211
52212 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52213
52214         * modules/argz (License): LGPLv2+.
52215
52216 2007-07-15  Karl Berry  <karl@gnu.org>
52217
52218         * doc/gnulib.texi: revise node structure per new fdl.texi.
52219
52220 2007-07-14  Bruno Haible  <bruno@clisp.org>
52221
52222         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
52223         the output file.
52224         * lib/uniname/uninames.h: Regenerated.
52225
52226 2007-07-14  Karl Berry  <karl@gnu.org>
52227
52228         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
52229         omitting sectioning and index commands.
52230
52231 2007-07-13  Bruno Haible  <bruno@clisp.org>
52232
52233         New gnulib-tool option --more-symlinks.
52234         * gnulib-tool (func_usage): Document --more-symlinks.
52235         (do_copyrights): New variable.
52236         Recognize option --more-symlinks.
52237         (func_import): Don't add a copyright notice transform to
52238         sed_transform_lib_file if do_copyrights is empty.
52239
52240 2007-07-13  Bruno Haible  <bruno@clisp.org>
52241
52242         * lib/vasnprintf.c (decimal_point_char): Define also if
52243         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
52244         && !NEED_PRINTF_DIRECTIVE_A.
52245         Reported by Clemens Koller <clemens.koller@anagramm.de> via
52246         Gary V. Vaughan <gary@gnu.org>.
52247
52248 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
52249
52250         * lib/inttypes_.h: Undo previous change, since it was fixed
52251         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
52252
52253 2007-07-13  Bruno Haible  <bruno@clisp.org>
52254
52255         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
52256         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
52257
52258 2007-07-13  Jim Meyering  <jim@meyering.net>
52259
52260         df: Don't fail for Tru64's "file-on-file mount".
52261         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
52262         so we fall through and use statfs instead.  Details here:
52263         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
52264         Reported by Albert Chin.
52265
52266 2007-07-13  Bruno Haible  <bruno@clisp.org>
52267
52268         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
52269         * modules/configmake (License): Likewise.
52270         * modules/gettext (License): Likewise.
52271         * modules/gettext-h (License): Likewise.
52272         * modules/include_next (License): Likewise.
52273         * modules/link-warning (License): Likewise.
52274         * modules/localcharset (License): Likewise.
52275         * modules/localename (License): Likewise.
52276         * modules/lock (License): Likewise.
52277         * modules/relocatable-lib-lgpl (License): Likewise.
52278         * modules/size_max (License): Likewise.
52279         * modules/vasnprintf (License): Likewise.
52280         * modules/wchar (License): Likewise.
52281         * modules/xsize (License): Likewise.
52282
52283 2007-07-13  Bruno Haible  <bruno@clisp.org>
52284
52285         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
52286         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
52287
52288 2007-07-12  Bruno Haible  <bruno@clisp.org>
52289
52290         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
52291         in the modules files.
52292
52293 2007-07-11  Karl Berry  <karl@gnu.org>
52294
52295         * MODULES.html.sh (func_module): use
52296          sed -e '\|^'"${includefile}"'$|d'
52297          instead of /.../d, to avoid errors on $includefile's containing /.
52298
52299 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52300
52301         * gnulib-tool (func_import): Avoid duplication of --avoid
52302         statements
52303         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
52304         names to `_' in variable names.
52305
52306 2007-07-10  Eric Blake  <ebb9@byu.net>
52307
52308         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52309         * NEWS: Document this change.
52310
52311 2007-07-08  Bruno Haible  <bruno@clisp.org>
52312
52313         Update to Unicode 5.0.
52314         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52315         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52316         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52317         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52318         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52319         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52320         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52321         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52322         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52323         U+10A3F, U+1D242..U+1D244.
52324         (nonspacing_table_ind): Update.
52325         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52326         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52327
52328 2007-07-08  Bruno Haible  <bruno@clisp.org>
52329
52330         Update to Unicode 5.0.
52331         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52332         code transform. Extend the name index field of unicode_name_to_code and
52333         unicode_code_to_name from 16 to 24 bits.
52334         * lib/uniname/uniname.c (unicode_character_name,
52335         unicode_name_character): Add the range 0x12xxx to the code transform.
52336         * lib/uniname/uninames.h: Regenerated.
52337         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52338
52339 2007-07-07  Bruno Haible  <bruno@clisp.org>
52340
52341         * modules/wcwidth-tests: New file.
52342         * tests/test-wcwidth.c: New file.
52343
52344         Work around MacOS X wcwidth() bug.
52345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52346         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52347         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52348         original wcwidth in non-UTF-8 locales.
52349         * modules/wcwidth (Depends-on): Add localcharset, streq,
52350         uniwidth/width.
52351         * doc/functions/wcwidth.texi: Update.
52352
52353 2007-07-07  Bruno Haible  <bruno@clisp.org>
52354
52355         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52356         (wcwidth): New declaration.
52357         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52358         macros.
52359         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52360         here. Prepare for creating <wchar.h> unconditionally.
52361         * modules/wchar (Depends-on): Add link-warning.
52362         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52363         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52364         * lib/wcwidth.h: Remove file.
52365         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52366         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52367         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52368         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52369         (Include): Replace wcwidth.h with <wchar.h>.
52370         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52371         * lib/mbchar.h: Don't include wcwidth.h.
52372         * lib/mbswidth.c: Likewise.
52373         * NEWS: Mention the change.
52374
52375 2007-07-07  Bruno Haible  <bruno@clisp.org>
52376
52377         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52378         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52379         definition with an external declaration.
52380         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52381         defined as a function. Remove AC_C_INLINE requirement.
52382         * modules/wcwidth (Files): Add lib/wcwidth.c.
52383         (Makefile.am): Remove redundant statement.
52384
52385 2007-07-07  Bruno Haible  <bruno@clisp.org>
52386
52387         * MODULES.html.sh (Unicode string functions): Add the new modules.
52388
52389         * tests/uniwidth/test-u32-strwidth.c: New file.
52390         * modules/uniwidth/u32-strwidth-tests: New file.
52391
52392         * lib/uniwidth/u32-strwidth.c: New file.
52393         * modules/uniwidth/u32-strwidth: New file.
52394
52395         * tests/uniwidth/test-u16-strwidth.c: New file.
52396         * modules/uniwidth/u16-strwidth-tests: New file.
52397
52398         * lib/uniwidth/u16-strwidth.c: New file.
52399         * modules/uniwidth/u16-strwidth: New file.
52400
52401         * tests/uniwidth/test-u8-strwidth.c: New file.
52402         * modules/uniwidth/u8-strwidth-tests: New file.
52403
52404         * lib/uniwidth/u8-strwidth.c: New file.
52405         * modules/uniwidth/u8-strwidth: New file.
52406
52407         * tests/uniwidth/test-u32-width.c: New file.
52408         * modules/uniwidth/u32-width-tests: New file.
52409
52410         * lib/uniwidth/u32-width.c: New file.
52411         * modules/uniwidth/u32-width: New file.
52412
52413         * tests/uniwidth/test-u16-width.c: New file.
52414         * modules/uniwidth/u16-width-tests: New file.
52415
52416         * lib/uniwidth/u16-width.c: New file.
52417         * modules/uniwidth/u16-width: New file.
52418
52419         * tests/uniwidth/test-u8-width.c: New file.
52420         * modules/uniwidth/u8-width-tests: New file.
52421
52422         * lib/uniwidth/u8-width.c: New file.
52423         * modules/uniwidth/u8-width: New file.
52424
52425         * tests/uniwidth/test-uc_width.c: New file.
52426         * modules/uniwidth/width-tests: New file.
52427
52428         * lib/uniwidth/width.c: New file, from GNU libiconv.
52429         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52430         * modules/uniwidth/width: New file.
52431
52432         * lib/uniwidth.h: New file, from GNU libiconv.
52433         * modules/uniwidth/base: New file.
52434
52435 2007-07-07  Bruno Haible  <bruno@clisp.org>
52436
52437         * lib/uniname.h: New file, from GNU gettext.
52438         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52439         * lib/uniname/uninames.h: New file, from GNU gettext.
52440         * lib/uniname/uniname.c: New file, from GNU gettext.
52441         * tests/uniname/test-uninames.sh: New file.
52442         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52443         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52444         * modules/uniname/base: New file.
52445         * modules/uniname/uniname: New file.
52446         * modules/uniname/uniname-tests: New file.
52447         * MODULES.html.sh (Unicode string functions): Add the new modules.
52448
52449 2007-07-06  Bruno Haible  <bruno@clisp.org>
52450
52451         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52452
52453 2007-07-06  Bruno Haible  <bruno@clisp.org>
52454
52455         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52456         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52457         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52458         include <sys/time.h>.
52459         Reported by Eric Blake.
52460
52461 2007-07-06  Eric Blake  <ebb9@byu.net>
52462
52463         Fix testing canonicalize on cygwin.
52464         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52465         Revert patch from 2007-06-19.
52466         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52467         canonicalize module is also in use.
52468         * tests/test-canonicalize.c: New file.
52469         * tests/test-canonicalize.sh: Likewise.
52470         * modules/canonicalize-tests: Likewise.
52471
52472 2007-07-06  Jim Meyering  <jim@meyering.net>
52473
52474         * lib/getugroups.c (getugroups): Detect getgrent failure.
52475         Adjust comment to reflect reality: this function may return -1.
52476
52477 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52478
52479         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52480         the new TP address.
52481         (usage): Fix typo
52482         (gnulib_mk): New variable.
52483
52484 2007-07-05  Jim Meyering  <jim@meyering.net>
52485
52486         Don't let endgrent clobber errno, no matter how improbable.
52487         * lib/getugroups.c (getugroups): Save and restore errno around
52488         endgrent call.
52489
52490         Close the group DB even when failing with 2^31 or more members.
52491         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52492
52493 2007-07-04  Jim Meyering  <jim@meyering.net>
52494
52495         * lib/getugroups.h: New file.
52496         * lib/getugroups.c: Include "getugroups.h".
52497         Remove uses of "register" keyword.
52498         Move local variable, "cp", down into scope where used.
52499         Give "username" parameter the "const" attribute.
52500         * modules/getugroups (Files): Add lib/getugroups.h
52501
52502 2007-07-04  Karl Berry  <karl@gnu.org>
52503
52504         * MODULES.html.sh (func_all_modules): Complete rename of
52505         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52506
52507 2007-07-02  Bruno Haible  <bruno@clisp.org>
52508
52509         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52510         mode, when inttypes.h comes from gnulib.
52511         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52512
52513 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52514
52515         * NEWS: Mention lgpl module name change.
52516
52517         * modules/lgpl-2.1: Renamed from lgpl.
52518
52519         * NEWS: Mention gpl module name change.
52520
52521         * modules/gpl-3.0: New file, based on gpl-2.0.
52522
52523         * modules/gpl-2.0: Renamed from gpl.
52524
52525         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52526         doc/gpl-2.0.texi.
52527
52528 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52529
52530         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
52531         #define __STDC_LIMIT_MACROS temporarily while including
52532         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
52533         Problem reported by Joel E. Denny in
52534         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
52535
52536 2007-07-01  Bruno Haible  <bruno@clisp.org>
52537
52538         * lib/unistdio.h: New file.
52539         * lib/unistdio/u-asnprintf.h: New file.
52540         * lib/unistdio/u-asprintf.h: New file.
52541         * lib/unistdio/u-printf-args.c: New file.
52542         * lib/unistdio/u-printf-args.h: New file.
52543         * lib/unistdio/u-printf-parse.h: New file.
52544         * lib/unistdio/u-snprintf.h: New file.
52545         * lib/unistdio/u-sprintf.h: New file.
52546         * lib/unistdio/u-vasprintf.h: New file.
52547         * lib/unistdio/u-vsnprintf.h: New file.
52548         * lib/unistdio/u-vsprintf.h: New file.
52549         * lib/unistdio/ulc-asnprintf.c: New file.
52550         * lib/unistdio/ulc-asprintf.c: New file.
52551         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
52552         * lib/unistdio/ulc-printf-parse.c: New file.
52553         * lib/unistdio/ulc-snprintf.c: New file.
52554         * lib/unistdio/ulc-sprintf.c: New file.
52555         * lib/unistdio/ulc-vasnprintf.c: New file.
52556         * lib/unistdio/ulc-vasprintf.c: New file.
52557         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
52558         * lib/unistdio/ulc-vsnprintf.c: New file.
52559         * lib/unistdio/ulc-vsprintf.c: New file.
52560         * lib/unistdio/u8-asnprintf.c: New file.
52561         * lib/unistdio/u8-asprintf.c: New file.
52562         * lib/unistdio/u8-printf-parse.c: New file.
52563         * lib/unistdio/u8-snprintf.c: New file.
52564         * lib/unistdio/u8-sprintf.c: New file.
52565         * lib/unistdio/u8-vasnprintf.c: New file.
52566         * lib/unistdio/u8-vasprintf.c: New file.
52567         * lib/unistdio/u8-vsnprintf.c: New file.
52568         * lib/unistdio/u8-vsprintf.c: New file.
52569         * lib/unistdio/u8-u8-asnprintf.c: New file.
52570         * lib/unistdio/u8-u8-asprintf.c: New file.
52571         * lib/unistdio/u8-u8-snprintf.c: New file.
52572         * lib/unistdio/u8-u8-sprintf.c: New file.
52573         * lib/unistdio/u8-u8-vasnprintf.c: New file.
52574         * lib/unistdio/u8-u8-vasprintf.c: New file.
52575         * lib/unistdio/u8-u8-vsnprintf.c: New file.
52576         * lib/unistdio/u8-u8-vsprintf.c: New file.
52577         * lib/unistdio/u16-asnprintf.c: New file.
52578         * lib/unistdio/u16-asprintf.c: New file.
52579         * lib/unistdio/u16-printf-parse.c: New file.
52580         * lib/unistdio/u16-snprintf.c: New file.
52581         * lib/unistdio/u16-sprintf.c: New file.
52582         * lib/unistdio/u16-vasnprintf.c: New file.
52583         * lib/unistdio/u16-vasprintf.c: New file.
52584         * lib/unistdio/u16-vsnprintf.c: New file.
52585         * lib/unistdio/u16-vsprintf.c: New file.
52586         * lib/unistdio/u16-u16-asnprintf.c: New file.
52587         * lib/unistdio/u16-u16-asprintf.c: New file.
52588         * lib/unistdio/u16-u16-snprintf.c: New file.
52589         * lib/unistdio/u16-u16-sprintf.c: New file.
52590         * lib/unistdio/u16-u16-vasnprintf.c: New file.
52591         * lib/unistdio/u16-u16-vasprintf.c: New file.
52592         * lib/unistdio/u16-u16-vsnprintf.c: New file.
52593         * lib/unistdio/u16-u16-vsprintf.c: New file.
52594         * lib/unistdio/u32-asnprintf.c: New file.
52595         * lib/unistdio/u32-asprintf.c: New file.
52596         * lib/unistdio/u32-printf-parse.c: New file.
52597         * lib/unistdio/u32-snprintf.c: New file.
52598         * lib/unistdio/u32-sprintf.c: New file.
52599         * lib/unistdio/u32-vasnprintf.c: New file.
52600         * lib/unistdio/u32-vasprintf.c: New file.
52601         * lib/unistdio/u32-vsnprintf.c: New file.
52602         * lib/unistdio/u32-vsprintf.c: New file.
52603         * lib/unistdio/u32-u32-asnprintf.c: New file.
52604         * lib/unistdio/u32-u32-asprintf.c: New file.
52605         * lib/unistdio/u32-u32-snprintf.c: New file.
52606         * lib/unistdio/u32-u32-sprintf.c: New file.
52607         * lib/unistdio/u32-u32-vasnprintf.c: New file.
52608         * lib/unistdio/u32-u32-vasprintf.c: New file.
52609         * lib/unistdio/u32-u32-vsnprintf.c: New file.
52610         * lib/unistdio/u32-u32-vsprintf.c: New file.
52611         * tests/unistdio/test-ulc-asnprintf1.c: New file.
52612         * tests/unistdio/test-ulc-asnprintf1.h: New file.
52613         * tests/unistdio/test-ulc-printf1.h: New file.
52614         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
52615         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
52616         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
52617         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52618         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52619         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52620         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52621         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52622         * tests/unistdio/test-u8-asnprintf1.c: New file.
52623         * tests/unistdio/test-u8-asnprintf1.h: New file.
52624         * tests/unistdio/test-u8-printf1.h: New file.
52625         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52626         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52627         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52628         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52629         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52630         * tests/unistdio/test-u8-vasprintf1.c: New file.
52631         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52632         * tests/unistdio/test-u8-vsprintf1.c: New file.
52633         * tests/unistdio/test-u16-asnprintf1.c: New file.
52634         * tests/unistdio/test-u16-asnprintf1.h: New file.
52635         * tests/unistdio/test-u16-printf1.h: New file.
52636         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52637         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52638         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52639         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52640         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52641         * tests/unistdio/test-u16-vasprintf1.c: New file.
52642         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52643         * tests/unistdio/test-u16-vsprintf1.c: New file.
52644         * tests/unistdio/test-u32-asnprintf1.c: New file.
52645         * tests/unistdio/test-u32-asnprintf1.h: New file.
52646         * tests/unistdio/test-u32-printf1.h: New file.
52647         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52648         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52649         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52650         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52651         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52652         * tests/unistdio/test-u32-vasprintf1.c: New file.
52653         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52654         * tests/unistdio/test-u32-vsprintf1.c: New file.
52655         * modules/unistdio/base: New file.
52656         * modules/unistdio/u-printf-args: New file.
52657         * modules/unistdio/ulc-asnprintf: New file.
52658         * modules/unistdio/ulc-asprintf: New file.
52659         * modules/unistdio/ulc-fprintf: New file.
52660         * modules/unistdio/ulc-printf-parse: New file.
52661         * modules/unistdio/ulc-snprintf: New file.
52662         * modules/unistdio/ulc-sprintf: New file.
52663         * modules/unistdio/ulc-vasnprintf: New file.
52664         * modules/unistdio/ulc-vasprintf: New file.
52665         * modules/unistdio/ulc-vfprintf: New file.
52666         * modules/unistdio/ulc-vsnprintf: New file.
52667         * modules/unistdio/ulc-vsprintf: New file.
52668         * modules/unistdio/u8-asnprintf: New file.
52669         * modules/unistdio/u8-asprintf: New file.
52670         * modules/unistdio/u8-printf-parse: New file.
52671         * modules/unistdio/u8-snprintf: New file.
52672         * modules/unistdio/u8-sprintf: New file.
52673         * modules/unistdio/u8-vasnprintf: New file.
52674         * modules/unistdio/u8-vasprintf: New file.
52675         * modules/unistdio/u8-vsnprintf: New file.
52676         * modules/unistdio/u8-vsprintf: New file.
52677         * modules/unistdio/u8-u8-asnprintf: New file.
52678         * modules/unistdio/u8-u8-asprintf: New file.
52679         * modules/unistdio/u8-u8-snprintf: New file.
52680         * modules/unistdio/u8-u8-sprintf: New file.
52681         * modules/unistdio/u8-u8-vasnprintf: New file.
52682         * modules/unistdio/u8-u8-vasprintf: New file.
52683         * modules/unistdio/u8-u8-vsnprintf: New file.
52684         * modules/unistdio/u8-u8-vsprintf: New file.
52685         * modules/unistdio/u16-asnprintf: New file.
52686         * modules/unistdio/u16-asprintf: New file.
52687         * modules/unistdio/u16-printf-parse: New file.
52688         * modules/unistdio/u16-snprintf: New file.
52689         * modules/unistdio/u16-sprintf: New file.
52690         * modules/unistdio/u16-vasnprintf: New file.
52691         * modules/unistdio/u16-vasprintf: New file.
52692         * modules/unistdio/u16-vsnprintf: New file.
52693         * modules/unistdio/u16-vsprintf: New file.
52694         * modules/unistdio/u16-u16-asnprintf: New file.
52695         * modules/unistdio/u16-u16-asprintf: New file.
52696         * modules/unistdio/u16-u16-snprintf: New file.
52697         * modules/unistdio/u16-u16-sprintf: New file.
52698         * modules/unistdio/u16-u16-vasnprintf: New file.
52699         * modules/unistdio/u16-u16-vasprintf: New file.
52700         * modules/unistdio/u16-u16-vsnprintf: New file.
52701         * modules/unistdio/u16-u16-vsprintf: New file.
52702         * modules/unistdio/u32-asnprintf: New file.
52703         * modules/unistdio/u32-asprintf: New file.
52704         * modules/unistdio/u32-printf-parse: New file.
52705         * modules/unistdio/u32-snprintf: New file.
52706         * modules/unistdio/u32-sprintf: New file.
52707         * modules/unistdio/u32-vasnprintf: New file.
52708         * modules/unistdio/u32-vasprintf: New file.
52709         * modules/unistdio/u32-vsnprintf: New file.
52710         * modules/unistdio/u32-vsprintf: New file.
52711         * modules/unistdio/u32-u32-asnprintf: New file.
52712         * modules/unistdio/u32-u32-asprintf: New file.
52713         * modules/unistdio/u32-u32-snprintf: New file.
52714         * modules/unistdio/u32-u32-sprintf: New file.
52715         * modules/unistdio/u32-u32-vasnprintf: New file.
52716         * modules/unistdio/u32-u32-vasprintf: New file.
52717         * modules/unistdio/u32-u32-vsnprintf: New file.
52718         * modules/unistdio/u32-u32-vsprintf: New file.
52719         * modules/unistdio/ulc-asnprintf-tests: New file.
52720         * modules/unistdio/ulc-vasnprintf-tests: New file.
52721         * modules/unistdio/ulc-vasprintf-tests: New file.
52722         * modules/unistdio/ulc-vsnprintf-tests: New file.
52723         * modules/unistdio/ulc-vsprintf-tests: New file.
52724         * modules/unistdio/u8-asnprintf-tests: New file.
52725         * modules/unistdio/u8-vasnprintf-tests: New file.
52726         * modules/unistdio/u8-vasprintf-tests: New file.
52727         * modules/unistdio/u8-vsnprintf-tests: New file.
52728         * modules/unistdio/u8-vsprintf-tests: New file.
52729         * modules/unistdio/u16-asnprintf-tests: New file.
52730         * modules/unistdio/u16-vasnprintf-tests: New file.
52731         * modules/unistdio/u16-vasprintf-tests: New file.
52732         * modules/unistdio/u16-vsnprintf-tests: New file.
52733         * modules/unistdio/u16-vsprintf-tests: New file.
52734         * modules/unistdio/u32-asnprintf-tests: New file.
52735         * modules/unistdio/u32-vasnprintf-tests: New file.
52736         * modules/unistdio/u32-vasprintf-tests: New file.
52737         * modules/unistdio/u32-vsnprintf-tests: New file.
52738         * modules/unistdio/u32-vsprintf-tests: New file.
52739         * MODULES.html.sh (Unicode string functions): Add the new modules.
52740
52741 2007-07-01  Bruno Haible  <bruno@clisp.org>
52742
52743         * lib/sprintf.c (sprintf): Limit the available length estimation,
52744         to avoid address wraparound.
52745         * lib/vsprintf.c (vsprintf): Likewise.
52746         * modules/sprintf-posix (Dependencies): Add stdint.
52747         * modules/vsprintf-posix (Dependencies): Likewise.
52748
52749 2007-07-01  Bruno Haible  <bruno@clisp.org>
52750
52751         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
52752         Windows PATH as well. Conservative double-quoting. Comments.
52753
52754 2007-07-01  Bruno Haible  <bruno@clisp.org>
52755             Eric Blake  <ebb9@byu.net>
52756             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52757
52758         * gnulib-tool (self_abspathname): Fix algorithm to cope with
52759         empty components in $PATH, denoting '.'.
52760
52761 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52762
52763         * gnulib-tool: Fix indentation.
52764         (func_create_megatestdir): Likewise.
52765         Report by Bruno Haible.
52766
52767 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52768
52769         Sync from Automake.
52770         * build-aux/gnupload: Fix shell portability issues with for loops.
52771         Report by Karl Berry.
52772
52773 2007-06-29  Simon Josefsson  <simon@josefsson.org>
52774
52775         * build-aux/maint.mk (POURL): Use translationproject.org.
52776
52777 2007-06-27  Simon Josefsson  <simon@josefsson.org>
52778             Bruno Haible  <bruno@clisp.org>
52779
52780         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
52781         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
52782         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
52783         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
52784         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
52785
52786 2007-06-27  Bruno Haible  <bruno@clisp.org>
52787
52788         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
52789         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
52790
52791 2007-06-26  Karl Berry  <karl@gnu.org>
52792
52793         * MODULES.html.sh: remove xreadlink-with-size.
52794
52795 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52796
52797         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
52798         method that I hope also handles the double-include problem noted
52799         by Bruno Haible in
52800         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
52801
52802 2007-06-23  Bruno Haible  <bruno@clisp.org>
52803
52804         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52805         Don't let the 'mostlyclean' target fail if the last subdirectory could
52806         not be removed.
52807         Reported by Karl Berry.
52808
52809 2007-06-23  Bruno Haible  <bruno@clisp.org>
52810
52811         * gnulib-tool (echo): Add a speedier workaround for ksh.
52812         * tests/test-echo.sh: Likewise.
52813
52814 2007-06-23  Bruno Haible  <bruno@clisp.org>
52815
52816         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
52817         * tests/test-echo.sh: Likewise.
52818
52819 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52820
52821         * gnulib-tool (IFS): Initialize early, so we don't set it to
52822         empty later.
52823         (self_abspathname): Rewrite algorithm to set it, reindent.
52824         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
52825         (func_create_megatestdir): Merge some sed scripts.
52826
52827 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52828
52829         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
52830         exposed by Sun Studio 11 cc on Solaris 8.
52831
52832 2007-06-22  Bruno Haible  <bruno@clisp.org>
52833
52834         * gnulib-tool (echo): Ensure the echo primitive does not interpret
52835         backslashes.
52836         * tests/test-echo.sh: New file.
52837
52838 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52839
52840         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
52841         simplify `sed_replace_build_aux' scripts, they are portable but
52842         echoing them with `echo' is not.
52843         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
52844
52845 2007-06-21  Karl Berry  <karl@gnu.org>
52846
52847         * config/srclist.txt: guess we can't handle the licenses via
52848         srclist at the moment.
52849
52850 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52851
52852         * MODULES.html.sh: Add include_next.
52853         * modules/include_next: New file.
52854
52855 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52856
52857         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
52858         INCLUDE_NEXT.
52859         (gl_CHECK_NEXT_HEADERS): New macro.
52860         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
52861         the obsolescent gl_ABSOLUTE_HEADER.
52862         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
52863         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
52864         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
52865         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52866         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52867         * m4/math_h.m4 (gl_MATH_H): Likewise.
52868         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52869         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52870         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52871         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52872         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52873         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52874         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52875         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52876         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52877         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52878         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
52879         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
52880         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
52881         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52882         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52883         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52884         * m4/inttypes.m4 (gl_INTTYPES_H): Define
52885         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
52886         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
52887         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
52888         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
52889         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
52890         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
52891         * lib/float_.h: Likewise.
52892         * lib/inttypes_.h: Likewise.
52893         * lib/math_.h: Likewise.
52894         * lib/search_.h: Likewise.
52895         * lib/signal_.h: Likewise.
52896         * lib/stdint_.h: Likewise.
52897         * lib/stdio_.h: Likewise.
52898         * lib/stdlib_.h: Likewise.
52899         * lib/string_.h: Likewise.
52900         * lib/sys_stat_.h: Likewise.
52901         * lib/sys_time_.h: Likewise.
52902         * lib/time_.h: Likewise.
52903         * lib/unistd_.h: Likewise.
52904         * lib/wchar_.h: Likewise.
52905         * lib/wctype_.h: Likewise.
52906         * lib/dirent_.h: Likewise.
52907         * lib/iconv_.h: Likewise.
52908         * lib/locale_.h: Likewise.
52909         * lib/netinet_in_.h: Likewise.
52910         * lib/sys_select_.h: Likewise.
52911         * lib/sys_socket_.h: Likewise.
52912         * lib/sysexits_.h: Likewise.
52913         * modules/fcntl (Depends-on): Depend on include_next, not
52914         absolute_header.
52915         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
52916         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
52917         * modules/fchdir: Likewise.
52918         * modules/float: Likewise.
52919         * modules/iconv_open: Likewise.
52920         * modules/inttypes: Likewise.
52921         * modules/locale: Likewise.
52922         * modules/math: Likewise.
52923         * modules/netinet_in: Likewise.
52924         * modules/search: Likewise.
52925         * modules/signal: Likewise.
52926         * modules/stdint: Likewise.
52927         * modules/stdio: Likewise.
52928         * modules/stdlib: Likewise.
52929         * modules/string: Likewise.
52930         * modules/sys_select: Likewise.
52931         * modules/sys_socket: Likewise.
52932         * modules/sys_stat: Likewise.
52933         * modules/sys_time: Likewise.
52934         * modules/sysexits: Likewise.
52935         * modules/time: Likewise.
52936         * modules/unistd: Likewise.
52937         * modules/wchar: Likewise.
52938         * modules/wctype: Likewise.
52939         * modules/sys_stat: Change maintainer to "all".
52940         * modules/unistd: Likewise.
52941
52942 2007-06-20  Karl Berry  <karl@gnu.org>
52943
52944         * config/srclist.txt: track www changes in license files.
52945
52946 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
52947
52948         * build-aux/bootstrap: Remove stray dot.
52949         Make sure build_aux settings are honored when linking
52950         gnulib_extra_files.
52951
52952 2007-06-19  Eric Blake  <ebb9@byu.net>
52953
52954         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52955         Allow compilation on cygwin.
52956
52957 2007-06-19  Jim Meyering  <jim@meyering.net>
52958
52959         xreadlink-with-size: Remove module.  No longer used.
52960         Ex-callers now use xreadlink or mreadlink-with-size.
52961         * modules/xreadlink-with-size: Remove module.
52962         * lib/xreadlink-with-size.c: Remove file.
52963         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
52964         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
52965         just before the function definition *is* accurate.
52966
52967         Eliminate one way canonicalize_filename_mode could exit.
52968         * lib/canonicalize.c (canonicalize_filename_mode):
52969         Use mreadlink_with_size, not xreadlink_with_size.
52970
52971 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
52972
52973         Detect porting problems to FreeBSD/arm, which has time_t wider than
52974         long int.  Original problem reported for GNU diff by Xin Li in
52975         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
52976         * modules/getdate (Depends-on): Add intprops, verify.
52977         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
52978         is an integer type no wider than long int.
52979
52980 2007-06-18  Jim Meyering  <jim@meyering.net>
52981
52982         New module: mreadlink-with-size.
52983         * MODULES.html.sh: Add mreadlink-with-size.
52984         * modules/mreadlink-with-size: New module
52985         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
52986         not xreadlink-with-size.
52987         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
52988
52989 2007-06-16  Bruno Haible  <bruno@clisp.org>
52990
52991         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
52992         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
52993         Reported by Gary V. Vaughan <gary@gnu.org>.
52994
52995 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
52996
52997         Revamp lchown so that it lives in unistd.h where it belongs.
52998         * lib/lchown.h: Remove.
52999         * lib/dirchownmod.c: Don't include lib/lchown.h.
53000         * lib/fchownat.c: Likewise.
53001         * lib/openat.c: Likewise.
53002         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
53003         does not follow symlinks.
53004         (EOPNOTSUPP): Define if not defined.
53005         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
53006         is defined to 0.
53007         (lchown): New decl.
53008         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
53009         Do not check for lchown decl.
53010         Set REPLACE_LCHOWN.
53011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
53012         REPLACE_LCHOWN.
53013         * modules/chown: Make it clear it follows symlinks.
53014         * modules/lchown: Make it clear it doesn't follow symlinks.
53015         (Files): Remove lib/lchown.h
53016         (Depends-on): Add unistd.
53017         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
53018         (Include): Include <unistd.h>, not "lchown.h".
53019         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
53020         REPLACE_LCHOWN.
53021
53022 2007-06-15  Jim Meyering  <jim@meyering.net>
53023
53024         Change license (GPL to LGPL) of fsusage and dependents.
53025         * modules/fsusage (License): Change to LGPL.
53026         * modules/full-read (License): Likewise.
53027         * modules/full-write (License): Likewise.
53028         * modules/safe-read (License): Likewise.
53029         * modules/safe-write (License): Likewise.
53030
53031 2007-06-14  Ben Pfaff  <blp@gnu.org>
53032
53033         Missing part of allocsa -> malloca transition.
53034         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
53035         gl_MALLOCA.
53036
53037 2007-06-12  Bruno Haible  <bruno@clisp.org>
53038
53039         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
53040         to ia64, x86_64, i386.
53041         Reported by Eric Blake.
53042
53043 2007-06-12  Bruno Haible  <bruno@clisp.org>
53044
53045         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
53046         cross-compiling to x86_64.
53047
53048 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
53049
53050         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
53051         glitch reported by Ralf Wildenhues in
53052         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
53053
53054         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
53055         Vin Shelton.
53056
53057 2007-06-11  Bruno Haible  <bruno@clisp.org>
53058
53059         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
53060         replacement string.
53061         Reported by Eric Blake.
53062
53063 2007-06-10  Bruno Haible  <bruno@clisp.org>
53064
53065         Prepare vasnprintf code for use with Unicode strings.
53066         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
53067         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
53068         TYPE_U32_STRING.
53069         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
53070         a_u32_string variants.
53071         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53072         * lib/printf-args.c: Don't include config.h and the specification
53073         header if PRINTF_FETCHARGS is already defined.
53074         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53075         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
53076         TYPE_U16_STRING, TYPE_U32_STRING.
53077         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
53078         u16_directive, u16_directives, u32_directive, u32_directives): New
53079         types.
53080         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
53081         New declarations.
53082         * lib/printf-parse.c: Don't include config.h and the specification
53083         header if PRINTF_PARSE is already defined. Eliminate the set of
53084         parameters for WIDE_CHAR_VERSION; the user of this file must provide
53085         them now. Include c-ctype.h.
53086         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
53087         directive and CHAR_T_ONLY_ASCII.
53088         * lib/vasnprintf.c: Don't include config.h and the specification header
53089         if VASNPRINTF is already defined.
53090         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
53091         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
53092         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
53093         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
53094         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
53095         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
53096         code accordingly.
53097         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
53098         pad_ourselves also in this case, with the 'c' and 's' directives, and
53099         with a different notion of "width".
53100         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
53101
53102 2007-06-10  Bruno Haible  <bruno@clisp.org>
53103
53104         * modules/unistr/u32-mbsnlen: New file.
53105         * lib/unistr/u32-mbsnlen.c: New file.
53106
53107         * modules/unistr/u16-mbsnlen: New file.
53108         * lib/unistr/u16-mbsnlen.c: New file.
53109
53110         * modules/unistr/u8-mbsnlen: New file.
53111         * lib/unistr/u8-mbsnlen.c: New file.
53112
53113         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
53114         declarations.
53115
53116 2007-06-10  Bruno Haible  <bruno@clisp.org>
53117
53118         * lib/string_.h (mbsnlen): New declaration.
53119         * lib/mbsnlen.c: New file.
53120         * m4/mbsnlen.m4: New file.
53121         * modules/mbsnlen: New file.
53122         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
53123         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
53124         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
53125
53126 2007-06-10  Bruno Haible  <bruno@clisp.org>
53127
53128         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
53129
53130 2007-06-10  Bruno Haible  <bruno@clisp.org>
53131
53132         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
53133         * lib/mbuiter.h: Likewise.
53134
53135 2007-06-10  Bruno Haible  <bruno@clisp.org>
53136
53137         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
53138         declaration.
53139
53140 2007-06-10  Karl Berry  <karl@gnu.org>
53141
53142         * config/srclist.txt: remove gettext entries, Bruno prefers
53143         to update individually.
53144
53145 2007-06-10  Bruno Haible  <bruno@clisp.org>
53146
53147         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
53148         'maxlen'. Ensure only length + width bytes are allocated, not
53149         length + 1 + width.
53150
53151 2007-06-09  Bruno Haible  <bruno@clisp.org>
53152
53153         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
53154         (CHAR_T): Remove macro.
53155         (VASNPRINTF): Update.
53156
53157 2007-06-09  Bruno Haible  <bruno@clisp.org>
53158
53159         * MODULES.html.sh (Unicode string functions): Add the new modules.
53160
53161         * modules/uniconv/u32-conv-to-enc: New file.
53162         * lib/uniconv/u32-conv-to-enc.c: New file.
53163         * modules/uniconv/u32-conv-to-enc-tests: New file.
53164         * tests/uniconv/test-u32-conv-to-enc.c: New file.
53165
53166         * modules/uniconv/u16-conv-to-enc: New file.
53167         * lib/uniconv/u16-conv-to-enc.c: New file.
53168         * lib/uniconv/u-conv-to-enc.h: New file.
53169         * modules/uniconv/u16-conv-to-enc-tests: New file.
53170         * tests/uniconv/test-u16-conv-to-enc.c: New file.
53171
53172         * modules/uniconv/u8-conv-to-enc: New file.
53173         * lib/uniconv/u8-conv-to-enc.c: New file.
53174         * modules/uniconv/u8-conv-to-enc-tests: New file.
53175         * tests/uniconv/test-u8-conv-to-enc.c: New file.
53176
53177         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
53178         u32_conv_to_encoding): New declarations.
53179
53180 2007-06-09  Bruno Haible  <bruno@clisp.org>
53181
53182         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
53183
53184 2007-06-09  Bruno Haible  <bruno@clisp.org>
53185
53186         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
53187         * modules/malloca: Renamed from modules/allocsa, updated.
53188         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
53189         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
53190         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
53191         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
53192         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
53193         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
53194         * modules/xmalloca: Renamed from modules/xallocsa, updated.
53195         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
53196         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
53197         * modules/c-strcasestr (Depends-on): Update.
53198         * lib/c-strcasestr.c: Update.
53199         * modules/c-strstr (Depends-on): Update.
53200         * lib/c-strstr.c: Update.
53201         * modules/canonicalize-lgpl (Depends-on): Update.
53202         * lib/canonicalize-lgpl.c: Update.
53203         * modules/clean-temp (Depends-on): Update.
53204         * lib/clean-temp.c: Update.
53205         * modules/csharpcomp (Depends-on): Update.
53206         * lib/csharpcomp.c: Update.
53207         * modules/csharpexec (Depends-on): Update.
53208         * lib/csharpexec.c: Update.
53209         * modules/javacomp (Depends-on): Update.
53210         * lib/javacomp.c: Update.
53211         * modules/javaexec (Depends-on): Update.
53212         * lib/javaexec.c: Update.
53213         * modules/mbscasestr (Depends-on): Update.
53214         * lib/mbscasestr.c: Update.
53215         * modules/mbsstr (Depends-on): Update.
53216         * lib/mbsstr.c: Update.
53217         * modules/setenv (Depends-on): Update.
53218         * lib/setenv.c: Update.
53219         * modules/strcasestr (Depends-on): Update.
53220         * lib/strcasestr.c: Update.
53221         * modules/striconveha (Depends-on): Update.
53222         * lib/striconveha.c: Update.
53223         * modules/relocatable-prog-wrapper (Files): Update.
53224         * lib/relocwrapper.c: Update.
53225         * build-aux/install-reloc: Update.
53226         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
53227
53228 2007-06-08  Bruno Haible  <bruno@clisp.org>
53229
53230         Port to uClibc.
53231         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
53232         * lib/fpurge.c (fpurge): Likewise.
53233         * lib/freading.c (freading): Likewise.
53234         * lib/fseeko.c (rpl_fseeko): Likewise.
53235         * lib/fseterr.c (fseterr): Likewise.
53236         * lib/fwriting.c (fwriting): Likewise.
53237         * tests/test-fflush.c (main): Avoid a failure on uClibc.
53238
53239 2007-06-08  Bruno Haible  <bruno@clisp.org>
53240
53241         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
53242         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
53243         * modules/gettext (Files): Add m4/intlmacosx.m4.
53244
53245 2007-06-07  Bruno Haible  <bruno@clisp.org>
53246
53247         * modules/localename-tests: New file.
53248         * tests/test-localename.c: New file.
53249
53250         New module 'localename'.
53251         * lib/localename.h: New file.
53252         * lib/localename.c: New file, from GNU gettext.
53253         * m4/localename.m4: New file.
53254         * modules/localename: New file.
53255
53256 2007-06-07  Bruno Haible  <bruno@clisp.org>
53257
53258         Work around the lack of <wchar.h> on some builds of uClibc.
53259         * doc/headers/wchar.texi: Update.
53260         * lib/wchar_.h: Include <wchar.h> only if it exists.
53261         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
53262         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
53263         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
53264         doesn't exist.
53265         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
53266         * modules/mbfile (Depends-on): Add wchar.
53267         * modules/mbiter (Depends-on): Likewise.
53268         * modules/mbuiter (Depends-on): Likewise.
53269         Reported by Simon Josefsson.
53270
53271 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53272
53273         Work around problem reported by Steven M. Schweda in
53274         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
53275         Tru64 5.1B with the Compaq compiler environment installed declares
53276         an 'isblank' function but does not define it in the C library.
53277         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
53278         * lib/regex_internal.h (isblank): Likewise.
53279         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
53280         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53281
53282 2007-06-05  Bruno Haible  <bruno@clisp.org>
53283
53284         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
53285         ia64.
53286         * modules/printf-safe: New file.
53287         * modules/fprintf-posix (Depends-on): Add printf-safe.
53288         * modules/printf-posix (Depends-on): Likewise.
53289         * modules/snprintf-posix (Depends-on): Likewise.
53290         * modules/sprintf-posix (Depends-on): Likewise.
53291         * modules/vasnprintf-posix (Depends-on): Likewise.
53292         * modules/vasprintf-posix (Depends-on): Likewise.
53293         * modules/vfprintf-posix (Depends-on): Likewise.
53294         * modules/vprintf-posix (Depends-on): Likewise.
53295         * modules/vsnprintf-posix (Depends-on): Likewise.
53296         * modules/vsprintf-posix (Depends-on): Likewise.
53297         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
53298         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
53299         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
53300         "no" on i386, x86_64, ia64.
53301         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
53302         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53303         on i386, x86_64, ia64.
53304         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
53305         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53306         on i386, x86_64, ia64.
53307         * tests/test-vasnprintf-posix.c: Include float.h.
53308         (LDBL80_WORDS): New macro.
53309         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53310         on i386, x86_64, ia64.
53311         * tests/test-vasprintf-posix.c: Include float.h.
53312         (LDBL80_WORDS): New macro.
53313         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53314         on i386, x86_64, ia64.
53315         * tests/test-snprintf-posix.c: Include float.h.
53316         * tests/test-sprintf-posix.c: Likewise.
53317         * tests/test-vsnprintf-posix.c: Likewise.
53318         * tests/test-vsprintf-posix.c: Likewise.
53319
53320 2007-06-05  Bruno Haible  <bruno@clisp.org>
53321
53322         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53323         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53324         non-IEEE numbers on i386, x86_64, ia64.
53325         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53326         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53327         * tests/test-isnanl.h: Include float.h.
53328         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53329
53330 2007-06-05  Bruno Haible  <bruno@clisp.org>
53331
53332         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53333         also the %a / %A. Handle the %a / %A code before this extra handling.
53334
53335 2007-06-05  Bruno Haible  <bruno@clisp.org>
53336
53337         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53338         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53339
53340 2007-06-05  Bruno Haible  <bruno@clisp.org>
53341
53342         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53343         typo in variable name.
53344
53345 2007-06-05  Eric Blake  <ebb9@byu.net>
53346
53347         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53348         Reported by Simon Josefsson.
53349
53350 2007-06-04  Bruno Haible  <bruno@clisp.org>
53351
53352         Avoid test failures on some PowerPC platforms.
53353         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53354         Define differently for PowerPC.
53355         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53356         Reported by Gary V. Vaughan <gary@gnu.org>.
53357
53358 2007-06-02  Bruno Haible  <bruno@clisp.org>
53359
53360         Fix test-stdint failure on FreeBSD/ia64.
53361         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53362         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53363         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53364         * doc/headers/stdint.texi: Update.
53365
53366 2007-06-01  Bruno Haible  <bruno@clisp.org>
53367
53368         * tests/test-binary-io.c (main): Pass a third argument to open().
53369         Reported by Gary V. Vaughan <gary@gnu.org>.
53370
53371 2007-06-01  Bruno Haible  <bruno@clisp.org>
53372
53373         * doc/functions/frexpl.texi: Update for mingw.
53374
53375 2007-06-01  Bruno Haible  <bruno@clisp.org>
53376
53377         * tests/test-lseek.c (main): Disable test of errno for invalid third
53378         argument.
53379         * doc/functions/lseek.texi: Update.
53380         Reported by Gary V. Vaughan <gary@gnu.org>.
53381
53382 2007-05-28  Bruno Haible  <bruno@clisp.org>
53383
53384         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53385
53386 2007-05-31  Eric Blake  <ebb9@byu.net>
53387
53388         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53389         cross compiling.
53390
53391 2007-05-30  Eric Blake  <ebb9@byu.net>
53392         and Bruno Haible  <bruno@clisp.org>
53393
53394         Work around mingw test failures exposed by m4-1.4.9b.
53395         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53396         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53397         moment.
53398
53399 2007-05-30  Bruno Haible  <bruno@clisp.org>
53400
53401         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53402         assuming that they are closed. Needed on HP-UX 11.
53403
53404 2007-05-29  Bruno Haible  <bruno@clisp.org>
53405
53406         Fix a problem with #include_next.
53407         * lib/dirent_.h: Split the double-inclusion guard.
53408         * lib/fcntl_.h: Likewise.
53409         * lib/float_.h: Likewise.
53410         * lib/iconv_.h: Likewise.
53411         * lib/inttypes_.h: Likewise.
53412         * lib/locale_.h: Likewise.
53413         * lib/math_.h: Likewise.
53414         * lib/netinet_in_.h: Likewise.
53415         * lib/search_.h: Likewise.
53416         * lib/signal_.h: Likewise.
53417         * lib/stdint_.h: Likewise.
53418         * lib/stdio_.h: Likewise.
53419         * lib/stdlib_.h: Likewise.
53420         * lib/string_.h: Likewise.
53421         * lib/sys_select_.h: Likewise.
53422         * lib/sys_socket_.h: Likewise.
53423         * lib/sys_stat_.h: Likewise.
53424         * lib/sys_time_.h: Likewise.
53425         * lib/sysexits_.h: Likewise.
53426         * lib/time_.h: Likewise.
53427         * lib/unistd_.h: Likewise.
53428         * lib/wchar_.h: Likewise.
53429         * lib/wctype_.h: Likewise.
53430
53431 2007-05-29  Bruno Haible  <bruno@clisp.org>
53432
53433         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53434         for the moment.
53435
53436 2007-05-29  Bruno Haible  <bruno@clisp.org>
53437
53438         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53439         invocation.
53440         Reported by Eric Blake.
53441
53442 2007-05-29  Bruno Haible  <bruno@clisp.org>
53443
53444         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53445         compiling case.
53446
53447 2007-05-29  Eric Blake  <ebb9@byu.net>
53448             Bruno Haible  <bruno@clisp.org>
53449
53450         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53451         cross compiles.
53452
53453 2007-05-28  Eric Blake  <ebb9@byu.net>
53454
53455         * modules/closein-tests (test_closein_LDADD): Support test on
53456         cygwin with libtool.
53457
53458 2007-05-28  Bruno Haible  <bruno@clisp.org>
53459
53460         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53461         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53462         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53463         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53464         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53465         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53466         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53467         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53468         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53469
53470 2007-05-28  Eric Blake  <ebb9@byu.net>
53471
53472         Unconditionally include <config.h> in unit tests.
53473         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53474         * tests/test-allocsa.c, tests/test-arcfour.c,
53475         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53476         tests/test-array_list.c, tests/test-array_oset.c,
53477         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53478         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53479         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53480         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53481         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53482         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53483         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53484         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53485         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53486         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53487         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53488         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53489         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53490         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53491         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53492         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53493         test-md5.c, test-memmem.c, test-printf-posix.c,
53494         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53495         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53496         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53497         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53498         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53499         test-vasnprintf-posix2.c, test-vasnprintf.c,
53500         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53501         test-vfprintf-posix.c, test-vprintf-posix.c,
53502         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53503         test-xvasprintf.c: Likewise.
53504
53505 2007-05-28  Bruno Haible  <bruno@clisp.org>
53506
53507         * gnulib-tool (func_import): Remember the --with-tests command-line
53508         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53509         Reported by Eric Blake.
53510
53511 2007-05-28  Bruno Haible  <bruno@clisp.org>
53512
53513         * modules/ftell-tests: New file.
53514         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53515         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53516
53517         * lib/ftell.c: New file.
53518         * modules/ftell: New file.
53519         * m4/ftell.m4: New file.
53520         * doc/functions/ftell.texi: Update.
53521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53522         REPLACE_FTELL.
53523         * lib/stdio_.h (rpl_ftell): New declaration.
53524         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53525         REPLACE_FTELL.
53526
53527 2007-05-28  Eric Blake  <ebb9@byu.net>
53528
53529         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
53530
53531 2007-05-28  Bruno Haible  <bruno@clisp.org>
53532
53533         * modules/fseek-tests: New file.
53534         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
53535         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
53536
53537         * lib/fseek.c: New file.
53538         * modules/fseek: New file.
53539         * m4/fseek.m4: New file.
53540         * doc/functions/fseek.texi: Update.
53541         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
53542         REPLACE_FSEEK.
53543         * lib/stdio_.h (rpl_fseek): New declaration.
53544         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
53545         REPLACE_FSEEK.
53546
53547 2007-05-28  Bruno Haible  <bruno@clisp.org>
53548
53549         * lib/stdio_.h (fflush): More comments.
53550
53551 2007-05-28  Bruno Haible  <bruno@clisp.org>
53552
53553         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
53554         runtime test.
53555
53556 2007-05-28  Eric Blake  <ebb9@byu.net>
53557
53558         Improve lseek module.
53559         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
53560         * lib/unistd_.h (lseek): Scale back link warning message.
53561         * tests/test-lseek.c: Beef up test.
53562         * tests/test-lseek.sh: Exercise more facets of lseek.
53563         Reported by Bruno Haible.
53564
53565 2007-05-28  Bruno Haible  <bruno@clisp.org>
53566
53567         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
53568         to define.
53569
53570 2007-05-27  Bruno Haible  <bruno@clisp.org>
53571
53572         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
53573
53574 2007-05-27  Bruno Haible  <bruno@clisp.org>
53575
53576         * modules/openmp: New file.
53577         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
53578         Noah Misch.
53579
53580 2007-05-26  Bruno Haible  <bruno@clisp.org>
53581
53582         * modules/chdir-long (Depends-on): Add fchdir.
53583         * modules/chdir-safer (Depends-on): Likewise.
53584         * modules/fts (Depends-on): Likewise.
53585         * modules/fts-lgpl (Depends-on): Likewise.
53586         * modules/openat (Depends-on): Likewise.
53587         * modules/savewd (Depends-on): Likewise.
53588
53589 2007-05-24  Eric Blake  <ebb9@byu.net>
53590
53591         Fix lseek on mingw.
53592         * modules/lseek: New module.
53593         * m4/lseek.m4: New file.
53594         * lib/lseek.c: New file.
53595         * modules/lseek-tests: New file.
53596         * tests/test-lseek.c: New file.
53597         * tests/test-lseek.sh: New file.
53598         * MODULES.html.sh: Document lseek module.
53599         * modules/fflush (Depends-on): Add lseek, fseeko.
53600         * modules/fseeko (Depends-on): Likewise.
53601         * modules/ftello (Depends-on): Likewise.
53602         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
53603         broken.
53604         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
53605         broken.
53606         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
53607         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
53608         * lib/ftello.c (rpl_ftello): Likewise.
53609         * tests/test-fseeko.c (main): Test this.
53610         * tests/test-fseeko.sh: Likewise.
53611         * tests/test-ftello.c (main): Likewise.
53612         * tests/test-ftello.sh: Likewise.
53613         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
53614         implies replacing fseek.
53615         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
53616         HAVE_FTELLO.
53617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53618         * modules/unistd (Makefile.am): Likewise.
53619         * lib/unistd_.h (lseek): Declare a replacement.
53620         * doc/functions/lseek.texi (lseek): Document this fix.
53621         * doc/functions/fseek.texi (fseek): Likewise.
53622         * doc/functions/ftell.texi (ftell): Likewise.
53623
53624 2007-05-24  Bruno Haible  <bruno@clisp.org>
53625
53626         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53627         in the printed representation of a NaN.
53628         * tests/test-vasprintf-posix.c (test_function): Likewise.
53629         * tests/test-snprintf-posix.h (test_function): Likewise.
53630         * tests/test-sprintf-posix.h (test_function): Likewise.
53631         Reported by Eric Blake.
53632
53633 2007-05-23  Eric Blake  <ebb9@byu.net>
53634
53635         Fix fseeko/ftello on cygwin 1.5.24.
53636         * doc/functions/fseeko.texi (fseeko): Document the fix.
53637         * doc/functions/ftello.texi (ftello): Document the fix.
53638         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53639         * doc/functions/stdout.text (stdout): New file.
53640         * doc/functions/stderr.text (stderr): New file.
53641         * doc/gnulib.texi (Function Substitutes): Use new files.
53642         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53643         prior to 1.7.0.
53644         * tests/test-ftello.c (main): Likewise for ftello.
53645         * tests/test-fseeko.sh: New file.
53646         * tests/test-ftello.sh: New file.
53647         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53648         with seekable stdin.
53649         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53650         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53651         (gl_REPLACE_FSEEKO): New macro.
53652         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53653         * modules/fseeko (Files): Distribute fseeko.c.
53654         * modules/ftello (Files): Distribute ftello.c.
53655         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53656         mode.
53657         * lib/ftello.c (rpl_ftello): New file.
53658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53659         fseeko, ftello.
53660         (gl_STDIN_LARGE_OFFSET): New macro.
53661         * modules/stdio (Makefile.am): Perform the replacement.
53662         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53663
53664 2007-05-23  Bruno Haible  <bruno@clisp.org>
53665
53666         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53667         GNULIB_POSIXCHECK is defined.
53668
53669 2007-05-21  Bruno Haible  <bruno@clisp.org>
53670
53671         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53672         Check also the output for NaN arguments. When cross-compiling, guess
53673         no on IRIX.
53674         * lib/vasnprintf.c: Update comments.
53675         * tests/test-vasnprintf-posix.c (strisnan): New function.
53676         (test_function): Use it.
53677         * tests/test-vasprintf-posix.c (strisnan): New function.
53678         (test_function): Use it.
53679         * tests/test-snprintf-posix.h (strisnan): New function.
53680         (test_function): Use it.
53681         * tests/test-sprintf-posix.h (strisnan): New function.
53682         (test_function): Use it.
53683         Reported by Eric Blake.
53684
53685 2007-05-20  Bruno Haible  <bruno@clisp.org>
53686
53687         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53688         numbers that fails on BeOS.
53689         * doc/functions/frexpl.texi: Update.
53690
53691 2007-05-20  Jim Meyering  <jim@meyering.net>
53692
53693         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
53694         forced upon us by glibc-2.6.
53695
53696 2007-05-20  Bruno Haible  <bruno@clisp.org>
53697
53698         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
53699         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
53700         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
53701         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
53702         NEED_PRINTF_INFINITE.
53703         (is_infinitel): New function.
53704         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
53705         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
53706         gl_PREREQ_VASNPRINTF_INFINITE.
53707         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
53708         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53709         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
53710         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
53711         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
53712         gl_PREREQ_VASNPRINTF_INFINITE.
53713         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53714         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53715         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53716         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53717         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53718         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53719         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53720         * doc/functions/fprintf.texi: Update.
53721         * doc/functions/printf.texi: Update.
53722         * doc/functions/snprintf.texi: Update.
53723         * doc/functions/sprintf.texi: Update.
53724         * doc/functions/vfprintf.texi: Update.
53725         * doc/functions/vprintf.texi: Update.
53726         * doc/functions/vsnprintf.texi: Update.
53727         * doc/functions/vsprintf.texi: Update.
53728
53729 2007-05-20  Bruno Haible  <bruno@clisp.org>
53730
53731         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
53732         was not found in libc.
53733         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
53734
53735 2007-05-20  Bruno Haible  <bruno@clisp.org>
53736
53737         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53738         printed as "-nan" instead of "nan".
53739         * tests/test-vasprintf-posix.c (test_function): Likewise.
53740         * tests/test-snprintf-posix.h (test_function): Likewise.
53741         * tests/test-sprintf-posix.h (test_function): Likewise.
53742         Needed for HP-UX 11.
53743
53744 2007-05-20  Jim Meyering  <jim@meyering.net>
53745
53746         Fix buggy test for the fchownat-deref bug.
53747         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
53748         symlink required for the run-test.  Without it, this test would
53749         always declare that fchownat doesn't work, and client code would
53750         unnecessarily use the replacement function with fixed libc.
53751         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
53752         Reported by Greg Schafer.
53753
53754 2007-05-19  Bruno Haible  <bruno@clisp.org>
53755
53756         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
53757         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
53758         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
53759         Needed for IRIX 6.5 and Solaris 2.5.1.
53760
53761 2007-05-19  Bruno Haible  <bruno@clisp.org>
53762
53763         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
53764         (test_function): Skip tests involving -0.0 on platforms where
53765         -0.0 = 0.0.
53766         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
53767         (test_function): Skip tests involving -0.0 on platforms where
53768         -0.0 = 0.0.
53769         * tests/test-snprintf-posix.h (have_minus_zero): New function.
53770         (test_function): Skip tests involving -0.0 on platforms where
53771         -0.0 = 0.0.
53772         * tests/test-sprintf-posix.h (have_minus_zero): New function.
53773         (test_function): Skip tests involving -0.0 on platforms where
53774         -0.0 = 0.0.
53775         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
53776         tests.
53777         * tests/test-printf-posix.h (test_function): Likewise.
53778         * tests/test-printf-posix.output: Remove all -0.0 related results.
53779         Needed for IRIX 6.5.
53780
53781 2007-05-19  Bruno Haible  <bruno@clisp.org>
53782
53783         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53784         printed as "nan0x7fffffff" instead of "nan".
53785         * tests/test-vasprintf-posix.c (test_function): Likewise.
53786         * tests/test-snprintf-posix.h (test_function): Likewise.
53787         * tests/test-sprintf-posix.h (test_function): Likewise.
53788         * tests/test-fprintf-posix.h (NaN): Remove macro.
53789         (test_function): Remove all NaN related tests.
53790         * tests/test-printf-posix.h (NaN): Remove macro.
53791         (test_function): Remove all NaN related tests.
53792         * tests/test-printf-posix.output: Remove all NaN related results.
53793         Needed for IRIX 6.5.
53794
53795 2007-05-19  Bruno Haible  <bruno@clisp.org>
53796
53797         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
53798         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
53799
53800 2007-05-19  Bruno Haible  <bruno@clisp.org>
53801
53802         * lib/float_.h: New file.
53803         * m4/float_h.m4: New file.
53804         * modules/float: New file.
53805         * modules/isnanl (Dependencies): Add float.
53806         * modules/isnanl-nolibm (Dependencies): Likewise.
53807         * modules/mathl (Dependencies): Likewise.
53808         * modules/printf-frexpl (Dependencies): Likewise.
53809         * modules/signbit (Dependencies): Likewise.
53810         * modules/vasnprintf (Dependencies): Likewise.
53811         * doc/headers/float.texi: Update.
53812
53813 2007-05-19  Jim Meyering  <jim@meyering.net>
53814
53815         * lib/utimens.c (gl_futimens): Rename from futimens,
53816         now that glibc-2.6 declares futimens.
53817         * lib/utimens.h: Likewise.
53818
53819 2007-05-19  Bruno Haible  <bruno@clisp.org>
53820
53821         Avoid test failures on mingw.
53822         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
53823         * tests/test-printf-posix.sh: Likewise.
53824         * tests/test-vfprintf-posix.sh: Likewise.
53825         * tests/test-vprintf-posix.sh: Likewise.
53826
53827 2007-05-19  Bruno Haible  <bruno@clisp.org>
53828
53829         Fix *printf result for NaN, Inf, -0.0 on mingw.
53830         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
53831         * lib/vasnprintf.c: Include math.h and isnan.h.
53832         (is_infinite_or_zero): New function.
53833         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
53834         values in the %f, %F, %e, %E, %g, %G directives.
53835         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
53836         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53837         gl_PRINTF_INFINITE and test its result. Invoke
53838         gl_PREREQ_VASNPRINTF_INFINITE.
53839         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53840         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53841         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53842         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53843         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53844         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53845         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53846         * doc/functions/fprintf.texi: Update.
53847         * doc/functions/printf.texi: Update.
53848         * doc/functions/snprintf.texi: Update.
53849         * doc/functions/sprintf.texi: Update.
53850         * doc/functions/vfprintf.texi: Update.
53851         * doc/functions/vprintf.texi: Update.
53852         * doc/functions/vsnprintf.texi: Update.
53853         * doc/functions/vsprintf.texi: Update.
53854
53855 2007-05-19  Bruno Haible  <bruno@clisp.org>
53856
53857         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
53858         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
53859         Instead of multiplying with 10^k, set extra_zeroes to k.
53860         (scale10_round_long_double): Remove function.
53861
53862 2007-05-18  Bruno Haible  <bruno@clisp.org>
53863
53864         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
53865         introduced on 2007-05-06.
53866
53867 2007-05-18  Bruno Haible  <bruno@clisp.org>
53868
53869         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
53870         %g directives.
53871         * tests/test-vasprintf-posix.c (test_function): Likewise.
53872         * tests/test-snprintf-posix.h (test_function): Likewise.
53873         * tests/test-sprintf-posix.h (test_function): Likewise.
53874
53875 2007-05-18  Bruno Haible  <bruno@clisp.org>
53876
53877         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
53878         (strmatch): New function.
53879         (test_function): Test the %f directive on numbers of various exponents.
53880         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
53881         (strmatch): New function.
53882         (test_function): Test the %f directive on numbers of various exponents.
53883         * tests/test-snprintf-posix.h (strmatch): New function.
53884         (test_function): Test the %f directive on numbers of various exponents.
53885         * tests/test-sprintf-posix.h (strmatch): New function.
53886         (test_function): Test the %f directive on numbers of various exponents.
53887         * tests/test-snprintf-posix.c (SIZEOF): New macro.
53888         * tests/test-sprintf-posix.c (SIZEOF): New macro.
53889         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
53890         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
53891
53892 2007-05-18  Bruno Haible  <bruno@clisp.org>
53893
53894         Add support for 'long double' number output.
53895         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
53896         * lib/vasnprintf.c: Include math.h and float+.h.
53897         (mp_limb_t): New type.
53898         (GMP_LIMB_BITS): New macro.
53899         (mp_twolimb_t): New type.
53900         (GMP_TWOLIMB_BITS): New macro.
53901         (mpn_t): New type.
53902         (multiply, divide, convert_to_decimal, decode_long_double,
53903         scale10_round_long_double, scale10_round_decimal_long_double,
53904         floorlog10l): New functions.
53905         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
53906         for the %f, %F, %e, %E, %g, %G directives.
53907         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
53908         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53909         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
53910         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
53911         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53912         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53913         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53914         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53915         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53916         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53917         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53918         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
53919         * modules/snprintf-posix (Depends-on): Likewise.
53920         * modules/sprintf-posix (Depends-on): Likewise.
53921         * modules/vasnprintf-posix (Depends-on): Likewise.
53922         * modules/vasprintf-posix (Depends-on): Likewise.
53923         * modules/vfprintf-posix (Depends-on): Likewise.
53924         * modules/vsnprintf-posix (Depends-on): Likewise.
53925         * modules/vsprintf-posix (Depends-on): Likewise.
53926         * modules/vasnprintf (Files): Add lib/float+.h.
53927         * doc/functions/fprintf.texi: Update.
53928         * doc/functions/printf.texi: Update.
53929         * doc/functions/snprintf.texi: Update.
53930         * doc/functions/sprintf.texi: Update.
53931         * doc/functions/vfprintf.texi: Update.
53932         * doc/functions/vprintf.texi: Update.
53933         * doc/functions/vsnprintf.texi: Update.
53934         * doc/functions/vsprintf.texi: Update.
53935
53936 2007-05-18  Bruno Haible  <bruno@clisp.org>
53937
53938         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
53939
53940 2007-05-18  Bruno Haible  <bruno@clisp.org>
53941
53942         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
53943         for printing 64-bit integers. Needed for mingw.
53944
53945 2007-05-18  Bruno Haible  <bruno@clisp.org>
53946
53947         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53948         gl_FUNC_FREXPL_WORKS.
53949         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
53950
53951 2007-05-18  Bruno Haible  <bruno@clisp.org>
53952
53953         * modules/frexpl-nolibm-tests: New file.
53954
53955         * modules/frexpl-nolibm: New file.
53956         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
53957
53958 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53959
53960         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
53961         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53962         GCC 4.2, which otherwise issues a lot of warnings.
53963         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
53964         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
53965         Likewise.
53966         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
53967         * modules/iconv_open (iconv.h): Likewise.
53968         * modules/locale (locale.h): Likewise.
53969         * modules/netinet_in (netinet/in.h): Likewise.
53970         * modules/sys_select (sys_select.h): Likewise.
53971         * modules/sys_socket (sys/socket.h): Likewise.
53972         * modules/sys_stat (sys/stat.h): Likewise.
53973         * modules/sysexits (sysexits.h): Likewise.
53974         * modules/unistd (unistd.h): Likewise.
53975
53976 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53977
53978         * modules/closein-tests (Makefile.am): Distribute
53979         `test-closein.sh'.
53980
53981 2007-05-17  Bruno Haible  <bruno@clisp.org>
53982
53983         * tests/test-printf-posix.output: Renamed from
53984         tests/test-fprintf-posix.out.
53985         * modules/fprintf-posix-tests: Update.
53986         * modules/printf-posix-tests: Update.
53987         * modules/vfprintf-posix-tests: Update.
53988         * modules/vprintf-posix-tests: Update.
53989         * tests/test-fprintf-posix.sh: Update.
53990         * tests/test-printf-posix.sh: Update.
53991         * tests/test-vfprintf-posix.sh: Update.
53992         * tests/test-vprintf-posix.sh: Update.
53993         Reported by Ralf Wildenhues.
53994
53995 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53996
53997         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
53998         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53999         GCC 4.2, which otherwise issues a lot of warnings.
54000         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
54001         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
54002         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
54003         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
54004         it should no longer be needed.
54005         * lib/string_.h: Likewise.
54006         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
54007         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
54008         * modules/inttypes (inttypes.h): Likewise.
54009         * modules/math (math.h): Likewise.
54010         * modules/search (search.h): Likewise.
54011         * modules/signal (signal.h): Likewise.
54012         * modules/stdint (stdint.h): Likewise.
54013         * modules/stdio (stdio.h): Likewise.
54014         * modules/stdlib (stdlib.h): Likewise.
54015         * modules/string (string.h): Likewise.
54016         * modules/sys_time (sys/time.h): Likewise.
54017         * modules/time (time.h): Likewise.
54018         * modules/wchar (wchar.h): Likewise.
54019         * modules/wctype (wtype.h): Likewise.
54020
54021 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54022
54023         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
54024
54025 2007-05-13  Bruno Haible  <bruno@clisp.org>
54026
54027         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
54028         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54029         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
54030         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54031         (gl_PREREQ_STRTOK_R): Don't require it here.
54032
54033 2007-05-13  Bruno Haible  <bruno@clisp.org>
54034
54035         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
54036         when used in C++ mode.
54037
54038 2007-05-12  Bruno Haible  <bruno@clisp.org>
54039
54040         * lib/linebuffer.h: Tweak doc.
54041         * lib/linebuffer.c: Likewise.
54042
54043 2007-05-12  James Youngman  <jay@gnu.org>
54044
54045         * lib/linebuffer.c (readlinebuffer_delim): New function,
54046         like readlinebuffer, but use a caller-specified delimiter.
54047         (readlinebuffer): Just call readlinebuffer_delim with '\n'
54048         as the delimiter.
54049         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
54050
54051 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54052
54053         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
54054         * modules/openat (Files): Remove openat-die.c.
54055         (Depends-on): Add openat-die.
54056         * modules/openat-die: New module.
54057
54058 2007-05-06  Bruno Haible  <bruno@clisp.org>
54059
54060         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
54061         Update with info about Cygwin.
54062         * doc/functions/fprintf.texi: Update.
54063         * doc/functions/printf.texi: Update.
54064         * doc/functions/snprintf.texi: Update.
54065         * doc/functions/sprintf.texi: Update.
54066         * doc/functions/vfprintf.texi: Update.
54067         * doc/functions/vprintf.texi: Update.
54068         * doc/functions/vsnprintf.texi: Update.
54069         * doc/functions/vsprintf.texi: Update.
54070         Reported by Eric Blake.
54071
54072 2007-05-06  Bruno Haible  <bruno@clisp.org>
54073
54074         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
54075         padding ourselves for the floating-point directives.
54076         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
54077         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
54078         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54079         gl_PRINTF_FLAG_ZERO and test its result. Invoke
54080         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
54081         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54082         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54083         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54084         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54085         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54086         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54087         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54088         * tests/test-snprintf-posix.h (test_function): Also check the width
54089         and some flags in the %f directive.
54090         * tests/test-sprintf-posix.h (test_function): Likewise.
54091         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54092         * tests/test-vasprintf-posix.c (test_function): Likewise.
54093         * doc/functions/fprintf.texi: Update.
54094         * doc/functions/printf.texi: Update.
54095         * doc/functions/snprintf.texi: Update.
54096         * doc/functions/sprintf.texi: Update.
54097         * doc/functions/vfprintf.texi: Update.
54098         * doc/functions/vprintf.texi: Update.
54099         * doc/functions/vsnprintf.texi: Update.
54100         * doc/functions/vsprintf.texi: Update.
54101
54102 2007-05-06  Bruno Haible  <bruno@clisp.org>
54103
54104         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
54105         pass the ' flag character to sprintf or snprintf.
54106         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
54107         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
54108         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54109         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
54110         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
54111         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54112         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54113         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54114         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54115         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54116         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54117         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54118         * tests/test-snprintf-posix.h (test_function): Also check the grouping
54119         flag.
54120         * tests/test-sprintf-posix.h (test_function): Likewise.
54121         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54122         * tests/test-vasprintf-posix.c (test_function): Likewise.
54123         * doc/functions/fprintf.texi: Update.
54124         * doc/functions/printf.texi: Update.
54125         * doc/functions/snprintf.texi: Update.
54126         * doc/functions/sprintf.texi: Update.
54127         * doc/functions/vfprintf.texi: Update.
54128         * doc/functions/vprintf.texi: Update.
54129         * doc/functions/vsnprintf.texi: Update.
54130         * doc/functions/vsprintf.texi: Update.
54131
54132 2007-05-01  Bruno Haible  <bruno@clisp.org>
54133
54134         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
54135
54136 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
54137
54138         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
54139         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
54140
54141 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54142
54143         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
54144         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
54145         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
54146
54147 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
54148
54149         * lib/argp-help.c (struct hol_entry): New member `ord'.
54150         (HOL_ENTRY_PTRCMP): Use ord for comparison
54151         (hol_sort): Initialize ord.
54152
54153 2007-05-01  Bruno Haible  <bruno@clisp.org>
54154
54155         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
54156         Reported by Eric Blake.
54157         * doc/gnulib.texi (Function Substitutes): Update.
54158
54159 2007-05-01  Bruno Haible  <bruno@clisp.org>
54160
54161         * doc/functions.texi: Remove file, now redundant through
54162         doc/functions/*.texi.
54163
54164 2007-05-01  Bruno Haible  <bruno@clisp.org>
54165
54166         * modules/argp (Depends-on): Add sleep.
54167
54168 2007-05-01  Bruno Haible  <bruno@clisp.org>
54169
54170         * modules/sleep-tests: New file.
54171         * tests/test-sleep.c: New file.
54172
54173         * modules/sleep: New file.
54174         * lib/sleep.c: New file.
54175         * m4/sleep.m4: New file.
54176         * lib/unistd_.h (sleep): New declaration.
54177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
54178         HAVE_SLEEP.
54179         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
54180         * doc/functions/sleep.texi: Document the sleep module.
54181
54182 2007-05-01  Bruno Haible  <bruno@clisp.org>
54183
54184         * lib/sigprocmask.h: Remove file.
54185         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
54186         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
54187         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
54188         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
54189         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
54190         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
54191         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
54192         HAVE_SIGSET_T as a shell variable.
54193         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
54194         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
54195         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
54196         (Depends-on): Add signal. Remove verify.
54197         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
54198         (Include): Mention <signal.h> instead of sigprocmask.h.
54199         * NEWS: Mention the change.
54200         * lib/fatal-signal.c: Don't include sigprocmask.h.
54201
54202 2007-05-01  Bruno Haible  <bruno@clisp.org>
54203
54204         * modules/signal: New file.
54205         * lib/signal_.h: New file.
54206         * m4/signal_h.m4: New file.
54207
54208 2007-05-01  Bruno Haible  <bruno@clisp.org>
54209
54210         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
54211         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
54212         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
54213         HAVE_WCTYPE_CTMP_BUG into wctype.h.
54214
54215 2007-05-01  Bruno Haible  <bruno@clisp.org>
54216
54217         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
54218         configure time.
54219         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
54220         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
54221         * modules/sys_stat (Makefile.am): Substitute their values into
54222         sys/stat.h.
54223
54224 2007-05-01  Bruno Haible  <bruno@clisp.org>
54225
54226         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
54227         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
54228         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
54229
54230 2007-05-01  Bruno Haible  <bruno@clisp.org>
54231
54232         * doc/header/assert.texi: Undo last change: don't mention the gnulib
54233         'assert' module here.
54234
54235 2007-05-01  Bruno Haible  <bruno@clisp.org>
54236
54237         * doc/functions/*.texi: New files.
54238         * doc/functions/google-ranking.txt: New file.
54239         * doc/gnulib.texi (Function Substitutes): New chapter.
54240         (ctime, inet_ntoa): Remove sections.
54241         * doc/ctime.texi: Remove file.
54242         * doc/inet_ntoa.texi: Remove file.
54243         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
54244         dependencies.
54245         (%.info): New rule, specifying a --reference-limit.
54246
54247 2007-05-01  Bruno Haible  <bruno@clisp.org>
54248
54249         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
54250
54251 2007-05-01  Bruno Haible  <bruno@clisp.org>
54252
54253         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
54254         the portability of 'mkdir' to mingw systems.
54255
54256 2007-05-01  Bruno Haible  <bruno@clisp.org>
54257
54258         * doc/headers/google-ranking.txt: New file.
54259
54260 2007-04-30  Eric Blake  <ebb9@byu.net>
54261
54262         Prefer fseeko to fseek.
54263         * modules/getpass (Depends-on): Add fseeko.
54264         * lib/getpass.c (getpass): Use fseeko, not fseek.
54265
54266 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
54267
54268         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
54269         assumes the sorting is stable, while most qsort implementations
54270         are not.  Use argument addresses to ensure they never compare as
54271         equal.
54272
54273         * tests/test-argp-2.sh (usage-indent test): Fix output
54274         (func_compare): Restore diff options
54275         * tests/test-argp.c: Restore #include "progname.h"
54276
54277 2007-04-29  Bruno Haible  <bruno@clisp.org>
54278
54279         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
54280         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54281         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
54282         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54283         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
54284         (configure.ac): Define CHECK_SNPRINTF_POSIX.
54285         (TESTS, check_PROGRAMS): Add test-snprintf.
54286         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
54287         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
54288         (TESTS, check_PROGRAMS): Add test-vsnprintf.
54289         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
54290         assertions that fail on HP-UX, OSF/1, or IRIX.
54291         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
54292
54293 2007-04-29  Bruno Haible  <bruno@clisp.org>
54294
54295         * MODULES.html.sh (posix_functions): Remove 'contents'.
54296
54297 2007-04-29  Karl Berry  <karl@gnu.org>
54298
54299         * config/srclist.txt (gendocs_template_min): new entry.
54300
54301 2007-04-29  Bruno Haible  <bruno@clisp.org>
54302
54303         Work around fpurge bug on BSD systems.
54304         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
54305         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
54306         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
54307         fpurge to rpl_fpurge if the system already has this function.
54308         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54309         the case where the system already has this function. Correct invariants
54310         on BSD systems.
54311         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54312         BSD systems.
54313
54314 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54315
54316         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54317         proposed by Sven Verdoolaege.
54318
54319         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54320         options.
54321         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54322         (usage and help tests): Update
54323
54324 2007-04-29  Bruno Haible  <bruno@clisp.org>
54325
54326         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54327         Print more information in case of failure. Disable a test on BeOS.
54328
54329 2007-04-29  Bruno Haible  <bruno@clisp.org>
54330
54331         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54332         This helps debugging on systems on which no gdb is available.
54333
54334 2007-04-29  Bruno Haible  <bruno@clisp.org>
54335
54336         * lib/freading.h: Improve comments.
54337         * lib/fwriting.h: Likewise.
54338         * tests/test-freading.c (main): Don't check freading immediately after
54339         repositioning. Needed for glibc.
54340
54341 2007-04-29  Bruno Haible  <bruno@clisp.org>
54342
54343         * lib/freading.c (freading): Trivial simplification.
54344
54345 2007-04-28  Bruno Haible  <bruno@clisp.org>
54346
54347         * tests/test-fwriting.c (main): Also test the interaction between
54348         fflush and fwriting.
54349         * modules/fwriting-tests (Depends-on): Add fflush.
54350
54351         * tests/test-freading.c (main): Also test the interaction between
54352         fflush and freading.
54353         * modules/freading-tests (Depends-on): Add fflush.
54354
54355 2007-04-28  Bruno Haible  <bruno@clisp.org>
54356
54357         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54358         fseeko and ftello.
54359         Suggested by Eric Blake.
54360
54361 2007-04-28  Jim Meyering  <jim@meyering.net>
54362
54363         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54364         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54365         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54366
54367 2007-04-27  Eric Blake  <ebb9@byu.net>
54368
54369         * doc/headers/assert.texi (assert.h): Document assert module use.
54370
54371 2007-04-27  Bruno Haible  <bruno@clisp.org>
54372
54373         * doc/headers/*.texi: New files.
54374         * doc/gnulib.texi (Header File Substitutes): New chapter.
54375         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54376         dependencies.
54377         (standards.info ,standards.html, standards.dvi): Update dependencies.
54378         (mostlyclean, clean): New targets.
54379
54380 2007-04-27  Bruno Haible  <bruno@clisp.org>
54381
54382         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54383         * modules/sysexits (Files, Makefile.am): Update.
54384
54385         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54386         * modules/sys_socket (Files, Makefile.am): Update.
54387
54388         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54389         * modules/sys_stat (Files, Makefile.am): Update.
54390
54391 2007-04-27  Eric Blake  <ebb9@byu.net>
54392
54393         * lib/freading.h: Improve comments.
54394         * lib/fwriting.h: Likewise.
54395         * lib/fflush.c: Likewise.
54396
54397         Fix closein for mingw.
54398         * modules/closein-tests: Add tests for closein.
54399         * tests/test-closein.c: New file.
54400         * tests/test-closein.sh: Likewise.
54401         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54402         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54403
54404 2007-04-27  Bruno Haible  <bruno@clisp.org>
54405
54406         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54407         version is < 6.
54408         * lib/math_.h [__DECC]: Likewise.
54409         * lib/stdio_.h [__DECC]: Likewise.
54410         * lib/stdlib_.h [__DECC]: Likewise.
54411         * lib/string_.h [__DECC]: Likewise.
54412         * lib/time_.h [__DECC]: Likewise.
54413         * lib/wchar_.h [__DECC]: Likewise.
54414         * lib/wctype_.h [__DECC]: Likewise.
54415
54416 2007-04-27  Bruno Haible  <bruno@clisp.org>
54417
54418         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54419
54420 2007-04-27  Bruno Haible  <bruno@clisp.org>
54421
54422         * lib/fflush.c: Add comments.
54423         * modules/fpurge-tests (Depends-on): Add fflush.
54424         * modules/freadable-tests (Depends-on): Likewise.
54425         * modules/fwritable-tests (Depends-on): Likewise.
54426
54427 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54428
54429         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54430         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54431         Report by Bruno Haible <bruno@clisp.org>.
54432
54433 2007-04-26  Eric Blake  <ebb9@byu.net>
54434
54435         Fix fflush on mingw.
54436         * modules/fflush (Depends-on): Add freading.
54437         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54438         but unread data.
54439
54440 2007-04-26  Eric Blake  <ebb9@byu.net>
54441         and Bruno Haible  <bruno@clisp.org>
54442
54443         Implement freading and fwriting.
54444         * lib/freading.c: New file.
54445         * lib/freading.h: Likewise.
54446         * m4/freading.m4: Likewise.
54447         * modules/freading: Likewise.
54448         * modules/freading-tests: Likewise.
54449         * tests/test-freading.c: Likewise.
54450         * lib/fwriting.c: New file.
54451         * lib/fwriting.h: Likewise.
54452         * m4/fwriting.m4: Likewise.
54453         * modules/fwriting: Likewise.
54454         * modules/fwriting-tests: Likewise.
54455         * tests/test-fwriting.c: Likewise.
54456         * MODULES.html.sh (File stream based Input/Output): Mention them.
54457
54458 2007-04-26  Bruno Haible  <bruno@clisp.org>
54459
54460         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54461         'long' when we assume it.
54462         Suggested by Eric Blake.
54463
54464 2007-04-26  Bruno Haible  <bruno@clisp.org>
54465
54466         Ensure fseeko, ftello are declared on glibc systems.
54467         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54468         * modules/fseeko (configure.ac-early): Likewise.
54469         * modules/ftello (configure.ac-early): Likewise.
54470         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54471         AC_FUNC_FSEEKO for this.
54472         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54473         (gl_CHECK_FSEEKO): Remove macro.
54474
54475 2007-04-26  Bruno Haible  <bruno@clisp.org>
54476
54477         * tests/test-fflush.c (main): Also check the ftell result after
54478         fflush and fseek/fseeko.
54479         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54480         file descriptor position cache in the stream.
54481         * lib/fseeko.c (rpl_fseeko): Likewise.
54482
54483 2007-04-26  Bruno Haible  <bruno@clisp.org>
54484
54485         * modules/fflush-tests (Depends-on): Add fseeko.
54486
54487 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54488             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54489
54490         * lib/argz_.h: ensure error_t definition is obtained in same
54491         mechanism system argz.h would have.
54492         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54493         argz facilities are known bad.  Err on the side of caution if
54494         cross-compiling.
54495
54496 2007-04-25  Eric Blake  <ebb9@byu.net>
54497
54498         * lib/fpurge.c (includes): Use stdlib.h for free.
54499         * tests/test-fflush.c (main): Also test fflush-fseeko.
54500
54501 2007-04-25  Bruno Haible  <bruno@clisp.org>
54502
54503         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54504         * lib/fseeko.c: New file.
54505         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54506         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54507         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54508         gl_FUNC_FSEEKO.
54509         (gl_FUNC_FSEEKO): Invoke it.
54510         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54511         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54512         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54513
54514 2007-04-25  Bruno Haible  <bruno@clisp.org>
54515
54516         * modules/fflush (Depends-on): Add ftello.
54517
54518 2007-04-25  Bruno Haible  <bruno@clisp.org>
54519
54520         * modules/ftello-tests: New file.
54521         * tests/test-ftello.c: New file.
54522
54523         * modules/ftello: New file.
54524         * m4/ftello.m4: New file.
54525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54526         HAVE_FTELLO.
54527         * lib/stdio_.h (ftello): New declaration.
54528         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
54529         HAVE_FTELLO.
54530
54531 2007-04-25  Bruno Haible  <bruno@clisp.org>
54532
54533         * modules/fseeko-tests: New file.
54534         * tests/test-fseeko.c: New file.
54535
54536         * modules/fseeko: New file.
54537         * m4/fseeko.m4: New file.
54538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
54539         HAVE_FSEEKO.
54540         * lib/stdio_.h (fseeko): New declaration.
54541         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
54542         HAVE_FSEEKO.
54543
54544 2007-04-25  Bruno Haible  <bruno@clisp.org>
54545
54546         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
54547
54548 2007-04-25  Bruno Haible  <bruno@clisp.org>
54549
54550         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
54551         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
54552         * tests/test-unistd.c: Likewise.
54553         * tests/test-fcntl.c: Likewise.
54554
54555 2007-04-23  Eric Blake  <ebb9@byu.net>
54556
54557         * lib/fflush.c: Fix missing include.
54558         Reported by Bruno Haible.
54559
54560 2007-04-23  Bruno Haible  <bruno@clisp.org>
54561
54562         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
54563         Reported by Eric Blake.
54564
54565 2007-04-23  Bruno Haible  <bruno@clisp.org>
54566
54567         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
54568
54569 2007-04-23  Bruno Haible  <bruno@clisp.org>
54570
54571         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
54572
54573 2007-04-23  Bruno Haible  <bruno@clisp.org>
54574
54575         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
54576         Needed on HP-UX 11.
54577
54578 2007-04-16  Eric Blake  <ebb9@byu.net>
54579
54580         Make fflush rely on fpurge.
54581         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
54582         open coding all variants.
54583         * modules/fflush (Depends-on): Add fpurge and unistd.
54584         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
54585         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
54586
54587         Fix --with-tests compilation on cygwin.
54588         * modules/argmatch-tests (Makefile.am): List gnulib library first
54589         in LDADD.
54590         * modules/argp-tests (Makefile.am): Likewise.
54591         * modules/array-list-tests (Makefile.am): Likewise.
54592         * modules/array-oset-tests (Makefile.am): Likewise.
54593         * modules/avltree-list-tests (Makefile.am): Likewise.
54594         * modules/avltree-oset-tests (Makefile.am): Likewise.
54595         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54596         * modules/carray-list-tests (Makefile.am): Likewise.
54597         * modules/dirname-tests (Makefile.am): Likewise.
54598         * modules/frexp-tests (Makefile.am): Likewise.
54599         * modules/isnanl-tests (Makefile.am): Likewise.
54600         * modules/linked-list-tests (Makefile.am): Likewise.
54601         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54602         * modules/lock-tests (Makefile.am): Likewise.
54603         * modules/rbtree-list-tests (Makefile.am): Likewise.
54604         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54605         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54606         * modules/tls-tests (Makefile.am): Likewise.
54607         * modules/tsearch-tests (Makefile.am): Likewise.
54608         * modules/xvasprintf-tests (Makefile.am): Likewise.
54609
54610         Fix fpurge for cygwin.
54611         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
54612         value.
54613         * modules/fpurge-tests (Depends-on): Clean up trash.
54614
54615 2007-04-16  Simon Josefsson  <simon@josefsson.org>
54616
54617         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54618
54619         * m4/autobuild.m4: Re-indent.
54620
54621 2007-04-13  Bruno Haible  <bruno@clisp.org>
54622
54623         * modules/fpurge-tests: New file.
54624         * tests/test-fpurge.c: New file.
54625
54626         * modules/fpurge: New file.
54627         * lib/fpurge.h: New file.
54628         * lib/fpurge.c: New file.
54629         * m4/fpurge.m4: New file.
54630
54631 2007-04-13  Bruno Haible  <bruno@clisp.org>
54632
54633         * modules/fbufmode-tests: New file.
54634         * tests/test-fbufmode.c: New file.
54635
54636         * modules/fbufmode: New file.
54637         * lib/fbufmode.h: New file.
54638         * lib/fbufmode.c: New file.
54639         * m4/fbufmode.m4: New file.
54640
54641 2007-04-13  Bruno Haible  <bruno@clisp.org>
54642
54643         * modules/fwritable-tests: New file.
54644         * tests/test-fwritable.c: New file.
54645
54646         * modules/fwritable: New file.
54647         * lib/fwritable.h: New file.
54648         * lib/fwritable.c: New file.
54649         * m4/fwritable.m4: New file.
54650
54651 2007-04-13  Bruno Haible  <bruno@clisp.org>
54652
54653         * modules/freadable-tests: New file.
54654         * tests/test-freadable.c: New file.
54655
54656         * modules/freadable: New file.
54657         * lib/freadable.h: New file.
54658         * lib/freadable.c: New file.
54659         * m4/freadable.m4: New file.
54660
54661 2007-04-13  Bruno Haible  <bruno@clisp.org>
54662
54663         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54664         MOSTLYCLEANFILES.
54665
54666 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54667
54668         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54669         gzip bootstrap.conf to avoid dragging in i18n machinery.
54670         (gnulib_tool_option): Use it.
54671
54672 2007-04-13  Bruno Haible  <bruno@clisp.org>
54673
54674         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54675         %F directives.
54676         * tests/test-vasprintf-posix.c (test_function): Likewise.
54677         * tests/test-snprintf-posix.h (test_function): Likewise.
54678         * tests/test-sprintf-posix.h (test_function): Likewise.
54679         * tests/test-fprintf-posix.h (test_function): Likewise.
54680         * tests/test-printf-posix.h (test_function): Likewise.
54681         * tests/test-fprintf-posix.out: Likewise.
54682
54683 2007-04-13  Bruno Haible  <bruno@clisp.org>
54684
54685         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54686         * modules/tls-tests (configure.ac): Likewise.
54687         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54688
54689 2007-04-13  Bruno Haible  <bruno@clisp.org>
54690
54691         * lib/tls.c (glthread_tls_get): Fix return type.
54692         Patch by Arto C. Nirkko <anirkko@insel.ch>.
54693
54694 2007-04-12  Eric Blake  <ebb9@byu.net>
54695
54696         * modules/gettime (Depends-on): Remove gettime.
54697         Reported by Dmitry V. Levin.
54698
54699 2007-04-12  Bruno Haible  <bruno@clisp.org>
54700
54701         * modules/fflush (Include): Mention <stdio.h>.
54702         * modules/strtoimax (Include): Mention <inttypes.h>.
54703         * modules/strtoumax (Include): Likewise.
54704
54705 2007-04-12  Eric Blake  <ebb9@byu.net>
54706
54707         * .cvsignore: New file.
54708         * .gitignore: Likewise.
54709
54710 2007-04-12  Bruno Haible  <bruno@clisp.org>
54711
54712         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
54713         not before, since $(LDADD) often contains libgnu.a.
54714         * modules/striconv-tests (test_striconv_LDADD): Likewise.
54715         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
54716         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
54717         Needed on Cygwin.
54718
54719 2007-04-12  Eric Blake  <ebb9@byu.net>
54720
54721         Work around glibc's failure to flush stdin on fclose.
54722         * lib/closein.c (close_stdin): Flush stdin before closing.
54723
54724         Work around glibc's failure to reset seekable stdin on exit.
54725         * modules/closein: New module.
54726         * lib/closein.c: New file.
54727         * lib/closein.h: Likewise.
54728         * m4/closein.m4: Likewise.
54729         * MODULES.html.sh (File stream based Input/Output): Document it.
54730
54731 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54732
54733         * gnulib-tool: Rename generated 'autobuild' script to
54734         'do-autobuild' in --create-megatestdir output.
54735
54736         * doc/gnulib.texi (Build robot for gnulib): Fix.
54737
54738 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54739
54740         * modules/sysexits (Depends-on): Add absolute-header.
54741
54742 2007-04-12  Eric Blake  <ebb9@byu.net>
54743
54744         No need to preserve errno on success.
54745         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
54746         Reported by Bruno Haible.
54747
54748 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54749
54750         * MODULES.html.sh (Support for maintaining and releasing
54751         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
54752
54753 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54754
54755         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
54756
54757 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54758
54759         * modules/autobuild: New module.
54760
54761         * m4/autobuild.m4: New file.
54762
54763 2007-04-11  Bruno Haible  <bruno@clisp.org>
54764
54765         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
54766         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
54767         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
54768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
54769         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54770         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54771         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54772         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54773         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54774         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54775         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
54776         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54777         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54778         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
54779         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54780         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54781         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
54782         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54783         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54784         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
54785         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54786         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54787         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
54788         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54789         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54790         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
54791         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54792         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54793         Reported by Eric Blake.
54794
54795 2007-04-11  Bruno Haible  <bruno@clisp.org>
54796
54797         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
54798
54799 2007-04-10  Bruno Haible  <bruno@clisp.org>
54800
54801         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
54802         for NaN and Infinity. Needed on FreeBSD 6.1.
54803         * tests/test-vasnprintf-posix.c (test_function): Undo last change
54804         regarding results for "%010a" of Infinity and NaN.
54805         * tests/test-vasprintf-posix.c (test_function): Likewise.
54806         * tests/test-snprintf-posix.h (test_function): Likewise.
54807         * tests/test-sprintf-posix.h (test_function): Likewise.
54808         * tests/test-fprintf-posix.h (test_function): Likewise.
54809         * tests/test-printf-posix.h (test_function): Likewise.
54810         * tests/test-fprintf-posix.out: Likewise.
54811
54812 2007-04-10  Bruno Haible  <bruno@clisp.org>
54813
54814         * modules/locale-tests: New file.
54815         * tests/test-locale.c: New file.
54816
54817         * modules/locale: New file.
54818         * lib/locale_.h: New file.
54819         * m4/locale_h.m4: New file.
54820
54821 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
54822             Bruno Haible  <bruno@clisp.org>
54823
54824         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
54825         be determined, test for availability of the copysignf, copysign,
54826         copysignl functions.
54827         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
54828         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
54829         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
54830
54831 2007-04-09  Eric Blake  <ebb9@byu.net>
54832
54833         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
54834         * modules/stdio (Makefile.am): Support fflush.
54835         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54836         * modules/fflush: New file.
54837         * lib/fflush.c: Likewise.
54838         * m4/fflush.m4: Likewise.
54839         * modules/fflush-tests: New test.
54840         * tests/test-fflush.c: Likewise.
54841         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
54842
54843 2007-04-06  Bruno Haible  <bruno@clisp.org>
54844
54845         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
54846         (VASNPRINTF): Use signbit for faster determination whether to print a
54847         minus sign.
54848         * modules/vasnprintf (Files): Remove lib/float+.h.
54849         * modules/fprintf-posix (Depends-on): Add signbit.
54850         * modules/snprintf-posix (Depends-on): Likewise.
54851         * modules/sprintf-posix (Depends-on): Likewise.
54852         * modules/vasnprintf-posix (Depends-on): Likewise.
54853         * modules/vasprintf-posix (Depends-on): Likewise.
54854         * modules/vfprintf-posix (Depends-on): Likewise.
54855         * modules/vsnprintf-posix (Depends-on): Likewise.
54856         * modules/vsprintf-posix (Depends-on): Likewise.
54857
54858 2007-04-06  Bruno Haible  <bruno@clisp.org>
54859
54860         * tests/test-frexp.c (main): Test also the sign bit of zero results.
54861         * tests/test-frexpl.c (main): Likewise.
54862         * tests/test-ldexpl.c (main): Likewise.
54863         * modules/frexp-tests (Depends-on): Add signbit.
54864         * modules/frexpl-tests (Depdends-on): Likewise.
54865         * modules/ldexpl-tests (Depdends-on): Likewise.
54866
54867 2007-04-06  Bruno Haible  <bruno@clisp.org>
54868
54869         * modules/signbit-tests: New file.
54870         * tests/test-signbit.c: New file.
54871
54872         * modules/signbit: New file.
54873         * lib/signbitf.c: New file.
54874         * lib/signbitd.c: New file.
54875         * lib/signbitl.c: New file.
54876         * m4/signbit.m4: New file.
54877         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
54878         (signbit): New macro.
54879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
54880         REPLACE_SIGNBIT.
54881         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
54882         REPLACE_FREXPL into math.h.
54883
54884 2007-04-06  Bruno Haible  <bruno@clisp.org>
54885
54886         * modules/isnanf-nolibm-tests: New file.
54887         * tests/test-isnanf.c: New file.
54888
54889         * modules/isnanf-nolibm: New file.
54890         * lib/isnanf.h: New file.
54891         * lib/isnanf.c: New file.
54892         * lib/isnan.c: Consider the USE_FLOAT macro.
54893         * m4/isnanf.m4: New file.
54894
54895 2007-04-06  Bruno Haible  <bruno@clisp.org>
54896
54897         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
54898         (Link): New section.
54899
54900         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
54901
54902 2007-04-06  Bruno Haible  <bruno@clisp.org>
54903
54904         Assume the 'long double' type.
54905         * m4/longdouble.m4: Remove file.
54906         * config/srclist.txt: Don't mention longdouble.m4.
54907         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
54908         * lib/float+.h: Likewise.
54909         * lib/frexp.c: Likewise.
54910         * lib/printf-args.h: Likewise.
54911         * lib/printf-args.c: Likewise.
54912         * lib/printf-frexp.c: Likewise.
54913         * lib/printf-parse.c: Likewise.
54914         * lib/vasnprintf.c: Likewise.
54915         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
54916         * m4/intl.m4: Likewise.
54917         * m4/isnanl.m4: Likewise.
54918         * m4/printf.m4: Likewise.
54919         * m4/printf-frexpl.m4: Likewise.
54920         * m4/vasnprintf.m4: Likewise.
54921         * modules/allocsa (Files): Remove m4/longdouble.m4.
54922         * modules/gettext (Files): Likewise.
54923         * modules/relocatable-prog-wrapper (Files): Likewise.
54924         * modules/vasnprintf (Files): Likewise.
54925         * modules/isnanl (Files): Likewise.
54926         (Include): Simplify.
54927         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
54928         (Include): Simplify.
54929         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
54930         (Include): Simplify.
54931         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
54932         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54933         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
54934         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54935         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54936         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54937         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
54938         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54939         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54940         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54941         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
54942         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54943         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
54944         * tests/test-isnanl.c: Likewise.
54945         * tests/test-snprintf-posix.h: Likewise.
54946         * tests/test-sprintf-posix.h: Likewise.
54947         * tests/test-vasnprintf-posix.c: Likewise.
54948         * tests/test-vasnprintf-posix2.c: Likewise.
54949         * tests/test-vasprintf-posix.c: Likewise.
54950
54951 2007-04-06  Bruno Haible  <bruno@clisp.org>
54952
54953         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
54954         * lib/math_.h [__DECC]: Include the overridden include file through
54955         #include_next, outside the double-inclusion guard.
54956         * lib/stdio_.h [__DECC]: Likewise.
54957         * lib/stdlib_.h [__DECC]: Likewise.
54958         * lib/string_.h [__DECC]: Likewise.
54959         * lib/time_.h [__DECC]: Likewise.
54960         * lib/wchar_.h [__DECC]: Likewise.
54961         * lib/wctype_.h [__DECC]: Likewise.
54962         * lib/inttypes_.h [__DECC]: Likewise.
54963         Reported by Albert Chin <china@thewrittenword.com> in
54964         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
54965
54966 2007-04-04  Eric Blake  <ebb9@byu.net>
54967
54968         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
54969         1.5.x.
54970
54971 2007-04-04  Bruno Haible  <bruno@clisp.org>
54972
54973         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
54974         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
54975
54976 2007-04-04  Bruno Haible  <bruno@clisp.org>
54977
54978         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
54979         results for "%010a" of Infinity and NaN.
54980         * tests/test-vasprintf-posix.c (test_function): Likewise.
54981         * tests/test-snprintf-posix.h (test_function): Likewise.
54982         * tests/test-sprintf-posix.h (test_function): Likewise.
54983         * tests/test-fprintf-posix.h (test_function): Remove these tests.
54984         * tests/test-printf-posix.h (test_function): Likewise.
54985         * tests/test-fprintf-posix.out: Update.
54986         Needed for FreeBSD 6.1.
54987
54988 2007-04-04  Bruno Haible  <bruno@clisp.org>
54989
54990         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
54991         directly used by the gnulib modules nor by gnulib-tool.
54992
54993 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
54994
54995         * DEPENDENCIES: Give overall description of version dependency
54996         desirability.  Use more-typical names for apps.
54997         Add shell, coreutils, diffutils, grep, tar, gzip.
54998
54999 2007-04-04  Simon Josefsson  <simon@josefsson.org>
55000
55001         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
55002
55003 2007-04-04  Karl Berry  <karl@gnu.org>
55004
55005         * MODULES.html.sh (func_module): missing '.
55006
55007 2007-04-03  Bruno Haible  <bruno@clisp.org>
55008
55009         * modules/argmatch-tests (Makefile.am): New variable
55010         test_argmatch_LDADD.
55011         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
55012         * modules/array-list-tests (Makefile.am): New variable
55013         test_array_list_LDADD.
55014         * modules/array-oset-tests (Makefile.am): New variable
55015         test_array_oset_LDADD.
55016         * modules/avltree-list-tests (Makefile.am): New variable
55017         test_avltree_list_LDADD.
55018         * modules/avltree-oset-tests (Makefile.am): New variable
55019         test_avltree_oset_LDADD.
55020         * modules/avltreehash-list-tests (Makefile.am): New variable
55021         test_avltreehash_list_LDADD.
55022         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
55023         test_canonicalize_lgpl_LDADD.
55024         * modules/carray-list-tests (Makefile.am): New variable
55025         test_carray_list_LDADD.
55026         * modules/dirname-tests (Makefile.am): New variable
55027         test_dirname_LDADD.
55028         * modules/linked-list-tests (Makefile.am): New variable
55029         test_linked_list_LDADD.
55030         * modules/linkedhash-list-tests (Makefile.am): New variable
55031         test_linkedhash_list_LDADD.
55032         * modules/rbtree-list-tests (Makefile.am): New variable
55033         test_rbtree_list_LDADD.
55034         * modules/rbtree-oset-tests (Makefile.am): New variable
55035         test_rbtree_oset_LDADD.
55036         * modules/rbtreehash-list-tests (Makefile.am): New variable
55037         test_rbtreehash_list_LDADD.
55038         * modules/xvasprintf-tests (Makefile.am): New variable
55039         test_xvasprintf_LDADD.
55040         Reported by Eric Blake.
55041
55042 2007-04-03  Eric Blake  <ebb9@byu.net>
55043
55044         * DEPENDENCIES: Weaken m4 requirements.
55045
55046 2007-04-03  Bruno Haible  <bruno@clisp.org>
55047
55048         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
55049         * modules/isnanl-tests (configure.ac): Likewise.
55050
55051 2007-04-03  Ben Pfaff  <blp@gnu.org>
55052
55053         * modules/iconv_open: Add $(srcdir)/ to source directory
55054         references in Makefile fragments that call gperf, to fix VPATH
55055         builds.
55056
55057 2007-04-03  Bruno Haible  <bruno@clisp.org>
55058
55059         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
55060         * lib/ldexpl.c: Undo last change.
55061
55062 2007-04-03  Bruno Haible  <bruno@clisp.org>
55063
55064         * modules/printf-frexpl (Depends-on): Undo last change.
55065         (Files): Add m4/ldexpl.m4.
55066
55067 2007-04-03  Bruno Haible  <bruno@clisp.org>
55068
55069         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
55070         * modules/isnanl (Link): New section.
55071
55072         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
55073         * modules/frexp (Link): New section.
55074
55075         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
55076         * modules/frexpl (Link): New section.
55077
55078         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
55079         * modules/ldexpl (Link): New section.
55080
55081 2007-04-03  Bruno Haible  <bruno@clisp.org>
55082
55083         * modules/TEMPLATE-EXTENDED: New file.
55084         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
55085
55086 2007-04-03  Bruno Haible  <bruno@clisp.org>
55087
55088         * DEPENDENCIES: New file.
55089         Suggested by Simon Josefsson.
55090
55091 2007-04-03  Bruno Haible  <bruno@clisp.org>
55092
55093         * doc/gnulib.texi: Escape @.
55094
55095 2007-04-03  James Youngman  <jay@gnu.org>
55096         and Paul Eggert  <eggert@cs.ucla.edu>
55097
55098         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
55099         birthtime on all systems that have birthtime, not just those which
55100         use st_birthtimensec rather than st_birthtim.  Putting zero in
55101         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
55102         that the birth time is not available for files on an NFS mount.
55103
55104 2007-04-03  Simon Josefsson  <simon@josefsson.org>
55105
55106         * modules/memxor: Move back from crypto/, suggested by Bruno.
55107         * modules/crypto/hmac-sha1: Fix memxor dependency.
55108
55109         * modules/crypto/gc: Moved from ../.
55110
55111 2007-04-02  Eric Blake  <ebb9@byu.net>
55112
55113         * lib/ldexpl.c (includes): Avoid libm.
55114
55115         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
55116
55117 2007-04-02  Bruno Haible  <bruno@clisp.org>
55118
55119         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
55120         on IRIX.
55121
55122 2007-04-02  Bruno Haible  <bruno@clisp.org>
55123
55124         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
55125         x86 or x86_64 platforms running MacOS X.
55126         Reported by Ryan Schmidt <@ryandesign.com>.
55127
55128 2007-04-02  Bruno Haible  <bruno@clisp.org>
55129
55130         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
55131         i386.
55132
55133 2007-04-01  Simon Josefsson  <simon@josefsson.org>
55134
55135         * modules/crypto/arcfour: Moved from ../.
55136         * modules/crypto/arcfour-tests: Moved from ../.
55137         * modules/crypto/arctwo: Moved from ../.
55138         * modules/crypto/arctwo-tests: Moved from ../.
55139         * modules/crypto/des: Moved from ../.
55140         * modules/crypto/des-tests: Moved from ../.
55141         * modules/crypto/gc-arcfour: Moved from ../.
55142         * modules/crypto/gc-arcfour-tests: Moved from ../.
55143         * modules/crypto/gc-arctwo: Moved from ../.
55144         * modules/crypto/gc-arctwo-tests: Moved from ../.
55145         * modules/crypto/gc-des: Moved from ../.
55146         * modules/crypto/gc-des-tests: Moved from ../.
55147         * modules/crypto/gc-hmac-md5: Moved from ../.
55148         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
55149         * modules/crypto/gc-hmac-sha1: Moved from ../.
55150         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
55151         * modules/crypto/gc-md2: Moved from ../.
55152         * modules/crypto/gc-md2-tests: Moved from ../.
55153         * modules/crypto/gc-md4: Moved from ../.
55154         * modules/crypto/gc-md4-tests: Moved from ../.
55155         * modules/crypto/gc-md5: Moved from ../.
55156         * modules/crypto/gc-md5-tests: Moved from ../.
55157         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
55158         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
55159         * modules/crypto/gc-random: Moved from ../.
55160         * modules/crypto/gc-rijndael: Moved from ../.
55161         * modules/crypto/gc-rijndael-tests: Moved from ../.
55162         * modules/crypto/gc-sha1: Moved from ../.
55163         * modules/crypto/gc-sha1-tests: Moved from ../.
55164         * modules/crypto/gc-tests: Moved from ../.
55165         * modules/crypto/hmac-md5: Moved from ../.
55166         * modules/crypto/hmac-md5-tests: Moved from ../.
55167         * modules/crypto/hmac-sha1: Moved from ../.
55168         * modules/crypto/hmac-sha1-tests: Moved from ../.
55169         * modules/crypto/md2: Moved from ../.
55170         * modules/crypto/md2-tests: Moved from ../.
55171         * modules/crypto/md4: Moved from ../.
55172         * modules/crypto/md4-tests: Moved from ../.
55173         * modules/crypto/md5: Moved from ../.
55174         * modules/crypto/md5-tests: Moved from ../.
55175         * modules/crypto/memxor: Moved from ../.
55176         * modules/crypto/rijndael: Moved from ../.
55177         * modules/crypto/rijndael-tests: Moved from ../.
55178         * modules/crypto/sha1: Moved from ../.
55179
55180 2007-03-30  James Youngman  <jay@gnu.org>
55181
55182         * tests/test-stat-time.c (prepare_test): use chmod() rather than
55183         rename() to change the ctime of a file (because ctime is unaffected
55184         by rename on jfs2 on AIX 5.1).
55185         (main): Start by doing cleanup, in case a previous run failed leaving
55186         test files behind.
55187
55188 2007-03-31  Bruno Haible  <bruno@clisp.org>
55189
55190         Support old proprietary implementations of iconv.
55191         * modules/iconv_open: New file.
55192         * lib/iconv_.h: New file.
55193         * m4/iconv_h.m4: New file.
55194         * lib/iconv_open.c: New file.
55195         * lib/iconv_open-aix.gperf: New file.
55196         * lib/iconv_open-hpux.gperf: New file.
55197         * lib/iconv_open-irix.gperf: New file.
55198         * lib/iconv_open-osf.gperf: New file.
55199         * m4/iconv_open.m4: New file.
55200         * modules/linebreak (Depends-on): Add iconv_open.
55201         * modules/striconv (Depends-on): Likewise.
55202         * modules/striconveh (Depends-on): Likewise.
55203         * modules/unicodeio (Depends-on): Likewise.
55204         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
55205         (iconv_t)(-1).
55206         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
55207         conversion if cd is (iconv_t)(-1).
55208         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
55209         is not possible.
55210
55211 2007-03-31  Bruno Haible  <bruno@clisp.org>
55212
55213         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55214         work on Solaris either. Protect also second use of "autodetect_jp".
55215
55216 2007-03-31  Bruno Haible  <bruno@clisp.org>
55217
55218         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
55219         the function is not present.
55220
55221 2007-03-31  Bruno Haible  <bruno@clisp.org>
55222
55223         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
55224         the function is not present.
55225
55226 2007-03-31  Bruno Haible  <bruno@clisp.org>
55227
55228         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
55229         a bug in HP-UX iconv_open().
55230
55231 2007-03-31  Bruno Haible  <bruno@clisp.org>
55232
55233         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
55234         (Mathematics <math.h>): New section, add fpieee.
55235         (Input/output <stdio.h>): Add fseterr.
55236         (Mathematics <math.h>): New section, add printf-frexp.
55237         (Container data structures): Add sublist.
55238         (Core language properties): Add fpucw, inline.
55239         (Functions for greatest-width integer types <inttypes.h>): Add
55240         imaxabs, imaxdiv, inttypes.
55241         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
55242         isnanl-nolibm, ldexp.
55243         (Mathematics <math.h>): New section, add printf-frexpl.
55244         (Support for systems lacking POSIX:2001): Add fprintf-posix,
55245         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
55246         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
55247         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
55248         (Unicode string functions): Add unistr/u*-mbtoucr.
55249         (Java): Add javacomp-script, javaexec-script.
55250         (C#): Add csharpcomp-script, csharpexec-script.
55251         (Support for building libraries and executables): Add havelib,
55252         relocatable-*.
55253         (Support for maintaining and releasing projects): Renamed from
55254         'Support for maintaining and release projects'. Add announce-gen.
55255
55256 2007-03-31  Bruno Haible  <bruno@clisp.org>
55257
55258         * README: Talk primarily about git.
55259         (git and CVS): Renamed from CVS.
55260         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
55261         gnulib is available through git.
55262         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
55263
55264 2007-03-30  Bruno Haible  <bruno@clisp.org>
55265
55266         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
55267         * lib/poll_.h: Likewise.
55268         * lib/stat_.h: Likewise.
55269         * lib/sys_time_.h: Likewise.
55270         * lib/sysexit_.h: Likewise.
55271         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
55272         * lib/stdbool_.h: Likewise.
55273         * lib/byteswap_.h: Add double-inclusion guard.
55274
55275 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
55276
55277         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
55278
55279 2007-03-30  Karl Berry  <karl@gnu.org>
55280
55281         * config/srclist-update: double space after USA in the license
55282         substitution, since that's how it's usually (?) written.
55283
55284 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55285
55286         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
55287         reported by Bruno Haible.
55288
55289 2007-03-29  Bruno Haible  <bruno@clisp.org>
55290
55291         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
55292         a bug in AIX iconv().
55293
55294 2007-03-29  Bruno Haible  <bruno@clisp.org>
55295
55296         * modules/ldexpl-tests: New file.
55297         * tests/test-ldexpl.c: New file.
55298
55299 2007-03-29  Bruno Haible  <bruno@clisp.org>
55300
55301         * lib/ldexpl.c: Include fpucw.h.
55302         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
55303         multiplication.
55304         * modules/ldexpl (Depends-on): Add fpucw.
55305
55306 2007-03-29  Bruno Haible  <bruno@clisp.org>
55307
55308         * modules/ldexpl: New file.
55309         * m4/ldexpl.m4: New file.
55310         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55311         set.
55312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55313         REPLACE_LDEXPL.
55314         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55315         REPLACE_LDEXPL.
55316         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55317         gl_FUNC_LDEXPL_WORKS.
55318         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55319         * modules/mathl (Files): Remove lib/ldexpl.c.
55320         (Depends-on): Add ldexpl.
55321
55322 2007-03-29  Bruno Haible  <bruno@clisp.org>
55323
55324         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55325
55326 2007-03-29  Bruno Haible  <bruno@clisp.org>
55327
55328         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55329         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55330         and possibly also HP-UX.
55331         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55332         work on AIX, IRIX, HP-UX, OSF/1.
55333         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55334         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55335         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55336         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55337         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55338         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55339
55340 2007-03-29  Bruno Haible  <bruno@clisp.org>
55341
55342         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55343
55344 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55345
55346         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55347         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55348
55349 2007-03-29  Eric Blake  <ebb9@byu.net>
55350
55351         * lib/acl-internal.h: Remove redundant include.
55352         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55353         Cygwin when a file is locked.
55354
55355 2007-03-29  Bruno Haible  <bruno@clisp.org>
55356
55357         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55358         file.
55359         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55360
55361 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55362
55363         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55364         try to remove a parent directory if the child couldn't be removed
55365         (except for the first rmdir, which could fail because the child
55366         doesn't exist).  Problem reported by Jeff Blaine in
55367         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55368
55369 2007-03-28  Bruno Haible  <bruno@clisp.org>
55370
55371         * lib/striconveh.c (utf8conv_carefully): New function.
55372         (mem_cd_iconveh_internal): Invoke it.
55373
55374 2007-03-28  Bruno Haible  <bruno@clisp.org>
55375
55376         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55377         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55378         input.
55379         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55380         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55381         unistr/u8-uctomb.
55382
55383 2007-03-28  Bruno Haible  <bruno@clisp.org>
55384
55385         * modules/unistr/u8-mbtoucr: New file.
55386         * lib/unistr/u8-mbtoucr.c: New file.
55387         * modules/unistr/u16-mbtoucr: New file.
55388         * lib/unistr/u16-mbtoucr.c: New file.
55389         * modules/unistr/u16-mbtoucr: New file.
55390         * lib/unistr/u16-mbtoucr.c: New file.
55391         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55392
55393 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55394             Bruno Haible  <bruno@clisp.org>
55395
55396         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55397         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55398         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55399
55400         * m4/stdio_h.m4: Add stubs for vasprintf too.
55401
55402         * modules/stdio: Support vasprintf in sed command.
55403
55404         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55405         vasprintf.h.  Add stdio module indicator.
55406
55407         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55408         vasprintf.h.
55409
55410         * lib/vasprintf.h: File removed.
55411
55412         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55413         * lib/vasprintf.c: Ditto.
55414         * lib/xvasprintf.c: Ditto.
55415         * tests/test-vasprintf-posix.c: Ditto.
55416         * tests/test-vasprintf.c: Ditto.
55417
55418 2007-03-27  Bruno Haible  <bruno@clisp.org>
55419
55420         Make vasnprintf multithread-safe.
55421         * lib/vasnprintf.c (decimal_point_char): New function.
55422         (VASNPRINTF): Use it.
55423         Suggested by Simon Josefsson.
55424
55425 2007-03-27  Eric Blake  <ebb9@byu.net>
55426
55427         Support sub-second birthtime on cygwin.
55428         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55429         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55430         (get_stat_birthtime): Also work with st_birthtim.
55431
55432 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55433
55434         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55435         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55436         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55437         (get_stat_birthtime_ns): Simplify compile-time tests.
55438         (get_stat_birthtime): Change the API to look like
55439         get_stat_mtime etc., except return a negative tv_nsec on error.
55440         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55441         Don't check for "spare" fields.
55442         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55443         or for struct stat.st_birthtime, as these tests aren't used.
55444         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55445
55446 2007-03-27  Bruno Haible  <bruno@clisp.org>
55447
55448         * lib/stat-time.h: Include <sys/stat.h>.
55449
55450 2007-03-27  James Youngman  <jay@gnu.org>
55451
55452         * lib/stat-time.h (get_stat_birthtime): New function for
55453           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55454         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55455           and its variants.
55456         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55457         * modules/stat-time-test: New file.
55458         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55459
55460 2007-03-26  Bruno Haible  <bruno@clisp.org>
55461
55462         Better support of signalling NaNs.
55463         * lib/atanl.c: Include isnanl.h.
55464         (atanl): Perform test for NaN at the beginning of the function and
55465         through a call to isnanl.
55466         * lib/cosl.c: Include isnanl.h.
55467         (cosl): Perform test for NaN at the beginning of the function and
55468         through a call to isnanl.
55469         * lib/ldexpl.c: Include isnanl.h.
55470         (ldexpl): Perform test for NaN through a call to isnanl.
55471         * lib/logl.c: Include isnanl.h.
55472         (logl): Perform test for NaN at the beginning of the function and
55473         through a call to isnanl.
55474         * lib/sinl.c: Include isnanl.h.
55475         (sinl): Perform test for NaN at the beginning of the function and
55476         through a call to isnanl.
55477         * lib/sqrtl.c: Include isnanl.h.
55478         (sqrtl): Perform test for NaN at the beginning of the function and
55479         through a call to isnanl.
55480         * lib/tanl.c: Include isnanl.h.
55481         (tanl): Perform test for NaN at the beginning of the function and
55482         through a call to isnanl.
55483         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55484         * modules/mathl (Depends-on): Add isnanl.
55485
55486 2007-03-26  Eric Blake  <ebb9@byu.net>
55487
55488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55489         regression in logic sense of previous patch.
55490
55491 2007-03-26  Bruno Haible  <bruno@clisp.org>
55492
55493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55494         unportable shell command "if ! ...".
55495         Reported by Ralf Wildenhues.
55496
55497 2007-03-25  Bruno Haible  <bruno@clisp.org>
55498
55499         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55500         <sysexits.h> file, and only add EX_CONFIG.
55501         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55502         absolute file name and whether it is sufficient. Substitute also
55503         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55504         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55505         ABSOLUTE_SYSEXITS_H into sysexits.h.
55506
55507 2007-03-25  Bruno Haible  <bruno@clisp.org>
55508
55509         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55510         hints is NULL.
55511
55512 2007-03-25  Bruno Haible  <bruno@clisp.org>
55513
55514         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55515         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55516
55517 2007-03-25  Bruno Haible  <bruno@clisp.org>
55518
55519         * lib/vasnprintf.c: Include langinfo.h.
55520         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55521         multithread-safe.
55522         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55523         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55524         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55525         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55526         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55527         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55528         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55529         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
55530         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55531         Reported by Simon Josefsson.
55532
55533 2007-03-25  Bruno Haible  <bruno@clisp.org>
55534
55535         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
55536         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
55537         * modules/vasnprintf (Depends-on): Add stdint.
55538
55539 2007-03-25  Bruno Haible  <bruno@clisp.org>
55540
55541         * modules/fpieee: New file.
55542         * m4/fpieee.m4: New file.
55543         * modules/isnan-nolibm (Depends-on): Add fpieee.
55544         * modules/isnanl-nolibm (Depends-on): Add fpieee.
55545         * modules/isnanl (Depends-on): Add fpieee.
55546
55547 2007-03-25  Bruno Haible  <bruno@clisp.org>
55548
55549         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
55550
55551 2007-03-25  Bruno Haible  <bruno@clisp.org>
55552
55553         Avoid test failures on IRIX 6.5.
55554         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
55555         (main): Use it.
55556         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
55557         macros.
55558         (main): Use them.
55559
55560 2007-03-25  Bruno Haible  <bruno@clisp.org>
55561
55562         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
55563         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
55564         exists but doesn't work.
55565         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
55566         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
55567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
55568         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
55569         math.h.
55570
55571 2007-03-25  Bruno Haible  <bruno@clisp.org>
55572
55573         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
55574         returns inf. Needed on IRIX 6.5.
55575
55576 2007-03-25  Bruno Haible  <bruno@clisp.org>
55577
55578         * tests/test-frexpl.c: Include isnanl-nolibm.h.
55579         (main): Use isnanl instead of x != x idiom.
55580         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
55581
55582         * tests/test-frexp.c: Include isnan.h.
55583         (main): Use isnan instead of x != x idiom.
55584         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
55585
55586 2007-03-25  Bruno Haible  <bruno@clisp.org>
55587
55588         * tests/test-frexp.c (NaN): New function/macro.
55589         (main): Use it instead of 0.0 / 0.0.
55590         * tests/test-isnan.c (NaN): New function/macro.
55591         (main): Use it instead of 0.0 / 0.0.
55592         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
55593         (test_function): Use it instead of 0.0 / 0.0.
55594         * tests/test-vasprintf-posix.c (NaN): New function/macro.
55595         (test_function): Use it instead of 0.0 / 0.0.
55596         * tests/test-snprintf-posix.h (NaN): New function/macro.
55597         (test_function): Use it instead of 0.0 / 0.0.
55598         * tests/test-sprintf-posix.h (NaN): New function/macro.
55599         (test_function): Use it instead of 0.0 / 0.0.
55600         * tests/test-fprintf-posix.h (NaN): New function/macro.
55601         (test_function): Use it instead of 0.0 / 0.0.
55602         * tests/test-printf-posix.h (NaN): New function/macro.
55603         (test_function): Use it instead of 0.0 / 0.0.
55604
55605         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
55606
55607 2007-03-25  Bruno Haible  <bruno@clisp.org>
55608
55609         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
55610
55611 2007-03-25  Bruno Haible  <bruno@clisp.org>
55612
55613         * lib/regexec.c (merge_state_with_log): Make static.
55614
55615 2007-03-25  Bruno Haible  <bruno@clisp.org>
55616
55617         * lib/trigl.c (kernel_rem_pio2): Make static.
55618
55619 2007-03-25  Bruno Haible  <bruno@clisp.org>
55620
55621         * lib/sincosl.c (sincosl_table): Make static.
55622
55623 2007-03-25  Bruno Haible  <bruno@clisp.org>
55624
55625         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55626         if the compiler does not support C99.
55627
55628 2007-03-25  Bruno Haible  <bruno@clisp.org>
55629
55630         * modules/time (Makefile.am): Ensure all rule action lines start with a
55631         tab.
55632
55633 2007-03-24  Bruno Haible  <bruno@clisp.org>
55634
55635         * modules/tsearch-tests: New file.
55636         * tests/test-tsearch.sh: New file.
55637         * tests/test-tsearch.c: New file, mostly copied from glibc.
55638
55639         * modules/search-tests: New file.
55640         * tests/test-search.c: New file.
55641
55642         * modules/search: New file.
55643         * lib/search_.h: New file, incorporating lib/tsearch.h.
55644         * m4/search_h.m4: New file.
55645         * lib/tsearch.h: Remove file.
55646         * lib/tsearch.c: Include search.h instead of tsearch.h.
55647         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55648         HAVE_TSEARCH.
55649         * modules/tsearch (Files): Remove lib/tsearch.h.
55650         (Depends-on): Add search.
55651         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55652         (Include): Change tsearch.h into search.h.
55653
55654 2007-03-24  Bruno Haible  <bruno@clisp.org>
55655
55656         * modules/fpucw: New file.
55657         * lib/fpucw.h: New file.
55658         * lib/frexp.c: Include fpucw.h.
55659         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55660         (FUNC): Use them.
55661         * lib/printf-frexp.c: Include fpucw.h.
55662         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55663         (FUNC): Use them.
55664         * lib/vasnprintf.c: Include fpucw.h.
55665         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55666         'long double' calculations.
55667         * tests/test-frexpl.c: Include fpucw.h.
55668         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55669         * tests/test-printf-frexpl.c: Include fpucw.h.
55670         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55671         * modules/frexpl (Depends-on): Add fpucw.
55672         * modules/printf-frexpl (Depends-on): Likewise.
55673         * modules/fprintf-posix (Depends-on): Likewise.
55674         * modules/snprintf-posix (Depends-on): Likewise.
55675         * modules/sprintf-posix (Depends-on): Likewise.
55676         * modules/vasnprintf-posix (Depends-on): Likewise.
55677         * modules/vasprintf-posix (Depends-on): Likewise.
55678         * modules/vfprintf-posix (Depends-on): Likewise.
55679         * modules/vsnprintf-posix (Depends-on): Likewise.
55680         * modules/vsprintf-posix (Depends-on): Likewise.
55681         * modules/frexpl-tests (Depends-on): Likewise.
55682         * modules/printf-frexpl-tests (Depends-on): Likewise.
55683
55684 2007-03-24  Bruno Haible  <bruno@clisp.org>
55685
55686         * lib/float+.h: New file.
55687         * lib/isnan.c: Include float+.h.
55688         (SIZE): New macro.
55689         (FUNC): Compare only SIZE bytes of the value.
55690         * lib/vasnprintf.c: Include float+.h.
55691         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
55692         SIZEOF_LDBL or SIZEOF_DBL bytes.
55693         * modules/isnan-nolibm (Files): Add lib/float+.h.
55694         * modules/isnanl-nolibm (Files): Add lib/float+.h.
55695         * modules/isnanl (Files): Add lib/float+.h.
55696         * modules/vasnprintf (Files): Add lib/float+.h.
55697
55698 2007-03-24  Bruno Haible  <bruno@clisp.org>
55699
55700         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
55701         include isnanl-nolibm.h.
55702
55703 2007-03-24  Bruno Haible  <bruno@clisp.org>
55704
55705         * tests/test-read-file.c (main): Don't produce spurious output for
55706         expected situations. Make the test fail if it encountered unexpected
55707         results.
55708
55709 2007-03-24  Bruno Haible  <bruno@clisp.org>
55710
55711         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
55712         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
55713
55714 2007-03-24  Bruno Haible  <bruno@clisp.org>
55715
55716         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
55717
55718 2007-03-24  Bruno Haible  <bruno@clisp.org>
55719
55720         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
55721         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
55722
55723         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
55724         * modules/utf8-ucs4: Turn into a symbolic link to module
55725         unistr/u8-mbtouc.
55726
55727         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
55728         utf8-ucs4-unsafe.
55729         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
55730         unistr/u8-mbtouc-unsafe.
55731
55732         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
55733         * modules/utf16-ucs4: Turn into a symbolic link to module
55734         unistr/u16-mbtouc.
55735
55736         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
55737         utf16-ucs4-unsafe.
55738         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
55739         unistr/u16-mbtouc-unsafe.
55740
55741         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
55742         * modules/ucs4-utf8: Turn into a symbolic link to module
55743         unistr/u8-ubtomb.
55744
55745         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
55746         * modules/ucs4-utf16: Turn into a symbolic link to module
55747         unistr/u16-ubtomb.
55748
55749 2007-03-24  Bruno Haible  <bruno@clisp.org>
55750
55751         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
55752         Enable the function only if HAVE_INLINE.
55753         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
55754         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55755         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
55756         Enable the function only if HAVE_INLINE.
55757         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
55758         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55759         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
55760         Enable the function only if HAVE_INLINE.
55761         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
55762         Enable the function only if HAVE_INLINE.
55763         * modules/utf8-ucs4: Update.
55764         * modules/utf8-ucs4-unsafe: Update.
55765         * modules/utf16-ucs4: Update.
55766         * modules/utf16-ucs4-unsafe: Update.
55767         * modules/ucs4-utf8: Update.
55768         * modules/ucs4-utf16: Update.
55769
55770 2007-03-24  Bruno Haible  <bruno@clisp.org>
55771
55772         * lib/utf8-ucs4.h: Remove file.
55773         * lib/utf8-ucs4-unsafe.h: Remove file.
55774         * lib/utf16-ucs4.h: Remove file.
55775         * lib/utf16-ucs4-unsafe.h: Remove file.
55776         * lib/ucs4-utf8.h: Remove file.
55777         * lib/ucs4-utf16.h: Remove file.
55778         * lib/unistr.h: Include their previous contents.
55779         * m4/utf-ucs4.m4: Remove file.
55780         * m4/ucs4-utf.m4: Remove file.
55781         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
55782         (Depends-on): Add unistr/base.
55783         (configure.ac): Remove gl_UTF_UCS4.
55784         (Makefile.am): Update.
55785         (Include): Change to unistr.h.
55786         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
55787         (Depends-on): Add unistr/base.
55788         (configure.ac): Remove gl_UTF_UCS4.
55789         (Makefile.am): Update.
55790         (Include): Change to unistr.h.
55791         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
55792         (Depends-on): Add unistr/base.
55793         (configure.ac): Remove gl_UTF_UCS4.
55794         (Makefile.am): Update.
55795         (Include): Change to unistr.h.
55796         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
55797         (Depends-on): Add unistr/base.
55798         (configure.ac): Remove gl_UTF_UCS4.
55799         (Makefile.am): Update.
55800         (Include): Change to unistr.h.
55801         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
55802         (Depends-on): Add unistr/base.
55803         (configure.ac): Remove gl_UCS4_UTF.
55804         (Makefile.am): Update.
55805         (Include): Change to unistr.h.
55806         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
55807         (Depends-on): Add unistr/base.
55808         (configure.ac): Remove gl_UCS4_UTF.
55809         (Makefile.am): Update.
55810         (Include): Change to unistr.h.
55811         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
55812         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
55813         utf8-ucs4-unsafe.h.
55814         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
55815         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
55816         utf16-ucs4-unsafe.h.
55817         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
55818         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
55819         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
55820         * lib/unistr/u8-strchr.c: Likewise.
55821         * lib/unistr/u8-strrchr.c: Likewise.
55822         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
55823         * lib/unistr/u16-strchr.c: Likewise.
55824         * lib/unistr/u16-strrchr.c: Likewise.
55825         * lib/striconveh.c: Update.
55826         * lib/linebreak.c: Update.
55827
55828 2007-03-24  Bruno Haible  <bruno@clisp.org>
55829
55830         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
55831         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
55832
55833 2007-03-22  Bruno Haible  <bruno@clisp.org>
55834
55835         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
55836
55837 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
55838
55839         * MODULES.html.sh (File system functions): New module write-any-file.
55840         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
55841         * m4/write-any-file.m4: New files.
55842
55843 2007-03-23  Eric Blake  <ebb9@byu.net>
55844
55845         * gnulib-tool: Rearrange space-tab sequences, since some editors
55846         like to eat them.
55847
55848 2007-03-23  Eric Blake  <ebb9@byu.net>
55849
55850         * lib/version-etc.c (version_etc_va): Update license wording to
55851         be more concise.  Recommended by Richard Stallman.
55852
55853 2007-03-22  Bruno Haible  <bruno@clisp.org>
55854
55855         * lib/poll.c (MSG_PEEK): New fallback definition.
55856
55857 2007-03-22  Bruno Haible  <bruno@clisp.org>
55858
55859         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
55860         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
55861         (main): Update.
55862         Fixes a compilation error on BeOS.
55863
55864 2007-03-22  Bruno Haible  <bruno@clisp.org>
55865
55866         * modules/frexpl-tests: New file.
55867         * tests/test-frexpl.c: New file.
55868
55869         * modules/frexpl: New file.
55870         * m4/frexpl.m4: New file.
55871         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
55872         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
55873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
55874         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
55875         (Depends-on): Add frexpl. Remove isnanl-nolibm.
55876         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
55877
55878 2007-03-22  Bruno Haible  <bruno@clisp.org>
55879
55880         * lib/frexpl.c: Share code with lib/frexp.c.
55881         * modules/mathl (Files): Add lib/frexp.c.
55882         (Depends-on): Add isnanl-nolibm.
55883
55884 2007-03-22  Bruno Haible  <bruno@clisp.org>
55885
55886         * modules/printf-frexp (Files): Add m4/frexp.m4.
55887         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
55888         only if the found frexp function actually works.
55889
55890 2007-03-22  Bruno Haible  <bruno@clisp.org>
55891
55892         * lib/frexp.c: Remove older implementation that uses divisions.
55893
55894 2007-03-21  Bruno Haible  <bruno@clisp.org>
55895
55896         * modules/frexp-tests: New file.
55897         * tests/test-frexp.c: New file.
55898
55899         * modules/frexp: New file.
55900         * lib/frexp.c: New file.
55901         * m4/frexp.m4: New file.
55902         * lib/math_.h (frexp): New declaration.
55903         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
55904         REPLACE_FREXP.
55905         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
55906
55907 2007-03-21  Bruno Haible  <bruno@clisp.org>
55908
55909         * modules/isnanl-tests: New file.
55910         * tests/test-isnanl.c: New file.
55911
55912         * modules/isnanl: New file.
55913         * lib/isnanl.h: New file.
55914         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
55915         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
55916         gl_FUNC_ISNANL_WORKS.
55917         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
55918         New macros.
55919
55920 2007-03-21  Bruno Haible  <bruno@clisp.org>
55921
55922         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
55923         lib/isnanl.h.
55924         (Include): Update.
55925         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
55926         * lib/vasnprintf.c: Update.
55927         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
55928         tests/test-isnanl.h, remove tests/test-isnanl.c.
55929         (Makefile.am): Update.
55930         * tests/test-isnanl-nolibm.c: New file.
55931         * tests/test-isnanl.h: New file.
55932         * tests/test-isnanl.c: Remove file.
55933
55934 2007-03-21  Jim Meyering  <jim@meyering.net>
55935
55936         When trying to open ".", treat ESTALE like EACCES.
55937         * lib/savewd.c (savewd_save): Resort to forking not just upon
55938         failure with EACCES, but also when errno is ESTALE.
55939
55940 2007-03-20  Bruno Haible  <bruno@clisp.org>
55941
55942         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
55943         Needed on AIX 5.1. Reported by Matthew Woehlke.
55944
55945 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55946
55947         Suggestions by Bruno Haible:
55948         * lib/acl-internal.h: Include "gettext.h" rather than rolling
55949         our own.
55950         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
55951         * modules/acl (Depends-on): Add gettext.
55952
55953 2007-03-19  Bruno Haible  <bruno@clisp.org>
55954
55955         * modules/iconvme: Remove file.
55956         * lib/iconvme.h: Remove file.
55957         * lib/iconvme.c: Remove file.
55958         * m4/iconvme.m4: Remove file.
55959
55960 2007-03-19  Bruno Haible  <bruno@clisp.org>
55961
55962         * doc/relocatable-maint.texi: Break long shell script line.
55963         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55964
55965 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55966
55967         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
55968         handle file_has_acl.
55969         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
55970         * lib/acl.c: Move header inclusions and related macro defns into
55971         lib/acl-internal.h.
55972         (S_ISLNK): Remove defn, since that's now done for us.
55973         (file_has_acl): Move to lib/file-has-acl.c.
55974         Call acl_trivial if available.  This is the crucial part of the fix.
55975         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
55976         shared within the library.  Rewrite a bit, partly to make it compatible
55977         with the GNU coding style.
55978         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
55979         Remove unnecessary double-quotes.
55980         Don't test for acl_to_text; the build will catch that.
55981         Replace acl_entries if it doesn't exist and it is needed.
55982         Check for -lsec and acl_trivial (as used on Solaris 10).
55983         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
55984         lib/file-has-acl.c.
55985         (Depends-on): Add sys_stat, for S_ISLNK.
55986
55987 2007-03-19  Ben Pfaff  <blp@gnu.org>
55988
55989         * doc/gnulib.texi: Fix typos.
55990         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55991
55992 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55993
55994         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
55995         If size is zero here, buf must be zero.
55996
55997 2007-03-19  Simon Josefsson  <simon@josefsson.org>
55998
55999         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
56000         <bruno@clisp.org>.
56001
56002 2007-03-18  Bruno Haible  <bruno@clisp.org>
56003
56004         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
56005         Suggested by Eric Blake.
56006
56007 2007-03-18  Ben Pfaff  <blp@gnu.org>
56008
56009         * doc/relocatable.texi: Recommend using as prefix a directory
56010         that does not exist and will never be created.  Based on
56011         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
56012         and others.
56013
56014 2007-03-17  Bruno Haible  <bruno@clisp.org>
56015
56016         * lib/fchownat.c: Include lchown.h.
56017
56018 2007-03-17  Bruno Haible  <bruno@clisp.org>
56019
56020         Fix endless loop when the given allocated size was > INT_MAX.
56021         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
56022         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
56023         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
56024         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
56025         * lib/sprintf.c (sprintf): Likewise.
56026
56027 2007-03-17  Bruno Haible  <bruno@clisp.org>
56028
56029         * tests/test-argp-2.sh (func_compare): Output a context diff.
56030
56031 2007-03-17  Bruno Haible  <bruno@clisp.org>
56032
56033         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
56034         locale's decimal-point character.
56035
56036 2007-03-17  Bruno Haible  <bruno@clisp.org>
56037
56038         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
56039         before comparing it. Needed because on some platforms (e.g. x86) a
56040         'long double' occupies less bytes than sizeof (long double).
56041
56042 2007-03-17  Bruno Haible  <bruno@clisp.org>
56043
56044         * tests/test-crc.c (main): Make printf statements 64-bit clean.
56045         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
56046         * tests/test-getaddrinfo.c (simple): Likewise.
56047         * tests/test-read-file.c (main): Likewise.
56048
56049 2007-03-17  Bruno Haible  <bruno@clisp.org>
56050
56051         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
56052
56053 2007-03-17  Bruno Haible  <bruno@clisp.org>
56054
56055         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
56056         unused variable.
56057
56058 2007-03-17  Bruno Haible  <bruno@clisp.org>
56059
56060         * tests/test-c-strcasecmp.c: Include c-strcase.h.
56061         * tests/test-c-strncasecmp.c: Likewise.
56062
56063 2007-03-17  Bruno Haible  <bruno@clisp.org>
56064
56065         * modules/stdlib (Depends-on): Add unistd.
56066         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
56067         Needed for MacOS X 10.3.
56068
56069 2007-03-17  Bruno Haible  <bruno@clisp.org>
56070
56071         * lib/unistr/u-strdup.h: Include <stdlib.h>.
56072
56073 2007-03-17  Bruno Haible  <bruno@clisp.org>
56074
56075         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
56076
56077 2007-03-17  Bruno Haible  <bruno@clisp.org>
56078
56079         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
56080         to reflect files copied from gnulib (with or without modifications).
56081         Suggested by Jim Meyering.
56082
56083 2007-03-17  Eric Blake  <ebb9@byu.net>
56084
56085         * NEWS: Document stdlib change from 2007-02-18.
56086
56087 2007-03-17  Jim Meyering  <jim@meyering.net>
56088
56089         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
56090         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
56091         someone uses a name containing shell meta-characters.
56092         Reported by Alfred M. Szmidt.
56093
56094         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
56095
56096 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56097
56098         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
56099         and copy gettext configuration files only if configure.ac contains
56100         a use of AM_GNU_GETTEXT_VERSION.
56101
56102 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56103
56104         * build-aux/bootstrap (gnulib_name): New variable.
56105         (gnulib_tool_options): Use it.
56106
56107 2007-03-13  Simon Josefsson  <simon@josefsson.org>
56108
56109         * tests/test-des.c: Use new namespace.
56110
56111 2007-03-15  Bruno Haible  <bruno@clisp.org>
56112
56113         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
56114         Reported by James Youngman <jay@gnu.org>.
56115
56116 2007-03-15  Bruno Haible  <bruno@clisp.org>
56117
56118         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
56119         declared prototype. Needed with cc on OSF/1 5.1.
56120
56121 2007-03-15  Bruno Haible  <bruno@clisp.org>
56122
56123         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
56124         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
56125         (struct gl_list_implementation): Add dispose_fn argument to the
56126         'create_empty', 'create' methods.
56127         (struct gl_list_impl_base): Add field 'dispose_fn'.
56128         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
56129         argument.
56130         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
56131         dispose_fn argument.
56132         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
56133         dispose_fn on the dropped values.
56134         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
56135         dispose_fn argument.
56136         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
56137         dropped values.
56138         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
56139         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56140         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
56141         (gl_tree_remove_node): Call dispose_fn on the dropped value.
56142         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
56143         argument.
56144         (gl_tree_list_free): Call dispose_fn on the dropped values.
56145         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
56146         the dropped values.
56147         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56148         Add dispose_fn argument.
56149         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
56150         Call dispose_fn on the dropped values.
56151         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
56152         Add dispose_fn argument.
56153         (gl_sublist_create): Initialize the 'dispose_fn' field.
56154         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
56155         * tests/test-array_list.c (main): Update.
56156         * tests/test-carray_list.c (main): Update.
56157         * tests/test-avltree_list.c (main): Update.
56158         * tests/test-rbtree_list.c (main): Update.
56159         * tests/test-avltreehash_list.c (main): Update.
56160         * tests/test-rbtreehash_list.c (main): Update.
56161         * tests/test-linked_list.c (main): Update.
56162         * tests/test-linkedhash_list.c (main): Update.
56163         * tests/test-array_oset.c (main): Update.
56164
56165 2007-03-15  Bruno Haible  <bruno@clisp.org>
56166
56167         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
56168         (gl_oset_create_empty): Add dispose_fn argument.
56169         (struct gl_oset_implementation): Add dispose_fn argument to
56170         'create_empty' method.
56171         (struct gl_oset_impl_base): Add dispose_fn field.
56172         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
56173         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
56174         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
56175         values.
56176         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
56177         (gl_tree_oset_free): Call dispose_fn on the dropped values.
56178         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56179         dropped value.
56180         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
56181         dropped value.
56182         * tests/test-array_oset.c (main): Update.
56183         * tests/test-avltree_oset.c (main): Update.
56184         * tests/test-rbtree_oset.c (main): Update.
56185         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
56186
56187 2007-03-13  Bruno Haible  <bruno@clisp.org>
56188
56189         * tests/test-stdbool.c (i): Update after last patch.
56190
56191 2007-03-12  Bruno Haible  <bruno@clisp.org>
56192
56193         * lib/quotearg.c: Include <wctype.h> early, before the definition of
56194         the iswprint macro. Needed on Solaris 2.5.1.
56195
56196 2007-03-12  Bruno Haible  <bruno@clisp.org>
56197
56198         * tests/test-printf-frexp.c (main): Declare x as volatile.
56199
56200 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56201
56202         * doc/gnulib.texi (Build robot for gnulib): New section.
56203
56204 2007-03-12  Jim Meyering  <jim@meyering.net>
56205
56206         * build-aux/bootstrap: New file.
56207         * build-aux/bootstrap.conf: New file, from coreutils.
56208
56209 2007-03-11  Bruno Haible  <bruno@clisp.org>
56210
56211         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
56212
56213 2007-03-12  Simon Josefsson  <simon@josefsson.org>
56214
56215         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
56216         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
56217         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
56218
56219 2007-03-11  Bruno Haible  <bruno@clisp.org>
56220
56221         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
56222         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
56223
56224 2007-03-11  Bruno Haible  <bruno@clisp.org>
56225
56226         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
56227         formula. Needed for SunPRO C 5.0.
56228
56229 2007-03-11  Bruno Haible  <bruno@clisp.org>
56230
56231         * modules/long-options (Depends-on): Add getopt.
56232
56233 2007-03-11  Bruno Haible  <bruno@clisp.org>
56234
56235         * modules/modechange (Depends-on): Add stdbool.
56236
56237 2007-03-11  Bruno Haible  <bruno@clisp.org>
56238
56239         * modules/i-ring (Depends-on): Add stdbool.
56240
56241 2007-03-11  Bruno Haible  <bruno@clisp.org>
56242
56243         * modules/gc-des (Depends-on): Add stdbool.
56244
56245 2007-03-11  Bruno Haible  <bruno@clisp.org>
56246
56247         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
56248
56249 2007-03-11  Bruno Haible  <bruno@clisp.org>
56250
56251         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
56252
56253 2007-03-11  Bruno Haible  <bruno@clisp.org>
56254
56255         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
56256
56257 2007-03-11  Bruno Haible  <bruno@clisp.org>
56258
56259         * lib/vasnprintf.c (sprintf): Undefine.
56260
56261 2007-03-11  Bruno Haible  <bruno@clisp.org>
56262
56263         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
56264         initializers in SunPRO C and Compaq C compilers.
56265
56266 2007-03-11  Bruno Haible  <bruno@clisp.org>
56267
56268         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
56269         decrementing code ANSI C compliant.
56270
56271 2007-03-11  Bruno Haible  <bruno@clisp.org>
56272
56273         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
56274         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
56275
56276 2007-03-11  Bruno Haible  <bruno@clisp.org>
56277
56278         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
56279         <stdbool.h> substitute doesn't pass.
56280
56281 2007-03-11  Bruno Haible  <bruno@clisp.org>
56282
56283         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
56284
56285 2007-03-11  Bruno Haible  <bruno@clisp.org>
56286
56287         * gnulib-tool (func_create_megatestdir): Create also an autobuild
56288         script, for submission to autobuild.josefsson.org.
56289
56290 2007-03-10  Bruno Haible  <bruno@clisp.org>
56291
56292         * modules/canonicalize-lgpl-tests: New file.
56293         * tests/test-canonicalize-lgpl.sh: New file.
56294         * tests/test-canonicalize-lgpl.c: New file.
56295
56296         * modules/c-strcase-tests: New file.
56297         * tests/test-c-strcase.sh: New file.
56298         * tests/test-c-strcasecmp.c: New file.
56299         * tests/test-c-strncasecmp.c: New file.
56300
56301         * modules/atexit-tests: New file.
56302         * tests/test-atexit.sh: New file.
56303         * tests/test-atexit.c: New file.
56304
56305 2007-03-10  Bruno Haible  <bruno@clisp.org>
56306
56307         * tests/test-binary-io.sh: Use temporary filenames that are not so
56308         likely to clash with those of other tests (in a parallel make).
56309         * tests/test-binary-io.c: Likewise.
56310
56311 2007-03-10  Bruno Haible  <bruno@clisp.org>
56312
56313         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56314         fallback; use #error instead.
56315         Suggested by Simon Josefsson.
56316
56317 2007-03-10  Bruno Haible  <bruno@clisp.org>
56318
56319         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56320         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56321         first and the last.
56322
56323 2007-03-10  Bruno Haible  <bruno@clisp.org>
56324
56325         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56326
56327 2007-03-10  Bruno Haible  <bruno@clisp.org>
56328
56329         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56330         "make distcheck".
56331         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56332         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56333         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56334
56335 2007-03-10  Bruno Haible  <bruno@clisp.org>
56336
56337         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56338         variable.
56339         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56340         variable.
56341
56342 2007-03-09  Eric Blake  <ebb9@byu.net>
56343         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56344
56345         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56346         types are not being provided by gnulib.
56347         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56348         types are supported.
56349
56350 2007-03-10  Bruno Haible  <bruno@clisp.org>
56351
56352         * lib/stdio_.h (__attribute__): New macro.
56353         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56354         vsprintf): Specify __attribute__ __format__ for GCC.
56355         Suggested by Eric Blake.
56356
56357 2007-03-09  Bruno Haible  <bruno@clisp.org>
56358
56359         * modules/printf-posix-tests: New file.
56360         * tests/test-printf-posix.sh: New file.
56361         * tests/test-printf-posix.c: New file.
56362
56363         * modules/printf-posix: New file.
56364         * lib/printf.c: New file.
56365         * m4/printf-posix-rpl.m4: New file.
56366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56367         REPLACE_PRINTF.
56368         * lib/stdio_.h (printf): New declaration.
56369         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56370         ____strfmon____): New macros.
56371         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56372         REPLACE_PRINTF.
56373
56374 2007-03-09  Bruno Haible  <bruno@clisp.org>
56375
56376         * tests/test-vasnprintf-posix2.sh: New file.
56377         * tests/test-vasnprintf-posix2.c: New file.
56378         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56379         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56380         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56381
56382         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56383         a locale dependent decimal point, rather than always '.'.
56384
56385 2007-03-09  Eric Blake  <ebb9@byu.net>
56386
56387         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56388         spite of platforms like Tandem/NSK that define it to -1.
56389
56390 2007-03-08  Bruno Haible  <bruno@clisp.org>
56391
56392         * modules/vprintf-posix-tests: New file.
56393         * tests/test-vprintf-posix.sh: New file.
56394         * tests/test-vprintf-posix.c: New file.
56395         * tests/test-printf-posix.h: New file.
56396
56397         * modules/vprintf-posix: New file.
56398         * lib/vprintf.c: New file.
56399         * m4/vprintf-posix.m4: New file.
56400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56401         REPLACE_VPRINTF.
56402         * lib/stdio_.h (vprintf): New declaration.
56403         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56404         REPLACE_VPRINTF.
56405
56406 2007-03-08  Bruno Haible  <bruno@clisp.org>
56407
56408         * modules/fprintf-posix-tests: New file.
56409         * tests/test-fprintf-posix.sh: New file.
56410         * tests/test-fprintf-posix.c: New file.
56411
56412         * modules/fprintf-posix: New file.
56413         * lib/fprintf.c: New file.
56414         * m4/fprintf-posix.m4: New file.
56415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56416         REPLACE_FPRINTF.
56417         * lib/stdio_.h (fprintf): New declaration.
56418         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56419         REPLACE_FPRINTF.
56420
56421 2007-03-08  Bruno Haible  <bruno@clisp.org>
56422
56423         * modules/vfprintf-posix-tests: New file.
56424         * tests/test-vfprintf-posix.sh: New file.
56425         * tests/test-vfprintf-posix.c: New file.
56426         * tests/test-fprintf-posix.h: New file.
56427         * tests/test-fprintf-posix.out: New file.
56428
56429         * modules/vfprintf-posix: New file.
56430         * lib/vfprintf.c: New file.
56431         * m4/vfprintf-posix.m4: New file.
56432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56433         REPLACE_VFPRINTF.
56434         * lib/stdio_.h (vfprintf): New declaration.
56435         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56436         REPLACE_VFPRINTF.
56437
56438 2007-03-08  Bruno Haible  <bruno@clisp.org>
56439
56440         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56441
56442 2007-03-08  Bruno Haible  <bruno@clisp.org>
56443
56444         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56445         instead of 'expr' invocations.
56446         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56447         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56448         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56449         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56450         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56451         Suggested by Paul Eggert.
56452
56453 2007-03-08  Bruno Haible  <bruno@clisp.org>
56454
56455         * modules/fseterr-tests: New file.
56456         * tests/test-fseterr.c: New file.
56457
56458         * modules/fseterr: New file.
56459         * lib/fseterr.h: New file.
56460         * lib/fseterr.c: New file.
56461
56462 2007-03-08  Bruno Haible  <bruno@clisp.org>
56463
56464         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56465         * lib/getopt_.h: Likewise.
56466         * lib/mbswidth.h: Likewise.
56467         * lib/setenv.h: Likewise.
56468         * lib/vasnprintf.h: Likewise.
56469         * lib/vasprintf.h: Likewise.
56470         * lib/verror.h: Likewise.
56471         * lib/xsetenv.h: Likewise.
56472         * lib/xvasprintf.h: Likewise.
56473
56474 2007-03-08  Jim Meyering  <jim@meyering.net>
56475
56476         * users.txt: Add parted.
56477
56478         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56479
56480 2007-03-07  Bruno Haible  <bruno@clisp.org>
56481
56482         * m4/printf.m4: Make the shell script snippets copy&pastable.
56483
56484 2007-03-02  Bruno Haible  <bruno@clisp.org>
56485
56486         * lib/netinet_in_.h: New file.
56487         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56488         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56489         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56490         (Depends-on): Add absolute-header.
56491         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56492         into netinet/in.h.
56493
56494 2007-03-03  Bruno Haible  <bruno@clisp.org>
56495
56496         * lib/sys_select_.h: New file.
56497         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56498         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56499         * modules/sys_select (Files): Add lib/sys_select_.h.
56500         (Depends-on): Add absolute-header.
56501         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56502         into sys/select.h.
56503
56504 2007-03-02  Bruno Haible  <bruno@clisp.org>
56505
56506         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56507         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56508         values.
56509         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56510         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56511         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56512         * modules/sys_socket (Depends-on): Add absolute-header.
56513         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56514         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56515         (Include): Remove requirement of inclusion of <sys/types.h>.
56516
56517 2007-03-02  Bruno Haible  <bruno@clisp.org>
56518
56519         * lib/byteswap_.h (bswap_32): Fix formula.
56520
56521 2007-03-06  Bruno Haible  <bruno@clisp.org>
56522
56523         * modules/sprintf-posix-tests: New file.
56524         * tests/test-sprintf-posix.c: New file.
56525
56526         * modules/sprintf-posix: New file.
56527         * lib/sprintf.c: New file.
56528         * m4/sprintf-posix.m4: New file.
56529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
56530         REPLACE_SPRINTF.
56531         * lib/stdio_.h (sprintf): New declaration.
56532         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
56533         REPLACE_SPRINTF.
56534
56535 2007-03-06  Bruno Haible  <bruno@clisp.org>
56536
56537         * modules/vsprintf-posix-tests: New file.
56538         * tests/test-vsprintf-posix.c: New file.
56539         * tests/test-sprintf-posix.h: New file.
56540
56541         * modules/vsprintf-posix: New file.
56542         * lib/vsprintf.c: New file.
56543         * m4/vsprintf-posix.m4: New file.
56544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
56545         REPLACE_VSPRINTF.
56546         * lib/stdio_.h (vsprintf): New declaration.
56547         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
56548         REPLACE_VSPRINTF.
56549
56550 2007-03-06  Bruno Haible  <bruno@clisp.org>
56551
56552         * modules/vsnprintf (Depend-on): Remove minmax.
56553
56554 2007-03-06  Bruno Haible  <bruno@clisp.org>
56555
56556         * modules/snprintf-posix-tests: New file.
56557         * tests/test-snprintf-posix.c: New file.
56558
56559         * modules/snprintf-posix: New file.
56560         * m4/snprintf-posix.m4: New file.
56561         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
56562         gl_FUNC_SNPRINTF.
56563         (gl_FUNC_SNPRINTF): Invoke it.
56564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
56565         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
56566         is set.
56567         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
56568
56569 2007-03-06  Bruno Haible  <bruno@clisp.org>
56570
56571         * modules/vsnprintf-posix-tests: New file.
56572         * tests/test-vsnprintf-posix.c: New file.
56573         * tests/test-snprintf-posix.h: New file.
56574
56575         * modules/vsnprintf-posix: New file.
56576         * m4/vsnprintf-posix.m4: New file.
56577         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
56578         gl_FUNC_VSNPRINTF.
56579         (gl_FUNC_VSNPRINTF): Invoke it.
56580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
56581         * lib/stdio_.h (vsnprintf): Define as a replacement if
56582         REPLACE_VSNPRINTF is set.
56583         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
56584
56585 2007-03-06  Bruno Haible  <bruno@clisp.org>
56586
56587         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
56588         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
56589
56590 2007-03-06  Bruno Haible  <bruno@clisp.org>
56591
56592         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
56593         (asinl): Declare also if HAVE_DECL_ASINL is set.
56594         (atanl): Declare also if HAVE_DECL_ATANL is set.
56595         (ceill): Declare also if HAVE_DECL_CEILL is set.
56596         (cosl): Declare also if HAVE_DECL_COSL is set.
56597         (expl): Declare also if HAVE_DECL_EXPL is set.
56598         (floorl): Declare also if HAVE_DECL_FLOORL is set.
56599         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
56600         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
56601         (logl): Declare also if HAVE_DECL_LOGL is set.
56602         (sinl): Declare also if HAVE_DECL_SINL is set.
56603         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
56604         (tanl): Declare also if HAVE_DECL_TANL is set.
56605         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
56606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
56607         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
56608         declaration of frexpl, ldexpl.
56609         * modules/printf-frexpl (Depends-on): Add math.
56610         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
56611
56612 2007-03-05  Bruno Haible  <bruno@clisp.org>
56613
56614         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
56615         frexpl and ldexpl are declared.
56616         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
56617
56618 2007-03-05  Bruno Haible  <bruno@clisp.org>
56619
56620         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56621         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56622
56623 2007-03-05  Bruno Haible  <bruno@clisp.org>
56624
56625         * lib/stdio_.h: Include <stddef.h>.
56626
56627 2007-03-05  Bruno Haible  <bruno@clisp.org>
56628
56629         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56630
56631 2007-03-05  Bruno Haible  <bruno@clisp.org>
56632
56633         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56634         NetBSD 4, from Ralf Wildenhues.
56635
56636 2007-03-04  Bruno Haible  <bruno@clisp.org>
56637
56638         * lib/vasprintf.h: Update #if logic for the case when the functions
56639         exist but are overridden.
56640
56641 2007-03-04  Bruno Haible  <bruno@clisp.org>
56642
56643         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56644         implementations: glibc-2.4 and MacOS X 10.3.
56645         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56646         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56647         * tests/test-vasprintf-posix.c (test_function): Likewise.
56648
56649 2007-03-04  Bruno Haible  <bruno@clisp.org>
56650
56651         * modules/vasprintf-posix-tests: New file.
56652         * tests/test-vasprintf-posix.c: New file.
56653
56654         * modules/vasprintf-posix: New file.
56655         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56656         defined.
56657         * m4/vasprintf-posix.m4: New file.
56658         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56659         gl_FUNC_VASPRINTF.
56660         (gl_FUNC_VASPRINTF): Invoke it.
56661         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56662         here.
56663         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56664
56665 2007-03-04  Bruno Haible  <bruno@clisp.org>
56666
56667         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56668         REPLACE_GETTIMEOFDAY.
56669         * modules/sys_time (Makefile.am): Likewise.
56670         * m4/sys_time_h.m4: Likewise.
56671         * m4/gettimeofday.m4: Likewise.
56672
56673 2007-03-04  Bruno Haible  <bruno@clisp.org>
56674
56675         * modules/vasnprintf-posix-tests: New file.
56676         * tests/test-vasnprintf-posix.c: New file.
56677
56678         * modules/vasnprintf-posix: New file.
56679         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56680         printf-frexpl.h.
56681         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56682         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56683         REPLACE_VASNPRINTF is defined.
56684         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56685         gl_FUNC_VASNPRINTF.
56686         (gl_FUNC_VASNPRINTF): Invoke it.
56687         * m4/vasnprintf-posix.m4: New file.
56688         * m4/printf.m4: New file.
56689
56690 2007-03-04  Bruno Haible  <bruno@clisp.org>
56691
56692         Compile progreloc.c only if --enable-relocatable is specified.
56693         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
56694         if --enable-relocatable was specified.
56695         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
56696         lib_SOURCES.
56697
56698 2007-03-04  Jim Meyering  <jim@meyering.net>
56699
56700         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
56701         Use it consistently, rather than enumerating errno constants.
56702
56703 2007-03-04  Bruno Haible  <bruno@clisp.org>
56704
56705         * modules/xvasprintf-tests: New file.
56706         * tests/test-xvasprintf.c: New file.
56707
56708         * modules/vasprintf-tests: New file.
56709         * tests/test-vasprintf.c: New file.
56710
56711         * modules/vasnprintf-tests: New file.
56712         * tests/test-vasnprintf.c: New file.
56713
56714         * modules/vsnprintf-tests: New file.
56715         * tests/test-vsnprintf.c: New file.
56716
56717         * modules/snprintf-tests: New file.
56718         * tests/test-snprintf.c: New file.
56719
56720 2007-03-04  Bruno Haible  <bruno@clisp.org>
56721
56722         Compile relocatable.c only if --enable-relocatable is specified.
56723         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
56724         gl_RELOCATABLE_LIBRARY.
56725         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
56726         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
56727         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
56728         gl_RELOCATABLE_LIBRARY.
56729         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
56730         (Makefile.am): Remove lib_SOURCES.
56731         * modules/relocatable-lib-lgpl (configure.ac): Invoke
56732         gl_RELOCATABLE_LIBRARY.
56733         (Makefile.am): Remove lib_SOURCES.
56734         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
56735         always.
56736         * modules/relocatable-prog-wrapper (configure.ac): Invoke
56737         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
56738
56739 2007-03-04  Bruno Haible  <bruno@clisp.org>
56740
56741         * modules/argmatch-tests: New file.
56742         * tests/test-argmatch.c: New file.
56743
56744         * tests/test-allocsa.c (main): Halve the number of loop runs.
56745
56746         * modules/alloca-opt-tests: New file.
56747         * tests/test-alloca-opt.c: New file.
56748
56749 2007-03-04  Jim Meyering  <jim@meyering.net>
56750
56751         Work around difference between Linux ACLs and Solaris 10 ZFS.
56752         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
56753         for EINVAL.
56754
56755 2007-03-03  Bruno Haible  <bruno@clisp.org>
56756
56757         * modules/relocatable-prog (Depends-on): Add back progreloc's
56758         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
56759
56760 2007-03-03  Bruno Haible  <bruno@clisp.org>
56761
56762         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
56763         * modules/relocatable-lib: New file.
56764
56765 2007-03-03  Bruno Haible  <bruno@clisp.org>
56766
56767         * modules/relocatable-prog: Renamed from modules/relocatable.
56768         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
56769
56770 2007-03-03  Bruno Haible  <bruno@clisp.org>
56771
56772         * modules/relocatable-script (Files): Add doc/relocatable.texi,
56773         m4/relocatable-lib.m4.
56774         (Depends-on): Remove 'relocatable'.
56775         (configure.ac): Add gl_RELOCATABLE_NOP.
56776
56777 2007-03-03  Bruno Haible  <bruno@clisp.org>
56778
56779         * modules/relocatable-prog-wrapper: New file.
56780         * modules/relocatable (Depends-on): Add it. Remove all other
56781         dependencies except progname.
56782         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
56783
56784         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
56785         (gl_FUNC_STRERROR): Nop.
56786         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
56787
56788         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
56789         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
56790
56791         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
56792         (gl_FUNC_READLINK): Update.
56793
56794         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
56795
56796 2007-03-03  Bruno Haible  <bruno@clisp.org>
56797
56798         * lib/xreadlink.c: Include <unistd.h> unconditionally.
56799         * modules/xreadlink (Depends-on): Add unistd.
56800         * modules/xreadlink-with-size (Depends-on): Likewise.
56801
56802 2007-03-03  Bruno Haible  <bruno@clisp.org>
56803
56804         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
56805         extracted from gt_FUNC_SETENV.
56806         (gt_FUNC_SETENV): Remove macro.
56807         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
56808         remove gt_FUNC_SETENV.
56809
56810 2007-03-03  Bruno Haible  <bruno@clisp.org>
56811
56812         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
56813         ENABLE_RELOCATABLE here.
56814         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
56815
56816 2007-03-03  Bruno Haible  <bruno@clisp.org>
56817
56818         * modules/rbtreehash-list-tests (Depends-on): Add progname.
56819         * tests/test-rbtreehash_list.c: Include progname.h.
56820         (main): Call set_program_name.
56821
56822         * modules/rbtree-oset-tests (Depends-on): Add progname.
56823         * tests/test-rbtree_oset.c: Include progname.h.
56824         (main): Call set_program_name.
56825
56826         * modules/rbtree-list-tests (Depends-on): Add progname.
56827         * tests/test-rbtree_list.c: Include progname.h.
56828         (main): Call set_program_name.
56829
56830         * modules/linked-list-tests (Depends-on): Add progname.
56831         * tests/test-linked_list.c: Include progname.h.
56832         (main): Call set_program_name.
56833
56834 2007-03-03  Bruno Haible  <bruno@clisp.org>
56835
56836         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
56837         All uses of __restrict changed to _Restrict_.
56838         * lib/glob_.h (__restrict): Remove macro.
56839
56840 2007-03-02  Bruno Haible  <bruno@clisp.org>
56841
56842         * modules/gettext (configure.ac): Require gettext infrastructure
56843         from version 0.16.1.
56844
56845 2007-03-02  Bruno Haible  <bruno@clisp.org>
56846
56847         * modules/linkedhash-list-tests (Depends-on): Add progname.
56848         * tests/test-linkedhash_list.c: Include progname.h.
56849         (main): Call set_program_name.
56850
56851         * modules/carray-list-tests (Depends-on): Add progname.
56852         * tests/test-carray_list.c: Include progname.h.
56853         (main): Call set_program_name.
56854
56855         * modules/avltreehash-list-tests (Depends-on): Add progname.
56856         * tests/test-avltreehash_list.c: Include progname.h.
56857         (main): Call set_program_name.
56858
56859         * modules/avltree-oset-tests (Depends-on): Add progname.
56860         * tests/test-avltree_oset.c: Include progname.h.
56861         (main): Call set_program_name.
56862
56863         * modules/avltree-list-tests (Depends-on): Add progname.
56864         * tests/test-avltree_list.c: Include progname.h.
56865         (main): Call set_program_name.
56866
56867         * modules/array-oset-tests (Depends-on): Add progname.
56868         * tests/test-array_oset.c: Include progname.h.
56869         (main): Call set_program_name.
56870
56871         * modules/array-list-tests (Depends-on): Add progname.
56872         * tests/test-array_list.c: Include progname.h.
56873         (main): Call set_program_name.
56874
56875         * modules/argp-tests (Depends-on): Add progname.
56876         * tests/test-argp.c: Include argp.h first. Include progname.h.
56877         (main): Call set_program_name.
56878
56879 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
56880
56881         * doc/gnulib-tool.texi (Initial import): Reword description of
56882         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
56883         limited effect even if defined after the first system include.
56884
56885 2007-03-01  Bruno Haible  <bruno@clisp.org>
56886
56887         * build-aux/config.libpath: Update to libtool-1.5.22.
56888         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56889
56890 2007-03-01  Bruno Haible  <bruno@clisp.org>
56891
56892         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
56893         foo_CFLAGS.
56894         Reported by Ralf Wildenhues.
56895
56896 2007-03-01  Bruno Haible  <bruno@clisp.org>
56897
56898         * build-aux/install-reloc: Remove object files left over by some
56899         compilers.
56900         Reported by Ralf Wildenhues.
56901
56902 2007-03-01  Bruno Haible  <bruno@clisp.org>
56903
56904         * build-aux/install-reloc: Break long lines.
56905
56906 2007-03-01  Bruno Haible  <bruno@clisp.org>
56907
56908         * doc/relocatable.texi: Document that it may not work on OpenBSD.
56909         Reported by Ralf Wildenhues.
56910
56911 2007-03-01  Bruno Haible  <bruno@clisp.org>
56912
56913         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
56914         include ordering constraints.
56915
56916 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56917
56918         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
56919         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
56920         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
56921         as another example.
56922         * lib/time_.h: Fix misspelling.
56923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56924         Require gl_HEADER_TIME_H_DEFAULTS.
56925         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
56926         * m4/time_r.m4 (gl_TIME_R): Likewise.
56927         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
56928
56929 2007-03-01  Bruno Haible  <bruno@clisp.org>
56930
56931         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
56932         * m4/utimens.m4 (gl_UTIMENS): Likewise.
56933
56934 2007-03-01  Jim Meyering  <jim@meyering.net>
56935
56936         * modules/xreadlink (Maintainer): Add my name.
56937         * modules/xreadlink-with-size (Depends-on): Alphabetize.
56938
56939 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
56940             Bruno Haible  <bruno@clisp.org>
56941
56942         * build-aux/install-reloc: Compile also c-ctype.c.
56943         * build-aux/relocatable.sh.in: New file.
56944         * doc/relocatable.texi: New file.
56945         * doc/relocatable-maint.texi: New file.
56946         * doc/gnulib.texi: Include relocatable-maint.texi.
56947         * lib/progreloc.c: Include unistd.h unconditionally.
56948         * lib/relocwrapper.c: Include unistd.h unconditionally.
56949         Include c-ctype.h.
56950         (add_dotbin): Use c_tolower.
56951         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
56952         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
56953         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
56954         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
56955         to m4/relocatable-lib.m4.
56956         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
56957         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
56958         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
56959         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
56960         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
56961         * modules/relocatable: New file.
56962         * modules/relocatable-lib: New file.
56963         * modules/relocatable-script: New file.
56964
56965 2007-02-28  Bruno Haible  <bruno@clisp.org>
56966
56967         Import --enable-relocatable infrastructure.
56968         * build-aux/config.libpath: New file, from GNU gettext.
56969         * build-aux/install-reloc: New file, from GNU gettext.
56970         * build-aux/reloc-ldflags: New file, from GNU gettext.
56971         * lib/relocatable.h: New file, from GNU gettext.
56972         * lib/relocatable.c: New file, from GNU gettext.
56973         * lib/relocwrapper.c: New file, from GNU gettext.
56974         * m4/relocatable.m4: New file, from GNU gettext.
56975
56976 2007-02-28  Bruno Haible  <bruno@clisp.org>
56977
56978         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
56979
56980         * modules/xreadlink: New file, from GNU gettext with modifications.
56981         * lib/xreadlink.c: New file, from GNU gettext.
56982         * lib/xreadlink.h: Add comments.
56983         (xreadlink): New declaration.
56984
56985         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
56986         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
56987         lib/xreadlink-with-size.c.
56988         (configure.ac): Remove gl_XREADLINK invocation.
56989         (Makefile.am): Augment lib_SOURCES.
56990         * m4/xreadlink.m4: Remove file.
56991         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
56992         (xreadlink_with_size): Renamed from xreadink.
56993         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
56994         * modules/canonicalize (Depends-on): Replace xreadlink with
56995         xreadlink-with-size.
56996         * lib/canonicalize.c (canonicalize_filename_mode): Update.
56997
56998 2007-02-25  Jim Meyering  <jim@meyering.net>
56999
57000         * build-aux/announce-gen: When complaining about excess arguments,
57001         list them.
57002
57003 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57004
57005         * README: Document signed integer overflow situation more
57006         accurately.
57007
57008 2007-02-25  Bruno Haible  <bruno@clisp.org>
57009
57010         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
57011         'a' or 'A' conversion.
57012
57013 2007-02-25  Bruno Haible  <bruno@clisp.org>
57014
57015         * modules/filename: Renamed from modules/pathname.
57016         (Files): Replace lib/pathname.h with lib/filename.h. Replace
57017         lib/concatpath.c with lib/concat-filename.c.
57018         (Makefile.am): Update.
57019         (Include): Replace pathname.h with filename.h.
57020         * lib/filename.h: Renamed from lib/pathname.h.
57021         (concatenated_filename): Renamed from concatenated_pathname.
57022         * lib/concat-filename.c: Renamed from lib/concatpath.c.
57023         (concatenated_filename): Renamed from concatenated_pathname.
57024         * lib/findprog.c: Include filename.h instead of pathname.h.
57025         (find_in_path): Update.
57026         * lib/javacomp.c: Include filename.h instead of pathname.h.
57027         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57028         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57029         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57030         is_oldgcj_14_13_usable, is_javac_usable): Update.
57031         * lib/javaexec.c: Include filename.h instead of pathname.h.
57032         (execute_java_class): Update.
57033         * modules/findprog: Update.
57034         * modules/javacomp: Update.
57035         * modules/javaexec: Update.
57036         * MODULES.html.sh (File system functions): Add 'filename', remove
57037         'pathname'.
57038
57039 2007-02-25  Bruno Haible  <bruno@clisp.org>
57040
57041         * modules/printf-frexpl-tests: New file.
57042         * tests/test-printf-frexpl.c: New file.
57043
57044         * modules/printf-frexpl: New file.
57045         * lib/printf-frexpl.h: New file.
57046         * lib/printf-frexpl.c: New file.
57047         * m4/printf-frexpl.m4: New file.
57048
57049 2007-02-25  Bruno Haible  <bruno@clisp.org>
57050
57051         * modules/printf-frexp-tests: New file.
57052         * tests/test-printf-frexp.c: New file.
57053
57054         * modules/printf-frexp: New file.
57055         * lib/printf-frexp.h: New file.
57056         * lib/printf-frexp.c: New file.
57057         * m4/printf-frexp.m4: New file.
57058
57059 2007-02-25  Bruno Haible  <bruno@clisp.org>
57060
57061         Assume automake >= 1.10 for the tests.
57062         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
57063         * modules/arctwo-tests: Likewise.
57064         * modules/argp-tests: Likewise.
57065         * modules/avltree-list-tests: Likewise.
57066         * modules/avltree-oset-tests: Likewise.
57067         * modules/avltreehash-list-tests: Likewise.
57068         * modules/carray-list-tests: Likewise.
57069         * modules/crc-tests: Likewise.
57070         * modules/des-tests: Likewise.
57071         * modules/gc-arcfour-tests: Likewise.
57072         * modules/gc-arctwo-tests: Likewise.
57073         * modules/gc-des-tests: Likewise.
57074         * modules/gc-hmac-md5-tests: Likewise.
57075         * modules/gc-hmac-sha1-tests: Likewise.
57076         * modules/gc-md2-tests: Likewise.
57077         * modules/gc-md4-tests: Likewise.
57078         * modules/gc-md5-tests: Likewise.
57079         * modules/gc-pbkdf2-sha1-tests: Likewise.
57080         * modules/gc-rijndael-tests: Likewise.
57081         * modules/gc-sha1-tests: Likewise.
57082         * modules/gc-tests: Likewise.
57083         * modules/getaddrinfo-tests: Likewise.
57084         * modules/hmac-md5-tests: Likewise.
57085         * modules/hmac-sha1-tests: Likewise.
57086         * modules/linked-list-tests: Likewise.
57087         * modules/linkedhash-list-tests: Likewise.
57088         * modules/lock-tests: Likewise.
57089         * modules/md2-tests: Likewise.
57090         * modules/md4-tests: Likewise.
57091         * modules/md5-tests: Likewise.
57092         * modules/rbtree-list-tests: Likewise.
57093         * modules/rbtree-oset-tests: Likewise.
57094         * modules/rbtreehash-list-tests: Likewise.
57095         * modules/read-file-tests: Likewise.
57096         * modules/rijndael-tests: Likewise.
57097         * modules/stdint-tests: Likewise.
57098         * modules/tls-tests: Likewise.
57099
57100 2007-02-24  Bruno Haible  <bruno@clisp.org>
57101
57102         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
57103         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
57104         function; instead check whether isnan with a double argument links.
57105         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
57106         function; instead check whether isnan with a 'long double' argument
57107         links.
57108         Reported by Eric Blake <ebb9@byu.net>.
57109
57110 2007-02-24  Bruno Haible  <bruno@clisp.org>
57111
57112         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
57113         defined.
57114         * lib/isnanl.c: Remove all code. Just include isnan.c.
57115         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
57116
57117 2007-02-25  Jim Meyering  <jim@meyering.net>
57118
57119         Avoid conflicting types for 'unsetenv' on FreeBSD.
57120         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
57121         conflicting with FreeBSD's (5.0 and 6.1) function declaration
57122         in stdlib.h.
57123
57124 2007-02-24  Bruno Haible  <bruno@clisp.org>
57125
57126         * modules/isnanl-nolibm-tests: New file.
57127         * tests/test-isnanl.c: New file.
57128
57129         * modules/isnanl-nolibm: New file.
57130         * lib/isnanl.h: New file.
57131         * lib/isnanl.c: New file.
57132         * m4/isnanl.m4: New file.
57133
57134 2007-02-24  Bruno Haible  <bruno@clisp.org>
57135
57136         * modules/isnan-nolibm-tests: New file.
57137         * tests/test-isnan.c: New file.
57138
57139         * modules/isnan-nolibm: New file.
57140         * lib/isnan.h: New file.
57141         * lib/isnan.c: New file.
57142         * m4/isnan.m4: New file.
57143
57144 2007-02-24  Bruno Haible  <bruno@clisp.org>
57145
57146         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
57147         assume that an exponent fits in 20 bits.
57148
57149 2007-02-24  Jim Meyering  <jim@meyering.net>
57150
57151         * m4/regex.m4: Update the description of the configure-time option,
57152         --without-included-regex, to state accurately what the defaults are,
57153         and perhaps to give people an idea why using this option is risky.
57154
57155 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57156
57157         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
57158         loops on small arguments.  This attempts to avoid the problem
57159         Bruno Haible reported for AIX 4.3.2 in
57160         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
57161
57162 2007-02-23  Bruno Haible  <bruno@clisp.org>
57163
57164         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
57165         Needed for help2man.
57166
57167 2007-02-23  Karl Berry  <karl@gnu.org>
57168
57169         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
57170         exists, foo.h should be cvs-ignored, not committed.
57171
57172 2007-02-23  Eric Blake  <ebb9@byu.net>
57173
57174         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
57175         * lib/stat-time.h (includes): Likewise.
57176         * lib/utimecmp.c (includes): Likewise.
57177         * lib/utimens.h (includes): Likewise.
57178         * lib/getdate.y (includes): Also include "timespec.h" for use
57179         internal to the module.
57180         * modules/utimens (Depends-on): Revert yesterday's patch.
57181         * modules/nanosleep (Depends-on): Add missing dependency.
57182
57183 2007-02-22  Bruno Haible  <bruno@clisp.org>
57184
57185         * lib/glob.c: Don't include getlogin_r.h.
57186
57187 2007-02-22  Jim Meyering  <jim@meyering.net>
57188
57189         * modules/utimens (Depends-on): Add timespec, required for
57190         utimens.h's inclusion of timespec.h.
57191
57192 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
57193
57194         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
57195         long unreadable paths in GNU/Linux.  Problem reported by Andreas
57196         Schwab in
57197         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
57198         I'll try to think of a better way to fix the Solaris problem.
57199
57200         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
57201         like glibc; on Solaris 10, it fails with errno == EINVAL.
57202         POSIX says the behavior is unspecified if the first argument is NULL,
57203         so play it safe and never pass NULL to the system getcwd.
57204
57205 2007-02-21  Jim Meyering  <jim@meyering.net>
57206
57207         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
57208         of gettimeofday.  It would conflict with the one now always
57209         provided via sys_time_.h.  Reported by Matthew Woehlke, as
57210         an IRIX 6.5 build failure.
57211
57212 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57213
57214         Minor fixups to port to Solaris 10 with Sun C 5.8.
57215         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
57216         * modules/getcwd (Depends-on): Add dirfd.
57217         * lib/putenv.c (putenv): #undef it.
57218         (rpl_putenv): New decl.
57219         (malloc, free): Include <stdlib.h> rather than prototyping separately.
57220
57221 2007-02-20  Bruno Haible  <bruno@clisp.org>
57222
57223         * modules/stdio-tests: New file.
57224         * tests/test-stdio.c: New file.
57225
57226         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
57227         (Depends-on): Add stdio.
57228         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57229         (Include): Use <stdio.h> instead of vsnprintf.h.
57230         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57231         HAVE_DECL_VSNPRINTF.
57232         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
57233
57234         * modules/snprintf (Files): Remove lib/snprintf.h.
57235         (Depends-on): Add stdio.
57236         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
57237         (Include): Use <stdio.h> instead of snprintf.h.
57238         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
57239         HAVE_DECL_SNPRINTF.
57240         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
57241         * lib/getaddrinfo.c: Likewise.
57242
57243         * modules/stdio: New file.
57244         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
57245         * lib/snprintf.h: Remove file.
57246         * lib/vsnprintf.h: Remove file.
57247         * lib/.cppi-disable: Remove snprintf.h.
57248         * m4/stdio_h.m4: New file.
57249         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
57250
57251 2007-02-20  Jim Meyering  <jim@meyering.net>
57252
57253         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
57254         used by e.g., mingw.  From Bruno Haible.
57255
57256 2007-02-19  Bruno Haible  <bruno@clisp.org>
57257
57258         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
57259         warnings.
57260         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57261
57262 2007-02-19  Bruno Haible  <bruno@clisp.org>
57263
57264         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
57265         from mingw users.
57266
57267 2007-02-19  Bruno Haible  <bruno@clisp.org>
57268
57269         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
57270         warnings.
57271         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
57272
57273 2007-02-19  Jim Meyering  <jim@meyering.net>
57274
57275         Don't use FD after a successful "fdopendir (fd)".
57276         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
57277         Reset it by calling dirfd on the just-obtained DIR*.
57278
57279         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
57280         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
57281
57282 2007-02-18  Bruno Haible  <bruno@clisp.org>
57283
57284         * lib/readlink.c: Include <unistd.h>.
57285         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
57286         HAVE_READLINK.
57287         * modules/readlink (Depends-on): Add unistd.
57288         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57289         (Include): Add <unistd.h>.
57290
57291         * lib/getlogin_r.h: Remove file.
57292         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
57293         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
57294         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
57295         HAVE_DECL_GETLOGIN_R.
57296         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
57297         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57298         (Include): Use <unistd.h> instead of getlogin_r.h.
57299
57300         * lib/getcwd.h: Remove file.
57301         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
57302         * lib/xgetcwd.c: Likewise.
57303         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
57304         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
57305         * modules/getcwd (Files): Remove lib/getcwd.h.
57306         (Depends-on): Add unistd.
57307         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57308         (Include): Use <unistd.h> instad of getcwd.h.
57309
57310         * lib/ftruncate.c: Include <unistd.h> first.
57311         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57312         Set HAVE_FTRUNCATE.
57313         * modules/ftruncate (Depends-on): Add unistd.
57314         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57315
57316         * lib/fchdir.c: Include <unistd.h> first.
57317         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57318         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57319         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57320         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57321         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57322
57323         * lib/dup2.c: Include <unistd.h> first.
57324         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57325         HAVE_DUP2.
57326         * modules/dup2 (Depends-on): Add unistd.
57327         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57328
57329         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57330         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57331         REPLACE_CHOWN. Don't define chown as a macro here.
57332         * modules/chown (Depends-on): Add unistd.
57333         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57334
57335         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57336         Add definition for GL_LINK_WARNING.
57337         (chown, dup2): New declarations.
57338         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57339         link warning.
57340         (ftruncate): New declaration.
57341         (getcwd): New declaration, taken from old getcwd.h.
57342         (getlogin_r): New declaration, taken from old getlogin_r.h.
57343         (readlink): New declaration.
57344         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57345         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57346         (gl_PREREQ_UNISTD): Remove macro.
57347         (gl_UNISTD_MODULE_INDICATOR): New macro.
57348         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57349         many new variables. Don't set UNISTD_H.
57350         * modules/unistd (Description): Change.
57351         (Depends-on): Add link-warning.
57352         (configure.ac): Update.
57353         (Makefile.am): Create unistd.h always. Substitute many new variables
57354         into it.
57355
57356 2007-02-18  Bruno Haible  <bruno@clisp.org>
57357
57358         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57359         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57360         HAVE_GETSUBOPT.
57361         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57362         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57363         * lib/getsubopt.h: Remove file.
57364         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57365         (Depends-on): Add stdlib.
57366         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57367         (Includes): Use <stdlib.h> instead of getsubopt.h.
57368         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57369         Set HAVE_GETSUBOPT.
57370         * lib/getsubopt.c: Don't include getsubopt.h.
57371
57372 2007-02-18  Bruno Haible  <bruno@clisp.org>
57373
57374         * modules/fchdir (Depends-on): Add dup2.
57375
57376 2007-02-18  Bruno Haible  <bruno@clisp.org>
57377
57378         * lib/stdlib_.h: Handle glibc's special invocation convention
57379         specially.
57380
57381 2007-02-18  Bruno Haible  <bruno@clisp.org>
57382
57383         * modules/stdlib-tests: New file.
57384         * tests/test-stdlib.c: New file.
57385
57386         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57387         (Depends-on): Add stdlib.
57388         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57389         (Includes): Use <stdlib.h> instead of mkstemp.h.
57390         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57391         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57392         * lib/mkstemp.c: Don't include mkstemp.h.
57393         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57394         * lib/stdlib--.h: Don't include mkstemp.h.
57395
57396         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57397         (Depends-on): Add stdlib.
57398         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57399         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57400         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57401         HAVE_MKDTEMP.
57402         * lib/mkdtemp.c: Don't include mkdtemp.h.
57403         * lib/clean-temp.c: Don't include mkdtemp.h.
57404
57405         * modules/exit (Files): Remove lib/exit.h.
57406         (Depends-on): Add stdlib.
57407         (Makefile.am): Remove lib_SOURCES.
57408         (Include): Use <stdlib.h> instead of exit.h.
57409         * lib/argmatch.c: Don't include exit.h.
57410         * lib/execute.c: Likewise.
57411         * lib/pagealign_alloc.c: Likewise.
57412         * lib/pipe.c: Likewise.
57413         * lib/wait-process.c: Likewise.
57414         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57415         * lib/exitfail.c: Likewise.
57416         * lib/savewd.c: Likewise.
57417         * lib/xsetenv.c: Likewise.
57418
57419         * modules/stdlib: New file.
57420         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57421         and extra comments about mkstemp().
57422         * lib/exit.h: Remove file.
57423         * lib/mkdtemp.h: Remove file.
57424         * lib/mkstemp.h: Remove file.
57425         * m4/stdlib_h.m4: New file.
57426         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57427
57428 2007-02-18  Bruno Haible  <bruno@clisp.org>
57429
57430         * modules/math-tests: New file.
57431         * tests/test-math.c: New file.
57432
57433         * modules/math: New file.
57434         * modules/mathl (Files): Remove lib/mathl.h.
57435         (Depends-on): Add math.
57436         (Makefile.am): Don't mention mathl.h.
57437         (Include): Use <math.h> instead of mathl.h.
57438         * lib/math_.h: New file.
57439         * lib/mathl.h: Remove file.
57440         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57441         mathl.h.
57442         * lib/asinl.c: Likewise.
57443         * lib/atanl.c: Likewise.
57444         * lib/ceill.c: Likewise.
57445         * lib/cosl.c: Likewise.
57446         * lib/expl.c: Likewise.
57447         * lib/floorl.c: Likewise.
57448         * lib/frexpl.c: Likewise.
57449         * lib/ldexpl.c: Likewise.
57450         * lib/logl.c: Likewise.
57451         * lib/sincosl.c: Likewise.
57452         * lib/sinl.c: Likewise.
57453         * lib/sqrtl.c: Likewise.
57454         * lib/tanl.c: Likewise.
57455         * lib/trigl.c: Likewise.
57456         * m4/math_h.m4: New file.
57457         * MODULES.html.sh (Mathematics): Add math.
57458
57459 2007-02-17  Bruno Haible  <bruno@clisp.org>
57460
57461         * modules/wctype-tests: New file.
57462         * tests/test-wctype.c: New file.
57463
57464         * modules/wchar-tests: New file.
57465         * tests/test-wchar.c: New file.
57466
57467         * modules/unistd-tests: New file.
57468         * tests/test-unistd.c: New file.
57469
57470         * modules/time-tests: New file.
57471         * tests/test-time.c: New file.
57472
57473         * modules/sysexits-tests: New file.
57474         * tests/test-sysexits.c: New file.
57475
57476         * modules/sys_time-tests: New file.
57477         * tests/test-sys_time.c: New file.
57478
57479         * modules/sys_stat-tests: New file.
57480         * tests/test-sys_stat.c: New file.
57481
57482         * modules/sys_socket-tests: New file.
57483         * tests/test-sys_socket.c: New file.
57484
57485         * modules/sys_select-tests: New file.
57486         * tests/test-sys_select.c: New file.
57487
57488         * modules/string-tests: New file.
57489         * tests/test-string.c: New file.
57490
57491         * modules/stdbool-tests: New file.
57492         * tests/test-stdbool.c: New file.
57493
57494         * modules/netinet_in-tests: New file.
57495         * tests/test-netinet_in.c: New file.
57496
57497         * modules/inttypes-tests: New file.
57498         * tests/test-inttypes.c: New file.
57499
57500         * modules/fcntl-tests: New file.
57501         * tests/test-fcntl.c: New file.
57502
57503         * modules/byteswap-tests: New file.
57504         * tests/test-byteswap.c: New file.
57505
57506         * modules/arpa_inet-tests: New file.
57507         * tests/test-arpa_inet.c: New file.
57508
57509 2007-02-17  Bruno Haible  <bruno@clisp.org>
57510
57511         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57512         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57513         if the corresponding module is not enabled. Emit link warnings if
57514         the function is used nevertheless.
57515         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57516         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57517         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57518         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57519         * modules/inttypes (Depends-on): Add link-warning.
57520         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57521         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57522         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57523         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57524         * modules/imaxdiv (configure.ac): Likewise.
57525         * modules/strtoimax (configure.ac): Likewise.
57526         * modules/strtoumax (configure.ac): Likewise.
57527
57528 2007-02-17  Bruno Haible  <bruno@clisp.org>
57529
57530         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
57531         gl_STRING_MODULE_INDICATOR_DEFAULTS.
57532         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
57533         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
57534
57535 2007-02-17  Bruno Haible  <bruno@clisp.org>
57536
57537         * modules/link-warning: New file.
57538         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
57539         * lib/string_.h (GL_LINK_WARNING): Remove definition.
57540         * modules/string (Depends-on): Add link-warning.
57541         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57542         string.h.
57543         * MODULES.html.sh (Support for building libraries and executables): Add
57544         link-warning.
57545
57546 2007-02-17  Bruno Haible  <bruno@clisp.org>
57547
57548         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
57549         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
57550         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
57551         long lines.
57552
57553 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
57554             Bruno Haible  <bruno@clisp.org>
57555
57556         * modules/tmpfile: New file.
57557         * lib/tmpfile.c: New file.
57558         * m4/tmpfile.m4: New file.
57559         * MODULES.html.sh (func_all_modules): New section "Input/output".
57560
57561 2007-02-15  Bruno Haible  <bruno@clisp.org>
57562
57563         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
57564         (supports_delete_on_close): New function.
57565         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
57566
57567 2007-02-14  Bruno Haible  <bruno@clisp.org>
57568
57569         * modules/mbspcasecmp-tests: New file.
57570         * tests/test-mbspcasecmp.sh: New file.
57571         * tests/test-mbspcasecmp.c: New file.
57572
57573         New module mbspcasecmp.
57574         * modules/mbspcasecmp: New file.
57575         * lib/mbspcasecmp.c: New file.
57576         * lib/string_.h (strncasecmp): Change warning message.
57577         (mbspcasecmp): New declaration.
57578         * m4/mbspcasecmp.m4: New file.
57579         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57580         GNULIB_MBSPCASECMP.
57581         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
57582         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
57583
57584 2007-02-14  Bruno Haible  <bruno@clisp.org>
57585
57586         * modules/mbsncasecmp-tests: New file.
57587         * tests/test-mbsncasecmp.sh: New file.
57588         * tests/test-mbsncasecmp.c: New file.
57589
57590         New module mbsncasecmp.
57591         * modules/mbsncasecmp: New file.
57592         * lib/mbsncasecmp.c: New file.
57593         * lib/string_.h (mbsncasecmp): New declaration.
57594         * m4/mbsncasecmp.m4: New file.
57595         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57596         GNULIB_MBSNCASECMP.
57597         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
57598         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
57599
57600 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57601
57602         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
57603         Verify that it doesn't overlap with our flags.
57604         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
57605         do not have the desired effect in multibyte locales; instead, use
57606         mbscasecmp.
57607         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
57608         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
57609         we don't require GNU fnmatch ourselves (if our users require it, they
57610         should do so explicitly).
57611
57612         Fix regex code so it doesn't rely on strcasecmp.
57613         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
57614         Otherwise, include gnulib's langinfo.h.
57615         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
57616         undesirable behavior in non-C locales.  Instead, rely on localecharset.
57617         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57618         * modules/regex (FILES): Remove m4/codeset.m4.
57619         (Depends-on): Add localcharset.  Remove strcase.
57620
57621 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57622
57623         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57624         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57625
57626 2007-02-13  Bruno Haible  <bruno@clisp.org>
57627
57628         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57629         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57630
57631 2007-02-12  Bruno Haible  <bruno@clisp.org>
57632
57633         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57634         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57635         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57636         time warning rather than a link error.
57637
57638 2007-02-12  Bruno Haible  <bruno@clisp.org>
57639
57640         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57641         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57642         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57643
57644 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57645
57646         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57647         args, not 2.
57648
57649 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57650
57651         New module 'time', so that apps can include <time.h> as per
57652         POSIX and GNU instead of separate include files like time_r.h
57653         and timegm.h.  This implementation tries out a simpler approach
57654         for replacing decls in standard include files (as compared to
57655         the string module), somewhat as an experiment.
57656
57657         * config/srclist.txt: Comment out mktime.c for now.
57658         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57659         since it doesn't apply any more.  Use generic wording instead.
57660         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57661         'time'.
57662         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57663         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57664         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57665         Don't include <sys/types.h>; no longer needed since we assume C89.
57666         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57667         * lib/strftime.c: Likewise.
57668         * lib/time_r.c: Likewise.
57669         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57670         * lib/nanosleep.c: Include <time.h> first, to check interface.
57671         * lib/strptime.c: Likewise.
57672         * lib/time_r.c: Likewise.
57673         * lib/timegm.c: Likewise.
57674         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57675         needed.
57676         * lib/timegm.c: Don't include timegm.h; no longer needed.
57677         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57678         time.h now handles any problems in that area.
57679         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57680         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57681         that time.h defines struct timespec.
57682         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57683         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57684         handles that.
57685         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57686         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57687         needed.  Set REPLACE_LOCALTIME.
57688         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57689         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57690         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57691         nanosleep; time_h.m4 now does that.  Don't require
57692         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
57693         module handles this now.
57694         * modules/getdate (Depends-on): Remove timespec.  Add time.
57695         * modules/nanosleep (Depends-on): Likewise.
57696         * modules/stat-time (Depends-on): Likewise.
57697         * modules/nanosleep (Include): Include time.h, not timespec.h.
57698         * modules/strptime (Files): Remove lib/strptime.h.
57699         (Depends-on): Add extensions, time.
57700         (Include): Include time.h, not strptime.h.
57701         * modules/time_r (Files): Remove lib/time_r.h.
57702         (Depends-on): Add time.
57703         (Include): Include time.h, not time_r.h.
57704         * modules/timegm: Likewise.
57705         * modules/timespec (Description): Now does timespec-related decls
57706         of our own, instead of struct timespec itself.
57707         (Depends-on): Add time; remove extensions.
57708         (Maintainer): Add self.
57709         * modules/utimecmp (Depends-on): Add time; remove timespec.
57710         * modules/utimens (Depends-on): Likewise.
57711         * modules/xnanosleep (Depends-on): Likewise.
57712
57713 2007-02-11  Bruno Haible  <bruno@clisp.org>
57714
57715         * lib/c-strstr.c: Include allocsa.h.
57716         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57717         * lib/c-strcasestr.c: Include allocsa.h.
57718         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57719         * lib/strcasestr.c: Include allocsa.h.
57720         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57721         * lib/mbsstr.c: Include allocsa.h.
57722         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57723         allocsa/freesa instead of malloc/free.
57724         * lib/mbscasestr.c: Include allocsa.h.
57725         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57726         allocsa/freesa instead of malloc/free.
57727         * modules/c-strstr (Depends-on): Add allocsa.
57728         * modules/c-strcasestr (Depends-on): Likewise.
57729         * modules/strcasestr (Depends-on): Likewise.
57730         * modules/mbsstr (Depends-on): Likewise.
57731         * modules/mbscasestr (Depends-on): Likewise.
57732
57733 2007-02-11  Bruno Haible  <bruno@clisp.org>
57734
57735         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
57736
57737         * modules/mbsspn-tests: New file.
57738         * tests/test-mbsspn.sh: New file.
57739         * tests/test-mbsspn.c: New file.
57740
57741 2007-02-11  Bruno Haible  <bruno@clisp.org>
57742
57743         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
57744
57745         * modules/mbspbrk-tests: New file.
57746         * tests/test-mbspbrk.sh: New file.
57747         * tests/test-mbspbrk.c: New file.
57748
57749 2007-02-11  Bruno Haible  <bruno@clisp.org>
57750
57751         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
57752         unneeded cast.
57753
57754         * modules/mbscspn-tests: New file.
57755         * tests/test-mbscspn.sh: New file.
57756         * tests/test-mbscspn.c: New file.
57757
57758 2007-02-11  Bruno Haible  <bruno@clisp.org>
57759
57760         * modules/mbscasecmp-tests: New file.
57761         * tests/test-mbscasecmp.sh: New file.
57762         * tests/test-mbscasecmp.c: New file.
57763
57764 2007-02-11  Bruno Haible  <bruno@clisp.org>
57765
57766         Ensure O(n) worst-case complexity of mbscasestr.
57767         * lib/mbscasestr.c: Include stdbool.h.
57768         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57769         functions.
57770         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
57771         the bookkeeping indicates that it's worth it.
57772         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
57773
57774         * modules/mbscasestr-tests: New file.
57775         * tests/test-mbscasestr1.c: New file.
57776         * tests/test-mbscasestr2.sh: New file.
57777         * tests/test-mbscasestr2.c: New file.
57778         * tests/test-mbscasestr3.sh: New file.
57779         * tests/test-mbscasestr3.c: New file.
57780         * tests/test-mbscasestr4.sh: New file.
57781         * tests/test-mbscasestr4.c: New file.
57782         * m4/locale-tr.m4: New file.
57783
57784 2007-02-11  Bruno Haible  <bruno@clisp.org>
57785
57786         Ensure O(n) worst-case complexity of mbsstr.
57787         * lib/mbsstr.c: Include stdbool.h.
57788         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57789         functions.
57790         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
57791         bookkeeping indicates that it's worth it.
57792         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
57793
57794         * modules/mbsstr-tests: New file.
57795         * tests/test-mbsstr1.c: New file.
57796         * tests/test-mbsstr2.sh: New file.
57797         * tests/test-mbsstr2.c: New file.
57798         * tests/test-mbsstr3.sh: New file.
57799         * tests/test-mbsstr3.c: New file.
57800         * m4/locale-fr.m4: New file.
57801
57802 2007-02-11  Bruno Haible  <bruno@clisp.org>
57803
57804         * lib/mbsrchr.c (mbsrchr): Fix bug.
57805
57806         * modules/mbsrchr-tests: New file.
57807         * tests/test-mbsrchr.sh: New file.
57808         * tests/test-mbsrchr.c: New file.
57809
57810 2007-02-11  Bruno Haible  <bruno@clisp.org>
57811
57812         * lib/mbschr.c (mbschr): Fix bug.
57813
57814         * modules/mbschr-tests: New file.
57815         * tests/test-mbschr.sh: New file.
57816         * tests/test-mbschr.c: New file.
57817         * m4/locale-zh.m4: New file.
57818
57819 2007-02-11  Bruno Haible  <bruno@clisp.org>
57820
57821         Support for copying multibyte string iterators.
57822         * lib/mbiter.h: Include <string.h>.
57823         (mbiter_multi_copy): New function.
57824         (mbi_copy): New macro.
57825         * lib/mbuiter.h: Include <string.h>.
57826         (mbuiter_multi_copy): New function.
57827         (mbui_copy): New macro.
57828
57829 2007-02-11  Bruno Haible  <bruno@clisp.org>
57830
57831         New module mbslen.
57832         * modules/mbslen: New file.
57833         * lib/mbslen.c: New file.
57834         * lib/string_.h (mbslen): New declaration.
57835         * m4/mbslen.m4: New file.
57836         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57837         GNULIB_MBSLEN.
57838         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
57839         * MODULES.html.sh (Internationalization functions): Add mbslen.
57840
57841 2007-02-11  Bruno Haible  <bruno@clisp.org>
57842
57843         Ensure O(n) worst-case complexity of strcasestr substitute.
57844         * lib/strcasestr.c: Include stdbool.h.
57845         (knuth_morris_pratt): New function.
57846         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57847         bookkeeping indicates that it's worth it.
57848         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
57849
57850         * modules/strcasestr-tests: New file.
57851         * tests/test-strcasestr.c: New file.
57852
57853 2007-02-11  Bruno Haible  <bruno@clisp.org>
57854
57855         Ensure O(n) worst-case complexity of c_strcasestr.
57856         * lib/c-strcasestr.c: Include stdbool.h, string.h.
57857         (knuth_morris_pratt): New function.
57858         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
57859         the bookkeeping indicates that it's worth it.
57860         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
57861
57862         * modules/c-strcasestr-tests: New file.
57863         * tests/test-c-strcasestr.c: New file.
57864
57865 2007-02-11  Bruno Haible  <bruno@clisp.org>
57866
57867         Ensure O(n) worst-case complexity of c_strstr.
57868         * lib/c-strstr.c: Include stdbool.h, string.h.
57869         (knuth_morris_pratt): New function.
57870         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57871         bookkeeping indicates that it's worth it.
57872         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
57873
57874         * lib/c-strstr.c: Complete rewrite for maintainability.
57875
57876         * modules/c-strstr-tests: New file.
57877         * tests/test-c-strstr.c: New file.
57878
57879 2007-02-11  Bruno Haible  <bruno@clisp.org>
57880
57881         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
57882         5.2.1 and earlier, whereby \055 was treated just like the range
57883         delimiter '-'.
57884         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57885
57886 2007-02-08  Bruno Haible  <bruno@clisp.org>
57887
57888         * modules/regex (Depends-on): Add stdbool.
57889         Reported by Dalibor Topic <robilad@kaffe.org>.
57890
57891 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57892
57893         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
57894         Prefer returning from main to exiting from it.
57895         Remove unnecessary parens after sizeof.
57896
57897 2007-02-05  Bruno Haible  <bruno@clisp.org>
57898
57899         New module mbssep.
57900         * modules/mbssep: New file.
57901         * lib/mbssep.c: New file.
57902         * lib/string_.h (strsep): Add a conditional link warning.
57903         (mbssep): New declaration.
57904         * m4/mbssep.m4: New file.
57905         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57906         GNULIB_MBSSEP.
57907         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
57908         * MODULES.html.sh (Internationalization functions): Add mbssep.
57909
57910 2007-02-05  Bruno Haible  <bruno@clisp.org>
57911
57912         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
57913         Optimize search in case of 1 delimiter.
57914
57915 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57916
57917         * lib/acl.h: Include sys/types.h before sys/acl.h.
57918
57919 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57920
57921         Merge upstream fix for glibc bugzilla #3957:
57922
57923         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
57924
57925         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
57926         bit for RE_HAT_LISTS_NOT_NEWLINE.
57927         (build_charclass_op): Remove bogus comment.
57928
57929 2007-02-05  Simon Josefsson  <simon@josefsson.org>
57930
57931         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
57932
57933 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57934
57935         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
57936         * lib/memmem.c [!defined _LIBC]: Include config.h.
57937
57938 2007-02-04  Bruno Haible  <bruno@clisp.org>
57939
57940         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
57941         warning message.
57942
57943 2007-02-04  Bruno Haible  <bruno@clisp.org>
57944
57945         New module mbstok_r.
57946         * modules/mbstok_r: New file.
57947         * lib/mbstok_r.c: New file.
57948         * lib/string_.h (strtok_r): Change argument names to match the
57949         comments. Add a conditional link warning.
57950         (mbstok_r): New declaration.
57951         * m4/mbstok_r.m4: New file.
57952         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57953         GNULIB_MBSTOK_R.
57954         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
57955         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
57956
57957 2007-02-04  Bruno Haible  <bruno@clisp.org>
57958
57959         New module mbsspn.
57960         * modules/mbsspn: New file.
57961         * lib/mbsspn.c: New file.
57962         * lib/string_.h (strspn): Add a conditional link warning.
57963         (mbsspn): New declaration.
57964         * m4/mbsspn.m4: New file.
57965         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57966         GNULIB_MBSSPN.
57967         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
57968         * MODULES.html.sh (Internationalization functions): Add mbsspn.
57969
57970 2007-02-04  Bruno Haible  <bruno@clisp.org>
57971
57972         New module mbspbrk.
57973         * modules/mbspbrk: New file.
57974         * lib/mbspbrk.c: New file.
57975         * lib/string_.h (strpbrk): Add a conditional link warning.
57976         (mbspbrk): New declaration.
57977         * m4/mbspbrk.m4: New file.
57978         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57979         GNULIB_MBSPBRK.
57980         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
57981         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
57982
57983 2007-02-04  Bruno Haible  <bruno@clisp.org>
57984
57985         New module mbscspn.
57986         * modules/mbscspn: New file.
57987         * lib/mbscspn.c: New file.
57988         * lib/string_.h (strcspn): Add a conditional link warning.
57989         (mbscspn): New declaration.
57990         * m4/mbscspn.m4: New file.
57991         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57992         GNULIB_MBSCSPN.
57993         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
57994         * MODULES.html.sh (Internationalization functions): Add mbscspn.
57995
57996 2007-02-04  Bruno Haible  <bruno@clisp.org>
57997
57998         New module mbscasestr, reduced goal of strcasestr.
57999         * modules/mbscasestr: New file.
58000         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
58001         (mbscasestr): Renamed from strcasestr.
58002         * lib/strcasestr.c: Don't include mbuiter.h.
58003         (strcasestr): Remove support for multibyte locales.
58004         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
58005         Change the conditional link warning.
58006         (mbscasestr): New declaration.
58007         * m4/mbscasestr.m4: New file.
58008         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
58009         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
58010         REPLACE_STRCASESTR.
58011         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
58012         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58013         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58014         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
58015         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
58016         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58017         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
58018         (Depends-on): Remove mbuiter.
58019         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
58020
58021 2007-02-04  Bruno Haible  <bruno@clisp.org>
58022
58023         Simplify handling of strncasecmp.
58024         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
58025         the conditional link warning.
58026         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58027         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
58028         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
58029         * modules/strcase (configure.ac): Don't invoke
58030         gl_STRING_MODULE_INDICATOR.
58031         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
58032
58033 2007-02-04  Bruno Haible  <bruno@clisp.org>
58034
58035         New module mbscasecmp, reduced goal of strcasecmp.
58036         * modules/mbscasecmp: New file.
58037         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
58038         (mbscasecmp): Renamed from strcasecmp.
58039         * lib/strcasecmp.c: Don't include mbuiter.h.
58040         (strcasecmp): Remove support for multibyte locales.
58041         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
58042         Change the conditional link warning.
58043         (mbscasecmp): New declaration.
58044         * m4/mbscasecmp.m4: New file.
58045         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
58046         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
58047         REPLACE_STRCASECMP.
58048         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
58049         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58050         GNULIB_MBSCASECMP.
58051         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
58052         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
58053         * modules/strcase (Files): Remove m4/mbrtowc.m4.
58054         (Depends-on): Remove mbuiter.
58055         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
58056
58057 2007-02-04  Bruno Haible  <bruno@clisp.org>
58058
58059         New module mbsstr. Remove module strstr.
58060         * modules/mbsstr: New file.
58061         * modules/strstr: Remove file.
58062         * lib/mbsstr.c: Renamed from lib/strstr.c.
58063         (mbsstr): Renamed from strstr.
58064         * lib/string_.h (strstr): Remove declaration. Change the conditional
58065         link warning.
58066         (mbsstr): New declaration.
58067         * m4/mbsstr.m4: New file.
58068         * m4/strstr.m4: Remove file.
58069         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
58070         REPLACE_STRSTR.
58071         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
58072         Don't initialize GNULIB_STRSTR.
58073         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
58074         substitute GNULIB_STRSTR and REPLACE_STRSTR.
58075         * MODULES.html.sh (Internationalization functions): Add mbsstr.
58076         (Support for systems lacking ANSI C 89): Remove strstr.
58077
58078 2007-02-04  Bruno Haible  <bruno@clisp.org>
58079
58080         New module mbsrchr.
58081         * modules/mbsrchr: New file.
58082         * lib/mbsrchr.c: New file.
58083         * lib/string_.h (strrchr): Add a conditional link warning.
58084         (mbsrchr): New declaration.
58085         * m4/mbsrchr.m4: New file.
58086         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58087         GNULIB_MBSRCHR.
58088         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
58089         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
58090
58091 2007-02-04  Bruno Haible  <bruno@clisp.org>
58092
58093         New module mbschr.
58094         * modules/mbschr: New file.
58095         * lib/mbschr.c: New file.
58096         * lib/string_.h (strchr): Add a conditional link warning.
58097         (mbschr): New declaration.
58098         * m4/mbschr.m4: New file.
58099         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58100         GNULIB_MBSCHR.
58101         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
58102         * MODULES.html.sh (Internationalization functions): Add mbschr.
58103
58104 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58105
58106         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
58107
58108         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
58109
58110 2007-02-04  Bruno Haible  <bruno@clisp.org>
58111
58112         New module description section 'configure.ac-early'.
58113         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
58114         (func_get_autoconf_early_snippet): New function.
58115         (func_import, func_create_testdir): Use it. Remove special cases for
58116         modules 'extensions' and 'lock'.
58117         * modules/extensions (configure.ac-early): Require
58118         gl_USE_SYSTEM_EXTENSIONS.
58119         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
58120
58121 2007-02-04  Bruno Haible  <bruno@clisp.org>
58122
58123         Make use of gcj-4.3's -fsource and -ftarget option.
58124         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
58125         and if so try the options -fsource and -ftarget.
58126         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
58127         source_version, ftarget_option, target_version arguments.
58128         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
58129         (is_envjavac_oldgcj_14_14_usable): Renamed from
58130         is_envjavac_gcj_14_14_usable.
58131         (is_envjavac_oldgcj_14_13_usable): Renamed from
58132         is_envjavac_gcj_14_13_usable.
58133         (is_gcj_present): Update.
58134         (is_gcj_43, is_gcj43_usable): New functions.
58135         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
58136         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
58137         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
58138         try the options -fsource and -ftarget.
58139
58140 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58141
58142         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
58143         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
58144         larger value.
58145
58146 2007-02-03  Jim Meyering  <jim@meyering.net>
58147
58148         Give tools a better chance to allocate space for very large buffers.
58149         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
58150
58151         Make pwd and readlink work also when run with an unreadable parent dir
58152         on systems with openat support.
58153         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
58154         provided getcwd function, even when we have openat support.
58155         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
58156
58157 2007-02-02  Bruno Haible  <bruno@clisp.org>
58158
58159         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58160         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
58161         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
58162         portability problems if one of these functions is only used on specific
58163         platforms.
58164         Reported by Paul Eggert.
58165
58166 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
58167
58168         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
58169         is causing more trouble than it's curing.
58170         * lib/regex_internal.h (__mempcpy): Remove.
58171         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
58172         (and make the code a tad smaller to boot).
58173         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
58174
58175 2007-02-02  Jim Meyering  <jim@meyering.net>
58176
58177         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
58178         section, not in the Makefile.am: one.
58179
58180 2007-02-02  Eric Blake  <ebb9@byu.net>
58181
58182         * lib/strchrnul.c: Always include config.h first.
58183
58184         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
58185         gnulib strstr is not necessary here.
58186
58187 2007-02-02  Simon Josefsson  <simon@josefsson.org>
58188
58189         * m4/socklen.m4: Fix typo.
58190
58191 2007-02-02  Eric Blake  <ebb9@byu.net>
58192
58193         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
58194         * modules/netinet_in (Makefile.am): Likewise.
58195
58196 2007-02-01  Bruno Haible  <bruno@clisp.org>
58197
58198         * lib/string_.h (GL_LINK_WARNING): New macro.
58199         (strcasecmp, strstr, strcasestr): If provided by the system,
58200         conditionally define as a macro that leads to a warning instead of to
58201         an error.
58202         (strncasecmp): Conditionally define as a macro that leads to a warning.
58203
58204 2007-02-01  Karl Berry  <karl@gnu.org>
58205
58206         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
58207
58208 2007-02-01  Bruno Haible  <bruno@clisp.org>
58209
58210         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
58211         renamings.
58212
58213 2007-02-01  Eric Blake  <ebb9@byu.net>
58214
58215         * modules/regex (Depends-on): Revert dependence on mempcpy.
58216         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
58217         module's definition of mempcpy.
58218         Reported by Paul Eggert.
58219
58220 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58221
58222         * lib/string_.h: If the gnulib module XYZ is not present, undefine
58223         the symbol XYZ before redefining it.  This fixes a problem with
58224         programs that don't use XYZ, when compiled on systems that define
58225         XYZ to something else.
58226
58227 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
58228
58229         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
58230         occurs when "mkdir -m foo" creates a setgid directory that is (1)
58231         writeable to group or other and (2) is intended to have a special
58232         mode bit that is set or cleared.  In such a case, the directory
58233         should be neither group- nor other-writeable until the special
58234         mode bits are right.
58235
58236 2007-01-31  Eric Blake  <ebb9@byu.net>
58237
58238         * modules/mountlist (Depends-on): Add strstr.
58239
58240         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
58241         bug.
58242         * modules/string (Makefile.am): Remove redundant replacement.
58243         * modules/regex (Depends-on): Add mempcpy.
58244
58245 2007-01-31  Bruno Haible  <bruno@clisp.org>
58246
58247         New module description field 'Link'.
58248         * gnulib-tool (func_usage): Document --extract-link-directive.
58249         (sed_extract_prog): Recognize 'Link' directive.
58250         (func_get_link_directive): New function.
58251         (func_import): Show summary of link directives.
58252         Handle --extract-link-directive option.
58253         * modules/acl (Link): New section.
58254         * modules/clock-time (Link): New section.
58255         * modules/euidaccess (Link): New section.
58256         * modules/gettext (Link): New section.
58257         * modules/iconv (Link): New section.
58258         * modules/lock (Link): New section.
58259         * modules/nanosleep (Link): New section.
58260         * modules/readline (Link): New section.
58261
58262 2007-01-27  Bruno Haible  <bruno@clisp.org>
58263
58264         Enforce the use of gnulib modules for unportable <string.h> functions.
58265         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
58266         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
58267         (gl_HEADER_STRING_H_BODY): Require it.
58268         * lib/string_.h: If the gnulib module XYZ is not present, redefine
58269         the symbol XYZ to one that gives a link error.
58270         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
58271         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
58272         * modules/mempcpy (configure.ac): Likewise.
58273         * modules/memrchr (configure.ac): Likewise.
58274         * modules/stpcpy (configure.ac): Likewise.
58275         * modules/stpncpy (configure.ac): Likewise.
58276         * modules/strcase (configure.ac): Likewise.
58277         * modules/strcasestr (configure.ac): Likewise.
58278         * modules/strchrnul (configure.ac): Likewise.
58279         * modules/strdup (configure.ac): Likewise.
58280         * modules/strndup (configure.ac): Likewise.
58281         * modules/strnlen (configure.ac): Likewise.
58282         * modules/strpbrk (configure.ac): Likewise.
58283         * modules/strsep (configure.ac): Likewise.
58284         * modules/strstr (configure.ac): Likewise.
58285         * modules/strtok_r (configure.ac): Likewise.
58286
58287 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
58288
58289         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
58290
58291 2007-01-30  Jim Meyering  <jim@meyering.net>
58292
58293         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
58294
58295 2007-01-29  Bruno Haible  <bruno@clisp.org>
58296
58297         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
58298         * lib/execute.c: Likewise.
58299         * lib/pipe.c: Likewise.
58300         * lib/printf-args.h: Likewise.
58301         * lib/printf-args.c: Likewise.
58302         * lib/printf-parse.c: Likewise.
58303         * lib/vasnprintf.c: Likewise.
58304
58305 2007-01-29  Eric Blake  <ebb9@byu.net>
58306
58307         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
58308         declaration.
58309
58310 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58311
58312         * lib/strptime.h (strptime): Use 'restrict' for args where
58313         POSIX requires this.
58314         * lib/strptime.c (strptime): Likewise.
58315         Change license notice from LGPL to GPL, since gnulib-tool will
58316         change this as needed.
58317         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58318         defined.
58319         Include "strptime.h" first, to check interface.
58320         Do not #undef _LIBC and _NL_CURRENT.
58321         Do not include <stdlib.h>; no longer needed.
58322         Include "time_r.h" and declare ptime_locale_status
58323         only if _LIBC is not defined.
58324         (__P): Remove unused macro.
58325         (match_string): Bring back glibc version, but use it only if _LIBC
58326         is defined.
58327         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58328         Remove unnecessary assertion and abort() call.
58329         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58330         * m4/strptime.m4: Fix serial number comment.
58331         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58332         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58333         (Depends-on): Add time_r.
58334
58335 2007-01-29  Bruno Haible  <bruno@clisp.org>
58336
58337         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58338         strptime.
58339         * modules/strptime (Depends-on): Add stdbool.
58340         * lib/strptime.h: Include <time.h> always. Add comments.
58341
58342 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58343
58344         * modules/strptime: New file.
58345         * lib/strptime.h: New file.
58346         * lib/strptime.c: New file.
58347         * m4/strptime.m4: New file.
58348
58349 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58350
58351         * MODULES.html.sh: New module mpsort.
58352         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58353
58354         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58355         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58356         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58357         All uses changed.
58358         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58359         All uses changed.
58360         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58361         to _Restrict_.
58362         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58363         the parameter matches the prototype.
58364
58365 2007-01-28  Jim Meyering  <jim@meyering.net>
58366
58367         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58368         sys/time.h here, reverting that part of the previous patch:
58369         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58370
58371 2007-01-28  Bruno Haible  <bruno@clisp.org>
58372
58373         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58374         value of $(SYS_TIME_H).
58375         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58376         remove it conditionally, too. [added by Jim Meyering]
58377         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58378         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58379         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58380         GETTIMEOFDAY_REPLACEMENT to 1.
58381
58382 2007-01-28  Bruno Haible  <bruno@clisp.org>
58383
58384         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58385         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58386         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58387         Set UNISTD_H instead of UNISTD_H2.
58388         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58389
58390 2007-01-28  Bruno Haible  <bruno@clisp.org>
58391
58392         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58393         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58394
58395 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58396
58397         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58398         (func_create_testdir): Ensure C locale for `grep' and `tr'
58399         character ranges.
58400         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58401         ACLOCAL_AMFLAGS parsing state machine.
58402
58403 2007-01-27  Bruno Haible  <bruno@clisp.org>
58404
58405         * modules/unistr/base: Update.
58406
58407 2007-01-27  Bruno Haible  <bruno@clisp.org>
58408
58409         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58410         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58411         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58412         modules/unistr/u32-mbtouc.
58413         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58414         * lib/unistr.h: Update.
58415         * lib/linebreak.c: Update.
58416         * modules/unistr/u32-mbtouc: Renamed from
58417         modules/unistr/u32-mbtouc-safe.
58418         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58419         * lib/unistr.h: Update.
58420         * lib/unistr/u32-to-u8.c: Update.
58421         * lib/unistr/u32-to-u16.c: Update.
58422
58423 2007-01-27  Bruno Haible  <bruno@clisp.org>
58424
58425         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58426         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58427         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58428         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58429         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58430         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58431         modules/unistr/u16-mbtouc.
58432         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58433         * lib/unistr.h: Update.
58434         * lib/linebreak.c: Update.
58435         * modules/linebreak: Update.
58436         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58437         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58438         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58439         * modules/unistr/u16-mbtouc: Renamed from
58440         modules/unistr/u16-mbtouc-safe.
58441         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58442         * lib/unistr.h: Update.
58443         * lib/unistr/u16-to-u8.c: Update.
58444         * modules/unistr/u16-to-u8: Update.
58445         * lib/unistr/u16-to-u32.c: Update.
58446         * modules/unistr/u16-to-u32: Update.
58447
58448 2007-01-27  Bruno Haible  <bruno@clisp.org>
58449
58450         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58451         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58452         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58453         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58454         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58455         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58456         modules/unistr/u8-mbtouc.
58457         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58458         * lib/unistr.h: Update.
58459         * lib/striconveh.c: Update.
58460         * modules/striconveh: Update.
58461         * lib/linebreak.c: Update.
58462         * modules/linebreak: Update.
58463         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58464         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58465         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58466         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58467         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58468         * lib/unistr.h: Update.
58469         * lib/striconveh.c: Update.
58470         * modules/striconveh: Update.
58471         * lib/unistr/u8-to-u16.c: Update.
58472         * modules/unistr/u8-to-u16: Update.
58473         * lib/unistr/u8-to-u32.c: Update.
58474         * modules/unistr/u8-to-u32: Update.
58475
58476 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58477
58478         Sync from Libtool.
58479         * lib/argz.c: Do not include strings.h nor memory.h, include
58480         string.h unconditionally.  Patch by Simon Josefsson.
58481
58482 2007-01-27  Bruno Haible  <bruno@clisp.org>
58483
58484         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58485         from gl_HEADER_STRING_H_BODY.
58486         (gl_HEADER_STRING_H_BODY): Require it.
58487         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58488         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58489         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58490         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58491         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58492         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58493         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58494         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58495         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58496         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58497         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58498         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58499         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58500         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58501         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58502
58503 2007-01-27  Bruno Haible  <bruno@clisp.org>
58504
58505         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58506         check_PROGRAMS into noinst_PROGRAMS.
58507         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58508         check_PROGRAMS in this case.
58509         (func_import): Set for_test to false.
58510         (func_create_testdir): Set for_test to true.
58511
58512 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58513             Bruno Haible  <bruno@clisp.org>
58514
58515         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58516         (Depends-on): Add string.
58517         (Includes): Use <string.h> instead of strcasestr.h.
58518         * modules/string (Makefile.am): Also substitute the value of
58519         REPLACE_STRCASESTR.
58520         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58521         assume strcasestr is declared in <string.h> not <strings.h>. Also
58522         set REPLACE_STRCASESTR.
58523         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58524         REPLACE_STRCASESTR.
58525         * lib/strcasestr.h: Remove file.
58526         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
58527         * lib/string_.h (strcasestr): New declaration.
58528
58529 2007-01-27  Bruno Haible  <bruno@clisp.org>
58530
58531         * lib/string_.h: Use 'extern'.
58532
58533 2007-01-27  Jim Meyering  <jim@meyering.net>
58534
58535         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
58536         of set-but-not-used local, "q".
58537
58538         * lib/mempcpy.c: Include <config.h> before <string.h>.
58539         This fixes a compilation error on HP-UX, due to the system's
58540         "restrict"-using mempcpy prototype.
58541
58542 2007-01-26  Bruno Haible  <bruno@clisp.org>
58543
58544         Small optimization.
58545         * lib/javacomp.c: Include c-strstr.h.
58546          (is_envjavac_gcj): Use c_strstr instead of strstr.
58547         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
58548
58549 2007-01-26  Bruno Haible  <bruno@clisp.org>
58550
58551         * MODULES.html.sh (Unicode string functions): Add the new modules.
58552
58553         * modules/uniconv/u32-strconv-to-locale: New file.
58554         * lib/uniconv/u32-strconv-to-locale.c: New file.
58555
58556         * modules/uniconv/u16-strconv-to-locale: New file.
58557         * lib/uniconv/u16-strconv-to-locale.c: New file.
58558
58559         * modules/uniconv/u8-strconv-to-locale: New file.
58560         * lib/uniconv/u8-strconv-to-locale.c: New file.
58561
58562         * modules/uniconv/u32-strconv-from-locale: New file.
58563         * lib/uniconv/u32-strconv-from-locale.c: New file.
58564
58565         * modules/uniconv/u16-strconv-from-locale: New file.
58566         * lib/uniconv/u16-strconv-from-locale.c: New file.
58567
58568         * modules/uniconv/u8-strconv-from-locale: New file.
58569         * lib/uniconv/u8-strconv-from-locale.c: New file.
58570
58571         * modules/uniconv/u32-strconv-to-enc: New file.
58572         * lib/uniconv/u32-strconv-to-enc.c: New file.
58573         * modules/uniconv/u32-strconv-to-enc-tests: New file.
58574         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
58575
58576         * modules/uniconv/u16-strconv-to-enc: New file.
58577         * lib/uniconv/u16-strconv-to-enc.c: New file.
58578         * lib/uniconv/u-strconv-to-enc.h: New file.
58579         * modules/uniconv/u16-strconv-to-enc-tests: New file.
58580         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
58581
58582         * modules/uniconv/u8-strconv-to-enc: New file.
58583         * lib/uniconv/u8-strconv-to-enc.c: New file.
58584         * modules/uniconv/u8-strconv-to-enc-tests: New file.
58585         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
58586
58587         * modules/uniconv/u32-strconv-from-enc: New file.
58588         * lib/uniconv/u32-strconv-from-enc.c: New file.
58589         * modules/uniconv/u32-strconv-from-enc-tests: New file.
58590         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
58591
58592         * modules/uniconv/u16-strconv-from-enc: New file.
58593         * lib/uniconv/u16-strconv-from-enc.c: New file.
58594         * modules/uniconv/u16-strconv-from-enc-tests: New file.
58595         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
58596
58597         * modules/uniconv/u8-strconv-from-enc: New file.
58598         * lib/uniconv/u8-strconv-from-enc.c: New file.
58599         * lib/uniconv/u-strconv-from-enc.h: New file.
58600         * modules/uniconv/u8-strconv-from-enc-tests: New file.
58601         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
58602
58603         * modules/uniconv/u32-conv-from-enc: New file.
58604         * lib/uniconv/u32-conv-from-enc.c: New file.
58605         * modules/uniconv/u32-conv-from-enc-tests: New file.
58606         * tests/uniconv/test-u32-conv-from-enc.c: New file.
58607
58608         * modules/uniconv/u16-conv-from-enc: New file.
58609         * lib/uniconv/u16-conv-from-enc.c: New file.
58610         * lib/uniconv/u-conv-from-enc.h: New file.
58611         * modules/uniconv/u16-conv-from-enc-tests: New file.
58612         * tests/uniconv/test-u16-conv-from-enc.c: New file.
58613
58614         * modules/uniconv/u8-conv-from-enc: New file.
58615         * lib/uniconv/u8-conv-from-enc.c: New file.
58616         * modules/uniconv/u8-conv-from-enc-tests: New file.
58617         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58618
58619         * modules/uniconv/base: New file.
58620         * lib/uniconv.h: New file.
58621
58622 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58623
58624         * doc/gnulib-tool.texi (Initial import): Update to match current
58625         behavior with strdup module.
58626         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58627         * lib/memmem.h: Remove; all uses removed.  This is now done
58628         by <string.h>.
58629         * lib/mempcpy.h: Likewise.
58630         * lib/memrchr.h: Likewise.
58631         * lib/stpcpy.h: Likewise.
58632         * lib/stpncpy.h: Likewise.
58633         * lib/strcase.h: Likewise.
58634         * lib/strchrnul.h: Likewise.
58635         * lib/strdup.h: Likewise.
58636         * lib/strndup.h: Likewise.
58637         * lib/strnlen.h: Likewise.
58638         * lib/strpbrk.h: Likewise.
58639         * lib/strsep.h: Likewise.
58640         * lib/strstr.h: Likewise.
58641         * lib/strtok_r.h: Likewise.
58642         * lib/string_.h: New file.
58643         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58644         Rely on <string.h> instead.
58645         * lib/canon-host.c: Likewise.
58646         * lib/chdir-long.c: Likewise.
58647         * lib/concatpath.c: Likewise.
58648         * lib/exclude.c: Likewise.
58649         * lib/fchdir.c: Likewise.
58650         * lib/getaddrinfo.c: Likewise.
58651         * lib/getcwd.c: Likewise.
58652         * lib/getsubopt.c: Likewise.
58653         * lib/glob.c: Likewise.
58654         * lib/hard-locale.c: Likewise.
58655         * lib/iconvme.c: Likewise.
58656         * lib/javacomp.c: Likewise.
58657         * lib/mempcpy.c: Likewise.
58658         * lib/memrchr.c: Likewise.
58659         * lib/regex_internal.h: Likewise.
58660         * lib/stpncpy.c: Likewise.
58661         * lib/strcasecmp.c: Likewise.
58662         * lib/strchrnul.c: Likewise.
58663         * lib/strdup.c: Likewise.
58664         * lib/striconv.c: Likewise.
58665         * lib/striconveh.c: Likewise.
58666         * lib/striconveha.c: Likewise.
58667         * lib/strncasecmp.c: Likewise.
58668         * lib/strndup.c: Likewise.
58669         * lib/strnlen.c: Likewise.
58670         * lib/strsep.c: Likewise.
58671         * lib/strstr.c: Likewise.
58672         * lib/strtok_r.c: Likewise.
58673         * lib/userspec.c: Likewise.
58674         * lib/w32spawn.h: Likewise.
58675         * lib/xstrndup.c: Likewise.
58676         * lib/mountlist.c (strstr): Remove decl.
58677         * m4/string_h.m4: New file.
58678         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58679         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58680         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58681         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58682         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58683         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58684         Set REPLACE_STRCASECMP if necessary.
58685         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58686         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58687         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58688         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58689         HAVE_DECL_STRDUP if necessary.
58690         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58691         since gl_FUNC_STRNDUP does that now.
58692         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
58693         Check for decl here...
58694         (gl_PREREQ_STRNLEN): ... not here.
58695         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
58696         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
58697         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
58698         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
58699         necessary.
58700         * modules/string: New file.
58701         * modules/memmem (Files): Remove special-purpose include file.
58702         (Depends-on): Add string.
58703         (Include): Include <string.h>, not the removed file.
58704         * modules/mempcpy: Likewise.
58705         * modules/memrchr: Likewise.
58706         * modules/stpcpy: Likewise.
58707         * modules/stpncpy: Likewise.
58708         * modules/strcase: Likewise.
58709         * modules/strchrnul: Likewise.
58710         * modules/strdup: Likewise.
58711         * modules/strndup: Likewise.
58712         * modules/strnlen: Likewise.
58713         * modules/strpbrk: Likewise.
58714         * modules/strsep: Likewise.
58715         * modules/strstr: Likewise.
58716         * modules/strtok_r: Likewise.
58717         * tests/test-dirname.c: Don't include "strdup.h", since
58718         <string.h> now suffices.
58719         * tests/test-memmem.c: Don't include "memmem.h", since
58720         <string.h> now suffices.
58721
58722 2007-01-25  Bruno Haible  <bruno@clisp.org>
58723
58724         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
58725         *resultp is 0.
58726
58727         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
58728         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
58729         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
58730         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
58731
58732         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
58733         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
58734         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
58735         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
58736         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
58737         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
58738
58739 2007-01-24  Bruno Haible  <bruno@clisp.org>
58740
58741         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
58742         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
58743         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
58744         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
58745         gl_FUNC_FTS_CORE.
58746         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
58747         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
58748         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58749         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
58750         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
58751         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
58752         gl_FUNC_FCHOWNAT.
58753         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
58754         gl_FUNC_STRFTIME.
58755         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
58756         Reported by Ralf Wildenhues.
58757
58758 2007-01-24  Bruno Haible  <bruno@clisp.org>
58759
58760         Drop AC_REQUIRE calls that are redundant with the module dependencies.
58761         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
58762         gl_GETADDRINFO.
58763         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
58764         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
58765         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
58766
58767 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
58768
58769         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
58770         Don't use 'exit'; just return from 'main'.
58771         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
58772
58773         * lib/fnmatch_.h: Readjust white space and comments to match
58774         glibc, to avoid spurious diffs.
58775
58776 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58777
58778         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
58779         2004-12-01 change by Jakub Jelinek, since this code won't compile
58780         if !LIBC.  Problem reported by Bob Proulx.
58781
58782 2007-01-23  Bruno Haible  <bruno@clisp.org>
58783
58784         * lib/striconveh.c: Include c-strcaseeq.h.
58785         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
58786         * modules/striconveh (Depends-on): Add c-strcaseeq.
58787
58788 2007-01-23  Bruno Haible  <bruno@clisp.org>
58789
58790         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
58791
58792         * modules/c-strcaseeq: New file.
58793         * lib/c-strcaseeq.h: New file.
58794
58795         * modules/streq: New file.
58796         * lib/streq.h: New file.
58797
58798 2007-01-23  Bruno Haible  <bruno@clisp.org>
58799
58800         * modules/striconveha-tests: New file.
58801         * tests/test-striconveha.c: New file.
58802
58803         * lib/striconveha.h: Include <stdbool.h>.
58804         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
58805         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
58806         (mem_iconveha_notranslit): Renamed from mem_iconveha.
58807         (mem_iconveha): New function.
58808         (str_iconveha_notranslit): Renamed from str_iconveha.
58809         (str_iconveha): New function.
58810         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
58811         c-strcase.
58812
58813 2007-01-23  Bruno Haible  <bruno@clisp.org>
58814
58815         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
58816         encodings without forgiving before trying any encoding with handler.
58817         (str_iconveha): Try all encodings without forgiving before trying any
58818         encoding with handler.
58819
58820 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58821
58822         Import the following changes from libc.
58823
58824         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58825
58826         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
58827
58828         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58829
58830         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
58831         normal_bracket label.
58832
58833         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
58834
58835         [BZ #361]
58836         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
58837         to normal_bracket after fetching the next character.
58838
58839 2007-01-22  Bruno Haible  <bruno@clisp.org>
58840
58841         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
58842         argument.
58843         * lib/striconveh.c (iconv_carefully_1): New function.
58844         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
58845         argument.
58846         (str_cd_iconveh): Update.
58847         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
58848         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
58849         * tests/test-striconveh.c (MAGIC): New macro.
58850         (new_offsets): New function.
58851         (main): Test call with and without offsets.
58852
58853 2007-01-22  Bruno Haible  <bruno@clisp.org>
58854
58855         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
58856         * modules/sys_select (Makefile.am): Likewise.
58857         * modules/sys_socket (Makefile.am): Likewise.
58858         * modules/sys_time (Makefile.am): Likewise.
58859
58860 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58861
58862         * modules/gettimeofday (License): Change from GPL to LGPL, since
58863         gettimeofday is a library function.
58864
58865 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58866
58867         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
58868
58869 2007-01-21  Bruno Haible  <bruno@clisp.org>
58870
58871         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
58872
58873 2007-01-21  Bruno Haible  <bruno@clisp.org>
58874
58875         * modules/striconveha: New file.
58876         * lib/striconveha.h: New file.
58877         * lib/striconveha.c: New file.
58878         * MODULES.html.sh (Internationalization functions): Add striconveha.
58879         * lib/striconv.c (str_iconv): Optimize the case of an empty input
58880         string.
58881         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
58882
58883 2007-01-21  Bruno Haible  <bruno@clisp.org>
58884
58885         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
58886         * lib/striconveh.c (str_iconveh): Likewise.
58887
58888 2007-01-21  Bruno Haible  <bruno@clisp.org>
58889
58890         * lib/striconveh.h (mem_iconveh): New declaration.
58891         * lib/striconveh.c (mem_iconveh): New function.
58892         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
58893
58894 2007-01-21  Bruno Haible  <bruno@clisp.org>
58895
58896         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
58897
58898         * lib/striconveh.h (mem_cd_iconveh): Change specification.
58899         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
58900         original result buffer.
58901         (str_cd_iconveh): Update.
58902         * tests/test-striconveh.c (main): Update.
58903
58904         * lib/striconv.h (mem_cd_iconv): Change specification.
58905         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
58906         result buffer.
58907         (str_cd_iconv): Update.
58908         * tests/test-striconv.c (main): Update.
58909
58910 2007-01-21  Bruno Haible  <bruno@clisp.org>
58911
58912         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
58913
58914 2007-01-20  Jim Meyering  <jim@meyering.net>
58915
58916         * lib/userspec.c (parse_with_separator): If a user or group string
58917         starts with "+", skip the corresponding name-to-ID look-up, since
58918         such a look-up must fail: user and group names may not include "+".
58919
58920 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58921
58922         * lib/poll.c: Include sys/time.h and time.h unconditionally,
58923         since we now assume the sys_time module.
58924         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
58925         check for sys/time.h; no longer needed.
58926         * modules/poll (Depends-on): Depend on sys_time.
58927
58928 2007-01-18  Bruno Haible  <bruno@clisp.org>
58929
58930         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
58931         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58932
58933         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
58934         gettimeofday.
58935
58936         * tests/test-gettimeofday.c: Include <time.h>.
58937         (dummy): Remove variable.
58938
58939         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
58940         gl_HEADER_SYS_TIME_H.
58941         (gl_HEADER_SYS_TIME_H): New macro.
58942
58943         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
58944         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58945         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
58946         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
58947         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58948         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
58949         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
58950         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58951         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
58952         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
58953         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58954
58955         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
58956         last change; it caused a compilation error when cross-compiling to
58957         Cygwin.
58958
58959 2007-01-18  Jim Meyering  <jim@meyering.net>
58960
58961         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
58962         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
58963         than the race-prone "test -d sys || mkdir sys".
58964         (configure.ac): Use AC_PROG_MKDIR_P.
58965         * modules/sys_select: Likewise.
58966         * modules/sys_socket: Likewise.
58967         * modules/sys_time: Likewise.
58968
58969 2007-01-18  Eric Blake  <ebb9@byu.net>
58970
58971         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
58972         replace gettimeofday.
58973         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
58974         name, to avoid infinite recursion.
58975
58976 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
58977
58978         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
58979         module sys_time.
58980         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
58981         assume timespec.h defines struct timeval.
58982         * lib/settime.c: Likewise.
58983         * lib/utimens.c: Likewise.
58984         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
58985         since we now assume the gettimeofday module.
58986         * lib/tempname.c (__gen_tempname): Likewise.
58987         * lib/gettimeofday.h: Remove.
58988         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
58989         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
58990         Include <time.h>, for 'time()'.
58991         (localtime_buffer_addr): Also use this workaround if
58992         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
58993         to simplify the uses.  All uses changed.
58994         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
58995         that #undef is inside {}, and 'const' follows type name consistently.
58996         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
58997         (gettimeofday): Do not use the maximum possible value for
58998         tv->tv_usec, since that might break usages other than ls.c.
58999         Instead, we'll leave ls.c alone.  This undoes today's patch
59000         by Bruno.  Add a compile-time warning for 1s-clock resolution;
59001         we've never observed the problem but might as well keep the
59002         canary.
59003         * lib/nanosleep.c: Include timespec.h first, for interface check.
59004         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
59005         now assume the sys_time module.
59006         * lib/tempname.c: Likewise.
59007         * lib/timespec.h: Likewise.
59008         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
59009         needed.
59010         * lib/strftime.c: Likewise.
59011         * lib/timespec.h: Likewise.
59012         * lib/posixtm.c: Include posixtm.h first, for interface check.
59013         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
59014         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
59015         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
59016         * lib/sys_time_.h: New file.
59017         * lib/timespec.h (struct timespec): Use long int, not long.
59018         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59019         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
59020         Remove obsolescent call to AC_HEADER_TIME.
59021         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59022         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59023         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59024         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
59025         Likewise.
59026         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
59027         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
59028         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
59029         into the sys_time module.  Check for gettimeofday just once.
59030         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
59031         for gettimeofday signature to just check the signature.  Merely
59032         compile it, since linking doesn't test signature.  Improve test for
59033         whether gettimeofday.o is actually needed.
59034         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
59035         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
59036         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
59037         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59038         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
59039         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
59040         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
59041         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
59042         than worrying about sys/time.h.
59043         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59044         Don't bother worrying about TIME_WITH_SYS_TIME.
59045         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
59046         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
59047         * m4/sys_time_h.m4: New file.
59048         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
59049         Don't include sys/time.h.  Return from main rather than exiting.
59050         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
59051         all uses changed.
59052         * modules/gethrxtime (Depends-on): Add sys_time.
59053         * modules/gettime (Depends-on): Likewise.
59054         * modules/gettimeofday (Depends-on): Likewise.
59055         * modules/nanosleep (Depends-on): Likewise.
59056         * modules/settime (Depends-on): Likewise.
59057         * modules/tempname (Depends-on): Likewise.
59058         * modules/utimens (Depends-on): Likewise.
59059         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
59060         (Include): Change back to <sys/time.h>.
59061         (Maintainer): Add self.
59062         * modules/sys_time: New file.
59063         * modules/tempname (Depends-on): Add gettimeofday.
59064         * tests/test-gettimeofday.c: Include <sys/time.h>
59065         rather than gettimeofday.h.
59066
59067 2007-01-17  Bruno Haible  <bruno@clisp.org>
59068
59069         * gnulib-tool (func_get_license): Revert last patch. Instead, let
59070         the license default to GPL.
59071         (func_create_testdir): Don't complain if a module is LGPL and its
59072         tests module depends on GPLed modules.
59073
59074 2007-01-17  Bruno Haible  <bruno@clisp.org>
59075
59076         * lib/gettimeofday.c (gettimeofday): Add code for the case
59077         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
59078         maximum possible value for tv->tv_usec, rather than the minimum one.
59079
59080 2005-10-08  Martin Lambers  <marlam@marlam.de>
59081 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59082 2007-01-16  Bruno Haible  <bruno@clisp.org>
59083
59084         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
59085         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
59086         gl_FUNC_GETTIMEOFDAY.
59087         (Include): Add gettimeofday.h.
59088         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
59089         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
59090         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
59091         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
59092         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
59093         * lib/gettimeofday.h: New file.
59094         * lib/gettimeofday.c: Include <sys/timeb.h>.
59095         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
59096         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59097         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
59098         fall back on time().
59099
59100         * tests/test-gettimeofday.c: New file.
59101         * modules/gettimeofday-tests: New file.
59102
59103 2007-01-16  Eric Blake  <ebb9@byu.net>
59104
59105         * modules/fnmatch (Depends-on): Depend on wchar.
59106         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
59107         * m4/fnmatch.m4: Likewise.
59108         * modules/mbchar (Makefile.am): Assume <wchar.h>.
59109         * m4/mbchar.m4: Likewise.
59110         * modules/mbswidth (Depends-on): Depend on wchar.
59111         * lib/mbswidth.c: Assume <wchar.h>.
59112         * m4/mbswidth.m4: Likewise.
59113         * modules/quotearg (Depends-on): Depend on wchar.
59114         * lib/quotearg.c: Assume <wchar.h>.
59115         * m4/quotearg.m4: Likewise.
59116         * modules/regex (Depends-on): Depend on wchar.
59117         * lib/regex_internal.h: Assume <wchar.h>.
59118         * m4/regex.m4: Likewise.
59119         * modules/stdint (Depends-on): Depend on wchar.
59120         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
59121         * m4/stdint.m4: Likewise.
59122         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
59123         * modules/strftime (Depends-on): Depend on wchar.
59124         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
59125         * modules/strtol (Depends-on): Depend on wchar.
59126         * lib/strtol.c: Assume <wchar.h>.
59127         * modules/wcwidth (Depends-on): Depend on wchar.
59128         * lib/wcwidth.h: Assume <wchar.h>.
59129         * m4/wcwidth.m4: Likewise.
59130
59131 2007-01-16  Bruno Haible  <bruno@clisp.org>
59132
59133         * modules/csharpexec-script: New, created from...
59134         * modules/csharpexec: ... this.
59135
59136 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59137
59138         * modules/javaexec-script: New, created from...
59139         * modules/javaexec: ... this.
59140
59141 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59142
59143         * modules/poll (Dependencies): Add sys_select.
59144
59145 2007-01-15  Jim Meyering  <jim@meyering.net>
59146
59147         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
59148         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
59149         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
59150         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
59151
59152 2007-01-15  Bruno Haible  <bruno@clisp.org>
59153
59154         * modules/striconveh: New file.
59155         * lib/striconveh.h: New file.
59156         * lib/striconveh.c: New file.
59157         * MODULES.html.sh (Internationalization functions): Add striconveh.
59158
59159         * modules/striconveh-tests: New file.
59160         * tests/test-striconveh.c: New file.
59161
59162 2007-01-15  Bruno Haible  <bruno@clisp.org>
59163
59164         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
59165         not from GNU libiconv or GNU libc.
59166
59167 2007-01-15  Bruno Haible  <bruno@clisp.org>
59168
59169         * doc/gnulib-intro.texi (Copyright): Explain the different license
59170         terms for module descriptions, autoconf macros, tests, documentation.
59171
59172 2007-01-14  Bruno Haible  <bruno@clisp.org>
59173
59174         * modules/striconv-tests: New file.
59175         * tests/test-striconv.c: New file.
59176
59177 2007-01-14  Bruno Haible  <bruno@clisp.org>
59178
59179         * modules/iconv-tests: New file.
59180         * tests/test-iconv.c: New file.
59181
59182 2007-01-14  Bruno Haible  <bruno@clisp.org>
59183
59184         * gnulib-tool (func_get_license): For test modules, use the license of
59185         the main module.
59186
59187 2007-01-14  Bruno Haible  <bruno@clisp.org>
59188
59189         * modules/iconv (Include): Clarify that <iconv.h> can only be included
59190         if iconv is found to exist.
59191
59192 2007-01-14  Bruno Haible  <bruno@clisp.org>
59193
59194         * modules/c-ctype-tests: New file.
59195         * tests/test-c-ctype.c: New file.
59196
59197 2007-01-14  Bruno Haible  <bruno@clisp.org>
59198
59199         * modules/binary-io-tests: New file.
59200         * tests/test-binary-io.sh: New file.
59201         * tests/test-binary-io.c: New file.
59202
59203 2007-01-14  Bruno Haible  <bruno@clisp.org>
59204
59205         * modules/array-oset-tests: New file.
59206         * tests/test-array_oset.c: New file.
59207
59208 2007-01-14  Bruno Haible  <bruno@clisp.org>
59209
59210         * modules/array-list-tests: New file.
59211         * tests/test-array_list.c: New file.
59212
59213 2007-01-14  Bruno Haible  <bruno@clisp.org>
59214
59215         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
59216         and make.
59217         Reported by Simon Josefsson in
59218         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
59219
59220 2007-01-14  Bruno Haible  <bruno@clisp.org>
59221
59222         * modules/allocsa-tests: New file.
59223         * tests/test-allocsa.c: New file.
59224
59225 2007-01-14  Bruno Haible  <bruno@clisp.org>
59226
59227         * modules/fchdir (Depends-on): Add absolute-header.
59228         * modules/unistd (Depends-on): Likewise.
59229
59230 2006-12-30  Bruno Haible  <bruno@clisp.org>
59231
59232         * modules/fchdir: New file.
59233         * modules/unistd (Files): Add lib/unistd_.h.
59234         (Makefile.am): Generate unistd.h from unistd_.h.
59235         * lib/fchdir.c: New file.
59236         * lib/dirent_.h: New file.
59237         * lib/unistd_.h: New file.
59238         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
59239         * m4/fchdir.m4: New file.
59240         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
59241         (gl_HEADER_UNISTD): Invoke it.
59242         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
59243         function.
59244         * lib/backupfile.c (opendir, closedir): Undefine.
59245         * lib/chown.c (open, close): Undefine.
59246         * lib/clean-temp.c (open, close): Undefine.
59247         * lib/copy-file.c (open, close): Undefine.
59248         * lib/execute.c (open, close): Undefine.
59249         * lib/fsusage.c (open, close): Undefine.
59250         * lib/gc-gnulib.c (open, close): Undefine.
59251         * lib/getcwd.c (opendir, closedir): Undefine.
59252         * lib/glob.c (opendir, closedir): Undefine.
59253         * lib/javacomp.c (open, close): Undefine.
59254         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
59255         * lib/openat-proc.c (open, close): Undefine.
59256         * lib/pagealign_alloc.c (open, close): Undefine.
59257         * lib/pipe.c (open, close): Undefine.
59258         * lib/progreloc.c (open, close): Undefine.
59259         * lib/savedir.c (opendir, closedir): Undefine.
59260         * lib/utime.c (open, close): Undefine.
59261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
59262
59263 2007-01-10  Bruno Haible  <bruno@clisp.org>
59264
59265         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
59266
59267 2007-01-12  Eric Blake  <ebb9@byu.net>
59268
59269         Provide a robust <wchar.h>.  Further simplifications are now
59270         possible in other modules, but not included here.
59271         * modules/wchar: New module.
59272         * m4/wchar.m4: New file.
59273         * lib/wchar_.h: Likewise.
59274         * modules/mbchar (Depends-on): Depend on wchar, as the first use
59275         of the new module.
59276         * MODULES.html.sh (Extended multibyte and wide character utilities):
59277         New section.
59278
59279 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
59280
59281         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
59282         to a reasonable default for memory allocation.
59283         (xreadlink): Don't allocate a huge buffer, to work around a buggy
59284         file system that reports garbage st_size values for symlinks.
59285         Problem reported by Liyang Hu.
59286
59287 2007-01-11  Simon Josefsson  <simon@josefsson.org>
59288
59289         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
59290         Emacs .#* auto-save files).
59291
59292 2007-01-11  Bruno Haible  <bruno@clisp.org>
59293
59294         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
59295         directory.
59296
59297 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59298
59299         Use @...@ consistently in lib/wctype_.h.
59300         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
59301         on it being set to 1 or 0.
59302         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
59303         go back to AC_SUBSTing it.
59304         * modules/wctype (Makefile.am): Undo previous change.
59305
59306 2007-01-10  Eric Blake  <ebb9@byu.net>
59307
59308         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59309         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59310         * modules/wctype (Makefile.am): Likewise.
59311         Reported by Chris McGuire.
59312
59313 2007-01-10  Jim Meyering  <jim@meyering.net>
59314
59315         fts.c: a small readability/maintainability improvement
59316         * lib/fts.c (fts_read): Make this code slightly more readable and
59317         maintainable by hoisting the "sp->fts_cur = p" assignments to
59318         immediately follow the statements that set P.  Derived from
59319         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59320
59321 2007-01-10  Eric Blake  <ebb9@byu.net>
59322
59323         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59324         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59325         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59326         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59327         Reported by Chris McGuire.
59328
59329 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59330
59331         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59332         in sed script.
59333
59334 2007-01-09  Bruno Haible  <bruno@clisp.org>
59335
59336         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59337         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59338         variables.
59339         (func_module): Use them.
59340
59341 2007-01-09  Bruno Haible  <bruno@clisp.org>
59342
59343         * modules/unistr/base: New file.
59344         * lib/unistr.h: New file.
59345
59346         * modules/unistr/u8-to-u16: New file.
59347         * lib/unistr/u8-to-u16.c: New file.
59348
59349         * modules/unistr/u8-to-u32: New file.
59350         * lib/unistr/u8-to-u32.c: New file.
59351
59352         * modules/unistr/u16-to-u8: New file.
59353         * lib/unistr/u16-to-u8.c: New file.
59354
59355         * modules/unistr/u16-to-u32: New file.
59356         * lib/unistr/u16-to-u32.c: New file.
59357
59358         * modules/unistr/u32-to-u8: New file.
59359         * lib/unistr/u32-to-u8.c: New file.
59360
59361         * modules/unistr/u32-to-u16: New file.
59362         * lib/unistr/u32-to-u16.c: New file.
59363
59364         * modules/unistr/u8-check: New file.
59365         * modules/unistr/u16-check: New file.
59366         * modules/unistr/u32-check: New file.
59367         * lib/unistr/u8-check.c: New file.
59368         * lib/unistr/u16-check.c: New file.
59369         * lib/unistr/u32-check.c: New file.
59370
59371         * modules/unistr/u8-chr: New file.
59372         * modules/unistr/u16-chr: New file.
59373         * modules/unistr/u32-chr: New file.
59374         * lib/unistr/u8-chr.c: New file.
59375         * lib/unistr/u16-chr.c: New file.
59376         * lib/unistr/u32-chr.c: New file.
59377
59378         * modules/unistr/u8-cmp: New file.
59379         * modules/unistr/u16-cmp: New file.
59380         * modules/unistr/u32-cmp: New file.
59381         * lib/unistr/u8-cmp.c: New file.
59382         * lib/unistr/u16-cmp.c: New file.
59383         * lib/unistr/u32-cmp.c: New file.
59384
59385         * modules/unistr/u8-cpy: New file.
59386         * modules/unistr/u16-cpy: New file.
59387         * modules/unistr/u32-cpy: New file.
59388         * lib/unistr/u8-cpy.c: New file.
59389         * lib/unistr/u16-cpy.c: New file.
59390         * lib/unistr/u32-cpy.c: New file.
59391         * lib/unistr/u-cpy.h: New file.
59392
59393         * modules/unistr/u8-cpy-alloc: New file.
59394         * modules/unistr/u16-cpy-alloc: New file.
59395         * modules/unistr/u32-cpy-alloc: New file.
59396         * lib/unistr/u8-cpy-alloc.c: New file.
59397         * lib/unistr/u16-cpy-alloc.c: New file.
59398         * lib/unistr/u32-cpy-alloc.c: New file.
59399         * lib/unistr/u-cpy-alloc.h: New file.
59400
59401         * modules/unistr/u8-endswith: New file.
59402         * modules/unistr/u16-endswith: New file.
59403         * modules/unistr/u32-endswith: New file.
59404         * lib/unistr/u8-endswith.c: New file.
59405         * lib/unistr/u16-endswith.c: New file.
59406         * lib/unistr/u32-endswith.c: New file.
59407         * lib/unistr/u-endswith.h: New file.
59408
59409         * modules/unistr/u8-mblen: New file.
59410         * modules/unistr/u16-mblen: New file.
59411         * modules/unistr/u32-mblen: New file.
59412         * lib/unistr/u8-mblen.c: New file.
59413         * lib/unistr/u16-mblen.c: New file.
59414         * lib/unistr/u32-mblen.c: New file.
59415
59416         * modules/unistr/u8-mbtouc: New file.
59417         * modules/unistr/u16-mbtouc: New file.
59418         * modules/unistr/u32-mbtouc: New file.
59419         * lib/unistr/u8-mbtouc.c: New file.
59420         * lib/unistr/u16-mbtouc.c: New file.
59421         * lib/unistr/u32-mbtouc.c: New file.
59422
59423         * modules/unistr/u8-mbtouc-safe: New file.
59424         * modules/unistr/u16-mbtouc-safe: New file.
59425         * modules/unistr/u32-mbtouc-safe: New file.
59426         * lib/unistr/u8-mbtouc-safe.c: New file.
59427         * lib/unistr/u16-mbtouc-safe.c: New file.
59428         * lib/unistr/u32-mbtouc-safe.c: New file.
59429
59430         * modules/unistr/u8-move: New file.
59431         * modules/unistr/u16-move: New file.
59432         * modules/unistr/u32-move: New file.
59433         * lib/unistr/u8-move.c: New file.
59434         * lib/unistr/u16-move.c: New file.
59435         * lib/unistr/u32-move.c: New file.
59436         * lib/unistr/u-move.h: New file.
59437
59438         * modules/unistr/u8-next: New file.
59439         * modules/unistr/u16-next: New file.
59440         * modules/unistr/u32-next: New file.
59441         * lib/unistr/u8-next.c: New file.
59442         * lib/unistr/u16-next.c: New file.
59443         * lib/unistr/u32-next.c: New file.
59444
59445         * modules/unistr/u8-prev: New file.
59446         * modules/unistr/u16-prev: New file.
59447         * modules/unistr/u32-prev: New file.
59448         * lib/unistr/u8-prev.c: New file.
59449         * lib/unistr/u16-prev.c: New file.
59450         * lib/unistr/u32-prev.c: New file.
59451
59452         * modules/unistr/u8-set: New file.
59453         * modules/unistr/u16-set: New file.
59454         * modules/unistr/u32-set: New file.
59455         * lib/unistr/u8-set.c: New file.
59456         * lib/unistr/u16-set.c: New file.
59457         * lib/unistr/u32-set.c: New file.
59458         * lib/unistr/u-set.h: New file.
59459
59460         * modules/unistr/u8-startswith: New file.
59461         * modules/unistr/u16-startswith: New file.
59462         * modules/unistr/u32-startswith: New file.
59463         * lib/unistr/u8-startswith.c: New file.
59464         * lib/unistr/u16-startswith.c: New file.
59465         * lib/unistr/u32-startswith.c: New file.
59466         * lib/unistr/u-startswith.h: New file.
59467
59468         * modules/unistr/u8-stpcpy: New file.
59469         * modules/unistr/u16-stpcpy: New file.
59470         * modules/unistr/u32-stpcpy: New file.
59471         * lib/unistr/u8-stpcpy.c: New file.
59472         * lib/unistr/u16-stpcpy.c: New file.
59473         * lib/unistr/u32-stpcpy.c: New file.
59474         * lib/unistr/u-stpcpy.h: New file.
59475
59476         * modules/unistr/u8-stpncpy: New file.
59477         * modules/unistr/u16-stpncpy: New file.
59478         * modules/unistr/u32-stpncpy: New file.
59479         * lib/unistr/u8-stpncpy.c: New file.
59480         * lib/unistr/u16-stpncpy.c: New file.
59481         * lib/unistr/u32-stpncpy.c: New file.
59482         * lib/unistr/u-stpncpy.h: New file.
59483
59484         * modules/unistr/u8-strcat: New file.
59485         * modules/unistr/u16-strcat: New file.
59486         * modules/unistr/u32-strcat: New file.
59487         * lib/unistr/u8-strcat.c: New file.
59488         * lib/unistr/u16-strcat.c: New file.
59489         * lib/unistr/u32-strcat.c: New file.
59490         * lib/unistr/u-strcat.h: New file.
59491
59492         * modules/unistr/u8-strchr: New file.
59493         * modules/unistr/u16-strchr: New file.
59494         * modules/unistr/u32-strchr: New file.
59495         * lib/unistr/u8-strchr.c: New file.
59496         * lib/unistr/u16-strchr.c: New file.
59497         * lib/unistr/u32-strchr.c: New file.
59498
59499         * modules/unistr/u8-strcmp: New file.
59500         * modules/unistr/u16-strcmp: New file.
59501         * modules/unistr/u32-strcmp: New file.
59502         * lib/unistr/u8-strcmp.c: New file.
59503         * lib/unistr/u16-strcmp.c: New file.
59504         * lib/unistr/u32-strcmp.c: New file.
59505
59506         * modules/unistr/u8-strcpy: New file.
59507         * modules/unistr/u16-strcpy: New file.
59508         * modules/unistr/u32-strcpy: New file.
59509         * lib/unistr/u8-strcpy.c: New file.
59510         * lib/unistr/u16-strcpy.c: New file.
59511         * lib/unistr/u32-strcpy.c: New file.
59512         * lib/unistr/u-strcpy.h: New file.
59513
59514         * modules/unistr/u8-strcspn: New file.
59515         * modules/unistr/u16-strcspn: New file.
59516         * modules/unistr/u32-strcspn: New file.
59517         * lib/unistr/u8-strcspn.c: New file.
59518         * lib/unistr/u16-strcspn.c: New file.
59519         * lib/unistr/u32-strcspn.c: New file.
59520         * lib/unistr/u-strcspn.h: New file.
59521
59522         * modules/unistr/u8-strdup: New file.
59523         * modules/unistr/u16-strdup: New file.
59524         * modules/unistr/u32-strdup: New file.
59525         * lib/unistr/u8-strdup.c: New file.
59526         * lib/unistr/u16-strdup.c: New file.
59527         * lib/unistr/u32-strdup.c: New file.
59528         * lib/unistr/u-strdup.h: New file.
59529
59530         * modules/unistr/u8-strlen: New file.
59531         * modules/unistr/u16-strlen: New file.
59532         * modules/unistr/u32-strlen: New file.
59533         * lib/unistr/u8-strlen.c: New file.
59534         * lib/unistr/u16-strlen.c: New file.
59535         * lib/unistr/u32-strlen.c: New file.
59536         * lib/unistr/u-strlen.h: New file.
59537
59538         * modules/unistr/u8-strmblen: New file.
59539         * modules/unistr/u16-strmblen: New file.
59540         * modules/unistr/u32-strmblen: New file.
59541         * lib/unistr/u8-strmblen.c: New file.
59542         * lib/unistr/u16-strmblen.c: New file.
59543         * lib/unistr/u32-strmblen.c: New file.
59544
59545         * modules/unistr/u8-strmbtouc: New file.
59546         * modules/unistr/u16-strmbtouc: New file.
59547         * modules/unistr/u32-strmbtouc: New file.
59548         * lib/unistr/u8-strmbtouc.c: New file.
59549         * lib/unistr/u16-strmbtouc.c: New file.
59550         * lib/unistr/u32-strmbtouc.c: New file.
59551
59552         * modules/unistr/u8-strncat: New file.
59553         * modules/unistr/u16-strncat: New file.
59554         * modules/unistr/u32-strncat: New file.
59555         * lib/unistr/u8-strncat.c: New file.
59556         * lib/unistr/u16-strncat.c: New file.
59557         * lib/unistr/u32-strncat.c: New file.
59558         * lib/unistr/u-strncat.h: New file.
59559
59560         * modules/unistr/u8-strncmp: New file.
59561         * modules/unistr/u16-strncmp: New file.
59562         * modules/unistr/u32-strncmp: New file.
59563         * lib/unistr/u8-strncmp.c: New file.
59564         * lib/unistr/u16-strncmp.c: New file.
59565         * lib/unistr/u32-strncmp.c: New file.
59566
59567         * modules/unistr/u8-strncpy: New file.
59568         * modules/unistr/u16-strncpy: New file.
59569         * modules/unistr/u32-strncpy: New file.
59570         * lib/unistr/u8-strncpy.c: New file.
59571         * lib/unistr/u16-strncpy.c: New file.
59572         * lib/unistr/u32-strncpy.c: New file.
59573         * lib/unistr/u-strncpy.h: New file.
59574
59575         * modules/unistr/u8-strnlen: New file.
59576         * modules/unistr/u16-strnlen: New file.
59577         * modules/unistr/u32-strnlen: New file.
59578         * lib/unistr/u8-strnlen.c: New file.
59579         * lib/unistr/u16-strnlen.c: New file.
59580         * lib/unistr/u32-strnlen.c: New file.
59581         * lib/unistr/u-strnlen.h: New file.
59582
59583         * modules/unistr/u8-strpbrk: New file.
59584         * modules/unistr/u16-strpbrk: New file.
59585         * modules/unistr/u32-strpbrk: New file.
59586         * lib/unistr/u8-strpbrk.c: New file.
59587         * lib/unistr/u16-strpbrk.c: New file.
59588         * lib/unistr/u32-strpbrk.c: New file.
59589         * lib/unistr/u-strpbrk.h: New file.
59590
59591         * modules/unistr/u8-strrchr: New file.
59592         * modules/unistr/u16-strrchr: New file.
59593         * modules/unistr/u32-strrchr: New file.
59594         * lib/unistr/u8-strrchr.c: New file.
59595         * lib/unistr/u16-strrchr.c: New file.
59596         * lib/unistr/u32-strrchr.c: New file.
59597
59598         * modules/unistr/u8-strspn: New file.
59599         * modules/unistr/u16-strspn: New file.
59600         * modules/unistr/u32-strspn: New file.
59601         * lib/unistr/u8-strspn.c: New file.
59602         * lib/unistr/u16-strspn.c: New file.
59603         * lib/unistr/u32-strspn.c: New file.
59604         * lib/unistr/u-strspn.h: New file.
59605
59606         * modules/unistr/u8-strstr: New file.
59607         * modules/unistr/u16-strstr: New file.
59608         * modules/unistr/u32-strstr: New file.
59609         * lib/unistr/u8-strstr.c: New file.
59610         * lib/unistr/u16-strstr.c: New file.
59611         * lib/unistr/u32-strstr.c: New file.
59612         * lib/unistr/u-strstr.h: New file.
59613
59614         * modules/unistr/u8-strtok: New file.
59615         * modules/unistr/u16-strtok: New file.
59616         * modules/unistr/u32-strtok: New file.
59617         * lib/unistr/u8-strtok.c: New file.
59618         * lib/unistr/u16-strtok.c: New file.
59619         * lib/unistr/u32-strtok.c: New file.
59620         * lib/unistr/u-strtok.h: New file.
59621
59622         * modules/unistr/u8-uctomb: New file.
59623         * modules/unistr/u16-uctomb: New file.
59624         * modules/unistr/u32-uctomb: New file.
59625         * lib/unistr/u8-uctomb.c: New file.
59626         * lib/unistr/u16-uctomb.c: New file.
59627         * lib/unistr/u32-uctomb.c: New file.
59628
59629         * MODULES.html.sh (Unicode string functions): Add the new modules.
59630
59631 2007-01-08  Bruno Haible  <bruno@clisp.org>
59632
59633         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59634         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59635         subdirectories.
59636
59637 2007-01-08  Karl Berry  <karl@gnu.org>
59638
59639         * doc/error.texi: mention that main() fns must set program_name
59640         when progname is used.
59641
59642 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59643
59644         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59645         WCTYPE_H is empty, for the benefit of builds from non-distclean
59646         directories.  Problem reported by Eric Blake in
59647         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59648
59649 2007-01-08  Bruno Haible  <bruno@clisp.org>
59650
59651         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59652         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59653         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59654         PROVIDE_CANONICALIZE_FILENAME_MODE.
59655         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59656
59657 2007-01-08  Bruno Haible  <bruno@clisp.org>
59658
59659         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59660         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59661         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59662         * lib/fts.c: Likewise.
59663         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59664
59665 2006-12-25  Bruno Haible  <bruno@clisp.org>
59666
59667         * modules/utf8-ucs4-safe: New file.
59668         * lib/utf8-ucs4-safe.h: New file.
59669         * lib/unistr/utf8-ucs4-safe.c: New file.
59670
59671         * modules/utf16-ucs4-safe: New file.
59672         * lib/utf16-ucs4-safe.h: New file.
59673         * lib/unistr/utf16-ucs4-safe.c: New file.
59674
59675         * MODULES.html.sh (Unicode string functions): Add the new modules.
59676
59677 2007-01-08  Bruno Haible  <bruno@clisp.org>
59678
59679         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59680         (Depends-on): Add unitypes.
59681         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59682         (u8_mbtouc_aux): Move out to separate file.
59683         (u8_mbtouc): Use ucs4_t, uint8_t types.
59684         * lib/unistr/utf8-ucs4.c: New file.
59685
59686         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59687         (Depends-on): Add unitypes.
59688         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59689         (u16_mbtouc_aux): Move out to separate file.
59690         (u16_mbtouc): Use ucs4_t, uint16_t types.
59691         * lib/unistr/utf16-ucs4.c: New file.
59692
59693         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
59694         (Depends-on): Add unitypes.
59695         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
59696         (u8_uctomb_aux): Move out to separate file.
59697         (u8_uctomb): Use ucs4_t, uint8_t types.
59698         * lib/unistr/ucs4-utf8.c: New file.
59699
59700         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
59701         (Depends-on): Add unitypes.
59702         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
59703         (u16_uctomb_aux): Move out to separate file.
59704         (u16_uctomb): Use ucs4_t, uint16_t types.
59705         * lib/unistr/ucs4-utf16.c: New file.
59706
59707 2006-12-25  Bruno Haible  <bruno@clisp.org>
59708
59709         * modules/unitypes: New file.
59710         * lib/unitypes.h: New file.
59711         * MODULES.html.sh (func_all_modules): New section "Unicode string
59712         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
59713         this section. Add unitypes.
59714
59715 2007-01-08  Bruno Haible  <bruno@clisp.org>
59716
59717         Avoid variable names that conflict with those from libtool.
59718         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
59719         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
59720         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
59721         library_names_spec to acl_library_names_spec, hardcode_* to
59722         acl_hardcode_*.
59723         Reported by Ralf Wildenhues.
59724
59725 2007-01-08  Bruno Haible  <bruno@clisp.org>
59726
59727         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
59728         definition.
59729         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
59730         definition.
59731         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
59732         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
59733         definition.
59734         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
59735         definition.
59736         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
59737         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
59738         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
59739         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
59740         definition.
59741         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
59742         definition.
59743         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
59744         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
59745         GC_USE_<algorithm>.
59746         * lib/gc-libgcrypt.c: Likewise.
59747         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
59748         * modules/gc-arctwo (configure.ac): Likewise.
59749         * modules/gc-des (configure.ac): Likewise.
59750         * modules/gc-hmac-md5 (configure.ac): Likewise.
59751         * modules/gc-hmac-sha1 (configure.ac): Likewise.
59752         * modules/gc-md2 (configure.ac): Likewise.
59753         * modules/gc-md4 (configure.ac): Likewise.
59754         * modules/gc-md5 (configure.ac): Likewise.
59755         * modules/gc-random (configure.ac): Likewise.
59756         * modules/gc-rijndael (configure.ac): Likewise.
59757         * modules/gc-sha1 (configure.ac): Likewise.
59758
59759 2007-01-08  Bruno Haible  <bruno@clisp.org>
59760
59761         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
59762         macro definition.
59763         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
59764         definition.
59765         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
59766         definition.
59767         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
59768         * modules/fcntl-safer (configure.ac): Likewise.
59769         * modules/fopen-safer (configure.ac): Likewise.
59770         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
59771         GNULIB_FWRITEERROR macro definition.
59772
59773 2007-01-08  Bruno Haible  <bruno@clisp.org>
59774
59775         * m4/gnulib-common.m4: New file.
59776         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
59777         (func_get_filelist): Add m4/gnulib-common.m4.
59778
59779 2007-01-08  Bruno Haible  <bruno@clisp.org>
59780
59781         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
59782         command.
59783
59784 2007-01-08  Jim Meyering  <jim@meyering.net>
59785
59786         Use a more robust test for a "can't happen" condition.
59787         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
59788         narrowed the st_size value.  Presuming the "can't happen" condition
59789         is true, that narrowing could conceivably convert an invalid st_size
59790         value into a valid one.  Instead, use a change based on Matthew
59791         Woehlke's original patch.
59792
59793         Slight readability improvement: use an assert-like macro
59794         in place of literal "abort ()" uses.
59795         * lib/fts.c (fts_assert): Define.
59796         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
59797         Use this macro instead of a bare 'abort'.
59798
59799 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
59800
59801         Don't worry about using IRIX 5.3's wctype.h broken definitions;
59802         simply work around them.
59803         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
59804         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
59805         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
59806         declaring.
59807         Don't bother to define as macros, since the standard doesn't require it.
59808         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
59809         longer worry about IRIX 5.3.
59810         (HAVE_WCTYPE_CTMP_BUG): Remove.
59811
59812 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59813
59814         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
59815         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
59816         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59817         Problems reported by Georg Schwarz for IRIX 5.3.
59818
59819         * gnulib-tool (autoconf_minversion): Take the maximum version number
59820         found, not the minimum.  Problem reported by James Youngman.
59821
59822 2007-01-03  Karl Berry  <karl@gnu.org>
59823
59824         * doc/error.texi: new file, explaining interaction with progname.
59825         * doc/gnulib.texi: include it.  Update copyright.
59826
59827 2007-01-03  Simon Josefsson  <simon@josefsson.org>
59828
59829         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
59830         AC_CANONICAL_HOST, to improve autobuild outputs.
59831
59832 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
59833             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59834
59835         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
59836         sockets, server sockets, and other file descriptors.  Count errors
59837         to compute the return value.  Reorder the code a bit to be easier
59838         to follow.  Don't set event bits that were not requested (except
59839         POLLERR and POLLHUP).
59840
59841 2007-01-01  Bruno Haible  <bruno@clisp.org>
59842
59843         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
59844
59845 2007-01-03  Jim Meyering  <jim@meyering.net>
59846
59847         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
59848
59849 2007-01-02  Bruno Haible  <bruno@clisp.org>
59850
59851         * modules/settime (Include): Require timespec.h.
59852         * modules/nanosleep (Include): Likewise.
59853
59854 2007-01-01  Bruno Haible  <bruno@clisp.org>
59855
59856         * gnulib-tool (func_emit_copyright_notice): Bump year.
59857         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
59858
59859 2007-01-01  Bruno Haible  <bruno@clisp.org>
59860
59861         Improve support for OpenBSD.
59862         * build-aux/config.rpath (libname_spec): Export.
59863         (library_names_spec): New variable. Export.
59864         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
59865         library_names_spec from the config.rpath output. Locate shared library
59866         through the name pattern in library_names_spec.
59867
59868 2007-01-01  Eric Blake  <ebb9@byu.net>
59869
59870         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
59871
59872 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
59873
59874         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
59875         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
59876         assume the C locale, and avoid an "eval" that could cause trouble.
59877         Problem with SORT reported by Bob Proulx.
59878
59879         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
59880         Define.  Trivial patch from Henning Nielsen Lund, originally
59881         sent to bug-grep@gnu.org today.
59882
59883 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59884
59885         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
59886         struct stat.  Problem reported by Henning Nielsen Lund.
59887         * lib/acl.c: Include acl.h first, to check interface.  Don't
59888         bother to include sys/types.h and sys/stat.h again.
59889
59890 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59891
59892         Import the following change from libc; problem reported by
59893         Sven Verdoolaege.
59894
59895         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
59896
59897         [BZ #1373]
59898         * lib/argp.h: Remove __NTH for __argp_usage inline function.
59899
59900 2006-12-28  Jim Meyering  <jim@meyering.net>
59901
59902         * build-aux/announce-gen: Do not assume that the package
59903         builds any of tar.gz, tar.bz2, and .xdelta files.
59904         Suggestion from Simon Josefsson.
59905
59906 2006-12-28  Simon Josefsson  <simon@josefsson.org>
59907
59908         * modules/announce-gen: New file.
59909
59910 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
59911
59912         * lib/mbchar.h: Just include <wctype.h>; the wctype module
59913         handles its gotchas now.
59914         * lib/mbswidth.c: Likewise.
59915         * lib/wcwidth.h: Likewise.
59916         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
59917         and iswcntrl; the wctype module does this stuff now.
59918         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59919         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59920         * modules/mbchar (Depends-on): Add wctype.
59921         * modules/mbswidth (Depends-on): Likewise.
59922         * modules/wcwidth (Depends-on): Likewise.
59923
59924 2006-12-27  Eric Blake  <ebb9@byu.net>
59925
59926         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
59927         module uses more than what <wctype.h> is required to provide.
59928
59929 2006-12-26  Eric Blake  <ebb9@byu.net>
59930
59931         * gnulib-tool (sed_extract_prog): Avoid space-tab.
59932
59933 2006-12-26  Eric Blake  <ebb9@byu.net>
59934
59935         * modules/absolute-header: New module.
59936         * modules/fcntl (Depends-on): Depend on it.
59937         * modules/inttypes (Depends-on): Likewise.
59938         * modules/stdint (Depends-on): Likewise.
59939         * modules/sys_stat (Depends-on): Likewise.
59940         * modules/wctype (Depends-on): Likewise.
59941         * MODULES.html.sh (Support for building libraries and
59942         executables): Document it.
59943
59944 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59945
59946         * gnulib-tool (SED): Remove, undoing previous change.
59947         The problem was that it broke coreutils on Solaris, because
59948         "sed --posix" leaked into a makefile.
59949         (sed): New alias, if 'alias' and GNU sed.
59950
59951 2006-12-24  Jim Meyering  <jim@meyering.net>
59952
59953         Work around an fchownat bug in glibc-2.4:
59954         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
59955         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
59956         in spite of the -P option.
59957         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
59958         New macros.
59959         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
59960         * modules/openat (Files): Add lib/fchownat.c.
59961         * lib/openat.c (fchownat): Don't define here.  Move to...
59962         * lib/fchownat.c: ...this new file.
59963
59964 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59965
59966         Fix bug reported by Bruno Haible in
59967         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
59968         where quotearg.c didn't compile on Mac OS X 10.2 because it
59969         lacks <wchar.h> and wint_t.
59970         * lib/wctype_.h (__wctype_wint_t): New type.
59971         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
59972         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
59973         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
59974         Arg is now of type __wctype_wint_t, not wint_t.
59975         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
59976         substitute HAVE_WINT_T.
59977         * modules/wctype (Files): Add m4/wint_t.m4.
59978         (wctype.h): Substitute HAVE_WINT_T.
59979
59980 2006-12-23  Bruno Haible  <bruno@clisp.org>
59981
59982         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
59983
59984 2006-12-23  Bruno Haible  <bruno@clisp.org>
59985
59986         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
59987         S_ISLNK.
59988         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
59989         mingw.
59990
59991 2006-12-22  Bruno Haible  <bruno@clisp.org>
59992
59993         * lib/copy-file.c: Include acl.h.
59994         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
59995         Close the file descriptors only after being done with copy_acl.
59996         * modules/copy-file (Depends-on): Add acl.
59997
59998 2006-12-22  Bruno Haible  <bruno@clisp.org>
59999
60000         * gnulib-tool (SED): New variable.
60001         Use $SED instead of sed everywhere.
60002
60003 2006-12-22  Bruno Haible  <bruno@clisp.org>
60004
60005         * modules/no-c++: New file.
60006         * m4/no-c++.m4: New file.
60007         * MODULES.html.sh (Support for building libraries and executables):
60008         Add no-c++.
60009
60010 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
60011
60012         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60013         Include <limits.h>, and use its INT_MAX to rewrite the
60014         j loop so that it does not overflow 'int'.  Problem reported by
60015         Ralf Wildenhues in
60016         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
60017         Play it safe by shifting left by 1 rather than multiplying by 2,
60018         as GCC is less likely to optimize this away when the value
60019         is signed (when it assumes overflow leads to undefined behavior).
60020         Also, don't assume time_t uses two's complement.
60021
60022 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
60023
60024         * MODULES.html.sh: New module wctype.
60025         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
60026         * lib/fnmatch.c: Don't bother to include <wchar.h> before
60027         <wctype.h>, since the new wctype module should fix this.
60028         * lib/quotearg.c: Include <wctype.h> unconditionally, since
60029         the wctype module should arrange for it.
60030         * lib/regex_internal.h: Likewise.
60031         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
60032         since the wctype module should handle this now.
60033         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
60034         * modules/fnmatch (Depends-on): Add wctype.
60035         * modules/quotearg (Depends-on): Likewise.
60036         * modules/regex (Depends-on): Likewise.
60037
60038 2006-12-19  Bruno Haible  <bruno@clisp.org>
60039
60040         * lib/strdup.h [C++]: Wrap definitions in extern "C".
60041         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
60042
60043 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60044
60045         * modules/savewd (Depends-on): Fix dependency on fcntl.
60046
60047 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60048
60049         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
60050         conforms to C99, rather than relying on the user's environment
60051         setting of STDINT_H.
60052
60053 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60054         and Eric Blake  <ebb9@byu.net>
60055
60056         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
60057         This is more consistent with the other defines here.
60058         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
60059         Port to z/OS.  Problem reported by Paul Gilmartin.
60060         Change local vars to use gl_ prefix rather than ac_.
60061         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
60062         with other defines.
60063         * modules/double-slash-root: New module.
60064         * modules/dirname (Files): Remove m4/double-slash-root.m4.
60065         (Depends-on): Add double-slash-root.
60066         * MODULES.html.sh (File system functions): Mention new module.
60067
60068 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
60069
60070         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
60071         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
60072         This is for the benefit of gzip, which doesn't do i18n.
60073
60074 2006-12-12  Jim Meyering  <jim@meyering.net>
60075
60076         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
60077         Reported by Andreas Schwab <schwab@suse.de>.
60078
60079 2006-12-12  Bruno Haible  <bruno@clisp.org>
60080
60081         Merge these changes.
60082         2006-09-05  Bruno Haible  <bruno@clisp.org>
60083         * lib/iconvme.c (iconv_string): No need to save and restore errno when
60084         iconv_alloc succeeded.
60085         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
60086         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
60087         test for " && dest " at the end - dest is always != NULL there. Call
60088         iconv with 4xNULL arguments initially, to reset the state. Call iconv
60089         with 2xNULL arguments, also to flush the state storage. Handle the
60090         IRIX iconv behaviour. Realloc the final result, to throw away unused
60091         memory.
60092
60093 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
60094
60095         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
60096         and fchmodat unconditionally, since glibc 2.4 has them.
60097         Problem reported by Arkadiusz Miskiewicz.
60098
60099 2006-12-10  Bruno Haible  <bruno@clisp.org>
60100
60101         * gnulib-tool (func_import): Show the include files only for those
60102         modules that are copied and specified.
60103         Reported by Karl Berry.
60104
60105 2006-12-08  Jim Meyering  <jim@meyering.net>
60106
60107         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
60108         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
60109
60110         * build-aux/announce-gen: Add two new options, both optional:
60111         --bootstrap-tools=TOOL_LIST
60112               a comma-separated list of tools, e.g.,
60113               autoconf,automake,bison,gnulib
60114         --gnulib-snapshot-date=DATE
60115               if gnulib is in the bootstrap tool list,
60116               then report this as the snapshot date.
60117               If not specified, use the current date/time.
60118               If you specify a date here, be sure it's UTC.
60119
60120 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60121
60122         * tests/test-argp-2.sh: Fix test to match actual output.
60123         (func_compare): Fix sed script to be portable.
60124
60125 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
60126
60127         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
60128         workaround for this case.  It is not autoconfigured now; offhand
60129         it's hard to see how to autoconfigure it.
60130
60131 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60132
60133         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
60134         a directory that is about to be chowned.  Such a directory's
60135         initial file permissions should permit the owner only and this
60136         should not be changed until after the chown, since the group and
60137         other bits would be incorrect if they granted permission before
60138         the chown.
60139
60140         Fix porting problem for iswctype reported by Georg Schwarz in:
60141         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
60142         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
60143         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
60144         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
60145         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60146
60147 2006-12-03  Jim Meyering  <jim@meyering.net>
60148
60149         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
60150         p->fts_statp may not yet be defined.
60151         (fts_read): Instead, set it in the caller, once p->fts_statp is
60152         sure to be defined, and corresponds to a top-level directory.
60153         This bug made du -x fail.  Here's the coreutils test case:
60154         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
60155         Reported by Mike Frysinger.
60156
60157 2006-12-01  Jim Meyering  <jim@meyering.net>
60158
60159         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
60160         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
60161         Reported by Simon Josefsson.
60162
60163 2006-11-30  Jim Meyering  <jim@meyering.net>
60164
60165         * m4/warning.m4: Use the all-permissive copyright notice
60166         recommended by RMS (rather than LGPL).
60167         * m4/vararrays.m4: Likewise.
60168         * m4/flexmember.m4: Likewise.
60169
60170 2006-11-29  Bruno Haible  <bruno@clisp.org>
60171
60172         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60173         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
60174         using +=.
60175         Reported by Simon Josefsson <simon@josefsson.org>.
60176
60177 2006-11-28  James Youngman <jay@gnu.org>
60178
60179         * README: Advise users that they might find the bug-gnulib@gnu.org
60180         and autotools-announce@gnu.org mailing lists useful.
60181
60182 2006-11-28  Bruno Haible  <bruno@clisp.org>
60183
60184         * m4/ptrdiff_max.m4: Remove file.
60185
60186 2006-11-21  Bruno Haible  <bruno@clisp.org>
60187
60188         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
60189         _AC_COMPUTE_INT.
60190         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60191         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
60192         _AC_COMPUTE_INT.
60193         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60194         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
60195         _AC_COMPUTE_INT.
60196         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60197
60198 2006-11-28  Jim Meyering  <jim@meyering.net>
60199
60200         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
60201         warning from "gcc -Wshadow" about shadowing the builtin.
60202
60203 2006-11-27  Bruno Haible  <bruno@clisp.org>
60204
60205         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
60206         _AC_COMPUTE_INT.
60207         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
60208
60209 2006-11-27  Bruno Haible  <bruno@clisp.org>
60210             Paul Eggert  <eggert@cs.ucla.edu>
60211
60212         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
60213
60214 2006-11-26  Bruno Haible  <bruno@clisp.org>
60215
60216         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60217         noinst_LTLIBRARIES.
60218
60219 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60220             Bruno Haible  <bruno@clisp.org>
60221
60222         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
60223         if compiling with "gcc -ansi".
60224
60225 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60226
60227         Fix some incompatibilities with gcc -ansi -pedantic.
60228         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
60229         if compiling pedantically with GCC, unless it's C99 or later.
60230         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
60231         it mishandles gcc -ansi -pedantic as well.
60232         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
60233         if gcc -pedantic.
60234         * lib/regexec.c (check_node_accept_bytes): Don't use auto
60235         initializers for struct if -pedantic, unless it's C99 or later.
60236
60237 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
60238
60239         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
60240         Don't close an fd more than once. Identical atimes indicate
60241         success, not failure.
60242
60243 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
60244
60245         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
60246
60247 2006-11-23  Jim Meyering  <jim@meyering.net>
60248
60249         * build-aux/announce-gen: New file.  From coreutils.
60250
60251 2006-11-22  Jim Meyering  <jim@meyering.net>
60252
60253         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
60254         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
60255         (fts_read): Use a temporary to narrow the overused st_size member
60256         before using it in a switch statement.  Reported by Matthew Woehlke.
60257
60258         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
60259         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60260
60261 2006-11-20  Bruno Haible  <bruno@clisp.org>
60262
60263         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
60264         changequote instead of pairs of brackets.
60265         Reported by Andreas Schwab <schwab@suse.de>.
60266
60267 2006-11-21  Jim Meyering  <jim@meyering.net>
60268
60269         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
60270         so as to remain compatible with older compilers.
60271         Patch from Michael Deutschmann.
60272
60273 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60274
60275         * MODULES.html.sh (File system functions): Add openat.
60276
60277         * lib/openat.h (rpl_fstatat): New macro, if
60278         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
60279         (fstatat): Define to rpl_fstatat under the same conditions,
60280         unless COMPILING_FSTATAT.
60281         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
60282         seems to have the bug.
60283         * lib/fstatat.c: New file.
60284         * modules/openat (Files): Add it.
60285
60286 2006-11-20  Bruno Haible  <bruno@clisp.org>
60287
60288         * Makefile: New file.
60289
60290 2006-11-20  Jim Meyering  <jim@meyering.net>
60291
60292         The beginnings of syntax-related checks for gnulib.
60293         * lib/Makefile: New file.
60294         * lib/t-idcache: New script.  Ensure that the two halves of
60295         idcache.c stay in sync.
60296
60297         * lib/idcache.c: Adjust comments in user- and group- portions to
60298         be more accurate, and to be consistent with one another.
60299
60300 2006-11-20  Jim Meyering  <jim@meyering.net>
60301
60302         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
60303         continue using the flexible array member (thus, this module performs
60304         half as many malloc calls), with the addition that...
60305         (getgroup, getuser): Consistently record a non-match via an empty
60306         "name" string, and map an empty string match to a NULL return value.
60307         * modules/idcache (Depends-on): Re-add flexmember.
60308
60309         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60310         (getuidbyname, getgroup, getgidbyname): Likewise.
60311
60312         Use cleaner syntax: NULL rather than 0.
60313         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60314
60315 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60316
60317         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60318         It mishandled the case where the group was missing.
60319         Problem reported by Greg Schafer.
60320         * modules/idcache: Likewise.
60321
60322 2006-11-18  Jim Meyering  <jim@meyering.net>
60323
60324         * check-module (%exempt_header): Add exception for some
60325         conditionally-included headers.
60326
60327         * modules/i-ring (Depends-on): Add verify.
60328         (License): Change to LGPL.
60329
60330 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60331
60332         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60333         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60334         and inttostr.h.  Use snprintf rather than uinttostr, so that
60335         LGPLed code doesn't depend on GPLed.
60336
60337 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60338
60339         * modules/inline (License): Change from GPL to LGPL.
60340
60341 2006-11-17  Jim Meyering  <jim@meyering.net>
60342
60343         * modules/d-type (License): Switch to LGPL.
60344
60345 2006-11-15  Bruno Haible  <bruno@clisp.org>
60346
60347         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60348
60349 2006-11-15  Eric Blake  <ebb9@byu.net>
60350
60351         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60352         the module dependency.
60353
60354 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60355             Bruno Haible  <bruno@clisp.org>
60356
60357         * gnulib-tool (func_create_testdir): Add license consistency check.
60358
60359 2006-11-15  Eric Blake  <ebb9@byu.net>
60360
60361         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60362         random "(cached)" in configure output.
60363
60364 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60365
60366         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60367         test for conforming inttypes.h is both announced and cached.
60368
60369         * MODULES.html.sh (seen_modules, seen_files): New variables.
60370         (func_module): Rewrite to use a few less gnulib-tool and sed
60371         invocations.  Avoid a couple of quadratic algorithms for ...
60372         (missed_modules, missed_files): ... these, with ...
60373         (func_append, func_tmpdir): ... these new functions, from
60374         gnulib-tool.  Analogously, install traps for cleanup.
60375
60376         * tests/test-gc.c (main): Remove unused variables.
60377         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60378
60379 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60380
60381         * modules/inttostr (License): Change to LGPL.
60382
60383 2006-11-14  Eric Blake  <ebb9@byu.net>
60384
60385         * modules/tempname (License): Change to LGPL.
60386
60387 2006-11-14  Eric Blake  <ebb9@byu.net>
60388
60389         * doc/functions.texi (Function Portability): *printf functions on
60390         Cygwin now understand all POSIX size specifiers.
60391
60392 2006-11-14  Bruno Haible  <bruno@clisp.org>
60393
60394         * modules/c-ctype (License): Change to LGPL.
60395
60396 2006-11-12  Bruno Haible  <bruno@clisp.org>
60397
60398         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60399         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60400         for GNOME libraries, for which the include files are installed in
60401         subdirectories of $prefix/include.
60402
60403 2006-11-12  Bruno Haible  <bruno@clisp.org>
60404
60405         * m4/lib-link.m4: Require at least autoconf-2.54.
60406         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60407         name to underscores for the --with option.
60408
60409 2006-11-13  Bruno Haible  <bruno@clisp.org>
60410
60411         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60412         the tests directory.
60413         Reported by Ralf Wildenhues.
60414
60415 2006-11-13  Bruno Haible  <bruno@clisp.org>
60416
60417         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60418         (func_emit_initmacro_end): Undo the override here.
60419         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60420         Works around the famous automake error in coreutils.
60421
60422 2006-11-13  Eric Blake  <ebb9@byu.net>
60423
60424         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60425         element, not its node.
60426
60427 2006-11-12  Bruno Haible  <bruno@clisp.org>
60428
60429         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60430         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60431
60432 2006-11-12  Bruno Haible  <bruno@clisp.org>
60433
60434         * gnulib-tool: New option --local-symlink.
60435         (func_usage): Document it.
60436         (lsymbolic): New variable.
60437         (func_import, func_create_testdir): If --symlink was not specified,
60438         test whether --local-symlink was specified and the file comes from
60439         the local_gnulib_dir.
60440
60441 2006-11-12  Bruno Haible  <bruno@clisp.org>
60442
60443         * gnulib-tool (func_ln): New function.
60444         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60445
60446 2006-11-12  Bruno Haible  <bruno@clisp.org>
60447
60448         Finish support for source files in subdirectories.
60449         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60450         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60451         AUTOMAKE_OPTIONS.
60452         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60453
60454 2006-11-12  Bruno Haible  <bruno@clisp.org>
60455
60456         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60457         EXTRA_lib_SOURCES augmentation.
60458         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60459
60460 2006-11-12  Jim Meyering  <jim@meyering.net>
60461
60462         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60463         file descriptors.  This also averts a failure on systems with
60464         native openat support when a traversed directory lacks "x" access.
60465         * lib/fts_.h: Include "i-ring.h"
60466         (struct FTS) [fts_fd_ring]: New member.
60467         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60468         (FCHDIR): Add parentheses.
60469         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60470         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60471         When descending, rather than simply closing the previous
60472         fts_cwd_fd value, push that file descriptor onto the ring.
60473         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60474         (fts_open): Initialize the new fd_ring member.
60475         (fts_close): Clear the ring.
60476         (fts_safe_changedir): When possible, use our new fd_ring to skip
60477         the diropen and fstat and dev/ino comparison that would normally
60478         accompany a virtual `chdir ("..")'.
60479
60480         * modules/fts (Depends-on): Add i-ring.
60481         * modules/i-ring: New module.
60482         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60483         * m4/i-ring.m4: New file.
60484
60485 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60486
60487         * gnulib-tool (func_create_testdir): Fix replacement of
60488         `build-aux' in configure.ac.  Run autotools in gltests
60489         subdirectory.
60490         (func_create_testdir, func_create_megatestdir, test): There is
60491         no need for '--force' in most autotool invocations in a new
60492         tree.  Actually fail the whole test if any of the tools, or the
60493         configure or make stages fail.
60494
60495         Sync from Automake.
60496         * build-aux/gnupload: Revert last change.  Add pointer to upload
60497         instructions of the GNU Maintenance Instructions.
60498         Suggestion by Karl Berry.
60499
60500 2006-11-10  Jim Meyering  <jim@meyering.net>
60501
60502         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60503
60504 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60505
60506         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60507         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60508         (bind_textdomain_codeset) [! ENABLE_NLS]:
60509         Evaluate all the arguments.  That way, callers get compatible behavior
60510         if the arguments have side effects.  Also, it avoids some GCC
60511         diagnostics in some cases; Joel E. Denny reported problems when Bison
60512         was configured with --enable-gcc-warnigs.
60513
60514 2006-11-10  Jim Meyering  <jim@meyering.net>
60515
60516         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60517         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60518         account.
60519
60520 2006-11-10  Jim Meyering  <jim@meyering.net>
60521
60522         * modules/inline: New file/module.
60523         * modules/xalloc (Files): Remove m4/inline.m4.
60524         (Depends-on): Add inline, instead.
60525         * modules/oset: Likewise.
60526         * modules/list: Likewise.
60527
60528 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60529
60530         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
60531         Problem reported by Matthew Woehlke.
60532
60533 2006-11-09  Bruno Haible  <bruno@clisp.org>
60534
60535         * lib/tempname.c (gen_tempname): Remove variant that invokes
60536         __gen_tempname.
60537         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
60538         __gen_tempname.
60539
60540 2006-11-08  Bruno Haible  <bruno@clisp.org>
60541
60542         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
60543         to 'yes' instead of 'cross-compiling'.
60544
60545 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
60546
60547         * lib/quotearg.h (quotearg_free): New decl.
60548         * lib/quotearg.c (quotearg_free): New function.
60549         (slot0, nslots, slotvec0, slotvec):
60550         Now file-scope so that quotearg_free can get at them.
60551
60552 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60553
60554         Sync from Automake.
60555         * build-aux/gnupload: Add missing 'gnu' to example URL.
60556         Report by Karl Berry.
60557
60558 2006-11-08  Bruno Haible  <bruno@clisp.org>
60559
60560         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
60561         Suggested by Paul Eggert.
60562
60563 2006-11-08  Jim Meyering  <jim@meyering.net>
60564
60565         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
60566         It's already included if !_LIBC.
60567         (fts_safe_changedir): Add a comment.
60568
60569 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60570
60571         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
60572         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
60573         Matthew Woehlke.
60574
60575         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
60576         definitions up, to avoid colliding with change below.
60577         (static_inline) [HAVE_INLINE]: New macro.
60578         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
60579         Provide extern decls when !HAVE_INLINE.  Do not define unless
60580         static_inline is defined, either by us or by xmalloc.c.  Use
60581         static_inline rather than static inline.
60582         (XCALLOC): Optimize sizeof(T) = 1 case.
60583         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
60584
60585 2006-11-07  Bruno Haible  <bruno@clisp.org>
60586
60587         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
60588         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
60589         AC_C_INLINE.
60590         * modules/xalloc (Files): Add m4/inline.m4.
60591
60592 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60593
60594         * README: Fix typo.
60595         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
60596         (Miscellanous Notes): ...from this.
60597
60598 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60599
60600         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
60601         Mention that offsetof should be used instead of sizeof.
60602         From Bruno Haible.
60603
60604 2006-11-07  Bruno Haible  <bruno@clisp.org>
60605
60606         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
60607
60608 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60609
60610         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60611         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
60612         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60613         (gl_tree_add_before, gl_tree_add_after):
60614         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
60615         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
60616         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60617         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60618         (gl_linked_add_after, gl_linked_add_at): Likewise.
60619         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60620         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60621         (gl_tree_add_before, gl_tree_add_after): Likewise.
60622         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60623         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60624         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60625
60626 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60627
60628         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60629
60630 2006-11-06  Bruno Haible  <bruno@clisp.org>
60631
60632         * m4/inline.m4: New file.
60633         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60634         * modules/list (Files): Add m4/inline.m4.
60635         * modules/oset (Files): Likewise.
60636
60637 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60638
60639         * lib/idcache.c: Include <stddef.h>, for offsetof.
60640         (struct userid.name): Change from char * to a flexible array member.
60641         All uses changed.
60642         * modules/idcache (Depends-on): Add flexmember.
60643
60644         * MODULES.html.sh (Core language properties): New module flexmember.
60645         * modules/flexmember, m4/flexmember.m4: New files.
60646
60647         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60648         inline functions that are identical with the old xnmalloc_inline,
60649         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60650         that we can avoid some unnecessary integer multiplications and
60651         divisions in the common case where the element size is known at
60652         compile time.
60653         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60654         needed.
60655         (xnboundedmalloc): Remove.
60656         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60657         arguments, for consistency with rest of this header.
60658         (xcharalloc): Rewrite using XNMALLOC.
60659         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60660         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60661         versions have been moved to lib/xalloc.h and renamed to be the
60662         non-*_inline versions.
60663         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60664         and xnrealloc functions, since those functions are now inline and
60665         now call us.
60666         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60667         renaming described above.
60668         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60669         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60670         captures the dependency in AC_C_INLINE.
60671
60672         New module canonicalize-lgpl, proposed by Charles Wilson in
60673         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60674         with a few small changes afterwards.
60675         * MODULES.html.sh (File system functions): New module
60676         canonicalize-lgpl.
60677         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60678         and canonicalize_file_name.
60679         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60680         * modules/canonicalize-lgpl: New files.
60681
60682 2006-11-05  Bruno Haible  <bruno@clisp.org>
60683
60684         * gnulib-tool (func_import, func_create_testdir): Create directories
60685         also for files in subdirectories of lib/.
60686
60687 2006-11-05  Bruno Haible  <bruno@clisp.org>
60688
60689         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60690         ANSI C compliant.
60691
60692 2006-11-03  Bruno Haible  <bruno@clisp.org>
60693
60694         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60695         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
60696         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
60697         (xnboundedmalloc): New inline function.
60698         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
60699         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
60700         xmalloc.
60701         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
60702         xmalloc.
60703         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
60704         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
60705         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
60706         xmalloc.
60707         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60708         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
60709         xmalloc.
60710         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
60711         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60712         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
60713         xmalloc.
60714         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60715         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
60716         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60717         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
60718         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
60719         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
60720         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
60721
60722 2006-11-03  Bruno Haible  <bruno@clisp.org>
60723
60724         * lib/c-ctype.h [C++]: Define functions without name mangling.
60725         * lib/fwriteerror.h [C++]: Likewise.
60726         * lib/gcd.h [C++]: Likewise.
60727         * lib/linebreak.h [C++]: Likewise.
60728
60729 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60730
60731         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
60732         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
60733         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
60734         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60735         Check for functions and headers just once.
60736         Check for declaration of canonicalize_file_name.
60737         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
60738
60739 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60740
60741         * gnulib-tool (func_import): Fix typo in actioncmd.
60742
60743 2006-11-02  Bruno Haible  <bruno@clisp.org>
60744
60745         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
60746         newline sequence in the Makefile.am snippet as a space, like "make"
60747         does.
60748         Reported by Roger Persson <perrog@gmail.com>.
60749
60750 2006-11-01  Bruno Haible  <bruno@clisp.org>
60751
60752         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
60753         already declared in <string.h>.
60754         * lib/strcase.h (strncasecmp): Don't declare it if yes.
60755
60756 2006-11-01  Bruno Haible  <bruno@clisp.org>
60757
60758         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
60759         * lib/strcase.h: Include <string.h>.
60760         (strcasecmp): Define to rpl_strcasecmp here.
60761
60762 2006-11-01  Bruno Haible  <bruno@clisp.org>
60763
60764         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
60765
60766 2006-11-01  Eric Blake  <ebb9@byu.net>
60767
60768         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
60769
60770         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
60771
60772 2006-10-29  Bruno Haible  <bruno@clisp.org>
60773
60774         Make it compile in C++ mode.
60775         * lib/full-write.c (full_rw): Add a cast.
60776
60777 2006-11-01  Bruno Haible  <bruno@clisp.org>
60778
60779         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
60780         be POSIX compliant.
60781         Reported by Roger Persson <perrog@gmail.com>.
60782
60783 2006-11-01  Eric Blake  <ebb9@byu.net>
60784
60785         * lib/getopt_.h: Fix comments.
60786
60787 2006-10-31  Eric Blake  <ebb9@byu.net>
60788
60789         * modules/tmpdir (Depends-on): Add sys_stat.
60790         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
60791         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
60792         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
60793         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
60794         tempname.
60795
60796 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
60797
60798         Avoid some C++ diagnostics reported by Bruno Haible.
60799         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
60800         xmalloc.
60801         (quotearg_alloc): Use xcharalloc rather than xmalloc.
60802         (struct slotvec): Move to top level.
60803         (quotearg_n_options): Rewrite to avoid xmalloc.
60804         * lib/xalloc.h (xcharalloc): New function.
60805         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
60806         [defined __cplusplus]: Add function template that provides result
60807         type propagation.  This part of the change is from Bruno Haible.
60808
60809 2006-10-29  Bruno Haible  <bruno@clisp.org>
60810
60811         Make it compile in C++ mode.
60812         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
60813         * lib/strnlen1.c (strnlen1): Cast memchr result.
60814         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
60815         * lib/clean-temp.c (string_equals, string_hash): Add casts.
60816         (create_temp_dir): Rename local variable 'template'.
60817         (compile_csharp_using_sscli): Add cast.
60818         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
60819         * lib/findprog.c (find_in_path): Likewise.
60820         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
60821         * lib/wait-process.c (register_slave_subprocess): Likewise.
60822
60823 2006-10-22  Bruno Haible  <bruno@clisp.org>
60824
60825         * modules/tsearch: New file.
60826         * lib/tsearch.h: New file.
60827         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
60828         * m4/tsearch.m4: New file.
60829         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
60830
60831 2006-10-29  Eric Blake  <ebb9@byu.net>
60832
60833         * lib/arcfour.c: Assume config.h.
60834         * lib/arctwo.c: Likewise.
60835         * lib/base64.c: Likewise.
60836         * lib/check-version.c: Likewise.
60837         * lib/crc.c: Likewise.
60838         * lib/des.c: Likewise.
60839         * lib/gc-gnulib.c: Likewise.
60840         * lib/gc-libgcrypt.c: Likewise.
60841         * lib/gc-pbkdf2-sha1.c: Likewise.
60842         * lib/getaddrinfo.c: Likewise.
60843         * lib/getdelim.c: Likewise.
60844         * lib/getline.c: Likewise.
60845         * lib/hmac-md5.c: Likewise.
60846         * lib/hmac-sha1.c: Likewise.
60847         * lib/iconvme.c: Likewise.
60848         * lib/md2.c: Likewise.
60849         * lib/md4.c: Likewise.
60850         * lib/memxor.c: Likewise.
60851         * lib/read-file.c: Likewise.
60852         * lib/readline.c: Likewise.
60853         * lib/rijndael-alg-fst.c: Likewise.
60854         * lib/rijndael-api-fst.c: Likewise.
60855         * lib/xgetdomainname.c: Likewise.
60856
60857 2006-10-28  Eric Blake  <ebb9@byu.net>
60858
60859         * lib/xstrndup.c: Assume config.h.
60860
60861 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60862
60863         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
60864         stat-macros.h is now for our own macros, whereas stat_h is for
60865         macros in the <sys/stat.h> name space.
60866         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
60867         (STAT_MACROS_H): Remove.
60868         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
60869         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
60870         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
60871         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
60872         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
60873         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
60874         Move these macros to ...
60875         * lib/stat_.h: here.  Don't include stat-macros.h.
60876         * lib/canonicalize.c: Don't include stat-macros.h.
60877         * lib/chown.c: Likewise.
60878         * lib/euidaccess.c: Likewise.
60879         * lib/file-type.c: Likewise.
60880         * lib/filemode.c: Likewise.
60881         * lib/glob.c: Likewise.
60882         * lib/isapipe.c: Likewise.
60883         * lib/lchown.c: Likewise.
60884         * lib/lstat.c: Likewise.
60885         * lib/mkdir-p.c: Likewise.
60886         * lib/rmdir.c: Likewise.
60887         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
60888         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
60889         unless mkdir isn't declared, to speed up 'configure'.
60890         Always create sys/stat.h, since it's unlikely any real sys/stat.h
60891         would define all the S_* symbols.
60892         * modules/canonicalize (Depends-on):
60893         Depend on sys_stat, not stat-macros.
60894         * modules/chown: Likewise.
60895         * modules/euidaccess: Likewise.
60896         * modules/filemode: Likewise.
60897         * modules/file-type: Likewise.
60898         * modules/glob: Likewise.
60899         * modules/isapipe: Likewise.
60900         * modules/lchown: Likewise.
60901         * modules/lstat: Likewise.
60902         * modules/mkancesdirs: Likewise.
60903         * modules/rmdir: Likewise.
60904         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
60905         * modules/modechange: Likewise.
60906         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
60907         (configure.ac): Remove gl_STAT_MACROS.
60908         * modules/sys_stat (Depends-on): Remove stat-macros.
60909
60910 2006-10-27  Bruno Haible  <bruno@clisp.org>
60911
60912         * m4/signed.m4: Remove file.
60913         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
60914         invocation.
60915         * modules/vasnprintf (Files): Remove m4/signed.m4.
60916
60917 2006-10-27  Bruno Haible  <bruno@clisp.org>
60918
60919         Update to GNU gettext 0.16.
60920         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
60921         m4/inttypes-h.m4, m4/signed.m4.
60922         * m4/gettext.m4: Update to GNU gettext 0.16.
60923         * m4/intl.m4: New file, from GNU gettext.
60924         * m4/intldir.m4: New file, from GNU gettext.
60925         * config/srclist.txt: Update
60926
60927 2006-10-27  Eric Blake  <ebb9@byu.net>
60928
60929         * MODULES.html.sh: Document tempname.
60930         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
60931         dependencies.
60932         (Files): Move lib/tempname.c...
60933         * modules/tempname: ...to this new module.
60934         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
60935         (gl_PREREQ_TEMPNAME): Move...
60936         * m4/tempname.m4: ...to this new file.
60937         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
60938         * modules/sys_stat (Depends-on): Add stat-macros.
60939         * lib/stat_.h (includes): Pick up stat macros.
60940         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
60941         if stat macros are broken.
60942         * lib/tempname.c (includes): No need to include "stat-macros.h".
60943         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
60944         (direxists, __path_search) [!_LIBC]: Don't compile these in
60945         gnulib; the tmpdir module covers that.
60946         * lib/tempname.h: New file.
60947
60948 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60949
60950         * COPYING: Explain how gnulib-tool converts licence headers.
60951         Almost all wording by Eric Blake.
60952
60953 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
60954
60955         * lib/mbchar.h (is_basic_table): Make read-only.
60956         * lib/mbchar.c (is_basic_table): Likewise.
60957         Reported by John Darrington.
60958
60959 2006-10-25  Bruno Haible  <bruno@clisp.org>
60960
60961         * lib/progname.h (set_program_name): Undefine before defining.
60962
60963 2006-10-25  Bruno Haible  <bruno@clisp.org>
60964
60965         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
60966         false for non-gcc C++ compilers.
60967         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60968
60969 2006-10-24  Bruno Haible  <bruno@clisp.org>
60970
60971         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
60972         iconv implementations like Irix iconv.
60973
60974 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60975
60976         * modules/vararrays: New file.
60977         * m4/vararrays.m4: New file, taken from diffutils.
60978         * MODULES.html.sh: New module vararrays.
60979
60980 2006-10-24  Karl Berry  <karl@gnu.org>
60981
60982         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
60983         Don't call GNU Unix.
60984
60985 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60986
60987         * users.txt: Add Libtool.
60988
60989         Sync from Libtool:
60990
60991         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60992
60993         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
60994         to gnulib's policy of including config.h unconditionally.
60995
60996 2006-10-24  Bruno Haible  <bruno@clisp.org>
60997
60998         * modules/wcwidth (Files): Add m4/wint_t.m4.
60999         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
61000         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
61001
61002 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61003
61004         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
61005         to pacify GCC with some -W flags enabled.  Problem reported by
61006         Bruno Haible.
61007
61008 2006-10-24  Jim Meyering  <jim@meyering.net>
61009
61010         * MODULES.html.sh: Remove uinttostr.  It's not a module.
61011         Reported by Karl Berry.
61012
61013 2006-10-23  Bruno Haible  <bruno@clisp.org>
61014
61015         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
61016
61017 2006-10-24  Bruno Haible  <bruno@clisp.org>
61018
61019         * lib/gl_list.h: Use C comment style, not C++ comment style.
61020
61021 2006-10-23  Eric Blake  <ebb9@byu.net>
61022
61023         * lib/getaddrinfo.c (includes): Add missing include.
61024
61025 2006-10-23  Bruno Haible  <bruno@clisp.org>
61026             Paul Eggert  <eggert@cs.ucla.edu>
61027
61028         Ability to rename obstack_free.
61029         * lib/obstack.h (__obstack_free): New macro. Declare instead of
61030         obstack_free.
61031         (obstack_free): Invoke the __obstack_free macro.
61032         * lib/obstack.c (obstack_free): Use __obstack_free macro.
61033
61034 2006-10-23  Bruno Haible  <bruno@clisp.org>
61035             Paul Eggert  <eggert@cs.ucla.edu>
61036
61037         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
61038         __argc, __argv from the declaration. (They are defined as macros on
61039         mingw.)
61040
61041 2006-10-22  Bruno Haible  <bruno@clisp.org>
61042
61043         * doc/gnulib-intro.texi: New file.
61044         * doc/gnulib.texi: Include it.
61045
61046 2006-10-21  Bruno Haible  <bruno@clisp.org>
61047
61048         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
61049         "Introduction", "Miscellanous Notes", "Particular Modules".
61050
61051 2006-10-21  Bruno Haible  <bruno@clisp.org>
61052
61053         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61054         Change mostlyclean-local rule to avoid sh syntax error from bash
61055         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
61056
61057 2006-10-23  Jim Meyering  <jim@meyering.net>
61058
61059         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
61060         in place of snprintf.
61061
61062         * modules/inttostr (Files): Add lib/uinttostr.c.
61063         * lib/uinttostr.c (inttostr): New file/function.
61064         * lib/inttostr.h (uinttostr): Declare.
61065         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
61066         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61067         Add uinttostr.
61068         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
61069
61070 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61071
61072         * lib/canonicalize.c (ELOOP): Define if not already defined.
61073         Problem reported by Bruno Haible in
61074         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
61075
61076 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61077
61078         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
61079         Problem reported by Perry Smith and Ville Laurikari.
61080
61081         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
61082         uses.
61083
61084 2006-10-19  Bruno Haible  <bruno@clisp.org>
61085
61086         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
61087         for mingw.
61088
61089 2006-10-19  Bruno Haible  <bruno@clisp.org>
61090
61091         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
61092         Needed for mingw.
61093
61094 2006-10-19  Bruno Haible  <bruno@clisp.org>
61095
61096         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
61097
61098 2006-10-19  Bruno Haible  <bruno@clisp.org>
61099
61100         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
61101         it.
61102
61103 2006-10-19  Bruno Haible  <bruno@clisp.org>
61104
61105         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
61106         invocation.
61107
61108 2006-10-19  Bruno Haible  <bruno@clisp.org>
61109
61110         * gnulib-tool (func_create_testdir): Don't include ftruncate and
61111         mountlist by default.
61112
61113 2006-10-16  Bruno Haible  <bruno@clisp.org>
61114
61115         * lib/c-strstr.c: Include c-strstr.h.
61116
61117 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61118
61119         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
61120         in a slash.
61121
61122 2006-10-18  Bruno Haible  <bruno@clisp.org>
61123
61124         * lib/lock.h [C++]: Wrap definitions in extern "C".
61125
61126 2006-10-18  Bruno Haible  <bruno@clisp.org>
61127
61128         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
61129         gl_LIBOBJS list.
61130
61131 2006-10-18  Bruno Haible  <bruno@clisp.org>
61132
61133         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
61134
61135 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
61136
61137         * lib/xstrtol.h: Include gettext.h.
61138         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
61139         Problem reported by Eric Blake.
61140         * modules/xstrtol (Depends-on): Add gettext-h.
61141
61142 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
61143
61144         * lib/strftime.c (advance): New macro.
61145         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
61146         incomplete type, so you can't add 0 to it.  Problem and patch
61147         reported by Eelco Dolstra for dietlibc.
61148
61149 2006-10-18  Jim Meyering  <jim@meyering.net>
61150
61151         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
61152         type for a local, and rename it: s/up/user_proc/.
61153
61154 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61155
61156         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
61157         READ_UTMP_USER_PROCESS.
61158         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
61159
61160 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61161
61162         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
61163         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
61164
61165 2006-10-17  Eric Blake  <ebb9@byu.net>
61166
61167         * lib/sigprocmask.c (sigprocmask): Fix typo.
61168
61169         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
61170
61171         * modules/clean-temp (Makefile.am): Don't add to make output...
61172         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
61173         config.h.
61174
61175 2006-10-17  Bruno Haible  <bruno@clisp.org>
61176
61177         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
61178         differently if DEFAULT_TEXT_DOMAIN is set.
61179
61180 2006-10-16  Bruno Haible  <bruno@clisp.org>
61181
61182         * lib/clean-temp.c: Include fwriteerror.h.
61183
61184 2006-10-16  Bruno Haible  <bruno@clisp.org>
61185
61186         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
61187
61188 2006-10-16  Bruno Haible  <bruno@clisp.org>
61189
61190         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
61191         * lib/sigprocmask.h: Include <sys/types.h>.
61192         (sigset_t): Use the system's definition if present.
61193
61194 2006-10-17  Eric Blake  <ebb9@byu.net>
61195
61196         * lib/xvasprintf.c (includes): Assume config.h.
61197         * lib/xasprintf.c (includes): Likewise.
61198
61199 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61200
61201         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
61202         at least as wide as intmax_t.
61203
61204 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
61205
61206         (Imported from Automake.)
61207         * build-aux/gnupload: Update to version 1.1 of directive file.
61208
61209 2006-10-16  Eric Blake  <ebb9@byu.net>
61210
61211         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
61212         match Automake 1.10a.
61213
61214 2006-10-14  Bruno Haible  <bruno@clisp.org>
61215
61216         * modules/sigprocmask: New file.
61217         * lib/sigprocmask.h: New file.
61218         * lib/sigprocmask.c: New file.
61219         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
61220         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
61221         request sigprocmask.o.
61222         (gl_PREREQ_SIGPROCMASK): New macro.
61223         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
61224         (Depends-on): Add sigprocmask.
61225         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
61226         gt_SIGNALBLOCKING. Test for 'raise' only once.
61227         * lib/fatal-signal.c: Include sigprocmask.h.
61228         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
61229         unblock_fatal_signals): Define always.
61230         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61231         sigprocmask.
61232
61233 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
61234
61235         Sync from Automake.
61236         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
61237         which incorrectly sets the mode of an existing destination
61238         directory.  In some cases the unpatched install-sh could do the
61239         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
61240         system.  We hope this is rare in practice, but it's clearly worth
61241         fixing.  Problem reported by Alex Unleashed in
61242         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
61243         Also, don't bother to check for -m bugs unless we're using -m;
61244         suggested by Stepan Kasal.
61245
61246 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61247
61248         Sync from Automake.
61249         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
61250         `-c' flag, so they appear at the same position as in %FASTDEP%
61251         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
61252         which ignores unknown options only after the first non-option.
61253         Bug report against M4 by Nelson H. F. Beebe.
61254
61255 2006-10-13  Jim Meyering  <jim@meyering.net>
61256
61257         Fix a bug in yesterday's change.
61258         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
61259         p->fts_statp->st_dev would be used uninitialized.
61260         Ensures that we always call fts_stat on the very first entry.
61261         Miklos Szeredi reported that find -xdev stopped working.
61262
61263 2006-10-12  Bruno Haible  <bruno@clisp.org>
61264
61265         * gnulib-tool (func_get_automake_snippet): Append an automatically
61266         computed EXTRA_DIST augmentation.
61267         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
61268         * modules/alloca-opt (Makefile.am): Likewise.
61269         * modules/allocsa (Makefile.am): Likewise.
61270         * modules/arcfour (Makefile.am): Likewise.
61271         * modules/arctwo (Makefile.am): Likewise.
61272         * modules/argmatch (Makefile.am): Likewise.
61273         * modules/argz (Makefile.am): Likewise.
61274         * modules/atexit (Makefile.am): Likewise.
61275         * modules/backupfile (Makefile.am): Likewise.
61276         * modules/byteswap (Makefile.am): Likewise.
61277         * modules/c-strtod (Makefile.am): Likewise.
61278         * modules/c-strtold (Makefile.am): Likewise.
61279         * modules/calloc (Makefile.am): Likewise.
61280         * modules/canon-host (Makefile.am): Likewise.
61281         * modules/canonicalize (Makefile.am): Likewise.
61282         * modules/chdir-long (Makefile.am): Likewise.
61283         * modules/chdir-safer (Makefile.am): Likewise.
61284         * modules/check-version (Makefile.am): Likewise.
61285         * modules/chown (Makefile.am): Likewise.
61286         * modules/cloexec (Makefile.am): Likewise.
61287         * modules/close-stream (Makefile.am): Likewise.
61288         * modules/closeout (Makefile.am): Likewise.
61289         * modules/crc (Makefile.am): Likewise.
61290         * modules/csharpexec (Makefile.am): Likewise.
61291         * modules/cycle-check (Makefile.am): Likewise.
61292         * modules/des (Makefile.am): Likewise.
61293         * modules/dev-ino (Makefile.am): Likewise.
61294         * modules/dirfd (Makefile.am): Likewise.
61295         * modules/dirname (Makefile.am): Likewise.
61296         * modules/dup2 (Makefile.am): Likewise.
61297         * modules/eealloc (Makefile.am): Likewise.
61298         * modules/error (Makefile.am): Likewise.
61299         * modules/euidaccess (Makefile.am): Likewise.
61300         * modules/exclude (Makefile.am): Likewise.
61301         * modules/exitfail (Makefile.am): Likewise.
61302         * modules/fcntl-safer (Makefile.am): Likewise.
61303         * modules/fcntl (Makefile.am): Likewise.
61304         * modules/file-type (Makefile.am): Likewise.
61305         * modules/fileblocks (Makefile.am): Likewise.
61306         * modules/filemode (Makefile.am): Likewise.
61307         * modules/filenamecat (Makefile.am): Likewise.
61308         * modules/fnmatch (Makefile.am): Likewise.
61309         * modules/fopen-safer (Makefile.am): Likewise.
61310         * modules/fpending (Makefile.am): Likewise.
61311         * modules/fprintftime (Makefile.am): Likewise.
61312         * modules/free (Makefile.am): Likewise.
61313         * modules/fsusage (Makefile.am): Likewise.
61314         * modules/ftruncate (Makefile.am): Likewise.
61315         * modules/fts (Makefile.am): Likewise.
61316         * modules/gc-arcfour (Makefile.am): Likewise.
61317         * modules/gc-des (Makefile.am): Likewise.
61318         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61319         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61320         * modules/gc-md4 (Makefile.am): Likewise.
61321         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61322         * modules/gc-sha1 (Makefile.am): Likewise.
61323         * modules/gc (Makefile.am): Likewise.
61324         * modules/getaddrinfo (Makefile.am): Likewise.
61325         * modules/getcwd (Makefile.am): Likewise.
61326         * modules/getdelim (Makefile.am): Likewise.
61327         * modules/getdomainname (Makefile.am): Likewise.
61328         * modules/getgroups (Makefile.am): Likewise.
61329         * modules/gethostname (Makefile.am): Likewise.
61330         * modules/gethrxtime (Makefile.am): Likewise.
61331         * modules/getline (Makefile.am): Likewise.
61332         * modules/getloadavg (Makefile.am): Likewise.
61333         * modules/getlogin_r (Makefile.am): Likewise.
61334         * modules/getndelim2 (Makefile.am): Likewise.
61335         * modules/getopt (Makefile.am): Likewise.
61336         * modules/getpagesize (Makefile.am): Likewise.
61337         * modules/getpass-gnu (Makefile.am): Likewise.
61338         * modules/getpass (Makefile.am): Likewise.
61339         * modules/getsubopt (Makefile.am): Likewise.
61340         * modules/gettime (Makefile.am): Likewise.
61341         * modules/gettimeofday (Makefile.am): Likewise.
61342         * modules/getugroups (Makefile.am): Likewise.
61343         * modules/getusershell (Makefile.am): Likewise.
61344         * modules/glob (Makefile.am): Likewise.
61345         * modules/group-member (Makefile.am): Likewise.
61346         * modules/hard-locale (Makefile.am): Likewise.
61347         * modules/hash (Makefile.am): Likewise.
61348         * modules/hmac-md5 (Makefile.am): Likewise.
61349         * modules/hmac-sha1 (Makefile.am): Likewise.
61350         * modules/human (Makefile.am): Likewise.
61351         * modules/idcache (Makefile.am): Likewise.
61352         * modules/imaxabs (Makefile.am): Likewise.
61353         * modules/imaxdiv (Makefile.am): Likewise.
61354         * modules/inet_ntop (Makefile.am): Likewise.
61355         * modules/inet_pton (Makefile.am): Likewise.
61356         * modules/intprops (Makefile.am): Likewise.
61357         * modules/inttostr (Makefile.am): Likewise.
61358         * modules/inttypes (Makefile.am): Likewise.
61359         * modules/isapipe (Makefile.am): Likewise.
61360         * modules/javaversion (Makefile.am): Likewise.
61361         * modules/lchmod (Makefile.am): Likewise.
61362         * modules/lchown (Makefile.am): Likewise.
61363         * modules/localcharset (Makefile.am): Likewise.
61364         * modules/long-options (Makefile.am): Likewise.
61365         * modules/lstat (Makefile.am): Likewise.
61366         * modules/malloc (Makefile.am): Likewise.
61367         * modules/mathl (Makefile.am): Likewise.
61368         * modules/mbchar (Makefile.am): Likewise.
61369         * modules/md2 (Makefile.am): Likewise.
61370         * modules/md4 (Makefile.am): Likewise.
61371         * modules/md5 (Makefile.am): Likewise.
61372         * modules/memcasecmp (Makefile.am): Likewise.
61373         * modules/memchr (Makefile.am): Likewise.
61374         * modules/memcmp (Makefile.am): Likewise.
61375         * modules/memcoll (Makefile.am): Likewise.
61376         * modules/memcpy (Makefile.am): Likewise.
61377         * modules/memmem (Makefile.am): Likewise.
61378         * modules/memmove (Makefile.am): Likewise.
61379         * modules/mempcpy (Makefile.am): Likewise.
61380         * modules/memrchr (Makefile.am): Likewise.
61381         * modules/memset (Makefile.am): Likewise.
61382         * modules/memxor (Makefile.am): Likewise.
61383         * modules/mkancesdirs (Makefile.am): Likewise.
61384         * modules/mkdir-p (Makefile.am): Likewise.
61385         * modules/mkdir (Makefile.am): Likewise.
61386         * modules/mkdtemp (Makefile.am): Likewise.
61387         * modules/mkstemp (Makefile.am): Likewise.
61388         * modules/mktime (Makefile.am): Likewise.
61389         * modules/modechange (Makefile.am): Likewise.
61390         * modules/mountlist (Makefile.am): Likewise.
61391         * modules/nanosleep (Makefile.am): Likewise.
61392         * modules/obstack (Makefile.am): Likewise.
61393         * modules/openat (Makefile.am): Likewise.
61394         * modules/pagealign_alloc (Makefile.am): Likewise.
61395         * modules/pathmax (Makefile.am): Likewise.
61396         * modules/physmem (Makefile.am): Likewise.
61397         * modules/poll (Makefile.am): Likewise.
61398         * modules/posixtm (Makefile.am): Likewise.
61399         * modules/posixver (Makefile.am): Likewise.
61400         * modules/putenv (Makefile.am): Likewise.
61401         * modules/quote (Makefile.am): Likewise.
61402         * modules/quotearg (Makefile.am): Likewise.
61403         * modules/raise (Makefile.am): Likewise.
61404         * modules/read-file (Makefile.am): Likewise.
61405         * modules/readline (Makefile.am): Likewise.
61406         * modules/readlink (Makefile.am): Likewise.
61407         * modules/readtokens (Makefile.am): Likewise.
61408         * modules/readutmp (Makefile.am): Likewise.
61409         * modules/realloc (Makefile.am): Likewise.
61410         * modules/regex (Makefile.am): Likewise.
61411         * modules/rename-dest-slash (Makefile.am): Likewise.
61412         * modules/rename (Makefile.am): Likewise.
61413         * modules/rijndael (Makefile.am): Likewise.
61414         * modules/rmdir (Makefile.am): Likewise.
61415         * modules/rpmatch (Makefile.am): Likewise.
61416         * modules/safe-read (Makefile.am): Likewise.
61417         * modules/safe-write (Makefile.am): Likewise.
61418         * modules/same-inode (Makefile.am): Likewise.
61419         * modules/same (Makefile.am): Likewise.
61420         * modules/save-cwd (Makefile.am): Likewise.
61421         * modules/savedir (Makefile.am): Likewise.
61422         * modules/setenv (Makefile.am): Likewise.
61423         * modules/settime (Makefile.am): Likewise.
61424         * modules/sha1 (Makefile.am): Likewise.
61425         * modules/sig2str (Makefile.am): Likewise.
61426         * modules/snprintf (Makefile.am): Likewise.
61427         * modules/stat-macros (Makefile.am): Likewise.
61428         * modules/stat-time (Makefile.am): Likewise.
61429         * modules/stdbool (Makefile.am): Likewise.
61430         * modules/stdint (Makefile.am): Likewise.
61431         * modules/stdlib-safer (Makefile.am): Likewise.
61432         * modules/stpcpy (Makefile.am): Likewise.
61433         * modules/stpncpy (Makefile.am): Likewise.
61434         * modules/strcase (Makefile.am): Likewise.
61435         * modules/strcasestr (Makefile.am): Likewise.
61436         * modules/strchrnul (Makefile.am): Likewise.
61437         * modules/strcspn (Makefile.am): Likewise.
61438         * modules/strdup (Makefile.am): Likewise.
61439         * modules/strerror (Makefile.am): Likewise.
61440         * modules/strftime (Makefile.am): Likewise.
61441         * modules/strndup (Makefile.am): Likewise.
61442         * modules/strnlen (Makefile.am): Likewise.
61443         * modules/strpbrk (Makefile.am): Likewise.
61444         * modules/strsep (Makefile.am): Likewise.
61445         * modules/strstr (Makefile.am): Likewise.
61446         * modules/strtod (Makefile.am): Likewise.
61447         * modules/strtoimax (Makefile.am): Likewise.
61448         * modules/strtok_r (Makefile.am): Likewise.
61449         * modules/strtol (Makefile.am): Likewise.
61450         * modules/strtoll (Makefile.am): Likewise.
61451         * modules/strtoul (Makefile.am): Likewise.
61452         * modules/strtoull (Makefile.am): Likewise.
61453         * modules/strtoumax (Makefile.am): Likewise.
61454         * modules/strverscmp (Makefile.am): Likewise.
61455         * modules/sys_socket (Makefile.am): Likewise.
61456         * modules/sys_stat (Makefile.am): Likewise.
61457         * modules/sysexits (Makefile.am): Likewise.
61458         * modules/time_r (Makefile.am): Likewise.
61459         * modules/timegm (Makefile.am): Likewise.
61460         * modules/timespec (Makefile.am): Likewise.
61461         * modules/tmpfile-safer (Makefile.am): Likewise.
61462         * modules/trim (Makefile.am): Likewise.
61463         * modules/unistd-safer (Makefile.am): Likewise.
61464         * modules/unlinkdir (Makefile.am): Likewise.
61465         * modules/unlocked-io (Makefile.am): Likewise.
61466         * modules/userspec (Makefile.am): Likewise.
61467         * modules/utime (Makefile.am): Likewise.
61468         * modules/utimecmp (Makefile.am): Likewise.
61469         * modules/utimens (Makefile.am): Likewise.
61470         * modules/vasnprintf (Makefile.am): Likewise.
61471         * modules/vasprintf (Makefile.am): Likewise.
61472         * modules/vsnprintf (Makefile.am): Likewise.
61473         * modules/xalloc (Makefile.am): Likewise.
61474         * modules/xgetcwd (Makefile.am): Likewise.
61475         * modules/xnanosleep (Makefile.am): Likewise.
61476         * modules/xreadlink (Makefile.am): Likewise.
61477         * modules/xstrtod (Makefile.am): Likewise.
61478         * modules/xstrtol (Makefile.am): Likewise.
61479         * modules/xstrtold (Makefile.am): Likewise.
61480         * modules/yesno (Makefile.am): Likewise.
61481         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61482
61483 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61484
61485         * modules/error (Makefile.am): Distribute files through
61486         EXTRA_DIST, not lib_SOURCES.
61487
61488 2006-10-12  Eric Blake  <ebb9@byu.net>
61489
61490         * modules/error (Makefile.am): Distribute files in /lib.
61491         * modules/obstack (Makefile.am): Likewise.
61492
61493 2006-10-12  Bruno Haible  <bruno@clisp.org>
61494
61495         * modules/acl (Makefile.am): Distribute all files in lib/ through
61496         EXTRA_DIST.
61497         * modules/arcfour (Makefile.am): Likewise.
61498         * modules/arctwo (Makefile.am): Likewise.
61499         * modules/argmatch (Makefile.am): Likewise.
61500         * modules/argz (Makefile.am): Likewise.
61501         * modules/atexit (Makefile.am): Likewise.
61502         * modules/backupfile (Makefile.am): Likewise.
61503         * modules/c-strtod (Makefile.am): Likewise.
61504         * modules/c-strtold (Makefile.am): Likewise.
61505         * modules/calloc (Makefile.am): Likewise.
61506         * modules/canon-host (Makefile.am): Likewise.
61507         * modules/canonicalize (Makefile.am): Likewise.
61508         * modules/chdir-long (Makefile.am): Likewise.
61509         * modules/chdir-safer (Makefile.am): Likewise.
61510         * modules/check-version (Makefile.am): Likewise.
61511         * modules/chown (Makefile.am): Likewise.
61512         * modules/cloexec (Makefile.am): Likewise.
61513         * modules/close-stream (Makefile.am): Likewise.
61514         * modules/closeout (Makefile.am): Likewise.
61515         * modules/crc (Makefile.am): Likewise.
61516         * modules/cycle-check (Makefile.am): Likewise.
61517         * modules/des (Makefile.am): Likewise.
61518         * modules/dirfd (Makefile.am): Likewise.
61519         * modules/dirname (Makefile.am): Likewise.
61520         * modules/dup2 (Makefile.am): Likewise.
61521         * modules/euidaccess (Makefile.am): Likewise.
61522         * modules/exclude (Makefile.am): Likewise.
61523         * modules/exitfail (Makefile.am): Likewise.
61524         * modules/fcntl-safer (Makefile.am): Likewise.
61525         * modules/file-type (Makefile.am): Likewise.
61526         * modules/fileblocks (Makefile.am): Likewise.
61527         * modules/filemode (Makefile.am): Likewise.
61528         * modules/filenamecat (Makefile.am): Likewise.
61529         * modules/fnmatch (Makefile.am): Likewise.
61530         * modules/fopen-safer (Makefile.am): Likewise.
61531         * modules/fpending (Makefile.am): Likewise.
61532         * modules/fprintftime (Makefile.am): Likewise.
61533         * modules/free (Makefile.am): Likewise.
61534         * modules/fsusage (Makefile.am): Likewise.
61535         * modules/ftruncate (Makefile.am): Likewise.
61536         * modules/fts (Makefile.am): Likewise.
61537         * modules/gc (Makefile.am): Likewise.
61538         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61539         * modules/getaddrinfo (Makefile.am): Likewise.
61540         * modules/getcwd (Makefile.am): Likewise.
61541         * modules/getdelim (Makefile.am): Likewise.
61542         * modules/getdomainname (Makefile.am): Likewise.
61543         * modules/getgroups (Makefile.am): Likewise.
61544         * modules/gethostname (Makefile.am): Likewise.
61545         * modules/gethrxtime (Makefile.am): Likewise.
61546         * modules/getline (Makefile.am): Likewise.
61547         * modules/getloadavg (Makefile.am): Likewise.
61548         * modules/getlogin_r (Makefile.am): Likewise.
61549         * modules/getopt (Makefile.am): Likewise.
61550         * modules/getpass (Makefile.am): Likewise.
61551         * modules/getpass-gnu (Makefile.am): Likewise.
61552         * modules/getsubopt (Makefile.am): Likewise.
61553         * modules/gettime (Makefile.am): Likewise.
61554         * modules/gettimeofday (Makefile.am): Likewise.
61555         * modules/getugroups (Makefile.am): Likewise.
61556         * modules/getusershell (Makefile.am): Likewise.
61557         * modules/glob (Makefile.am): Likewise.
61558         * modules/group-member (Makefile.am): Likewise.
61559         * modules/hard-locale (Makefile.am): Likewise.
61560         * modules/hash (Makefile.am): Likewise.
61561         * modules/hmac-md5 (Makefile.am): Likewise.
61562         * modules/hmac-sha1 (Makefile.am): Likewise.
61563         * modules/human (Makefile.am): Likewise.
61564         * modules/idcache (Makefile.am): Likewise.
61565         * modules/imaxabs (Makefile.am): Likewise.
61566         * modules/imaxdiv (Makefile.am): Likewise.
61567         * modules/inet_ntop (Makefile.am): Likewise.
61568         * modules/inet_pton (Makefile.am): Likewise.
61569         * modules/inttostr (Makefile.am): Likewise.
61570         * modules/isapipe (Makefile.am): Likewise.
61571         * modules/lchown (Makefile.am): Likewise.
61572         * modules/long-options (Makefile.am): Likewise.
61573         * modules/lstat (Makefile.am): Likewise.
61574         * modules/malloc (Makefile.am): Likewise.
61575         * modules/mathl (Makefile.am): Likewise.
61576         * modules/mbchar (Makefile.am): Likewise.
61577         * modules/md2 (Makefile.am): Likewise.
61578         * modules/md4 (Makefile.am): Likewise.
61579         * modules/md5 (Makefile.am): Likewise.
61580         * modules/memcasecmp (Makefile.am): Likewise.
61581         * modules/memchr (Makefile.am): Likewise.
61582         * modules/memcmp (Makefile.am): Likewise.
61583         * modules/memcoll (Makefile.am): Likewise.
61584         * modules/memcpy (Makefile.am): Likewise.
61585         * modules/memmem (Makefile.am): Likewise.
61586         * modules/memmove (Makefile.am): Likewise.
61587         * modules/mempcpy (Makefile.am): Likewise.
61588         * modules/memrchr (Makefile.am): Likewise.
61589         * modules/memset (Makefile.am): Likewise.
61590         * modules/memxor (Makefile.am): Likewise.
61591         * modules/mkancesdirs (Makefile.am): Likewise.
61592         * modules/mkdir (Makefile.am): Likewise.
61593         * modules/mkdir-p (Makefile.am): Likewise.
61594         * modules/mkdtemp (Makefile.am): Likewise.
61595         * modules/mkstemp (Makefile.am): Likewise.
61596         * modules/mktime (Makefile.am): Likewise.
61597         * modules/modechange (Makefile.am): Likewise.
61598         * modules/mountlist (Makefile.am): Likewise.
61599         * modules/nanosleep (Makefile.am): Likewise.
61600         * modules/openat (Makefile.am): Likewise.
61601         * modules/pagealign_alloc (Makefile.am): Likewise.
61602         * modules/physmem (Makefile.am): Likewise.
61603         * modules/poll (Makefile.am): Likewise.
61604         * modules/posixtm (Makefile.am): Likewise.
61605         * modules/posixver (Makefile.am): Likewise.
61606         * modules/putenv (Makefile.am): Likewise.
61607         * modules/quote (Makefile.am): Likewise.
61608         * modules/quotearg (Makefile.am): Likewise.
61609         * modules/raise (Makefile.am): Likewise.
61610         * modules/read-file (Makefile.am): Likewise.
61611         * modules/readline (Makefile.am): Likewise.
61612         * modules/readlink (Makefile.am): Likewise.
61613         * modules/readtokens (Makefile.am): Likewise.
61614         * modules/readutmp (Makefile.am): Likewise.
61615         * modules/realloc (Makefile.am): Likewise.
61616         * modules/regex (Makefile.am): Likewise.
61617         * modules/rename (Makefile.am): Likewise.
61618         * modules/rename-dest-slash (Makefile.am): Likewise.
61619         * modules/rijndael (Makefile.am): Likewise.
61620         * modules/rmdir (Makefile.am): Likewise.
61621         * modules/rpmatch (Makefile.am): Likewise.
61622         * modules/safe-read (Makefile.am): Likewise.
61623         * modules/safe-write (Makefile.am): Likewise.
61624         * modules/same (Makefile.am): Likewise.
61625         * modules/save-cwd (Makefile.am): Likewise.
61626         * modules/savedir (Makefile.am): Likewise.
61627         * modules/setenv (Makefile.am): Likewise.
61628         * modules/settime (Makefile.am): Likewise.
61629         * modules/sha1 (Makefile.am): Likewise.
61630         * modules/sig2str (Makefile.am): Likewise.
61631         * modules/snprintf (Makefile.am): Likewise.
61632         * modules/stdlib-safer (Makefile.am): Likewise.
61633         * modules/stpcpy (Makefile.am): Likewise.
61634         * modules/stpncpy (Makefile.am): Likewise.
61635         * modules/strcase (Makefile.am): Likewise.
61636         * modules/strcasestr (Makefile.am): Likewise.
61637         * modules/strchrnul (Makefile.am): Likewise.
61638         * modules/strcspn (Makefile.am): Likewise.
61639         * modules/strdup (Makefile.am): Likewise.
61640         * modules/strerror (Makefile.am): Likewise.
61641         * modules/strftime (Makefile.am): Likewise.
61642         * modules/strndup (Makefile.am): Likewise.
61643         * modules/strnlen (Makefile.am): Likewise.
61644         * modules/strpbrk (Makefile.am): Likewise.
61645         * modules/strsep (Makefile.am): Likewise.
61646         * modules/strstr (Makefile.am): Likewise.
61647         * modules/strtod (Makefile.am): Likewise.
61648         * modules/strtoimax (Makefile.am): Likewise.
61649         * modules/strtok_r (Makefile.am): Likewise.
61650         * modules/strtol (Makefile.am): Likewise.
61651         * modules/strtoll (Makefile.am): Likewise.
61652         * modules/strtoul (Makefile.am): Likewise.
61653         * modules/strtoull (Makefile.am): Likewise.
61654         * modules/strtoumax (Makefile.am): Likewise.
61655         * modules/strverscmp (Makefile.am): Likewise.
61656         * modules/time_r (Makefile.am): Likewise.
61657         * modules/timegm (Makefile.am): Likewise.
61658         * modules/tmpfile-safer (Makefile.am): Likewise.
61659         * modules/unistd-safer (Makefile.am): Likewise.
61660         * modules/unlinkdir (Makefile.am): Likewise.
61661         * modules/userspec (Makefile.am): Likewise.
61662         * modules/utime (Makefile.am): Likewise.
61663         * modules/utimecmp (Makefile.am): Likewise.
61664         * modules/utimens (Makefile.am): Likewise.
61665         * modules/vasnprintf (Makefile.am): Likewise.
61666         * modules/vasprintf (Makefile.am): Likewise.
61667         * modules/vsnprintf (Makefile.am): Likewise.
61668         * modules/xalloc (Makefile.am): Likewise.
61669         * modules/xgetcwd (Makefile.am): Likewise.
61670         * modules/xnanosleep (Makefile.am): Likewise.
61671         * modules/xreadlink (Makefile.am): Likewise.
61672         * modules/xstrtod (Makefile.am): Likewise.
61673         * modules/xstrtol (Makefile.am): Likewise.
61674         * modules/xstrtold (Makefile.am): Likewise.
61675         * modules/yesno (Makefile.am): Likewise.
61676
61677 2006-10-12  Jim Meyering  <jim@meyering.net>
61678
61679         * m4/getloadavg.m4: Revert the change below.
61680
61681         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61682         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61683         fail with a symlink, which is what coreutils' ./bootstrap now
61684         creates by default.
61685
61686 2006-10-12  Bruno Haible  <bruno@clisp.org>
61687
61688         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61689         mingw.
61690         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61691         MSVC and mingw explicitly.
61692
61693 2006-10-11  Simon Josefsson  <jas@extundo.com>
61694             Bruno Haible  <bruno@clisp.org>
61695
61696         Add support for multiple gnulib-tool invocations in the scope of a
61697         single configure.ac file.
61698         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
61699         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
61700         with the same contents as the _LIBADD variable.
61701         (func_emit_initmacro_start, func_emit_initmacro_end,
61702         func_emit_initmacro_done): New functions.
61703         (func_import, func_create_testdir): Invoke them. Allow the identifiers
61704         gl_LIBOBJS and gl_LTLIBOBJS.
61705
61706 2006-10-11  Bruno Haible  <bruno@clisp.org>
61707
61708         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
61709         (func_create_testdir): Don't create po/Makefile.am, don't invoke
61710         autoreconf. Instead, invoke autopoint explicitly but move back the
61711         *.m4 files from gnulib.
61712
61713 2006-10-11  Bruno Haible  <bruno@clisp.org>
61714
61715         * gnulib-tool (func_usage): Make module names after --create-testdir
61716         optional.
61717         (func_create_testdir): If no module was specified, use nearly all
61718         modules.
61719
61720 2006-10-12  Jim Meyering  <jim@meyering.net>
61721
61722         Big performance improvement for fts-based tools that use FTS_NOSTAT.
61723         Avoid spurious inode-mismatch problems on non-POSIX file systems.
61724         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
61725         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
61726         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
61727         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
61728         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
61729         (fts_set_stat_required): New function.
61730         (fts_open): Defer the calls to fts_stat, if possible or requested.
61731         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
61732         into fts_stat itself.
61733         (fts_read): Perform any required (deferred) fts_stat call.
61734         (fts_build): Likewise, for the directory we're about to open and read.
61735         In the readdir loop, carefully decide whether each entry will require
61736         an eventual call to fts_stat, using dirent.d_type info if available.
61737         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
61738         a command line argument into this function.  Update all callers.
61739         Map a return value of FTS_DOT to FTS_D for a command line argument.
61740         * modules/fts (Depends-on): Add d-type.  Alphabetize.
61741         Thanks to Miklos Szeredi for his tenacity and for the initial
61742         bug report about "find" failing on a FUSE-based file system.
61743
61744         * lib/fts.c (fts_open): Use consistent indentation.
61745
61746 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61747
61748         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
61749         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
61750         reported by Jim Meyering.  All uses of cache variables renamed
61751         to match Autoconf's.
61752         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
61753         the other one.
61754
61755         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61756         Fix misspelling in diagnostic.
61757
61758 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61759
61760         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
61761         defined.  Problem reported by Matthew Woehlke.
61762
61763         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
61764         Add support for Tandem NonStop R series.
61765         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
61766         Use new macro.
61767
61768         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
61769         (has_trailing_slash): Omit size arg; all callers changed.
61770         Omit 'inline', since it doesn't help performance and we'd
61771         need to configure it.
61772         Don't count //, ///, etc. as having a trailing slash.
61773         As a side effect, this removes a C99ism reported by Matthew Woehlke.
61774         (rpl_rename_dest_slash): On failure, use rename's errno rather
61775         than (in some cases) an incorrect or junk errno.
61776         Simplify code by removing need to compute length; this does
61777         cause it to make two passes instead of one over the file name,
61778         but it's worth it.
61779
61780         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
61781         change, since Autoconf's version may no longer be appropriate now
61782         that we are using CVS Autoconf's version.  Add support for Tandem.
61783
61784 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61785             Bruno Haible  <bruno@clisp.org>
61786
61787         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
61788         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
61789         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
61790         gl_AC_TYPE_LONG_LONG.
61791
61792         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
61793         instead of HAVE_LONG_LONG.
61794         * lib/printf-args.c (printf_fetchargs): Likewise.
61795         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
61796         * lib/vasnprintf.c (VASNPRINTF): Likewise.
61797         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
61798         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
61799         gl_AC_TYPE_LONG_LONG.
61800
61801 2006-10-11  Bruno Haible  <bruno@clisp.org>
61802
61803         * m4/longlong.m4: Add comments.
61804         * m4/ulonglong.m4: Likewise.
61805
61806 2006-10-10  Bruno Haible  <bruno@clisp.org>
61807
61808         Make it possible to #define stpcpy, strdup to aliases.
61809         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
61810         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
61811
61812 2006-10-10  Bruno Haible  <bruno@clisp.org>
61813
61814         Make it possible to #define gcd to an alias.
61815         * lib/gcd.c: Include config.h.
61816
61817 2006-10-10  Bruno Haible  <bruno@clisp.org>
61818
61819         Make it possible to #define c_isascii to an alias.
61820         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
61821         defined. Undefine the macros before defining them, to avoid gcc
61822         warnings.
61823         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
61824         define NO_C_CTYPE_MACROS early.
61825
61826 2006-10-10  Bruno Haible  <bruno@clisp.org>
61827
61828         Make it possible to #define set_program_name to an alias.
61829         * lib/progname.c: Don't undefine set_program_name; instead, undefine
61830         ENABLE_RELOCATABLE early.
61831
61832 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61833
61834         Port to Tandem NSK OSS, which has 64-bit signed int but at most
61835         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
61836         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
61837         More generally, don't assume that 64-bit signed int is available
61838         if unsigned int is, and vice versa.
61839         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
61840         unsigned symbols, not on their signed counterparts.
61841         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
61842         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
61843         (UINT64_C, UINTMAX_C):
61844         Likewise.
61845         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
61846         unsigned counterparts.
61847         (Have_long_long, Unsigned): New macros.
61848         (Int): Renamed from INT.
61849         (strtoimax): Use the new macros.
61850         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
61851         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
61852         * modules/inttypes (inttypes.h): Substitute
61853         HAVE_UNSIGNED_LONG_LONG_INT.
61854         * modules/stdint (stdint.h): Likewise.
61855         (Files): Add m4/ulonglong.m4.
61856
61857 2006-10-10  Bruno Haible  <bruno@clisp.org>
61858
61859         Fix a gcc -Wshadow warning.
61860         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
61861         to 'bucket'.
61862         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
61863         gl_linked_indexof_from_to): Likewise.
61864         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
61865         Likewise.
61866         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
61867         Likewise.
61868         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
61869         Reported by Eric Blake.
61870
61871 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
61872
61873         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
61874         for NetBSD.  Problem reported by Bruno Haible.
61875
61876 2006-10-09  Jim Meyering  <jim@meyering.net>
61877
61878         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
61879         Patch from Bruno Haible.
61880
61881 2006-10-09  Jim Meyering  <jim@meyering.net>
61882
61883         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
61884         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
61885         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
61886
61887 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61888
61889         Don't include <config.h> twice; this doesn't work in some cases,
61890         e.g., when config.h has "#define intmax_t long long int" and
61891         we include <config.h>, <inttypes.h>, <config.h> in that order.
61892         Problem reported by Matthew Woehlke in:
61893         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
61894         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
61895         * lib/fts-cycle.c: Don't include config.h.
61896         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
61897         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
61898         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
61899         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
61900         inttypes.h.
61901         * lib/xstrtoumax.c: Likewise.
61902         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
61903         __strtol and the like, so that this module is more like its siblings.
61904         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
61905         Remove; no longer needed now that we assume gnulib inttypes.h.
61906
61907 2006-10-08  Bruno Haible  <bruno@clisp.org>
61908
61909         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
61910         option.
61911
61912 2006-10-07  Jim Meyering  <jim@meyering.net>
61913
61914         * modules/inttypes (inttypes.h): Revert what seems to have been
61915         an inadvertent part of today's change: use "|", not "/" in the
61916         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
61917
61918 2006-10-07  Bruno Haible  <bruno@clisp.org>
61919
61920         * modules/sublist: New file.
61921
61922 2006-10-07  Bruno Haible  <bruno@clisp.org>
61923
61924         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
61925         * modules/argz (argz.h): Likewise.
61926         * modules/arpa_inet (arpa/inet.h): Likewise.
61927         * modules/byteswap (byteswap.h): Likewise.
61928         * modules/configmake (configmake.h): Likewise.
61929         * modules/fcntl (fcntl.h): Likewise.
61930         * modules/fnmatch (fnmatch.h): Likewise.
61931         * modules/getopt (getopt.h): Likewise.
61932         * modules/glob (glob.h): Likewise.
61933         * modules/inttypes (inttypes.h): Likewise.
61934         * modules/netinet_in (netinet/in.h): Likewise.
61935         * modules/poll (poll.h): Likewise.
61936         * modules/stdbool (stdbool.h): Likewise.
61937         * modules/stdint (stdint.h): Likewise.
61938         * modules/sys_select (sys/select.h): Likewise.
61939         * modules/sys_socket (sys/socket.h): Likewise.
61940         * modules/sys_stat (sys/stat.h): Likewise.
61941         * modules/sysexits (sysexits.h): Likewise.
61942         * modules/unistd (unistd.h): Likewise.
61943         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61944         Add a "DO NOT EDIT" comment to the generated file.
61945         (func_import): Likewise for gnulib-comp.m4.
61946
61947 2006-10-07  Bruno Haible  <bruno@clisp.org>
61948
61949         * lib/gl_sublist.h: New file.
61950         * lib/gl_sublist.c: New file.
61951
61952 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61953
61954         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
61955         name (relative to the original working directory) and the file
61956         name component (relative to the temporary working directory).  All
61957         callers changed.
61958         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
61959         * lib/mkdir-p.c (make_dir_parents): Likewise.
61960         * lib/mkdir-p.h (make_dir_parents): Likewise.
61961
61962 2006-10-06  Eric Blake  <ebb9@byu.net>
61963
61964         Define several macros for use by the clean-temp module.
61965         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
61966         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
61967         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
61968
61969         * lib/clean-temp.h (close_stream_temp): New declaration.
61970         * lib/clean-temp.c (includes): Pull in headers according to what
61971         other modules are in use.
61972         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
61973
61974 2006-10-06  Bruno Haible  <bruno@clisp.org>
61975
61976         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
61977         instead of fopen, fwriteerror.
61978
61979 2006-10-06  Bruno Haible  <bruno@clisp.org>
61980
61981         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
61982         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
61983         int.
61984         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
61985         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
61986         Return an error indicator.
61987         Suggested by Eric Blake.
61988
61989 2006-10-06  Bruno Haible  <bruno@clisp.org>
61990
61991         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
61992         Reported by Eric Blake.
61993
61994 2006-10-06  Bruno Haible  <bruno@clisp.org>
61995
61996         * modules/closeout (Description): Mention stderr too.
61997
61998 2006-10-06  Bruno Haible  <bruno@clisp.org>
61999         and Paul Eggert  <eggert@cs.ucla.edu>
62000
62001         * lib/closeout.c (close_stdout): Also close stderr.
62002         * lib/closeout.h: Update comment.
62003
62004 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62005
62006         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
62007         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
62008         * lib/dirchownmod.c: Include lchown.h.
62009         * lib/lchown.c: Don't include files that lchown.h now includes.
62010         Don't declare chown, since lchown.h now does that.
62011         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
62012         (lchown): Define to rpl_chown if lchown is declared but
62013         does not exist.  Declare using a prototype if lchown is not
62014         declared.  Add a copyright notice.
62015         * lib/mkstemp.h: Include <unistd.h>.
62016         * lib/openat.c: Include lchown.h.
62017
62018         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
62019         we now test for that separately.
62020         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
62021         rather than O_NOFOLLOW, when testing whether it's possible to
62022         avoid a race condition reliably.
62023         * lib/savewd.c (savewd_chdir): Likewise.
62024
62025         Remove macros that are no longer needed now that stdint.h is
62026         reliable.
62027         * lib/fsusage.c (UINTMAX_MAX): Remove.
62028         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
62029         * lib/utimecmp.c (SIZE_MAX): Remove.
62030
62031         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
62032
62033         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
62034         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
62035         O_NOATIME works.
62036
62037 2006-10-05  Bruno Haible  <bruno@clisp.org>
62038
62039         * lib/gl_list.h (gl_sortedlist_search_from_to,
62040         gl_sortedlist_indexof_from_to): New declarations.
62041         (gl_list_implementation): New fields sortedlist_search_from_to,
62042         sortedlist_indexof_from_to.
62043         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
62044         inline functions.
62045         * lib/gl_list.c (gl_sortedlist_search_from_to,
62046         gl_sortedlist_indexof_from_to): New functions.
62047         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
62048         function.
62049         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
62050         (gl_array_sortedlist_search_from_to): New function.
62051         (gl_array_list_implementation): Update.
62052         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
62053         function.
62054         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
62055         (gl_carray_sortedlist_search_from_to): New function.
62056         (gl_carray_list_implementation): Update.
62057         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
62058         gl_linked_sortedlist_indexof_from_to): New functions.
62059         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62060         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62061         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
62062         gl_tree_sortedlist_indexof_from_to): New functions.
62063         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62064         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62065         Update.
62066         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62067         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
62068         Update.
62069
62070 2006-10-05  Bruno Haible  <bruno@clisp.org>
62071
62072         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
62073         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
62074         (struct gl_list_implementation): Add fields search_from_to,
62075         indexof_from_to. Remove fields search, indexof.
62076         (gl_list_search): Use the search_from_to method.
62077         (gl_list_search_from, gl_list_search_from_to): New functions.
62078         (gl_list_indexof): Use the indexof_from_to method.
62079         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62080         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
62081         (gl_list_search_from, gl_list_search_from_to): New functions.
62082         (gl_list_indexof): Use the indexof_from_to method.
62083         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62084         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
62085         gl_array_indexof. Add start_index, end_index arguments.
62086         (gl_array_search_from_to): Renamed from gl_array_search. Add
62087         start_index, end_index arguments.
62088         (gl_array_remove, gl_array_list_implementation): Update.
62089         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
62090         gl_carray_indexof. Add start_index, end_index arguments.
62091         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
62092         start_index, end_index arguments.
62093         (gl_carray_remove, gl_carray_list_implementation): Update.
62094         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
62095         gl_linked_search. Add start_index, end_index arguments.
62096         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
62097         start_index, end_index arguments.
62098         (gl_linked_remove): Update.
62099         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62100         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62101         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
62102         field to 'size_t'.
62103         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
62104         gl_tree_search. Add start_index, end_index arguments.
62105         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62106         start_index, end_index arguments.
62107         (gl_tree_remove): Update.
62108         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62109         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62110         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
62111         function.
62112         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
62113         gl_tree_search. Add start_index, end_index arguments.
62114         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
62115         start_index, end_index arguments.
62116         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62117         Update.
62118         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62119
62120 2006-10-05  Bruno Haible  <bruno@clisp.org>
62121
62122         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
62123
62124         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
62125         fwriteerror_temp): New declarations.
62126         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
62127         (descriptors): New variable.
62128         (cleanup): First, close the descriptors.
62129         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
62130         fclose_temp, fwriteerror_temp): New functions.
62131
62132 2006-10-04  Jim Meyering  <jim@meyering.net>
62133
62134         * lib/fts.c (fts_open): Tiny comment change.
62135
62136 2006-10-04  Bruno Haible  <bruno@clisp.org>
62137
62138         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
62139         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
62140         gl_LOCK_BODY.
62141         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
62142         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
62143         gl_LOCK_EARLY_BODY.
62144         (gl_LOCK): Require gl_LOCK_BODY.
62145
62146 2006-10-04  Bruno Haible  <bruno@clisp.org>
62147
62148         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
62149         (gl_oset_search_atleast): New declaration.
62150         (struct gl_oset_implementation): Add field 'search_atleast'.
62151         (gl_oset_search_atleast): New inline function.
62152         * lib/gl_oset.c (gl_oset_search_atleast): New function.
62153         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
62154         (gl_array_oset_implementation): Update.
62155         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
62156         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
62157         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
62158
62159 2006-10-04  Bruno Haible  <bruno@clisp.org>
62160
62161         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
62162
62163 2006-10-03  Bruno Haible  <bruno@clisp.org>
62164
62165         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
62166         from gl_avltreehash_list_implementation.
62167
62168 2006-10-03  Bruno Haible  <bruno@clisp.org>
62169
62170         * lib/gl_oset.c (gl_oset_add): Fix return type.
62171
62172 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
62173
62174         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
62175
62176 2006-10-02  Eric Blake  <ebb9@byu.net>
62177
62178         * modules/strnlen (Depends-on): Add extensions.
62179
62180 2006-10-02  Eric Blake  <ebb9@byu.net>
62181
62182         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
62183         definition in 2.60+.
62184
62185 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
62186
62187         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
62188         checks.
62189
62190 2006-10-02  Bruno Haible  <bruno@clisp.org>
62191
62192         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
62193         to the AUTOMAKE_OPTIONS.
62194         Reported by Jim Meyering.
62195
62196 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62197
62198         Work around bug in Solaris 10 /proc file system:
62199         /proc/self/fd/NNN/.. isn't the parent directory of
62200         the directory whose file descriptor is NNN.  This needs to
62201         be worked around at run time, not compile time, since a
62202         program might be built on Solaris 8, where things work, and
62203         run on Solaris 10.
62204         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
62205         to use the following interface instead:
62206         (OPENAT_BUFFER_SIZE): New macro.
62207         (openat_proc_name): New function.
62208         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
62209         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
62210         Likewise.
62211         * lib/openat-proc.c: New file.
62212         * modules/openat (Files): Add lib/openat-proc.c.
62213         (Depends-on): Add same-inode, stdbool.
62214         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
62215
62216 2006-09-29  Bruno Haible  <bruno@clisp.org>
62217
62218         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
62219         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
62220         argument. Set stdout_closed before testing for ferror, not after.
62221         (fwriteerror, fwriteerror_no_ebadf): New functions.
62222
62223 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62224
62225         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
62226
62227 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
62228
62229         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
62230         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
62231
62232 2006-09-28  Jim Meyering  <jim@meyering.net>
62233
62234         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
62235         Include <unistd.h>.
62236
62237 2006-09-28  Bruno Haible  <bruno@clisp.org>
62238
62239         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
62240         * modules/linkedhash-list (Depends-on): Likewise.
62241         * modules/rbtreehash-list (Depends-on): Likewise.
62242
62243 2006-09-28  Bruno Haible  <bruno@clisp.org>
62244
62245         * lib/strndup.h: Simplify the redefinition of strndup.
62246         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
62247         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
62248
62249 2006-09-28  Bruno Haible  <bruno@clisp.org>
62250
62251         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
62252         * lib/gl_linkedhash_list.c: Likewise.
62253         * lib/gl_rbtreehash_list.c: Likewise.
62254
62255 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62256
62257         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
62258         getaddrinfo.
62259
62260         * lib/__fpending.h: Don't include <stdio_ext.h> unless
62261         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
62262         it causes <stdio_ext.h> to cause a compile-time error.
62263         Problem reported by Nelson H. F. Beebe.
62264         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
62265         of HAVE_DECL___PENDING.
62266
62267         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
62268         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
62269         declaration.
62270
62271 2006-09-27  Jim Meyering  <jim@meyering.net>
62272
62273         This file could end up with a definition for a function
62274         named __strndup, rather than rpl_strndup on a system with
62275         incomplete weak_alias support.
62276         * lib/strndup.c (strndup): Rename from __strndup.
62277         Remove #defines that used to map __strndup to strndup.
62278         Don't use K&R prototypes.
62279         Remove LIBC-related code, since this file is not sync'd with glibc.
62280         * lib/strndup.h: Revamp, accordingly.
62281         * m4/strndup.m4: Modernize.
62282
62283 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62284
62285         * modules/savewd (Depends-on): Add 'raise'.
62286         * lib/savewd.c: Include <signal.h>, for 'raise'.
62287
62288 2006-09-26  Jim Meyering  <jim@meyering.net>
62289
62290         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
62291         when we detect Darwin 8.7.0's acl_get_file bug.
62292         Rearrange to perform the new (below) run-test while $LIBS
62293         contains any acl-related library.  Set USE_ACL at the end.
62294         (gl_ACL_GET_FILE): New function.
62295
62296 2006-09-26  Eric Blake  <ebb9@byu.net>
62297
62298         * lib/verror.c: Include <config.h> unconditionally.
62299
62300 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
62301
62302         * modules/clock-time (Maintainer): Add self.
62303         * modules/getlogin_r (Depends-on): Add extensions.
62304
62305 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62306
62307         * modules/clock-time: New module.
62308         * modules/nanosleep (Depends-on): Add clock-time.
62309         * modules/gethrxtime (Depends-on): Likewise.
62310         * modules/gettime (Depends-on): Likewise.
62311         * modules/settime (Depends-on): Likewise.
62312
62313         * modules/fts-lgpl: Depend on openat.
62314         * modules/mkancesdirs: Depend on savewd.
62315         * modules/mkdir-p: Likewise.
62316
62317 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62318
62319         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62320
62321         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62322         `gl_have_arbitrary_file_name_length_limit' to
62323         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62324         actually works between configure runs.
62325
62326 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62327             Bruno Haible  <bruno@clisp.org>
62328
62329         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62330
62331 2006-09-25  Jim Meyering  <jim@meyering.net>
62332
62333         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62334         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62335
62336 2006-09-25  Eric Blake  <ebb9@byu.net>
62337
62338         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62339         exec's in 2006-09-18 patch when shuffling fds.
62340
62341 2006-09-25  Bruno Haible  <bruno@clisp.org>
62342
62343         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62344         Reported by Jim Meyering.
62345
62346 2006-09-24  Jim Meyering  <jim@meyering.net>
62347
62348         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62349         compare a pointer against a literal "0".  That caused failures with
62350         at least HP-UX's hpcc.
62351
62352 2006-09-22  Simon Josefsson  <jas@extundo.com>
62353
62354         * modules/gc-sha1:
62355         * modules/gc-md4:
62356         * modules/gc-hmac-sha1:
62357         * modules/gc-hmac-md5:
62358         * modules/gc-des:
62359         * modules/gc-arcfour: Distribute more files.
62360
62361 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62362
62363         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62364         (gl_linked_iterator_from_to): Initialize struct completely.
62365         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62366         (gl_tree_iterator_from_to): Likewise
62367         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62368         * lib/gl_array_list.c [lint] (gl_array_iterator)
62369         (gl_array_iterator_from_to): Likewise.
62370         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62371         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62372         (gl_carray_iterator_from_to): Likewise.
62373
62374         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62375         * lib/md4.c (md4_process_block): Remove unused variable.
62376         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62377         parentheses for clarity.
62378
62379 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62380
62381         * modules/bison-i18n (Depends-on): Add gettext.
62382
62383 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62384
62385         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62386         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62387         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62388         also add missing comma that caused broken test.
62389         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62390         stdlib.h, for `abort'.
62391         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62392         variables.
62393         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62394         include unistd.h if present, for `rmdir'.
62395         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62396         variables.
62397         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62398         in the process include standard headers for prototypes.
62399         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62400         gets declared on GNU/Linux.
62401         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62402         unistd.h, for `rmdir'.
62403         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62404
62405         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62406         always true.
62407         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62408
62409         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62410
62411 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62412
62413         * gnulib-tool (func_version): Create output all at once.  This
62414         may help avoid triggering unnecessary SIGPIPEs, and at any
62415         rate it doesn't hurt.
62416
62417 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62418             Bruno Haible  <bruno@clisp.org>
62419
62420         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62421         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62422         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62423
62424         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62425         (gl_FUNC_VASPRINTF): Invoke it.
62426
62427 2006-09-22  Bruno Haible  <bruno@clisp.org>
62428
62429         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62430         getloadavg.c as first argument.
62431
62432 2006-09-22  Bruno Haible  <bruno@clisp.org>
62433
62434         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62435         at the beginning of the gl_INIT macro.
62436         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62437         gl_GETLOADAVG.
62438
62439 2006-09-22  Bruno Haible  <bruno@clisp.org>
62440
62441         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62442         module.
62443         Suggested by Ralf Wildenhues.
62444
62445 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62446
62447         Import this patch from libc:
62448
62449         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62450
62451         * lib/regex_internal.c (re_string_reconstruct): Handle
62452         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62453         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62454         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62455         re_string_context_at.
62456
62457         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62458         now requires it.
62459         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62460         gl_REGEX now does it for us.
62461         (gl_REGEX): Add test taken from
62462         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62463
62464         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62465         Check that large offsets work.  Modernize Autoconf usages.
62466         Prefer "yes" to mean a good thing rather than a bad.
62467         Don't put "#define mkstemp" in config.h, as this might interfere
62468         with standard system headers that "#define mkstemp mkstemp64".
62469
62470         * modules/mkstemp (Depends-on): Add extensions, so that
62471         mkstemp is visible on some platforms.
62472         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62473         (Include): Change to "mkstemp.h" from <stdlib.h>.
62474         (Files): Add mkstemp.h.
62475
62476         * lib/mkstemp.h: New file, since some standard headers
62477         #define mkstemp.
62478         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62479         Include "mkstemp.h".
62480         Make the _LIBC code resemble glibc original more,
62481         e.g., use K&R style.
62482         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62483         (mkstemp): Remove, since mkstemp.h does this for us.
62484         * lib/stdlib--.h: Include mkstemp.h.
62485
62486         Import this patch from libc:
62487
62488         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62489
62490         * lib/tempname.c (__gen_tempname): Change attempts_min
62491         into a macro.  Use preprocessor to decide how to initialize
62492         attempts [Coverity CID 67].
62493
62494 2006-09-20  Bruno Haible  <bruno@clisp.org>
62495
62496         * lib/mkdtemp.c: Import from libc.
62497         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62498                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62499                 attempts_min into a macro.  Use preprocessor to decide how to
62500                 initialize attempts [Coverity CID 67].
62501         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62502                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62503                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62504
62505 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62506
62507         * gnulib-tool (func_exit): New function, to allow to pass the
62508         exit status portably through the trap.  Use everywhere.
62509         (--help, --version): Signal a write error.
62510         (trap): catch SIGPIPE, for write errors.
62511         Exit at the end of the trap, with the correct exit status.
62512
62513 2006-09-19  Karl Berry  <karl@gnu.org>
62514
62515         * doc/gnulib.texi: note about the license texinfo files.
62516
62517 2006-09-19  Eric Blake  <ebb9@byu.net>
62518
62519         * gnulib-tool: Avoid space-tab.
62520
62521 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62522
62523         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62524         that prevented coreutils 6.1 from building.  Problem reported
62525         by Petter Reinholdtsen.
62526
62527 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62528
62529         * gnulib-tool (avoidlist): Fix typo that broke options like
62530         --avoid=lock that are used by coreutils bootstrap.
62531
62532 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
62533
62534         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
62535         more systematically.
62536
62537 2006-09-18  Jim Meyering  <jim@meyering.net>
62538
62539         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
62540
62541 2006-09-18  Bruno Haible  <bruno@clisp.org>
62542
62543         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
62544
62545 2006-09-18  Bruno Haible  <bruno@clisp.org>
62546
62547         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
62548         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
62549         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
62550         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
62551         * m4/gettext.m4: Require autoconf >= 2.52.
62552         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
62553         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
62554         of gl_cv_header_inttypes_h.
62555
62556 2006-09-18  Bruno Haible  <bruno@clisp.org>
62557
62558         * lib/javaversion.c: Include configmake.h.
62559
62560 2006-09-18  Bruno Haible  <bruno@clisp.org>
62561
62562         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
62563         avoid that the while loops be executed in a subshell.
62564
62565 2006-09-18  Bruno Haible  <bruno@clisp.org>
62566
62567         * MODULES.html.sh (func_module): Break long lines.
62568         Suggested by Bruce Korb <bkorb@gnu.org>.
62569
62570 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62571
62572         Speed up by a factor of 1.12.
62573         * gnulib-tool (nl): New variable.
62574         (func_import): Rewrite include directive extraction to only read each
62575         directive once.
62576
62577 2006-09-17  Bruno Haible  <bruno@clisp.org>
62578
62579         * modules/javaversion (Makefile.am): Remove DEFS setting.
62580         (Depends-on): Add configmake, for PKGDATADIR definition.
62581
62582 2006-09-17  Bruno Haible  <bruno@clisp.org>
62583
62584         * gnulib-tool (func_create_testdir): Rewrite all files at once.
62585
62586 2006-09-17  Bruno Haible  <bruno@clisp.org>
62587
62588         * gnulib-tool (func_append): New function, stolen from libtool.m4.
62589         (func_modules_transitive_closure, func_modules_add_dummy,
62590         func_modules_to_filelist, func_import, func_create_testdir,
62591         func_create_megatestdir, ...): Use it wherever possible.
62592         Suggested by Ralf Wildenhues.
62593
62594 2006-09-16  Karl Berry  <karl@gnu.org>
62595
62596         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
62597         to avoid sectioning errors.
62598         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
62599         [ifinfo]: blank line after @center-ed titles.
62600         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
62601         Spell FSF address consistently with others.
62602         (These changes approved by rms.)
62603
62604 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62605
62606         Speed up by a factor of 1.61.
62607         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
62608         already checked module names again.
62609
62610 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62611
62612         Speed up by a factor of 1.13.
62613         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
62614         for new_files, and the input to func_add_or_update.
62615
62616 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62617
62618         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62619         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62620
62621 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62622
62623         * modules/mkancesdirs (Depends-on): Add fcntl.
62624         * modules/savewd: New file.
62625         * MODULES.html.sh (File system functions): Add savewd.
62626
62627         * modules/configmake (Makefile.am): Add support for the
62628         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62629
62630 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62631
62632         * m4/savewd.m4: New file.
62633
62634 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62635
62636         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62637         (dirchownmod): New arg FD.  All callers changed.
62638         Use FD rather than opening the directory ourself, as opening is
62639         now the caller's responsibility.
62640         * lib/dirchownmod.h: Likewise.
62641         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62642         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62643         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62644         (test_dir): Remove.
62645         (mkancesdirs): Return length of prefix of FILE that has already
62646         been made, or -2 if there is a child doing the work.  Redo
62647         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62648         ".", and treat ".." specially since it might stray back into
62649         already-created areas.  Use a subprocess if necessary.  New arg
62650         WD; all users changed.  MAKE_DIR function should now return 1
62651         if it creates a directory that is not readable.  Return -2 if
62652         a child process is spun off.
62653         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62654         Adjust signature to match code.
62655         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62656         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62657         all users changed.
62658         * lib/savewd.c, lib/savewd.h: New files.
62659
62660 2006-09-15  Jim Meyering  <jim@meyering.net>
62661
62662         * modules/rename-dest-slash: New module.
62663         * MODULES.html.sh (posix_compat): Add it here.
62664
62665         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62666
62667 2006-09-15  Jim Meyering  <jim@meyering.net>
62668
62669         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62670         file.
62671
62672         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62673
62674 2006-09-15  Jim Meyering  <jim@meyering.net>
62675
62676         * lib/rename-dest-slash.c (has_trailing_slash): Use
62677         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62678         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62679         test before testing whether SRC is a directory.
62680         Suggestions from Bruno Haible.
62681
62682         Avoid a warning about an unused variable.
62683         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62684         into the #ifdef block where it's used.
62685
62686         * lib/rename-dest-slash.c: New file.
62687
62688 2006-09-14  Bruno Haible  <bruno@clisp.org>
62689
62690         * lib/allocsa.c: Include <config.h> unconditionally.
62691         * lib/asnprintf.c: Likewise.
62692         * lib/asprintf.c: Likewise.
62693         * lib/c-strcasecmp.c: Likewise.
62694         * lib/c-strcasestr.c: Likewise.
62695         * lib/c-strncasecmp.c: Likewise.
62696         * lib/c-strstr.c: Likewise.
62697         * lib/classpath.c: Likewise.
62698         * lib/clean-temp.c: Likewise.
62699         * lib/concatpath.c: Likewise.
62700         * lib/copy-file.c: Likewise.
62701         * lib/csharpcomp.c: Likewise.
62702         * lib/csharpexec.c: Likewise.
62703         * lib/execute.c: Likewise.
62704         * lib/fatal-signal.c: Likewise.
62705         * lib/findprog.c: Likewise.
62706         * lib/fwriteerror.c: Likewise.
62707         * lib/gl_array_list.c: Likewise.
62708         * lib/gl_array_oset.c: Likewise.
62709         * lib/gl_avltree_list.c: Likewise.
62710         * lib/gl_avltree_oset.c: Likewise.
62711         * lib/gl_avltreehash_list.c: Likewise.
62712         * lib/gl_carray_list.c: Likewise.
62713         * lib/gl_linked_list.c: Likewise.
62714         * lib/gl_linkedhash_list.c: Likewise.
62715         * lib/gl_list.c: Likewise.
62716         * lib/gl_oset.c: Likewise.
62717         * lib/gl_rbtree_list.c: Likewise.
62718         * lib/gl_rbtree_oset.c: Likewise.
62719         * lib/gl_rbtreehash_list.c: Likewise.
62720         * lib/imaxabs.c: Likewise.
62721         * lib/imaxdiv.c: Likewise.
62722         * lib/javacomp.c: Likewise.
62723         * lib/javaexec.c: Likewise.
62724         * lib/javaversion.c: Likewise.
62725         * lib/linebreak.c: Likewise.
62726         * lib/localcharset.c: Likewise.
62727         * lib/lock.c: Likewise.
62728         * lib/mbchar.c: Likewise.
62729         * lib/mbswidth.c: Likewise.
62730         * lib/mkdtemp.c: Likewise.
62731         * lib/pipe.c: Likewise.
62732         * lib/printf-args.c: Likewise.
62733         * lib/printf-parse.c: Likewise.
62734         * lib/progname.c: Likewise.
62735         * lib/progreloc.c: Likewise.
62736         * lib/readlink.c: Likewise.
62737         * lib/sh-quote.c: Likewise.
62738         * lib/stpcpy.c: Likewise.
62739         * lib/stpncpy.c: Likewise.
62740         * lib/strcasecmp.c: Likewise.
62741         * lib/strcasestr.c: Likewise.
62742         * lib/strcspn.c: Likewise.
62743         * lib/striconv.c: Likewise.
62744         * lib/strncasecmp.c: Likewise.
62745         * lib/strnlen1.c: Likewise.
62746         * lib/strstr.c: Likewise.
62747         * lib/strtok_r.c: Likewise.
62748         * lib/tls.c: Likewise.
62749         * lib/tmpdir.c: Likewise.
62750         * lib/unicodeio.c: Likewise.
62751         * lib/unsetenv.c: Likewise.
62752         * lib/vasnprintf.c: Likewise.
62753         * lib/vasprintf.c: Likewise.
62754         * lib/wait-process.c: Likewise.
62755         * lib/xallocsa.c: Likewise.
62756         * lib/xsetenv.c: Likewise.
62757         * lib/xstriconv.c: Likewise.
62758
62759 2006-09-13  Simon Josefsson  <jas@extundo.com>
62760
62761         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
62762         that internally, suggested by Ralf Wildenhues
62763         <Ralf.Wildenhues@gmx.de>.
62764
62765 2006-09-13  Simon Josefsson  <jas@extundo.com>
62766
62767         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
62768         @LIBOBJS@.
62769         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62770
62771 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62772
62773         * lib/_fpending.c: Include <config.h> unconditionally, since we no
62774         longer worry about uses that don't define HAVE_CONFIG_H.
62775         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
62776         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
62777         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
62778         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
62779         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
62780         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
62781         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
62782         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
62783         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
62784         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
62785         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
62786         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
62787         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
62788         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
62789         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
62790         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
62791         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
62792         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
62793         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
62794         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
62795         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
62796         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
62797         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
62798         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
62799         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
62800         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
62801         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
62802         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
62803         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
62804         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
62805         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
62806         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
62807         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
62808         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
62809         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
62810         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
62811         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
62812         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
62813         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
62814         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
62815         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
62816         Likewise.
62817
62818 2006-09-13  Eric Blake  <ebb9@byu.net>
62819
62820         * lib/getopt.c: Fix typo in last commit.
62821
62822 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62823
62824         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
62825         dgettext.
62826
62827 2006-09-12  Jim Meyering  <jim@meyering.net>
62828
62829         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
62830         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
62831         Reported by Nelson H. F. Beebe.
62832
62833 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62834
62835         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
62836         program_invocation_name and program_invocation_short_name are
62837         initialized.
62838         * lib/argp-namefrob.h: Move declarations of program_invocation_name
62839         and program_invocation_short_name to argp.h, so they are visible
62840         to user programs.
62841         * lib/argp.h: Likewise
62842
62843 2006-09-10  Bruno Haible  <bruno@clisp.org>
62844
62845         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62846         m4/inttypes_h.m4, m4/uintmax_t.m4.
62847
62848 2006-09-10  Bruno Haible  <bruno@clisp.org>
62849
62850         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
62851         gl_AC_TYPE_UINTMAX_T.
62852
62853 2006-09-10  Bruno Haible  <bruno@clisp.org>
62854
62855         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
62856
62857 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62858
62859         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
62860         convention.  Text proposed by Bruno Haible.
62861         (struct argp_option): Document the use of N_() wrappers.
62862
62863         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
62864         '\v', and translate the two parts separately, instead of feeding
62865         the whole string to gettext.  This allows to exclude
62866         '\v' from the strings visible to the translator by writing doc
62867         strings as N_("..") "\v" N_("..").
62868
62869 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
62870
62871         * config/srclist.txt: Undo latest change; the bug was fixed.
62872
62873 2006-09-09  Bruno Haible  <bruno@clisp.org>
62874
62875         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
62876         assignments if building a library without libtool.
62877         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
62878         in func_emit_lib_Makefile_am.
62879         (func_import): When building a static library libfoo.a, arrange to
62880         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
62881         (func_create_testdir): Likewise.
62882         * modules/gc (configure.ac, Makefile.am): If building statically,
62883         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
62884         * modules/iconvme (configure.ac, Makefile.am): Likewise.
62885         * modules/striconv (configure.ac, Makefile.am): Likewise.
62886         Based on a suggestion by Ralf Wildenhues.
62887
62888 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62889
62890         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62891         Check for unistd.h too, since Autoconf doesn't assume POSIX.
62892         Also:
62893
62894         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62895         Add year_2050_test to catch glibc bug 2821
62896         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62897
62898         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62899         Prefer #ifdef to #if.
62900
62901         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
62902         Return from 'main' instead of calling 'exit'.
62903
62904 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62905
62906         * lib/mktime.c (guess_time_tm): Fix bug where mktime
62907         returned the maximum time_t value rather than (time_t) -1.
62908         Problem originally reported by William Bardwell
62909         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62910
62911         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62912         Moved to here ...
62913         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62914         ... from here.
62915
62916 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62917
62918         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
62919         2821 is fixed.
62920
62921 2006-09-08  Jim Meyering  <jim@meyering.net>
62922
62923         Don't make generated files read-only.  That would bother too many
62924         people.  However, do retain the ability to work when targets are
62925         read-only: remove the destination and temporary files before writing
62926         them (when generated via sed or echo), or by using the -f option for
62927         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
62928         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62929         * modules/byteswap, modules/configmake, modules/fcntl:
62930         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62931         * modules/localcharset, modules/netinet_in, modules/poll:
62932         * modules/stdbool, modules/stdint, modules/sys_select:
62933         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62934
62935 2006-09-08  Jim Meyering  <jim@meyering.net>
62936
62937         Avoid new build failure on FreeBSD 6.0.
62938         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
62939         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
62940         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
62941
62942 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62943
62944         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
62945
62946 2006-09-07  Jim Meyering  <jim@meyering.net>
62947
62948         Fix global typo in last change: use chmod u-w, not chmod u-x.
62949         Spotted by Paul Eggert and Bruce Korb.
62950         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62951         * modules/byteswap, modules/configmake, modules/fcntl:
62952         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62953         * modules/localcharset, modules/netinet_in, modules/poll:
62954         * modules/stdbool, modules/stdint, modules/sys_select:
62955         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62956
62957 2006-09-06  Jim Meyering  <jim@meyering.net>
62958
62959         Make generated files be read-only.
62960         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
62961         Ensure that each generated file is now read-only.
62962         * modules/argz: Likewise.
62963         * modules/arpa_inet: Likewise.
62964         * modules/byteswap: Likewise.
62965         * modules/configmake: Likewise.
62966         * modules/fcntl: Likewise.
62967         * modules/fnmatch: Likewise.
62968         * modules/getopt: Likewise.
62969         * modules/glob: Likewise.
62970         * modules/inttypes: Likewise.
62971         * modules/netinet_in: Likewise.
62972         * modules/poll: Likewise.
62973         * modules/stdbool: Likewise.
62974         * modules/stdint: Likewise.
62975         * modules/sys_select: Likewise.
62976         * modules/sys_socket: Likewise.
62977         * modules/sys_stat: Likewise.
62978         * modules/sysexits: Likewise.
62979         * modules/localcharset: Same as above, but continue using temporary
62980         file named "t-$@" (why different?) rather than the "$@-t" used
62981         everywhere else.
62982
62983         * modules/sysexits (Makefile.am): Replace literal occurrences
62984         of "sysexit.h" more readable, and more consistent, "$@".
62985
62986 2006-09-06  Bruno Haible  <bruno@clisp.org>
62987
62988         * modules/striconv: New file.
62989         * modules/xstriconv: New file.
62990         * MODULES.html.sh (Internationalization functions): Add striconv,
62991         xstriconv.
62992
62993 2006-09-06  Bruno Haible  <bruno@clisp.org>
62994
62995         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
62996         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
62997         not using libtool correctly.
62998
62999 2006-09-06  Bruno Haible  <bruno@clisp.org>
63000
63001         * lib/striconv.h: New file.
63002         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
63003         iconvstring.c.
63004         * lib/xstriconv.h: New file.
63005         * lib/xstriconv.c: New file.
63006
63007 2006-09-06  Bruno Haible  <bruno@clisp.org>
63008
63009         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63010         lib_..._LDFLAGS.
63011
63012 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63013
63014         * lib/argz_.h: Sync from Libtool.
63015
63016         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
63017                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63018
63019         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
63020
63021 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63022
63023         * modules/trim: New file.
63024
63025 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63026
63027         * lib/trim.h: New file.
63028         * lib/trim.c: New file.
63029
63030 2006-09-05  Bruno Haible  <bruno@clisp.org>
63031
63032         * MODULES.html.sh (String handling): Add trim.
63033
63034 2006-09-04  Karl Berry  <karl@gnu.org>
63035
63036         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
63037         until next release.
63038
63039 2006-09-03  Bruno Haible  <bruno@clisp.org>
63040
63041         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
63042         correctly.
63043
63044 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63045
63046         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
63047         not gl_GETLOADAVG.  Omit unneeded semicolons.
63048         Problems reported by Ralf Wildenhues in
63049         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63050         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
63051         at the end, which is the usual gnulib style.
63052
63053         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
63054         of doing all the work ourselves.
63055         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
63056         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
63057
63058 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63059
63060         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
63061         Problem reported by Ralf Wildenhues in
63062         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63063
63064         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
63065         HAVE_STRUCT_STATFS_F_FSTYPENAME.
63066
63067 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63068
63069         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
63070         yesterday's patch by changing test -n to test -z.
63071
63072 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63073
63074         * modules/getloadavg (Files): Add m4/getloadavg.m4.
63075         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
63076         the former is now obsolescent.
63077
63078         * modules/chdir-long (Depends-on): Add fcntl.
63079
63080 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63081
63082         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
63083         obsolescent, and programs should use gnulib instead.
63084         * m4/getloadavg.m4: New file, with contents taken from Autoconf
63085         but with prefixes changed.
63086
63087 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63088
63089         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
63090         or stdbool.h, because they might not exist while configuring.
63091
63092         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
63093         Don't include unistd.h or limits.h; not needed, since chdir-long.h
63094         does that for us.
63095         (O_DIRECTORY): Remove.
63096
63097 2006-08-31  Eric Blake  <ebb9@byu.net>
63098
63099         * gnulib-tool: Don't let emacs change spaces to TAB.
63100
63101 2006-08-31  Bruno Haible  <bruno@clisp.org>
63102
63103         * gnulib-tool: When calling func_import more than once, do it in a
63104         subshell.
63105         Reported by Eric Blake <ebb9@byu.net>.
63106
63107 2006-08-31  Bruno Haible  <bruno@clisp.org>
63108
63109         * gnulib-tool (nl): Remove variable.
63110         (sed_transform_lib_file): Use more robust test for config-h module.
63111         (func_import): Fix typo in 2006-08-25 patch.
63112
63113 2006-08-31  Bruno Haible  <bruno@clisp.org>
63114
63115         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
63116         specified, augment Makefile.am variables instead of assigning them.
63117
63118 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63119
63120         Work around a bug in both the Linux and SunOS 64-bit kernels:
63121         nanosleep mishandles sleeps for longer than 2**31 seconds.
63122         Problem reported by Frank v Waveren in
63123         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63124         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
63125         Check for nanosleep bug.
63126         (LIB_NANOSLEEP): Append clock_gettime library if needed.
63127
63128 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63129
63130         Work around a bug in both the Linux and SunOS 64-bit kernels:
63131         nanosleep mishandles sleeps for longer than 2**31 seconds.
63132         Problem reported by Frank v Waveren in
63133         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
63134         * lib/nanosleep.c (BILLION): New constant.
63135         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
63136         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
63137         implementation.
63138
63139 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63140
63141         * modules/nanosleep (Depends-on): Add gettime.
63142
63143 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63144         and Simon Josefsson  <jas@extundo.com>
63145         and Oskar Liljeblad  <oskar@osk.mine.nu>
63146
63147         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
63148         * gnulib-tool (func_import): New license type 'unmodifiable license
63149         text'.
63150         * modules/fdl: Use it.  Longer description.
63151         * module/gpl, module/lgpl: New files.
63152
63153 2006-08-30  Jim Meyering  <jim@meyering.net>
63154
63155         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
63156         shadowing the parameter.
63157
63158 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63159
63160         Sync from Libtool:
63161
63162         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63163
63164         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
63165         sharing with gnulib.  Report by Eric Blake.
63166
63167 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63168
63169         * modules/isapipe: New file.
63170         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
63171
63172 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63173
63174         * modules/configmake (Makefile.am): Add a comment, and omit
63175         the CONFIGMAKE_ prefix from generated macro names.  Suggested
63176         by Bruno Haible.
63177
63178 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63179
63180         * m4/isapipe.m4: New file.
63181
63182 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
63183
63184         * lib/isapipe.c, lib/isapipe.h: New files.
63185
63186 2006-08-29  Jim Meyering  <jim@meyering.net>
63187
63188         * modules/configmake (Makefile.am): Make configmake.h depend on
63189         Makefile.  Otherwise, a stale configmake.h could hang around.
63190
63191 2006-08-29  Eric Blake  <ebb9@byu.net>
63192
63193         * lib/error.c (error_at_line, print_errno_message): Match libc, after
63194         resolution of upstream bug 3044.
63195
63196 2006-08-29  Bruno Haible  <bruno@clisp.org>
63197
63198         * modules/localcharset (Depends-on): Add configmake.
63199         (Makefile.am): Remove setting of LIBDIR through DEFS.
63200
63201 2006-08-29  Bruno Haible  <bruno@clisp.org>
63202
63203         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
63204         defined.
63205
63206 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63207
63208         * modules/fcntl: New file.
63209         * modules/chdir-safer (Depends-on): Add fcntl.
63210         * modules/fts: Likewise.
63211         * modules/mkdir-p: Likewise.
63212
63213         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
63214         This undoes the most recent change, since we're now addressing the
63215         problem in a different way.
63216
63217         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
63218         into output, since the output might be called Makefile.am even
63219         if $makefile_name is something different.
63220         (func_import): Use $makefile_am rather than
63221         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
63222         empty.
63223
63224         * modules/inttypes (Files): Add m4/inttypes-h.m4.
63225
63226 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63227
63228         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
63229         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
63230         recent change to stdint.m4, since we're now addressing the problem in a
63231         different way.
63232
63233 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63234
63235         * m4/fcntl_h.m4: New file.
63236
63237 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
63238
63239         * lib/fcntl_.h: New file.
63240         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
63241         the fcntl module.
63242         * lib/dirchownmod.c: Likewise.
63243         * lib/fts.c: Likewise.
63244
63245         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
63246         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
63247         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
63248         just before including <inttypes.h>, to avoid circular inclusion.
63249
63250 2006-08-28  Jim Meyering  <jim@meyering.net>
63251
63252         * doc/visibility.texi: Actually read and correct the grammar of the
63253         sentence affected by yesterday's change.
63254
63255 2006-08-28  Eric Blake  <ebb9@byu.net>
63256
63257         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
63258         needs wrapper.
63259
63260 2006-08-28  Eric Blake  <ebb9@byu.net>
63261
63262         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
63263
63264 2006-08-28  Eric Blake  <ebb9@byu.net>
63265
63266         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
63267
63268 2006-08-28  Bruno Haible  <bruno@clisp.org>
63269
63270         * modules/c-strstr: New file, from GNU gettext.
63271         * MODULES.html.sh (String handling): Add c-strstr.
63272
63273 2006-08-28  Bruno Haible  <bruno@clisp.org>
63274
63275         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
63276         macros.
63277         Reported by Eric Blake.
63278
63279 2006-08-28  Bruno Haible  <bruno@clisp.org>
63280
63281         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
63282         (VASNPRINTF): Return a string of length > INT_MAX without failing.
63283         * lib/vasprintf.c: Include errno.h, limits.h.
63284         (EOVERFLOW): New fallback definition.
63285         (vasprintf): Test here whether the string length is > INT_MAX.
63286         * lib/vsnprintf.c: Include errno.h, limits.h.
63287         (EOVERFLOW): New fallback definition.
63288         (vsnprintf): Fix bug when generated string was too long for the buffer.
63289         Test here whether the string length is > INT_MAX.
63290
63291 2006-08-28  Bruno Haible  <bruno@clisp.org>
63292
63293         * lib/inttypes_.h (SCNX*): Remove definitions.
63294         Reported by Eric Blake.
63295
63296 2006-08-28  Bruno Haible  <bruno@clisp.org>
63297
63298         * lib/c-strstr.h: New file, from GNU gettext.
63299         * lib/c-strstr.c: New file, from GNU gettext.
63300
63301 2006-08-28  Bruno Haible  <bruno@clisp.org>
63302
63303         * gnulib-tool: Reorder some statements.
63304
63305 2006-08-28  Bruno Haible  <bruno@clisp.org>
63306
63307         * gnulib-tool: New option --makefile-name.
63308         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63309         $makefile_name.
63310         (func_import): Write $makefile_name to the cache file, and read it from
63311         there unless explicitly specified. Use $makefile_name as file name
63312         instead of Makefile.am. Adjust the recommendations accordingly.
63313
63314 2006-08-28  Bruno Haible  <bruno@clisp.org>
63315
63316         * gnulib-tool (func_verify_module): Check against misapplying patch.
63317
63318 2006-08-28  Bruno Haible  <bruno@clisp.org>
63319
63320         * gnulib-tool (func_relativize, func_relconcat): New functions.
63321         Give an error if --local-dir is given with --update.
63322         Remove trailing slashes from $local_gnulib_dir.
63323         (func_import): Store the relativized $local_gnulib_dir in
63324         gnulib-cache.m4, and read it from there if not specified explicitly.
63325
63326 2006-08-28  Bruno Haible  <bruno@clisp.org>
63327
63328         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63329         is the current directory. Respect also $local_gnulib_dir.
63330
63331 2006-08-28  Bruno Haible  <bruno@clisp.org>
63332             Simon Josefsson  <jas@extundo.com>
63333
63334         BeOS portability.
63335         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63336
63337 2006-08-27  Jim Meyering  <jim@meyering.net>
63338
63339         * doc/visibility.texi: Remove duplicate word: "pointer".
63340
63341 2006-08-26  Bruno Haible  <bruno@clisp.org>
63342
63343         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63344         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63345         (Makefile.am): Create inttypes.h from inttypes_.h.
63346         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63347
63348         * modules/imaxabs: New file.
63349
63350         * modules/imaxdiv: New file.
63351
63352 2006-08-26  Bruno Haible  <bruno@clisp.org>
63353
63354         * m4/inttypes.m4: New file.
63355         * m4/_inttypes_h.m4: Remove file.
63356         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63357         PRI_MACROS_BROKEN.
63358         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63359
63360         * m4/imaxabs.m4: New file.
63361
63362         * m4/imaxdiv.m4: New file.
63363
63364 2006-08-26  Bruno Haible  <bruno@clisp.org>
63365
63366         * lib/inttypes_.h: New file.
63367         * lib/inttypes.h: Remove file.
63368         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63369
63370         * lib/imaxabs.c: New file.
63371
63372         * lib/imaxdiv.c: New file.
63373
63374 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63375
63376         New config-h module, so that "make" output needn't be cluttered
63377         by -DHAVE_CONFIG_H.
63378         * MODULES.html.sh (Support for building libraries and executables):
63379         Add config-h.
63380         * modules/config-h: New file.
63381         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63382         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63383         the config-h module is used.
63384
63385         New configmake module, so that "make" output needn't be cluttered
63386         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63387         * MODULES.html.sh (Support for building libraries and executables):
63388         Add configmake.
63389         * modules/configmake: New file.
63390
63391 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63392
63393         * m4/config-h.m4: New file.
63394
63395 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63396
63397         * config/srclist.txt: Add elisp-comp.
63398
63399 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63400
63401         * MODULES.html.sh (Support for building libraries and executables):
63402         Add elisp-comp.
63403         * build-aux/elisp-comp: New file.
63404         * modules/elisp-comp: New file.
63405
63406 2006-08-24  Bruno Haible  <bruno@clisp.org>
63407
63408         * gnulib-tool (func_create_testdir): Use non-default values of
63409         sourcebase and m4base.
63410
63411 2006-08-24  Bruno Haible  <bruno@clisp.org>
63412
63413         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63414         HTML structure.
63415
63416 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63417
63418         * modules/openat (Depends-on): Add lchown.
63419
63420 2006-08-23  Bruno Haible  <bruno@clisp.org>
63421
63422         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63423         of gl_LOCK_EARLY instead of gl_LOCK.
63424
63425 2006-08-23  Bruno Haible  <bruno@clisp.org>
63426
63427         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63428         on OSF/1 to no.
63429         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63430
63431 2006-08-23  Bruno Haible  <bruno@clisp.org>
63432
63433         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63434         as unusable.
63435
63436         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63437         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63438         (gl_LOCK): New macro.
63439
63440 2006-08-22  Simon Josefsson  <jas@extundo.com>
63441
63442         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63443         to md5 module.
63444
63445 2006-08-22  Simon Josefsson  <jas@extundo.com>
63446
63447         * MODULES.html.sh: Add "Support for maintaining and release
63448         projects".
63449
63450         * build-aux/gnupload: New file, from coreutils.
63451
63452 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63453
63454         Avoid the need for AC_LIBSOURCES in m4 macros.
63455         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63456         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63457         * modules/check-version (EXTRA_DIST): Add check-version.h.
63458         * modules/crc (EXTRA_DIST): Add crc.h.
63459         * modules/des (EXTRA_DIST): Add des.h.
63460         * modules/gc (EXTRA_DIST): Add gc.h.
63461         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63462         * modules/getline (EXTRA_DIST): Add getline.h.
63463         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63464         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63465         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63466         * modules/md2 (EXTRA_DIST): Add md2.h.
63467         * modules/md4 (EXTRA_DIST): Add md4.h.
63468         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63469         * modules/read-file (EXTRA_DIST): Add read-file.h.
63470         * modules/readline (EXTRA_DIST): Add readline.h.
63471         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63472         rijndael-api-fst.h.
63473
63474 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63475
63476         * m4/rijndael.m4 (gl_ARCFOUR):
63477         * m4/arctwo.m4 (gl_ARCTWO):
63478         * m4/check-version.m4 (gl_CHECK_VERSION):
63479         * m4/crc.m4 (gl_CRC):
63480         * m4/des.m4 (gl_DES):
63481         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63482         * m4/gc.m4 (gl_GC):
63483         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63484         * m4/getline.m4 (gl_FUNC_GETLINE):
63485         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63486         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63487         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63488         * m4/md2.m4 (gl_MD2):
63489         * m4/md4.m4 (gl_MD4):
63490         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63491         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63492         * m4/readline.m4 (gl_FUNC_READLINE):
63493         * m4/rijndael.m4 (gl_RIJNDAEL):
63494         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63495         to get the necessary .h files and whatnot.
63496
63497 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63498
63499         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63500         gnulib rather than the other way around.
63501         * config/srclistvars.sh (COREUTILS): Remove.
63502
63503 2006-08-22  Jim Meyering  <jim@meyering.net>
63504
63505         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63506
63507         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63508
63509 2006-08-22  Eric Blake  <ebb9@byu.net>
63510
63511         * modules/regexprops-generic: New file.
63512         * MODULES.html.sh (Support for building documentation): List it.
63513
63514 2006-08-22  Eric Blake  <ebb9@byu.net>
63515
63516         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63517         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63518         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63519         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63520
63521 2006-08-22  Bruno Haible  <bruno@clisp.org>
63522
63523         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63524         and lib_LTLIBRARIES like the other lib_* variables.
63525
63526 2006-08-22  Bruno Haible  <bruno@clisp.org>
63527
63528         * build-aux/x-to-1.in: New file, from GNU gettext.
63529
63530 2006-08-22  Bruno Haible  <bruno@clisp.org>
63531
63532         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
63533         <utmpx.h> exists.
63534
63535 2006-08-22  Bruno Haible  <bruno@clisp.org>
63536
63537         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
63538         <utmpx.h> exists.
63539
63540 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63541
63542         BeOS portability.
63543         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
63544         exist.
63545         Problem reported by Bruno Haible.
63546
63547 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63548
63549         Avoid the need for AC_LIBSOURCES in m4 macros.
63550         * modules/acl (EXTRA_DIST): Add acl.h.
63551         * modules/argmatch (Files): Add m4/argmatch.m4.
63552         (configure.ac): Add gl_ARGMATCH.
63553         (EXTRA_DIST): Renamed from lib_SOURCES, for
63554         consistency with the other modules.  Remove argmatch.c.
63555         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
63556         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
63557         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
63558         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
63559         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
63560         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
63561         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
63562         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
63563         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
63564         * modules/closeout (EXTRA_DIST): Add closeout.h.
63565         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
63566         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
63567         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
63568         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
63569         dirname.h; remove basename.c and stripslash.c.
63570         * modules/exclude (EXTRA_DIST): Add exclude.h.
63571         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
63572         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
63573         * modules/file-type (EXTRA_DIST): Add file-type.h.
63574         * modules/filemode (EXTRA_DIST): Add filemode.h.
63575         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
63576         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63577         * modules/fpending (EXTRA_DIST): Add __fpending.h.
63578         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
63579         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
63580         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
63581         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
63582         * modules/getdate (EXTRA_DIST): Add getdate.c.
63583         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
63584         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
63585         * modules/getpass (EXTRA_DIST): Add getpass.h.
63586         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
63587         * modules/group-member (EXTRA_DIST): Add group-member.h.
63588         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
63589         * modules/hash (EXTRA_DIST): Add hash.h.
63590         * modules/human (EXTRA_DIST): Add human.h.
63591         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
63592         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
63593         * modules/lchown (EXTRA_DIST): Add lchown.h.
63594         * modules/long-options (EXTRA_DIST): Add long-options.h.
63595         * modules/lstat (EXTRA_DIST): Add lstat.h.
63596         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
63597         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
63598         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
63599         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
63600         * modules/memxor (EXTRA_DIST): Add memxor.h.
63601         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
63602         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
63603         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
63604         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
63605         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
63606         * modules/physmem (EXTRA_DIST): Add physmem.h.
63607         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
63608         * modules/posixver (EXTRA_DIST): Add posixver.h.
63609         * modules/quote (EXTRA_DIST): Add quote.h.
63610         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
63611         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
63612         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
63613         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
63614         regex_internal.h regexec.c.
63615         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
63616         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
63617         * modules/same (EXTRA_DIST): Add same.h.
63618         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63619         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63620         * modules/savedir (EXTRA_DIST): Add savedir.h.
63621         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63622         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63623         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63624         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63625         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63626         * modules/strdup (EXTRA_DIST): Add strdup.h.
63627         * modules/strftime (EXTRA_DIST): Add strftime.h.
63628         * modules/strndup (EXTRA_DIST): Add strndup.h.
63629         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63630         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63631         * modules/time_r (EXTRA_DIST): Add time_r.h.
63632         * modules/timespec (EXTRA_DIST): Add timespec.h.
63633         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63634         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63635         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63636         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63637         * modules/userspec (EXTRA_DIST): Add userspec.h.
63638         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63639         * modules/utimens (EXTRA_DIST): Add utimens.h.
63640         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63641         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63642         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63643         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63644         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63645         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63646         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63647         * modules/yesno (EXTRA_DIST): Add yesno.h.
63648
63649 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63650
63651         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63652
63653         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63654         * m4/dev-ino.m4, same-inode.m4: Remove.
63655
63656         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63657         * m4/acl.m4 (AC_FUNC_ACL):
63658         * m4/backupfile.m4 (gl_BACKUPFILE):
63659         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63660         * m4/canon-host.m4 (gl_CANON_HOST):
63661         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63662         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63663         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63664         * m4/cloexec.m4 (gl_CLOEXEC):
63665         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63666         * m4/closeout.m4 (gl_CLOSEOUT):
63667         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63668         * m4/dirname.m4 (gl_DIRNAME):
63669         * m4/exclude.m4 (gl_EXCLUDE):
63670         * m4/exitfail.m4 (gl_EXITFAIL):
63671         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63672         * m4/file-type.m4 (gl_FILE_TYPE):
63673         * m4/filemode.m4 (gl_FILEMODE):
63674         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63675         * m4/fpending.m4 (gl_FUNC_FPENDING):
63676         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63677         * m4/fts.m4 (gl_FUNC_FTS):
63678         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63679         * m4/getdate.m4 (gl_GETDATE):
63680         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63681         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63682         * m4/getpass.m4 (gl_FUNC_GETPASS):
63683         * m4/gettime.m4 (gl_GETTIME):
63684         * m4/getugroups.m4 (gl_GETUGROUPS):
63685         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63686         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63687         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63688         * m4/hash.m4 (gl_HASH):
63689         * m4/idcache.m4 (gl_IDCACHE):
63690         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63691         * m4/lchown.m4 (gl_FUNC_LCHOWN):
63692         * m4/long-options.m4 (gl_LONG_OPTIONS):
63693         * m4/lstat.m4 (gl_FUNC_LSTAT):
63694         * m4/md5.m4 (gl_MD5):
63695         * m4/memcasecmp.m4 (gl_MEMCASECMP):
63696         * m4/memcoll.m4 (gl_MEMCOLL):
63697         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
63698         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
63699         * m4/memxor.m4 (gl_MEMXOR):
63700         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
63701         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
63702         * m4/modechange.m4 (gl_MODECHANGE):
63703         * m4/mountlist.m4 (gl_MOUNTLIST):
63704         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63705         * m4/openat.m4 (gl_FUNC_OPENAT):
63706         * m4/pathmax.m4 (gl_PATHMAX):
63707         * m4/physmem.m4 (gl_PHYSMEM):
63708         * m4/posixtm.m4 (gl_POSIXTM):
63709         * m4/posixver.m4 (gl_POSIXVER):
63710         * m4/quote.m4 (gl_QUOTE):
63711         * m4/quotearg.m4 (gl_QUOTEARG):
63712         * m4/readtokens.m4 (gl_READTOKENS):
63713         * m4/readutmp.m4 (gl_READUTMP):
63714         * m4/regex.m4 (gl_REGEX):
63715         * m4/safe-read.m4 (gl_SAFE_READ):
63716         * m4/safe-write.m4 (gl_SAFE_WRITE):
63717         * m4/same.m4 (gl_SAME):
63718         * m4/save-cwd.m4 (gl_SAVE_CWD):
63719         * m4/savedir.m4 (gl_SAVEDIR):
63720         * m4/settime.m4 (gl_SETTIME):
63721         * m4/sha1.m4 (gl_SHA1):
63722         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
63723         * m4/stat-macros.m4 (gl_STAT_MACROS):
63724         * m4/stat-time.m4 (gl_STAT_TIME):
63725         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
63726         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
63727         * m4/strdup.m4 (gl_FUNC_STRDUP):
63728         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
63729         * m4/strndup.m4 (gl_FUNC_STRNDUP):
63730         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
63731         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
63732         * m4/time_r.m4 (gl_TIME_R):
63733         * m4/timespec.m4 (gl_TIMESPEC):
63734         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
63735         * m4/unlinkdir.m4 (gl_UNLINKDIR):
63736         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
63737         * m4/userspec.m4 (gl_USERSPEC):
63738         * m4/utimecmp.m4 (gl_UTIMECMP):
63739         * m4/utimens.m4 (gl_UTIMENS):
63740         * m4/xalloc.m4 (gl_XALLOC):
63741         * m4/xgetcwd.m4 (gl_XGETCWD):
63742         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
63743         * m4/xreadlink.m4 (gl_XREADLINK):
63744         * m4/xstrtod.m4 (gl_XSTRTOD):
63745         * m4/yesno.m4 (gl_YESNO):
63746         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63747         to get the necessary .h files and whatnot.
63748
63749 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
63750             Bruno Haible  <bruno@clisp.org>
63751
63752         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
63753         /bin/sh understanding of '!' conditional negation.
63754
63755 2006-08-21  Jim Meyering  <jim@meyering.net>
63756
63757         * modules/openat (Depends-on): Really alphabetize.
63758
63759         * modules/acl (Depends-on): Add error and quote.
63760
63761         * check-module (find_included_lib_files): Add at-func.c to the
63762         ok-to-include-more-than-once white list.
63763
63764         * modules/openat (Depends-on): Add lstat.  Alphabetize.
63765
63766 2006-08-21  Bruno Haible  <bruno@clisp.org>
63767
63768         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63769         Emit a pkgdata_DATA variable only if some snippets add contents to it.
63770         Reported by Martin Lambers <marlam@marlam.de>.
63771
63772 2006-08-21  Bruno Haible  <bruno@clisp.org>
63773
63774         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
63775         specify an installation location, don't emit a noinst_LIBRARIES or
63776         noinst_LTLIBRARIES assignment.
63777
63778 2006-08-21  Bruno Haible  <bruno@clisp.org>
63779
63780         BeOS portability.
63781         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
63782         BeOS has mbrtowc() but no <wctype.h>.
63783
63784 2006-08-21  Bruno Haible  <bruno@clisp.org>
63785
63786         BeOS portability.
63787         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
63788         exist.
63789
63790 2006-08-21  Bruno Haible  <bruno@clisp.org>
63791
63792         BeOS portability.
63793         * lib/mbchar.h: Include <wctype.h> only if it exists.
63794
63795 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63796
63797         Remove files that are no longer needed by their respective modules.
63798         * m4/obstack.m4: Remove.
63799         * m4/strerror_r.m4: Remove.
63800         * m4/uint32_t.m4: Remove.
63801         * m4/uintptr_t.m4: Remove.
63802         * m4/ullong_max.m4: Remove.
63803         * m4/xstrtoimax.m4: Remove.
63804         * m4/xstrtoumax.m4: Remove.
63805
63806         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
63807         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
63808         dependencies now capture this.
63809
63810         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
63811         Do not use AC_LIBSOURCES, since gnulib modules now do this.
63812         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
63813         * m4/human.m4 (gl_HUMAN): Likewise.
63814         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
63815         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
63816
63817         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
63818
63819         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
63820         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
63821         stdint.
63822         * m4/human.m4 (gl_HUMAN): Likewise.
63823         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
63824         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
63825         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63826         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63827         * m4/xstrtol (gl_XSTRTOL): Likewise.
63828
63829         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
63830         AC_TYPE_LONG_LONG_INT.
63831         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63832         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
63833         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
63834         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63835
63836         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
63837         on stdbool.
63838
63839         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
63840         (gl_PREREQ_XSTRTOUL): Remove.
63841
63842         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
63843
63844         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
63845         mode.
63846
63847 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63848
63849         Add and change modules to make it easier for coreutils to use
63850         gnulib-tool.
63851         * modules/backupfile (Files): Remove m4/d-ino.m4.
63852         (Depends-on): Add d-ino.
63853         * modules/cycle-check (Depends-on): Add stdint.
63854         (lib_SOURCES): Add cycle-check.h.
63855         * modules/d-ino: New module.
63856         * modules/d-type: New module.
63857         * modules/error (Files): Remove m4/strerror_r.m4.
63858         * modules/filemode (Files): Add m4/st_dm_mode.m4.
63859         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63860         m4/inttypes_h.m4, m4/uintmax_t.m4.
63861         (Depends-on): Add stdint.
63862         (lib_SOURCES): Add fsusage.h.
63863         * modules/getcwd (Files): Remove d-ino.m4.
63864         (Depends-on): Add d-ino.
63865         * modules/getndelim2 (Depends-on): Add stdint.
63866         * modules/glob (Files): Remove m4/d-type.m4.
63867         (Depends-on): Add d-type.
63868         * modules/host-os: New module.
63869         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
63870         m4/inttypes_h.m4, m4/uintmax_t.m4.
63871         * Depends-on: Add stdint.
63872         (lib_SOURCES): Add human.h.
63873         * modules/inttostr (Files): Remove m4/intmax_t.m4,
63874         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
63875         m4/uintmax_t.m4, m4/ulonglong.m4.
63876         (Depends-on): Add stdint.
63877         (EXTRA_DIST): Add inttostr.h.
63878         * modules/lchmod: New module.
63879         * modules/link-follow: New module.
63880         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
63881         (Depends-on): Add lchmod.
63882         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
63883         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
63884         (Depends-on): Add stdint.
63885         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
63886         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
63887         (Depends-on): Add stdint.
63888         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
63889         * modules/perl: New module.
63890         * modules/regex (Depends-on): Add stdint.
63891         * modules/rmdir-errno: New module.
63892         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63893         m4/intmax_t.m4.
63894         (Depends-on): Add stdint.
63895         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63896         m4/uintmax_t.m4.
63897         (Depends-on): Add stdint.
63898         * modules/unlink-busy: New module.
63899         * modules/utimecmp (Depends-on): Add stdint.
63900         * modules/uptime: New module.
63901         * modules/winsz-ioctl: New module.
63902         * modules/winsz-termios: New module.
63903         * modules/xnanosleep (Depends-on): Add nanosleep.
63904         * modules/ullong_max: Remove.
63905         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
63906         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
63907         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
63908         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
63909         (Depends-on): Add inttypes.
63910         (lib_SOURCES): Add xstrtol.h.
63911         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
63912         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
63913         * MODULES.html.sh: Move 'assert' into the assert section.
63914         Move 'dummy' into the linking section.
63915         Remove ullong_max.
63916         Add section for compatibility checks for POSIX:2001 functions,
63917         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
63918         winsz-ioctl, and winsz-termios into it.
63919         Add lchmod.
63920         Add top-level Misc section and put host-os, perl, and uptime
63921         into it.
63922
63923 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63924
63925         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
63926         now assume the stdint module.  Do not include inttypes.h.
63927         * lib/fsusage.h: Likewise.
63928         * lib/getndelim2.c: Likewise.
63929         * lib/human.h: Likewise.
63930         * lib/inttostr.h: Likewise.
63931         * lib/obstack.c: Likewise.
63932         * lib/regex_internal.h: Likewise.
63933         * lib/tempname.c: Likewise.
63934         * lib/utimecmp.c: Likewise.
63935         * lib/xstrtol.h: Likewise.
63936
63937         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
63938
63939         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
63940         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
63941         * lib/xtime.h: Likewise.
63942
63943 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63944
63945         * modules/openat (Files): Add lib/fchmodat.c.
63946         Fixes problem reported by Jay Youngman.
63947
63948 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63949
63950         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
63951         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
63952
63953 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
63954             Bruno Haible  <bruno@clisp.org>
63955
63956         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
63957         and is a script that invokes bison. Tighten the code. Add comments.
63958
63959 2006-08-18  Jim Meyering  <jim@meyering.net>
63960
63961         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
63962         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
63963         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
63964         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
63965
63966 2006-08-18  Bruno Haible  <bruno@clisp.org>
63967
63968         * modules/bison-i18n: New file.
63969         * MODULES.html.sh (Internationalization functions): Add it.
63970
63971 2006-08-18  Bruno Haible  <bruno@clisp.org>
63972
63973         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
63974         sys/statvfs.h. When getmntinfo was found, check its declaration and
63975         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
63976
63977 2006-08-18  Bruno Haible  <bruno@clisp.org>
63978
63979         * m4/bison-i18n.m4: New file, from bison.
63980
63981 2006-08-18  Bruno Haible  <bruno@clisp.org>
63982
63983         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
63984         (ME_DUMMY): Treat "kernfs" as a dummy.
63985         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
63986
63987 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63988
63989         Update from coreutils.
63990
63991         2006-08-15  Jim Meyering  <jim@meyering.net>
63992
63993         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
63994
63995         2006-01-17  Jim Meyering  <jim@meyering.net>
63996
63997         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
63998
63999         2006-01-11  Jim Meyering  <jim@meyering.net>
64000
64001         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
64002         Check for the lchmod function.
64003
64004 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64005
64006         Update from coreutils.
64007
64008         * lib/__fpending.h: Add copyright notice.
64009         * lib/fprintftime.h: Likewise.
64010         * lib/savedir.c: Use (C) in copyright notice.
64011         * lib/savedir.h: Likewise.
64012
64013         2006-08-15  Jim Meyering  <jim@meyering.net>
64014
64015         * lib/at-func.c: New file, with the logic of all emulated at-functions.
64016         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
64017         in support of the EXPECTED_ERRNO macro.
64018         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
64019         definitions.  Instead, define the appropriate symbols and include
64020         "at-func.c".
64021         * lib/mkdirat.c (mkdirat): Likewise.
64022         * lib/fchmodat.c (fchmodat): Likewise.
64023         (ENOSYS): Remove definition.
64024         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
64025         it.  Don't include "unistd--.h" -- it wasn't ever used.
64026
64027         2006-01-17  Jim Meyering  <jim@meyering.net>
64028
64029         Rewrite fts.c not to change the current working directory,
64030         by using openat, fstatat, fdopendir, etc..
64031
64032         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
64033         (HAVE_OPENAT_SUPPORT): Define.
64034         [_LIBC] (fchdir): Don't undef or define; no longer used.
64035         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
64036         Now, this `function' always succeeds, and consumes its file descriptor
64037         parameter -- so callers must not close such FDs.  Update callers.
64038         (diropen_fd, opendirat, cwd_advance_fd): New functions.
64039         (diropen): Add parameter, SP.  Adjust all callers.
64040         Implement using diropen_fd, rather than open.
64041         (fts_open): Initialize new member, fts_cwd_fd.
64042         Remove fts_rft-setting code.
64043         (fts_close): Close fts_cwd_fd, if necessary.
64044         (__opendir2): Define in terms of opendir or opendirat,
64045         depending on whether the FST_NOCHDIR flag is set.
64046         (fts_build): Since fts_safe_changedir consumes its FD, and since
64047         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
64048         and close the dup'd file descriptor upon failure.
64049         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
64050         (fts_safe_changedir): Tweak semantics to reflect that this function
64051         now calls cwd_advance_fd and hence consumes its FD argument.
64052         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
64053         [struct FTS] (fts_rft): Remove now-unused member.
64054         [struct FTS] (fts_cycle.state): Improve comment.
64055
64056         * lib/openat.c (openat_needs_fchdir): New function.
64057         * lib/openat.h (openat_needs_fchdir): Declare it.
64058
64059 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64060
64061         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
64062         Problem and fix reported by Pádraig Brady in
64063         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
64064
64065 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64066
64067         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
64068
64069 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64070
64071         * lib/memcoll.c (memcoll): Optimize for the common case where the
64072         arguments are bytewise equal.
64073
64074 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64075
64076         * doc/regexprops-generic.texi: Add a copyright notice.
64077
64078 2006-08-15  Bruno Haible  <bruno@clisp.org>
64079
64080         * modules/tmpdir (License): Change to LGPL.
64081
64082 2006-08-15  Bruno Haible  <bruno@clisp.org>
64083
64084         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
64085         module.
64086
64087 2006-08-14  Simon Josefsson  <jas@extundo.com>
64088
64089         * config/srclist.txt: Add gnupload.
64090
64091 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64092
64093         Change copyright notice from LGPL 2 to GPL 2, since that's the
64094         standard form used in the gnulib repository.
64095         * tests/test-lock.c: Likewise.
64096         * tests/test-stdint.c: Likewise.
64097         * tests/test-tls.c: Likewise.
64098
64099         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
64100         prelude-manager.  User shorter URLs for GNU projects, without '?'.
64101         Add copyright notice.
64102
64103         * check-module: Add copyright notice.  Output a copyright
64104         notice if "--version" is specified.
64105         * modules/COPYING: New file.
64106         * tests/test-getaddrinfo.c: Add copyright notice.
64107         * tests/test-verify.c: Likewise.
64108
64109 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64110
64111         Change copyright notice from LGPL 2 to GPL 2, since that's the
64112         standard form used in the gnulib repository.
64113         * lib/lock.c: LGPL -> GPL.
64114         * lib/lock.h: Likewise.
64115         * lib/strnlen1.c: Likewise.
64116         * lib/strnlen1.h: Likewise.
64117         * lib/tls.c: Likewise.
64118         * lib/tls.h: Likewise.
64119         * lib/tmpdir.c: Likewise.
64120
64121         * lib/TODO: Remove; this belongs only in coreutils.
64122
64123 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64124
64125         Add copyright notices to long-enough files that lack them, since
64126         otherwise the files aren't clearly free.  Use the same notice that
64127         getdate.texi already uses.
64128         * doc/alloca-opt.texi: Add copyright notice.
64129         * doc/alloca.texi: Likewise.
64130         * doc/ctime.texi: Likewise.
64131         * doc/functions.texi: Likewise.
64132         * doc/gcd.texi: Likewise.
64133         * doc/gnulib-tool.texi: Likewise.
64134         * doc/inet_ntoa.texi: Likewise.
64135         * doc/visibility.texi: Likewise.
64136
64137         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
64138         * doc/quote.texi: Add copyright notice.
64139
64140         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
64141         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
64142         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
64143         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
64144         is now obsolete, and give a pointer to the Sun list.
64145         Add copyright notice.
64146
64147 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64148
64149         * config/srclistvars.sh: Add copyright notice.
64150
64151 2006-08-14  Eric Blake  <ebb9@byu.net>
64152
64153         Import the following change from libc:
64154
64155         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
64156
64157         Upstream bug 2997.
64158         * lib/misc/error.c: Add space between program name and message if file
64159         name is missing.
64160
64161 2006-08-12  Karl Berry  <karl@gnu.org>
64162
64163         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
64164         remove, these originate in gnulib now.
64165
64166 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64167
64168         * doc/Makefile (standards.info standards.html standards.dvi):
64169         Also depend on make-stds.texi.
64170
64171 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64172
64173         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
64174         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
64175
64176         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
64177         in wchar_t.  Problem reported by Eric Blake.
64178
64179         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
64180         LEN is smaller than SIZE.  Suggested by Bruno Haible.
64181         Also, help the compiler to keep LEN in a register.
64182
64183 2006-08-11  Eric Blake  <ebb9@byu.net>
64184
64185         * users.txt: Sort.  Add tar.
64186
64187 2006-08-11  Bruno Haible  <bruno@clisp.org>
64188
64189         * users.txt: New file.
64190
64191 2006-08-11  Bruno Haible  <bruno@clisp.org>
64192
64193         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
64194         before <wchar.h>. Needed for OSF/1 and BSD/OS.
64195
64196 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64197
64198         * modules/snprintf (Depends-on): Remove minmax.
64199         (Maintainer): Add self and Bruno.
64200
64201 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64202
64203         * lib/.cppi-disable: Add snprintf.h, socket_.h.
64204         * lib/snprintf.c: Include <errno.h> and <limits.h>.
64205         (EOVERFLOW): Define if the system does not.
64206         Do not include "minmax.h"; it wasn't used.
64207         (snprintf): Don't assume size_t promotes to an unsigned type.
64208         Fix bug when generated string was too long for the buffer: the
64209         buffer's contents are supposed to be the initial prefix of the
64210         output.  Don't assume vasnprintf returns EOVERFLOW if the size
64211         exceeds INT_MAX; do the check ourselves.
64212
64213         Import the following changes from libc:
64214
64215         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
64216
64217         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
64218         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
64219         set wc to the byte which couldn't be converted.
64220         (re_string_reconstruct): Don't clear valid_raw_len before calling
64221         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
64222         tip_context using re_string_context_at.
64223
64224         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
64225
64226         * lib/posix/regex.h: g++ still cannot handled [restrict].
64227
64228         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
64229
64230         * lib/posix/regex.h: Remove special handling for VMS.
64231
64232 2006-08-10  Jim Meyering  <jim@meyering.net>
64233
64234         * modules/same-inode: New module.
64235         * modules/dev-ino: New module.
64236         * modules/cycle-check: Depend on these modules, rather than simply
64237         including their .h files.
64238         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
64239         required via m4/cycle-check.m4.
64240         * modules/same: Depend on new same-inode module, rather than
64241         including same-inode.h.
64242         * modules/chdir-safer: New file.
64243
64244         * modules/chown (Depends-on): Add stat-macros.
64245
64246 2006-08-10  Jim Meyering  <jim@meyering.net>
64247
64248         * m4/cycle-check.m4: New file.
64249         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
64250         * m4/dev-ino.m4, m4/same-inode.m4: New files.
64251
64252 2006-08-10  Eric Blake  <ebb9@byu.net>
64253
64254         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
64255         in from original proposal.
64256
64257 2006-08-10  Eric Blake  <ebb9@byu.net>
64258         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64259
64260         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
64261         namespace.
64262
64263 2006-08-10  Bruno Haible  <bruno@clisp.org>
64264
64265         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
64266         as well.
64267
64268 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64269
64270         Sync from coreutils.
64271
64272         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
64273
64274         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
64275         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
64276
64277 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64278
64279         * modules/restrict: Remove; no longer needed now that we assume
64280         Autoconf 2.59 or later.
64281         * MODULES.html.sh: Remove 'restrict'.
64282         * modules/argp (Depends-on): Remove 'restrict'.
64283         * modules/base64 (Depends-on): Likewise.
64284         * modules/gc (Depends-on): Likewise.
64285         * modules/getaddrinfo (Depends-on): Likewise.
64286         * modules/glob (Depends-on): Likewise.
64287         * modules/inet_ntop (Depends-on): Likewise.
64288         * modules/inet_pton (Depends-on): Likewise.
64289         * modules/memxor (Depends-on): Likewise.
64290         * modules/regex (Depends-on): Likewise.
64291         * modules/strtok_r (Depends-on): Likewise.
64292         * modules/time_r (Depends-on): Likewise.
64293
64294 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64295
64296         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
64297         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
64298         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64299         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
64300         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
64301         * m4/memxor.m4 (gl_MEMXOR): Likewise.
64302         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
64303         gl_C_RESTRICT replaced by AC_C_RESTRICT.
64304
64305         Merge from coreutils.
64306         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
64307         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
64308         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64309         * m4/time_r.m4 (gl_TIME_R): Likewise.
64310
64311 2006-08-09  Karl Berry  <karl@gnu.org>
64312
64313         * config/srclist.txt: no more gettext-tools, per Bruno.
64314
64315 2006-08-08  Eric Blake  <ebb9@byu.net>
64316
64317         * modules/verror: New module.
64318         * MODULES.html.sh: Document it.
64319
64320 2006-08-08  Eric Blake  <ebb9@byu.net>
64321
64322         * lib/verror.h, lib/verror.c: New files.
64323
64324 2006-08-08  Eric Blake  <ebb9@byu.net>
64325
64326         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64327         verror_at_line output complies with GNU Coding Standards even when
64328         file is NULL.
64329
64330 2006-08-07  Bruno Haible  <bruno@clisp.org>
64331
64332         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64333         versions of AIX.
64334         Reported by Ralf Wildenhues.
64335
64336 2006-08-07  Bruno Haible  <bruno@clisp.org>
64337
64338         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64339         in an AC_DEFUN. Needed so that the autoconf snippets can use
64340         AC_REQUIRE.
64341
64342 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64343
64344         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64345         Initialize pkgdata_DATA.
64346         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64347         overriding it.
64348
64349 2006-08-06  Eric Blake  <ebb9@byu.net>
64350
64351         * lib/error.h: Fold in some upstream changes from glibc.
64352         * lib/error.c: Likewise.
64353
64354 2006-08-04  Bruno Haible  <bruno@clisp.org>
64355
64356         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64357         Make the mostlyclean-local rule depend on mostlyclean-generic.
64358         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64359
64360 2006-07-31  Bruno Haible  <bruno@clisp.org>
64361
64362         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64363         <stdlib.h>, <string.h>.
64364
64365 2006-07-30  Bruno Haible  <bruno@clisp.org>
64366
64367         * modules/readlink (License): Change to LGPL.
64368
64369 2006-07-30  Bruno Haible  <bruno@clisp.org>
64370
64371         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64372         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64373         set PKGDATADIR to point to it.
64374
64375 2006-07-30  Bruno Haible  <bruno@clisp.org>
64376
64377         * modules/csharpexec (configure.ac): Comment out macro invocation.
64378         * modules/javaexec (configure.ac): Likewise.
64379         * modules/javacomp-script (configure.ac): Likewise.
64380
64381         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64382
64383 2006-07-30  Bruno Haible  <bruno@clisp.org>
64384
64385         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64386         linked-list.
64387
64388 2006-07-30  Bruno Haible  <bruno@clisp.org>
64389
64390         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64391
64392 2006-07-30  Bruno Haible  <bruno@clisp.org>
64393
64394         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64395         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64396         get removed.
64397
64398 2006-07-29  Bruno Haible  <bruno@clisp.org>
64399
64400         Make it possible for gnulib-tool to work with locally modified or
64401         augmented gnulib repositories.
64402         * gnulib-tool (func_usage): Document --local-dir option.
64403         (local_gnulib_dir): New variable.
64404         Handle --local-dir option.
64405         (func_lookup_file): New function.
64406         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64407         (func_get_description, func_get_filelist, func_get_description,
64408         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64409         func_get_automake_snippet, func_get_include_directive,
64410         func_get_license, func_get_maintainer): Use func_lookup_file.
64411         (func_import, func_create_testdir): Use func_lookup_file.
64412
64413 2006-07-29  Bruno Haible  <bruno@clisp.org>
64414
64415         * modules/setenv (Depends-on): Add unistd.
64416
64417 2006-07-29  Bruno Haible  <bruno@clisp.org>
64418
64419         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64420
64421 2006-07-29  Bruno Haible  <bruno@clisp.org>
64422
64423         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64424
64425 2006-07-29  Bruno Haible  <bruno@clisp.org>
64426
64427         * gnulib-tool (import, update): If there is no Makefile.am, look at
64428         aclocal.m4, instead of bailing out.
64429
64430 2006-07-29  Bruno Haible  <bruno@clisp.org>
64431
64432         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64433         Categorize the options by when they are useful.
64434
64435 2006-07-29  Bruno Haible  <bruno@clisp.org>
64436
64437         * gnulib-tool (func_usage): Document option --no-libtool.
64438         Handle option --no-libtool.
64439         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64440         for changed semantics of $libtool variable.
64441         (func_import): Likewise. If libtool is not used, show this through
64442         an option --no-libtool.
64443         (func_create_testdir): Update.
64444
64445 2006-07-29  Bruno Haible  <bruno@clisp.org>
64446
64447         * gnulib-tool (func_import): Extend error message about missing
64448         --doc-base.
64449
64450 2006-07-29  Bruno Haible  <bruno@clisp.org>
64451
64452         * gnulib-tool (func_import): Don't create the $docbase directory if
64453         there is no file to store there.
64454
64455 2006-07-29  Bruno Haible  <bruno@clisp.org>
64456
64457         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64458         relevant, look for configure.ac there, not in the current directory.
64459         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64460
64461 2006-07-29  Bruno Haible  <bruno@clisp.org>
64462
64463         * gnulib-tool (SORT): New variable.
64464         (func_usage): Undocument --assume-autoconf option.
64465         Remove --assume-autoconf option handling.
64466         (autoconf_minversion): Determine from the contents of configure.ac.
64467         (func_import): Remove autoconf_minversion handling.
64468         Suggested by Eric Blake.
64469
64470 2006-07-29  Bruno Haible  <bruno@clisp.org>
64471
64472         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64473
64474 2006-07-29  Bruno Haible  <bruno@clisp.org>
64475
64476         * config/srclist.txt (*setenv.[ch]): Remove rules.
64477
64478 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64479
64480         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64481
64482 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64483
64484         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64485         arpa/inet.h.
64486
64487 2006-07-28  Simon Josefsson  <jas@extundo.com>
64488
64489         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64490         * modules/inet_pton (Depends-on): Likewise.
64491
64492 2006-07-28  Simon Josefsson  <jas@extundo.com>
64493
64494         * m4/netinet_in_h.m4: New file.
64495
64496 2006-07-28  Simon Josefsson  <jas@extundo.com>
64497
64498         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64499         #include's.
64500
64501 2006-07-28  Simon Josefsson  <jas@extundo.com>
64502
64503         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64504         #include's.
64505
64506 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64507
64508         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64509         setgid on directories only if they set these bits.
64510         * lib/modechange.h: Remove obsolete comment about masks.
64511
64512 2006-07-28  Eric Blake  <ebb9@byu.net>
64513
64514         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64515         macro expansion.
64516
64517 2006-07-28  Bruno Haible  <bruno@clisp.org>
64518
64519         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64520
64521 2006-07-28  Bruno Haible  <bruno@clisp.org>
64522
64523         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64524
64525 2006-07-28  Bruno Haible  <bruno@clisp.org>
64526
64527         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
64528         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
64529         Define fallbacks.
64530         Avoids link error on FreeBSD 4.x.
64531         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64532
64533         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
64534         encoding.
64535         * lib/mbswidth.c (iswcntrl): Likewise.
64536
64537 2006-07-27  Bruno Haible  <bruno@clisp.org>
64538
64539         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
64540         test.
64541
64542 2006-07-27  Bruno Haible  <bruno@clisp.org>
64543
64544         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
64545         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
64546         defined.
64547
64548 2006-07-26  Eric Blake  <ebb9@byu.net>
64549
64550         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
64551
64552 2006-07-26  Eric Blake  <ebb9@byu.net>
64553
64554         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
64555         like mingw that lack mkstemp.
64556         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
64557         avoid compilation warning on mingw.
64558
64559 2006-07-26  Bruno Haible  <bruno@clisp.org>
64560
64561         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
64562         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
64563         INT_FAST*_MIN, INTPTR_MIN.
64564
64565 2006-07-25  Bruno Haible  <bruno@clisp.org>
64566
64567         * modules/version-etc (Depends-on): Add stdarg.
64568
64569 2006-07-25  Bruno Haible  <bruno@clisp.org>
64570
64571         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
64572         complex commands.
64573
64574 2006-07-25  Bruno Haible  <bruno@clisp.org>
64575
64576         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
64577         defined in <stdarg.h> or config.h.
64578
64579 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64580
64581         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
64582         (gl_STDIO_SAFER): Remove.
64583
64584 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64585
64586         * MODULES.html.sh (File stream based Input/Output):
64587         Add fopen-safer, tmpfile-safer; remove stdio-safer.
64588         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
64589         * modules/fopen-safer, modules/tmpfile-safer: New files.
64590         * modules/stdio-safer: Remove.
64591
64592 2006-07-24  Bruno Haible  <bruno@clisp.org>
64593
64594         * modules/tmpdir: New file.
64595         * MODULES.html.sh (File system functions): Add it.
64596
64597 2006-07-24  Bruno Haible  <bruno@clisp.org>
64598
64599         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
64600         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
64601
64602 2006-07-24  Bruno Haible  <bruno@clisp.org>
64603
64604         * modules/clean-temp: New file.
64605
64606 2006-07-24  Bruno Haible  <bruno@clisp.org>
64607
64608         * m4/tmpdir.m4: New file, from GNU gettext.
64609
64610 2006-07-24  Bruno Haible  <bruno@clisp.org>
64611
64612         * lib/tmpdir.h: New file, from GNU gettext.
64613         * lib/tmpdir.c: New file, from GNU gettext.
64614
64615 2006-07-24  Bruno Haible  <bruno@clisp.org>
64616
64617         * lib/clean-temp.h: New file, from GNU gettext.
64618         * lib/clean-temp.c: New file, from GNU gettext.
64619
64620 2006-07-23  Eric Blake  <ebb9@byu.net>
64621
64622         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64623         (Depends-on): Add binary-io.
64624
64625 2006-07-23  Eric Blake  <ebb9@byu.net>
64626
64627         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64628
64629 2006-07-23  Eric Blake  <ebb9@byu.net>
64630
64631         * lib/tmpfile-safer.c: New file.
64632         * lib/stdio-safer.h (fopen_safer): Add prototype.
64633         * lib/stdio--.h (tmpfile): Make safer.
64634
64635 2006-07-23  Bruno Haible  <bruno@clisp.org>
64636
64637         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64638         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64639         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64640         gl_linked_remove_at): Use it.
64641
64642 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64643         and Simon Josefsson <jas@extundo.com>
64644
64645         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64646
64647         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64648
64649 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64650
64651         * modules/close-stream: New file.
64652         * modules/closeout (Description): Make it clear that it exits
64653         with a diagnostic on error.
64654         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64655         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64656
64657 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64658
64659         * m4/close-stream.m4: New file.
64660
64661 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64662
64663         * lib/close-stream.c, lib/close-stream.h: New files.
64664
64665 2006-07-22  Bruno Haible  <bruno@clisp.org>
64666
64667         Merge from GNU gettext 0.15.
64668
64669         2006-05-01  Bruno Haible  <bruno@clisp.org>
64670
64671                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64672
64673         2006-07-22  Bruno Haible  <bruno@clisp.org>
64674
64675                 * modules/javaversion: New file.
64676                 * MODULES.html.sh (Java): Add javaversion.
64677
64678         2006-03-12  Bruno Haible  <bruno@clisp.org>
64679
64680                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64681
64682         2005-12-04  Bruno Haible  <bruno@clisp.org>
64683
64684                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64685                 (untested).
64686
64687         2006-06-21  Bruno Haible  <bruno@clisp.org>
64688
64689                 Avoid warnings from recent versions of mcs.
64690                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64691                 -o, -L, -r any more. Use options documented since mcs-1.0
64692                 instead. Similarly for -g.
64693
64694         2005-12-04  Bruno Haible  <bruno@clisp.org>
64695
64696                 * build-aux/csharpcomp.sh.in: Suffix for resources is
64697                 .resources, not .resource.
64698
64699         2005-07-09  Bruno Haible  <bruno@clisp.org>
64700
64701                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
64702                 add a .dll suffix.
64703                 Reported by Mark Junker <mjscod@gmx.de>.
64704
64705         2006-07-22  Bruno Haible  <bruno@clisp.org>
64706
64707                 * modules/gettext: Upgrade to gettext-0.15.
64708                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
64709                 m4/visibility.m4.
64710                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
64711
64712 2006-07-22  Bruno Haible  <bruno@clisp.org>
64713
64714         Merge from GNU gettext 0.15.
64715
64716         2006-03-25  Bruno Haible  <bruno@clisp.org>
64717
64718                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
64719
64720         2006-07-21  Bruno Haible  <bruno@clisp.org>
64721
64722                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
64723                 "1.1".
64724
64725         2006-05-09  Bruno Haible  <bruno@clisp.org>
64726
64727                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
64728                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
64729                 for the conftestver execution.
64730
64731         2006-05-01  Bruno Haible  <bruno@clisp.org>
64732
64733                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
64734                 optional target-version argument. Verify that the compiler
64735                 groks source of the specified source-version, or add -source
64736                 option as necessary. Verify that the compiler produces
64737                 bytecode in the specified target-version, or add -target and
64738                 -source options as necessary. Make the result of the test
64739                 available as variable CONF_JAVAC. Also log error output in
64740                 config.log.
64741
64742         2006-03-11  Bruno Haible  <bruno@clisp.org>
64743
64744                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
64745
64746         2006-05-09  Bruno Haible  <bruno@clisp.org>
64747
64748                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
64749                 CLASSPATH_SEPARATOR to a semicolon.
64750
64751         2006-03-12  Bruno Haible  <bruno@clisp.org>
64752
64753                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
64754                 available as variable CONF_JAVA, for subsequent autoconf
64755                 tests. Also log error output in config.log.
64756
64757         2006-07-19  Bruno Haible  <bruno@clisp.org>
64758
64759                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
64760                 that getline works on glibc2 systems. Needed to avoid trouble
64761                 in relocatable.c.
64762                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
64763
64764         2005-12-04  Bruno Haible  <bruno@clisp.org>
64765
64766                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
64767                 launcher (untested).
64768
64769         2005-12-04  Bruno Haible  <bruno@clisp.org>
64770
64771                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
64772
64773         2006-07-22  Bruno Haible  <bruno@clisp.org>
64774
64775                 * gettext.m4: Update from GNU gettext-0.15.
64776                 * nls.m4: Likewise.
64777                 * po.m4: Likewise.
64778                 * inttypes-pri.m4: Likewise.
64779                 * inttypes-h.m4: Renamed from inttypes.m4.
64780                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
64781
64782 2006-07-22  Bruno Haible  <bruno@clisp.org>
64783
64784         Merge from GNU gettext 0.15.
64785
64786         2005-07-05  Bruno Haible  <bruno@clisp.org>
64787
64788                 * printf-args.c (printf_fetchargs): Work around broken
64789                 definition of wint_t on mingw.
64790
64791         2005-02-12  Bruno Haible  <bruno@clisp.org>
64792
64793                 * xallocsa.h: Add extern "C" for C++.
64794
64795         2006-05-17  Bruno Haible  <bruno@clisp.org>
64796
64797                 Cygwin portability.
64798                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
64799
64800         2006-04-30  Bruno Haible  <bruno@clisp.org>
64801
64802                 * progreloc.c: Include <mach-o/dyld.h> if available.
64803                 (find_executable): Use _NSGetExecutablePath when possible.
64804
64805         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64806
64807                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
64808                 function.
64809
64810         2005-12-29  Bruno Haible  <bruno@clisp.org>
64811
64812                 * progreloc.c (set_program_name_and_installdir): Fix
64813                 compilation error.
64814
64815         2005-12-04  Bruno Haible  <bruno@clisp.org>
64816
64817                 Cygwin portability.
64818                 * progreloc.c: Include <windows.h> also on Cygwin.
64819                 (find_executable): Add support for Cygwin.
64820                 (set_program_name_and_installdir): Handle also platforms with
64821                 nonempty EXEEXT.
64822
64823         2006-07-11  Bruno Haible  <bruno@clisp.org>
64824
64825                 * javacomp.c: Fix a comment.
64826                 Reported by Jim Meyering.
64827
64828         2006-04-30  Bruno Haible  <bruno@clisp.org>
64829
64830                 * javacomp.h (compile_java_class): Add source_version,
64831                 target_version arguments.
64832                 * javacomp.c: Rewritten to choose only a compiler that
64833                 respects the specified source_version and target_version.
64834
64835         2006-06-27  Bruno Haible  <bruno@clisp.org>
64836
64837                 Assume correct S_ISDIR macro.
64838                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
64839
64840         2006-07-22  Bruno Haible  <bruno@clisp.org>
64841
64842                 * javaversion.h: New file, from GNU gettext.
64843                 * javaversion.c: New file, from GNU gettext.
64844                 * javaversion.java: New file, from GNU gettext.
64845                 * javaversion.class: New file, from GNU gettext.
64846
64847         2006-05-17  Bruno Haible  <bruno@clisp.org>
64848
64849                 Cygwin portability.
64850                 * javaexec.c (execute_java_class): Test for jview program
64851                 also on Cygwin.
64852
64853         2006-04-09  Bruno Haible  <bruno@clisp.org>
64854
64855                 * fatal-signal.c: Don't include string.h.
64856                 (at_fatal_signal): Use a copying loop instead of memcpy.
64857
64858         2005-12-04  Bruno Haible  <bruno@clisp.org>
64859
64860                 * csharpexec.c: Add support for 'clix' launcher (untested).
64861                 (execute_csharp_using_sscli): New function.
64862                 (execute_csharp_program): Call it.
64863
64864         2006-06-21  Bruno Haible  <bruno@clisp.org>
64865
64866                 Avoid warnings from recent versions of mcs.
64867                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
64868                 -o, -L, -r any more. Use options documented since mcs-1.0
64869                 instead. Similarly for -g.
64870
64871         2005-07-09  Bruno Haible  <bruno@clisp.org>
64872
64873                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
64874                 add a .dll suffix.
64875                 Reported by Mark Junker <mjscod@gmx.de>.
64876
64877         2006-06-17  Bruno Haible  <bruno@clisp.org>
64878
64879                 * config.charset: Update for NetBSD 3.0.
64880
64881         2006-05-17  Bruno Haible  <bruno@clisp.org>
64882
64883                 Cygwin portability.
64884                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
64885
64886         2006-05-16  Bruno Haible  <bruno@clisp.org>
64887
64888                 * localcharset.c [CYGWIN]: Include <windows.h>.
64889                 (get_charset_aliases): For Cygwin, return the same CPxxx
64890                 aliases list as under WIN32.
64891                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
64892                 the environment variables. Fall back to GetACP().
64893
64894         2006-04-05  Bruno Haible  <bruno@clisp.org>
64895
64896                 * config.charset: Update Juan Manuel Guerrero's address.
64897
64898         2005-02-12  Bruno Haible  <bruno@clisp.org>
64899
64900                 * allocsa.h: Add extern "C" for C++.
64901
64902         2005-02-10  Bruno Haible  <bruno@clisp.org>
64903
64904                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
64905                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
64906
64907         2006-07-22  Bruno Haible  <bruno@clisp.org>
64908
64909                 * gettext.h: Update to GNU gettext-0.15.
64910
64911 2006-07-22  Bruno Haible  <bruno@clisp.org>
64912
64913         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
64914         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
64915         lib-prefix.m4, longdouble.m4, ssize_t.m4.
64916
64917 2006-07-21  Eric Blake  <ebb9@byu.net>
64918
64919         * modules/stdlib-safer: New file.
64920         * MODULES.html.sh (File stream based Input/Output): Add
64921         stdlib-safer.
64922
64923 2006-07-21  Eric Blake  <ebb9@byu.net>
64924
64925         * lib/stdlib-safer.h: New file from coreutils, required by
64926         stdlib--.h.
64927
64928 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
64929
64930         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
64931
64932 2006-07-20  Bruno Haible  <bruno@clisp.org>
64933
64934         * gnulib-tool: Recognize new option --assume-autoconf.
64935         (autoconf_minversion): New variable.
64936         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
64937
64938 2006-07-20  Bruno Haible  <bruno@clisp.org>
64939
64940         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
64941
64942 2006-07-19  Derek R. Price  <derek@ximbiot.com>
64943
64944         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
64945         Reindent and repaginate.
64946
64947 2006-07-19  Derek Price  <derek@ximbiot.com>
64948
64949         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
64950         Correct grammar.
64951
64952 2006-07-17  Bruno Haible  <bruno@clisp.org>
64953
64954         * modules/list: New file.
64955         * modules/array-list: New file.
64956         * modules/carray-list, modules/carray-list-tests: New files.
64957         * modules/linked-list, modules/linked-list-tests: New files.
64958         * modules/avltree-list, modules/avltree-list-tests: New files.
64959         * modules/rbtree-list, modules/rbtree-list-tests: New files.
64960         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
64961         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
64962         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
64963         * modules/oset: New file.
64964         * modules/array-oset: New file.
64965         * modules/avltree-oset, modules/avltree-oset-tests: New files.
64966         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
64967         * tests/test-carray_list.c: New file.
64968         * tests/test-linked_list.c: New file.
64969         * tests/test-avltree_list.c: New file.
64970         * tests/test-rbtree_list.c: New file.
64971         * tests/test-linkedhash_list.c: New file.
64972         * tests/test-avltreehash_list.c: New file.
64973         * tests/test-rbtreehash_list.c: New file.
64974         * tests/test-avltree_oset.c: New file.
64975         * tests/test-rbtree_oset.c: New file.
64976         * MODULES.html.sh (Container data structures): New section.
64977
64978 2006-07-17  Bruno Haible  <bruno@clisp.org>
64979
64980         * m4/gl_list.m4: New file.
64981
64982 2006-07-17  Bruno Haible  <bruno@clisp.org>
64983
64984         * lib/gl_list.h: New file.
64985         * lib/gl_list.c: New file.
64986         * lib/gl_array_list.h: New file.
64987         * lib/gl_array_list.c: New file.
64988         * lib/gl_carray_list.h: New file.
64989         * lib/gl_carray_list.c: New file.
64990         * lib/gl_linked_list.h: New file.
64991         * lib/gl_linked_list.c: New file.
64992         * lib/gl_anylinked_list1.h: New file.
64993         * lib/gl_anylinked_list2.h: New file.
64994         * lib/gl_avltree_list.h: New file.
64995         * lib/gl_avltree_list.c: New file.
64996         * lib/gl_anyavltree_list1.h: New file.
64997         * lib/gl_anyavltree_list2.h: New file.
64998         * lib/gl_rbtree_list.h: New file.
64999         * lib/gl_rbtree_list.c: New file.
65000         * lib/gl_anyrbtree_list1.h: New file.
65001         * lib/gl_anyrbtree_list2.h: New file.
65002         * lib/gl_anytree_list1.h: New file.
65003         * lib/gl_anytree_list2.h: New file.
65004         * lib/gl_linkedhash_list.h: New file.
65005         * lib/gl_linkedhash_list.c: New file.
65006         * lib/gl_anyhash_list1.h: New file.
65007         * lib/gl_anyhash_list2.h: New file.
65008         * lib/gl_avltreehash_list.h: New file.
65009         * lib/gl_avltreehash_list.c: New file.
65010         * lib/gl_rbtreehash_list.h: New file.
65011         * lib/gl_rbtreehash_list.c: New file.
65012         * lib/gl_anytreehash_list1.h: New file.
65013         * lib/gl_anytreehash_list2.h: New file.
65014
65015         * lib/gl_oset.h: New file.
65016         * lib/gl_oset.c: New file.
65017         * lib/gl_array_oset.h: New file.
65018         * lib/gl_array_oset.c: New file.
65019         * lib/gl_avltree_oset.h: New file.
65020         * lib/gl_avltree_oset.c: New file.
65021         * lib/gl_rbtree_oset.h: New file.
65022         * lib/gl_rbtree_oset.c: New file.
65023         * lib/gl_anytree_oset.h: New file.
65024
65025 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65026
65027         * m4/mkancesdirs.m4: New file.
65028         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
65029         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
65030         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
65031         it.
65032
65033 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65034
65035         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
65036         * lib/mkancesdirs.h: New files.
65037         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
65038         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
65039         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
65040         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
65041         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
65042         callers changed.  Revamp internals significantly, by not
65043         attempting to create directories that are temporarily more
65044         permissive than the final results.  Do not attempt to use
65045         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
65046         This removes some race conditions, fixes some bugs, and simplifies
65047         things.  Use new dirchownmod function to do owner and mode changes.
65048         * lib/mkdir-p.h: Likewise.
65049         * lib/modechange.c (octal_to_mode): New function.
65050         (struct mode_change): New member mentioned.
65051         (make_node_op_equals): New arg mentioned.  All callers changed.
65052         (mode_compile): Keep track of which mode bits the user has explicitly
65053         mentioned.
65054         (mode_adjust): New arg DIR, so that we implement the X op correctly.
65055         New arg PMODE_BITS, to keep track of which mode bits the user
65056         mentioned; it treats S_ISUID and S_ISGID speciall.
65057         All callers changed.
65058         * lib/modechange.h: Likewise.
65059
65060 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65061
65062         * MODULES.html.sh: Add mkancestors.
65063         * modules/mkancesdirs: New module.
65064         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
65065         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
65066         The chdir-safer and afs files are now orphans; I'll remove them
65067         unless someone speaks up.
65068         Add lib/dirchownmod.c, lib/dirchownmod.h.
65069         (Depends-on): Remove alloca, chown, save-cwd, dirname.
65070         Add lchown, mkancesdirs.
65071         (Maintainer): Add self.
65072
65073 2006-07-15  Karl Berry  <karl@gnu.org>
65074
65075         * gnulib-tool: help message wording/arrangement.
65076
65077 2006-07-14  Simon Josefsson  <jas@extundo.com>
65078
65079         * doc/gnulib.texi (Libtool and Windows): New section.
65080
65081 2006-07-12  Simon Josefsson  <jas@extundo.com>
65082
65083         * modules/gendocs (License): Fix license, approved by Karl.
65084
65085 2006-07-12  Eric Blake  <ebb9@byu.net>
65086
65087         * MODULES.html.sh: Add gendocs.
65088
65089 2006-07-11  Eric Blake  <ebb9@byu.net>
65090
65091         * modules/fdl: New module, to install doc/fdl.texi.
65092         * MODULES.html.sh: Add new section for documentation modules.
65093         * gnulib-tool: Avoid space-tab.
65094         (--doc-base): New option, to manage files from doc.
65095
65096 2006-07-11  Eric Blake  <ebb9@byu.net>
65097
65098         * m4/absolute-header.m4: Fix comments to match recent change.
65099
65100 2006-07-11  Eric Blake  <ebb9@byu.net>
65101
65102         * gnulib-tool: List --doc-base before --tests-base.
65103
65104 2006-07-11  Derek R. Price  <derek@ximbiot.com>
65105
65106         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
65107
65108 2006-07-11  Bruno Haible  <bruno@clisp.org>
65109
65110         * README: Mention where to put documentation.
65111
65112 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65113
65114         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
65115
65116 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65117
65118         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
65119         to stdint.m4.
65120
65121 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
65122
65123         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
65124         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
65125         "no/such/file/stdint.h" when there is no such file, so that
65126         the resulting C code can be parsed by dodgy compilers.
65127         Problems reported by Bob Proulx.
65128
65129 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65130
65131         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
65132         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65133         macros into the GNU _D_EXACT_NAMLEN.
65134         * lib/savedir.c:  Likewise.
65135         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
65136
65137 2006-07-10  Derek R. Price  <derek@ximbiot.com>
65138         and Paul Eggert  <eggert@cs.ucla.edu>
65139
65140         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
65141         * m4/savedir.m4:
65142         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
65143         macros into the GNU _D_EXACT_NAMLEN.
65144
65145 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65146
65147         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
65148         around the absolute name, to work around a problem with the HP-UX
65149         11.23 native C compiler, reported by Bob Proulx.
65150
65151 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65152
65153         * doc/maintain.texi, make-stds.texi: Sync from
65154         <http://savannah.gnu.org/projects/gnustandards>.
65155
65156 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65157
65158         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
65159
65160 2006-07-09  Jim Meyering  <jim@meyering.net>
65161
65162         * m4/glob.m4: Remove a doubled word in a comment.
65163
65164 2006-07-09  Jim Meyering  <jim@meyering.net>
65165
65166         * lib/argp-pv.c: Remove a doubled word in a comment.
65167         * lib/check-version.c (check_version): Likewise.
65168         * lib/javacomp.c (compile_java_class): Likewise.
65169
65170 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65171
65172         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
65173         for the benefit of people using Autoconf 2.60.  If you want to
65174         support older Autoconf versions you can copy m4/onceonly_2_57.m4
65175         (or m4/onceonly.m4, if pre-2.57) manually.
65176
65177 2006-07-08  Jim Meyering  <jim@meyering.net>
65178
65179         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
65180         comment.
65181         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
65182         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
65183         comment.
65184
65185 2006-07-08  Jim Meyering  <jim@meyering.net>
65186
65187         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
65188
65189 2006-07-07  Simon Josefsson  <jas@extundo.com>
65190
65191         * tests/test-crc.c: Change expected crc value, the test vector
65192         were probably computed using the old broken crc.c?
65193
65194 2006-07-06  Simon Josefsson  <jas@extundo.com>
65195
65196         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
65197         now the canonical place for the M4 file).
65198
65199         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
65200         from the sys_socket dependency now.
65201
65202         * modules/inet_pton (Files): Ditto.
65203
65204         * modules/inet_ntop (Files): Ditto.
65205
65206 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65207
65208         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
65209         not gl_PREREQ_GETUSERSHELL.
65210
65211 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65212
65213         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
65214         with only one argument, for Autoconf 2.60.
65215         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
65216         expand to nothing, so add a shell command to avoid syntax error.
65217         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65218
65219 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65220
65221         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
65222
65223 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65224
65225         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
65226         no longer needed.  Check for isblank decl.
65227         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
65228         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
65229         of existence.
65230
65231 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65232
65233         * lib/getloadavg.c: Use __VMS, not VMS.
65234         * lib/getopt.c: Likewise.
65235         * lib/getpagesize.h: Likewise.
65236         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
65237         and probably does not work.
65238
65239 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65240
65241         * lib/.cppi-disable: Add wcwidth.
65242         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
65243         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
65244         (ISGRAPH): Remove.  All uses changed to isgraph.
65245         (FOLD) [!defined _LIBC]: Remove special case.
65246         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
65247         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
65248         HAVE_ISBLANK.
65249         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
65250         case.
65251
65252 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65253
65254         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
65255         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
65256         brackets.  Other minor changes to suppress some compiler
65257         warnings.
65258
65259 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65260         and Paul Eggert  <eggert@cs.ucla.edu>
65261
65262         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
65263         of invoking obsolescent AC_HEADER_DIRENT macro.
65264         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
65265         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
65266         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65267         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
65268         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
65269         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65270         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
65271         * m4/readdir.m4: Remove; no longer needed.
65272
65273 2006-07-06  Derek R. Price  <derek@ximbiot.com>
65274         and Paul Eggert  <eggert@cs.ucla.edu>
65275
65276         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
65277         Don't worry about this obsolete case any more.
65278         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
65279         directories.
65280         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
65281         worry about this obsolete case any more.
65282         * lib/fts.c: Likewise.
65283         * lib/getcwd.c: Likewise.
65284         * lib/glob.h: Likewise.
65285         * lib/savedir.c: Likewise.
65286
65287 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65288
65289         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
65290         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
65291         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
65292         needed.
65293         All uses removed.
65294         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65295         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65296         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
65297         needed.
65298         * m4/getdate.m4 (gl_GETDATE): Likewise.
65299         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65300         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65301         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65302         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65303         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65304         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65305         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
65306         needed.
65307
65308 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65309
65310         * lib/memcasecmp.c: Include <limits.h>.
65311         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65312         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65313         Don't assume isdigit succeeds only on '0' through '9'.
65314
65315 2006-07-05  Eric Blake  <ebb9@byu.net>
65316
65317         * modules/getaddrinfo (Depends-on): Add snprintf.
65318
65319 2006-07-05  Eric Blake  <ebb9@byu.net>
65320
65321         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65322         to avoid 'header present but could not be compiled' on cygwin.
65323
65324 2006-07-05  Eric Blake  <ebb9@byu.net>
65325
65326         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65327         missing from netdb.h.
65328         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65329
65330 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65331
65332         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65333         no longer needed.
65334         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65335         * m4/getdate.m4 (gl_GETDATE): Likewise.
65336         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65337         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65338         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65339         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65340         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65341
65342 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65343
65344         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65345         All uses of is_space replaced by isspace.
65346         * lib/exit.h: Don't talk about STDC_HEADERS.
65347         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65348         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65349         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65350         replaced by isprint etc.
65351         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65352         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65353         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65354         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65355         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65356         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65357
65358 2006-07-05  Bruno Haible  <bruno@clisp.org>
65359
65360         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65361         the function exists, before testing against AIX.
65362         Reported by Martin Lambers <marlam@marlam.de>.
65363
65364 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65365
65366         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65367         From Mark D. Baushke.
65368
65369 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65370
65371         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65372         to the absolute name, not just one, to bypass Sun C 5.8's
65373         "warning: #include of /usr/include/... may be non-portable".
65374
65375 2006-07-04  Eric Blake  <ebb9@byu.net>
65376
65377         * modules/dirname-tests: New test module.
65378         * tests/test-dirname.c: New file, replacing dirname.c
65379         TEST_DIRNAME section that was recently deleted.
65380
65381 2006-07-04  Bruno Haible  <bruno@clisp.org>
65382
65383         Assume ANSI C header files and <ctype.h> functions.
65384         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65385         (mbsnwidth): Use isprint, iscntrl instead.
65386
65387 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65388
65389         Merge from coreutils.
65390         * MODULES.html.sh: Add xstrtold.
65391         * modules/xstrtold: New file.
65392         * modules/cycle-check (Files): Add lib/same-inode.h.
65393         * modules/dirname (Files): Add m4/double-slash-root.m4.
65394         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65395         * modules/mkdir-p (Files): Add lib/same-inode.h.
65396         * modules/same (Files): Add lib/same-inode.h.
65397
65398 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65399
65400         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65401         This is to keep the terminology clean; POSIX talks about
65402         "absolute pathnames", not "full pathnames", but the GNU
65403         Coding Standards say to use "path" for something else;
65404         so use "absolute" to keep both sides happy.
65405         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65406         Set gl_absolute_header, not gl_full_header_path.
65407         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65408         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65409         All uses changed.
65410
65411         Merge from coreutils.
65412
65413         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65414
65415         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65416         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65417         want to require the building of c-strtod.o.
65418         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65419         needs -lm directly.
65420         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65421
65422         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65423
65424         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65425         --as-needed option if available.  Problem reported by Albert Chin in
65426         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65427         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65428         cc merely issues a bunch of annoying warnings for --as-needed
65429         (this problem was reported by Bob Proulx).  Also, try linking with
65430         -lm to detect a bug in binutils 2.16 (this problem was reported
65431         by Ralf Wildenhues).
65432
65433         2006-06-18  Jim Meyering  <jim@meyering.net>
65434
65435         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65436         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65437         macro.
65438         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65439         also check for glibc-2.4's abort-inducing bug.
65440
65441         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65442         Low-probability clean-up should be to use rmdir to get rid of
65443         the just-created directory, not unlink.
65444
65445         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65446         configure fail, and request a bug report to inform us about it.
65447         Add a comment that, barring reports to the contrary, in 2007 we'll
65448         assume ftruncate is universally available.
65449
65450         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65451
65452         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65453
65454         2006-03-12  Jim Meyering  <jim@meyering.net>
65455
65456         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65457         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65458         * m4/same.m4 (gl_SAME): Likewise.
65459         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65460
65461         2006-03-11  Eric Blake  <ebb9@byu.net>
65462
65463         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65464         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65465         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65466         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65467
65468 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65469
65470         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65471         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65472         reported by Mark D. Baushke, one in
65473         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65474
65475         Merge from coreutils.
65476
65477         * lib/.cppi-disable: Add stdint_.h.
65478         * lib/.cvsignore: Add stdint.h.
65479
65480         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65481
65482         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65483         both double and long double versions.
65484         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65485         * lib/xstrtold.c: New file.
65486         * lib/xstrtod.h (xstrtold): New decl.
65487
65488         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65489
65490         * lib/filemode.c (setst): Remove.
65491         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65492         (arguably) clearer, and the generated code is a bit smaller on my
65493         Debian GNU/Linux stable x86 host.
65494
65495         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65496
65497         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65498         Assume that filemode.h includes sys/types.h and sys/stat.h.
65499         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65500         (ftypelet): Reorder to put common cases first, for efficiency.
65501         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65502         to do 'M'.
65503         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65504         of 10, for compatibility with FreeBSD.  All callers changed.
65505         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65506         types that can't be deduced solely from st_mode.  First arg is now a
65507         const pointer.
65508         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65509         (strmode): Renamed from mode_string.
65510         (filemodestring): New decl.
65511         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65512         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65513         needed.
65514         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65515
65516         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65517
65518         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65519         fsusage.h now does that.  Include fsusage.h first, to test interface.
65520         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65521         at most one method (the old code could have generated decls that
65522         didn't conform to C89, not that this was ever exercised).
65523         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65524
65525         2006-03-19  Jim Meyering  <jim@meyering.net>
65526
65527         Work even in a chroot where d_ino values for entries in "/"
65528         don't match the stat.st_ino values for the same names.
65529         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
65530         number, iterate through all entries again, using lstat instead.
65531         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
65532         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
65533
65534         * lib/getcwd.c (__getcwd): Clarify a comment.
65535         Use memcpy in place of a call to strcpy.
65536
65537         2006-03-12  Jim Meyering  <jim@meyering.net>
65538
65539         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
65540         matches that of the current directory (which we're about to chdir ".."
65541         out of), then save the dev-ino of the parent, instead.
65542
65543         * lib/same-inode.h (SAME_INODE): New file/macro.
65544         * lib/chdir-safer.c (SAME_INODE): Remove definition.
65545         Include "same-inode.h", instead.
65546         * lib/same.c: Likewise.
65547         * lib/cycle-check.h: Include "same-inode.h".
65548         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
65549         * lib/cycle-check.c (SAME_INODE): Remove definition.
65550         * lib/root-dev-ino.h: Include "same-inode.h".
65551
65552         2006-03-11  Eric Blake  <ebb9@byu.net>
65553
65554         * lib/same.c (same_name): s/base_name/last_component/
65555         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
65556         * lib/filenamecat.c (file_name_concat): Likewise.
65557
65558         2006-03-11  Eric Blake  <ebb9@byu.net>,
65559                     Paul Eggert  <eggert@cs.ucla.edu>
65560
65561         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
65562         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
65563         drive prefix.
65564         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
65565         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
65566         (last_component): New method.
65567         * lib/dirname.c (dir_len): Determine when drive letters need a
65568         subsequent slash.  Preserve // when it is special.
65569         (dir_name): Don't append dot when drive letter is absolute.
65570         [TEST_DIRNAME]: Move into a full-blown gnulib test.
65571         * lib/basename.c (base_name): New semantics - malloc the result.
65572         Preserve // when it is special.  Preserve relative files that look
65573         like drive letters.
65574         (base_len): Preserve // when it is special.
65575         (last_component): New method, similar to old base_name semantics.
65576         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
65577         base_name.  Strip redundant slashes from ///.
65578
65579 2006-07-03  Jim Meyering  <jim@meyering.net>
65580
65581         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
65582         macro is used before the first cycle_check call.
65583
65584 2006-07-03  Eric Blake  <ebb9@byu.net>
65585
65586         * modules/dirname (Depends-on): Add xstrndup.
65587
65588 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65589
65590         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
65591         test cases, so that config.log is a bit easier to follow.
65592
65593 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65594
65595         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
65596         both are 64 bits, since this seems to be the tradition, and this
65597         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
65598         we ever run into a host that prefers long long to long in this
65599         case, we'll need another configure-time test.  Problem reported by
65600         Jim Meyering.
65601
65602 2006-07-02  Eric Blake  <ebb9@byu.net>
65603
65604         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
65605
65606 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65607
65608         * modules/inttypes (Depends-on): No longer depends on stdint.
65609         * modules/stdint (Description): Say more about assumptions.
65610         Say that the fast types might differ.  Say macros are used.
65611         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
65612         (Makefile.am): Revise list of substituted symbols to match
65613         new stdint.m4.
65614         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
65615         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
65616         * tests/test-stdint.c (verify_same_types)
65617         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65618         the code conforms to C99/C89.
65619         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65620         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65621
65622 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65623
65624         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65625         but fix a bug, by requiring at least 64 bits.
65626         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65627         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65628         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65629         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65630
65631         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65632         changes.  Make 2.59 a prerequisite.  Check and substitute for
65633         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65634         inttypes.h.  Do not use special include files; just use the
65635         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65636         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65637         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65638         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65639         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65640         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65641         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65642         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65643         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65644         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65645         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65646         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65647         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65648         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65649         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65650         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65651         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65652         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65653         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65654         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65655         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65656         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65657         not check for things that C99 does not require, e.g., int8_t.  If
65658         a test isn't needed unless <stdint.h> isn't working, and is
65659         unlikely to be needed for any other reason, then don't do it
65660         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65661         size_t, since we assume C89 freestanding at least.  Do not check
65662         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65663         the right thing even if the types are not defined.  Instead use:
65664         (gl_STDINT_TYPE_PROPERTIES): New macro.
65665         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65666         testing whether <sys/types.h> clashes, as Autoconf does this for
65667         us now.  All uses removed.
65668         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65669         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65670         (gl_CHECK_TYPE_SAME):
65671         Remove; no longer needed.
65672         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65673         exists, since we'll return 0 anyway in that case.
65674         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65675
65676 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65677
65678         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65679         possible collision with system files.
65680         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65681         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65682         WCHAR_MIN and WCHAR_MAX in this case.
65683         (<stddef.h>): Do not include; no longer needed.
65684         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65685         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65686         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65687         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65688         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65689         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65690         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65691         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
65692         !defined(__c99))]: Include in this case too, since it's harmless
65693         now.
65694         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
65695         dangerous to do so.
65696         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
65697         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
65698         (_STDINT_MIN, _STDINT_MAX): New macros.
65699         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
65700         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
65701         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
65702         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
65703         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
65704         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
65705         macros, not typedefs; this simplifies things quite a bit.
65706         Use long int for all types narrower than int64_t.
65707         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
65708         Define in terms of long long int or int64_t or long int,
65709         not int64_t or int32_t.  This saves some compile-time testing.
65710         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
65711         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
65712         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
65713         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
65714         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
65715         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
65716         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
65717         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
65718         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
65719         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
65720         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65721         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65722         undef any previous version and define our own version, for
65723         simplicity and consistency with the new macros for types.
65724         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65725         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65726         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
65727         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
65728         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
65729         @WINT_T_SUFFIX@ to keep things simple here.
65730         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
65731         Simplify by assuming typical 8/16/32/64 host, since we're
65732         already doing that elsewhere anyway.
65733         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
65734         and assume long long int is 64 bits if available.  This
65735         speeds up 'configure'.
65736
65737 2006-07-01  Eric Blake  <ebb9@byu.net>
65738
65739         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
65740         Reported by Andreas Buening.
65741
65742 2006-07-01  Eric Blake  <ebb9@byu.net>
65743
65744         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
65745
65746 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65747
65748         * lib/getaddrinfo.c: fixed typo
65749
65750 2006-06-29  Jim Meyering  <jim@meyering.net>
65751
65752         * modules/strftime (Maintainer): Add my name, since with the
65753         FPRINTFTIME changes strftime.c has forked from glibc.
65754
65755 2006-06-29  Eric Blake  <ebb9@byu.net>
65756
65757         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
65758
65759 2006-06-29  Eric Blake  <ebb9@byu.net>
65760
65761         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
65762
65763 2006-06-29  Eric Blake  <ebb9@byu.net>
65764
65765         * lib/stat_.h: New file.
65766
65767 2006-06-29  Eric Blake  <ebb9@byu.net>
65768
65769         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
65770         unused static function.
65771
65772 2006-06-29  Eric Blake  <ebb9@byu.net>
65773
65774         * doc/functions.texi (Function Portability): Document missing lstat
65775         on mingw.
65776
65777 2006-06-29  Eric Blake  <ebb9@byu.net>
65778
65779         * MODULES.html.sh: Add sys_stat.
65780         * modules/sys_stat: New module.
65781         * modules/mkstemp (Depends-on): Add sys_stat.
65782
65783 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65784
65785         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
65786
65787 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65788
65789         * m4/c-bs-a.m4: Removed.
65790
65791 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65792
65793         * lib/strftime.c: Assume strftime() exists.
65794
65795 2006-06-29  Derek Price  <derek@ximbiot.com>
65796
65797         * modules/c-bs-a: Removed - \a is C89.
65798         * MODULES.html.sh: Remove c-bs-a.
65799
65800 2006-06-29  Bruno Haible  <bruno@clisp.org>
65801
65802         * modules/wcwidth (License): Change to LGPL.
65803
65804 2006-06-28  Simon Josefsson  <jas@extundo.com>
65805
65806         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
65807         on _WIN32.
65808
65809         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
65810         getnameinfo.
65811
65812 2006-06-28  Simon Josefsson  <jas@extundo.com>
65813
65814         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
65815
65816 2006-06-28  Simon Josefsson  <jas@extundo.com>
65817
65818         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
65819         functions there.  It will succeed on Windows XP, but on Windows
65820         2000 and (presumably) earlier, it will fail, and use the internal
65821         re-implementation.
65822         (use_win32_p): New function.
65823         (getaddrinfo): Use strtoul on servname, to support numeric ports.
65824         Support AI_NUMERICSERV to disable getservbyname.
65825         (getnameinfo): New function, only supports
65826         NI_NUMERICHOST|NI_NUMERICSERV for now.
65827
65828         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
65829         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
65830         getnameinfo.
65831
65832 2006-06-28  Eric Blake  <ebb9@byu.net>
65833
65834         * modules/wcwidth: New file.
65835         * modules/mbchar (Depends-on): Add wcwidth.
65836         * modules/mbswidth (Depends-on): Add wcwidth.
65837         * MODULES.html.sh: Add wcwidth.
65838
65839 2006-06-28  Eric Blake  <ebb9@byu.net>
65840
65841         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
65842         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
65843
65844 2006-06-28  Eric Blake  <ebb9@byu.net>
65845
65846         * lib/xvasprintf.h: Fix comments.
65847
65848 2006-06-28  Eric Blake  <ebb9@byu.net>
65849
65850         * lib/mbchar.h (wcwidth): Include wcwidth.h.
65851         * lib/mbswidth.c (wcwidth): Move from here...
65852         * lib/wcwidth.h: ...to this new file.
65853
65854 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65855
65856         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
65857
65858         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
65859         it's obsolete.
65860         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
65861
65862 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65863
65864         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
65865         Autoconf 2.60 says this stuff was obsolete.
65866
65867 2006-06-28  Bruno Haible  <bruno@clisp.org>
65868
65869         * modules/wcwidth (Files): Add m4/wchar_t.m4.
65870
65871 2006-06-28  Bruno Haible  <bruno@clisp.org>
65872
65873         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
65874         gt_TYPE_WCHAR_T.
65875
65876 2006-06-28  Bruno Haible  <bruno@clisp.org>
65877
65878         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
65879         declaration for wcwidth.
65880         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
65881
65882 2006-06-28  Bruno Haible  <bruno@clisp.org>
65883
65884         * lib/mkdtemp.c [MINGW]: Include <io.h>.
65885         (mkdir): Define using _mkdir.
65886
65887 2006-06-28  Bruno Haible  <bruno@clisp.org>
65888
65889         * lib/getaddrinfo.h: Fix POSIX URL.
65890         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
65891         _WIN32.
65892         (use_win32_p): Make static.
65893         (getaddrinfo): Reject service name if it is empty or does not consist
65894         solely of decimal digits, or if its value is > 65535.
65895         (getnameinfo): Remove useless casts.
65896
65897 2006-06-27  Simon Josefsson  <jas@extundo.com>
65898
65899         * modules/sys_select: New file, suggested by Bruno Haible, Paul
65900         Eggert and Martin Lambers.
65901
65902 2006-06-27  Simon Josefsson  <jas@extundo.com>
65903
65904         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
65905         Eggert and Martin Lambers.
65906
65907 2006-06-27  Bruno Haible  <bruno@clisp.org>
65908
65909         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
65910         result to 0, not to empty.
65911         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
65912
65913 2006-06-27  Bruno Haible  <bruno@clisp.org>
65914
65915         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
65916
65917 2006-06-26  Simon Josefsson  <jas@extundo.com>
65918
65919         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
65920         present.
65921
65922 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
65923
65924         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
65925         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
65926         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
65927
65928 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
65929
65930         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
65931
65932 2006-06-26  Bruno Haible  <bruno@clisp.org>
65933
65934         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
65935
65936 2006-06-26  Bruno Haible  <bruno@clisp.org>
65937
65938         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
65939
65940 2006-06-26  Bruno Haible  <bruno@clisp.org>
65941
65942         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
65943         SGI C compiler in pre-C99 mode.
65944         Suggested by Mark D. Baushke and Larry Jones.
65945
65946 2006-06-26  Bruno Haible  <bruno@clisp.org>
65947
65948         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
65949         WCHAR_MAX.
65950         Reported by Mark D. Baushke and Larry Jones.
65951
65952 2006-06-26  Bruno Haible  <bruno@clisp.org>
65953
65954         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
65955         in pre-C99 mode.
65956         Suggested by Mark D. Baushke and Larry Jones.
65957
65958 2006-06-23  Simon Josefsson  <jas@extundo.com>
65959             Bruno Haible  <bruno@clisp.org>
65960
65961         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
65962         Emit mostlyclean-local rule.
65963         (func_emit_tests_Makefile_am): Likewise.
65964         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
65965
65966 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
65967
65968         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
65969
65970 2006-06-23  Bruno Haible  <bruno@clisp.org>
65971
65972         * tests/test-stdint.c: Update to match ISO C 99 Technical
65973         Corrigendum 1.
65974
65975 2006-06-23  Bruno Haible  <bruno@clisp.org>
65976
65977         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
65978
65979 2006-06-23  Bruno Haible  <bruno@clisp.org>
65980
65981         * lib/stdint_.h: Treat IRIX like OpenBSD.
65982
65983 2006-06-23  Bruno Haible  <bruno@clisp.org>
65984
65985         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
65986         ISO C 99 Technical Corrigendum 1.
65987
65988 2006-06-22  Simon Josefsson  <jas@extundo.com>
65989
65990         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
65991         MinGW.
65992
65993 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65994
65995         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
65996         needed.  Some compiler complained about some of them.  Problem reported
65997         by Larry Jones in
65998         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
65999
66000 2006-06-21  Simon Josefsson  <jas@extundo.com>
66001
66002         * tests/test-getaddrinfo.c: New file.
66003
66004         * modules/getaddrinfo-tests: New file.
66005
66006         * MODULES.html.sh: Add inet_pton.
66007
66008         * modules/inet_pton: New file.
66009
66010 2006-06-21  Simon Josefsson  <jas@extundo.com>
66011
66012         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
66013         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
66014         of using the (limited) gnulib implementation on Windows XP.
66015
66016         * m4/inet_pton.m4: New file.
66017
66018 2006-06-21  Simon Josefsson  <jas@extundo.com>
66019
66020         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
66021         variable.
66022
66023         * lib/socket_.h: Don't define WINVER.
66024
66025         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
66026         slightly modified to work in gnulib.
66027
66028 2006-06-21  Simon Josefsson  <jas@extundo.com>
66029
66030         * doc/gnulib.texi (Windows sockets): Add.
66031
66032 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66033
66034         * lib/read-file.c (fread_file): Start with buffer allocation of
66035         0 bytes rather than 1 byte; this simplifies the code.
66036         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
66037         code to free buffer and save/restore errno.
66038         (internal_read_file): Remove unused local.
66039
66040 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66041
66042         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
66043         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
66044         Problem reported by Denis Excoffier in
66045         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
66046
66047 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66048
66049         * modules/sys_socket, modules/socklen: Include sys/types since
66050         FreeBSD 4.x's sys/socket.h needs it.
66051
66052 2006-06-19  Simon Josefsson  <jas@extundo.com>
66053
66054         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
66055
66056 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66057
66058         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
66059
66060 2006-06-19  Bruno Haible  <bruno@clisp.org>
66061
66062         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
66063         and FULL_PATH_INTTYPES_H in angle brackets.
66064         Reported by Mark D. Baushke <mdb@gnu.org>.
66065
66066 2006-06-17  Eric Blake  <ebb9@byu.net>
66067
66068         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
66069         errno.
66070
66071 2006-06-17  Bruno Haible  <bruno@clisp.org>
66072
66073         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
66074         <sys/inttypes.h>.
66075
66076 2006-06-17  Bruno Haible  <bruno@clisp.org>
66077
66078         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
66079         whether errno is declared. Assume <errno.h> declares errno.
66080
66081 2006-06-17  Bruno Haible  <bruno@clisp.org>
66082
66083         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
66084
66085 2006-06-17  Bruno Haible  <bruno@clisp.org>
66086
66087         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
66088         problem on Solaris 2.5.1.
66089
66090 2006-06-16  Eric Blake  <ebb9@byu.net>
66091
66092         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
66093         * lib/unicodeio.c [!defined errno]: Likewise.
66094         * lib/strtol.c [!defined errno]: Likewise.
66095         * lib/strtod.c [!defined errno]: Likewise.
66096
66097 2006-06-15  Eric Blake  <ebb9@byu.net>
66098
66099         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
66100
66101 2006-06-15  Eric Blake  <ebb9@byu.net>
66102
66103         * config/srclist.txt (ssize_t.m4): Lose sync.
66104
66105 2006-06-15  Bruno Haible  <bruno@clisp.org>
66106
66107         * modules/stdint (Files): Include m4/full-header-path.m4,
66108         m4/size_max.m4, m4/wchar_t.m4.
66109         (Makefile.am): Many more substitutions.
66110         * modules/stdint-tests: New file.
66111         * tests/test-stdint.c: New file.
66112
66113 2006-06-15  Bruno Haible  <bruno@clisp.org>
66114
66115         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
66116         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
66117         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
66118         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
66119         gl_CHECK_TYPE_SAME): New macros.
66120
66121 2006-06-15  Bruno Haible  <bruno@clisp.org>
66122
66123         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
66124
66125 2006-06-15  Bruno Haible  <bruno@clisp.org>
66126
66127         * lib/stdint_.h: Rewritten to be fully auto-configured.
66128         Fixes bug on HP-UX/IA64.
66129
66130 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
66131
66132         * lib/getdate.y (__attribute__): Don't define if already defined.
66133         Problem reported by Larry Jones.
66134         * lib/utimens.c (__attribute__): Likewise.
66135
66136 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
66137
66138         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
66139         reported by Andreas Schwab.
66140
66141 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66142             Bruno Haible  <bruno@clisp.org>
66143
66144         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
66145         check for the declaration of strnlen and a run test that exposes the
66146         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
66147         rpl_strndup.
66148
66149 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66150             Bruno Haible  <bruno@clisp.org>
66151
66152         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
66153
66154 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66155
66156         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
66157         compile test, for Tru64 4.0D.
66158
66159 2006-05-28  Karl Berry  <karl@gnu.org>
66160
66161         * config/srclist.txt (printf-args.c): lose sync.
66162
66163 2006-05-26  Martin Lambers  <marlam@marlam.de>
66164
66165         * lib/getpass.c: Updates the test for the native W32 API, and adds
66166         missing includes, thus fixing compilation warnings.
66167
66168 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66169
66170         * lib/exclude.c (exclude_fnmatch): New function.
66171         (excluded_file_name): Call exclude_fnmatch.
66172         * lib/exclude.h (excluded_file_name): New prototype
66173
66174 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
66175
66176         * lib/tempname.c (small_open, large_open): New macros.
66177         (__open, __open64) [!_LIBC]: Remove.
66178         (__gen_tempname): Use small_open and large_open instead of __open
66179         and __open64.  This fixes a portability bug on HP-UX 11.11i
66180         reported by Simon Wing-Tang in
66181         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
66182
66183 2006-05-24  Bruno Haible  <bruno@clisp.org>
66184
66185         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
66186         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
66187         Reported by Thorsten Maerz <torte@netztorte.de> via
66188         Aaron Stone <aaron@serendipity.cx>.
66189
66190 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66191
66192         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
66193         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
66194         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
66195         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
66196         not really conditional on the cache.
66197         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
66198
66199 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66200
66201         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
66202         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
66203         (my_usleep): Don't mishandle maximum value.
66204
66205 2006-05-19  Jim Meyering  <jim@meyering.net>
66206
66207         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
66208
66209 2006-05-17  Bruno Haible  <bruno@clisp.org>
66210
66211         Cygwin portability.
66212         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
66213
66214 2006-05-17  Bruno Haible  <bruno@clisp.org>
66215
66216         * lib/stdint_.h: Fix recognition of Cygwin.
66217
66218 2006-05-15  Bruno Haible  <bruno@clisp.org>
66219
66220         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
66221         on libtool patch by Ralf Wildenhues.
66222
66223 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66224
66225         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
66226         test for C99 conformance; (bool) 0.5 is an integer constant
66227         expression, but (bool) -0.5 is not.  Problem reported by Fedor
66228         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
66229
66230 2006-05-11  Simon Josefsson  <jas@extundo.com>
66231
66232         * m4/xvasprintf.m4: Fix obvious typo.
66233
66234 2006-05-11  Jim Meyering  <jim@meyering.net>
66235
66236         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
66237         James Lemley.
66238
66239 2006-05-10  Simon Josefsson  <jas@extundo.com>
66240
66241         * lib/md4.c: Typo fix, update copyright years.
66242         (K1, K2): Don't use L because it turn computations into 64-bit on
66243         64-bit platforms.
66244
66245 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
66246
66247         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
66248         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
66249         unwanted sign propagation, e.g., on hosts with 64-bit int.
66250         There still are some problems with reeelly weird theoretical hosts
66251         (e.g., 33-bit int) but it's not worth worrying about now.
66252         * lib/sha1.c (rol): Likewise.
66253         (K1, K2, K3, K4): Remove unnecessary L suffix.
66254
66255 2006-05-10  Bruno Haible  <bruno@clisp.org>
66256
66257         * lib/des.c: Cast to avoid warnings.
66258
66259 2006-05-09  Bruno Haible  <bruno@clisp.org>
66260
66261         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
66262         (Depends-on): Depend also on xsize, stdarg.
66263         (configure.ac): Add gl_XVASPRINTF.
66264
66265 2006-05-09  Bruno Haible  <bruno@clisp.org>
66266
66267         * m4/xvasprintf.m4: New file.
66268
66269 2006-05-09  Bruno Haible  <bruno@clisp.org>
66270
66271         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
66272         (EOVERFLOW): Define fallback value.
66273         (xstrcat): New function.
66274         (xvasprintf): Recognize the special case of a string concatenation.
66275
66276 2006-05-08  Eric Blake  <ebb9@byu.net>
66277
66278         * gnulib-tool (func_version): Base copyright year on CVS date.
66279         (func_emit_copyright_notice): New function.
66280         (func_emit_lib_Makefile_am): Use it.
66281         (func_emit_tests_Makefile_am): Likewise.
66282         (func_import): Likewise.
66283
66284 2006-05-08  Bruno Haible  <bruno@clisp.org>
66285
66286         * modules/stdarg: New file.
66287         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
66288
66289 2006-05-08  Bruno Haible  <bruno@clisp.org>
66290
66291         * m4/stdarg.m4: New file, from GNU gettext.
66292
66293 2006-05-08  Bruno Haible  <bruno@clisp.org>
66294
66295         * config/srclist.txt (build-aux/config.rpath): different from latest
66296         release.
66297
66298 2006-05-08  Bruno Haible  <bruno@clisp.org>
66299
66300         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
66301
66302 2006-05-05  Jim Meyering  <jim@meyering.net>
66303
66304         * m4/warning.m4: New file, derived from bison's file by the same name.
66305
66306 2006-05-03  Bruno Haible  <bruno@clisp.org>
66307
66308         * lib/stdint_.h: Shorter URL.
66309         * lib/inttypes.h: Likewise.
66310
66311 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66312
66313         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66314
66315 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66316
66317         * lib/verify.h: Document the internals better.  Most of this change
66318         was written by Bruno Haible.
66319
66320 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66321
66322         * doc/verify.texi: New file, partly based on a proposal by
66323         Bruno Haible.
66324
66325 2006-05-02  Bruno Haible  <bruno@clisp.org>
66326
66327         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66328         test from here...
66329         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66330
66331 2006-04-29  Bruno Haible  <bruno@clisp.org>
66332
66333         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66334         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66335
66336 2006-04-29  Bruno Haible  <bruno@clisp.org>
66337
66338         * gnulib-tool: Make --update option actually work.
66339
66340 2006-04-29  Bruno Haible  <bruno@clisp.org>
66341
66342         * doc/gcd.texi: New file.
66343         * doc/gnulib.texi: Include it.
66344
66345 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66346
66347         * lib/getdate.y (get_date): When adding relative date, start with the
66348         initial time, not with the result of the first mktime call.
66349
66350 2006-04-25  Bruno Haible  <bruno@clisp.org>
66351
66352         * gnulib-tool (func_import): Output the include directives in three
66353         blocks, sorted separately.
66354         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66355
66356 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66357
66358         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66359         to define main with arguments, for C++.  Reported by Eric Blake.
66360         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66361         Prefer 'int main ()' to 'int main (void)', for C++.
66362         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66363         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66364         for 'main', for C99 and C++.
66365
66366 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66367
66368         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66369         Don't assume that exit status -1 is valid.
66370         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66371         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66372         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66373         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66374         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66375         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66376         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66377         functions can be used without declaring them, or that you can
66378         exit with status -1.
66379         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66380
66381 2006-04-24  Karl Berry  <karl@gnu.org>
66382
66383         * config/srclist.txt (longdouble.m4): sync lost.
66384
66385 2006-04-24  Eric Blake  <ebb9@byu.net>
66386
66387         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66388
66389 2006-04-24  Bruno Haible  <bruno@clisp.org>
66390
66391         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66392         poll() implementation in AIX.
66393         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66394
66395 2006-04-24  Bruno Haible  <bruno@clisp.org>
66396
66397         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66398         assigned exactly once.
66399
66400 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66401             Bruno Haible  <bruno@clisp.org>
66402
66403         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66404         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66405         for AM_CPPFLAGS.
66406
66407 2006-04-23  Bruno Haible  <bruno@clisp.org>
66408
66409         * modules/copy-file: Depend on unistd.
66410         * modules/execute: Likewise.
66411         * modules/fatal-signal: Likewise.
66412         * modules/findprog: Likewise.
66413         * modules/mkdtemp : Likewise.
66414         * modules/pipe: Likewise.
66415         * modules/wait-process: Likewise.
66416
66417 2006-04-23  Bruno Haible  <bruno@clisp.org>
66418
66419         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66420         condition was already detected.
66421         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66422
66423 2006-04-23  Bruno Haible  <bruno@clisp.org>
66424
66425         * lib/copy-file.c: Include <unistd.h> unconditionally.
66426         * lib/execute.c: Likewise.
66427         * lib/fatal-signal.c: Likewise.
66428         * lib/findprog.c: Likewise.
66429         * lib/mkdtemp.c: Likewise.
66430         * lib/pipe.h: Likewise.
66431         * lib/pipe.c: Likewise.
66432         * lib/wait-process.h: Likewise.
66433
66434 2006-04-23  Bruno Haible  <bruno@clisp.org>
66435
66436         * gnulib-tool (func_usage): Fix --import description. Document
66437         --update.
66438         (func_import): Create temporary file in a temporary directory, if
66439         --dry-run is specified. Silence errors from 'grep' when there are no
66440         m4 files in $m4dir.
66441         (func_create_testdir): Silence errors from 'grep' when there are no
66442         m4 files in $m4dir.
66443         Reported by Karl Berry <karl@freefriends.org>.
66444
66445 2006-04-20  Bruno Haible  <bruno@clisp.org>
66446
66447         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66448         one argument, so that the code will be portable to Autoconf 2.60.
66449         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66450         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66451         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66452
66453 2006-04-19  Derek Price  <derek@ximbiot.com>
66454             Eric Blake  <ebb9@byu.net>
66455
66456         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66457         rather than "/full/path.h".  Update comment to match.  Shorten &
66458         generalize m4_translit call via AS_TR_CPP.
66459
66460 2006-04-19  Derek Price  <derek@ximbiot.com>
66461             Eric Blake  <ebb9@byu.net>
66462
66463         * lib/inttypes.h: Correct grammar in comment.
66464
66465 2006-04-18  Derek Price  <derek@ximbiot.com>
66466             Paul Eggert  <eggert@cs.ucla.edu>
66467
66468         * modules/inttypes: New file.
66469         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66470
66471 2006-04-18  Derek Price  <derek@ximbiot.com>
66472             Paul Eggert  <eggert@cs.ucla.edu>
66473
66474         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66475         New files.
66476
66477 2006-04-18  Derek Price  <derek@ximbiot.com>
66478             Paul Eggert  <eggert@cs.ucla.edu>
66479
66480         * lib/inttypes.h: New file.
66481         * lib/strtoimax.c: Assume <inttypes.h>.
66482
66483 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66484
66485         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66486         isn't mounted.  Problem reported by Kir Kolyshkin.
66487
66488 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66489
66490         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66491         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66492         Derek R. Price.
66493         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66494         implementation.
66495
66496 2006-04-12  Eric Blake  <ebb9@byu.net>
66497
66498         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66499         is now done automatically by the corresponding Autoconf macro.
66500
66501 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66502
66503         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66504         time_r.h.
66505
66506 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66507
66508         Merge regex changes from libc, removing some of our
66509         POSIX-conformance changes that were rejected and redoing them in a
66510         less-intrusive way.
66511
66512         * lib/regcomp.c (re_compile_internal, init_dfa):
66513         Length arg is now size_t, not Idx.  All uses changed.
66514         (peek_token): Forward decl now says internal_function.
66515         (__re_error_msgid, __re_error_msgid_idx):
66516         Now static rather than extern with attribute_hidden.
66517         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66518         For some reason libc prefers K&R style defns for external functions.
66519         (regerror) [!defined _LIBC]: Likewise.
66520         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66521         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66522         (build_range_exp, build_collating_symbol):
66523         Use K&R-style defn.
66524         (re_compile_fastmap): Use '\0' to memset, not 0.
66525         (utf8_sb_map): Make the calculations more obvious.
66526         (init_dfa, parse_bracket_exp, build_charclass_op):
66527         Call calloc and cast result, as glibc does.
66528         (init_word_char, fetch_token, peek_token, peek_token_bracket):
66529         (build_range_exp, build_collating_symbol):
66530         Now internal functions.
66531
66532         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
66533
66534         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
66535         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
66536         Don't depend on VMS; depend on __VMS instead, for POSIX
66537         namespace cleanness.
66538         (regoff_t): Define to ssize_t, not long int.
66539
66540         Remove the REG_ macros named below.  Instead, make the old names
66541         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
66542         __USE_GNU_REGEX.
66543         (REG_BACKSLASH_ESCAPE_IN_LISTS):
66544         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
66545         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
66546         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
66547         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
66548         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
66549         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
66550         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
66551         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
66552         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
66553         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
66554         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
66555         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
66556         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
66557         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
66558         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
66559         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
66560         (REG_NREGS):
66561         Remove.  All uses replaced by the old RE_* names.
66562         (RE_BACKSLASH_ESCAPE_IN_LISTS):
66563         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
66564         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
66565         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
66566         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
66567         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
66568         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
66569         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
66570         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
66571         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
66572         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
66573         Don't bother having these macros be independent of each others'
66574         values, since they no longer exist in the POSIX name space.
66575
66576         Rename the following member names back to their old names,
66577         unless !__USE_GNU_REGEX.  All uses changed back.
66578         (buffer): Renamed from re_buffer.
66579         (allocated): Renamed from re_allocated.
66580         (used): Renamed from re_used.
66581         (syntax): Renamed from re_syntax.
66582         (fastmap): Renamed from re_fastmap.
66583         (translate): Renamed from re_translate.
66584         (can_be_null): Renamed from re_can_be_null.
66585         (regs_allocated): Renamed from re_regs_allocated.
66586         (fastmap_accurate): Renamed from re_fastmap_accurate.
66587         (no_sub): Renamed from re_no_sub.
66588         (not_bol): Renamed from re_not_bol.
66589         (not_eol): Renamed from re_not_eol.
66590         (newline_anchor): Renamed from re_newline_anchor.
66591         (num_regs): Renamed from rm_num_regs.
66592         (start): Renamed from rm_start.
66593         (end): Renamed from rm_end.
66594
66595         (free_state): Move up a bit.
66596
66597         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
66598         #define to be empty.
66599         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
66600         when that is what is intended.
66601         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
66602         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
66603         (MAX): New macro.
66604         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
66605         All uses changed back to re_malloc, etc.  It's now the caller's
66606         responsibility to check for overflow; all callers changed.
66607         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
66608         (re_x2nrealloc): Remove.
66609         (free_state): Remove decl.
66610
66611         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
66612         (re_set_registers, re_exec):
66613         Use K&R-style defn.
66614
66615         2006-01-31  Roland McGrath  <roland@redhat.com>
66616
66617         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66618         Reported by Mike Frysinger <vapier@gentoo.org>.
66619
66620         2006-01-15  Andreas Jaeger  <aj@suse.de>
66621
66622         [BZ #1950]
66623         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66624         build_wcs_upper_buffer change.
66625         (build_wcs_upper_buffer): Change return type.
66626
66627         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66628
66629         * lib/regex_internal.h: Include <stdint.h> if available.
66630
66631         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66632
66633         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66634
66635         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66636
66637         * lib/regcomp.c: Adjust for changed secondary hash function.
66638
66639         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66640
66641         * lib/regex.h: Pretty printing.
66642         Clean up namespace a bit.
66643
66644         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66645
66646         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66647         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66648
66649         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66650                     Ulrich Drepper  <drepper@redhat.com>
66651
66652         [BZ #1302]
66653         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66654         changed.
66655         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66656
66657         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66658
66659         [BZ #281]
66660         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66661         * lib/regcomp.c: Remove unnecessary uses of
66662         unsigned RE_TRANSLATE_TYPE.
66663         * lib/regex_internal.h: Likewise.
66664         * lib/regex_internal.c: Likewise.
66665         * lib/regexec.c: Likewise.
66666         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66667
66668         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66669
66670         * lib/regexec.c (find_recover_state): Remove unnecessary
66671         initialization.
66672         (transit_state_bkref): Make DFA a const pointer.
66673         (get_subexp): Likewise.
66674         (check_arrival): Likewise.
66675         (update_cur_sifted_state): Likewise.
66676         (re_search_internal): Likewise.
66677         (prune_impossible_nodes): Likewise.
66678         (acquire_init_state_context): Likewise.
66679         (proceed_next_node): Likewise.
66680         (set_regs): Likewise.
66681         (free_fail_stack_return): Likewise.
66682         (check_arrival_expand_ecl): Mark DFA parameter as const.
66683         (check_arrival_expand_ecl_sub): Likewise.
66684         (check_subexp_limits): Likewise.
66685         (sub_epsilon_src_nodes):  Likewise.
66686         (add_epsilon_src_nodes):  Likewise.
66687         (merge_state_array): Likewise.
66688         (update_regs): Likewise.
66689         (build_trtable): Likewise.
66690         (sift_states_backward): Mark MCTX parameter as const.
66691         (build_sifted_states): Likewise.
66692         (update_cur_sifted_state): Likewise.
66693         (sift_states_mkref): Likewise.
66694         (check_arrival_expand_ecl): Mark eclosure as const.
66695         (check_dst_limits_calc_pos_1): Likewise.
66696         * lib/regex_internal.h (re_match_context_t): Make dfa a const
66697         pointer.
66698
66699         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
66700
66701         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
66702         (transit_state_sb): Likewise.
66703         (transit_state_mb): Likewise.
66704         (sift_states_iter_mb): Likewise.
66705         (check_arrival_add_next_nodes): Likewise.
66706         (check_node_accept_bytes): Change first parameter to pointer-to-const.
66707         [_LIBC] (re_search_2_stub): Use mempcpy.
66708
66709         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
66710         mbrtowc for very simple UTF-8 case.
66711
66712         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
66713         a pointer-to-const.
66714         (re_acquire_state_context): Likewise.
66715         * lib/regex_internal.h: Adjust prototypes.
66716
66717         * lib/regex.c: Prevent using C++ compilers.
66718
66719         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
66720         (re_acquire_state_context): Likewise.
66721
66722 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66723
66724         * modules/regex (Depends-on): Add ssize_t.
66725
66726 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66727
66728         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
66729         translation table.
66730
66731 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66732
66733         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
66734
66735 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
66736             Bruno Haible  <bruno@clisp.org>
66737
66738         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
66739         <sys/types.h> and <inttypes.h>.
66740
66741 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66742
66743         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
66744         `__error_t_defined', so argp.h will not typedef the former.
66745
66746 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66747
66748         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
66749         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
66750         glibc names.  Even if glibc is changed to conform to POSIX, the
66751         traditional names will be available anyway, since regex depends on
66752         the extensions module.  Also, fix a longstanding typo in the
66753         implementation of Spencer ERE test #75 from grep 2.3.  Problems
66754         reported by Emanuele Giaquinta.  Also, change sense of cached
66755         variable, so that the message makes sense.
66756
66757 2006-03-24  Simon Josefsson  <jas@extundo.com>
66758
66759         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
66760         including some doc fixes.
66761         (base64_encode_alloc): Fix +1 bug on allocation failures.
66762
66763 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66764
66765         * lib/base64.c (base64_encode): Do not read past end of array with
66766         unsanitized input on systems with CHAR_BIT > 8.
66767
66768 2006-03-24  Eric Blake  <ebb9@byu.net>
66769
66770         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
66771
66772 2006-03-22  Karl Berry  <karl@gnu.org>
66773
66774         * config/srclist.txt (*setenv.[ch]): get from coreutils.
66775         * config/srclistvars.sh (COREUTILS): new var.
66776
66777 2006-03-17  Jim Meyering  <jim@meyering.net>
66778
66779         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
66780         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
66781
66782 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66783
66784         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
66785         no longer needs it.  Instead, check that regoff_t is as least
66786         as wide as ptrdiff_t.
66787
66788         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
66789         so that our regex.h stays compatible with the installed regex.
66790         This is helpful for installers who configure --without-included-regex.
66791         Problem reported by Emanuele Giaquinta.
66792
66793 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66794
66795         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
66796         Typedef to long int, not to off_, as POSIX will likely change
66797         in that direction.
66798
66799 2006-03-15  Eric Blake  <ebb9@byu.net>
66800
66801         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
66802
66803 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66804
66805         * lib/argp-help.c (validate_uparams): Fix typo
66806         * lib/argp-parse.c (argp_default_options): Consistently begin help
66807         messages with a lowercase letter.
66808
66809 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
66810
66811         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
66812         overrun buffers and shouldn't be used (much as gets shouldn't be
66813         used).
66814         * lib/time_r.c (asctime_r, ctime_r): Likewise.
66815
66816 2006-03-08  Simon Josefsson  <jas@extundo.com>
66817
66818         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
66819         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66820
66821 2006-03-08  Simon Josefsson  <jas@extundo.com>
66822
66823         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
66824         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66825
66826 2006-03-08  Simon Josefsson  <jas@extundo.com>
66827
66828         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
66829         signal that configure disabled the device.
66830
66831 2006-03-08  Simon Josefsson  <jas@extundo.com>
66832
66833         * build-aux/maint.mk: Fix refresh-po, to handle no translated
66834         languages.
66835
66836 2006-03-07  Simon Josefsson  <jas@extundo.com>
66837
66838         * modules/getopt (Depends-on): Add unistd.
66839
66840         * modules/unistd: New file.
66841
66842 2006-03-07  Simon Josefsson  <jas@extundo.com>
66843
66844         * modules/gc-random: New file.
66845
66846 2006-03-07  Simon Josefsson  <jas@extundo.com>
66847
66848         * m4/unistd_h.m4: New file.
66849
66850 2006-03-07  Simon Josefsson  <jas@extundo.com>
66851
66852         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
66853         test to be side-effect free by storing the result in the cache
66854         variable gl_cv_lib_readline, and moving the assignment of
66855         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
66856         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66857
66858 2006-03-07  Simon Josefsson  <jas@extundo.com>
66859
66860         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
66861         error on missing devices (the functions will return an error).
66862
66863         * m4/gc.m4: Move random stuff to gc-random.m4
66864
66865 2006-03-07  Simon Josefsson  <jas@extundo.com>
66866
66867         * lib/unistd_.h: New file.
66868
66869 2006-03-07  Simon Josefsson  <jas@extundo.com>
66870
66871         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
66872
66873 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66874
66875         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
66876         Problem reported by Juan Manuel Guerrero.
66877
66878 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66879
66880         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
66881         the unistd module.
66882         * lib/getlogin_r.c: Likewise.
66883         * lib/getlogin_r.h: Likewise.
66884         * lib/glob.c: Likewise.
66885         * lib/pagealign_alloc.c: Likewise.
66886         * lib/unistd_.h: Remove; no longer needed.
66887
66888 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66889
66890         * MODULES.html.sh (Support for systems lacking POSIX:2001):
66891         Add unistd.
66892         * modules/c-stack (Depends-on): Add unistd.
66893         * modules/getlogin_r: Likewise.
66894         * modules/glob: Likewise.
66895         * modules/pagealign_alloc: Likewise.
66896         * modules/unistd (Files): Remove lib/unistd_.h.
66897         (EXTRA_DIST): Remove.
66898         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
66899         need unistd_.h.
66900         (MOSTLYCLEANFILES): Remove unistd.h-t.
66901
66902 2006-03-03  Simon Josefsson  <jas@extundo.com>
66903
66904         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
66905
66906 2006-03-03  Simon Josefsson  <jas@extundo.com>
66907
66908         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
66909         libidn and bison.
66910
66911 2006-03-03  Simon Josefsson  <jas@extundo.com>
66912
66913         * build-aux/maint.mk: Add indent target.
66914
66915 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
66916
66917         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
66918         our replacement poll.h in any case, to avoid a differing
66919         declaration from a system header.  Seen on AIX.
66920
66921 2006-03-01  Simon Josefsson  <jas@extundo.com>
66922
66923         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
66924         <kasal@ucw.cz>.
66925
66926 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66927
66928         * modules/gettime (Depends-on): Add extensions module.
66929         * modules/nanosleep (Depends-on): Likewise.
66930         * modules/settime (Depends-on): Likewise.
66931
66932 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66933
66934         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
66935         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
66936         pedantically.
66937         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66938         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
66939
66940         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
66941         not "==".  Reported by Ralf Wildenhues.
66942
66943 2006-03-01  Karl Berry  <karl@gnu.org>
66944
66945         * doc/Copyright/request-*: new files, synced from gnuorg.
66946
66947 2006-03-01  Karl Berry  <karl@gnu.org>
66948
66949         * config/srclist.txt (Copyright/*): new entries.
66950
66951 2006-02-28  Simon Josefsson  <jas@extundo.com>
66952
66953         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
66954
66955 2006-02-27  Simon Josefsson  <jas@extundo.com>
66956
66957         * lib/base64.h: Indent #define's.  From Jim Meyering
66958         <jim@meyering.net>.
66959
66960 2006-02-27  Jim Meyering  <jim@meyering.net>
66961
66962         Revert the change of 2006-02-24, so these files can continue
66963         to be sync'd from gettext.
66964         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
66965         of `config.h'.
66966
66967 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66968
66969         * modules/intprops: New file.
66970         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66971         Add intprops.
66972         * modules/getloadavg (Files): Remove lib/intprops.h.
66973         (Depends-on): Add intprops.
66974         * modules/human: Likewise.
66975         * modules/inttostr: Likewise.
66976         * modules/openat: Likewise.
66977         * modules/sig2str: Likewise.
66978         * modules/userspec: Likewise.
66979         * modules/utimecmp: Likewise.
66980         * modules/xnanosleep: Likewise.
66981         * modules/xstrtol: Likewise.
66982
66983 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
66984
66985         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
66986         * modules/lock-tests (TESTS): Use $(EXEEXT).
66987         * modules/tls-tests: Likewise.
66988         * modules/argp-tests: Likewise.
66989         (check_PROGRAMS): New var, replacing...
66990         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
66991
66992 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66993
66994         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
66995         `config.h'.
66996
66997 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66998
66999         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
67000
67001 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67002
67003         Sync from coreutils.
67004         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
67005         gl_CHDIR_SAFER.
67006
67007 2006-02-22  Jim Meyering  <jim@meyering.net>
67008
67009         Sync from coreutils.
67010         * m4/chdir-safer.m4: New file.
67011
67012 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67013
67014         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
67015         AT_FDCWD exceeds INT_MAX.
67016         * lib/openat.h (AT_FDCWD): Likewise.
67017
67018 2006-02-17  Eric Blake  <address@hidden>
67019
67020         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
67021
67022 2006-02-16  Simon Josefsson  <jas@extundo.com>
67023
67024         * modules/getaddrinfo (Depends-on): Add sys_socket.
67025
67026 2006-02-15  Simon Josefsson  <jas@extundo.com>
67027
67028         * build-aux/maint.mk: Add dsyntax-check rule.
67029
67030 2006-02-15  Eric Blake  <ebb9@byu.net>
67031
67032         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
67033         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
67034         'present but cannot compile' warnings on cygwin.
67035         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
67036         use ws2tcpip.h if sys/socket.h works.
67037         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
67038         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
67039
67040 2006-02-14  Simon Josefsson  <jas@extundo.com>
67041
67042         * modules/maintainer-makefile (Files): Rename.
67043
67044         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
67045         and (the local) Makefile.cfg to maint-cfg.mk.
67046
67047         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
67048         to the latter.
67049
67050         * modules/maintainer-makefile: New module.
67051
67052         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
67053         severaly stripped to make it possible to build it up from scratch
67054         with reliable tests.
67055
67056         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
67057         fixes to permit overriding the default actions when configure and
67058         makefile are not available.
67059
67060 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67061
67062         Sync from coreutils.
67063         * modules/lstat (Depends-on): Don't depend on xalloc.
67064         (License): Change from GPL to LGPL, since this is now simply a
67065         replacement for a libc function.
67066
67067 2006-02-14  Jim Meyering  <jim@meyering.net>
67068
67069         Sync from coreutils.
67070
67071         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
67072         failure on deficient systems, and simplify gnulib lgpl dependencies.
67073         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
67074         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
67075
67076         * lib/xalloc-die.c: Remove unused definition of N_.
67077
67078 2006-02-14  Jim Meyering  <jim@meyering.net>
67079
67080         Sync from coreutils.
67081         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
67082         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
67083         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
67084         double-quote uses of that variable, to accommodate the rare case in
67085         which getmntent is available in none of the libraries checked.  This
67086         happens at least on FreeBSD 5.0.
67087
67088 2006-02-13  Simon Josefsson  <jas@extundo.com>
67089
67090         * gnulib-tool (Usage): Fix --import, from
67091         karl@freefriends.org (Karl Berry).
67092
67093 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67094
67095         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
67096
67097 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
67098
67099         * lib/argp-namefrob.h: Restore changes accidentally lost during the
67100         "autoupdate" on 2005-12-12.
67101
67102 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67103
67104         * modules/closeout (Depends-on): Remove atexit.
67105
67106 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
67107
67108         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
67109         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
67110
67111 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67112
67113         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
67114         __EXTENSIONS__ if this causes compilation to fail.  Problem
67115         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
67116         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
67117
67118 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
67119
67120         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
67121         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
67122         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
67123         All uses changed.
67124
67125 2006-01-26  Simon Josefsson  <jas@extundo.com>
67126
67127         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
67128         prototype is visible on mingw32.
67129
67130         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
67131         for mingw32.
67132
67133         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
67134         mingw32).
67135
67136 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67137
67138         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
67139         attempt to open for write; this always fails, at least on POSIX
67140         hosts.  This reinstates the 2006-01-09 change, which was
67141         inadvertently removed.
67142
67143 2006-01-26  Bruno Haible  <bruno@clisp.org>
67144
67145         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
67146         Reported by Paul Eggert.
67147
67148 2006-01-26  Bruno Haible  <bruno@clisp.org>
67149             Paul Eggert  <eggert@cs.ucla.edu>
67150
67151         * lib/stdbool_.h (_Bool)
67152         [(! (defined __cplusplus || defined __BEOS__)
67153           && !defined __GNUC__
67154           && !(defined __HP_cc || defined __xlc__
67155                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
67156                || defined __sgi))]:
67157         #define to signed char in these cases too; this simplifies
67158         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
67159         etc., separately) and makes it more conservative.
67160
67161 2006-01-25  Simon Josefsson  <jas@extundo.com>
67162
67163         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
67164         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
67165         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
67166
67167 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67168
67169         * lib/argp-namefrob.h: Bugfix. Remove stray #
67170
67171 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
67172
67173         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
67174         so that we test the test.
67175         Check for yet another HP-UX cc bug involving *bool |= bool.
67176
67177 2006-01-25  Karl Berry  <karl@gnu.org>
67178
67179         * config/srclist.txt (vasnprintf.c): sync lost.
67180
67181 2006-01-25  Jim Meyering  <jim@meyering.net>
67182
67183         Sync from the stable (b5) branch of coreutils:
67184
67185         * lib/fts.c (fts_children): Don't let close() clobber errno from
67186         failed fchdir().
67187
67188         * lib/fts.c (fts_stat): When following a symlink-to-directory,
67189         don't necessarily interpret stat-fails+lstat-succeeds as indicating
67190         a dangling symlink.  That can also happen at least for ELOOP.
67191         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
67192         FYI, this bug predates the inclusion of fts.c in coreutils.
67193
67194         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
67195         in their own block, so pre-c99 compilers don't object.
67196
67197         Avoid the double-free (first in fts_read, second in fts_close) that
67198         would occur when an `active' directory is made inaccessible (e.g.,
67199         via chmod a-x) during a traversal.
67200         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67201         before returning.  Reproduce this failure by
67202         mkdir -p a/b; cd a; chmod a-x . b
67203         Reported by Stavros Passas.
67204
67205 2006-01-25  Jim Meyering  <jim@meyering.net>
67206
67207         * lib/fileblocks.c: Remove more useless parentheses.
67208         * lib/readutmp.h: Likewise.
67209
67210 2006-01-25  Bruno Haible  <bruno@clisp.org>
67211
67212         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
67213         warnings.
67214         Reported by Paul Eggert.
67215
67216 2006-01-25  Bruno Haible  <bruno@clisp.org>
67217
67218         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
67219         rid of a trap command. For Solaris sh.
67220         Reported by Mark D. Baushke <mdb@gnu.org>.
67221
67222 2006-01-24  Simon Josefsson  <jas@extundo.com>
67223
67224         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
67225         Bruno.
67226
67227 2006-01-24  Karl Berry  <karl@gnu.org>
67228
67229         * config/srclist.txt (argp-namefrob.h): sync lost.
67230
67231 2006-01-24  Jim Meyering  <jim@meyering.net>
67232
67233         * modules/openat (Files): Add lib/intprops.h.
67234         From Mark D. Baushke.
67235
67236 2006-01-24  Jim Meyering  <jim@meyering.net>
67237
67238         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
67239         Reported by Mark D. Baushke.
67240
67241 2006-01-24  Jim Meyering  <jim@meyering.net>
67242
67243         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
67244
67245 2006-01-24  Bruno Haible  <bruno@clisp.org>
67246
67247         * modules/strnlen (Maintainer): Change from glibc to all.
67248
67249 2006-01-24  Bruno Haible  <bruno@clisp.org>
67250
67251         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
67252         Patch by Paul Eggert.
67253
67254 2006-01-24  Bruno Haible  <bruno@clisp.org>
67255
67256         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
67257         already has it.
67258         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
67259         2005-11-26.
67260
67261         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
67262         'signed char' to avoid problems with the built-in _Bool type.
67263         Reported by Paul Eggert on 2005-11-26.
67264
67265 2006-01-24  Bruno Haible  <bruno@clisp.org>
67266
67267         * gnulib-tool (func_import): Avoid constructing complicated sed
67268         expressions inside backquote.
67269         Report and solution by Mark D. Baushke <mdb@gnu.org>.
67270
67271 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
67272
67273         These changes imported from libc.
67274         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
67275         test and two separate function calls.
67276         * lib/strndup.c (__strndup): Add libc_hidden_def.
67277
67278 2006-01-23  Simon Josefsson  <jas@extundo.com>
67279
67280         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
67281         Remove the test_*_SOURCES variable: automake infers it by default.
67282         * modules/tls-tests: Likewise.
67283
67284 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67285
67286         Work around porting bugs reported by Dieter in
67287         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
67288         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
67289         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
67290         Include "getopt.h" first, to check interface.
67291         (getenv): Declare only if defined HAVE_DECL_GETENV &&
67292         !HAVE_DECL_GETENV.
67293         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
67294         (__strndup): Revert to K&R-style function dfns, the glibc style.
67295         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
67296         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
67297         Include strnlen.h first, to get prototype properly.
67298         (strnlen): Renamed from __strnlen.
67299         Remove weak alias.
67300
67301 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67302
67303         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
67304
67305 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67306
67307         * config/srclist.txt: Adjust to reflect glibc reorganization.
67308         This affects only comments.
67309
67310 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67311
67312          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67313          Reported by Bruce Korb <bkorb@gnu.org>.
67314
67315 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67316
67317         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67318         to pacify gcc -Wswitch-default.
67319
67320 2006-01-22  Bruno Haible  <bruno@clisp.org>
67321
67322         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67323         temporary buffer for sprintf, take into account the precision also
67324         for 'd', 'i', 'u', 'o', 'x', 'X'.
67325
67326 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67327
67328         * modules/argp-tests: New module
67329         * tests/test-argp.c: New file
67330         * tests/test-argp-2.sh: New file
67331
67332 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67333
67334         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67335         (__argp_base_name): Removed
67336         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67337         typo.
67338         (__argp_base_name): Provide macro definition or extern declaration
67339         depending on the configuration
67340
67341 2006-01-20  Simon Josefsson  <jas@extundo.com>
67342
67343         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67344
67345 2006-01-20  Simon Josefsson  <jas@extundo.com>
67346
67347         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67348
67349 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67350
67351         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67352         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67353         Suggested by Bruno Haible.
67354
67355 2006-01-20  Karl Berry  <karl@gnu.org>
67356
67357         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67358         until changes propagate, I guess.
67359
67360 2006-01-19  Simon Josefsson  <jas@extundo.com>
67361
67362         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67363
67364 2006-01-19  Simon Josefsson  <jas@extundo.com>
67365
67366         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67367
67368 2006-01-19  Simon Josefsson  <jas@extundo.com>
67369
67370         * gnulib-tool: Set check_PROGRAMS.
67371
67372         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67373         modules/des-tests, modules/gc-arcfour-tests,
67374         modules/gc-arctwo-tests, modules/gc-des-tests,
67375         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67376         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67377         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67378         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67379         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67380         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67381         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67382         test_*_SOURCES.
67383
67384 2006-01-18  Simon Josefsson  <jas@extundo.com>
67385
67386         * modules/socklen (Depends-on): Depend on sys_socket.
67387
67388 2006-01-18  Simon Josefsson  <jas@extundo.com>
67389
67390         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67391         modules/des-tests, modules/gc-arcfour-tests,
67392         modules/gc-arctwo-tests, modules/gc-des-tests,
67393         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67394         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67395         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67396         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67397         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67398         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67399         $(EXEEXT) to automake TESTS variable, for mingw32.
67400
67401 2006-01-17  Simon Josefsson  <jas@extundo.com>
67402
67403         * modules/socklen (Include): Need sys/socket.h.
67404
67405 2006-01-17  Bruno Haible  <bruno@clisp.org>
67406
67407         * modules/ssize_t (Include): Add <sys/types.h>.
67408
67409 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67410
67411         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67412         it's not portable and it doesn't work with cross-compiles.
67413         Problem reported by Bruno Haible.  Fix missing-$ typo in
67414         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67415         -zignore from being used with Sun's C compiler.
67416
67417 2006-01-12  Simon Josefsson  <jas@extundo.com>
67418
67419         * lib/base64.c: Fix warning, reported by Bruno Haible
67420         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67421
67422 2006-01-12  Bruno Haible  <bruno@clisp.org>
67423
67424         * modules/ldd: New file.
67425         * build-aux/ldd.sh.in: New file.
67426         * MODULES.html.sh (Support for building libraries and executables): Add
67427         ldd.
67428
67429 2006-01-12  Bruno Haible  <bruno@clisp.org>
67430
67431         * m4/ldd.m4: New file.
67432
67433 2006-01-12  Bruno Haible  <bruno@clisp.org>
67434
67435         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67436         endless loop while replacing $auxdir with build-aux.
67437
67438 2006-01-11  Simon Josefsson  <jas@extundo.com>
67439
67440         * lib/stdint_.h (SIZE_MAX): Add missing (.
67441
67442 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67443
67444         Sync from coreutils.
67445         * lib/md5.c: Fix commentary typos.
67446         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67447         * lib/md5.h (__attribute__): Remove; unused.
67448         * lib/sha1.c: Fix commentary to match md5 better.
67449         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67450         so that we don't need to worry about alignment.  All uses changed.
67451         This merges the 2005-10-28 md5 change into sha1.
67452
67453 2006-01-11  Jim Meyering  <jim@meyering.net>
67454
67455         Sync from coreutils.
67456         * lib/md5.c (OP): Fix spacing.
67457
67458 2006-01-11  Bruno Haible  <bruno@clisp.org>
67459
67460         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67461         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67462         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67463
67464 2006-01-11  Bruno Haible  <bruno@clisp.org>
67465
67466         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67467         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67468         the "early" section as well.
67469
67470 2006-01-11  Bruno Haible  <bruno@clisp.org>
67471
67472         Avoid "ar: no archive members specified" error on MacOS X.
67473         * gnulib-tool (func_modules_add_dummy): New function.
67474         (func_import, func_create_testdir): Invoke it.
67475
67476 2006-01-11  Bruno Haible  <bruno@clisp.org>
67477
67478         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67479         with $auxdir in AC_CONFIG_FILES statements.
67480
67481 2006-01-11  Bruno Haible  <bruno@clisp.org>
67482
67483         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67484         Initialize also noinst_HEADERS to empty.
67485
67486 2006-01-11  Bruno Haible  <bruno@clisp.org>
67487
67488         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67489         variables.
67490         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67491         autoreconf.
67492
67493 2006-01-11  Bruno Haible  <bruno@clisp.org>
67494
67495         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67496         overridable by the user.
67497         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67498
67499 2006-01-10  Simon Josefsson  <jas@extundo.com>
67500
67501         * modules/sys_socket: New file.
67502
67503 2006-01-10  Simon Josefsson  <jas@extundo.com>
67504
67505         * m4/sys_socket_h.m4: New file.
67506
67507 2006-01-10  Simon Josefsson  <jas@extundo.com>
67508
67509         * lib/socket_.h: New file.
67510
67511 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67512
67513         * modules/readutmp (Maintainer): Add myself.
67514
67515 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67516
67517         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67518         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67519         People who are still concerned with buggy memcmp implementations
67520         can invoke gl_FUNC_MEMCMP themselves.
67521
67522 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67523
67524         * lib/regex_internal.h (BITSET_WORD_BITS):
67525         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67526         preprocessor mishandles large unsigned values as if they were signed.
67527         Problem reported by Claudio Fontana in
67528         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
67529
67530 2006-01-10  Jim Meyering  <jim@meyering.net>
67531
67532         Avoid the double-free (first in fts_read, second in fts_close) that
67533         would occur when an `active' directory is made inaccessible (e.g.,
67534         via chmod a-x) during a traversal.
67535         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67536         before returning.  Reproduce this failure by
67537         mkdir -p a/b; cd a; chmod a-x . b
67538         Reported by Stavros Passas.
67539
67540         Sync from coreutils.
67541         * lib/sha1.c: Tweak grammar in a comment.
67542
67543 2006-01-10  Jim Meyering  <jim@meyering.net>
67544
67545         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
67546         Patch by Joerg Sonnenberger.
67547
67548 2006-01-10  Bruno Haible  <bruno@clisp.org>
67549
67550         * modules/readutmp: Depend on module free.
67551         * modules/strtok_r: Depend on module restrict.
67552
67553 2006-01-10  Bruno Haible  <bruno@clisp.org>
67554
67555         * modules/gettext (configure.ac): Add an invocation of
67556         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
67557
67558 2006-01-10  Bruno Haible  <bruno@clisp.org>
67559
67560         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
67561         Reported by Werner Lemberg <wl@gnu.org>.
67562
67563 2006-01-10  Bruno Haible  <bruno@clisp.org>
67564
67565         * lib/localcharset.c: Update from GNU gettext.
67566
67567 2006-01-10  Bruno Haible  <bruno@clisp.org>
67568
67569         * lib/argp.h (__const): Remove macro. Use const instead.
67570         * lib/argp-fmtstream.h (__const): Likewise.
67571         * lib/glob_.h (__const): Remove macro.
67572         * lib/glob-libc.h: Use const instead of __const.
67573
67574 2006-01-10  Bruno Haible  <bruno@clisp.org>
67575
67576         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
67577         variable.
67578         Needed to avoid an automake error regarding the 'gettext' module.
67579
67580 2006-01-09  Simon Josefsson  <jas@extundo.com>
67581
67582         * modules/inet_ntop (Depends-on): Add restrict.
67583
67584 2006-01-09  Simon Josefsson  <jas@extundo.com>
67585
67586         * modules/gc-rijndael-tests (License): Put under LGPL.
67587
67588         * modules/gc-des-tests (License): Likewise.
67589
67590         * modules/gc-arcfour-tests (License): Likewise.
67591
67592         * modules/gc-arctwo-tests (License): Likewise.
67593
67594         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
67595
67596         * modules/gc-hmac-sha1-tests (Files): Likewise.
67597
67598         * modules/gc-hmac-md5-tests (License): Likewise.
67599
67600         * modules/gc-sha1-tests (License): Likewise.
67601
67602         * modules/gc-md5-tests (License): Likewise.
67603
67604         * modules/gc-md4-tests (License): Likewise.
67605
67606         * modules/gc-md2-tests (License): Likewise.
67607
67608         * modules/gc-tests (License): Likewise.
67609
67610         * modules/des-tests (License): Likewise.
67611
67612         * modules/md4-tests (License): Likewise.
67613
67614         * modules/md2-tests (License): Likewise.
67615
67616 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67617
67618         Sync from coreutils:
67619
67620         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67621         * modules/lib-ignore: New file.
67622         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67623         chdir-safer.m4, lchmod.m4.
67624         * modules/openat: Add mkdirat.c, openat-priv.h.
67625
67626 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67627
67628         Sync from coreutils.
67629         * m4/lib-ignore.m4: New file.
67630         * m4/lchmod.m4: New file.
67631
67632 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67633
67634         Sync from coreutils.
67635         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67636         for write access: POSIX says that must fail.
67637         * lib/fts.c (diropen): Likewise.
67638         * lib/save-cwd.c (save_cwd): Likewise.
67639         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67640         well, for minor improvements on hosts that lack O_DIRECTORY.
67641         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67642         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67643         Fall back on chown if open failed with EACCES.
67644
67645         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67646         Report an error at compile-time if only a 1-second nominal clock
67647         resolution is found.
67648
67649         * lib/lchmod.h: New file.
67650         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67651         (make_dir_parents): Use lchown rather than chown, and
67652         lchmod rather than chmod.
67653
67654         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67655         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67656         "proc" reported by n0dalus.
67657
67658         * lib/mountlist.c: Include <limits.h>.
67659         (dev_from_mount_options)
67660         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67661         New function.  It no longer assumes "dev=" has the System V meaning
67662         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67663         (read_file_system_list)
67664         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67665         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67666         dev= in that case.
67667
67668         * lib/posixtm.h (PDS_PRE_2000): New macro.
67669         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67670         allow_century.  All usages changed.  Reject dates outside the range
67671         1969-1999 if PDS_PRE_2000 is used.
67672
67673 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67674
67675         Sync from coreutils.
67676         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67677         (Time of day items): Mention the possibility of leap seconds.
67678         Problem reported by Dr. David Alan Gilbert.
67679
67680 2006-01-09  Jim Meyering  <jim@meyering.net>
67681
67682         Sync from coreutils.
67683
67684         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67685
67686         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67687
67688         * lib/modechange.c (mode_compile): Reject an invalid mode string
67689         that starts with an octal digit.  From Andreas Gruenbacher.
67690
67691         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
67692         and dup to open_safer and dup_safer, respectively.
67693         (openat_permissive): Fix typo in comment.
67694
67695         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
67696         "gettext.h"; either no longer needed or are guaranteed by openat.h.
67697         (_): Remove; no longer needed.
67698         (openat): Renamed from rpl_openat; no need for rpl_openat
67699         since openat.h renames openat for us.
67700         Replace most of the body with a call to openat_permissive,
67701         to avoid duplicate code.
67702         Port to (probably hypothetical) environments were mode_t is
67703         wider than int.
67704         (openat_permissive): Require mode arg, so that we can check
67705         types better.  Put it just after flags.  Change cwd failure
67706         indicator from pointer-to-bool to pointer-to-errno-value.
67707         All callers changed.
67708         Invoke openat_save_fail and/or openat_restore_fail if
67709         cwd_errno is null, so that openat can call us.
67710         (openat_permissive, fdopendir, fstatat, unlinkat):
67711         Simplify errno handling to avoid some duplicate code,
67712         as it's OK to set errno on success.
67713         * lib/openat.h: Revamp code so that function macros depend on
67714         __OPENAT_PREFIX only, not also on AT_FDCWD.
67715         (openat_ro): Remove.  Caller changed to use openat_permissive.
67716         (openat_permissive): Now a macro, if not a function.
67717         (openat_restore_fail, openat_save_fail): Now always functions,
67718         since mkdirat needs them even if __OPENAT_PREFIX is defined.
67719
67720         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
67721         and openat.c.
67722         * lib/mkdirat.c: Include openat-priv.h.
67723         Remove definitions of macros defined therein.
67724         * lib/openat.c: Likewise.
67725
67726         * lib/mkdirat.c (mkdirat): New file and function.
67727         * lib/openat.h (mkdirat): Declare.
67728
67729         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
67730
67731         * lib/openat.h (openat_permissive): Declare.
67732         (openat_ro): Define.
67733
67734         * lib/openat.c (EXPECTED_ERRNO): New macro.
67735         (openat_permissive): New function -- used in remove.c rewrite.
67736         (all functions): Set errno just before returning, only if there
67737         was an actual failure.
67738         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
67739
67740         Emulate openat-family functions using Linux's procfs, if possible.
67741         Idea and some code based on Ulrich Drepper's glibc changes.
67742
67743         * lib/openat.c: (BUILD_PROC_NAME): New macro.
67744         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
67745         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
67746         before falling back on save_cwd and restore_cwd.
67747         (fdopendir, fstatat, unlinkat): Likewise.
67748
67749         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
67750         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
67751
67752         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
67753         as second argument to va_arg.  Otherwise, some versions of gcc
67754         warn that `if this code is reached, the program will abort'.
67755
67756 2006-01-09  Jim Meyering  <jim@meyering.net>
67757
67758         Sync from coreutils.
67759         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
67760         Require openat-priv.h.
67761
67762 2006-01-09  Bruno Haible  <bruno@clisp.org>
67763
67764         * modules/strnlen (Include): Use strnlen.h.
67765
67766 2006-01-09  Bruno Haible  <bruno@clisp.org>
67767
67768         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
67769
67770 2006-01-09  Bruno Haible  <bruno@clisp.org>
67771
67772         * lib/sysexit_.h (EX_OK): New macro.
67773         Suggested by Martin Lambers <marlam@marlam.de>.
67774
67775 2006-01-09  Bruno Haible  <bruno@clisp.org>
67776
67777         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
67778         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
67779
67780 2006-01-09  Bruno Haible  <bruno@clisp.org>
67781
67782         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
67783         numbers.
67784
67785 2006-01-09  Bruno Haible  <bruno@clisp.org>
67786
67787         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
67788         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
67789         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
67790         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
67791
67792 2006-01-09  Bruno Haible  <bruno@clisp.org>
67793
67794         * build-aux/javacomp.sh.in: New file, moved from lib/.
67795         * modules/javacomp-script (Files): Update.
67796         (configure.ac): Add AC_CONFIG_FILES invocation.
67797         (EXTRA_DIST): Remove variable.
67798
67799         * build-aux/javaexec.sh.in: New file, moved from lib/.
67800         * modules/javaexec (Files): Update.
67801         (configure.ac): Add AC_CONFIG_FILES invocation.
67802         (EXTRA_DIST): Remove javaexec.sh.in.
67803
67804         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
67805         * modules/csharpcomp-script (Files): Update.
67806         (configure.ac): Add AC_CONFIG_FILES invocation.
67807         (EXTRA_DIST): Remove variable.
67808
67809         * build-aux/csharpexec.sh.in: New file, moved from lib/.
67810         * modules/csharpexec (Files): Update.
67811         (configure.ac): Add AC_CONFIG_FILES invocation.
67812         (EXTRA_DIST): Remove csharpexec.sh.in.
67813
67814 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67815
67816         Sync from coreutils.
67817
67818         Add POSIX ACL support
67819         * lib/acl.h (copy_acl, set_acl): Add declarations.
67820         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
67821         systems other than Linux.
67822         (chmod_or_fchmod): New function: use fchmod when possible,
67823         and chmod otherwise.
67824         (file_has_acl): Add a POSIX ACL implementation, with a
67825         Linux-specific subcase.
67826         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
67827         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
67828         acls are unsupported.
67829         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
67830         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
67831         are unsupported.
67832
67833 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67834
67835         Sync from coreutils.
67836         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
67837
67838 2006-01-07  Bruno Haible  <bruno@clisp.org>
67839
67840         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
67841         gl_EARLY.
67842
67843 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67844
67845         * lib/strftime.c (tzname): Don't declare if it is already #defined.
67846         Problem reported for Mingw by Mark Junker.
67847
67848 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67849
67850         * README: Gnulib normally doesn't generate a tarball.
67851
67852 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
67853
67854         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
67855         long int, not int, for nanosecond counts, so that people who are
67856         used to POSIX struct timespec won't be surprised.  Reported by Jim
67857         Meyering.
67858
67859 2005-12-28  Bruno Haible  <bruno@clisp.org>
67860
67861         * build-aux/config.rpath: Update from GNU gettext.
67862
67863 2005-12-16  Jim Meyering  <jim@meyering.net>
67864
67865         * modules/fprintftime: New module.
67866         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
67867
67868 2005-12-16  Jim Meyering  <jim@meyering.net>
67869
67870         * m4/fprintftime.m4: New file.
67871
67872 2005-12-16  Jim Meyering  <jim@meyering.net>
67873
67874         * lib/fprintftime.c, lib/fprintftime.h: New files.
67875
67876 2005-12-15  Simon Josefsson  <jas@extundo.com>
67877
67878         * modules/socklen (configure.ac): Fix M4 macro name, to align with
67879         new m4/socklen.m4.
67880
67881 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67882
67883         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
67884         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
67885
67886 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67887
67888         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
67889         * lib/argp-help.c (fill_in_uparams): Check if the constructed
67890         struct uparams is valid. Fall back to the default values if it is
67891         not.
67892
67893 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67894
67895         * modules/argp (Files): Add argp-pin.c
67896         (Depends-on): dirname
67897         (lib_SOURCES): Add argp-pin.c
67898
67899 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67900
67901         * m4/argp.m4:  Check if program_invocation_name and
67902         program_invocation_short_name are declared and define appropriate
67903         macros if they are not.
67904
67905 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67906
67907         * lib/argp-help.c (__argp_base_name): New function
67908         (__argp_short_program_name): Rewrite using __argp_base_name
67909         * lib/argp-namefrob.h: Define program_invocation_name and
67910         program_invocation_short_name if requested
67911         (__argp_base_name): Add prototype
67912         * lib/argp-parse.c (argp_def): Use gettext wrappers
67913         (argp_default_parser): Use __argp_base_name
67914         * lib/argp-pin.c: New file. Defines program_invocation_name and
67915         program_invocation_short_name on systems that lack them.
67916
67917 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67918
67919         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
67920         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67921         porting problem reported by Georg Schwarz in
67922         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67923
67924 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67925
67926         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
67927         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67928         porting problem reported by Georg Schwarz in
67929         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67930
67931 2005-12-05  Bruno Haible  <bruno@clisp.org>
67932
67933         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
67934         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
67935         Reported by Mark Junker <mjscod@gmx.de>.
67936
67937 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
67938
67939         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
67940         Use implementation from Albert Chin, with some
67941         comments/corrections by Stepan Kasal and myself.
67942
67943 2005-12-02  Bruno Haible  <bruno@clisp.org>
67944
67945         * gnulib-tool (func_import): Accept GPLed build tool modules when
67946         --lgpl is given.
67947         * modules/csharpcomp-script: New file.
67948         * modules/csharpcomp: Depend on it.
67949         * modules/javacomp-script: New file.
67950         * modules/javacomp: Depend on it.
67951         Suggested by Simon Josefsson.
67952
67953 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
67954
67955         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
67956         statement, to work around an HP-UX 10.20 compiler bug reported by
67957         Peter O'Gorman.
67958
67959 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67960
67961         * modules/savedir (Depends-on): Add openat.
67962
67963 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67964
67965         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
67966         (uintmax_t) [defined uintmax_t]: Do not declare.
67967         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
67968         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
67969         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
67970         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
67971         sake of portability to weird hosts that C allows (though we don't
67972         know of any practical examples).
67973
67974         * lib/savedir.h (fdsavedir): New decl.
67975         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
67976         contains most of the former guts of savedir.
67977         (savedir): Use savedirstream.
67978         Include "openat.h".
67979
67980 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67981
67982         * modules/obstack (Files): Add m4/ulonglong.m4.
67983         Problem reported by Davide Angelocola.
67984
67985 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
67986
67987         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
67988         coreutils no longer futzes with rounding modes.
67989
67990 2005-11-14  Jim Meyering  <jim@meyering.net>
67991
67992         * lib/mkstemp-safer.c: Include <config.h>, required for possible
67993         replacement of mkstemp.
67994
67995 2005-11-10  Simon Josefsson  <jas@extundo.com>
67996
67997         * lib/readline.c: Remove EOL.
67998
67999 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68000
68001         * modules/gethrxtime (Depends-on): Add gettime.
68002
68003 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68004
68005         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
68006         or gettimeofday; no longer needed.
68007
68008 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68009
68010         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
68011         time business.
68012         (gethrxtime) [! (HAVE_NANOUPTIME
68013         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
68014         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
68015         our own approximation.
68016
68017 2005-11-08  Eric Blake  <ebb9@byu.net>
68018
68019         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68020
68021 2005-11-08  Eric Blake  <ebb9@byu.net>
68022
68023         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68024
68025 2005-11-04  Bruno Haible  <bruno@clisp.org>
68026
68027         * gnulib-tool: Implement --update mode.
68028
68029 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68030
68031         Fix porting problem reported by Theodoros V. Kalamatianos.
68032         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
68033         Don't assume that futimes failing means we must fail.
68034
68035 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68036
68037         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
68038         variables to suggest the intended function of the PATH_MAX check.
68039
68040 2005-10-30  Kean Johnston  <jkj@sco.com>
68041
68042         Trivial changes to support SCO systems.
68043         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
68044         as PATH_MAX.
68045         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
68046         where __ptr is null when no I/O is pending.
68047
68048 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68049
68050         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
68051         leave errno alone.  Problem reported by Dmitry V. Levin.
68052
68053 2005-10-28  Simon Josefsson  <jas@extundo.com>
68054
68055         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
68056         Test more.
68057
68058         * tests/test-gc-md2.c, tests/test-md2.c: New files.
68059
68060         * modules/md2, modules/md2-tests: New files.
68061
68062 2005-10-28  Simon Josefsson  <jas@extundo.com>
68063
68064         * m4/inet_ntop.m4: More tests.
68065
68066         * m4/gc-md2.m4, md2.m4: New file.
68067
68068 2005-10-28  Simon Josefsson  <jas@extundo.com>
68069
68070         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
68071         "restrict" keywords, as per POSIX.  Protect the function
68072         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
68073         Don't use K&R prototypes.  Check the sprintf return values.
68074         Re-define EAFNOSUPPORT if not present.  Indent.
68075
68076         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
68077         suggested by Bruno Haible <bruno@clisp.org>.
68078
68079         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
68080
68081         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
68082
68083         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
68084         libgcrypt).
68085
68086         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
68087
68088         * lib/md2.h, lib/md2.c: New files.
68089
68090 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
68091
68092         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
68093         errno alone.  Problem reported by Frederic Jolliton.
68094
68095 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68096
68097         * modules/verify (License): Change from GPL to LGPL.  This is a
68098         tiny module and there are apparently near-equivalents that are
68099         under the BSD license.
68100
68101 2005-10-24  Simon Josefsson  <jas@extundo.com>
68102
68103         * modules/sha1: Relicense to LGPL.
68104
68105 2005-10-24  Simon Josefsson  <jas@extundo.com>
68106
68107         * lib/md4.h: Shrink buffer size, now that we changed the type.
68108
68109 2005-10-23  Simon Josefsson  <jas@extundo.com>
68110
68111         * gnulib-tool (func_import): Fix --tests-base.
68112
68113 2005-10-22  Simon Josefsson  <jas@extundo.com>
68114
68115         * modules/arcfour (Depends-on): Need stdint.
68116
68117 2005-10-22  Simon Josefsson  <jas@extundo.com>
68118
68119         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
68120         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
68121
68122 2005-10-22  Simon Josefsson  <jas@extundo.com>
68123
68124         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
68125         suggested by Bruno Haible <bruno@clisp.org>.
68126
68127 2005-10-22  Simon Josefsson  <jas@extundo.com>
68128
68129         * lib/crc.h: Include stddef.h, for size_t.
68130
68131 2005-10-22  Simon Josefsson  <jas@extundo.com>
68132
68133         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
68134         arcfour_context struct (simplify test vector testing in GNU
68135         Shishi).
68136
68137 2005-10-21  Simon Josefsson  <jas@extundo.com>
68138
68139         * modules/des, modules/des-tests: New files.
68140
68141         * modules/gc-des, modules/gc-des-tests: New files.
68142
68143         * tests/test-des.c, tests/test-gc-des.c: New file.
68144
68145 2005-10-21  Simon Josefsson  <jas@extundo.com>
68146
68147         * modules/arctwo, modules/arctwo-tests: New files.
68148
68149         * tests/test-arctwo.c: New file.
68150
68151         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
68152
68153         * tests/test-gc-arctwo.c: New file.
68154
68155 2005-10-21  Simon Josefsson  <jas@extundo.com>
68156
68157         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
68158         Bruno Haible <bruno@clisp.org>.
68159
68160         * m4/gc-des.m4: New file.
68161
68162 2005-10-21  Simon Josefsson  <jas@extundo.com>
68163
68164         * m4/arctwo.m4: New file.
68165
68166         * m4/gc-arctwo.m4: New file.
68167
68168 2005-10-21  Simon Josefsson  <jas@extundo.com>
68169
68170         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
68171         block.
68172
68173 2005-10-21  Simon Josefsson  <jas@extundo.com>
68174
68175         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
68176         <bruno@clisp.org>.
68177
68178         * lib/hmac-sha1.c (hmac_sha1): Likewise.
68179
68180         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
68181         Bruno Haible <bruno@clisp.org>.
68182
68183         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
68184         <bruno@clisp.org>.
68185
68186 2005-10-21  Simon Josefsson  <jas@extundo.com>
68187
68188         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
68189
68190 2005-10-21  Simon Josefsson  <jas@extundo.com>
68191
68192         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
68193
68194 2005-10-21  Simon Josefsson  <jas@extundo.com>
68195
68196         * lib/des.h, lib/des.c: New files.
68197
68198         * lib/gc-gnulib.c: Support DES.c
68199
68200 2005-10-21  Simon Josefsson  <jas@extundo.com>
68201
68202         * lib/arctwo.h, lib/arctwo.c: New files.
68203
68204         * lib/gc-gnulib.c: Support ARCTWO.
68205
68206 2005-10-21  Simon Josefsson  <jas@extundo.com>
68207
68208         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
68209         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68210
68211 2005-10-21  Simon Josefsson  <jas@extundo.com>
68212
68213         * gnulib-tool (func_import, func_create_testdir): Define automake
68214         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
68215         Makefile.am snippet),
68216         suggested by Bruno Haible <bruno@clisp.org>.
68217
68218         * modules/gc (Makefile.am): Use it.
68219
68220 2005-10-21  Bruno Haible  <bruno@clisp.org>
68221
68222         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
68223         patch.
68224
68225 2005-10-19  Simon Josefsson  <jas@extundo.com>
68226
68227         * tests/test-gc-rijndael.c: New file.
68228
68229         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
68230
68231 2005-10-19  Simon Josefsson  <jas@extundo.com>
68232
68233         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
68234         interface too.
68235
68236 2005-10-19  Simon Josefsson  <jas@extundo.com>
68237
68238         * tests/test-gc-arcfour.c: New file.
68239
68240         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
68241
68242 2005-10-19  Simon Josefsson  <jas@extundo.com>
68243
68244         * modules/gc-md4, modules/gc-md4-tests: New file.
68245
68246         * tests/test-gc-md4.c: New file.
68247
68248 2005-10-19  Simon Josefsson  <jas@extundo.com>
68249
68250         * m4/gc-md4.m4: New file.
68251
68252 2005-10-19  Simon Josefsson  <jas@extundo.com>
68253
68254         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
68255         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
68256         <kasal@ucw.cz>.
68257
68258 2005-10-19  Simon Josefsson  <jas@extundo.com>
68259
68260         * m4/gc-arcfour.m4: New file.
68261
68262         * m4/gc-rijndael.m4: New file.
68263
68264 2005-10-19  Simon Josefsson  <jas@extundo.com>
68265
68266         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
68267
68268 2005-10-19  Simon Josefsson  <jas@extundo.com>
68269
68270         * lib/gc-gnulib.c: Support ARCFOUR.
68271
68272 2005-10-19  Simon Josefsson  <jas@extundo.com>
68273
68274         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
68275         support.
68276
68277         * lib/gc.h: Add ECB enum type.
68278
68279         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
68280
68281 2005-10-18  Simon Josefsson  <jas@extundo.com>
68282
68283         * tests/test-md5.c: New file.
68284
68285         * modules/md5-tests: New file.
68286
68287 2005-10-18  Simon Josefsson  <jas@extundo.com>
68288
68289         * tests/test-md4.c: New file.
68290
68291         * modules/md4, modules/md4-tests: New files.
68292
68293 2005-10-18  Simon Josefsson  <jas@extundo.com>
68294
68295         * m4/md4.m4: New file.
68296
68297 2005-10-18  Simon Josefsson  <jas@extundo.com>
68298
68299         * lib/md4.h, lib/md4.c: New files, based on md5.?.
68300
68301 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
68302
68303         * gnulib-tool (func_create_testdir): Omit the second check whether
68304         BUILT_SOURCES in nonempty.
68305
68306 2005-10-17  Simon Josefsson  <jas@extundo.com>
68307
68308         * tests/test-rijndael.c: New file.
68309
68310 2005-10-17  Simon Josefsson  <jas@extundo.com>
68311
68312         * modules/sha1: Depend on stdint instead of md5.
68313
68314         * modules/md5: Depend on stdint, remove uint32_t.
68315
68316 2005-10-17  Simon Josefsson  <jas@extundo.com>
68317
68318         * modules/gc-sha1-tests: New file.
68319
68320         * tests/test-gc-sha1.c: New file.
68321
68322 2005-10-17  Simon Josefsson  <jas@extundo.com>
68323
68324         * m4/md5.m4: Remove call to uint32_t.m4.
68325
68326 2005-10-17  Simon Josefsson  <jas@extundo.com>
68327
68328         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68329
68330         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68331         md5.h.
68332
68333         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68334
68335         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68336
68337 2005-10-17  Simon Josefsson  <jas@extundo.com>
68338
68339         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68340
68341 2005-10-17  Simon Josefsson  <jas@extundo.com>
68342
68343         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68344
68345 2005-10-17  Simon Josefsson  <jas@extundo.com>
68346
68347         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68348
68349         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68350
68351 2005-10-17  Bruno Haible  <bruno@clisp.org>
68352
68353         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68354         that it can also be used in a test.
68355
68356 2005-10-16  Bruno Haible  <bruno@clisp.org>
68357
68358         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68359         TESTS_ENVIRONMENT, so that individual tests can augment it.
68360
68361         * gnulib-tool (func_create_testdir): Use an intermediate target for
68362         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68363         macros, like $(ALLOCA_H), which cannot be passed through the command
68364         line.
68365
68366 2005-10-15  Simon Josefsson  <jas@extundo.com>
68367
68368         * modules/rijndael-tests: New file.
68369
68370         * modules/rijndael: New file.
68371
68372 2005-10-15  Simon Josefsson  <jas@extundo.com>
68373
68374         * m4/rijndael.m4: New file.
68375
68376 2005-10-15  Simon Josefsson  <jas@extundo.com>
68377
68378         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68379
68380         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68381
68382 2005-10-14  Simon Josefsson  <jas@extundo.com>
68383
68384         * tests/test-arcfour.c: New file.
68385
68386         * modules/arcfour, modules/arcfour-tests: New files.
68387
68388 2005-10-14  Simon Josefsson  <jas@extundo.com>
68389
68390         * m4/arcfour.m4: New file.
68391
68392 2005-10-14  Simon Josefsson  <jas@extundo.com>
68393
68394         * lib/arcfour.h, lib/arcfour.c: New files.
68395
68396 2005-10-14  Roland McGrath  <roland@redhat.com>
68397
68398         Import from libc.  [BZ #1331]
68399         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68400         macro argument.
68401         Reported by Matej Vela <vela@debian.org>.
68402
68403 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68404
68405         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68406         include <wchar.h>; no longer needed.
68407
68408 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68409
68410         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68411
68412 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68413         and  Ulrich Drepper  <drepper@redhat.com>
68414
68415         Import from libc.
68416         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68417         instead of inline stream orientation test and two separate
68418         function calls.  Pay no attention to USE_IN_LIBIO.
68419
68420 2005-10-13  Simon Josefsson  <jas@extundo.com>
68421
68422         * modules/gc-hmac-md5-tests: New file.
68423
68424         * tests/test-gc-hmac-sha1.c: New file.
68425
68426         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68427
68428         * modules/gc-hmac-md5-tests: New file.
68429
68430         * tests/test-gc-md5.c: New file.
68431
68432         * modules/gc-md5-tests: New file.
68433
68434 2005-10-13  Simon Josefsson  <jas@extundo.com>
68435
68436         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68437         Move memory allocation outside of loop.
68438
68439 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68440
68441         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68442         intermediate directory is in a read-only file system.  Problem
68443         reported by Eric Blake.
68444
68445 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68446
68447         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68448
68449 2005-10-12  Simon Josefsson  <jas@extundo.com>
68450
68451         * tests/test-hmac-sha1.c: New file.
68452
68453         * modules/hmac-sha1-tests: New file.
68454
68455         * modules/hmac-sha1: New file.
68456
68457 2005-10-12  Simon Josefsson  <jas@extundo.com>
68458
68459         * modules/gc-sha1: New file.
68460
68461 2005-10-12  Simon Josefsson  <jas@extundo.com>
68462
68463         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68464
68465         * tests/test-gc-pbkdf2-sha1.c: New file.
68466
68467 2005-10-12  Simon Josefsson  <jas@extundo.com>
68468
68469         * modules/gc-md5, modules/gc-hmac-md5: New files.
68470
68471         * modules/gc (Files): Remove md5, memxor and hmac files.
68472
68473 2005-10-12  Simon Josefsson  <jas@extundo.com>
68474
68475         * m4/gc-pbkdf2-sha1.m4: New file.
68476
68477         * m4/gc-hmac-sha1.m4: New file.
68478
68479         * m4/gc-sha1: New file.
68480
68481         * m4/hmac-sha1.m4: New file.
68482
68483 2005-10-12  Simon Josefsson  <jas@extundo.com>
68484
68485         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68486
68487         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68488
68489 2005-10-12  Simon Josefsson  <jas@extundo.com>
68490
68491         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68492         suggested by Bruno Haible <bruno@clisp.org>.
68493
68494 2005-10-12  Simon Josefsson  <jas@extundo.com>
68495
68496         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68497
68498 2005-10-12  Simon Josefsson  <jas@extundo.com>
68499
68500         * lib/gc-pbkdf2-sha1.c: New file.
68501
68502         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68503
68504 2005-10-12  Simon Josefsson  <jas@extundo.com>
68505
68506         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68507
68508         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68509
68510 2005-10-12  Simon Josefsson  <jas@extundo.com>
68511
68512         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68513         GC_USE_HMAC_MD5, respectively.
68514
68515         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68516         (gc_md5): Fix typo.
68517
68518         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68519
68520         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68521
68522         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68523
68524 2005-10-12  Bruno Haible  <bruno@clisp.org>
68525
68526         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
68527         Reported by Stepan Kasal <kasal@ucw.cz>.
68528
68529 2005-10-11  Simon Josefsson  <jas@extundo.com>
68530
68531         * tests/test-crc.c: New file.
68532
68533         * modules/crc, modules/crc-tests: New files.
68534
68535 2005-10-11  Simon Josefsson  <jas@extundo.com>
68536
68537         * m4/crc.m4: New file.
68538
68539 2005-10-11  Simon Josefsson  <jas@extundo.com>
68540
68541         * lib/gc.h: Add gc_hash and gc_hash_buffer.
68542
68543         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
68544
68545         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
68546
68547 2005-10-11  Simon Josefsson  <jas@extundo.com>
68548
68549         * lib/crc.h, lib/crc.c: New files.
68550
68551         * lib/gc.h (gc_hash_buffer): Add doc.
68552
68553 2005-10-11  Bruno Haible  <bruno@clisp.org>
68554
68555         * modules/c-strcasestr: New file.
68556         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
68557
68558 2005-10-11  Bruno Haible  <bruno@clisp.org>
68559
68560         * modules/c-strcase: New file.
68561         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
68562
68563 2005-10-11  Bruno Haible  <bruno@clisp.org>
68564
68565         * lib/strcasecmp.c: Include limits.h.
68566         (strcasecmp): Avoid integer overflow on exotic platforms.
68567         * lib/strncasecmp.c: Include limits.h.
68568         (strncasecmp): Avoid integer overflow on exotic platforms.
68569         Reported by Paul Eggert.
68570
68571 2005-10-11  Bruno Haible  <bruno@clisp.org>
68572
68573         * lib/c-strcasestr.h: New file, from GNU gettext.
68574         * lib/c-strcasestr.c: New file, from GNU gettext.
68575
68576 2005-10-11  Bruno Haible  <bruno@clisp.org>
68577
68578         * lib/c-strcase.h: New file, from GNU gettext.
68579         * lib/c-strcasecmp.c: New file, from GNU gettext.
68580         * lib/c-strncasecmp.c: New file, from GNU gettext.
68581
68582 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68583
68584         * modules/mempcpy (License): GPL -> LGPL.
68585         * modules/strchrnul (License): Likewise.
68586         * modules/sysexits (License): Likewise.
68587
68588 2005-10-08  Simon Josefsson  <jas@extundo.com>
68589
68590         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
68591
68592 2005-10-07  Simon Josefsson  <jas@extundo.com>
68593
68594         * m4/memxor.m4: Remove gl_C_RESTRICT call.
68595
68596 2005-10-06  Simon Josefsson  <jas@extundo.com>
68597
68598         * tests/test-hmac-md5.c: New file.
68599
68600         * modules/hmac-md5-tests: New file.
68601
68602         * modules/hmac-md5: New file.
68603
68604 2005-10-06  Simon Josefsson  <jas@extundo.com>
68605
68606         * m4/hmac-md5.m4: New file.
68607
68608         * m4/memxor.m4: Require gl_C_RESTRICT.
68609
68610 2005-10-06  Simon Josefsson  <jas@extundo.com>
68611
68612         * lib/memxor.c (memxor): Avoid casts and warnings.
68613
68614 2005-10-06  Simon Josefsson  <jas@extundo.com>
68615
68616         * lib/hmac-md5.c: New file.
68617
68618         * lib/hmac.h: New file.
68619
68620 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68621
68622         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68623         promotes to int, not unsigned int, to catch the AIX 5.3
68624         compiler bug.
68625
68626 2005-10-05  Simon Josefsson  <jas@extundo.com>
68627
68628         * modules/memxor: New file.
68629
68630         * modules/iconv (Files): Move config.rpath to havelib, it is used
68631         there.
68632
68633         * modules/havelib (Files): Add config.rpath.
68634
68635 2005-10-05  Simon Josefsson  <jas@extundo.com>
68636
68637         * m4/memxor.m4: New file.
68638
68639 2005-10-05  Simon Josefsson  <jas@extundo.com>
68640
68641         * lib/memxor.c (memxor): Fix compiler error.
68642
68643         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68644         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68645
68646         * lib/memxor.h, lib/memxor.c: New files.
68647
68648         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68649         we assume all systems have it, suggested by Jim Meyering
68650         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68651         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68652         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68653         same reasons.
68654
68655 2005-10-05  Simon Josefsson  <jas@extundo.com>
68656
68657         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68658
68659 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68660
68661         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68662         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68663         needed, since the source code now assumes these .h files.
68664
68665 2005-10-05  Derek Price  <derek@ximbiot.com>
68666
68667         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68668
68669 2005-10-05  Bruno Haible  <bruno@clisp.org>
68670
68671         * modules/stdint (License): Change to LGPL.
68672
68673 2005-10-04  Simon Josefsson  <jas@extundo.com>
68674
68675         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68676         D. Baushke" <mdb@gnu.org>.
68677
68678 2005-10-04  Bruno Haible  <bruno@clisp.org>
68679
68680         * lib/verify.h (verify_true): Provide alternative definition for C++.
68681
68682 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68683
68684         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68685         (SSIZE_MAX): New macro, if not already defined.
68686         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68687         than 2 GiB.
68688
68689 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68690
68691         Sync from coreutils.
68692         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
68693         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
68694         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
68695         ULLONG_MAX doesn't work with 2.7.2.1.
68696
68697 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68698
68699         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
68700         From Ben Pfaff.
68701
68702         * modules/exclude (Depends-on): Depend on verify.
68703         * modules/strtoimax (Depends-on): Likewise.
68704         * modules/utimecmp (Depends-on): Likewise.
68705
68706 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68707
68708         * lib/exclude.c: Include verify.h.
68709         (verify): Remove.  All callers changed to use verify.h's version.
68710         * lib/strtoimax.c: Likewise.
68711         * lib/utimecmp.c: Likewis.e
68712
68713         Sync from coreutils.
68714         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
68715         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
68716         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
68717         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
68718         bother returning ENOSYS if settimeofday or stime fails; just let
68719         them return whatever errno they want to return.
68720         * lib/utimens.c: Include unistd.h, for dup2.
68721         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
68722         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
68723
68724 2005-10-02  Jim Meyering  <jim@meyering.net>
68725
68726         Sync from coreutils.
68727         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
68728         from glibc-2.2.5 that fails for read-only files.
68729
68730 2005-10-02  Jim Meyering  <jim@meyering.net>
68731
68732         Sync from coreutils.
68733         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
68734         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
68735         `#if HAVE_CONFIG_H'.
68736         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
68737         Remove AT_FDCWD test.
68738         Do not consume the fd unless successful.
68739         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
68740         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
68741         block, so that we don't even try to compile it if settimeofday is
68742         available.  This works around a compilation failure on OSF1 V5.1,
68743         due to stime requiring a `long int*' while tv_sec is `int'.
68744
68745 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
68746
68747         Sync from coreutils.
68748         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
68749         against `yes', rather than just testing for nonempty.
68750
68751 2005-10-01  Simon Josefsson  <jas@extundo.com>
68752
68753         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
68754         and Darwin.
68755
68756         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
68757         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
68758         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
68759         freeaddrinfo and gai_strerror are declared by the POSIX headers.
68760         Check if struct addrinfo is declared.
68761
68762 2005-10-01  Simon Josefsson  <jas@extundo.com>
68763
68764         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
68765         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
68766         AI_* and EAI_* definitions.  Protect function declarations.
68767
68768 2005-10-01  Jim Meyering  <jim@meyering.net>
68769
68770         Sync from coreutils.
68771
68772         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
68773         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
68774         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
68775         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68776         in the inet and nsl libraries.  Required on Solaris 5.7.
68777
68778 2005-10-01  Jim Meyering  <jim@meyering.net>
68779
68780         Sync from coreutils.
68781         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68782         in the inet and nsl libraries.  Required on Solaris 5.7.
68783
68784 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
68785
68786         * lib/getdelim.c (getdelim): Remove unused variables.
68787
68788 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68789
68790         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
68791         so that the code works even with ancient cpp.  Portability problem
68792         with GCC 2.7.2.1 reported by Thomas M.Ott.
68793
68794 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68795
68796         * modules/regex (Depends-on): Add strcase.
68797
68798         * modules/gethostname (Licence): Change from GPL to LGPL, since
68799         gethostname.c is a trivial implementation of a standard library
68800         function.
68801         * modules/poll (License): Change from GPL to LGPL, since it's
68802         derived from LGPL code.
68803
68804 2005-09-27  Jim Meyering  <jim@meyering.net>
68805
68806         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
68807         HAVE_CONFIG_H.
68808
68809         * lib/intprops.h (signed_type_or_expr__): Define.
68810         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
68811         for unsigned types.
68812
68813 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68814
68815         * lib/verify.h (verify_expr): Remove, replacing with:
68816         (verify_true): New macro that returns true instead of void.
68817         (verify_type__): Remove.
68818         (verify): Use verify_true rather than verify_type__.
68819
68820 2005-09-26  Bruno Haible  <bruno@clisp.org>
68821
68822         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
68823         is necessary.
68824         (lib_SOURCES): Remove mbchar.c.
68825         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
68826         (Files): Add m4/mbrtowc.m4.
68827         * modules/mbiter: Likewise.
68828         * modules/mbuiter: Likewise.
68829
68830 2005-09-26  Bruno Haible  <bruno@clisp.org>
68831
68832         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
68833         compile mbchar.c if they are not both present.
68834         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
68835         * m4/mbiter.m4 (gl_MBITER): Likewise.
68836         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
68837         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
68838         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
68839
68840 2005-09-25  Jim Meyering  <jim@meyering.net>
68841
68842         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
68843         also uses socklen_t.
68844
68845 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
68846
68847         * lib/utimens.c (ENOSYS): Define if not already defined.
68848         (futimens): Support having a null PATH if the file descriptor
68849         is nonnegative.
68850
68851         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
68852         Remove.
68853         (__attribute): Define to empty unless GCC 3.1 or later.
68854         This works around a core dump on OpenBSD 3.4, which has GCC
68855         2.95.3, which dumps core when given __attribute__(()).  It also
68856         simplifies other tests, since we really don't want to bother with
68857         worrying about which ancient version of GCC supported what.
68858         Original problem reported by Yoann Vandoorselaere, with part of
68859         the fix suggested by Derek Price.
68860
68861 2005-09-24  Jim Meyering  <jim@meyering.net>
68862
68863         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
68864         so we can once again use a positive bitfield width of 1 -- now we
68865         don't have to explain why we were using a bitfield width of 2.
68866
68867 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68868
68869         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
68870         and similarly for the other external symbols.  Problem reported
68871         by James Gallager.
68872
68873         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
68874         bug reported by Jim Meyering.
68875
68876         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
68877         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
68878         not needed, since socklen is a prerequisite module.
68879
68880 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68881
68882         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
68883         Problem reported by Eric Blake.
68884         (getaddrinfo): Initialize se so that it's not garbage.
68885         Redo internal storage allocation so that it doesn't make unportable
68886         assumptions about alignment.
68887         Fix a memory leak.
68888
68889         * lib/utimens.c (futimens): Use futimesat if available.
68890         Prefer it to futimes since it doesn't have the futimes bug.
68891
68892         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
68893         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
68894         Instead, declare a function that returns a pointer to an array,
68895         and use verify_type__ to declare the size of the array.
68896         Problem and germ of a solution reported by Bruno Haible.
68897         (verify_type__): Use 2, not 1, for bitfield size, to avoid
68898         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
68899
68900 2005-09-23  Jim Meyering  <jim@meyering.net>
68901
68902         Sync from coreutils.
68903         Correct build failure (socklen_t not defined) on at least
68904         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
68905         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
68906
68907 2005-09-23  Jim Meyering  <jim@meyering.net>
68908
68909         * modules/getaddrinfo (Depends-on): Add socklen.
68910
68911 2005-09-23  Bruno Haible  <bruno@clisp.org>
68912
68913         * tests/test-verify.c: New file.
68914
68915 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68916
68917         Sync from coreutils.
68918
68919         * modules/argmatch (Depends-on): Add verify.
68920         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
68921         unistd-safer.
68922         * modules/save-cwd (Depends-on): Likewise.
68923
68924         * modules/openat (Files): Add lib/openat-die.c.
68925         (Depends-on): Remove error, exitfail.
68926         Add dirname.
68927
68928         * modules/verify: New file.
68929         * MODULES.html.sh (Diagnostics <assert.h>): New section,
68930         with "verify" module.
68931
68932 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68933
68934         Sync from coreutils.
68935
68936         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
68937         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
68938         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
68939         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
68940         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
68941         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
68942         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
68943         Don't bother checking for string.h, stdlib.h, unistd.h.
68944         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
68945         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
68946         module's job.
68947         * m4/jm-macros.m4 (gl_MACROS): Likewise.
68948         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
68949
68950         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
68951         (gl_GETDATE): Use it.
68952
68953         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
68954
68955 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68956
68957         Sync from coreutils.
68958
68959         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
68960         stat-time.h.
68961         * lib/argmatch.h: Include verify.h
68962         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
68963         (ARGMATCH_ASSERT): Remove; unused.
68964         * lib/canonicalize.c: Assume STDC_HEADERS.
68965         * lib/exclude.c: Include "strcase.h".
68966         * lib/regex_internal.h [!defined _LIBC]: Likewise.
68967         * lib/getusershell.c: Include stdio--.h rather than stdio.h
68968         and stdio-safer.h.
68969         (getusershell): Call fopen, not fopen_safer.
68970         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
68971         Do not include unistd-safer.h.
68972         (save_cwd): Don't call fd_safer; no longer needed
68973         now that we include fcntl--.h.
68974
68975         * lib/getdate.y (relative_time): New type.
68976         (RELATIVE_TIME_0): New constant.
68977         (parser_control): Use relative_time instead of doing it ourselves.
68978         (%union): Add new relative_time rel member.
68979         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
68980         Now typeless.
68981         (relunit, relunit_snumber): Now of type rel.
68982         (zone, rel, relunit, get_date): Adjust to above changes.
68983
68984         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
68985         Do not include unistd-safer.h.
68986         (getloadavg): Don't call fd_safer; no longer needed
68987         now that we include fcntl--.h.
68988
68989         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
68990         (make_dir_parents): Treat ENOSYS like EEXIST.
68991
68992         Improve quality of diagnostics on restore_cwd failure.
68993         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
68994         (make_dir_parents): Last arg is now int * (for errno), not bool *.
68995         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
68996         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
68997         each time through the loop.  Do not diagnose restore_cwd failure;
68998         that is the caller's job (and perhaps the caller does not care).
68999
69000         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
69001         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
69002         If the file already exists but is not a directory, don't bother
69003         to try to make its parents.
69004         Close potential file descriptor leak if we can't chdir("/") (!).
69005         Don't always return true if chdir($PWD) fails; return true only
69006         if the requested action was done successfully (except for the
69007         chdir($PWD)).
69008         Don't log final directory unless we actually made it.
69009         Refactor to avoid duplicate code to fix up permissions.
69010         Don't attempt to fix up parent permissions if chdir($PWD) fails.
69011
69012         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
69013         to make it a bit faster and (I hope) clearer.
69014         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
69015         Fix bug in formats like %2N.
69016
69017         * lib/verify.h: New file.
69018
69019 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69020
69021         Sync from coreutils.
69022         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
69023
69024 2005-09-22  Jim Meyering  <jim@meyering.net>
69025
69026         Sync from coreutils.
69027
69028         * m4/lstat.m4 (gl_FUNC_LSTAT):
69029         Use AC_LIBSOURCES to require lstat.c and lstat.h.
69030         Remove obsolete comment.
69031         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
69032         * m4/xstrtod.m4: Likewise.
69033
69034         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
69035
69036 2005-09-22  Jim Meyering  <jim@meyering.net>
69037
69038         Sync from coreutils.
69039
69040         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
69041
69042         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
69043         the .tm_year member, since otherwise gcc-4.0 would now warn about
69044         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
69045
69046         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
69047         order to avoid an unsuppressible warning from gcc on 64-bit systems.
69048
69049         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
69050         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
69051         when run in a time zone for which daylight savings time is in effect
69052         for the starting date.
69053
69054         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
69055         stop us from restricting permissions of just-created absolute-named
69056         directories.
69057         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
69058         to restore initial working directory.
69059         * lib/mkdir-p.c (make_dir_parents): New parameter:
69060         different_working_dir, to tell caller if/when we change the working
69061         directory and are unable to return to the initial one.
69062         * lib/mkdir-p.h (make_dir_parents): Update prototype.
69063         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
69064         `return false'.  This fixes a bug introduced on 2004-07-30.
69065
69066         * lib/openat.c (fdopendir): Be sure to close the supplied
69067         file descriptor before returning.  This makes our replacement
69068         implementation a little closer to Solaris's, where fdopendir
69069         ties the file descriptor to the returned DIR* pointer.
69070         * lib/openat.c (unlinkat): New function.
69071         * lib/openat.h (unlinkat): Add prototype.
69072         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
69073         (openat_restore_fail): Rename from openat_restore_die.
69074         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
69075
69076         Provide an alternative to exiting immediately upon save_cwd or
69077         restore_cwd failure.  Now, an application can arrange e.g.,
69078         to perform a longjump in that case.
69079         * lib/openat.c: Include dirname.h.
69080         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
69081         (rpl_openat, fdopendir, fstatat): Call openat_save_die
69082         and openat_restore_die rather than calling error directly.
69083         Don't include "error.h" or "exitfail.h"; they're no longer needed.
69084
69085         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
69086         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
69087         define.
69088
69089         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
69090         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
69091                             int utc, int nanoseconds);
69092         Background:
69093         date should not have to allocate a megabyte of virtual memory to
69094         handle a format argument like +%1048575T.  When implemented with
69095         strftime, it must allocate such a buffer, use strftime to fill it
69096         in, print it, then free it.
69097         With fprintftime, it simply prints everything and exits.
69098         With no need for memory allocation, that's one fewer way to fail.
69099         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
69100         optional field width, not before, so we accept %9:z, not %:9z.
69101         (my_strftime): Be sure to use L_('x') for literals.
69102
69103         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
69104         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
69105         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
69106         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
69107         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
69108         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
69109         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
69110         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
69111         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
69112         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
69113         * lib/xgethostname.c, lib/xreadlink.c:
69114         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
69115
69116         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
69117         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
69118         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
69119         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69120         and don't include <sys/file.h>).
69121
69122 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
69123
69124         Sync from coreutils.
69125
69126         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
69127         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
69128         [!LDAV_DONE]: Avoid unused variable warning.
69129
69130 2005-09-21  Bruno Haible  <bruno@clisp.org>
69131
69132         * lib/unicodeio.h (unicode_to_mb): New declaration.
69133
69134 2005-09-20  Derek Price  <derek@ximbiot.com>
69135
69136         * lib/getaddrinfo.c: Don't include <netdb.h> included from
69137         getaddrinfo.h.
69138
69139 2005-09-20  Bruno Haible  <bruno@clisp.org>
69140
69141         * gnulib-tool: Remove trailing slashes from the values specified for
69142         --source-base, --m4-base, --tests-base, --aux-dir.
69143         Suggested by Simon Josefsson <jas@extundo.com>.
69144
69145 2005-09-20  Bruno Haible  <bruno@clisp.org>
69146
69147         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
69148         func_modules_to_filelist, func_import, func_create_testdir): Make all
69149         sorting results locale-independent, so that gnulib-cache.m4 doesn't
69150         change when gnulib-tool is invoked in a different locale.
69151
69152 2005-09-19  Simon Josefsson  <jas@extundo.com>
69153
69154         * m4/socklen.m4: Fix typo.
69155
69156 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69157
69158         Use a consistent style for including <config.h>.
69159         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
69160         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
69161         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
69162         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
69163         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
69164         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
69165         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
69166         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
69167         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
69168         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
69169         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
69170         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
69171         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
69172         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
69173         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
69174         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
69175         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
69176         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
69177         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
69178         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
69179         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
69180         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
69181         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
69182         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
69183         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
69184         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
69185         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
69186         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
69187         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
69188         lib/xstrtoumax.c, lib/yesno.c:
69189         Standardize inclusion of config.h.
69190         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
69191         lib/inttostr.h:  Removed inclusion of config.h from header files.
69192         * lib/inttostr.c:  Adjusted in-tree users.
69193         * lib/timespec.h: Remove superfluous warning to include config.h.
69194         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
69195         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
69196         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
69197         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
69198         config.h with HAVE_CONFIG_H.
69199
69200 2005-09-19  Jim Meyering  <jim@meyering.net>
69201
69202         * modules/pathmax (License): Change to LGPL.
69203
69204 2005-09-19  Derek Price  <derek@ximbiot.com>
69205
69206         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
69207
69208 2005-09-19  Bruno Haible  <bruno@clisp.org>
69209
69210         * gnulib-tool (import): Provide default for --tests-base.
69211
69212 2005-09-19  Bruno Haible  <bruno@clisp.org>
69213
69214         * doc/quote.texi: New file, extracted from gnulib.texi.
69215         * doc/ctime.texi: New file, extracted from gnulib.texi.
69216         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
69217         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
69218         * doc/gnulib.texi: Include them.
69219
69220 2005-09-18  Bruno Haible  <bruno@clisp.org>
69221
69222         Portability fix.
69223         * gnulib-tool (func_readlink): New function.
69224         (func_ln_if_changed): Use it.
69225
69226 2005-09-18  Bruno Haible  <bruno@clisp.org>
69227
69228         * gnulib-tool: Support --with-tests also with --import.
69229         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
69230         (func_import): Use variables $testsbase and $inctests. Emit a
69231         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
69232         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
69233         SUBDIRS += $testsdir.
69234         (func_create_testdir): Update.
69235
69236 2005-09-18  Bruno Haible  <bruno@clisp.org>
69237
69238         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
69239         instead of $dry_run.
69240         (func_cp_if_changed, func_mv_if_changed): Remove functions.
69241         (func_ln_if_changed): Don't handle dry-run here.
69242         (func_import): In dry-run mode, detect more precisely which actions
69243         would be performed, and don't use "...ing" verbs.
69244
69245 2005-09-18  Bruno Haible  <bruno@clisp.org>
69246
69247         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
69248         (func_import): Use join on two temporary files instead of three nested
69249         loops, in order to determine which files are new or old.
69250
69251 2005-09-18  Bruno Haible  <bruno@clisp.org>
69252
69253         * gnulib-tool (func_import): Comment out code that spits out the
69254         new files with --dry-run.
69255
69256 2005-09-18  Bruno Haible  <bruno@clisp.org>
69257
69258         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
69259
69260 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69261
69262         * lib/stat-time.h: New file.
69263         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
69264         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
69265         in a different way.
69266         (timespec_cmp): New function.
69267         * lib/utimecmp.c: Include stat-time.h.
69268         (SYSCALL_RESOLUTION): Depend on whether various struct stat
69269         members exist, not on the obsolescent ST_MTIM_NSEC.
69270         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
69271
69272 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69273
69274         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
69275
69276 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
69277
69278         * MODULES.html.sh (File system functions): Add stat-time.
69279         * modules/stat-time: New file.
69280         * modules/timespec (Files): Remove m4/st_mtim.m4; this
69281         is now done in a different way, by the stat-time module.
69282         * modules/utimecmp (Depends-on): Add stat-time.
69283
69284 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69285
69286         * m4/st_mtim.m4: Remove.  Superseded by...
69287         * m4/stat-time.m4: New file.
69288         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
69289         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
69290
69291 2005-09-15  Derek Price  <derek@ximbiot.com>
69292
69293         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
69294
69295 2005-09-15  Derek Price  <derek@ximbiot.com>
69296
69297         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
69298         * lib/regex_internal.c: Ditto, using this...
69299         (__GNUC_PREREQ): ...new macro.
69300         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
69301         using...
69302         (__GNUC_PREREQ): ...this new macro.
69303
69304         * lib/strstr.h: Include string.h. Define strstr as a macro here.
69305
69306 2005-09-15  Derek Price  <derek@ximbiot.com>
69307             Paul Eggert  <eggert@cs.ucla.edu>
69308
69309         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69310         changes, consolidating in...
69311         * lib/regex_internal.h: ...this file.
69312
69313 2005-09-13  Jim Meyering  <jim@meyering.net>
69314
69315         * lib/canon-host.c: Filter through gnu indent and reword comments
69316         slightly.
69317         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69318
69319 2005-09-13  Derek Price  <derek@ximbiot.com>
69320
69321         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69322         failure.
69323         Reported by Jim Meyering  <jim@meyering.net>.
69324
69325 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69326
69327         * lib/base64.c: Typo.
69328         (base64_encode): Put b64str in initialized data section.
69329
69330 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69331
69332         Merge glibc and coreutils changes into gnulib, plus a few
69333         extra fixes.
69334         * lib/md5.c: Use #error rather than a string.
69335         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69336         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69337         (__attribute__): Define to empty for non recent-GCC.
69338         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69339         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69340         Renamed from their non-__ counterparts, with new macros replacing
69341         them if not _LIBC.  Add __THROW attribute.
69342         (rol): Remove.
69343         (struct md5_ctx): Align buffer if using GCC.
69344         * lib/sha1.h (struct sha1_ctx): Likewise.
69345         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69346         The old name was backwards.
69347         (NOTSWAP): Remove; not used.
69348         (rol): New macro, moved here from md5.h.
69349         (sha1_process_block): Remove a FIXME that doesn't make sense.
69350
69351 2005-09-12  Derek Price  <derek@ximbiot.com>
69352
69353         Return usable errors from canon-host.
69354         * lib/canon-host.h: New file.
69355         * lib/canon-host.c (canon_host): Wrap...
69356         (canon_host_r): ...this new function, which now relies exclusively on
69357         getaddrinfo.
69358         (ch_strerror): New function.
69359         (last_cherror): New global.
69360         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69361         interface.
69362         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69363         void *.
69364         (freeaddrinfo): Free ai->ai_canonname when set.
69365
69366 2005-09-12  Derek Price  <derek@ximbiot.com>
69367
69368         Make canon-host require getaddrinfo.
69369         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69370         AC_LIBSOURCE canon-host.h.  Call...
69371         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69372         gl_GETADDRINFO.
69373         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69374
69375 2005-09-12  Derek Price  <derek@ximbiot.com>
69376
69377         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69378         LGPL.
69379         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69380
69381 2005-09-12  Derek Price  <derek@ximbiot.com>
69382
69383         * lib/gai_strerror.c: Include config.h when available.  Include
69384         getaddrinfo.h before other headers to test interface.
69385         Reported by Larry Jones <lawrence.jones@ugs.com>.
69386
69387 2005-09-12  Derek Price  <derek@ximbiot.com>
69388             Paul Eggert  <eggert@cs.ucla.edu>
69389
69390         * modules/glob (Files): Add glob-libc.h.
69391
69392 2005-09-12  Derek Price  <derek@ximbiot.com>
69393             Paul Eggert  <eggert@cs.ucla.edu>
69394
69395         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69396         glob_.h, glob-libc.h.
69397         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69398
69399 2005-09-12  Derek Price  <derek@ximbiot.com>
69400             Paul Eggert  <eggert@cs.ucla.edu>
69401
69402         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69403         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69404         protecting things that should be done only in gnulib contexts.
69405         * lib/glob_.h: New file, containing only the glob things needed for
69406         gnulib.
69407         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69408         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69409         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69410         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69411         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69412         and to respect the namespace rules better.
69413
69414 2005-09-08  Simon Josefsson  <jas@extundo.com>
69415
69416         * modules/socklen: New file.
69417
69418 2005-09-08  Simon Josefsson  <jas@extundo.com>
69419
69420         * m4/socklen.m4: New file.
69421
69422 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69423
69424         * modules/utimens (Files): Add m4/utimbuf.m4, since
69425         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69426         Reported by Sergey Poznyakoff.
69427
69428 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69429
69430         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69431         definitions, since that's the preferred style in glibc.
69432         Fix a minor spacing issue, and update copyright notice to match
69433         glibc's.
69434
69435 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69436
69437         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69438
69439 2005-09-06  Simon Josefsson  <jas@extundo.com>
69440
69441         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69442         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69443
69444 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69445
69446         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69447         warning.
69448
69449 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69450
69451         * config/srclist.txt: Add glibc bug 1302.
69452
69453 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69454
69455         Change bitset word type from unsigned int to unsigned long int,
69456         as this has better performance on typical 64-bit hosts.
69457         Port bitset code to hosts with unusual word sizes.
69458         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69459         (build_collating_symbol):
69460         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69461         argument is a bitset.  This is merely a style issue, but it makes
69462         it clearer that an entire array is expected.
69463         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69464         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69465         Port to the case where bitset_word is not the same as unsigned int.
69466         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69467         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69468         Likewise.
69469         * lib/regexec.c (check_dst_limits_calc_pos_1,
69470         check_subexp_matching_top):
69471         (build_trtable, group_nodes_into_DFAstates):
69472         Likewise.
69473         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69474         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69475         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69476         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69477         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69478         * lib/regcomp.c (optimize_subexps, lower_subexp):
69479         Work even if bitset_word has holes in its bitwise representation.
69480         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69481         * lib/regexec.c (check_dst_limits_calc_pos_1,
69482         check_subexp_matching_top):
69483         Likewise.
69484         * lib/regex_internal.c (re_string_reconstruct):
69485         Don't assume UCHAR_MAX == 255.
69486         * lib/regex_internal.h (bitset_set_all): Likewise.
69487         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69488         All uses changed.
69489         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69490         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69491         All uses changed.
69492         (BITSET_WORD_MAX): New macro.
69493         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69494         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69495         (bitset_empty, bitset_copy):
69496         Prefer sizeof (bitset) to multiplying it out ourselves.
69497         (bitset_not_merge): Remove; unused.
69498         (bitset_contain): Return bool, not unsigned int with one bit on.
69499         All callers changed.
69500         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69501         alignment than re_node_set; do this by defining a new internal
69502         type struct dests_alloc and using it to allocate memory.
69503
69504 2005-09-05  Bruno Haible  <bruno@clisp.org>
69505
69506         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69507         links.
69508
69509 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69510
69511         * modules/size_max (Makefile.am): Add size_max.h
69512
69513 2005-09-04  Derek Price  <derek@ximbiot.com>
69514
69515         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69516
69517 2005-09-03  Simon Josefsson  <jas@extundo.com>
69518
69519         * gnulib-tool: Fix typo.
69520
69521 2005-09-03  Simon Josefsson  <jas@extundo.com>
69522
69523         * config/srclist.txt: Add glibc bug 1293.
69524
69525 2005-09-03  Derek Price  <derek@ximbiot.com>
69526
69527         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
69528         From Larry Jones <lawrence.jones@ugs.com>.
69529
69530 2005-09-02  Simon Josefsson  <jas@extundo.com>
69531
69532         * modules/socklen: New file.
69533
69534 2005-09-02  Simon Josefsson  <jas@extundo.com>
69535
69536         * modules/havelib: New module.
69537
69538         * modules/gettext, modules/iconv, modules/lock, modules/readline:
69539         Use havelib.
69540
69541 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69542
69543         Check for arithmetic overflow when calculating sizes, to prevent
69544         some buffer-overflow issues.  These patches are conservative, in the
69545         sense that when I couldn't determine whether an overflow was possible,
69546         I inserted a run-time check.
69547         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
69548         macros.
69549         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
69550         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
69551         (re_xnrealloc, re_x2nrealloc): New inline functions.
69552         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
69553         parse_bracket_exp):
69554         (build_equiv_class, build_charclass): Check for arithmetic overflow
69555         in size expression calculations.
69556         * lib/regex_internal.c (re_string_realloc_buffers):
69557         (build_wcs_upper_buffer, re_node_set_add_intersect):
69558         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
69559         (re_dfa_add_node, register_state): Likewise.
69560         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
69561         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
69562         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
69563         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
69564
69565 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69566
69567         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69568         m4/ulonglong.m4.  Problem reported by Martin Lambers.
69569
69570 2005-09-02  Bruno Haible  <bruno@clisp.org>
69571
69572         Support for lib vs. lib64 distinction on biarch platforms.
69573         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
69574         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
69575         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
69576
69577 2005-09-02  Bruno Haible  <bruno@clisp.org>
69578
69579         * gnulib-tool (import): In the other first-use case, provide defaults
69580         as well.
69581
69582 2005-09-02  Bruno Haible  <bruno@clisp.org>
69583
69584         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
69585         patches not yet found in the latest gettext release.
69586
69587 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69588
69589         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
69590         to avoid a collision with bits/local_lim.h in glibc.
69591         All uses changed.  Problem reported by Dmitry V. Levin in
69592         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
69593
69594         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
69595         bugs in int versus size_t comparisons.
69596         (re_string_context_at): Fix bug where the code assumed that
69597         Idx is signed.
69598
69599         Use bool where appropriate.
69600         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
69601         All callers changed.
69602         (calc_eclosure_iter): Likewise, for ROOT arg.
69603         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
69604         (build_charclass_op): Likewise, for NON_MATCH arg.
69605         * lib/regex_internal.c (re_string_allocate, re_string_construct):
69606         (re_string_construct_common): Likewise, for ICASE arg.
69607         * lib/regexec.c (re_search_2_stub, re_search_stub):
69608         Likewise, for RET_LEN arg.
69609         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
69610         (set_regs): Likewise, for FL_BACKTRACK arg.
69611         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
69612         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
69613         (calc_eclosure_iter, parse_bracket_exp):
69614         Use bool for internal variables that are booleans.
69615         * lib/regexec.c (re_search_internal, check_matching,
69616         proceed_next_node):
69617         (set_regs, build_sifted_states, sift_states_bkref):
69618         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69619         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69620         (find_collation_sequence_value):
69621         Likewise.
69622         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69623         (re_node_set_compare):
69624         Return bool, not int. All callers changed.
69625         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69626         (build_trtable, check_node_accept): Likewise.
69627         * lib/regex_internal.h: Include stdbool.h.
69628
69629         Fix bugs uncovered when converting to bool.
69630         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69631         failure instead of charging ahead blindly.
69632         * lib/regex_internal.c (register_state): Likewise.
69633         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69634         for freeing internal storage.
69635         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69636         bitset pieces used as boolean, to avoid undefined behavior
69637         on hosts that do int overflow checking.
69638
69639 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69640
69641         * config/srclist.txt: Add glibc bugs 1285-1287.
69642
69643 2005-09-01  Jim Meyering  <jim@meyering.net>
69644
69645         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69646         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69647         Require gl_STAT_MACROS, too.
69648
69649 2005-09-01  Bruno Haible  <bruno@clisp.org>
69650
69651         * gnulib-tool (import): In the first-use case, provide defaults.
69652
69653 2005-09-01  Bruno Haible  <bruno@clisp.org>
69654
69655         * gnulib-tool (func_import): Remove the .tmp files.
69656
69657 2005-09-01  Bruno Haible  <bruno@clisp.org>
69658
69659         * gnulib-tool (func_import): Fix handling of symbolic links.
69660
69661 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69662
69663         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69664         old glibc regex code mishandles strings longer than 2**31 bytes.
69665         This patch fixes this when the regex code is used in gnulib
69666         (i.e., outside glibc).
69667
69668         This patch should not affect the use of the regex code inside
69669         glibc.  No doubt this problem also needs to be handled for glibc
69670         as well, but the result will be an incompatible change to the
69671         glibc ABI, and the old ABI will have to be supported too.  That
69672         can be the the subject for another patch.
69673
69674         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69675         governing whether the rest of this patch is active.  By default,
69676         the macro is disabled and the patch has no effect.
69677         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69678         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69679         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69680         (re_match_2, re_set_registers): Use the new types.
69681         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69682         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69683         New macros.
69684         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69685         (re_string_context_at, bin_tree_t, re_dfastate_t):
69686         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69687         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69688         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69689         (re_string_char_size_at, re_string_wchar_at):
69690         (re_string_elem_size_at):
69691         Use the new types and macros to port to 64-bit hosts.
69692         Use unsigned types for internal values, so that the code
69693         mostly works even for arrays larger than SSIZE_MAX.
69694         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
69695         (search_duplicated_node, calc_eclosure_iter, fetch_number):
69696         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
69697         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
69698         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
69699         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
69700         (calc_inveclosure, parse_dup_op, build_range_exp):
69701         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
69702         (fetch_number, create_token_tree, mark_opt_subexp):
69703         Likewise.
69704         * lib/regex_internal.c (re_string_construct_common,
69705         create_ci_newstate):
69706         (create_cd_newstate, re_string_allocate, re_string_construct):
69707         (re_string_realloc_buffers, build_wcs_upper_buffer):
69708         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69709         (re_string_reconstruct, re_string_peek_byte_case):
69710         (re_string_fetch_byte_case, re_string_context_at):
69711         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69712         (re_node_set_init_copy, re_node_set_add_intersect):
69713         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69714         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69715         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69716         (re_acquire_state, re_acquire_state_context, register_state):
69717         Likewise.
69718         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
69719         search_cur_bkref_entry):
69720         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
69721         (re_search_internal, re_search_2_stub, re_search_stub)
69722         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
69723         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
69724         (update_cur_sifted_state, check_dst_limits):
69725         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69726         (check_subexp_limits, sift_states_bkref, merge_state_array):
69727         (check_subexp_matching_top, get_subexp, get_subexp_sub):
69728         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
69729         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69730         (expand_bkref_cache, check_node_accept_bytes):
69731         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
69732         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
69733         (acquire_init_state_context, check_halt_node_context):
69734         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
69735         (sift_states_backward, clean_state_log_if_needed):
69736         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
69737         (find_recover_state, transit_state_sb, transit_state_mb):
69738         (transit_state_bkref, build_trtable, match_ctx_clean):
69739         Likewise.
69740         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
69741         to work around an assumption that REG_MISSING is negative.
69742
69743         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
69744         (seek_collating_symbol_entry) [defined _LIBC]:
69745         (lookup_collation_sequence_value) [defined _LIBC]:
69746         (build_range_exp, build_collating_symbol) [defined _LIBC]:
69747         Use prototypes rather than old-style function definitions.
69748         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
69749         (transit_state_sb) [0]:
69750         (find_collation_sequence_value) [defined _LIBC]: Likewise.
69751
69752         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
69753         rm_eo.
69754
69755         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
69756         (optimize_subexps, lower_subexp):
69757         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
69758         since the signed shift might overflow.  Use 1u<<31 instead.
69759         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69760         Likewise.
69761         * lib/regexec.c (check_dst_limits_calc_pos_1,
69762         check_subexp_matching_top): Likewise.
69763
69764         * lib/regcomp.c (optimize_subexps, lower_subexp):
69765         Use CHAR_BIT rather than 8, for clarity.
69766         * lib/regexec.c (check_dst_limits_calc_pos_1):
69767         (check_subexp_matching_top): Likewise.
69768         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
69769         have to worry about portability issues when shifting it left.
69770         Remove no-longer-needed test for table_size > 0.
69771         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
69772         in a word, as the resulting behavior is undefined.
69773         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
69774         in one case, a <= should have been an <, and in another case the
69775         whole test was missing.
69776         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
69777         the standard name CHAR_BIT.
69778         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
69779         this is not true on one's complement and signed-magnitude hosts.
69780
69781         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
69782         next_last_offset.
69783         (struct re_dfa_t): Remove unused member states_alloc.
69784         * lib/regcomp.c (init_dfa): Don't initialize unused members.
69785
69786 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69787
69788         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
69789         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
69790         and large-file glibc and in 32-bit large-file Solaris.
69791
69792 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69793
69794         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
69795         lengths fit in regoff_t; this isn't true if regoff_t is the same
69796         width as size_t.
69797         * lib/regex.c (re_search_internal): 5th arg is LAST_START
69798         (= START + RANGE) instead of RANGE.  This avoids overflow
69799         problems when regoff_t is the same width as size_t.
69800         All callers changed.
69801         (re_search_2_stub): Check for overflow when adding the
69802         sizes of the two strings.
69803         (re_search_stub): Check for overflow when adding START
69804         to RANGE; if it occurs, substitute the extreme value.
69805
69806 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69807
69808         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
69809
69810 2005-08-31  Jim Meyering  <jim@meyering.net>
69811
69812         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
69813         a pointer-to-const.
69814         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
69815         (register_state): Likewise.
69816         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
69817         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69818         (group_nodes_into_DFAstates): Likewise.
69819
69820 2005-08-31  Jim Meyering  <jim@meyering.net>
69821
69822         * check-module: Add a FIXME comment.
69823
69824 2005-08-31  Eric Blake  <ebb9@byu.net>
69825
69826         * modules/unistd-safer (Files): Add unistd--.h.
69827         * modules/stdio-safer (Files): Add stdio--.h.
69828
69829 2005-08-31  Derek Price  <derek@ximbiot.com>
69830
69831         * lib/getdelim.c (getdelim): Return EOF on EOF.
69832         Reported by Larry Jones <lawrence.jones@ugs.com>.
69833
69834 2005-08-31  Bruno Haible  <bruno@clisp.org>
69835
69836         Avoid unnecessary diffs in the generated lib/Makefile.am.
69837         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
69838         the generated files.
69839         (func_import): Don't set cmd.
69840
69841 2005-08-31  Bruno Haible  <bruno@clisp.org>
69842
69843         * lib/strstr.c: Include <stddef.h>, for NULL.
69844         * lib/strcasestr.c: Likewise.
69845         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69846
69847 2005-08-31  Bruno Haible  <bruno@clisp.org>
69848
69849         * gnulib-tool: New option --macro-prefix.
69850         (func_import): Use macro_prefix.
69851         (import): Handle option --macro-prefix.
69852
69853 2005-08-31  Bruno Haible  <bruno@clisp.org>
69854
69855         * gnulib-tool (import): Rename most ac_* variables to cached_*.
69856         Also use new variables cached_lgpl, cached_libtool.
69857
69858 2005-08-31  Bruno Haible  <bruno@clisp.org>
69859
69860         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
69861         always instantiating them.
69862
69863 2005-08-31  Bruno Haible  <bruno@clisp.org>
69864
69865         * gnulib-tool (func_import): Read the previous cached settings
69866         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
69867         earlier added by gnulib but are now dropped. Warn when a gnulib file
69868         overwrites a non-gnulib file.
69869
69870 2005-08-31  Bruno Haible  <bruno@clisp.org>
69871
69872         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
69873         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
69874         projects that don't keep autogenerated files in CVS. Put into
69875         actioncmd only the specified modules, not the transitive closure.
69876
69877 2005-08-31  Bruno Haible  <bruno@clisp.org>
69878
69879         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
69880         Create directories that shall be filled.
69881         (import): Don't look for gl_* macros in configure.ac. Recurse across
69882         all directories containing a gnulib-cache.m4 files, if meaningful.
69883
69884 2005-08-31  Bruno Haible  <bruno@clisp.org>
69885
69886         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
69887         (import): Set seen_libtool when we see gl_LIBTOOL.
69888
69889 2005-08-31  Bruno Haible  <bruno@clisp.org>
69890
69891         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
69892         declaration macro definitions from generated gnulib.m4.
69893
69894 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
69895
69896         * lib/iconvme.h: Add prototype for iconv_alloc.
69897
69898 2005-08-29  Simon Josefsson  <jas@extundo.com>
69899
69900         * lib/iconvme.c: Fix errno.
69901
69902 2005-08-29  Bruno Haible  <bruno@clisp.org>
69903
69904         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
69905         that it works when the directory contains spaces.
69906
69907 2005-08-29  Bruno Haible  <bruno@clisp.org>
69908
69909         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
69910
69911 2005-08-29  Bruno Haible  <bruno@clisp.org>
69912
69913         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
69914         Emit more advice.
69915
69916 2005-08-29  Bruno Haible  <bruno@clisp.org>
69917         and Stepan Kasal  <kasal@ucw.cz>
69918
69919         * check-module: If more parameters are given, check each of them
69920         separately; add more exceptions, as noted by Jim Meyering.
69921         (check_module): New procedure.
69922         (%exempt_header): Now contains all exceptions.
69923
69924 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
69925
69926         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
69927
69928 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69929
69930         * lib/iconvme.c: Split iconv_string into iconv_alloc.
69931
69932 2005-08-28  Bruno Haible  <bruno@clisp.org>
69933
69934         * m4/gnulib-tool.m4: New file.
69935
69936 2005-08-27  Jim Meyering  <jim@meyering.net>
69937
69938         * modules/unistd-safer (Files): Add pipe-safer.c.
69939         * modules/fcntl-safer (Files): Add creat-safer.c.
69940
69941 2005-08-27  Jim Meyering  <jim@meyering.net>
69942
69943         * m4/stdlib-safer.m4: New file.  From coreutils.
69944         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
69945         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
69946         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
69947         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
69948         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
69949
69950 2005-08-27  Jim Meyering  <jim@meyering.net>
69951
69952         * lib/fopen-safer.c: Merge minor changes from coreutils.
69953         * lib/dup-safer.c: Likewise.
69954         * lib/fd-safer.c: Likewise.
69955
69956         Merge from coreutils.
69957         * lib/stdio--.h: New file.
69958         * lib/stdlib--.h: New file.
69959         * lib/mkstemp-safer.c: New file.
69960
69961         GNU tar needs these.
69962         * lib/pipe-safer.c: New file.
69963         * lib/creat-safer.c: New file.
69964         * lib/fcntl--.h (creat): Define to creat_safer.
69965         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
69966         * lib/unistd--.h (pipe): Define to pipe_safer.
69967         * lib/unistd-safer.h: Declare pipe_safer.
69968
69969 2005-08-26  Simon Josefsson  <jas@extundo.com>
69970
69971         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
69972         Haible <bruno@clisp.org>.
69973
69974 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
69975
69976         * lib/regex_internal.h: Remove all references to
69977         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
69978         or better.
69979         (bitset_not, bitset_merge, bitset_not_merge):
69980         (bitset_mask, re_string_allocate, re_string_construct):
69981         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
69982         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
69983         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
69984         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
69985         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69986         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69987         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
69988         (re_acquire_state_context):
69989         Remove unnecessary forward decls.
69990         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
69991         Put __attribute at function definition,
69992         now that the function decl has been removed.
69993         * lib/regex_internal.c (re_string_peek_byte_case):
69994         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
69995         Likewise.
69996
69997 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
69998
69999         * m4/regex.m4: Add AC_PREREQ(2.50).
70000         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
70001
70002 2005-08-25  Simon Josefsson  <jas@extundo.com>
70003
70004         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
70005         __fsetlocking.
70006
70007 2005-08-25  Simon Josefsson  <jas@extundo.com>
70008
70009         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
70010         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
70011         GLIBC specific code.
70012
70013 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70014
70015         Make regex safe for g++.  This fixes one real bug (an "err"
70016         that should have been "*err").  g++ problem reported by
70017         Sam Steingold.
70018         * lib/regex_internal.h (re_calloc): New macro, consistent with
70019         re_malloc etc.  All callers of calloc changed to use re_calloc.
70020         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
70021         not int.  All callers changed.
70022         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
70023         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
70024         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
70025         (find_recover_state): Change "err" to "*err"; this fixes what
70026         appears to be a real bug.
70027         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
70028         versus int.
70029
70030 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70031
70032         * modules/regex (Depends-on): Add malloc, since the code
70033         assumes that !malloc(0) means failure.
70034
70035 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70036
70037         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
70038
70039         alloca modernization/simplification for regex.
70040         * lib/regex.c: Remove portability cruft for alloca.  This no longer
70041         needs to be at the start of the file, and can be moved into
70042         regex_internal.h and simplified.
70043         * lib/regex_internal.h: Include <alloca.h>.
70044         (__libc_use_alloca) [!defined _LIBC]: New macro.
70045         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
70046         now works outside glibc.
70047
70048 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70049
70050         * config/srclist.txt: Add glibc bugs 1241, 1245.
70051
70052 2005-08-25  Jim Meyering  <jim@meyering.net>
70053
70054         * lib/open-safer.c: Include <config.h>.
70055         Otherwise, we'd lose LARGEFILE support in any file using
70056         e.g. "fcntl--.h"
70057
70058 2005-08-25  Bruno Haible  <bruno@clisp.org>
70059
70060         * m4/minmax.m4: Require autoconf 2.52.
70061         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
70062         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
70063         alternatives of translit over the alphabet.
70064         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
70065
70066 2005-08-24  Simon Josefsson  <jas@extundo.com>
70067
70068         * tests/test-getpass.c: New file.
70069
70070 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70071
70072         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
70073         for GNU regex features.
70074
70075 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70076
70077         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
70078         * lib/regex.h (regerror): Likewise.
70079
70080         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
70081         requires this.  (The code never needed it.)
70082
70083         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
70084         All uses of recently-renamed identifiers changed to use the new,
70085         POSIX-compliant names.  The code will build and run just fine
70086         without these changes, but it's better to eat our own dog food
70087         and use the standard-conforming names.
70088
70089         * lib/regex.h: Fix a multitude of POSIX name space violations.
70090         These changes have an effect only for programs that define
70091         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
70092         do not change anything for programs compiled in the normal way.
70093         Also, there is no effect on the ABI.
70094
70095         (_REGEX_SOURCE): New macro.
70096         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
70097         defined and _GNU_SOURCE is not; this fixes a name space violation.
70098
70099         Rename the following macros to obey POSIX requirements.
70100         The old names are still visible as macros if _REGEX_SOURCE is defined.
70101         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
70102         RE_BACKSLASH_ESCAPE_IN_LISTS.
70103         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
70104         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
70105         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
70106         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
70107         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
70108         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
70109         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
70110         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
70111         (REG_INTERVALS): renamed from RE_INTERVALS.
70112         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
70113         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
70114         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
70115         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
70116         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
70117         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
70118         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
70119         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
70120         RE_UNMATCHED_RIGHT_PAREN_ORD.
70121         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
70122         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
70123         (REG_DEBUG): renamed from RE_DEBUG.
70124         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
70125         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
70126         unusual, since we can't clash with the POSIX REG_ICASE.
70127         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
70128         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
70129         (REG_NO_SUB): renamed from RE_NO_SUB.
70130         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
70131         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
70132         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
70133         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
70134         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
70135         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
70136         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
70137         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
70138         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
70139         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
70140         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
70141         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
70142         RE_SYNTAX_POSIX_MINIMAL_BASIC.
70143         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
70144         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
70145         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
70146         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
70147         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
70148         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
70149         (REG_FIXED): Renamed from REGS_FIXED.
70150         (REG_NREGS): Renamed from RE_NREGS.
70151
70152         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
70153         of other REG_* macros, since POSIX says the user is allowed to
70154         #undef these macros selectively.
70155
70156         (reg_errcode_t): Update comment stating what other tables need
70157         to be consistent.
70158
70159         Rename the following enum values to obey POSIX requirements.
70160         The old names are still visible as macros.
70161         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
70162         is not defined, since GNU is supposed to be a superset of POSIX as
70163         much as possible, and since we want reg_errcode_t to be a signed
70164         type for implementation consistency.
70165         (_REG_NOERROR): Renamed from REG_NOERROR.
70166         (_REG_NOMATCH): Renamed from REG_NOMATCH.
70167         (_REG_BADPAT): Renamed from REG_BADPAT.
70168         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
70169         (_REG_ECTYPE): Renamed from REG_ECTYPE.
70170         (_REG_EESCAPE): Renamed from REG_EESCAPE.
70171         (_REG_ESUBREG): Renamed from REG_ESUBREG.
70172         (_REG_EBRACK): Renamed from REG_EBRACK.
70173         (_REG_EPAREN): Renamed from REG_EPAREN.
70174         (_REG_EBRACE): Renamed from REG_EBRACE.
70175         (_REG_BADBR): Renamed from REG_BADBR.
70176         (_REG_ERANGE): Renamed from REG_ERANGE.
70177         (_REG_ESPACE): Renamed from REG_ESPACE.
70178         (_REG_BADRPT): Renamed from REG_BADRPT.
70179         (_REG_EEND): Renamed from REG_EEND.
70180         (_REG_ESIZE): Renamed from REG_ESIZE.
70181         (_REG_ERPAREN): Renamed from REG_ERPAREN.
70182         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
70183         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
70184         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
70185         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
70186
70187         (_REG_RE_NAME, _REG_RM_NAME): New macros.
70188         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
70189         changed.  But support the old name if the new one is not defined
70190         and if _REGEX_SOURCE.
70191
70192         Change the following member names in struct re_pattern_buffer.
70193         The old names are still supported if !_REGEX_SOURCE.
70194         The new names are always supported, regardless of _REGEX_SOURCE.
70195         (re_buffer): Renamed from buffer.
70196         (re_allocated): Renamed from allocated.
70197         (re_used): Renamed from used.
70198         (re_syntax): Renamed from syntax.
70199         (re_fastmap): Renamed from fastmap.
70200         (re_translate): Renamed from translate.
70201         (re_can_be_null): Renamed from can_be_null.
70202         (re_regs_allocated): Renamed from regs_allocated.
70203         (re_fastmap_accurate): Renamed from fastmap_accurate.
70204         (re_no_sub): Renamed from no_sub.
70205         (re_not_bol): Renamed from not_bol.
70206         (re_not_eol): Renamed from not_eol.
70207         (re_newline_anchor): Renamed from newline_anchor.
70208
70209         Change the following member names in struct re_registers.
70210         The old names are still supported if !_REGEX_SOURCE.
70211         The new names are always supported, regardless of _REGEX_SOURCE.
70212         (rm_num_regs): Renamed from num_regs.
70213         (rm_start): Renamed from start.
70214         (rm_end): Renamed from end.
70215
70216         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
70217         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
70218         Prepend __ to parameter names.
70219
70220         Undo yesterday's changes.
70221
70222 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70223
70224         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
70225         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
70226         lib/regex.c.
70227
70228 2005-08-24  Jim Meyering  <jim@meyering.net>
70229
70230         Sync from coreutils.
70231         * m4/fcntl-safer.m4: New file.
70232
70233         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
70234         and object files for this module.
70235
70236 2005-08-24  Jim Meyering  <jim@meyering.net>
70237
70238         Sync from coreutils.
70239         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
70240
70241 2005-08-24  Jim Meyering  <jim@meyering.net>
70242
70243         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
70244         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
70245
70246 2005-08-24  Jim Meyering  <jim@meyering.net>
70247
70248         * modules/fcntl-safer: New module.
70249         * modules/fts (Depends-on): Add fcntl-safer.
70250         * MODULES.html.sh (File descriptor based Input/Output):
70251         Add fcntl-safer.
70252
70253 2005-08-24  Bruno Haible  <bruno@clisp.org>
70254
70255         Support for unit test modules.
70256         * modules/README: Mention tests modules.
70257         * modules/TEMPLATE-TESTS: New file.
70258         * gnulib-tool: New options --extract-tests-module, --with-tests and
70259         --tests-base (unused for the moment).
70260         (testsbase, inctests): New variables.
70261         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
70262         (func_verify_module): Exclude TEMPLATE-TESTS.
70263         (func_verify_nontests_module, func_verify_tests_module): New functions.
70264         (func_get_dependencies): Add implicit dependency for tests modules.
70265         (func_get_tests_module): New function.
70266         (func_modules_transitive_closure): When --with-tests was specified,
70267         include the unit tests as well, unless explicitly avoided.
70268         (func_emit_lib_Makefile_am): Ignore the tests modules here.
70269         (func_emit_tests_Makefile_am): New function.
70270         (func_create_testdir): When --with-tests was specified, emit a
70271         tests/ directory.
70272         * MODULES.html.sh (Future developments): Update.
70273
70274 2005-08-24  Bruno Haible  <bruno@clisp.org>
70275
70276         * modules/tls-tests: New file.
70277         * tests/test-tls.c: New file, from GNU gettext.
70278
70279 2005-08-24  Bruno Haible  <bruno@clisp.org>
70280
70281         * modules/lock-tests: New file.
70282         * tests/test-lock.c: New file, from GNU gettext.
70283
70284 2005-08-24  Bruno Haible  <bruno@clisp.org>
70285
70286         * lib/lock.h: Add multiple inclusion guard.
70287         * lib/tls.h: Add multiple inclusion guard.
70288
70289 2005-08-24  Bruno Haible  <bruno@clisp.org>
70290
70291         * gnulib-tool: Add support for the --aux-dir option to
70292         --create-testdir, --create-megatestdir, --test, --megatest.
70293         (func_create_testdir, func_create_megatestdir): Optionally emit a
70294         AC_CONFIG_AUX_DIR directive.
70295         (create-testdir, create-megatestdir, test, megatest): Provide a
70296         default value for $auxdir.
70297
70298 2005-08-24  Bruno Haible  <bruno@clisp.org>
70299
70300         * gnulib-tool (import): Use compound statement instead of subshell
70301         where possible.
70302
70303 2005-08-24  Bruno Haible  <bruno@clisp.org>
70304
70305         * gnulib-tool (import): Change --aux-dir default to "build-aux".
70306
70307 2005-08-24  Bruno Haible  <bruno@clisp.org>
70308
70309         * gnulib-tool (func_version): Update.
70310
70311 2005-08-24  Bruno Haible  <bruno@clisp.org>
70312
70313         * gnulib-tool (func_import, func_create_testdir,
70314         func_create_megatestdir): Quote all autoconf macro arguments.
70315
70316 2005-08-24  Bruno Haible  <bruno@clisp.org>
70317
70318         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70319         option --force, because --force causes the aclocal.m4 of each
70320         subdirectory to be newer than the corresponding config.h.in.
70321
70322 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70323
70324         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70325         All contents moved to gl_REGEX.
70326         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70327         assume that it does.
70328
70329 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70330
70331         * lib/regex.h (REG_NOSYS)
70332         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70333         Define, since POSIX requires it as of 2001.
70334         (_REG_ENOSYS)
70335         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70336         New private symbol, used to keep the enum signed in all cases.
70337         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70338         Youngman in
70339         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70340
70341         * lib/regex_internal.c (re_string_skip_chars, register_state):
70342         (calc_state_hash):
70343         Remove forward decls; no longer needed now that we use prototypes.
70344         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70345         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70346         (clean_state_log_if_needed): Likewise.
70347
70348 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70349
70350         * config/srclist.txt: Add glibc bugs 1231-1233.
70351
70352 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70353
70354         Fix problems reported by Sam Steingold in
70355         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70356         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70357         assumed that reg_errcode_t is a signed type, which is not
70358         necessarily true if _XOPEN_SOURCE is not defined.
70359         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70360         since some compilers warn about it otherwise.
70361
70362 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70363
70364         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70365         (init_word_char, create_initial_state, duplicate_node_closure):
70366         (fetch_token, peek_token_bracket, build_range_exp):
70367         (build_collating_symbol): Remove forward decls; no longer needed
70368         now that we use prototypes.
70369
70370         * lib/regcomp.c:
70371         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70372         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70373         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70374         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70375         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70376         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70377         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70378         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70379         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70380         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70381         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70382         (build_charclass, build_charclass_op, fetch_number, create_tree):
70383         (create_token_tree, mark_opt_subexp, duplicate_tree):
70384         Use prototypes rather than old-style definitions.
70385
70386         * lib/regex_internal.c:
70387         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70388         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70389         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70390         (re_string_reconstruct, re_string_peek_byte_case):
70391         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70392         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70393         (re_node_set_init_copy, re_node_set_add_intersect):
70394         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70395         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70396         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70397         (re_acquire_state, re_acquire_state_context, register_state):
70398         (create_ci_newstate, create_cd_newstate, free_state):
70399         Likewise.
70400         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70401         re_search_2):
70402         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70403         (re_search_internal, prune_impossible_nodes):
70404         (acquire_init_state_context, check_matching, static):
70405         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70406         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70407         (update_regs, sift_states_backward, build_sifted_states):
70408         (clean_state_log_if_needed, merge_state_array):
70409         (update_cur_sifted_state, add_epsilon_src_nodes):
70410         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70411         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70412         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70413         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70414         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70415         (check_arrival, check_arrival_add_next_nodes):
70416         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70417         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70418         (check_node_accept_bytes, check_node_accept, extend_buffers):
70419         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70420         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70421         (sift_ctx_init):
70422         Likewise.
70423
70424         * lib/regex_internal.h:
70425         (re_string_allocate, re_string_construct, re_string_reconstruct):
70426         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70427         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70428         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70429         (re_string_context_at, re_string_peek_byte_case):
70430         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70431         is defined, since we now use prototypes always.
70432
70433         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70434         C89 or better.  All uses removed.
70435
70436 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70437
70438         * config/srclist.txt: Add glibc bugs 1220-1227.
70439
70440 2005-08-20  Jim Meyering  <jim@meyering.net>
70441
70442         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70443         of unused local, dfa.
70444
70445 2005-08-20  Bruno Haible  <bruno@clisp.org>
70446
70447         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70448
70449 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70450
70451         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70452         (re_node_set_insert_last, re_dfa_add_node):
70453         Rename local variables to avoid GCC shadowing warnings.
70454
70455 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70456
70457         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70458         [defined lint]: Suppress bogus uninitialized-variable warnings.
70459
70460         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70461         and let the caller return REG_ESPACE if out of space.  This
70462         removes an uninitialied-variable warning with GCC 4.0.1, and also
70463         avoids taking the address of a local variable.  All callers
70464         changed.
70465
70466 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70467
70468         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70469         $LIBCSRC/posix/regexec.c.
70470         Add glibc bug 1217 for regcomp.c.
70471
70472 2005-08-19  Jim Meyering  <jim@meyering.net>
70473
70474         * lib/regexec.c (proceed_next_node): Redo local variables to
70475         avoid GCC shadowing warnings.
70476
70477 2005-08-18  Bruno Haible  <bruno@clisp.org>
70478
70479         * lib/strstr.c (strstr): Fix return value in multibyte case.
70480         * lib/strcasestr.c (strcasestr): Likewise.
70481
70482 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70483
70484         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70485
70486 2005-08-17  Jim Meyering  <jim@meyering.net>
70487
70488         Make the %s format (seconds since the epoch) work for a negative
70489         number and when used with a zero-padded field width, e.g. %015s.
70490
70491         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70492         label so that it precedes the code to set `digits'.  Otherwise,
70493         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70494         print `00-22'.  Now, it prints `-0022', as it should.
70495
70496 2005-08-17  Bruno Haible  <bruno@clisp.org>
70497
70498         * modules/strstr (Files): Add m4/mbrtowc.m4.
70499         (Depends-on): Add mbuiter.
70500
70501 2005-08-17  Bruno Haible  <bruno@clisp.org>
70502
70503         * modules/strcasestr: New file.
70504         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70505         strcasestr.
70506
70507 2005-08-17  Bruno Haible  <bruno@clisp.org>
70508
70509         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70510
70511 2005-08-17  Bruno Haible  <bruno@clisp.org>
70512
70513         * modules/mbuiter: New file.
70514         * MODULES.html.sh (Extended multibyte and wide character utilities):
70515         Add mbuiter.
70516
70517 2005-08-17  Bruno Haible  <bruno@clisp.org>
70518
70519         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70520         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70521
70522 2005-08-17  Bruno Haible  <bruno@clisp.org>
70523
70524         * m4/strcasestr.m4: New file.
70525
70526 2005-08-17  Bruno Haible  <bruno@clisp.org>
70527
70528         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
70529         * lib/strstr.c: Completely rewritten, with multibyte locale support.
70530
70531 2005-08-17  Bruno Haible  <bruno@clisp.org>
70532
70533         * lib/strcasestr.h: New file.
70534         * lib/strcasestr.c: New file.
70535
70536 2005-08-17  Bruno Haible  <bruno@clisp.org>
70537
70538         * lib/strcasecmp.c: Use mbuiter.h.
70539
70540 2005-08-17  Bruno Haible  <bruno@clisp.org>
70541
70542         * lib/mbuiter.h: New file.
70543
70544 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70545
70546         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
70547         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
70548         and gl_GETOPT are both invoked via different paths (as happens
70549         with GNU tar CVS because it uses both argp and getopt), the former
70550         wins.
70551
70552 2005-08-16  Bruno Haible  <bruno@clisp.org>
70553
70554         * modules/tls: New file.
70555         * MODULES.html.sh (Multithreading): Add tls.
70556
70557 2005-08-16  Bruno Haible  <bruno@clisp.org>
70558
70559         * modules/strnlen1: New file.
70560         * MODULES.html.sh (String handling): Add strnlen1.
70561
70562 2005-08-16  Bruno Haible  <bruno@clisp.org>
70563
70564         * modules/strcase (Files): Add m4/mbrtowc.m4.
70565         (Depends-on): Add strnlen1, mbchar.
70566
70567 2005-08-16  Bruno Haible  <bruno@clisp.org>
70568
70569         * modules/mbiter: New file.
70570         * MODULES.html.sh (Extended multibyte and wide character utilities):
70571         Add mbiter.
70572
70573 2005-08-16  Bruno Haible  <bruno@clisp.org>
70574
70575         * modules/mbfile: New file.
70576         * MODULES.html.sh (Extended multibyte and wide character utilities):
70577         Add mbfile.
70578
70579 2005-08-16  Bruno Haible  <bruno@clisp.org>
70580
70581         * modules/mbchar: New file.
70582         * MODULES.html.sh (Extended multibyte and wide character utilities):
70583         New section.
70584
70585 2005-08-16  Bruno Haible  <bruno@clisp.org>
70586
70587         * m4/tls.m4: New file, from GNU gettext.
70588
70589 2005-08-16  Bruno Haible  <bruno@clisp.org>
70590
70591         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
70592         always.
70593         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
70594
70595 2005-08-16  Bruno Haible  <bruno@clisp.org>
70596
70597         * m4/mbiter.m4: New file.
70598
70599 2005-08-16  Bruno Haible  <bruno@clisp.org>
70600
70601         * m4/mbfile.m4: New file.
70602
70603 2005-08-16  Bruno Haible  <bruno@clisp.org>
70604
70605         * m4/mbchar.m4: New file.
70606
70607 2005-08-16  Bruno Haible  <bruno@clisp.org>
70608
70609         * lib/tls.h: New file, from GNU gettext.
70610         * lib/tls.c: New file, from GNU gettext.
70611
70612 2005-08-16  Bruno Haible  <bruno@clisp.org>
70613
70614         * lib/strnlen1.h: New file.
70615         * lib/strnlen1.c: New file.
70616
70617 2005-08-16  Bruno Haible  <bruno@clisp.org>
70618
70619         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70620         (mbi_init): Update.
70621         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70622         NUL byte, not after it.
70623
70624 2005-08-16  Bruno Haible  <bruno@clisp.org>
70625
70626         * lib/strcase.h (strcasecmp): Add note in comments.
70627         * lib/strncasecmp.c: Use code from strcasecmp.c.
70628         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70629         (strcasecmp): Work correctly in multibyte locales.
70630
70631 2005-08-16  Bruno Haible  <bruno@clisp.org>
70632
70633         * lib/mbiter.h: New file.
70634
70635 2005-08-16  Bruno Haible  <bruno@clisp.org>
70636
70637         * lib/mbfile.h: New file.
70638
70639 2005-08-16  Bruno Haible  <bruno@clisp.org>
70640
70641         * lib/mbchar.h: New file.
70642         * lib/mbchar.c: New file.
70643
70644 2005-08-16  Bruno Haible  <bruno@clisp.org>
70645
70646         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70647         the valid ones. Makes the comparison operations transitive:
70648         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70649         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70650
70651 2005-08-15  Simon Josefsson  <jas@extundo.com>
70652
70653         * modules/ssize_t (License): Change to 'unlimited'.
70654
70655         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70656
70657 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70658
70659         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70660         Add comments for each pending glibc patch.
70661
70662 2005-08-15  Bruno Haible  <bruno@clisp.org>
70663
70664         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70665         __cplusplus is defined.
70666
70667 2005-08-14  Jim Meyering  <jim@meyering.net>
70668
70669         Sync from coreutils.
70670
70671         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70672         Use the hash-table-based cycle-detection code not just when
70673         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70674         Reported by James Youngman in
70675         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70676         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70677         FTS_TIGHT_CYCLE_CHECK.
70678         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70679         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70680         once again.
70681         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70682         * lib/fts.c (fd_safer): Remove decl.
70683         Include fcntl--.h rather than unistd-safer.h
70684         (fts_safe_changedir): Don't call fd_safer; no longer needed
70685         now that we include fcntl--.h.
70686
70687 2005-08-12  Simon Josefsson  <jas@extundo.com>
70688
70689         * modules/getndelim2: Use ssize_t module.
70690         * modules/getnline: Likewise.
70691         * modules/safe-read: Likewise.
70692         * modules/xreadlink: Likewise.
70693
70694         * modules/ssize_t: New file.
70695
70696 2005-08-12  Simon Josefsson  <jas@extundo.com>
70697
70698         * m4/readline.m4: Look for termcap, curses or ncurses if required.
70699
70700 2005-08-12  Simon Josefsson  <jas@extundo.com>
70701
70702         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70703         ssize_t.
70704
70705 2005-08-12  Simon Josefsson  <jas@extundo.com>
70706
70707         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
70708         readline, getdelim and check_version.
70709         (Support for systems lacking ISO C 99: Sizes of integer types):
70710         Add size_max.
70711
70712 2005-08-12  Bruno Haible  <bruno@clisp.org>
70713
70714         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
70715
70716 2005-08-11  Simon Josefsson  <jas@extundo.com>
70717
70718         * modules/readline: New file.
70719
70720         * modules/strnlen (Files): Add strnlen.h.
70721
70722 2005-08-11  Simon Josefsson  <jas@extundo.com>
70723
70724         * m4/readline.m4: New file.
70725
70726 2005-08-11  Simon Josefsson  <jas@extundo.com>
70727
70728         * lib/readline.h, readline.c: New file.
70729
70730 2005-08-11  Simon Josefsson  <jas@extundo.com>
70731
70732         * doc/gnulib.texi (Initial import, Finishing touches): Mention
70733         gl_AVOID.
70734
70735 2005-08-11  Bruno Haible  <bruno@clisp.org>
70736
70737         * lib/strnlen.h (strnlen): Change parameter name to match comment.
70738
70739 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
70740
70741         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
70742
70743 2005-08-10  Simon Josefsson  <jas@extundo.com>
70744
70745         * tests/test-iconvme.c: New file.
70746
70747 2005-08-10  Simon Josefsson  <jas@extundo.com>
70748
70749         * m4/strnlen.m4: New file.
70750
70751         * m4/strndup.m4: Don't check for strnlen declaration, done in
70752         strnlen.m4.
70753
70754 2005-08-10  Simon Josefsson  <jas@extundo.com>
70755
70756         * lib/strndup.c: Use strnlen.h.
70757
70758         * lib/strnlen.h: New file.
70759
70760 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70761
70762         * README: Typos.
70763
70764 2005-08-02  Simon Josefsson  <jas@extundo.com>
70765
70766         * modules/readline: New file.
70767
70768 2005-08-02  Simon Josefsson  <jas@extundo.com>
70769
70770         * modules/getdelim: New file.
70771
70772         * modules/getline: Rewrite, don't use getndelim2.
70773
70774 2005-08-02  Simon Josefsson  <jas@extundo.com>
70775
70776         * m4/getline.m4: Separate out getdelim stuff into separate module.
70777
70778         * m4/getdelim.m4: New file.
70779
70780 2005-08-02  Simon Josefsson  <jas@extundo.com>
70781
70782         * lib/getline.h, getline.c: Rewrite.
70783
70784         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
70785
70786 2005-07-31  Bruno Haible  <bruno@clisp.org>
70787
70788         * lib/lock.h (gl_lock_initializer): New macro.
70789         (gl_lock_define_initialized): Use it.
70790         (gl_rwlock_initializer): New macro.
70791         (gl_rwlock_define_initialized): Use it.
70792         (gl_recursive_lock_initializer): New macro.
70793         (gl_recursive_lock_define_initialized): Use it.
70794
70795 2005-07-30  Karl Berry  <karl@gnu.org>
70796
70797         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
70798         Report from Ben Pfaff, regarding getopt.
70799
70800 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
70801
70802         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
70803         normal way.
70804         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
70805         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
70806         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
70807         (gl_GETOPT): Use the new macros.  Most of the implementation
70808         is moved to the new macros.  This is for programs like Emacs
70809         that don't want all the functionality of gl_GETOPT.
70810
70811 2005-07-26  Bruno Haible  <bruno@clisp.org>
70812
70813         * m4/lock.m4: Update from GNU gettext.
70814
70815 2005-07-26  Bruno Haible  <bruno@clisp.org>
70816
70817         * lib/lock.h: Update from GNU gettext.
70818         * lib/lock.c: Update from GNU gettext.
70819
70820 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
70821
70822         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
70823         obsolescent AC_TRY_RUN.  Include the default includes files, for
70824         'exit'.
70825
70826 2005-07-24  Bruno Haible  <bruno@clisp.org>
70827
70828         * modules/visibility: New file.
70829         * MODULES.html.sh (Misc): Add visibility.
70830
70831 2005-07-24  Bruno Haible  <bruno@clisp.org>
70832
70833         * m4/visibility.m4: New file.
70834
70835 2005-07-24  Bruno Haible  <bruno@clisp.org>
70836
70837         * doc/visibility.texi: New file.
70838
70839 2005-07-22  Bruno Haible  <bruno@clisp.org>
70840
70841         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
70842         $(ALLOCA_H), redundant through BUILT_SOURCES.
70843         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
70844         redundant through BUILT_SOURCES.
70845         * modules/byteswap (Makefile.am): Remove explicit dependency on
70846         $(BYTESWAP_H), redundant through BUILT_SOURCES.
70847         * modules/fnmatch (Makefile.am): Remove explicit dependency on
70848         $(FNMATCH_H), redundant through BUILT_SOURCES.
70849         * modules/getopt (Makefile.am): Remove explicit dependency on
70850         $(GETOPT_H), redundant through BUILT_SOURCES.
70851         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
70852         redundant through BUILT_SOURCES.
70853         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
70854         redundant through BUILT_SOURCES.
70855         * modules/stdbool (Makefile.am): Remove explicit dependency on
70856         $(STDBOOL_H), redundant through BUILT_SOURCES.
70857         * modules/stdint (Makefile.am): Remove explicit dependency on
70858         $(STDINT_H), redundant through BUILT_SOURCES.
70859         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
70860         Remove explicit dependency on $(SYSEXITS_H).
70861         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
70862
70863 2005-07-18  Simon Josefsson  <jas@extundo.com>
70864
70865         * lib/check-version.c (check_version): Accept identical versions too.
70866
70867 2005-07-18  Bruno Haible  <bruno@clisp.org>
70868
70869         * modules/lock: New file.
70870         * MODULES.html.sh (Multithreading): New section.
70871
70872 2005-07-18  Bruno Haible  <bruno@clisp.org>
70873
70874         * m4/lock.m4: New file, from GNU gettext.
70875
70876 2005-07-18  Bruno Haible  <bruno@clisp.org>
70877
70878         * lib/lock.h: New file, from GNU gettext.
70879         * lib/lock.c: New file, from GNU gettext.
70880
70881 2005-07-18  Bruno Haible  <bruno@clisp.org>
70882
70883         * lib/lock.h (gl_once_t): New type.
70884         (gl_once_define, gl_once): New macros.
70885         * lib/lock.c (fresh_once): New variable.
70886         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
70887         functions.
70888
70889 2005-07-16  Simon Josefsson  <jas@extundo.com>
70890
70891         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
70892         workaround, suggested by Bruno.
70893
70894 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70895
70896         * modules/xalloc (Depends-on): Add xalloc-die.
70897         * modules/xvasprintf (Depends-on): Add xalloc-die.
70898
70899 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70900
70901         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
70902         with a minor change.
70903
70904 2005-07-15  Bruno Haible  <bruno@clisp.org>
70905
70906         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
70907         When using lib/poll.c, define poll as rpl_poll.
70908
70909 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
70910
70911         * modules/argp (Depends-on): Remove unlocked-io.
70912
70913 2005-07-14  Derek Price  <derek@ximbiot.com>
70914
70915         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
70916         for glob symlink bug.
70917
70918 2005-07-14  Bruno Haible  <bruno@clisp.org>
70919
70920         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
70921         Instead, test for *_unlocked function declarations directly.
70922
70923 2005-07-11  Simon Josefsson  <jas@extundo.com>
70924
70925         * modules/size_max: New file.
70926
70927         * modules/xsize: Depend on size_max module for size_max.m4.
70928
70929 2005-07-11  Simon Josefsson  <jas@extundo.com>
70930
70931         * lib/size_max.h: New file.
70932
70933 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
70934
70935         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
70936         copyright symbol and the year.
70937         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
70938         (version_etc_va): Use parameterized copyright notice.
70939         Reword to conform to the current GNU coding standards.
70940
70941 2005-07-11  Karl Berry  <karl@gnu.org>
70942
70943         * doc/gnulib.texi (Quoting): new node.
70944         (Initial import): more info, from Patrice.
70945
70946 2005-07-11  Bruno Haible  <bruno@clisp.org>
70947
70948         * gnulib-tool (func_usage): Document option --avoid.
70949         (Command line options): Handle --avoid.
70950         (func_acceptable): New function.
70951         (func_modules_transitive_closure): Use it.
70952
70953 2005-07-11  Bruno Haible  <bruno@clisp.org>
70954
70955         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
70956         Reported by Jim Meyering.
70957
70958 2005-07-10  Bruno Haible  <bruno@clisp.org>
70959
70960         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
70961         Needed when size_t is smaller than 'unsigned int'.
70962         Reported by Paul Eggert.
70963
70964 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70965
70966         * modules/argp (Depends-on): Add unlocked-io
70967
70968 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70969
70970         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
70971         block of defines.
70972
70973 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70974
70975         * config/srclist.txt: Comment out regcomp.c, since we have a porting
70976         fix now.
70977
70978 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
70979         and Paul Eggert  <eggert@cs.ucla.edu>
70980
70981         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
70982         in wint_t, not wchar_t.  Remove now-unnecessary cast.
70983
70984 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70985
70986         * modules/regex (Files): Add lib/regex_internal.c,
70987         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
70988         (Depends-on): Add extensions.
70989         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
70990
70991 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70992
70993         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
70994         pathconf.
70995         * m4/same.m4 (gl_SAME): Likewise.
70996         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
70997
70998         * m4/regex.m4: Adjust to new libc regex implementation.
70999         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
71000         all the .c and .h parts of (the new) regex.
71001         Quote the m4 stuff better.
71002         Check for RE_ICASE bug of old gnulib.
71003         Check for REG_STARTEND of recent libc.
71004         Rename local variables from jm_* to gl_*.
71005         Quote operand of "test -f".
71006         Say "recent enough" version of libc, not "version 2".
71007         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
71008         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
71009         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
71010         Remove check for btowc, isascii.
71011         Require AM_LANGINFO_CODESET.
71012
71013 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71014
71015         * lib/regex.c, regex.h: Sync from libc.
71016         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
71017         * lib/regexec.c:
71018         New files, synced from libc, except that regex_internal.h
71019         currently has a small porting fix.
71020
71021 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71022
71023         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
71024         regex_internal.c, regexec.c.
71025         Add regex_internal.h too, but as a comment, since the libc version
71026         is currently broken in gnulib mode.
71027
71028 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71029
71030         Support programs like Emacs that use gnulib but not gettext.
71031         * MODULES.html.sh (Internationalization functions): Add gettext-h.
71032         * modules/gettext-h: New file.
71033         * modules/gettext (Files): Remove lib/gettext.h.
71034         (Depends-on): Add gettext-h.
71035         (Makefile.am): Remove lib_SOURCES.
71036         * modules/argmatch, modules/c-stack, modules/closeout:
71037         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
71038         * modules/execute, modules/file-type, modules/getaddrinfo:
71039         * modules/getopt, modules/human, modules/javacomp:
71040         * modules/javaexec, modules/mkdir-p, modules/obstack:
71041         * modules/openat, modules/pagealign_alloc, modules/pipe:
71042         * modules/quotearg, modules/regex, modules/rpmatch:
71043         * modules/unicodeio, modules/userspec, modules/version-etc:
71044         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
71045         * modules/xsetenv:
71046         Depend on gettext-h, not gettext.
71047
71048 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71049
71050         * gnulib-tool (func_import): Add support for 'public domain' license.
71051         * modules/alloca, modules/atexit, modules/memmove:
71052         Now public domain, not GPL.
71053         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
71054         * modules/realloc, modules/strerror, modules/strtod:
71055         Now LGPL, not GPL.
71056
71057 2005-07-05  Bruno Haible  <bruno@clisp.org>
71058
71059         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
71060         autoconf CVS. Needed for mingw.
71061
71062 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71063
71064         Remove the dependency of the strftime module on the tzset module.
71065         * modules/strftime (Depends-on): Remove dependency on tzset.
71066
71067 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71068
71069         Remove the dependency of the strftime module on the tzset module.
71070         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
71071         gl_FUNC_TZSET_CLOBBER.
71072
71073 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71074
71075         Remove the dependency of the strftime module on the tzset module.
71076         * lib/strftime.c (my_strftime)
71077         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
71078         Copy the input structure, to work around some of the bug with
71079         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
71080         Solaris releases, you should also use the tzset module, but we won't
71081         require it as a dependency any more since we don't want LGPLed code
71082         to depend on GPLed code.
71083
71084 2005-07-02  Jim Meyering  <jim@meyering.net>
71085
71086         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
71087         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
71088         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
71089         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
71090
71091 2005-07-02  Jim Meyering  <jim@meyering.net>
71092
71093         * lib/backupfile.c (backup_args): Change a `0' to NULL.
71094
71095 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71096
71097         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
71098         declares only 'struct timespec;' (!).
71099
71100 2005-07-01  Jim Meyering  <jim@meyering.net>
71101
71102         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
71103         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
71104         * lib/save-cwd.c, tempname.c:
71105         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71106         and don't include <sys/file.h>).
71107
71108 2005-06-29  Jim Meyering  <jim@meyering.net>
71109
71110         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
71111         type name.  Use the variable name instead.
71112         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
71113         Likewise.
71114
71115 2005-06-28  Simon Josefsson  <jas@extundo.com>
71116
71117         * modules/check-version (Files): Add check-version.m4.
71118
71119 2005-06-28  Simon Josefsson  <jas@extundo.com>
71120
71121         * m4/check-version.m4: New file, suggested by Jim Meyering
71122         <jim@meyering.net>.
71123
71124 2005-06-28  Simon Josefsson  <jas@extundo.com>
71125
71126         * lib/check-version.h, lib/check-version.c: New files.
71127
71128 2005-06-28  Simon Josefsson  <jas@extundo.com>
71129
71130         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
71131         collision with global variable.  Better indentation.  Don't
71132         increment buffer pointer beyond buffer end.  Based on comments
71133         from Paul Eggert <eggert@cs.ucla.edu>.
71134
71135         * lib/base64.h: Indent.
71136
71137 2005-06-28  Simon Josefsson  <jas@extundo.com>
71138
71139         * doc/gnulib.texi (Library version handling): New section.
71140
71141 2005-06-28  Jim Meyering  <jim@meyering.net>
71142
71143         * check-module (find_included_lib_files): Hard-code another
71144         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
71145         but modules/fts-lgpl (correctly) does not list those files.
71146
71147         * modules/canonicalize (Files): Add lib/pathmax.h.
71148
71149 2005-06-25  Simon Josefsson  <jas@extundo.com>
71150
71151         * modules/check-version: New file.
71152
71153 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
71154
71155         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
71156         initializer of struct addrinfo, as an indication that we don't
71157         care how many members the structure has.
71158
71159 2005-06-24  Derek Price  <derek@ximbiot.com>
71160         and Bruno Haible  <bruno@clisp.org>
71161
71162         Remove stat module & update lstat.
71163         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
71164         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71165         * m4/stat.m4: Remove this file.
71166
71167 2005-06-24  Derek Price  <derek@ximbiot.com>
71168         and Bruno Haible  <bruno@clisp.org>
71169
71170         Remove stat module & update lstat.
71171         * lib/stat.c: Remove this file...
71172         (slash_aware_lstat): ...moving this content and its support...
71173         * lib/lstat.c (rpl_lstat): ...into here.
71174         * lib/lstat.h: New file.
71175
71176 2005-06-24  Derek Price  <derek@ximbiot.com>
71177         and Bruno Haible  <bruno@clisp.org>
71178
71179         Remove stat module & update lstat.
71180         * config/srclist.txt (libc sources): Remove stat.
71181
71182 2005-06-24  Derek Price  <derek@ximbiot.com>
71183         and Bruno Haible  <bruno@clisp.org>
71184
71185         Remove stat module & update lstat.
71186         * MODULES.html.sh (stat): Remove.
71187         * MODULES.html: Regenerated.
71188         * modules/lstat (Description): Correct function name.
71189         (Files): Add "lstat.h".
71190         (Depends-on): Remove stat, add xalloc, stat-macros.
71191         * modules/stat: Remove this file.
71192         (Include): Add "lstat.h", remove <sys/stat.h>.
71193
71194 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
71195
71196         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
71197         (ranged_convert): Don't save conversion in a temporary struct.
71198         This causes a warning with GCC 4.0.0, and anyway in the typical
71199         case it's not worth the extra 100 bytes or so of code.
71200         (ranged_convert, __mktime_internal): When calling a function via a
71201         pointer P, use P () rather than (*P) (), as we now assume C89 or
71202         better.
71203
71204 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71205
71206         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
71207         "who -r" failed to give output.  Problem reported by Tim Waugh.
71208
71209         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
71210         (xcalloc): Use it to avoid needless tests.
71211         Problem reported by Jim Meyering.
71212
71213 2005-06-20  Derek Price  <derek@ximbiot.com>
71214
71215         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
71216         unnecessary for Autoconfs > 2.59c.
71217
71218 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71219
71220         * lib/argp.h (__option_is_short): Check upper limit of
71221         __key. Isprint() requires its argument to have the value
71222         of an unsigned char or EOF.
71223
71224 2005-06-16  Jim Meyering  <jim@meyering.net>
71225
71226         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
71227         when either N or S is zero.
71228
71229 2005-06-16  Derek Price  <derek@ximbiot.com>
71230
71231         * m4/bison.m4: Declare YACC & YFLAGS precious.
71232
71233 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
71234
71235         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
71236         multibyte string or pattern, fall back on unibyte matching.
71237         Problem reported by James Youngman.
71238
71239 2005-06-08  Bruno Haible  <bruno@clisp.org>
71240
71241         * modules/csharpcomp: New file.
71242         * MODULES.html.sh (C#): Add csharpcomp.
71243
71244 2005-06-08  Bruno Haible  <bruno@clisp.org>
71245
71246         * m4/csharpcomp.m4: New file, from GNU gettext.
71247
71248 2005-06-08  Bruno Haible  <bruno@clisp.org>
71249
71250         * lib/csharpcomp.h: New file, from GNU gettext.
71251         * lib/csharpcomp.c: New file, from GNU gettext.
71252         * lib/csharpcomp.sh.in: New file, from GNU gettext.
71253
71254 2005-06-08  Bruno Haible  <bruno@clisp.org>
71255
71256         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
71257         warning on mingw.
71258
71259 2005-06-07  Derek Price  <derek@ximbiot.com>
71260
71261         Sync from CVS.
71262         * lib/glob_.h: Indent nested #ifdef.
71263
71264 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71265
71266         Sync from coreutils.
71267         Use "file name" when talking about file names, instead of "filename"
71268         or "path", as per the GNU coding standards.
71269         * lib/mkdir-p.c: Renamed from makepath.c.
71270         (make_dir_parents): Renamed from make_path.  All callers changed.
71271         * lib/mkdir-p.h: Likewise.  All includers changed.
71272         * lib/filenamecat.c: Renamed from path-concat.c.
71273         (file_name_concat): Renamed from path_concat.  All callers changed.
71274         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
71275         * lib/filenamecat.h: Likewise.  All includers changed.
71276         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
71277         in comments or local variable names.
71278         * lib/basename.c: Likewise.
71279         * lib/canonicalize.c, canonicalize.h: Likewise.
71280         * lib/dirname.c, dirname.h: Likewise.
71281         * lib/euidaccess.c: Likewise.
71282         * lib/exclude.c: Likewise
71283         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
71284         * lib/fsusage.c, fsuage.h: Likewise.
71285         * lib/fts.c, fts_.h: Likewise.
71286         * lib/getcwd.c: Likewise.
71287         * lib/getloadavg.c: Likewise.
71288         * lib/mkstemp.c: Likewise.
71289         * lib/mountlist.c, mountlist.h: Likewise.
71290         * lib/openat.c, openat.h: Likewise.
71291         * lib/readlink-stub.c: Likewise.
71292         * lib/readutmp.c, readutmp.h: Likewise.
71293         * lib/rename.c: Likewise.
71294         * lib/rmdir.c: Likewise.
71295         * lib/same.c: Likewise.
71296         * lib/savedir.c: Likewise.
71297         * lib/stripslash.c: Likewise.
71298         * lib/tempname.c: Likewise.
71299         * lib/xreadlink.c: Likewise.
71300         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
71301         All uses changed.
71302         * lib/exclude.h: Likewise.
71303
71304         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
71305         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71306         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
71307         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71308         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71309         files have been getting away with it for years (MORE/BSD 4.3
71310         is extinct now).
71311         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71312         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71313
71314         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71315         Define to 256, not 255, as per modern POSIX.
71316
71317 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71318
71319         Sync from coreutils.
71320         Use "file name" when talking about file names, instead of "filename"
71321         or "path", as per the GNU coding standards.
71322         * MODULES.html.sh: mkdir-p renamed from makepath.
71323         filenamecat renamed from path-concat.
71324         * modules/filenamecat: Renamed from modules/path-concat.
71325         (Files): filenamecat.h and filenamecat.c renamed from
71326         path-concat.h and path-concat.c.
71327         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71328         (Include): filenamecat.h, not path-concat.h.
71329         * modules/mkdir-p: Renamed from modules/makepath.
71330         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71331         makepath.c.
71332         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71333         (Include): mkdir-p.h, not makepath.h.
71334
71335 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71336
71337         Sync from coreutils.
71338         * m4/mkdir-p.m4: Renamed from makepath.m4.
71339         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71340         Rename files from makepath.c to mkdir-p.c, and from
71341         makepath.h to mkdir-p.h.
71342         * m4/filenamecat.m4: Renamed from path-concat.m4.
71343         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71344         Rename files from path-concat.c to filenamecat.c,
71345         and from path-concat.h to filenamecat.h.
71346         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71347         "file name" in local variables or comments.
71348         * m4/rename.m4: Likewise.
71349
71350 2005-06-01  Bruno Haible  <bruno@clisp.org>
71351
71352         * modules/csharpexec: New file.
71353         * MODULES.html.sh (C#): New section.
71354
71355 2005-06-01  Bruno Haible  <bruno@clisp.org>
71356
71357         * m4/csharp.m4: New file, from GNU gettext.
71358         * m4/csharpexec.m4: New file, from GNU gettext.
71359
71360 2005-06-01  Bruno Haible  <bruno@clisp.org>
71361
71362         * lib/csharpexec.h: New file, from GNU gettext.
71363         * lib/csharpexec.c: New file, from GNU gettext.
71364         * lib/csharpexec.sh.in: New file, from GNU gettext.
71365
71366 2005-05-31  Derek Price  <derek@ximbiot.com>
71367             Paul Eggert  <eggert@cs.ucla.edu>
71368
71369         Sync from cvs.
71370         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71371
71372 2005-05-31  Derek Price  <derek@ximbiot.com>
71373             Paul Eggert  <eggert@cs.ucla.edu>
71374
71375         Sync from cvs.
71376         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71377
71378 2005-05-29  Derek Price  <derek@ximbiot.com>
71379
71380         * config/srclist.txt (glob_.h, glob.c): Add these files.
71381
71382 2005-05-29  Derek Price  <derek@ximbiot.com>
71383
71384         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71385         * modules/glob: New file.
71386         * modules/getlogin_r: Add link to POSIX spec in description.
71387
71388 2005-05-29  Derek Price  <derek@ximbiot.com>
71389             Paul Eggert  <eggert@cs.ucla.edu>
71390
71391         * m4/glob.m4: New file.
71392
71393 2005-05-29  Derek Price  <derek@ximbiot.com>
71394             Paul Eggert  <eggert@cs.ucla.edu>
71395
71396         * lib/glob_.h, lib/glob.c: New files.
71397
71398 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71399
71400         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71401         * modules/fts-lgpl (Depends-on): Remove gettext.
71402
71403 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71404
71405         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71406         and don't require gt_INTTYPES_PRI.
71407
71408 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71409
71410         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71411
71412         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71413         the configuration hassle isn't worth it.
71414         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71415         (LONGEST_MODIFIER, PRIuMAX): Remove.
71416
71417 2005-05-27  Bruno Haible  <bruno@clisp.org>
71418
71419         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71420
71421 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71422
71423         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71424         _POSIX_PTHREAD_SEMANTICS for Solaris.
71425
71426 2005-05-25  Derek Price  <derek@ximbiot.com>
71427
71428         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71429
71430 2005-05-25  Derek Price  <derek@ximbiot.com>
71431             Paul Eggert  <eggert@cs.ucla.edu>
71432
71433         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71434         * lib/getlogin_r.c, getlogin_r.h: New files.
71435
71436 2005-05-25  Bruno Haible  <bruno@clisp.org>
71437             Derek Price  <derek@ximbiot.com>
71438
71439         * lib/getlogin_r.h: Simplify API documentation.
71440
71441 2005-05-23  Derek Price  <derek@ximbiot.com>
71442
71443         * modules/minmax (Files): Add m4/minmax.m4.
71444         (configure.ac): Add gl_MINMAX.
71445
71446 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71447
71448         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71449         so that unistd-safer.h (GPL'ed code) need not be included.
71450
71451 2005-05-22  Bruno Haible  <bruno@clisp.org>
71452
71453         * m4/minmax.m4: New file.
71454         Based on a patch by Derek Price <derek@ximbiot.com>.
71455
71456 2005-05-22  Bruno Haible  <bruno@clisp.org>
71457
71458         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71459         (INT64_MIN): Fix definition.
71460         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71461
71462         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71463         NEED_SIGNED_INT_TYPES.
71464
71465         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71466         HAVE_SYSTEM_INTTYPES.
71467
71468 2005-05-22  Bruno Haible  <bruno@clisp.org>
71469
71470         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71471         Also include <sys/param.h> if it defines MIN, MAX.
71472         Based on a patch by Derek Price <derek@ximbiot.com>.
71473
71474 2005-05-21  Jim Meyering  <jim@meyering.net>
71475
71476         * modules/fts (Files): Add m4/inttypes-pri.m4.
71477         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71478
71479 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71480
71481         New fts module.
71482         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71483         (setup_dir, free_dir): New functions.
71484         (enter_dir, leave_dir): Define trivial
71485         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71486         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71487         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71488         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71489         Move to fts-cycle.c.
71490         (fts_open): Use setup_dir.
71491         (fts_close): Use free_dir.
71492         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71493         This adds a label and some gotos, but the alternatives were messier.
71494         Check for memory allocation failure when entering a dir.
71495         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71496         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71497         (FTS): New member fts_cycle, that is a union that contains the
71498         old active_dir_ht and cycle_state.  All uses changed to mention
71499         fts_cycle.ht and fts_cycle.state.
71500         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71501         fts.c, with the following changes:
71502         (setup_dir, free_dir): New functions.
71503         (enter_dir): Now returns bool.  Return true if successful, false
71504         if memory exhausted.  All callers changed.
71505         Do not bother partly cleaning up on
71506         memory allocation failure; that is free_dir's job.
71507         However, free ad if hash_insert fails, to avoid memory leak.
71508         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71509         fts->fts_options to see which union member to use.
71510
71511 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71512
71513         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71514         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71515
71516 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71517
71518         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71519
71520 2005-05-20  Jim Meyering  <jim@meyering.net>
71521
71522         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71523         Now a macro, to pacify GCC.
71524
71525 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71526
71527         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
71528         of -1.
71529
71530 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71531
71532         * lib/chown.c (rpl_chown): Return -1 on failure.
71533
71534 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71535
71536         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
71537         Don't check for stddef.h.
71538         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
71539         don't use its results.
71540         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
71541         since we include them unconditionally.  Don't require
71542         AM_STDBOOL_H, since stdbool is a prerequisite.
71543         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
71544         since we assume C89 or better.
71545         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
71546         as we don't use their results.
71547         Don't check for fchdir, memmove, memset, strrchr, as we use
71548         them unconditionally.
71549         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
71550         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
71551
71552 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71553
71554         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
71555         Include <stddef.h> unconditionally, since we assume C89 now.
71556         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
71557         * lib/fts.c: Include fts_.h first, to check interface.
71558         Do not include intprops.h; no longer needed.
71559         Include cycle-check.h and hash.h, since fts_.h no longer does.
71560         Remove unnecessary casts of closedir to void.
71561         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
71562         decide whether to decrement nlinks.
71563         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
71564         (FTS): Use struct hash_table * instead of Hash_table, so that
71565         we no longer need to include hash.h here.
71566
71567 2005-05-18  Jim Meyering  <jim@meyering.net>
71568
71569         * modules/dirfd (License): Change to LGPL.  Most of the code
71570         is already in the public domain.
71571
71572 2005-05-18  Jim Meyering  <jim@meyering.net>
71573
71574         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
71575         Reported by Yoann Vandoorselaere.
71576
71577 2005-05-17  Jim Meyering  <jim@meyering.net>
71578
71579         * m4/fts.m4: New file, from coreutils.
71580
71581 2005-05-17  Jim Meyering  <jim@meyering.net>
71582
71583         * lib/fts.c, lib/fts_.h: New files, from coreutils.
71584
71585 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71586
71587         Sync from coreutils.
71588         * m4/unlinkdir.m4: New file.
71589
71590 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71591
71592         Sync from coreutils.
71593         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
71594         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
71595         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
71596         White space changes only.
71597         * lib/makepath.c (make_path): Port to hosts where leading "//" is
71598         special.
71599         * lib/yesno.c: Include getline.h, not ctype.h.
71600         (yesno): Don't remove leading white space; POSIX doesn't allow it.
71601         Use getline to remove arbitrary restriction on response length.
71602
71603 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71604
71605         * config/srclist-update: Spell out "Street" in FSF postal
71606         mail address; this is the style the FSF seems to prefer.
71607
71608         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
71609         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
71610         this updates FSF postal mail address.
71611
71612         Sync from coreutils.
71613         * modules/unlinkdir: New file.
71614         * modules/yesno (Depends-on): Add getline.
71615         * MODULES.html.sh (File system functions): Add unlinkdir.
71616
71617 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71618
71619         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71620         lib/strsep.h:
71621         Change the initial comment to refer to GPL, not LGPL.
71622         gnulib-tool will change it to LGPL as needed.
71623
71624         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71625         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71626         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71627         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71628         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71629         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71630         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71631         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71632         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71633         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71634         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71635         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71636         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71637         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71638         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71639         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71640         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71641         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71642         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71643         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71644         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71645         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71646         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71647         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71648         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71649         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71650         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71651         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71652         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71653         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71654         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71655         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71656         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71657         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71658         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71659         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71660         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71661         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71662         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71663         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71664         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71665         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71666         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71667         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71668         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71669         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71670         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71671         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71672         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71673         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71674         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71675         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71676         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71677         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71678         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71679         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71680         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71681         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71682         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71683         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71684         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71685         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71686         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71687         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71688         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71689         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71690         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71691         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
71692         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
71693         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
71694         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
71695         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
71696         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
71697         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
71698         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
71699         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
71700         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
71701         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
71702         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
71703         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
71704         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
71705         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
71706         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
71707         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
71708         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
71709         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
71710         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
71711         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
71712         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
71713         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
71714         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
71715         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
71716         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
71717         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
71718         lib/yesno.c, lib/yesno.h:
71719         Update FSF postal mail address.
71720
71721 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71722
71723         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
71724         tests/test-memmem.c, tests/test-stpncpy.c:
71725         Update FSF postal mail address.
71726
71727 2005-05-13  Bruno Haible  <bruno@clisp.org>
71728
71729         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
71730         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
71731         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
71732         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
71733         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
71734         Add support for 64-bit integers in the MSVC compiler.
71735
71736 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71737
71738         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
71739
71740 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
71741
71742         * gnulib-tool (func_import): Sort and uniquify recommended includes.
71743
71744 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
71745
71746         * doc/getdate.texi (General date syntax): Don't say that date
71747         date --iso-8601=ns generates acceptable dates; it doesn't yet.
71748         Problem reported by Nic Ferrier.
71749
71750 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71751
71752         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
71753         specified in ai_socktype. Fix invalid ai_protocol
71754         check. ai_protocol is usually set to 0 or depending on
71755         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
71756         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
71757         ai_socktype / ai_protocol in the returned addrinfo structure.
71758
71759 2005-05-10  Simon Josefsson  <jas@extundo.com>
71760
71761         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
71762         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71763
71764 2005-05-10  Karl Berry  <karl@gnu.org>
71765
71766         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
71767         (from http://www.gnu.org/licenses).
71768         * doc/COPYING.LIB: also rename to COPYING.LESSER.
71769         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
71770         fdl.texi suffices.
71771
71772 2005-05-10  Karl Berry  <karl@gnu.org>
71773
71774         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
71775         (COPYING.DOC): remove.
71776
71777         * config/srclist-update: new FSF address.
71778
71779 2005-05-10  Derek Price  <derek@ximbiot.com>
71780
71781         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
71782         possible.
71783
71784 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71785             Bruno Haible  <bruno@clisp.org>
71786
71787         * modules/inet_ntop: New file.
71788         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71789         inet_ntop.
71790
71791 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71792             Bruno Haible  <bruno@clisp.org>
71793
71794         * m4/inet_ntop.m4: New file.
71795
71796 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71797             Bruno Haible  <bruno@clisp.org>
71798
71799         * lib/inet_ntop.h: New file.
71800         * lib/inet_ntop.c: New file, from glibc with modifications.
71801
71802 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
71803
71804         * modules/time_r (License): Change to LGPL.
71805         * modules/extensions (License): Change to LGPL.  Actually,
71806         the license is more permissive than that, but currently gnulib-tool
71807         doesn't know how to handle more-permissive licenses.
71808
71809         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
71810         Problem reported by Dave Love.
71811
71812 2005-05-08  Jim Meyering  <jim@meyering.net>
71813
71814         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
71815         blank.
71816
71817 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71818
71819         * modules/argmatch (Depends-on): Add stdbool.
71820         * modules/backupfile (Depends-on): Likewise.
71821         * modules/chdir-long (Depends-on): Likewise.
71822         * modules/closeout (Depends-on): Likewise.
71823         * modules/cycle-check (Depends-on): Likewise.
71824         * modules/dirname (Depends-on): Likewise.
71825         * modules/fnmatch (Depends-on): Likewise.
71826         * modules/fsusage (Depends-on): Likewise.
71827         * modules/fwriteerror (Depends-on): Likewise.
71828         * modules/getcwd (Depends-on): Likewise.
71829         * modules/getloadavg (Depends-on): Likewise.
71830         * modules/hard-locale (Depends-on): Likewise.
71831         * modules/makepath (Depends-on): Likewise.
71832         * modules/mountlist (Depends-on): Likewise.
71833         * modules/nanosleep (Depends-on): Likewise.
71834         * modules/posixtm (Depends-on): Likewise.
71835         * modules/quotearg (Depends-on): Likewise.
71836         * modules/readtokens (Depends-on): Likewise.
71837         * modules/readtokens0 (Depends-on): Likewise.
71838         * modules/readutmp (Depends-on): Likewise.
71839         * modules/save-cwd (Depends-on): Likewise.
71840         * modules/strftime (Depends-on): Likewise.
71841         * modules/userspec (Depends-on): Likewise.
71842         * modules/utimecmp (Depends-on): Likewise.
71843         * modules/xgetcwd (Depends-on): Likewise.
71844         * modules/xnanosleep (Depends-on): Likewise.
71845         * modules/xstrtod (Depends-on): Likewise.
71846         * modules/yesno (Depends-on): Likewise.
71847
71848 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
71849
71850         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
71851         needless checks.
71852
71853 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71854
71855         Merge from coreutils.  Among other things,
71856         add bulletproofing for cases where stdin, stdout, or stderr are closed.
71857         * lib/fd-safer.c: New file.
71858         * lib/fcntl-safer.h, open-safer.c: Remove.
71859         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
71860         * lib/dup-safer.c: Include unistd-safer.h first.
71861         Don't include errno.h.
71862         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
71863         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
71864         * lib/file-type.c: Rely on file-type.h change.
71865         * lib/getloadavg.c: Include unistd-safer.h.
71866         (getloadavg): Use safer open.
71867         * lib/getusershell.c: Include "stdio-safer.h".
71868         (getusershell): Use safer fopen.
71869         * lib/long-options.c (long_options): Use NULL rather than 0.
71870         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
71871         'free'.
71872         * lib/modechange.c: Likewise.
71873         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
71874         (MODE_DONE): New constant.
71875         (struct mode_change): Remove 'next' member.
71876         (make_node_op_equals): New function; like the old one of the
71877         same name, except it allocates an array.
71878         (mode_compile, mode_create_from_ref): Use it.
71879         (mode_compile): Allocate result as an array, not a linked list.
71880         Parse octal string ourself, so that we catch mistakes like "+0".
71881         (mode_adjust): Arg is an array, not a linked list.
71882         * lib/modechange.c: Include stat-macros.h, xalloc.h.
71883         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
71884         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
71885         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
71886         Remove.  This is now stat-macros.h's job.
71887         (talloc): Remove.  All callers replaced by xalloc, so that
71888         our invokers don't have to worry about reporting memory failures.
71889         (make_node_op_equals): Remove.
71890         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71891         New constants.
71892         (struct mode_change): Moved here from modechange.h.
71893         (mode_append_entry): Remove.
71894         (mode_compile): Remove MASKED_OPS arg, since it encouraged
71895         apps to have incorrect behavior.  Use simpler algorithm for head
71896         and tail.  Don't futz with umask; that's now the job of mode_adjust.
71897         Detect more invalid usages rather than having somewhat-random behavior.
71898         Don't insert an "a=" action, as that leads to incorrect behavior.
71899         (mode_compile, mode_create_from_ref): Return NULL on error instead
71900         of an enum, since now there's only one way to have an error.  All
71901         callers changed.
71902         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
71903         at the correct time.  Simplify calculation of "+u" and its ilk.
71904         Don't mishandle "+X".
71905         (mode_free): Remove "register" and localize decls.
71906         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71907         (struct mode_change): Move to modechange.c; callers don't
71908         need to see this stuff.
71909         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
71910         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
71911         (mode_change, mode_adjust): Reflect the new signatures noted above.
71912         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
71913         that might redefine system include files.
71914         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
71915         (my_usleep): Use NULL rather than (void *) 0.
71916         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
71917         Use siginterrupt to specify that system calls should be interrupted.
71918         (rpl_nanosleep): Move initialization of suspended closer to call of
71919         my_usleep.
71920         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
71921         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
71922         (desirable_utmp_entry): New function.
71923         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
71924         using x2nrealloc, to simplify logic.
71925         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
71926         size calculation.  Do not assume utmp file is a regular file.
71927         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
71928         (READ_UTMP_CHECK_PIDS): New constant.
71929         * lib/save-cwd.c: Include unistd-safer.h.
71930         (save_cwd): Use fd_safer.
71931         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
71932         [!_LIBC] Include "stat-macros.h" instead.
71933         * lib/unistd-safer.h (fd_safer): New decl.
71934
71935 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71936
71937         * modules/getloadavg (Depends-on): Add unistd-safer.
71938         * modules/getusershell (Depends-on): Add stdio-safer.
71939         * modules/lstat (Depends-on): Remove xalloc.
71940         * modules/mkstemp (Depends-on): Add stat-macros.
71941         * modules/modechange (Depends-on): Remove xstrtol.
71942         Add stat-macros, xalloc.
71943         * modules/save-cwd (Depends-on): Add unistd-safer.
71944         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
71945         * modules/unistd-safer (Files): Add lib/fd-safer.c
71946         (Makefile.am): Remove lib_SOURCES.
71947
71948         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
71949         Remove fcntl-safer; unistd-safer supersedes it.
71950
71951 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71952
71953         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
71954         AC_HEADER_STAT.
71955         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
71956         (gl_PREREQ_CHOWN): Remove.
71957         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
71958         it.  Don't require AC_HEADER_STAT.
71959         (gl_PREREQ_LSTAT): Remove.
71960         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
71961         Don't require AC_HEADER_STAT.
71962         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
71963         (gl_PREREQ_RMDIR): Remove.
71964         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
71965         mention stat-macros.h or AC_HEADER_STAT, since we'll make
71966         the stat-macros module a prerequisite.
71967         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
71968         * m4/filemode.m4 (gl_FILEMODE): Likewise.
71969         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
71970         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
71971         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
71972         variable names.
71973         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
71974         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
71975         variable prefixes.
71976         * m4/fcntl-safer.m4: Remove.
71977         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
71978         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
71979         Invoke gl_PREREQ_FD_SAFER.
71980         (gl_PREREQ_FD_SAFER): New macro.
71981         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
71982         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
71983         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
71984         Remove duplicate call to AC_LIBOBJ(readutmp).
71985         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
71986
71987         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
71988         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
71989
71990 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71991
71992         * MODULES.html.sh (Misc): Add byteswap.
71993
71994 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71995
71996         * modules/getcwd (Depends-on): Add extensions.
71997         * modules/openat (Depends-on): Likewise.
71998
71999 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72000
72001         * modules/byteswap: New file.
72002
72003 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72004
72005         * m4/byteswap.m4: New file.
72006
72007 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72008
72009         * lib/byteswap_.h: New file.
72010
72011 2005-04-25  Karl Berry  <karl@gnu.org>
72012
72013         * m4/gettext.m4: Update from GNU gettext 0.14.4.
72014
72015 2005-04-25  Albert Chin  <china@thewrittenword.com>
72016
72017         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
72018         Toolkit C bug.
72019
72020 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
72021
72022         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
72023         (func_ln_if_changed): Remove forcibly for no error message
72024         in case file does not exist.
72025
72026 2005-04-19  Simon Josefsson  <jas@extundo.com>
72027
72028         * gnulib-tool (Options): Make --symlink mean --symbolic.
72029
72030 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
72031
72032         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
72033
72034 2005-04-16  Simon Josefsson  <jas@extundo.com>
72035
72036         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
72037
72038 2005-04-15  Simon Josefsson  <jas@extundo.com>
72039
72040         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
72041
72042 2005-04-15  Simon Josefsson  <jas@extundo.com>
72043
72044         * gnulib-tool: Rename --symlink to --symbolic.
72045
72046 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
72047
72048         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
72049         symbolic links to files instead of copying/moving.  Add --aux-dir,
72050         specifying directory relative --dir where auxiliary build tools
72051         are placed.
72052
72053 2005-04-14  Bruno Haible  <bruno@clisp.org>
72054
72055         * modules/allocsa (License): Change to LGPL.
72056         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72057
72058 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72059
72060         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
72061         that "UTC +1 second" continues to work.  Problem reported
72062         by Dmitry V. Levin.
72063         (relunit_snumber): New rule.
72064         (relunit): Use it.
72065
72066 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72067
72068         * lib/getdate.y (universal_time_zone_table): New constant.
72069         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
72070         universal_time_zone_table.
72071         (lookup_zone): Prefer universal_time_zone_table to
72072         local_time_zone_table, so that "GMT" time stamps are allowed in
72073         London during the summer.  Problem reported by Ian Abbott.
72074
72075 2005-04-12  Jim Meyering  <jim@meyering.net>
72076
72077         * lib/human.c (humblock): Set *options even when returning due to
72078         xstrtoumax conversion failure.  Thanks to a used-uninitialized
72079         warning from gcc-4.
72080
72081 2005-04-09  Jim Meyering  <jim@meyering.net>
72082
72083         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
72084         -Wuninitialized: initialize tm0.tm_year.
72085
72086 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
72087
72088         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
72089         count, since there's no maximum.  All uses changed.
72090         Add member dsts_seen.
72091         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
72092         not being INT_MAX.
72093         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
72094         Use pc_rels_seen to decide whther a date is absolute.
72095
72096         * lib/getdate.y (number): Don't overwrite year.
72097         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
72098         check.
72099
72100 2005-04-02  Simon Josefsson  <jas@extundo.com>
72101
72102         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
72103         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
72104
72105 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
72106
72107         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
72108         where no absolute path name can be longer than PATH_MAX.
72109
72110 2005-03-27  Jim Meyering  <jim@meyering.net>
72111
72112         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
72113
72114 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
72115
72116         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
72117         "one's complement" -> "ones' complement" in comment, as per Knuth.
72118         "value of type" -> "type or expression" in comment.
72119         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
72120
72121 2005-03-26  Jim Meyering  <jim@meyering.net>
72122
72123         Comment nits.
72124         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
72125         Correct typos: s/or/of/.
72126
72127 2005-03-26  Jim Meyering  <jim@meyering.net>
72128
72129         * modules/check-include-files: Move to ../ and rename to...
72130         * check-module: ...this.
72131
72132 2005-03-25  Jim Meyering  <jim@meyering.net>
72133
72134         * modules/xvasprintf (Files): Add xalloc.h.
72135
72136 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72137
72138         * modules/gettext (Files): config/config.rpath ->
72139         build-aux/config.rpath
72140         * modules/iconv (Files): Likewise.
72141         Problem reported by Oskar Liljeblad.
72142
72143 2005-03-23  Jim Meyering  <jim@meyering.net>
72144
72145         * modules/check-include-files: New script to check for
72146         missing dependencies, multiple includes, etc.
72147
72148         * modules/c-strtold (Depends-on): Add xalloc.
72149         * modules/c-strtod (Depends-on): Add xalloc.
72150         * modules/hash (Depends-on): Add xalloc.
72151         (Files): Remove lib/xalloc.h.
72152
72153         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
72154         * modules/userspec (Files): Add lib/inttostr.h.
72155
72156 2005-03-23  Jim Meyering  <jim@meyering.net>
72157
72158         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
72159
72160 2005-03-22  Jim Meyering  <jim@meyering.net>
72161
72162         * modules/stat-macros: New module.
72163         * modules/canonicalize, modules/euidaccess, modules/file-type,
72164         * modules/filemode, modules/lchown, modules/makepath,
72165         * modules/rmdir, modules/stat: Depend on new stat-macros module
72166         rather than listing lib/stat-macros.h manually.
72167         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
72168
72169 2005-03-22  Jim Meyering  <jim@meyering.net>
72170
72171         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
72172
72173 2005-03-22  Bruno Haible  <bruno@clisp.org>
72174
72175         * config/srclist.txt: Replace target directory 'config' with
72176         'build-aux'.
72177         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
72178         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
72179         ../build-aux/.
72180
72181 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
72182
72183         * modules/chdir-long (Depends-on): Add mempcpy.
72184
72185         * modules/acl, modules/backupfile, modules/c-strtod,
72186         modules/c-strtold, modules/canon-host, modules/canonicalize,
72187         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
72188         modules/exclude, modules/exitfail, modules/file-type,
72189         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
72190         modules/getdate, modules/getline, modules/getpagesize,
72191         modules/getpass, modules/getugroups, modules/group-member,
72192         modules/hard-locale, modules/hash, modules/human, modules/idcache,
72193         modules/inttostr, modules/long-options, modules/makepath,
72194         modules/md5, modules/memcasecmp, modules/memcoll,
72195         modules/modechange, modules/mountlist, modules/path-concat,
72196         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
72197         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
72198         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
72199         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
72200         modules/strftime, modules/strndup, modules/strverscmp,
72201         modules/timespec, modules/unlocked-io, modules/userspec,
72202         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
72203         modules/yesno:
72204         Remove lib_SOURCES line from Makefile.am section, as this is now
72205         done automatically by the corresponding Autoconf macro.
72206
72207 2005-03-21  Jim Meyering  <jim@meyering.net>
72208
72209         Changes imported from coreutils.
72210
72211         * lib/cycle-check.c: Don't include xalloc.h.
72212
72213         * lib/path-concat.c: Don't include assert.h.
72214         (path_concat): Remove assertion that would have triggered
72215         for ABASE starting with more than one slash.
72216         Reported by Andreas Schwab.
72217
72218         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
72219         properly when ABASE is an absolute file name.
72220         Correct the description of this function.
72221         Include <assert.h>.
72222         Add an assertion and a test driver.
72223         This fixes a bug introduced on 2004-07-02.
72224         Andreas Schwab reported the resulting failure of cp --parents:
72225         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
72226
72227 2005-03-21  Jim Meyering  <jim@meyering.net>
72228
72229         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
72230         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
72231
72232 2005-03-21  Jim Meyering  <jim@meyering.net>
72233         and  Paul Eggert  <eggert@cs.ucla.edu>
72234
72235         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
72236         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
72237         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
72238         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
72239         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
72240         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
72241         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
72242         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
72243         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
72244         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
72245         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
72246         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
72247         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
72248         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
72249         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
72250         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
72251         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
72252         for these modules.
72253
72254 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
72255
72256         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
72257         (which shouldn't happen), generate nothing instead of returning 0
72258         immediately, so that nstrftime (NULL, ...) doesn't return 0.
72259
72260 2005-03-16  Bruno Haible  <bruno@clisp.org>
72261
72262         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
72263         HAVE_LONGLONG_64BIT.
72264
72265 2005-03-16  Bruno Haible  <bruno@clisp.org>
72266
72267         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
72268         HAVE_LONGLONG_64BIT.
72269
72270 2005-03-16  Bruno Haible  <bruno@clisp.org>
72271
72272         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
72273         HAVE_LONGLONG_64BIT.
72274
72275 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72276
72277         * lib/strftime.c (my_strftime): Prepend space to format so that we can
72278         reliably distinguish strftime failure from empty output on POSIX
72279         hosts.
72280
72281 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
72282
72283         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
72284         (iconv_string): Don't guess a size-zero buffer, as that might cause
72285         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
72286         result would be 'too large', where 'too large' is (heuristically)
72287         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
72288         overflow concerns.  This will prevent some unwanted malloc failures
72289         when the inputs are very large.
72290
72291 2005-03-15  Karl Berry  <karl@gnu.org>
72292
72293         * config/srclist.txt (config.rpath): from gettext.
72294         * config/config.rpath: update.
72295
72296 2005-03-15  Bruno Haible  <bruno@clisp.org>
72297
72298         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
72299         to 'negate'.
72300
72301         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
72302         variable.
72303
72304         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
72305         results.
72306
72307 2005-03-14  Simon Josefsson  <jas@extundo.com>
72308
72309         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72310         <fx@gnu.org>.
72311
72312 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72313
72314         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72315         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72316         intprops.h.
72317         * lib/strtol.c: Likewise.
72318
72319 2005-03-14  Jim Meyering  <jim@meyering.net>
72320
72321         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72322         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72323         to be nonzero so that we (and caller) can detect the difference
72324         between a valid zero-length expansion and an error return, even
72325         when the underlying strftime fails before writing anything into
72326         that location.
72327
72328 2005-03-14  Bruno Haible  <bruno@clisp.org>
72329
72330         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72331         Update from GNU gettext 0.14.3.
72332
72333 2005-03-10  Jim Meyering  <jim@meyering.net>
72334
72335         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72336
72337 2005-03-10  Jim Meyering  <jim@meyering.net>
72338
72339         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72340         so that this module works on systems without fchdir.
72341
72342 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72343
72344         Factor int-properties macros into a single file, except for
72345         glibc-related files.
72346         * lib/intprops.h: New file.
72347         * lib/getloadavg.c: Include it instead of limits.h.
72348         (INT_STRLEN_BOUND): Remove.
72349         * lib/human.c: Include intprops.h.
72350         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72351         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72352         302/1000.
72353         * lib/inttostr.h: Include intprops.h instead of limits.h.
72354         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72355         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72356         for consistency with intprops.h.
72357         (time_t_is_integer, twos_complement_arithmetic): Use them.
72358         * lib/sig2str.h: Include <signal.h>, intprops.h.
72359         (INT_STRLEN_BOUND): Remove.
72360         * lib/strftime.c (TYPE_SIGNED): Remove.
72361         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72362         * lib/strtol.c: Adjust comments to match intprops.h.
72363         * lib/userspec.c: Include intprops.h.
72364         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72365         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72366         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72367         instead of rolling our own expressions.
72368         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72369
72370         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72371         instead of int.
72372         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72373         the right thing even if adding 1900 would overflow.  Similarly
72374         for tm_mon + 1 and tm_yday + 1.
72375         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72376         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72377         (DO_SIGNED_NUMBER): New macro.
72378         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72379
72380 2005-03-07  Bruno Haible  <bruno@clisp.org>
72381
72382         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72383
72384 2005-03-07  Bruno Haible  <bruno@clisp.org>
72385
72386         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72387
72388 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72389
72390         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72391         (func_import): Only replace files via --import when they have actually
72392         changed.
72393
72394 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72395
72396         * m4/mmap-anon.m4: New file.
72397         * m4/pagealign_alloc.m4: New file.
72398
72399 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72400             Bruno Haible  <bruno@clisp.org>
72401
72402         * modules/pagealign_alloc: New file.
72403         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72404
72405 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72406             Bruno Haible  <bruno@clisp.org>
72407
72408         * lib/pagealign_alloc.h: New file.
72409         * lib/pagealign_alloc.c: New file.
72410
72411 2005-03-03  Bruno Haible  <bruno@clisp.org>
72412
72413         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72414         Use an all-permissive copyright notice, recommended by RMS.
72415
72416 2005-03-02  Bruno Haible  <bruno@clisp.org>
72417
72418         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72419         of AIX, the replacement has to be done only after <string.h> is
72420         included, therefore not in config.h. stpncpy.h does the replacement,
72421         and stpncpy.c uses it.
72422
72423 2005-03-02  Bruno Haible  <bruno@clisp.org>
72424
72425         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72426         stpncpy.c uses it.
72427
72428 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72429
72430         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72431         The workaround isn't strictly needed for POSIX conformance, and
72432         it's too much of a pain to configure and maintain.  We'll ask
72433         people to fix their kernels instead.
72434         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72435         (NANOSLEEP_BUG_WORKAROUND): Remove.
72436         (xnanosleep): Remove the workaround.
72437
72438 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72439
72440         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72441         Reported by Derek Price.
72442         (Include): Add "timespec.h".
72443
72444         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72445
72446 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72447
72448         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72449         to detect nanosleep bug.
72450
72451 2005-03-01  Bruno Haible  <bruno@clisp.org>
72452
72453         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72454
72455 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72456
72457         * modules/gethrxtime: New file.
72458         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72459         (Depends-on): Add gethrxtime.
72460         (configure.ac): Add gl_XNANOSLEEP.
72461         (Makefile.am): Remove lib_SOURCES line.
72462
72463 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72464
72465         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72466         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72467
72468 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72469
72470         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72471         * lib/timespec.h (gettime): Return void, since it always
72472         succeeds now.  All uses changed.
72473         * lib/gettime.c (gettime): Likewise.
72474         [HAVE_NANOTIME]: Prefer nanotime.
72475         Assume gettimeofday succeeds, as POSIX requires.
72476         Assime time () succeeds, since other code already does.
72477         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72478         (timespec_subtract): Remove.
72479         (NANOSLEEP_BUG_WORKAROUND): New constant.
72480         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72481         things considerably.  Use it only on GNU/Linux hosts, since the
72482         workaround shouldn't be needed elsewhere.
72483
72484 2005-02-24  Bruno Haible  <bruno@clisp.org>
72485
72486         * modules/gettext (Files): Add m4/glibc2.m4.
72487
72488 2005-02-24  Bruno Haible  <bruno@clisp.org>
72489
72490         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72491         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72492         * m4/progtest.m4:
72493         Update from GNU gettext 0.14.2.
72494         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72495
72496 2005-02-24  Bruno Haible  <bruno@clisp.org>
72497
72498         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72499         * lib/config.charset: Update from GNU gettext 0.14.2.
72500
72501 2005-02-24  Bruno Haible  <bruno@clisp.org>
72502
72503         * lib/gettext.h: Update from GNU gettext 0.14.2.
72504
72505 2005-02-23  Simon Josefsson  <jas@extundo.com>
72506
72507         * m4/iconvme.m4: New file.
72508
72509 2005-02-23  Jim Meyering  <jim@meyering.net>
72510
72511         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72512         change.
72513         Thanks to Bruno Haible for catching it.
72514
72515 2005-02-22  Simon Josefsson  <jas@extundo.com>
72516
72517         * modules/iconvme: New file.
72518
72519         * MODULES.html.sh: Add iconvme.
72520
72521 2005-02-22  Simon Josefsson  <jas@extundo.com>
72522
72523         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72524
72525 2005-02-22  Simon Josefsson  <jas@extundo.com>
72526
72527         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
72528
72529 2005-02-22  Jim Meyering  <jim@meyering.net>
72530
72531         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
72532         s/ifndef/ifdef/.
72533
72534 2005-02-20  Neil Conway  <neilc@samurai.com>
72535
72536         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
72537         returned by OSX/Darwin if the specified buffer is not large
72538         enough for the hostname.
72539
72540 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72541
72542         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
72543         pass it to _help, otherwise the latter coredumps trying to
72544         dereference state.root_argp.
72545
72546 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72547
72548         * modules/chdir-long (Depends-on): Add memrchr.
72549         * modules/memrchr (Files): Add lib/memrchr.h.
72550         (Include): "memrchr.h".
72551
72552 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72553
72554         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
72555
72556 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72557
72558         * lib/memrchr.h: New file.
72559         * lib/chdir-long.c: Include it.
72560         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
72561         Don't bother including stddef.h.
72562
72563 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72564
72565         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
72566         inclusion.
72567         Include <sys/types.h>, for dev_t.
72568         (ME_DUMMY, ME_REMOTE): Move from here....
72569         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
72570         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
72571         Dmitry V. Levin.
72572         Include mountlist.h first, to test the interface.
72573
72574 2005-01-29  Bruno Haible  <bruno@clisp.org>
72575
72576         * lib/progname.c (program_name): Initialize.
72577         Needed when linking statically on MacOS X.
72578
72579 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72580
72581         Sync from coreutils.
72582         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
72583         (Depends-on): Add c-strtod.
72584         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
72585
72586 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72587
72588         Sync from coreutils.
72589         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
72590
72591         Remove files that are specific to coreutils.
72592         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
72593
72594 2005-01-28  Bruno Haible  <bruno@clisp.org>
72595
72596         * modules/javacomp: New file.
72597         * MODULES.html.sh (Java): Add javacomp.
72598
72599 2005-01-28  Bruno Haible  <bruno@clisp.org>
72600
72601         * m4/javacomp.m4: New file, from GNU gettext.
72602
72603 2005-01-28  Bruno Haible  <bruno@clisp.org>
72604
72605         * lib/javacomp.sh.in: New file, from GNU gettext.
72606         * lib/javacomp.h: New file, from GNU gettext.
72607         * lib/javacomp.c: New file, from GNU gettext.
72608
72609 2005-01-26  Simon Josefsson  <jas@extundo.com>
72610
72611         * lib/gai_strerror.c: Use GPL in header.
72612
72613 2005-01-26  Bruno Haible  <bruno@clisp.org>
72614
72615         * modules/javaexec: New file.
72616         * MODULES.html.sh (Java): Add javaexec.
72617
72618 2005-01-26  Bruno Haible  <bruno@clisp.org>
72619
72620         * m4/javaexec.m4: New file, from GNU gettext.
72621
72622 2005-01-26  Bruno Haible  <bruno@clisp.org>
72623
72624         * lib/javaexec.sh.in: New file, from GNU gettext.
72625         * lib/javaexec.h: New file, from GNU gettext.
72626         * lib/javaexec.c: New file, from GNU gettext.
72627
72628 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72629
72630         * modules/lchown (Depends-on): Remove lchown.h
72631
72632 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72633
72634         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72635         must be defined if the header file was not found, in order
72636         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72637
72638 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72639
72640         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72641         initializers for struct pentry_state.
72642         (__argp_error): Check return value of __asprintf
72643         (__argp_failure): Translate error message
72644
72645         * lib/argp-parse.c: Removed braces around the expansion of N_()
72646
72647 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72648
72649         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72650         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72651         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72652         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72653         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72654         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72655         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72656         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72657         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72658         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72659         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72660         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72661         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72662         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72663         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72664         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72665         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72666         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72667         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72668         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72669         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72670         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72671         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72672         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72673         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72674         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72675         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72676         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72677         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72678         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72679         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72680         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72681         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72682         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72683         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72684         Use an all-permissive copyright notice, recommended by RMS.
72685
72686 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72687
72688         * modules/chdir-long (Depends-on): Remove mempcpy.
72689
72690 2005-01-21  Jim Meyering  <jim@meyering.net>
72691
72692         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
72693         same value as for Solaris 9.
72694
72695         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
72696         component length.  This included changing the parameter to be
72697         of type `char *' rather than `char const *'.
72698         * lib/chdir-long.h (chdir_long): Update prototype.
72699
72700         * lib/openat.c (fdopendir, fstatat): New functions.
72701         * lib/openat.h: Include headers required for use of DIR and struct
72702         stat.
72703         [AT_SYMLINK_NOFOLLOW]: Define.
72704         (fdopendir, fstatat): Add prototypes.
72705
72706 2005-01-21  Bruno Haible  <bruno@clisp.org>
72707
72708         * modules/classpath: New file.
72709         * MODULES.html.sh (Java): Add classpath.
72710
72711 2005-01-21  Bruno Haible  <bruno@clisp.org>
72712
72713         * lib/classpath.h: New file, from GNU gettext.
72714         * lib/classpath.c: New file, from GNU gettext.
72715
72716 2005-01-20  Simon Josefsson  <jas@extundo.com>
72717
72718         * modules/version-etc-fsf: New file.
72719
72720 2005-01-20  Simon Josefsson  <jas@extundo.com>
72721
72722         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
72723         * lib/version-etc.c: Remove version_etc_copyright.
72724         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
72725         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
72726
72727 2005-01-20  Simon Josefsson  <jas@extundo.com>
72728
72729         * lib/base64.h (isbase64): Add.
72730
72731         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
72732         using a unsigned prototype, don't inline.
72733         (base64_decode): Use it.
72734
72735 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72736
72737         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
72738         it.
72739
72740 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72741
72742         * lib/save-cwd.c (save_cwd): Remove code to support the case
72743         where fchdir is missing or flaky.
72744
72745 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72746
72747         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
72748
72749 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72750
72751         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
72752         AC_LIBSOURCES now does this.
72753         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
72754         with new ullong_max module.
72755
72756 2005-01-19  Bruno Haible  <bruno@clisp.org>
72757
72758         * modules/sh-quote: New file.
72759         * MODULES.html.sh (Executing programs): Add sh-quote.
72760
72761 2005-01-19  Bruno Haible  <bruno@clisp.org>
72762
72763         * lib/sh-quote.h: New file, from GNU gettext.
72764         * lib/sh-quote.c: New file, from GNU gettext.
72765
72766 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72767
72768         Merge from coreutils.
72769         * m4/ullong_max.m4: New file.
72770         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
72771         (gl_MACROS): Assume localeconv exists.
72772
72773 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72774
72775         Merge changes from coreutils, as described below in several
72776         changelogs dated today.
72777
72778         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
72779         (O_DIRECTORY): Remove; not needed here, since "." must be
72780         a directory.  All uses removed.
72781         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
72782         universal on Suns, and we also need to test for IRIX.
72783         Revamp code to use 'if' rather than '#if'.
72784         Avoid unnecessary comparison of cwd->desc to 0.
72785
72786         * lib/utimens.c (futimens): Robustify the previous patch, by checking
72787         for known valid error numbers rather than observed invalid ones.
72788
72789 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72790
72791         * modules/ullong_max: New file.
72792
72793         * modules/chdir-long, modules/openat: New files.
72794         * modules/save-cwd (Depends-on): Depend on chdir-long.
72795         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
72796
72797 2005-01-18  Jim Meyering  <jim@meyering.net>
72798
72799         Merge from coreutils.
72800         * m4/chdir-long.m4, m4/openat.m4: New files.
72801         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
72802         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
72803         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
72804         is sane and DOES follow symlinks.  Besides, testing 20 different
72805         systems found no broken chown implementations.
72806         Prompted by a change in rsync's copy of this macro.
72807         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
72808
72809         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
72810
72811         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
72812         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
72813         NULL-means-set-to-current-time semantics.
72814         Remove temporary file immediately, rather than waiting
72815         for configure's at-exit trap code to do it.
72816
72817 2005-01-18  Jim Meyering  <jim@meyering.net>
72818
72819         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72820
72821         * lib/utimens.c (futimens): Account for the fact that futimes
72822         can also fail with errno == ENOSYS or errno == ENOENT.
72823         Patch from Dmitry V. Levin.
72824
72825         Change the name of the robust chdir function from chdir to chdir_long.
72826         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
72827         (restore_cwd): Use chdir_long, not chdir.
72828         * lib/chdir-long.c: Renamed from chdir.c.
72829         * lib/chdir-long.h: Renamed from chdir.h.
72830         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
72831         Hurd.
72832
72833 2005-01-18  Bruno Haible  <bruno@clisp.org>
72834
72835         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
72836         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
72837         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
72838         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
72839         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
72840         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
72841         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
72842         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
72843         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
72844         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
72845         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
72846         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
72847         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
72848         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
72849         Use an all-permissive copyright notice, recommended by RMS.
72850
72851 2005-01-18  Bob Proulx  <bob@proulx.com>
72852
72853         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
72854         simplify offsetof() macro construct to avoid compile failure with
72855         native HP-UX 11.0 ANSI C compiler.
72856
72857 2005-01-17  Bruno Haible  <bruno@clisp.org>
72858
72859         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
72860         redundant because stpncpy.m4 takes care of it.
72861
72862 2005-01-17  Bruno Haible  <bruno@clisp.org>
72863
72864         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
72865
72866 2005-01-17  Bruno Haible  <bruno@clisp.org>
72867
72868         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
72869         used.
72870
72871 2005-01-17  Bruno Haible  <bruno@clisp.org>
72872
72873         * lib/fwriteerror.h (fwriteerror): Change specification to include
72874         fclose.
72875         * lib/fwriteerror.c: Include <stdbool.h>.
72876         (fwriteerror): At the end, close the file stream. Record whether
72877         stdout was already closed.
72878
72879 2005-01-17  Bruno Haible  <bruno@clisp.org>
72880
72881         * lib/execute.c (environ): Declare if needed.
72882         * lib/pipe.c (environ): Likewise.
72883         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
72884
72885 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72886
72887         * modules/argp: Depend on vsnprintf
72888
72889 2005-01-10  Jim Meyering  <jim@meyering.net>
72890
72891         * modules/closeout (Depends-on): Add atexit.
72892
72893 2005-01-06  Bruno Haible  <bruno@clisp.org>
72894
72895         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
72896
72897 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72898
72899         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
72900         definitions to be after all include files, to avoid collisions.
72901         Problem reported by Bob Proulx.
72902
72903 2005-01-04  Jim Meyering  <jim@meyering.net>
72904
72905         Changes imported from coreutils.
72906         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
72907         as the mkstemp template, use a temporary directory and an
72908         8.3-friendly template to avoid trouble on systems like DJGPP.
72909         Reported by Juan M. Guerrero via Stepan Kasal.
72910         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
72911         close. Remove the temporary directory right away, rather than waiting
72912         for configure's at-exit trap code to do it.
72913         Suggestion from Stepan Kasal.
72914
72915 2005-01-01  Simon Josefsson  <jas@extundo.com>
72916
72917         * gnulib-tool: Print #include directives when --import'ing.
72918
72919 2004-12-28  Simon Josefsson  <jas@extundo.com>
72920
72921         * tests/test-base64.c: Include required header files.  Remove
72922         unused variables.
72923
72924 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72925
72926         * modules/error (Depends-on): Remove gettext.
72927
72928 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72929
72930         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
72931         not needed.  This removes a dependency on the gettext module.
72932         [defined _LIBC]: Do not include <libintl.h>; not needed.
72933
72934 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72935
72936         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
72937         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
72938
72939 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72940
72941         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
72942         HAVE_DECL_STRTOLD.
72943
72944 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72945
72946         * modules/getdate (Depends-on): Remove alloca-opt.
72947
72948 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72949
72950         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
72951
72952 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72953
72954         * lib/argp-parse.c: Include <stddef.h>.
72955         (alignof, alignto): New macros.
72956         (parser_init): Don't assume that void * is aligned sufficiently
72957         for struct option.
72958
72959         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
72960         need to extend the stack.
72961         (YYINITDEPTH): New macro, so that the initial stack isn't overly
72962         large.
72963
72964 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72965
72966         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
72967
72968 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72969
72970         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
72971         (2004-10-24) change.  Apparently this was a false alarm.
72972
72973         * modules/getdate: Depend on alloca-opt, not alloca.
72974
72975 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72976
72977         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
72978         Remove now-obsolete comment about AIX.
72979         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
72980         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
72981         (YYMAXDEPTH): New macro.
72982
72983 2004-12-18  Simon Josefsson  <jas@extundo.com>
72984
72985         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
72986
72987 2004-12-18  Bruno Haible  <bruno@clisp.org>
72988
72989         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
72990
72991 2004-12-18  Bruno Haible  <bruno@clisp.org>
72992
72993         * lib/fatal-signal.c (fatal_signals): Make non-const.
72994         (init_fatal_signals): New function.
72995         (uninstall_handlers, install_handlers): Ignore signals that were set to
72996         SIG_IGN.
72997         (at_fatal_signal): Call init_fatal_signals.
72998         (init_fatal_signal_set): Likewise. Ignore signals that were set to
72999         SIG_IGN.
73000         Reported by Paul Eggert.
73001
73002 2004-12-18  Bruno Haible  <bruno@clisp.org>
73003
73004         * doc/alloca.texi: New file.
73005         * doc/alloca-opt.texi: New file.
73006
73007 2004-12-17  Jim Meyering  <jim@meyering.net>
73008
73009         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
73010         Otherwise, install-sh could exit with improper exit status when
73011         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
73012
73013 2004-12-16  Simon Josefsson  <jas@extundo.com>
73014
73015         * tests/test-base64.c: Add license.
73016
73017 2004-12-15  Stepan Kasal  <address@hidden>
73018
73019         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
73020
73021 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
73022
73023         * modules/getcwd (Files): Add m4/d-ino.m4.
73024         Suggested by Mark D. Baushke.
73025
73026 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73027
73028         * lib/getdate.y (textint): New member "negative".
73029         (time_zone_hhmm): New function.
73030         Expect 14 shift-reduce conflicts, not 13.
73031         (o_colon_minutes): New rule.
73032         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
73033         (yylex): Set the "negative" member of signed numbers.
73034
73035 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73036
73037         * doc/getdate.texi (Time of day items, Time zone items):
73038         Describe new formats +00:00, UTC+00:00.
73039
73040 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73041
73042         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
73043         spurious "-l"s.  Problem reported by Stepan Kasal.
73044
73045 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
73046
73047         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
73048         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
73049
73050 2004-12-04  Simon Josefsson  <jas@extundo.com>
73051
73052         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
73053         Vandoorselaere <yoann@prelude-ids.org>.
73054
73055 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73056
73057         Changes imported from coreutils.
73058         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
73059         exist.
73060         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
73061
73062 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73063
73064         Changes imported from coreutils.
73065         * lib/hard-locale.c: Assume <locale.h> exists.
73066         Include "strdup.h".
73067         (GLIBC_VERSION): New macro.
73068         (hard_locale): Assume setlocale exists.
73069         Rewrite to avoid #ifdef.
73070         Use strdup rather than malloc + strcpy.
73071         * lib/human.c: Assume <locale.h> exists.
73072         (human_readable): Assume localeconv exists.
73073
73074 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73075
73076         * modules/hard-locale (Depends-on): Add strdup.
73077
73078 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73079
73080         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
73081         convert T2, not T.  (Imported from libc.)
73082
73083 2004-11-30  Simon Josefsson  <jas@extundo.com>
73084
73085         * modules/restrict (License): Change to LGPL.
73086
73087 2004-11-30  Simon Josefsson  <jas@extundo.com>
73088
73089         * m4/restrict.m4: Add copyright and copying conditions.
73090
73091 2004-11-30  Simon Josefsson  <jas@extundo.com>
73092
73093         * m4/base64.m4: New file.
73094
73095 2004-11-30  Simon Josefsson  <jas@extundo.com>
73096
73097         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
73098         base64.
73099
73100         * tests/test-base64.c: New file.
73101
73102         * modules/base64: New file.
73103
73104 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73105
73106         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
73107         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
73108
73109         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
73110
73111 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
73112
73113         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
73114         (__getcwd.c): Don't restore errno; glibc doesn't.
73115         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
73116         first, falling back to our code only if its results look suspicious.
73117         Ensure that the resulting buffer is only as large as necessary.
73118
73119         * lib/readutmp.c: Include readutmp.h first.
73120         Include <errno.h>, since readutmp.h no longer does that.
73121         * lib/readutmp.h: Don't include <errno.h>,
73122         <sys/param.h>, <time.h>; not needed to establish interface.
73123         (errno): Remove decl.
73124         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
73125         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
73126         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
73127
73128 2004-11-28  Simon Josefsson  <jas@extundo.com>
73129
73130         * lib/base64.h, base64.c: New file.
73131
73132 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73133
73134         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
73135
73136 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73137
73138         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
73139         (Depends-on): Remove pathmax, same.  Add mempcpy.
73140         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
73141         (Makefile.am): Append getcwd.h to lib_SOURCES.
73142         (Include): Add getcwd.h.
73143         (Maintainer): Change from Jim Meyering to "all, glibc",
73144         since getdate now uses intended-for-glibc code.
73145         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
73146         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
73147
73148 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73149
73150         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
73151         HP's ANSI C compiler.
73152         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
73153         Declaring int functions causes warnings on some modern systems and
73154         shouldn't be needed to compile on ancient ones.
73155         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
73156         defined.
73157
73158         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
73159         with the following changes.
73160         (__set_errno): Parenthesize properly.
73161         Include <stdbool.h>.
73162         (MIN, MAX, MATCHING_INO): New macros.
73163         (__getcwd): Define with prototype, not K&R form.
73164         Use heuristics to allocate default buffer on stack if possible.
73165         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
73166         behavior, and to avoid the PATH_MAX limit when computing
73167         ../../../../...
73168         Use MATCHING_INO to compare inode number to file.
73169         Check for arithmetic overflow in size calculations.
73170         Fix bug in reallocation of dot array that caused getcwd to fail
73171         on directories nested deeper than 75.
73172         Be more careful about saving errno on error.
73173         Do not use realloc; use only free+malloc, as this is a bit
73174         more flexible and avoids a needless copy operation.
73175         Do not inspect st_dev and st_ino for symbolic links; POSIX
73176         doesn't specify the latter.
73177         Check for closedir errors.
73178         Avoid needless casts.
73179         Use "#ifdef weak_alias" around weak_alias, to be like other
73180         glibc code.
73181         The following changes to getcwd.c have effect only when used in
73182         gnulib; they have no effect inside glibc proper.
73183         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
73184         as alloca isn't used.
73185         (alloca, __alloca): Likewise.
73186         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
73187         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73188         unconditionally, as gnulib assumes C89 or better.
73189         Do not include <sys/param.h>.
73190         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
73191         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
73192         better.
73193         (NULL) [!defined NULL]: Remove; we assume C89 or better.
73194         Include <dirent.h> in a way that is compatible with modern Autoconf.
73195         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
73196         New macros, if not already defined.
73197         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
73198         Use "_LIBC", not "defined _LIBC", for consistency.
73199         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
73200         a mempcpy module.
73201         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
73202         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
73203         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
73204         credit only to Jim Meyering and adjust the copyright dates.
73205         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
73206         <stdlib.h>, <unistd.h>, "pathmax.h".
73207         Instead, include "xgetcwd.h" (first) and "getcwd.h".
73208         (INITIAL_BUFFER_SIZE): Remove.
73209         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
73210
73211 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73212
73213         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
73214         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
73215         Use the _ONCE methods, for efficiency.
73216         Check for fcntl.h.  In test program, include <errno.h>
73217         and <fcntl.h> if available.  Remove old K&R cruft from
73218         test program.  Check for common errors in GNU/Linux,
73219         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
73220         don't do AC_LIBOBJ, as that's getcwd.m4's job.
73221         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
73222         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
73223         name accordingly.
73224         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
73225         accommodate new getcwd.c.
73226         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
73227         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
73228         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
73229         that's all we need now.
73230
73231 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73232
73233         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
73234         argp-parse.c depends on getopt internals, that means we should
73235         always use our getopt, to be on the safe side.
73236         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
73237         order not to spoil the result of an eventual previous invocation
73238         of gl_GETOPT_SUBSTITUTE.
73239
73240 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73241
73242         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
73243         redefinition warnings. To avoid them, include the defines
73244         in `#if !defined __need_getopt ... #endif'. The only place
73245         where __getopt_argv_const is used is in definitions
73246         of getopt_long and getopt_long_only below, which are as well
73247         protected by `#ifndef __need_getopt'.
73248         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
73249         __need_getopt after including <stdio.h> and <unistd.h> These
73250         headers might have defined it.
73251
73252 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73253
73254         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
73255
73256 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
73257
73258         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
73259         (futimens): New function, which uses futimes if available.
73260         (futimens, utimens): Support timespec==NULL, with same semantics
73261         as utime and utimens.
73262         * lib/utimens.h (futimens): New decl.
73263
73264 2004-11-23  Jim Meyering  <jim@meyering.net>
73265
73266         * lib/getopt_.h: Remove trailing blanks.
73267
73268 2004-11-23  Jim Meyering  <jim@meyering.net>
73269
73270         * lib/__fpending.c: Add comment.
73271
73272 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
73273
73274         * modules/canonicalize (Depends-on): Add xreadlink.
73275         Problem reported by James Youngman.
73276
73277 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73278
73279         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
73280         New macros.
73281         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
73282         optopt): Use them instead of invoking ## directly; otherwise, the
73283         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
73284
73285 2004-11-19  Bruno Haible  <bruno@clisp.org>
73286
73287         * lib/strtok_r.c: Move comments from here...
73288         * lib/strtok_r.h: ... to here.
73289
73290 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73291
73292         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
73293         implementations that mishandle size_t overflow.
73294
73295 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73296
73297         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
73298         might fail.  Problem reported by Yoann Vandoorselaere.
73299         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
73300         implementations that mishandle size_t overflow.
73301
73302 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73303
73304         * modules/canon-host (Depends-on): Add strdup.
73305
73306 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73307
73308         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73309
73310 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73311
73312         * lib/canon-host.c: Include "strdup.h".
73313         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73314         Use strdup instead of malloc/strcpy to duplicate strings.
73315
73316         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73317         (human_space_before_unit): New constant.
73318         * lib/human.c (human_readable): Support it.
73319
73320         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73321         (xgetcwd): Set errno correctly when failing.
73322         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73323         the failure is actually due to a PATH_MAX problem.
73324
73325         Further getopt changes to make it more likely that glibc will
73326         buy the changes back.
73327         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73328         (getopt): Use it, so to preserve glibc semantic
73329         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73330         when compiling for libc.
73331         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73332         (getopt_long, getopt_long_only): Use it.
73333
73334         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73335         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73336         (getopt): Argv is now char * const *, as per standard.
73337         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73338         not char *__getopt_argv_const *.
73339         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73340         _getopt_long_only_r): Likewise.
73341         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73342         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73343         _getopt_long_r, _getopt_long_only_r): Likewise.
73344         * lib/getopt_.h (__getopt_argv_const): Remove.
73345         (getopt): Argv is now char * const *, as per standard.
73346
73347         * lib/getdate.y (tORDINAL): New token.
73348         (day, relunit): Allow it for relative times.
73349         (relative_time_table): Use tORDINAL for ordinals.
73350
73351 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73352
73353         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73354         Document that "second" isn't allowed as an ordinal number.
73355
73356 2004-11-16  Jim Meyering  <jim@meyering.net>
73357
73358         * modules/closeout (Depends-on): Add fpending.
73359
73360 2004-11-15  Jim Meyering  <jim@meyering.net>
73361
73362         * lib/closeout.c: Include "__fpending.h" once again.
73363         Include <stdbool.h>.
73364         (close_stdout): Don't fail just because stdout was closed initially,
73365         since some programs don't write to stdout in the normal course of
73366         operation (other than --version and --help), and we don't want this
73367         function to make e.g. `touch file >&-' fail.
73368         But do fail if it was closed and someone has tried to write to it.
73369         E.g., `printf foo >&-' must fail.
73370
73371 2004-11-13  Jim Meyering  <jim@meyering.net>
73372
73373         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73374
73375 2004-11-12  Simon Josefsson  <jas@extundo.com>
73376
73377         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73378         small doc fix is still pending.
73379
73380 2004-11-11  Simon Josefsson  <jas@extundo.com>
73381
73382         * modules/strtok_r: New file.
73383
73384         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73385         strtok_r.
73386
73387 2004-11-11  Simon Josefsson  <jas@extundo.com>
73388
73389         * m4/strtok_r.m4: New file.
73390
73391         * m4/getopt.m4: Replace opterr.
73392
73393 2004-11-11  Simon Josefsson  <jas@extundo.com>
73394
73395         * lib/strtok_r.h, strtok_r.c: New file.
73396
73397 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73398
73399         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73400         of replacing opterr, getopt, etc.  This should handle the
73401         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73402
73403 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73404
73405         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73406         we can stop lying to compilers about the constness of argv when we
73407         are compiled outside glibc.
73408         (getopt, getopt_long, getopt_long_only): Use it.
73409         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73410         _getopt_internal, getopt): Likewise.
73411         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73412         _getopt_long_only_r): Likewise.
73413         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73414         _getopt_long_r, _getopt_long_only_r): Likewise.
73415
73416         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73417         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73418         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73419         the other external symbols.
73420         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73421         declaration, since the above renaming now works around collisions.
73422
73423 2004-11-11  Jim Meyering  <jim@meyering.net>
73424
73425         * lib/linebreak.c: Remove trailing blanks.
73426         * lib/alloca_.h: Likewise.
73427         * lib/acosl.c: Likewise.
73428         * lib/euidaccess.c: Likewise.
73429         * lib/allocsa.h: Likewise.
73430
73431 2004-11-10  Simon Josefsson  <jas@extundo.com>
73432
73433         * m4/getaddrinfo.m4: New file.
73434
73435 2004-11-10  Simon Josefsson  <jas@extundo.com>
73436
73437         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73438
73439 2004-11-10  Simon Josefsson  <jas@extundo.com>
73440
73441         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73442         getaddrinfo.
73443
73444         * modules/getaddrinfo: New file.
73445
73446 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73447
73448         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73449
73450 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73451
73452         * lib/mktime.c (SHR): New macro, which is a portable
73453         substitute for >> that should work even on Crays.
73454         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73455         Problem reported by Mark D. Baushke in
73456         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73457         * lib/getdate.y (SHR): Likewise.
73458         (tm_diff): Use it.
73459         * lib/strftime.c (SHR): Likewise.
73460         (tm_diff): Use it.
73461         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73462         quote_these_too, so that right shifts are well defined.  All uses
73463         changed.
73464
73465 2004-11-10  Jim Meyering  <jim@meyering.net>
73466
73467         Ensure that no close failure goes unreported.
73468         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73469         return early when it seems there's nothing to flush.
73470         Don't include __fpending.h.
73471
73472 2004-11-10  Jim Meyering  <jim@meyering.net>
73473
73474         * modules/closeout (Depends-on): Remove fpending.
73475
73476 2004-11-10  Jim Meyering  <jim@meyering.net>
73477
73478         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73479
73480 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73481
73482         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73483         gl_FUNC_STRFTIME.
73484         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73485         and AC_REQUIRE when possible, to avoid duplicate checks.
73486         Check for <wchar.h>.
73487
73488 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73489
73490         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73491
73492 2004-11-09  Bruno Haible  <bruno@clisp.org>
73493
73494         * m4/sockpfaf.m4: New file.
73495
73496 2004-11-05  Bruno Haible  <bruno@clisp.org>
73497
73498         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73499         Reported by Mark D. Baushke <mdb@cvshome.org>.
73500
73501 2004-11-04  Bruno Haible  <bruno@clisp.org>
73502
73503         2004-09-11  Bruno Haible  <bruno@clisp.org>
73504                 * allocsa.valgrind: New file.
73505         2004-02-06  Bruno Haible  <bruno@clisp.org>
73506                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73507                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73508                 Reported by Christopher Seip <chris.seip@hp.com>.
73509
73510 2004-11-04  Bruno Haible  <bruno@clisp.org>
73511
73512         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73513         (Makefile.am): Distribute it.
73514
73515 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73516
73517         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73518         with errno == ERANGE if the buffer is too small.
73519         Problem reported by Mark D. Baushke.
73520
73521 2004-11-03  Albert Chin  <china@thewrittenword.com>
73522             Paul Eggert  <eggert@cs.ucla.edu>
73523
73524         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73525         equivalent, substitute $ac_type for equivalent type rather than
73526         blindly using uint32_t *always* which won't work if uint32_t is not
73527         available.  Define _UINT32_T to work around typedef of uint32_t if
73528         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
73529         2.5.1.
73530
73531 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73532
73533         * m4/jm-macros.m4: Sync from coreutils.
73534         (gl_MACROS): Check for mbrlen, for pathchk.
73535         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
73536
73537 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73538
73539         * lib/xreadlink.c (MAXSIZE): New macro.
73540         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
73541         size does not exceed MAXSIZE.  Avoid cast.
73542         As suggested by Mark D. Baushke in
73543         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
73544         if readlink fails with buffer size just under MAXSIZE, try again
73545         with MAXSIZE.
73546
73547 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73548
73549         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
73550
73551 2004-11-02  Derek R. Price  <derek@ximbiot.com>
73552         and  Paul Eggert  <eggert@cs.ucla.edu>
73553
73554         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
73555         (get_date): Overparenthesize to avoid GCC warning.
73556
73557 2004-11-02  Bruno Haible  <bruno@clisp.org>
73558
73559         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
73560         returns void.
73561
73562 2004-11-02  Bruno Haible  <bruno@clisp.org>
73563
73564         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
73565         function returns void.
73566
73567 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73568
73569         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
73570         fflush_unlocked, flockfile, funlockfile, funlockfile,
73571         fputs_unlocked, putc_unlocked.
73572
73573 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73574
73575         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73576         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
73577         already declared.
73578
73579 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73580
73581         * modules/getdate (Files): Add doc/getdate.texi.
73582         (Depends-on): Add setenv, xalloc.
73583
73584 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73585
73586         * lib/getdate.y: Add support for TZ="foo" within a date string.
73587         Fix some bugs near time_t boundaries.  Reject dates with
73588         out-of-range components, e.g., "Sept 31".
73589         Include <stdlib.h>, "setenv.h", "xalloc.h".
73590         (ISDIGIT_LOCALE): Remove; unused.
73591         Note that the TZ and time functions used here are not reentrant.
73592         (mktime_ok, get_tz): New functions.
73593         (TZBUFSIZE): New constant.
73594         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
73595         This requires that we sometimes generate our own TZ="XXX..." setting.
73596
73597 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73598
73599         * doc/getdate.texi: New file, from coreutils with modifications for
73600         the new TZ parsing.
73601
73602 2004-10-27  Derek R. Price  <derek@ximbiot.com>
73603
73604         * lib/mktime.c (not_equal_tm): Remove redundant check.
73605
73606 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73607
73608         * modules/regex (lib_SOURCES): Add regex.c.
73609         Reported by James Youngman in
73610         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
73611
73612 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73613
73614         * lib/getdate.y: Use Bison 1.875 features, and some minor
73615         code cleanups.  This change does not affect semantics.
73616         Don't include <stdlib.h>; no longer needed.
73617         Don't include unlocked-io.h; only the "#if TEST" code uses
73618         stdio, and performance isn't crucial there.
73619         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73620         Bison 1.875 features as described below.
73621         All uses of "PC." replaced by "pc->".
73622         (YYSTYPE): Add a forward declaration.
73623         (yylex, yyerror): Use full prototypes in forward decls.
73624         Use "%pure-parser" rather than obsolescent "%pure_parser".
73625         Use %parse-param and %lex-param instead of obsolescent
73626         YYPARSE_PARAM and YYLEX_PARAM.
73627         (meridian_table, month_and_day_table, time_units_table,
73628         relative_time_table, time_zone_table, military_table,
73629         lookup_zone, lookup_word, get_date):
73630         Use NULL instead of 0 where appropriate.
73631         (to_hour): Avoid abort (), to avoid a dependency on
73632         stdlib.h.
73633         (yyerror, yylex): Now accepts parser_control * arg.
73634         (main) [TEST]: Use '\0' rather than 0 for char.
73635
73636 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73637
73638         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73639
73640 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73641
73642         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73643         It's now the caller's responsibility to handle the case where
73644         !HAVE_GETPAGESIZE && !defined getpagesize.
73645
73646         * lib/mktime.c (leapyear): Arg is long int, not int.
73647
73648 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73649
73650         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73651
73652 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73653
73654         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73655         missing.  Problem reported by James Youngman.
73656
73657 2004-10-16  Simon Josefsson  <jas@extundo.com>
73658
73659         * gnulib-tool: Fix comments.  Fix parse problem.
73660         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73661
73662 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73663
73664         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73665         implementation of getopt_long.  Problem reported by Alexander Taler in:
73666         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73667
73668 2004-10-15  Bruno Haible  <bruno@clisp.org>
73669
73670         * gnulib-tool: Untabify. Initialize supplied_libname.
73671         (func_usage): More homogenous output.
73672         (func_modules_transitive_closure, func_modules_to_filelist,
73673         func_emit_lib_Makefile_am): New functions.
73674         (func_import): New function, extracted from big case statement. Use
73675         func_get_license, func_modules_transitive_closure,
73676         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73677         opt_lgpl. Don't use test -a, as it's not portable.
73678         (func_create_testdir): Use func_modules_transitive_closure,
73679         func_modules_to_filelist, func_emit_lib_Makefile_am.
73680
73681 2004-10-15  Bruno Haible  <bruno@clisp.org>
73682
73683         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73684
73685 2004-10-15  Bruno Haible  <bruno@clisp.org>
73686
73687         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73688         the portions belonging to each module.
73689         Suggested by Derek Robert Price <derek@ximbiot.com>.
73690
73691 2004-10-12  Simon Josefsson  <jas@extundo.com>
73692
73693         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73694         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
73695         to real functions.
73696
73697 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73698
73699         * modules/vsnprintf: New file.
73700
73701 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73702
73703         * m4/vsnprintf.m4: New file.
73704
73705 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73706
73707         * lib/vsnprintf.h: New file.
73708         * lib/vsnprintf.c: New file.
73709
73710 2004-10-11  Bruno Haible  <bruno@clisp.org>
73711
73712         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
73713         vsnprintf.
73714
73715 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73716
73717         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
73718
73719 2004-10-07  Bruno Haible  <bruno@clisp.org>
73720
73721         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
73722         fits into the provided buffer.
73723
73724 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73725
73726         * lib/diacrit.c, diacrit.h: Add GPL notice.
73727
73728         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
73729         notice.
73730         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
73731         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
73732         This avoids a potential constant-folding bug.
73733
73734 2004-10-05  Bruno Haible  <bruno@clisp.org>
73735
73736         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
73737         for the declaration of strsep.
73738
73739 2004-10-05  Bruno Haible  <bruno@clisp.org>
73740
73741         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
73742
73743 2004-10-04  Simon Josefsson  <jas@extundo.com>
73744
73745         * modules/memmem: New file.
73746         * tests/test-memmem.c: New file.
73747         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
73748
73749 2004-10-04  Simon Josefsson  <jas@extundo.com>
73750
73751         * m4/memmem.m4: New file.
73752
73753 2004-10-04  Simon Josefsson  <jas@extundo.com>
73754
73755         * lib/memmem.h: New file.
73756         * lib/memmem.c: New file, taken from glibc.
73757
73758 2004-10-04  Simon Josefsson  <jas@extundo.com>
73759
73760         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
73761         '#ifdef USE_UNLOCKED_IO'.
73762
73763 2004-10-04  Simon Josefsson  <jas@extundo.com>
73764
73765         * config/srclist.txt: Add memmem from glibc.
73766
73767 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73768
73769         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
73770
73771         * modules/argmatch, modules/argp, modules/closeout, modules/error,
73772         modules/exclude, modules/getdate, modules/getline,
73773         modules/getndelim2, modules/getpass, modules/getpass-gnu,
73774         modules/getusershell, modules/linebuffer, modules/md5,
73775         modules/mountlist, modules/posixtm, modules/readtokens,
73776         modules/readutmp, modules/regex, modules/sha1,
73777         modules/version-etc, modules/yesno:
73778         Remove dependency on unlocked-io.
73779
73780 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73781
73782         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
73783
73784         * m4/unlocked-io.m4: Add copyright notice.
73785         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
73786
73787 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73788
73789         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
73790         * lib/xmalloc.c (xmemdup): Likewise.
73791         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
73792         XFREE): Remove these long-obsolescent macros.
73793         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
73794         * lib/xstrdup.c: Remove.
73795
73796         * lib/regex.c (re_comp): Cast gettext return value to char *,
73797         Problem reported by Martin Neitzel via Mark D. Baushke.
73798
73799 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73800
73801         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
73802         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
73803         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
73804         regex.c, sha1.c, version-etc.c, yesno.c:
73805         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
73806         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
73807         the includer's responsibility.
73808
73809         Sync from coreutils.
73810
73811         * lib/modechange.c (mode_compile): Don't decrement a pointer that
73812         points to the start of a string, as the C Standard says the
73813         resulting behavior is undefined.
73814
73815         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
73816         simple -> simple_backups, numbered_existing ->
73817         numbered_existing_backups, numbered -> numbered_backups
73818         to avoid shadowing problems.  All uses changed.
73819         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
73820         * lib/backupfile.c (check_extension, numbered_backup):
73821         Rename locals to avoid shadowing 'basename'.
73822         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
73823         once.
73824
73825         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
73826         * lib/.cvsignore: Add getopt.h.
73827
73828 2004-10-04  Bruno Haible  <bruno@clisp.org>
73829
73830         * modules/README: New file.
73831         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
73832         not a module.
73833
73834 2004-10-02  Jim Meyering  <jim@meyering.net>
73835
73836         * lib/dirfd.h, getpagesize.h: Add copyright notice.
73837
73838 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73839
73840         * modules/strsep: New file.
73841
73842 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73843
73844         * m4/strsep.m4: New file.
73845
73846 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73847
73848         * lib/strsep.h: New file.
73849         * lib/strsep.c: New file.
73850
73851 2004-10-01  Simon Josefsson  <jas@extundo.com>
73852
73853         * lib/snprintf.c (snprintf): Handle size==0.
73854
73855 2004-10-01  Simon Josefsson  <jas@extundo.com>
73856             Bruno Haible  <bruno@clisp.org>
73857
73858         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
73859         (snprintf): Declare 'args'.
73860
73861 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
73862
73863         * lib/snprintf.c: Remove comments as to why each header is needed.
73864
73865 2004-10-01  Bruno Haible  <bruno@clisp.org>
73866
73867         * MODULES.html.sh: Add strsep.
73868
73869 2004-09-30  Simon Josefsson  <jas@extundo.com>
73870
73871         * modules/snprintf: New file.
73872
73873 2004-09-30  Simon Josefsson  <jas@extundo.com>
73874
73875         * m4/snprintf.m4: New file.
73876
73877 2004-09-30  Simon Josefsson  <jas@extundo.com>
73878
73879         * lib/snprintf.h, lib/snprintf.c: New files.
73880
73881 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73882
73883         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
73884         (hol_entry_help): Never translate an empty string.
73885         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
73886         * lib/argp.h (OPTION_NO_TRANS): New option.
73887
73888 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73889
73890         * modules/argp (Maintainer): Replace Simon Josefsson
73891         by Sergey Poznyakoff.
73892
73893 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73894
73895         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
73896         changes merged back into glibc.
73897
73898 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73899
73900         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
73901
73902 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73903
73904         * lib/xvasprintf.c: Include xalloc.h.
73905         (xvasprintf): Use xalloc_die, not xmalloc_die.
73906
73907 2004-09-29  Bruno Haible  <bruno@clisp.org>
73908
73909         * modules/alloca-opt: New file, derived from modules/alloca.
73910         * modules/allocsa: Depend on alloca-opt instead of alloca.
73911         * modules/setenv: Likewise.
73912         * modules/vasnprintf: Likewise.
73913         * MODULES.html.sh: Add alloca-opt.
73914
73915 2004-09-28  Simon Josefsson  <jas@extundo.com>
73916
73917         * gnulib-tool: New parameter --lgpl, to asseert that modules are
73918         LGPL, and to replace license template from GPL to LGPL.
73919
73920 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73921
73922         * modules/dummy: Change license to LGPL.
73923
73924 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73925
73926         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
73927
73928 2004-09-24  Simon Josefsson  <jas@extundo.com>
73929
73930         * modules/minmax (License): Change from GPL to LGPL.
73931
73932 2004-09-23  Simon Josefsson  <jas@extundo.com>
73933
73934         * gnulib-tool (--import): Typo.
73935
73936 2004-09-23  Simon Josefsson  <jas@extundo.com>
73937
73938         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
73939
73940 2004-09-22  Bruno Haible  <bruno@clisp.org>
73941
73942         * modules/*: Add 'License' field.
73943         * gnulib-tool: Accept --extract-license option.
73944         (func_get_license): New function.
73945
73946 2004-09-21  Bruno Haible  <bruno@clisp.org>
73947
73948         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
73949         Reported by Simon Josefsson.
73950
73951 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73952
73953         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
73954         gl_AC_TYPE_LONG_LONG.
73955
73956 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73957
73958         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
73959
73960 2004-09-18  Simon Josefsson  <jas@extundo.com>
73961         and  Paul Eggert  <eggert@cs.ucla.edu>
73962
73963         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
73964         calls with autoreconf.  Define GL_LIB.
73965
73966 2004-09-14  Karl Berry  <karl@gnu.org>
73967
73968         * config/srclist.txt: unsync setenv.c, sigh.
73969
73970 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73971
73972         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
73973         Problem reported by Bruno Haible in:
73974         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
73975
73976 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73977
73978         * config/srclist.txt: Comment out argp-pvh.c.
73979
73980 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
73981
73982         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
73983         in case some system header has #define'd it.  Problem reported by
73984         Soeren D. Schulze in
73985         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
73986
73987 2004-09-09  Karl Berry  <karl@gnu.org>
73988
73989         * regex.[ch]: delete from the root.  These were supposed to be
73990                 synced with emacs cvs, but this has not happened for about
73991                 a year, and anyway nothing else uses emacs regex.[ch].
73992                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
73993                 lib/regex[.ch] is untouched.
73994
73995 2004-09-09  Bruno Haible  <bruno@clisp.org>
73996
73997         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
73998
73999 2004-09-09  Bruno Haible  <bruno@clisp.org>
74000
74001         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
74002         modifications.
74003         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
74004
74005 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74006
74007         * modules/xvasprintf: New file.
74008         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
74009
74010 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74011
74012         * lib/xvasprintf.h: New file.
74013         * lib/xvasprintf.c: New file.
74014         * lib/xasprintf.c: New file.
74015
74016 2004-09-08  Bruno Haible  <bruno@clisp.org>
74017
74018         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
74019
74020 2004-09-08  Bruno Haible  <bruno@clisp.org>
74021
74022         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
74023         length is > INT_MAX.
74024         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
74025         more.
74026
74027 2004-09-08  Bruno Haible  <bruno@clisp.org>
74028
74029         * lib/stdint_.h: New file, taken from GNU clisp.
74030
74031 2004-09-08  Bruno Haible  <bruno@clisp.org>
74032             Oskar Liljeblad  <oskar@osk.mine.nu>
74033
74034         * modules/stdint: New file.
74035         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
74036
74037 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74038
74039         Import from coreutils.
74040         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
74041         strings on unbounded length.  alloca's performance benefits aren't
74042         that important here.
74043         (V_STRDUP): Remove.
74044         (parse_with_separator): New function, with most of the internals
74045         of the old parse_user_spec.  Allow user to omit both user and group,
74046         for compatibility with FreeBSD.
74047         Clone only the user name, not the entire spec.
74048         Do not set *uid, *gid unless entirely successful.
74049         Avoid memory leak in some failing cases.
74050         Fix regression for USER.GROUP reported by Dmitry V. Levin in
74051         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
74052         (parse_user_spec): Rewrite to use parse_with_separator.
74053
74054 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74055
74056         * modules/userspec: Don't depend on alloca.
74057
74058 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74059
74060         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
74061
74062 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74063
74064         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
74065         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
74066         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
74067
74068 2004-08-16  Simon Josefsson  <jas@extundo.com>
74069
74070         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
74071         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
74072         Add --dry-run for --import.
74073         Let user provided command line parameters override configure.ac
74074         settings.
74075
74076 2004-08-12  Simon Josefsson  <jas@extundo.com>
74077
74078         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
74079         as discussed with Paul Eggert in threads rooted at
74080         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
74081         and
74082         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
74083         Before, the test was empty, and relied on ELIDE_CODE in source
74084         code.)
74085         (gl_PREREQ_GETOPT): New macro.
74086         (gl_GETOPT): Use them.
74087
74088 2004-08-12  Simon Josefsson  <jas@extundo.com>
74089
74090         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
74091         * lib/getopt_.h: Renamed from getopt.h.
74092
74093 2004-08-12  Simon Josefsson  <jas@extundo.com>
74094
74095         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
74096         Change default library name from libfoo to libgnu.
74097         Now, if you have a configure.ac that says:
74098                 gl_SOURCE_BASE(gl)
74099                 gl_M4_BASE(gl/m4)
74100                 gl_MODULES(error getopt etcetera)
74101                 gl_INIT
74102         you can import all you need by running:
74103                 ../gnulib/gnulib-tool --import
74104
74105         * modules/getopt (Files): Rename getopt.h to getopt_.h.
74106         (Makefile.am): Rewrite, use logic from argz.
74107         (Include): Use <getopt.h> instead of "getopt.h".
74108
74109 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74110
74111         * modules/argp (Files): Add m4/unlocked-io.m4.
74112         (Depends-on): Add extensions.
74113
74114 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74115
74116         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
74117         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
74118         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
74119         Check for program_invocation_name, program_invocation_short_name,
74120         flockfile, funlockfile, features.h, _getopt_long_only_r.
74121
74122 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74123
74124         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
74125         its complicated substitute.
74126         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
74127         and program_invocation_name.
74128         (__argp_basename) [!_LIBC]: Remove; the only use was
74129         replaced by its body.
74130         (__argp_short_program_name): Change condition from
74131         !defined __argp_short_program_name to
74132         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
74133         to match argp-namefrob.h.
74134         (__argp_failure): Don't assume strerror_r returns char *.
74135         * lib/argp-parse.c (N_): Define unconditionally.
74136         (argp_default_options): Fill out initializers with 0 to avoid
74137         gcc warnings.
74138
74139 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
74140
74141         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
74142         getopt1.c.
74143
74144 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74145
74146         Merge from coreutils.
74147
74148         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
74149
74150         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
74151         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
74152
74153 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74154
74155         Merge from coreutils.
74156
74157         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
74158         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
74159         for Reliant Unix 5.43.
74160
74161         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
74162         (union fooround): Use uintmax_t, not long int.
74163         The rest is a merge from libc:
74164         [defined _LIBC]: Include <shlib-compat.h>.
74165         (_obstack) [defined _LIBC]: Remove after 2.3.4.
74166
74167         * lib/settime.c (settime): Recode to avoid warning with
74168         Sun Forte C 6U2.
74169
74170         * lib/strverscmp.c: Convert to UTF-8.
74171
74172 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74173
74174         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74175         m4/uintmax_t.m4.
74176
74177 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74178
74179         * modules/xalloc-die: New file.
74180         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
74181
74182         * modules/md5 (Files): Add m4/uint32_t.m4.
74183         * modules/sha1: Renamed from modules/sha.
74184         (Files):
74185         Rename lib/sha.h to lib/sha1.h.
74186         Rename lib/sha.c to lib/sha1.c.
74187         Rename m4/sha.m4 to m4/sha1.m4.
74188         (lib_SOURCES): Likewise.
74189         (configure.ac): Rename gl_SHA to gl_SHA1.
74190         (Include): sha.h -> sha1.h.
74191
74192 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74193
74194         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
74195         * m4/sha1.m4: Renamed from sha.m4.
74196         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
74197
74198 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74199
74200         * lib/obstack.h (obstack_empty_p):
74201         Don't assume that chunk->contents is suitably aligned.
74202         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
74203         Likewise. Problem reported by Benno in
74204         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
74205
74206         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
74207         readable.  This could be improved further but it'd take some work.
74208
74209 2004-08-08  Simon Josefsson  <jas@extundo.com>
74210
74211         * modules/xgethostname (Depends-on): Remove exit and error (not
74212         used).
74213
74214         * modules/getpass-gnu: Add getpass.h.
74215         (Depends-on): Add stdbool.
74216         * modules/getpass: Add getpass.h.
74217
74218 2004-08-08  Simon Josefsson  <jas@extundo.com>
74219
74220         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
74221         Check getpass declaration.
74222
74223 2004-08-08  Simon Josefsson  <jas@extundo.com>
74224
74225         * lib/xgethostname.c: Don't include error.h (not used).
74226
74227         * lib/getpass.h: Add.
74228         * lib/getpass.c: Include getpass.h first.
74229
74230 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
74231
74232         * lib/xalloc-die.c: New file.
74233         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
74234         All uses removed.
74235         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
74236         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
74237         xalloc-die.c.
74238         (_, N_, xalloc_die): Move to xalloc-die.c.
74239         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
74240         so that we needn't mess with xalloc_msg_memory_exhausted.
74241
74242         * lib/sha1.h: Renamed from sha.h.
74243         (SHA1_H): Renamed from _SHA_H.
74244         (sha1_ctx): Renamed from sha_ctx.
74245         (sha1_init_ctx): Renamed from sha_init_ctx.
74246         (sha1_process_block): Renamed from sha_process_block.
74247         (sha1_process_bytes): Renamed from sha_process_bytes.
74248         (sha1_finish_ctx): Renamed from sha_finish_ctx.
74249         (sha1_read_ctx): Renamed from sha_read_ctx.
74250         (sha1_stream): Renamed from sha_stream.
74251         (sha1_buffer): Renamed from sha_buffer.
74252         * lib/sha1.c: Likewise; renamed from sha.c.
74253         Do not include <sys/types.h>.
74254         Include <stddef.h> rather than <stdlib.h>.
74255
74256 2004-08-08  Bruno Haible  <bruno@clisp.org>
74257
74258         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
74259         FILESYSTEM_PREFIX_LEN.
74260         * lib/progreloc.c: Likewise.
74261         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
74262
74263 2004-08-06  Simon Josefsson  <jas@extundo.com>
74264
74265         * modules/progname (Depends-on): Don't depend on stdbool.
74266
74267 2004-08-06  Simon Josefsson  <jas@extundo.com>
74268
74269         * modules/getsubopt: New file.
74270         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74271         getsubopt.
74272
74273 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74274
74275         More merge from coreutils.
74276
74277         * m4/utimens.m4, m4/utimecmp.m4: New files.
74278         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
74279         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
74280         prereq.m4, sha.m4: Import changes from coreutils.
74281
74282 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74283
74284         More merge from coreutils.
74285         * modules/raise, modules/readtokens0, modules/utimens:
74286         * modules/utimecmp, module/xnanosleep: New files.
74287         * modules/strftime: Add lib/strftime.h.
74288         Change include from <time.h> to "strftime.h".
74289         * modules/yesno: Add lib/yesno.h.
74290         * modules/backupfile: Remove lib/addext.c.
74291         * modules/euidaccess: Add stat-macros.h.
74292         * modules/canonicalize, modules/euidaccess,
74293         modules/filemode, modules/lchown, modules/makepath,
74294         modules/rmdir, modules/stat: Likewise.
74295
74296 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74297
74298         Merge from tar.
74299         * lib/argp-help.c (make_hol, hol_append): Don't assume that
74300         SIZE_MAX is a valid preprocessor constant.
74301         (__argp_basename): Change from "#ifndef _LIBC"
74302         to "#ifndef __argp_short_program_name", so that
74303         we don't compile these functions for tar.
74304
74305         More merges from coreutils.
74306         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
74307         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
74308         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74309         * lib/addext.c: Remove; no longer needed.
74310         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74311         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74312         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74313         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74314         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74315         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74316         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74317         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74318         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74319         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74320         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74321         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74322         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74323         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74324         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74325         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74326         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74327         Import changes from coreutils.
74328
74329 2004-08-05  Simon Josefsson  <jas@extundo.com>
74330
74331         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74332
74333 2004-08-05  Simon Josefsson  <jas@extundo.com>
74334
74335         * m4/getsubopt.m4: New file.
74336
74337 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74338
74339         Merge from coreutils.
74340
74341         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74342         * m4/getcwd-path-max.m4: New files.
74343
74344         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74345         FILESYSTEM_PREFIX_LEN ->
74346         FILE_SYSTEM_PREFIX_LEN.
74347         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74348         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74349         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74350         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74351
74352         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74353         prerequisite modules now handle the DOS stuff.
74354         Don't check for unistd.h.
74355
74356 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74357
74358         Merge from coreutils.
74359
74360         * lib/.gdb-history: Remove; this doesn't belong here.
74361
74362         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74363         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74364         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74365         * lib/getcwd.c: New files.
74366
74367         * lib/dirname.h: Include <stdbool.h>.
74368         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74369         for consistency with POSIX terminology.  All uses changed.
74370         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74371         (strip_trailing_slashes): Use bool for booleans.
74372         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74373
74374         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74375         sometimes returns a positive errno value even when it succeeds.
74376         (print_errno_message) [!LIBC]: Fall back on strerror if
74377         __strerror_r fails.
74378
74379         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74380         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74381         (longest_relative_suffix): New function.
74382         (path_concat): Use it.  Assume first argument is not NULL.
74383         Port to DOS.  Omit redundant separators.
74384         Report an error instead of returning NULL.
74385         Use mempcpy instead of memcpy.
74386         (xpath_concat): Remove: not declared or used.
74387
74388         * lib/same.h: Include <stdbool.h>
74389         (same_name): Return bool, not int.
74390         * lib/same.c (same_name): Likewise.
74391         (errno): Don't declare; we assume C89 or better now.
74392
74393         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74394         if not already defined.
74395
74396         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74397         * lib/dup-safer.c (errno): Likewise.
74398
74399 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74400
74401         Merge from coreutils.
74402         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74403         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74404         * modules/path-concat: Don't depend on strdup.
74405
74406 2004-08-03  Simon Josefsson  <jas@extundo.com>
74407
74408         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74409         * lib/progname.h: Don't include stdbool.h.
74410
74411 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74412
74413         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74414         * MODULES.html.sh (func_all_modules): Remove fatal.
74415
74416 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74417
74418         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74419
74420 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74421
74422         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74423         working.
74424
74425 2004-08-02  Simon Josefsson  <jas@extundo.com>
74426
74427         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74428         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74429         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74430
74431 2004-08-01  Simon Josefsson  <jas@extundo.com>
74432
74433         * lib/xgetdomainname.c: Include stdlib.h, for free().
74434
74435 2004-07-19  Bruno Haible  <bruno@clisp.org>
74436
74437         * MODULES.html.sh (func_all_modules): Add dummy.
74438
74439 2004-07-16  Simon Josefsson  <jas@extundo.com>
74440
74441         * modules/dummy: New file.
74442
74443 2004-07-16  Simon Josefsson  <jas@extundo.com>
74444
74445         * lib/dummy.c: New file.
74446
74447 2004-07-16  Bruno Haible  <bruno@clisp.org>
74448
74449         * lib/backupfile.h: Add extern "C" for C++.
74450         * lib/closeout.h: Likewise.
74451         * lib/copy-file.h: Likewise.
74452         * lib/findprog.h: Likewise.
74453         * lib/full-write.h: Likewise.
74454         * lib/pathname.h: Likewise.
74455         * lib/progname.h: Likewise.
74456         * lib/stpcpy.h: Likewise.
74457         * lib/stpncpy.h: Likewise.
74458         * lib/strcase.h: Likewise.
74459         * lib/strstr.h: Likewise.
74460         * lib/xalloc.h: Likewise.
74461
74462         * lib/mbswidth.h: Add extern "C" for C++.
74463         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74464
74465 2004-07-13  Robert Millan  <robertmh@gnu.org>
74466
74467         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74468
74469 2004-07-09  Simon Josefsson  <jas@extundo.com>
74470
74471         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74472         failed without this.)
74473
74474 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74475
74476         * modules/chown (Files): Add lib/fchown-stub.c, since
74477         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74478
74479 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74480
74481         * lib/fchown-stub.c: New file.
74482
74483 2004-06-24  Jim Meyering  <jim@meyering.net>
74484
74485         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74486
74487 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74488
74489         * modules/argz: Omit "#include".
74490
74491         * MODULES.html.sh (func_all_modules): Add calloc, to match
74492         2004-06-01 addition of calloc module.
74493
74494 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74495
74496         * m4/argz.m4: New file, which is autoupdated from libtool.
74497
74498 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74499
74500         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74501         libtool.
74502
74503 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74504
74505         * config/srclist-update: Don't insist on "USA." before the
74506         close-comment, as libtool omits the period and puts the */ on a
74507         separate line.
74508         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74509         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74510
74511 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74512
74513         * modules/argz: New file.
74514         * MODULES.html.sh (func_all_modules): Add argz.
74515
74516 2004-06-12  Jim Meyering  <jim@meyering.net>
74517         and  Paul Eggert  <eggert@cs.ucla.edu>
74518
74519         * modules/hash (Files): Add lib/xalloc.h.
74520         * modules/pipe (Depends-on): Add wait-process.
74521         * modules/stat (Depends-on): Add xalloc.
74522         * modules/userspec (Files): Add lib/userspec.h.
74523         * modules/xstrto
74524
74525         Upgrade from gettext-0.13.
74526         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
74527         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
74528         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
74529
74530 2004-06-10  Jim Meyering  <jim@meyering.net>
74531
74532         * lib/calloc.c: New file.
74533
74534 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
74535
74536         * lib/getdate.y (yylex): Allow space between sign and number.
74537         Problem reported by Dan Jacobson.
74538
74539 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74540
74541         Merge from coreutils CVS.
74542
74543         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
74544         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
74545         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
74546         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
74547         xstrtol.m4: Fix copyright date and/or serial number.
74548
74549         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
74550         See if we need an fchown replacement.
74551         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
74552         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
74553         and use the replacement function if we detect either defect.
74554
74555         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
74556         gl_UTIMECMP.
74557
74558 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74559         and  Jim Meyering  <jim@meyering.net>
74560
74561         Merge from coreutils CVS.
74562
74563         * lib/stat-macros.h: New file, with contents from file-type.h
74564         and coreutils' system.h.
74565         * lib/file-type.c: Include "stat-macros.h".
74566         * lib/file-type.h (file_type): Move all macro definitions to new file,
74567         stat-macros.h.
74568
74569         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
74570         Wrap old code with this conditional.
74571         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
74572         function that does not dereference symlinks.
74573         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
74574
74575         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
74576         dependency problems.
74577         (xreadlink): Accept new arg SIZE, for efficiency.
74578         All decls and uses changed.
74579         * lib/xreadlink.h: Include <stddef.h>, for size_t.
74580
74581         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
74582         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
74583
74584         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
74585         sysexits.h.
74586
74587 2004-06-01  Jim Meyering  <jim@meyering.net>
74588
74589         * m4/calloc.m4: New file.
74590
74591 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
74592
74593         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
74594         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
74595         Also, fix a typo in a diagnostic.
74596
74597 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74598
74599         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
74600         or AC_FUNC_REALLOC.
74601
74602 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74603
74604         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
74605         macros to be defined.
74606         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
74607         the allocator returns NULL because the requested size is zero.
74608
74609 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74610
74611         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
74612         var.  Add comment explaining why libc still defines it.  This
74613         merges the following patch from glibc:
74614         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
74615
74616 2004-05-20  Andreas Schwab  <schwab@suse.de>
74617
74618         * m4/free.m4: Replace free if it not known to work, not the other
74619         way round.
74620
74621 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74622
74623         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74624         present in glibc since revision 1.1 of this file.
74625         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74626         obstack_alignment_mask, obstack_alloc, obstack_base,
74627         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74628         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74629         obstack_grow0, obstack_init, obstack_int_grow,
74630         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74631         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74632         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74633         nonexistent functions.
74634
74635 2004-05-18  Karl Berry  <karl@gnu.org>
74636
74637         * config/srclist.txt: break link for vasnprintf.c.
74638
74639 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74640
74641         Port obstack to the AS/400, where pointers are 16 bytes wide and
74642         you cannot cast an integer to a valid pointer.  This patch is
74643         currently waiting to be integrated into glibc; see
74644         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74645
74646         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74647         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74648         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74649         (struct obstack): temp member is now a union of a pointer and
74650         an integer, instead of an integer.  All integer uses changed.
74651         This does not affect the physical layout of struct obstack,
74652         except on hosts (like the AS/400) where the size or alignment of
74653         void * is greater than that of ptrdiff_t.
74654         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74655         __STDC__)]: Store temporary in pointer member of union, not
74656         integer member.
74657         * lib/obstack.c: Include <stddef.h>, for offsetof.
74658         (struct fooalign): Remove; it doesn't need a name.
74659         (union fooround): Change double to long double, and add void *.
74660         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74661         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74662         not a macro.  Hence the values are always int; so remove all
74663         casts-to-int in uses.
74664
74665 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74666
74667         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74668         we can get this patch merged into glibc.
74669
74670 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74671             Paul Eggert  <eggert@cs.ucla.edu>
74672
74673         * m4/argp: Depend on alloca.
74674
74675 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74676             Paul Eggert  <eggert@cs.ucla.edu>
74677
74678         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74679         freecoding.
74680
74681 2004-05-17  Bruno Haible  <bruno@clisp.org>
74682
74683         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74684         precision that consists of a '.' followed by an empty digit string.
74685         Patch by Tor Lillqvist <tml@iki.fi>.
74686
74687 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74688
74689         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74690         for backward compatibility with older code.  We need our own
74691         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
74692         it under some other name, and our alloca.h will define it.
74693
74694 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74695             Derek Price  <derek@ximbiot.com>
74696
74697         * lib/alloca.c: Include <alloca.h>, to get our interface.
74698         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
74699         include <alloca.h> first.  Use C89 prototype for alloca; this
74700         requires including <stddef.h> for size_t.  Use extern "C" if C++.
74701         Use #elif for simplicity, since we can assume C89 now.
74702         Don't try to source the system alloca.h since it will not be found
74703         and to prevent recursively including its replacement.
74704         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
74705         * lib/regex.c: Likewise.
74706
74707 2004-05-16  Derek Price  <derek@ximbiot.com>
74708             Paul Eggert  <eggert@cs.ucla.edu>
74709
74710         getline cleanup.  This changes the getndelim2 API: both order of
74711         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
74712         no delimiter).
74713
74714         * lib/getline.c: Don't include stddef.h or stdio.h, since our
74715         interface does that.
74716         (getline): Always use getdelim, so that we don't have two
74717         copies of this code.
74718         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
74719         if available.
74720         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
74721         (GETNDELIM2_MAXIMUM): New macro.
74722         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
74723         instead of the old practice of delim2==0.  All callers changed.
74724         Return -1 on overflow, instead of returning junk.
74725         Do not set *linesize unless allocation succeeds.
74726         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
74727         that we include sys/types.h.
74728         * lib/getnline.h: Likewise.
74729         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
74730         (getndelim2): Reorder arguments.
74731         * lib/getnline.c (getnline, getndelim):
74732         Don't discard the NMAX argument.
74733         (getnline): Invoke getndelim, to avoid code duplication.
74734         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
74735         of (size_t) -1 by callers of the getnline family.
74736
74737 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74738
74739         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
74740         Check for gettimeofday.
74741         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
74742         Check for settimeofday, stime.
74743
74744 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74745
74746         * lib/nanosleep.c (suspended): Change its type from int to
74747         sig_atomic_t volatile.
74748         (first_call): Make it private to rpl_nanosleep, and have it
74749         be zero initially as that's a bit faster.
74750         (my_usleep): Round up fractional times instead of truncating them,
74751         as this is the usual meaning for 'sleep'.
74752
74753         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
74754         doesn't work.
74755         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
74756         (ENOSYS): Define if not defined.
74757         (settime): Fall back on stime if it exists and settimeofday fails.
74758         But don't bother with fallbacks if a method fails with errno == EPERM.
74759
74760 2004-05-11  Jim Meyering  <jim@meyering.net>
74761
74762         Prior to this change, the save_cwd caller required read access to the
74763         current directory on most systems (ones with the fchdir function).
74764
74765         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
74766         fails, try write-only, and finally, resort to using xgetcwd.
74767
74768 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74769
74770         * lib/obstack.c, obstack.h: Import changes from libc.
74771
74772 2004-04-28  Bruno Haible  <bruno@clisp.org>
74773
74774         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
74775         also implicitly appends .exe to executables.
74776         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
74777         accepts Windows pathnames.
74778         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74779         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74780         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74781         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74782         Reported by Derek Robert Price <derek@ximbiot.com>.
74783
74784 2004-04-21  Karl Berry  <karl@gnu.org>
74785
74786         * config/srclist.txt (localcharset.c): break sync.
74787
74788 2004-04-20  Paul Eggert  <eggert@twinsun.com>
74789
74790         * m4/host-os.m4: Add a copyright notice.
74791
74792 2004-04-20  Jim Meyering  <jim@meyering.net>
74793
74794         Change UTILS_ to gl_ in AC_DEFINE'd names.
74795         Change utils_- and jm_-prefixed variables, too.
74796         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
74797         UTILS_FUNC_MKDIR_TRAILING_SLASH.
74798         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
74799
74800         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
74801         Don't emit trailing blanks.
74802         Also rename jm_-prefixed variables to have gl_ prefix.
74803
74804         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
74805         Also rename jm_-prefixed variables to have gl_ prefix.
74806
74807         * m4/jm-macros.m4: Reflect the renamings.
74808         * m4/prereq.m4: Likewise.
74809
74810 2004-04-20  Jim Meyering  <jim@meyering.net>
74811
74812         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
74813         memory.
74814
74815 2004-04-20  Jim Meyering  <jim@meyering.net>
74816             Bruno Haible  <bruno@clisp.org>
74817
74818         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
74819         memory when realloc fails.
74820
74821 2004-04-19  Jim Meyering  <jim@meyering.net>
74822
74823         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
74824         now that readutmp.c may call `free (0)'.
74825
74826 2004-04-19  Bruno Haible  <bruno@clisp.org>
74827
74828         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
74829         * m4/inttypes_h.m4: Likewise.
74830         * m4/stdint_h.m4: Likewise.
74831         * m4/intmax_t.m4: Likewise.
74832         * m4/uintmax_t.m4: Likewise.
74833
74834 2004-04-18  Jim Meyering  <jim@meyering.net>
74835
74836         * m4/prereq.m4: Don't forbid jm_ prefix.
74837
74838         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
74839         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
74840         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
74841         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
74842         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
74843         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
74844         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
74845         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
74846         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
74847         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
74848         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
74849         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
74850         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
74851         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
74852         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
74853         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
74854         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
74855         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
74856         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
74857
74858 2004-04-18  Jim Meyering  <jim@meyering.net>
74859
74860         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
74861         failure, don't leak memory and do call END_UTMP_ENT.
74862
74863 2004-04-16  Jim Meyering  <jim@meyering.net>
74864
74865         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
74866         coreutils' stat program.
74867         (gl_PREREQ): Don't require jm_PREREQ_STAT.
74868
74869 2004-04-11  Paul Eggert  <eggert@twinsun.com>
74870
74871         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
74872         C89.
74873         (CHAR_BIT): Remove, since we assume C89.
74874         Include <stdint.h> if available, as per current Autoconf CVS advice.
74875
74876 2004-03-31  Jim Meyering  <jim@meyering.net>
74877
74878         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
74879         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
74880         * m4/xalloc.m4: Likewise.
74881
74882 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74883
74884         Merge from coreutils.
74885
74886         * m4/inttostr.m4: New file.
74887         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
74888         Require AM_STDBOOL_H and gl_TIMESPEC instead.
74889         Require gl_CLOCK_TIME.
74890         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
74891
74892 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74893
74894         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
74895         not bool, to be more consistent with Unix conventions.
74896         Suggested by Bruno Haible.
74897
74898         Merge from coreutils.
74899
74900         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
74901         * lib/umaxtostr.c: New files.
74902
74903         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
74904         the usual <time.h> dance.
74905         (get_date): Change signature to support fractional time stamps.
74906         All callers changed.
74907         * lib/getdate.y: Include "getdate.h" first, as we can now
74908         assume C89 and don't need to worry about 'const'.
74909         Similarly, include "unlocked-io.h" near start, not in middle.
74910         Include <limits.h>.
74911         (textint.value): Use long int rather than int.
74912         (textint.digits): Use size_t rather than int.
74913         (BILLION, LOG10_BILLION): New constants.
74914         (parser_control): New member rel_ns.  Members day_ordinal,
74915         time_zone, month, day, hour, minutes, rel_year, rel_month,
74916         rel_day, rel_hour, rel_minutes, rel_seconds
74917         are now long int, not int.  Member seconds is now struct timespec,
74918         not int.  New member timespec_seen.  Members dates_seen, days_seen,
74919         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
74920         not int.
74921         (%union.intval): Now long int, not int.
74922         New member timespec.
74923         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
74924         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
74925         (spec): Now is a timespec or an item list.
74926         (timespec, items): New nonterminals.
74927         (time, rel, relunit, number, get_date):
74928         Add support for fractional seconds.
74929         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
74930         (gmtime, localtime, mktime): Remove decls; not needed with C89.
74931         (to_hour): First arg is now long int, not int.
74932         (to_year): Returns long int, not int.
74933         Don't treat year -70 like 70.
74934         (tm_diff): Returns long int, not int.
74935         (lookup_word): Use bool instead of int when appropriate.
74936         (yylex): Use size_t for count, not int.
74937         Detect overflow when parsing large integer constants.
74938         Add support for fractions.
74939         (get_date): Make pointers 'const' if possible.
74940         Use more-portable code to detect integer overflow.
74941         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
74942         Don't use ctime; it's not reliable if the year has >4 digits.
74943
74944         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
74945         This is for compatibility with BSD.
74946
74947         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
74948         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
74949         From coreutils' system.h.
74950
74951         * lib/userspec.c: Don't include "posixver.h".
74952         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
74953         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
74954         compatible extension.  Simplify code by removing a boolean int
74955         that was always nonzero if a string was nonnull.
74956
74957 2004-03-30  Jim Meyering  <jim@meyering.net>
74958
74959         Merge from coreutils.
74960
74961         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
74962         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
74963         on some systems one must include <grp.h> before it.
74964         Reported by Christian Krackowizer.
74965
74966 2004-03-30  Jim Meyering  <jim@meyering.net>
74967
74968         Merge from coreutils.
74969
74970         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
74971
74972         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
74973         an empty input stream.
74974
74975         * lib/readtokens.c: Include <stdbool.h>.
74976         (readtoken): Use `size_t' rather than int/long.
74977         All callers adjusted.
74978         Use `bool' rather than `int' where appropriate.
74979         Use memset rather than an explicit loop.
74980         Use x2nrealloc rather than xrealloc.
74981         Allow the use of `\0' as a delimiter.
74982         (readtokens): Likewise.
74983         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
74984
74985 2004-03-30  Jim Meyering  <jim@meyering.net>
74986
74987         * m4/realloc.m4: Remove file, since now it does no more than
74988         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
74989         the `configure.ac' section of module/realloc.
74990         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
74991
74992 2004-03-30  Bruno Haible  <bruno@clisp.org>
74993
74994         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
74995         nonnull.
74996
74997 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74998
74999         Merge changes to getloadavg.c from coreutils and Emacs.
75000
75001         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
75002         Define to an expression, not to the empty string.
75003         Include cloexec.h and xalloc.h.
75004         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
75005         Use set_cloexec_flag rather than rolling our own.
75006         * lib/cloexec.c, lib/cloexec.h: New files.
75007
75008 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75009
75010         * m4/cloexec.m4: New file.
75011
75012 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75013
75014         * lib/getopt.h: Sync with libc CVS.
75015
75016 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75017             Bruno Haible  <bruno@clisp.org>
75018
75019         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
75020         mbswidth.
75021
75022 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75023             Bruno Haible  <bruno@clisp.org>
75024
75025         * lib/mbswidth.h: Include <wchar.h> only if
75026         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
75027         <wchar.h>.
75028         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
75029
75030 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75031
75032         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
75033         Sync with libc CVS.
75034         * lib/getopt_int.h: New file, also synced from libc.
75035
75036 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75037
75038         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
75039         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
75040         Bring back getopt.c, getopt.h, getopt1.c.
75041
75042 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75043
75044         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
75045         All uses changed.  Check for sa_sigaction member; this fixes
75046         a bug first reported by Jason Andrade in
75047         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75048
75049 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75050
75051         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
75052         '#if' expressions.  Unlike the code it replaces, it does not
75053         depend on (defined _SC_PAGESIZE).  However, it does depend on
75054         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
75055         first reported by Jason Andrade in
75056         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75057
75058 2004-02-25  Simon Josefsson  <jas@extundo.com>
75059
75060         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
75061
75062 2004-02-25  Simon Josefsson  <jas@extundo.com>
75063
75064         * lib/strdup.h: New file.
75065         * lib/strdup.c: Include it.
75066         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
75067         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
75068
75069 2004-02-23  Karl Berry  <karl@gnu.org>
75070
75071         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
75072         (from fencepost.gnu.org:/gd/gnuorg).
75073
75074 2004-02-23  Karl Berry  <karl@gnu.org>
75075
75076         * config/srclistvars.sh (GNUORG) [karl]: redefine.
75077         * config/srclist.txt: add maintain/standards documents.
75078
75079 2004-02-18  Bruno Haible  <bruno@clisp.org>
75080
75081         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
75082         Reported by Derek Robert Price <derek@ximbiot.com>.
75083
75084 2004-02-16  Karl Berry  <karl@gnu.org>
75085
75086         * config/mkinstalldirs, install-sh: update from automake.
75087
75088 2004-02-06  Karl Berry  <karl@gnu.org>
75089
75090         * m4/po.m4: update from gettext 0.14.1.
75091
75092 2004-02-06  Karl Berry  <karl@gnu.org>
75093
75094         * lib/config.charset: update from gettext 0.14.1.
75095
75096 2004-02-05  Paul Eggert  <eggert@twinsun.com>
75097
75098         Add comments and code, prompted by suggestions from Bruno Haible
75099         for sh-quote.
75100         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
75101         describing the enum quoting_style values.
75102         * lib/quotearg.c (quotearg_alloc): New function.
75103         (quotearg_buffer_restyled): Treat lone { and } as special.
75104         Treat = as special.  Work around bug with older shells
75105         that "see" a '\' that is really the 2nd byte of a multibyte char.
75106         Quote empty string with shell_quoting_style.
75107
75108 2004-02-03  Bruno Haible  <bruno@clisp.org>
75109
75110         * m4/pipe.m4: New file, from GNU gettext.
75111
75112 2004-02-03  Bruno Haible  <bruno@clisp.org>
75113
75114         * lib/pipe.h: New file, from GNU gettext.
75115         * lib/pipe.c: New file, from GNU gettext.
75116
75117 2004-01-27  Bruno Haible  <bruno@clisp.org>
75118
75119         * m4/execute.m4: New file, from GNU gettext.
75120
75121 2004-01-27  Bruno Haible  <bruno@clisp.org>
75122
75123         * lib/execute.h: New file, from GNU gettext.
75124         * lib/execute.c: New file, from GNU gettext.
75125         * lib/w32spawn.h: New file, from GNU gettext.
75126
75127 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75128
75129         Merge from diffutils.
75130
75131         * lib/file-type.c (file_type): Add typed memory objects.
75132         * lib/file-type.h (S_TYPEISTMO): New macro.
75133
75134         * lib/c-stack.h (c_stack_action): Remove argv argument.
75135         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
75136         (die): Don't calculate message unless segv_action returns.
75137         (get_stack_location, min_address_from_argv, max_address_from_argv,
75138         volatile stack_base, volatile_stack_size): Remove.
75139         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
75140         that every segmentation violation is a stack overflow.  (Ouch!)
75141         See Debian bug 136249 (still outstanding) for more info about why
75142         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
75143
75144 2004-01-24  Paul Eggert  <eggert@twinsun.com>
75145
75146         Exit-status fix from coreutils.
75147
75148         Use exit_failure consistently in place of EXIT_FAILURE,
75149         so that program exit statuses are consistent on failure.
75150
75151         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
75152         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
75153         * lib/argmatch.h: Comment fix to match the above.
75154         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
75155         Now a macro referring to exit_failure, instead of a separate
75156         variable.  Include "exitfail.h" to get it.
75157         * lib/xstrtol.h: Include "exitfail.h".
75158         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
75159
75160         * lib/long-options.c (parse_long_options): Use prototype
75161         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
75162         for clarity.
75163
75164 2004-01-21  Jim Meyering  <jim@meyering.net>
75165
75166         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
75167         so as not to conflict with a different-sized __mktime_internal
75168         function in GNU libc.
75169         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
75170         Problem building statically-linked `ls' reported by Michael Brunnbauer.
75171
75172 2004-01-20  Karl Berry  <karl@gnu.org>
75173
75174         * config/config.guess: update from config.
75175
75176         * config/srclistvars.sh: GNUWWWLICENSES for karl.
75177
75178 2004-01-20  Bruno Haible  <bruno@clisp.org>
75179
75180         Safer stack allocation.
75181         * lib/setenv.c: Include allocsa.h.
75182         (alloca): Remove fallback definition.
75183         (freea): Remove macro.
75184         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
75185         instead of freea.
75186
75187 2004-01-20  Bruno Haible  <bruno@clisp.org>
75188
75189         * m4/eealloc.m4: New file, from GNU gettext.
75190
75191 2004-01-20  Bruno Haible  <bruno@clisp.org>
75192
75193         * m4/allocsa.m4: New file, from GNU gettext.
75194
75195 2004-01-20  Bruno Haible  <bruno@clisp.org>
75196
75197         * lib/xallocsa.h: New file, from GNU gettext.
75198         * lib/xallocsa.c: New file, from GNU gettext.
75199
75200 2004-01-20  Bruno Haible  <bruno@clisp.org>
75201
75202         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
75203
75204 2004-01-20  Bruno Haible  <bruno@clisp.org>
75205
75206         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
75207         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
75208         specially.
75209
75210 2004-01-20  Bruno Haible  <bruno@clisp.org>
75211
75212         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
75213         patch.
75214
75215 2004-01-20  Bruno Haible  <bruno@clisp.org>
75216
75217         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
75218
75219 2004-01-20  Bruno Haible  <bruno@clisp.org>
75220
75221         * lib/eealloc.h: New file.
75222
75223 2004-01-20  Bruno Haible  <bruno@clisp.org>
75224
75225         * lib/binary-io.h: Avoid warnings on Cygwin.
75226
75227 2004-01-20  Bruno Haible  <bruno@clisp.org>
75228
75229         * lib/allocsa.h: New file, from GNU gettext.
75230         * lib/allocsa.c: New file, from GNU gettext.
75231
75232 2004-01-18  Karl Berry  <karl@gnu.org>
75233
75234         * doc/gpl.texi, doc/lgpl.texi: new files.
75235
75236 2004-01-18  Karl Berry  <karl@gnu.org>
75237
75238         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
75239         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
75240
75241 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75242
75243         Merge from coreutils.
75244
75245         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
75246         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
75247         (gl_DEFAULT_POSIX2_VERSION): Move
75248         the documentation from 'configure' into 'config.hin',
75249         so that 'configure --help' isn't burdened by it and
75250         we don't have to worry about its formatting there.
75251         Reword the documentation so that it's more succinct
75252         and can be run together into a single paragraph.
75253         * m4/same.m4 (gl_SAME): Check for pathconf.
75254
75255 2004-01-15  Paul Eggert  <eggert@twinsun.com>
75256
75257         Merge from coreutils.
75258
75259         * lib/posixver.c: Include posixver.h.
75260
75261         * lib/same.c: Include <stdbool.h>, <limits.h>.
75262         (_POSIX_NAME_MAX): Define if not defined.
75263         (MIN): New macro.
75264         (same_name): If file names are silently truncated, report
75265         that the file names are the same if they are the same after
75266         the silent truncation.
75267
75268         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
75269         conversion function.
75270         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
75271         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
75272         longer needed.
75273
75274 2004-01-15  Jim Meyering  <jim@meyering.net>
75275
75276         Merge from coreutils.
75277
75278         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
75279         if no library is required.
75280         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
75281         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
75282         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
75283         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
75284         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
75285         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
75286         value, $ac_cv_search_crypt, if it's "none required".
75287         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
75288         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
75289         not gl_FUNC_GETLOADAVG.
75290         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
75291         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
75292
75293 2004-01-15  Jim Meyering  <jim@meyering.net>
75294
75295         Merge from coreutils.
75296
75297         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
75298         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
75299         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
75300
75301         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
75302         optional configure-time default.
75303
75304         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75305
75306         * lib/xreadlink.c (xreadlink): Correct outdated comment.
75307
75308 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75309
75310         Merge from coreutils.
75311
75312         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75313         value, $ac_cv_search_nanosleep, if it's "none required".
75314
75315 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75316
75317         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75318         with like-named macro in fnmatch.c.
75319         (EXT): Use an internal constant instead.
75320
75321         Merge fnmatch patches from glibc.
75322         * lib/fnmatch.c (mbsinit): Remove define.
75323         Add libc_hidden_ver (__fnmatch, fnmatch).
75324         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75325         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75326
75327 2004-01-14  Karl Berry  <karl@gnu.org>
75328
75329         * config/install-sh: update from automake.
75330
75331 2004-01-13  Karl Berry  <karl@gnu.org>
75332
75333         * config/install-sh: update from automake.
75334
75335 2004-01-09  Karl Berry  <karl@gnu.org>
75336
75337         * config/install-sh: update from automake.
75338
75339 2004-01-05  Karl Berry  <karl@gnu.org>
75340
75341         * config/config.{sub,guess}: update from config.
75342
75343 2003-12-31  Karl Berry  <karl@gnu.org>
75344
75345         * config/depcomp: update from automake.
75346
75347 2003-12-14  Karl Berry  <karl@gnu.org>
75348
75349         * lib/config.charset: update from gettext-runtime.
75350
75351 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75352
75353         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75354         Bug reported by Alfred M. Szmidt.
75355
75356 2003-12-03  Bruno Haible  <bruno@clisp.org>
75357
75358         * m4/gettext.m4: Upgrade from gettext-0.13.
75359         * m4/po.m4: Upgrade from gettext-0.13.
75360         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75361         * m4/intmax.m4: New file, from gettext-0.13.
75362         * m4/printf-posix.m4: New file, from gettext-0.13.
75363
75364 2003-11-29  Karl Berry  <karl@gnu.org>
75365
75366         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75367
75368 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75369             Bruno Haible  <bruno@clisp.org>
75370
75371         * lib/printf-parse.h: Don't include sys/types.h.
75372         (ARG_NONE): New macro.
75373         (char_directive): Change type of *arg_index fields to size_t.
75374         * lib/printf-parse.c: Don't include sys/types.h.
75375         (SSIZE_MAX): Remove macro.
75376         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75377         Remove unnecessary overflow check.
75378         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75379         fields.
75380
75381 2003-11-25  Bruno Haible  <bruno@clisp.org>
75382
75383         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75384
75385 2003-11-25  Bruno Haible  <bruno@clisp.org>
75386
75387         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75388         gt_TYPE_SSIZE_T.
75389
75390 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75391
75392         * modules/alloca: Remove dependency on xalloc.
75393
75394 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75395
75396         * lib/alloca.c: Remove dependency on xalloc module.
75397         (xalloc_die): Remove.
75398         (memory_full) [!defined emacs]: New macro.
75399         [!defined emacs]: Don't include xalloc.h.
75400         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75401         address arithmetic overflows.  Change datatypes a bit to avoid
75402         unnecessary casts.
75403
75404 2003-11-22  Jim Meyering  <jim@meyering.net>
75405
75406         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75407         s/size/size_t/.
75408
75409 2003-11-21  Karl Berry  <karl@gnu.org>
75410
75411         * config/config.{sub,guess}: update from config.
75412
75413 2003-11-18  Karl Berry  <karl@gnu.org>
75414
75415         * config/config.{sub,guess}: update from config.
75416
75417         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75418
75419 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75420
75421         * README: Mention that S+T cannot overflow if S is the size of
75422         an existing object and T is sufficiently small.
75423
75424 2003-11-17  Jim Meyering  <jim@meyering.net>
75425
75426         On systems without utime and without a utimes function capable of
75427         dealing with a NULL struct utimbuf* argument, this utime replacement
75428         could -- in unusual circumstances -- leak a file descriptor.
75429         * lib/utime.c: Include <unistd.h> and <errno.h>.
75430         (utime_null): Be sure to close `fd' and to preserve errno.
75431         Reported by Geoff Collyer via Arnold Robbins.
75432
75433 2003-11-17  Bruno Haible  <bruno@clisp.org>
75434
75435         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75436         (Depends-on): Add xsize.
75437
75438 2003-11-17  Bruno Haible  <bruno@clisp.org>
75439
75440         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75441
75442 2003-11-17  Bruno Haible  <bruno@clisp.org>
75443
75444         * lib/vasnprintf.c (alloca): Remove fallback definition.
75445         (freea): Remove definition.
75446         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75447         Reported by Paul Eggert.
75448
75449 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75450             Bruno Haible  <bruno@clisp.org>
75451
75452         Protect against address arithmetic overflow.
75453         * lib/printf-args.h: Include stddef.h.
75454         (arguments): Change type of field 'count' to size_t.
75455         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75456         'unsigned int' where appropriate.
75457         * lib/printf-parse.h: Include sys/types.h.
75458         (char_directive): Change type of *arg_index fields to ssize_t.
75459         (char_directives): Change type of fields 'count', max_*_length to
75460         size_t.
75461         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75462         (SSIZE_MAX): Define fallback value.
75463         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75464         instead of 'int' where appropriate. Check a_allocated, d_allocated
75465         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75466         * lib/vasnprintf.c: Include xsize.h.
75467         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75468         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75469         overflow. Avoid wraparound when converting a width or precision from
75470         decimal to binary.
75471
75472 2003-11-16  Bruno Haible  <bruno@clisp.org>
75473
75474         Update from GNU gettext.
75475         * lib/printf-parse.c: Generalize to it can be compiled for wide
75476         strings.
75477         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75478         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75479         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75480         SNPRINTF): New macros.
75481         Don't include <alloca.h> if the file is used inside libintl.
75482         (local_wcslen): New function, for Solaris 2.5.1.
75483         (VASNPRINTF): Use it instead of wcslen.
75484
75485 2003-11-16  Bruno Haible  <bruno@clisp.org>
75486
75487         * lib/xsize.h (xmax): New function.
75488         (xsum, xsum3, xsum4): Declare as "pure" functions.
75489
75490 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75491
75492         * modules/xalloc (Files): Undo latest change, since xalloc.h
75493         no longer needs SIZE_MAX or PTRDIFF_MAX.
75494
75495 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75496
75497         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75498         gl_PTRDIFF_MAX.
75499
75500 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75501
75502         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75503         "return", to pacify some unknown compiler.  Problem reported
75504         by Joerg Schilling.
75505
75506 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75507
75508         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75509         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75510         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75511         heuristic is just as accurate as far as we know, and it removes a
75512         dependency on size_max.m4 and ptrdiff_max.m4.
75513
75514 2003-11-11  Bruno Haible  <bruno@clisp.org>
75515
75516         * modules/xsize (Files): Add m4/size_max.m4.
75517         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75518
75519 2003-11-11  Bruno Haible  <bruno@clisp.org>
75520
75521         * m4/size_max.m4: New file.
75522         * m4/ptrdiff_max.m4: New file.
75523         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75524         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75525         (gl_XALLOC): Invoke it.
75526
75527 2003-11-11  Bruno Haible  <bruno@clisp.org>
75528
75529         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
75530         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
75531         defined.
75532
75533 2003-11-10  Paul Eggert  <eggert@twinsun.com>
75534
75535         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
75536         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
75537         rejected some allocations of exactly SIZE_MAX - 2 bytes.
75538         From Bruno Haible.
75539         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
75540         not (size_t) -1, since it's defined here.
75541
75542 2003-11-09  Karl Berry  <karl@gnu.org>
75543
75544         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
75545
75546 2003-11-06  Paul Eggert  <eggert@twinsun.com>
75547
75548         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
75549         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
75550         Reject sizes of exactly SIZE_MAX bytes.
75551         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
75552         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
75553
75554 2003-11-05  Bruno Haible  <bruno@clisp.org>
75555
75556         * lib/xsize.h: Include limits.h, to avoid a possible collision with
75557         SIZE_MAX defined in <limits.h> on Solaris.
75558
75559 2003-11-04  Jim Meyering  <jim@meyering.net>
75560
75561         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
75562         variable names, rather than @VAR@.
75563         * modules/poll: Likewise.
75564
75565 2003-11-04  Bruno Haible  <bruno@clisp.org>
75566
75567         * modules/xsize: New file.
75568         * modules/linebreak: Depend on xsize.
75569         * MODULES.html.sh (func_all_modules): Add xsize.
75570
75571 2003-11-04  Bruno Haible  <bruno@clisp.org>
75572
75573         * m4/xsize.m4: New file.
75574
75575 2003-11-04  Bruno Haible  <bruno@clisp.org>
75576
75577         * lib/xsize.h: New file.
75578         * lib/linebreak.c: Include xsize.h.
75579         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
75580         argument for overflow.
75581         Suggested by Paul Eggert.
75582
75583 2003-11-03  Karl Berry  <karl@gnu.org>
75584
75585         * config/config.{guess,sub}: update from config.
75586
75587 2003-11-03  Jim Meyering  <jim@meyering.net>
75588
75589         * modules/userspec (lib_SOURCES): Add userspec.h.
75590         (Include): Add "userspec.h".
75591         Improve description.
75592
75593 2003-11-03  Jim Meyering  <jim@meyering.net>
75594
75595         * lib/userspec.c: Include "userspec.h".
75596         * lib/userspec.h: New file.
75597
75598 2003-11-03  Bruno Haible  <bruno@clisp.org>
75599
75600         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
75601
75602 2003-11-03  Bruno Haible  <bruno@clisp.org>
75603
75604         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
75605         available, to avoid (extremely rare) race condition.
75606         Suggested by Paul Eggert.
75607
75608 2003-11-02  Karl Berry  <karl@gnu.org>
75609
75610         * config/srclist.txt (vasprintf.c): sync broken, sigh.
75611
75612 2003-10-31  Paul Eggert  <eggert@twinsun.com>
75613
75614         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
75615         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
75616         (read_filesystem_list): Set and use me_type_malloced.
75617         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75618         whatever the type happens to be), for brevity and consistency.
75619         Check for size calculation overflow on Alphas running OSF/1.
75620
75621 2003-10-31  Jim Meyering  <jim@meyering.net>
75622
75623         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75624
75625         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75626
75627 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75628             Bruno Haible  <bruno@clisp.org>
75629
75630         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75631         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75632
75633 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75634
75635         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75636         netbsd*-gnu*.  Suggested by Robert Millan.
75637
75638 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75639
75640         * modules/group-member: Depend on stdbool.
75641
75642 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75643
75644         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75645
75646 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75647
75648         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75649         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75650         after the 'gnu' in these cases.  This fixes some bugs in the
75651         previous change, and is based on suggestions by Robert Millan.
75652
75653 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75654
75655         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75656         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75657         no longer needed.
75658         * lib/quotearg.c (quotearg_n_options): Use it.
75659         * lib/group-member.c: Include <stdbool.h>.
75660         (free_group_info): Arg is now const *; don't free arg.
75661         (get_group_info): Now returns bool and accepts struct group_info *,
75662         rather than returning a malloc'ed struct group_info *.
75663         All uses changed.  Check for overflow in internal size calculation.
75664
75665         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75666         rather than xmalloc/xrealloc.
75667         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75668         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75669         conformance bug: the old code used a pointer after freeing the
75670         storage that it addressed.
75671         * lib/hash.c (hash_initialize): Simplify the code by using
75672         xalloc_oversized rather than doing it by hand.
75673         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75674         the buffer preserved.  Use free and xmalloc instead.
75675         * lib/quotearg.c (quotearg_n_options): Likewise.
75676         Use a simpler test for size overflow.  Don't use xalloc_oversized
75677         because unsigned int might be wider than size_t (!); this suggests
75678         that we should switch from unsigned int to size_t for slot numbers.
75679
75680 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75681
75682         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75683         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75684         NetBSD kernels.  Requested by Richard Stallman.
75685
75686 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75687
75688         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75689         to allocate the returned structure.  Do not allocate a subarray,
75690         as x2nrealloc will do that.
75691         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
75692         instead of xnrealloc.
75693         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
75694
75695 2003-10-27  Bruno Haible  <bruno@clisp.org>
75696
75697         * lib/stdbool_.h: Better support for BeOS.
75698
75699 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75700
75701         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
75702         now uses inline.
75703
75704 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75705
75706         * lib/xalloc.h (xalloc_oversized): New static inline function, for
75707         callers that want to do their own size-overflow checking.  Include
75708         <stdbool.h>, since xalloc_oversized returns bool.
75709         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
75710         to use xalloc_oversized.
75711
75712         Add two functions x2realloc, x2nrealloc, for programs that grow
75713         arrays dynamically by doubling their sizes.
75714         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
75715         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
75716         New functions.
75717
75718         Port to C99 semantics for 'inline' of external functions.
75719         Bug reported by Bruno Haible.
75720         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
75721         with the old contents of xnmalloc.
75722         (xnmalloc, xmalloc): Use it.
75723         (xnrealloc_inline): New static inline function,
75724         with the old contents of xnrealloc.
75725         (xnrealloc, xrealloc): Use it.
75726
75727         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
75728         that.
75729
75730 2003-10-26  Karl Berry  <karl@gnu.org>
75731
75732         * config/srclist.txt (COPYING.DOC): no longer available from
75733         /gd/gnuorg; don't know where the ultimate source is.
75734
75735 2003-10-25  Paul Eggert  <eggert@twinsun.com>
75736
75737         Fix several address-calculation bugs in the hash modules,
75738         plus some minor code cleanup.
75739
75740         * lib/hash.h: Include <stdbool.h>, for bool.
75741         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
75742         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
75743         hash_get_n_entries, hash_get_max_bucket_length,
75744         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
75745         hash_rehash): Use size_t rather than unsigned.
75746         * lib/hash.c (struct hash_table, hash_get_n_buckets,
75747         hash_get_n_buckets_used, hash_get_n_entries,
75748         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
75749         hash_get_entries, hash_do_for_each, hash_string, is_prime,
75750         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
75751         Likewise.
75752         (SIZE_MAX): Define if not defined.
75753         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
75754         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
75755         hash_print):
75756         Use const * when possible.
75757         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
75758         (check_tuning): Fix bug: if tuning parameters were very close to
75759         0 or 1, rounding errors could have caused subscript violations.
75760         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
75761         (hash_initialize): Add 'fail:' label
75762         to free table and return NULL, and use it to simplify code.
75763         Use calloc rather than clearing the storage ourself.
75764         (hash_initialize, hash_rehash): Check for arithmetic overflow in
75765         buffer size calculations.
75766         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
75767         Include <stddef.h>, for size_t.
75768         * lib/hash-pjw.c (hash_pjw): Likewise.
75769         Switch to method described by Bruno Haible.
75770         Include <limits.h>, for CHAR_BIT.
75771         (SIZE_BITS): New macro.
75772
75773 2003-10-23  Paul Eggert  <eggert@twinsun.com>
75774
75775         * m4/getline.m4 (AM_FUNC_GETLINE):
75776         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
75777         hosts.  Problem reported by Derek Robert Price in
75778         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
75779         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
75780         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
75781
75782 2003-10-21  Paul Eggert  <eggert@twinsun.com>
75783
75784         * lib/getndelim2.c (getndelim2): When size calculation overflows,
75785         ceiling the allocation at NMAX bytes rather than silently
75786         discarding input bytes before NMAX is reached.  This makes
75787         a difference only if NMAX exceeds SIZE_MAX / 2.
75788
75789         * lib/obstack.c: Merge from glibc.
75790         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
75791         Add libc_hidden_def (_obstack_newchunk).
75792         (_obstack_free) [! defined _LIBC]: Remove.
75793         [defined _LIBC]: Make a strong alias from obstack_free, rather than
75794         a clone of the function body.
75795         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
75796         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
75797
75798         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
75799         glibc.
75800         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
75801         arg to memcpy.
75802
75803         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
75804         (obstack_ptr_grow_fast, obstack_int_grow_fast):
75805         Don't use lvalue casts, as GCC plans to remove support for them
75806         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
75807         was also present in the non-GCC version, indicating that this
75808         code had always been buggy and had never been widely used.
75809         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
75810         Use the fast variant of each macro, rather than copying the
75811         definiens of the fast variant; that way, we'll be more likely to
75812         catch future bugs in the fast variants.
75813
75814 2003-10-20  Bruno Haible  <bruno@clisp.org>
75815
75816         * modules/wait-process: New file.
75817         * MODULES.html.sh (func_all_modules): Add wait-process.
75818
75819 2003-10-20  Bruno Haible  <bruno@clisp.org>
75820
75821         * m4/wait-process.m4: New file.
75822
75823 2003-10-20  Bruno Haible  <bruno@clisp.org>
75824
75825         * lib/wait-process.h: New file, from GNU gettext.
75826         * lib/wait-process.c: New file, from GNU gettext.
75827
75828 2003-10-19  Jim Meyering  <jim@meyering.net>
75829
75830         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
75831         HPUX 10.20.
75832
75833 2003-10-18  Karl Berry  <karl@gnu.org>
75834
75835         * config/config.guess: update from config.
75836
75837 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75838
75839         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
75840         (getgroups): First arg is int, not size_t.
75841         Don't let 'free' mangle errno.
75842
75843 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75844
75845         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
75846
75847 2003-10-16  Karl Berry  <karl@gnu.org>
75848
75849         * config/config.{guess,sub}: update from config.
75850
75851 2003-10-16  Jim Meyering  <jim@meyering.net>
75852
75853         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
75854         memcpy.
75855
75856 2003-10-15  Paul Eggert  <eggert@twinsun.com>
75857
75858         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
75859         (SIZE_MAX): Remove.
75860         (new_exclude, add_exclude_file): Initial size no longer needs to
75861         be a power of 2.
75862         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
75863         our own address arithmetic overflow checking.
75864
75865         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
75866         (fnmatch): Do not alloca more than 2000 wide characters;
75867         instead, use malloc for large buffers.
75868         Check for address arithmetic overflow, and return -1
75869         with errno set to ENOMEM in that case.
75870         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
75871         (NEW_PATTERN): Do not alloca more than 8000 bytes;
75872         instead, return -1.  Check for address arithmetic overflow.
75873
75874 2003-10-14  Paul Eggert  <eggert@twinsun.com>
75875
75876         Handle invalid suffixes and overflow independently, so that
75877         callers can treat them independently as needed.  Fix some bugs in
75878         suffix handling, e.g., "100k@" was not diagnosed as an invalid
75879         suffix for a human-readable blocksize.  The major caller-visible
75880         change is the addition of a new
75881         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
75882         that both overflow and suffix chars were found.
75883
75884         * lib/human.c (humblock): Don't check separately for invalid suffix
75885         char; that is xstrtoumax's job (now that its bug is fixed).
75886         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
75887         INTMAX_MAX]: New macros.
75888         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
75889         TYPE_MAXIMUM): New macros.
75890         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
75891         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
75892         if overflow occurs, as it's what __strtol does and it's more useful
75893         in practice.
75894         (__xstrtol): If __strtol reports some error other than ERANGE,
75895         reflect it to the caller as LONGINT_INVALID.  If it reports
75896         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
75897         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
75898         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
75899         value.
75900         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
75901         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
75902         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
75903         [defined UINTMAX_MAX]: New macros.
75904
75905 2003-10-14  Bruno Haible  <bruno@clisp.org>
75906
75907         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
75908
75909 2003-10-14  Bruno Haible  <bruno@clisp.org>
75910
75911         * m4/sig_atomic_t: New file, from GNU gettext.
75912         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
75913
75914 2003-10-14  Bruno Haible  <bruno@clisp.org>
75915
75916         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
75917         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
75918         Also use volatile where needed.
75919
75920 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75921
75922         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
75923         Change maintainer from Bruno Haible to 'all'.
75924
75925 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75926
75927         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
75928
75929 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75930
75931         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
75932         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
75933         and define in terms of the other primitives.
75934         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
75935         (SIZE_MAX): Define if not already defined.
75936         (array_size_overflow): New function.
75937         (xalloc_die): Abort instead of exiting if 'error' returns.
75938         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
75939         (xmalloc, xrealloc): Use them.
75940         (xcalloc): Check for address arithmetic overflow.
75941         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
75942         a bit faster than strcpy.
75943
75944 2003-10-10  Simon Josefsson  <jas@extundo.com>
75945
75946         * modules/argp (Depends-on): Add restrict and strcase.
75947
75948 2003-10-10  Simon Josefsson  <jas@extundo.com>
75949
75950         * m4/argp.m4: Add AC_C_INLINE.
75951
75952 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75953
75954         Merge getpass from libc, plus a few fixes.
75955
75956         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
75957         Include <stdbool.h>.
75958         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
75959         __fsetlocking to empty.
75960         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
75961         do include <bits/libc-lock.h>.
75962         Do not include <fcntl.h>; not needed.
75963         [_LIBC]: Include <wchar.h>.
75964         (NOTCANCEL_MODE): New macro.
75965         (flockfile, funlockfile) [_LIBC]: New macros.
75966         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
75967         [!_LIBC]: New macros.
75968         (call_fclose): New function.
75969         (getpass): Use it.  Save tty stream separately; this simplifies the
75970         code and makes it more reliable if stdin happens to equal stdout.
75971         Invoke __fsetlocking on tty.
75972         Handle thread cancellation if needed.
75973         Namespace cleanup (use __tcgetattr, __getline).
75974         Use bool for Booleans.
75975         [USE_IN_LIBIO]: Handle wide streams.
75976         [!_LIBC]: Unconditionally do the fseek, since we don't know what
75977         stream might go where.
75978
75979         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
75980         doesn't have to include <stdio.h> before us.
75981         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
75982         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
75983         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
75984         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
75985         if not declared, so that we can use getpass.c code from libc without
75986         rewriting it.
75987         (flockfile, ftrylockfile, funlockfile): New macros.
75988
75989 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75990
75991         * modules/getpass: Depend on stdbool.
75992
75993 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75994
75995         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
75996
75997 2003-10-07  Karl Berry  <karl@gnu.org>
75998
75999         * config/config.{guess,sub}: update from config.
76000
76001 2003-10-06  Jim Meyering  <jim@meyering.net>
76002             Bruno Haible  <bruno@clisp.org>
76003
76004         This lets translators provide better translations for the
76005         "Written by ..." part of --version output.
76006         * lib/version-etc.h: Include stdarg.h.
76007         (version_etc_copyright): Declare as readonly.
76008         (version_etc): Make this function variadic with a NULL-terminated list
76009         of author name strings.
76010         (version_etc_va): New declaration.
76011         * lib/version-etc.c: Include stdarg.h, stdlib.h.
76012         (version_etc_copyright): Declare as readonly.
76013         (version_etc_va): New function. Provide a different translatable string
76014         for each possible number of authors < 10. Abbreviate when there are 10
76015         authors or more.
76016         (version_etc): Make this function variadic. Call version_etc_va.
76017         Suggestion from Gary V. Vaughan.
76018
76019         * lib/long-options.h (parse_long_options): Change prototype: the
76020         authors string is moved to the end and becomes variadic.
76021         * lib/long-options.c: Include stdarg.h.
76022         (parse_long_options): Make this function variadic, too.
76023         Call version_etc_va, not version_etc.
76024
76025 2003-10-06  Bruno Haible  <bruno@clisp.org>
76026
76027         * modules/version-etc-2: Remove file.
76028         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
76029
76030 2003-10-06  Bruno Haible  <bruno@clisp.org>
76031
76032         * modules/fatal-signal: New file.
76033         * MODULES.html.sh (func_all_modules): Add fatal-signal.
76034
76035 2003-10-06  Bruno Haible  <bruno@clisp.org>
76036
76037         * m4/fatal-signal.m4: New file.
76038         * m4/signalblocking.m4: New file, from GNU gettext.
76039
76040 2003-10-06  Bruno Haible  <bruno@clisp.org>
76041
76042         * lib/version-etc-2.h: Remove file.
76043         * lib/version-etc-2.c: Remove file.
76044
76045 2003-10-06  Bruno Haible  <bruno@clisp.org>
76046
76047         * lib/fatal-signal.h: New file, from GNU gettext.
76048         * lib/fatal-signal.c: New file, from GNU gettext.
76049
76050 2003-10-05  Paul Eggert  <eggert@twinsun.com>
76051
76052         * README: Rework advice for preventing empty .o files.
76053         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
76054         not <sys/types.h>.
76055
76056 2003-10-04  Karl Berry  <karl@gnu.org>
76057
76058         * lib/argp*: update from libc.
76059
76060 2003-10-04  Karl Berry  <karl@gnu.org>
76061
76062         * config/config.{guess,sub}: update from config.
76063
76064 2003-10-02  Bruno Haible  <bruno@clisp.org>
76065
76066         * modules/lchown (Include): Add lchown.h.
76067         * modules/time_r (Include): Use "..." syntax.
76068         * modules/xgetdomainname (Include): Add xgetdomainname.h.
76069
76070 2003-10-01  Simon Josefsson  <jas@extundo.com>
76071
76072         * MODULES.html.sh (func_all_modules): Move gethostname from section
76073         'based on' to section 'lacking' POSIX:2001.
76074
76075 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
76076
76077         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
76078         to output mode on the same stream.
76079
76080 2003-09-29  Paul Eggert  <eggert@twinsun.com>
76081
76082         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
76083         Fix arg typo in previous patch.
76084
76085 2003-09-28  Jim Meyering  <jim@meyering.net>
76086
76087         * lib/error.c: Correct cpp indentation.
76088
76089 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76090
76091         * modules/free: New file.
76092
76093 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76094
76095         * m4/free.m4: New file.
76096
76097 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76098
76099         * lib/minmax.h (MIN, MAX)
76100         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
76101         Omit the special code that used __typeof__, since we worry that
76102         it could be more trouble than it's worth.  See:
76103         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
76104         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
76105
76106         * lib/free.c: New file.
76107
76108 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
76109
76110         Trivial fixes to Makefile.am parts of module listings.
76111         * modules/strstr: Append strstr.h to lib_SOURCES.
76112         * modules/strcase: Likewise, for strcase.h.
76113
76114 2003-09-27  Karl Berry  <karl@gnu.org>
76115
76116         * config/mkinstalldirs: update from automake.
76117
76118 2003-09-26  Paul Eggert  <eggert@twinsun.com>
76119
76120         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
76121         (error_tail): Do not loop, reallocating temporary buffer, since
76122         the output cannot contain more wide characters than the input
76123         contains bytes, the size must be big enough already.  This avoids
76124         one potential size overflow calculation.  Check for size overflow
76125         when calculating temporary buffer size.  Free temporary buffer
76126         when done, if it was allocated with malloc; this plugs a memory
76127         leak.  Remove casts from void * to pointers, that are no longer
76128         needed now that we're assuming C89 or better.
76129
76130         Merge error changes from glibc.
76131
76132         * lib/error.c, error.h: Update copyright notice header to match glibc.
76133         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
76134         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
76135         Disable cancellation while printing error.
76136         * lib/error.h: Prepend __ to parameter names.
76137
76138 2003-09-26  Jim Meyering  <jim@meyering.net>
76139
76140         * lib/error.c (error_tail): Move some declarations
76141         into inner scope where the local variables are used.
76142
76143 2003-09-26  Bruno Haible  <bruno@clisp.org>
76144
76145         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
76146         stpncpy().
76147         Don't define stpncpy through config.h; it's now done through stpncpy.h.
76148
76149 2003-09-26  Bruno Haible  <bruno@clisp.org>
76150
76151         * lib/stpncpy.h (gnu_stpncpy): New declaration.
76152         (stpncpy): Define as alias for gnu_stpncpy.
76153         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
76154
76155 2003-09-25  Simon Josefsson  <jas@extundo.com>
76156
76157         * lib/xgetdomainname.h: New file.
76158         * lib/xgetdomainname.c: New file.
76159
76160 2003-09-25  Simon Josefsson  <jas@extundo.com>
76161             Bruno Haible  <bruno@clisp.org>
76162
76163         * modules/getdomainname: New file.
76164         * modules/xgetdomainname: New file.
76165         * MODULES.html.sh (func_all_modules): Add getdomainname,
76166         xgetdomainname.
76167
76168 2003-09-25  Simon Josefsson  <jas@extundo.com>
76169             Bruno Haible  <bruno@clisp.org>
76170
76171         * m4/getdomainname.m4: New file.
76172
76173 2003-09-25  Simon Josefsson  <jas@extundo.com>
76174             Bruno Haible  <bruno@clisp.org>
76175
76176         * lib/getdomainname.h: New file.
76177         * lib/getdomainname.c: New file.
76178
76179 2003-09-25  Karl Berry  <karl@gnu.org>
76180
76181         * lib/argp-fmtstream.c, argp-help.c: update from libc.
76182
76183 2003-09-25  Karl Berry  <karl@gnu.org>
76184
76185         * config/install-sh: update from automake.
76186
76187 2003-09-25  Bruno Haible  <bruno@clisp.org>
76188
76189         * modules/version-etc-2: New file, from modules/version-etc with
76190         modifications.
76191         * MODULES.html.sh (func_all_modules): Add version-etc-2.
76192
76193 2003-09-25  Bruno Haible  <bruno@clisp.org>
76194
76195         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
76196         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
76197
76198 2003-09-24  Simon Josefsson  <jas@extundo.com>
76199
76200         * modules/xgethostname: Add xgethostname.h.
76201
76202 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76203
76204         * lib/linebuffer.c (freebuffer): Don't free the argument, just
76205         the buffer associated with the argument.  Bug reported by
76206         Simon Josefsson.
76207
76208 2003-09-24  Paul Eggert  <eggert@twinsun.com>
76209
76210         * README: Document assumptions that 'int' is at least 32 bits
76211         wide, that integer arithmetic is 2's complement without overflow,
76212         that there are no holes in integer values, that adding sizes of
76213         two nonoverlapping objects can't overflow, and that all-bits-zero
76214         yields scalar zero.  Fix spelling and capitalization typos.
76215
76216 2003-09-19  Karl Berry  <karl@gnu.org>
76217
76218         * lib/argp.h: update from libc.
76219
76220 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76221
76222         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
76223         to avoid spurious warnings like "AC_RUN_IFELSE was called before
76224         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
76225
76226 2003-09-17  Paul Eggert  <eggert@twinsun.com>
76227
76228         * gnulib-tool: Use "test -h", not "test -L", for portability
76229         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
76230         (tags_regexp): Remove, since \| doesn't conform to POSIX.
76231         (sed_extract_prog): Issue s commands one-by-one, rather than
76232         using \| in one s command.
76233
76234 2003-09-16  Paul Eggert  <eggert@twinsun.com>
76235
76236         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
76237         input error, instead of returning NULL the next time we are called
76238         (and therefore losing track of errno).
76239
76240 2003-09-16  Bruno Haible  <bruno@clisp.org>
76241
76242         * gnulib-tool (func_create_testdir): Warn about duplicated
76243         dependencies.
76244
76245 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76246
76247         * modules/argmatch, modules/fatal, modules/obstack,
76248         modules/xalloc, modules/xgethostname: Sort dependencies by
76249         importance, not alphabetically.
76250
76251 2003-09-15  Paul Eggert  <eggert@twinsun.com>
76252
76253         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
76254         fails, so that the caller gets the proper errno.
76255
76256         * lib/readutmp.c (read_utmp): Likewise.
76257         Check for fstat error.  Close stream and free storage
76258         when failing.
76259
76260 2003-09-14  Karl Berry  <karl@gnu.org>
76261
76262         * config/srclist.txt (strdup.c): disable for c89 changes.
76263
76264 2003-09-14  Jim Meyering  <jim@meyering.net>
76265
76266         * lib/getloadavg.c: Correct cpp indentation.
76267         * lib/strdup.c: Likewise.
76268         * lib/vasnprintf.c: Likewise.
76269
76270 2003-09-14  Bruno Haible  <bruno@clisp.org>
76271
76272         * modules/fwriteerror: New file.
76273         * MODULES.html.sh (func_all_modules): Add fwriteerror.
76274
76275 2003-09-14  Bruno Haible  <bruno@clisp.org>
76276
76277         * lib/fwriteerror.h: New file.
76278         * lib/fwriteerror.c: New file.
76279
76280 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76281
76282         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
76283         modules/xgethostname, modules/xalloc: Depend on exit.
76284
76285 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76286
76287         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
76288
76289         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
76290         and AC_MINIX, too, so that their extensions are available.
76291
76292         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
76293         This macro has been superseded by gl_BACKUPFILE.
76294
76295         More patches to assume C89 or better.
76296
76297         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
76298
76299         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
76300         unconditionally.
76301         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
76302         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
76303         Include <string.h>, <stdlib.h> unconditionally.
76304         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
76305         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
76306         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
76307         headers or for string.h.
76308         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76309         or strtoul.
76310
76311         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76312         headers.
76313         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76314         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76315         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76316         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76317         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76318         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76319         memcpy, memset.
76320         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76321         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76322         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76323         strtol.
76324         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76325         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76326         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76327         strtoul.
76328
76329 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76330
76331         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76332         * lib/obstack.c [!defined _LIBC]: Likewise.
76333         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76334         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76335         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76336
76337         More changes to assume C89 or better.
76338
76339         * lib/error.c (error_tail): Assume vprintf.
76340
76341         * lib/argmatch.c (getenv): Remove decl.
76342         * lib/progreloc.c (get_full_program_name): Define via prototype.
76343         * lib/setenv.c (clearenv): Likewise.
76344         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76345         needed.
76346         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76347         (malloc, memcpy): Remove decls.
76348         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76349         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76350         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76351         (memcpy): Remove macro.
76352         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76353         (__P): Remove.  All uses removed.
76354         (PTR): Remove.  All uses changed to void *.
76355         (CHAR_BIT, NULL): Remove.
76356         (spaces, zeros, memset_space, memset_zero)
76357         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76358         Remove.
76359         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76360         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76361         Define with prototype.
76362         Remove now-unnecessary prototype decl.
76363         (extra_args_spec): Assume ANSI C.  All uses changed.
76364         (extra_args_spec_iso): Remove.
76365         (my_strftime, emacs_strftimeu): Define via prototype.
76366         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76367         unconditionally.
76368         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76369         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76370         (strtoul, strtol): Remove decls.
76371         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76372         LONG_MAX): Remove.
76373         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76374         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76375         (LOCALE_PARAM_PROTO): New macro.
76376         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76377         (INTERNAL (strtol), strtol): Define with a prototype.
76378         (PARAMS): Remove.  All uses removed.
76379         * lib/tempname.c: Include <string.h> unconditionally.
76380         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76381         * lib/xgethostname.c (main): Define with a prototype.
76382         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76383         Include <stdlib.h> unconditionally.
76384         (calloc, malloc, realloc, free): Remove decls.
76385         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76386         Include <stdlib.h> unconditionally.  Sort include file names.
76387         (strtod): Remove.
76388         (xstrtod): Define with a prototype.
76389         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76390         (strtol, strtoul): Remove decls.
76391
76392 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76393
76394         More patches to assume C89 or better.
76395         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76396         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76397         string.h, memchr, STDC_HEADERS.
76398
76399 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76400
76401         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76402         Include <stdlib.h>, <string.h> unconditionally.
76403         Remove now-unnecessary cast to char *.
76404         * lib/strnlen.c: Include <string.h> unconditionally.
76405         * lib/yesno.c (yesno): Define with a prototype.
76406
76407 2003-09-11  Bruno Haible  <bruno@clisp.org>
76408
76409         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76410
76411 2003-09-10  Jim Meyering  <jim@meyering.net>
76412
76413         * lib/error.c: Correct indentation of cpp directives.
76414
76415 2003-09-10  Bruno Haible  <bruno@clisp.org>
76416
76417         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76418         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76419         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76420         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76421         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76422         <stdlib.h> and <string.h> checks.
76423         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76424         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76425
76426 2003-09-10  Bruno Haible  <bruno@clisp.org>
76427
76428         * lib/strcspn.c: Include <string.h> unconditionally.
76429         * lib/strpbrk.c: Include <string.h> unconditionally.
76430         * lib/strstr.c: Include <string.h> unconditionally.
76431         * lib/unicodeio.c: Include <string.h> unconditionally.
76432         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76433         * lib/unsetenv.c: Likewise.
76434         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76435         * lib/yesno.c: Include <stdlib.h> unconditionally.
76436         (rpmatch): Add prototype.
76437
76438 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76439
76440         More patches to assume C89 or better.
76441         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76442         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76443         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76444         or for string.h.
76445         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76446         stdlib.h.
76447         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76448         C headers.
76449         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76450         string.h.
76451         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76452         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76453         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76454         or for string.h.
76455         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76456         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76457         C headers.
76458         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76459         memcpy.
76460         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76461         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76462         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76463         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76464         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76465         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76466         string.h, free.
76467         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76468         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76469         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76470         C headers, or for string.h.
76471         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76472         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76473         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76474         headers, memory.h, stdlib.h, string.h, strings.h.
76475         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76476         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76477         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76478         strchr.
76479         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76480         headers, memory.h, string.h.
76481         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76482         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76483         free.
76484         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76485         headers.
76486         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76487         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76488         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76489         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76490         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76491
76492 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76493
76494         More K&R removal.
76495
76496         * lib/acosl.c (main): Use a prototype.
76497         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76498         tanl.c: Likewise.
76499
76500         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76501
76502         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76503         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76504         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76505         with a prototype.
76506         * lib/getopt.c (const): Remove macro.
76507         Include <string.h> unconditionally.
76508         (my_index): Remove; all uses changed to strchr.
76509         (strlen): Remove decl.
76510         (exchange): Remove forward decl; no longer needed.
76511         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76512         Define with prototype.
76513         * lib/getopt1.c (const): Remove macro.
76514         (getopt_long, getopt_long_only, main): Define with prototype.
76515
76516         * lib/getugroups.c: Include <string.h> unconditionally.
76517
76518         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76519         (getusershell, setusershell, endusershell, readname, main):
76520         Define with prototypes.
76521
76522         * lib/group-member.c: Include group-member.h first.
76523         Include <stdlib.h> unconditionally.
76524
76525         * lib/hard-locale.c: Include hard-locale.h first.
76526         Include <stdlib.h>, <string.h> unconditionally.
76527
76528         * lib/hash.c (free, malloc): Remove decls.
76529         Include <stdlib.h> unconditionally.
76530
76531         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
76532         (getenv): Do not declare.
76533
76534         * lib/idcache.c: Include <string.h> unconditionally.
76535
76536         * lib/long-options.c: Include long-options.h first, to test interface.
76537         Include <stdlib.h> unconditionally.
76538
76539         * lib/makepath.c: Include makepath.h first, to test interface.
76540         Include <stdlib.h> and <string.h> unconditionally.
76541
76542         * lib/linebuffer.c: Include <stdlib.h>.
76543         (free): Remove decl.
76544
76545         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
76546         stddef.h. rpl_malloc returns void *, not char *.
76547         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
76548         prototype.
76549
76550         * lib/md5.h: Include <limits.h> unconditionally.
76551         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
76552         (__P): Remove; all uses removed.
76553         * lib/md5.c: Include "md5.h" first.
76554         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
76555         md5_buffer, md5_process_bytes, md5_process_block):
76556         Define with prototypes.
76557         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
76558         * lib/sha.c: Include "sha.h" first.
76559         Include <stdlib.h>, <string.h> unconditionally.
76560
76561         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
76562         * lib/memcmp.c (__ptr_t): Likewise.
76563         * lib/memrchr.c (__ptr_t): Likewise.
76564         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
76565         Include <string.h> unconditionally.
76566         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
76567         * lib/memchr.c: Include <stdlib.h> unconditionally.
76568         * lib/memchr.c (LONG_MAX): Remove.
76569         * lib/memrchr.c (LONG_MAX): Likewise.
76570         * lib/memchr.c (__memchr): Define via a prototype.
76571         * lib/memrchr.c (__memrchr): Likewise.
76572         * lib/memcmp.c (__P): Remove, and remove all uses.
76573         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
76574         Remove forward decls; no longer needed.
76575         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
76576         Use types required by C89 in prototype.
76577
76578         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
76579         * lib/savedir.c: Likewise.
76580         * lib/mkdir.c (free): Remove decl.
76581         * lib/rmdir.c (rmdir): Define with a prototype.
76582         * lib/savedir.c: Include savedir.h first, to test interface.
76583
76584         * lib/mktime.c (STDC_HEADERS): Remove.
76585         Include <stdlib.h>, <string.h> unconditionally.
76586
76587         * lib/modechange.c: Include <stdlib.h> unconditionally.
76588         (malloc): Remove decl.
76589
76590         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
76591         (free): Remove decl.
76592
76593         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
76594         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
76595         (This type really should be intptr_t, but that's a C99ism.)
76596         (_obstack_memcpy): Remove: all uses changed to memcpy.
76597         Include <string.h> unconditionally.
76598         (struct obstack): Assume __STDC__ for types of members
76599         chunkfun, freefun, extra_arg.
76600         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
76601         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
76602         obstack_begin, obstack_specify_allocation,
76603         obstack_specify_allocation_with_arg, obstack_chunkfun,
76604         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
76605         Remove unprototyped decls and the macros that use them.
76606         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
76607         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
76608         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
76609         (defined __STDC__ && __STDC__)]:
76610         Remove nonprototyped code.
76611         Include <stdlib.h> unconditionally.
76612         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
76613         _obstack_allocated_p, _obstack_free, obstack_free,
76614         _obstack_memory_used, print_and_abort):
76615         Define using prototypes.
76616         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
76617         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76618         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76619         obstack_next_free, obstack_object_size, obstack_room) [0]:
76620         Remove unused, unprototyped code.
76621
76622         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76623
76624         * lib/physmem.c (physmem_total, physmem_available, main): Define
76625         with prototypes.
76626
76627         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76628         (main): Define with a prototype.
76629
76630         * lib/posixver.c (getenv): Remove decl.
76631
76632         * lib/putenv.c (malloc): Returns void *, not char *.
76633         Include <string.h> unconditionally.
76634         (strchr, memcpy, NULL): Do not define.
76635
76636         * lib/readtokens.c: Include readtokens.h first, to test interface.
76637         Include <stdlib.h>, <string.h> unconditionally.
76638         (init_tokenbuffer): Define with a prototype.
76639
76640         * lib/regex.c (PARAMS): Remove.  All uses removed.
76641         All uses of _RE_ARGS removed, too.
76642         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76643         unconditionally.
76644         (bzero): Assume memset exists.
76645         (memcmp, memcpy, NULL): Remove.
76646         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76647         char, or assignments to local vars of type signed char.
76648         (init_syntax_once, PREFIX(extract_number_and_incr),
76649         PREFIX(print_partial_compiled_pattern),
76650         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76651         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76652         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76653         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76654         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76655         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76656         wcs_compile_range, byte_compile_range, truncate_wchar,
76657         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76658         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76659         count_mbs_length, wcs_re_match_2_internal,
76660         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76661         PREFIX(alt_match_null_string_p),
76662         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76663         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76664         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76665         now-unnecessary declaration, if any.
76666         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76667         regcomp, regexec):
76668         Remove now-unnecessary casts among pointer types.
76669         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76670
76671         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76672         (free): Remove decl.
76673
76674         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76675
76676         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76677         (free): Remove decl.
76678
76679         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76680         * lib/xgetcwd.c: Likewise.
76681
76682         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76683         (free): Remove decl.
76684
76685         * lib/strchrnul.c (strchrnul): Define with a prototype.
76686         Fix bug: c_in was not converted to char before searching.
76687
76688         The following changes are not K&R related:
76689
76690         * lib/group-member.h: Include <sys/types.h>, so that this file is
76691         self-contained.
76692         * lib/makepath.h: Likewise.
76693
76694         * lib/getusershell.c (readname, default_index, line_size, readname):
76695         Use size_t, not int, for sizes.
76696         (readname): If the size overflows, report an error instead of
76697         looping forever.
76698
76699 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76700
76701         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
76702         libc.
76703
76704 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76705
76706         * README: New section: portability guidelines.
76707
76708 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76709
76710         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
76711         C89 spec.
76712
76713 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76714
76715         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
76716
76717 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76718
76719         Assume C89 or better; remove K&R cruft.
76720         A few of these changes were first proposed by Derek Robert Price
76721         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
76722
76723         * lib/addext.c: Include <string.h> unconditionally.
76724         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
76725         Don't declare getenv or malloc.
76726
76727         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
76728         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
76729         (NULL): Remove.
76730         (find_stack_direction, alloca): Use prototypes.
76731
76732         * lib/atexit.c (atexit): Define using a prototype.
76733
76734         * lib/basename.c, dirname.c, stripslash.c:
76735         Include <string.h> unconditionally.
76736
76737         * lib/bcopy.c: Include <stddef.h>.
76738         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
76739
76740         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
76741
76742         * lib/error.h (error, error_at_line, error_print_progname)
76743         [! (defined (__STDC__) && __STDC__)]: Remove decls.
76744         * lib/error.c: Include error.h first, to check interface.
76745         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76746         (VA_START): Remove; all uses changeed to va_start.
76747         (exit, strerror): Remove decls.
76748         (error_print_progname): Prototype uncondionally.
76749         Don't include <errno.h>; no longer needed.
76750         (private_strerror): Remove.
76751         (error_tail): Always define.
76752         (error, error_at_line): Assume C89 or better; always use prototypes.
76753         * lib/fatal.c: Include "fatal.h" first, to test interface.
76754         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76755         (VA_START): Remove; all uses changed to va_start.
76756         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
76757         this case.
76758         (exit): Remove decl.
76759         (fatal): Prototype unconditionally.  Assume va_start works.
76760         Abort at end, to pacify gcc.
76761
76762         * lib/euidaccess.c (main): Define with a prototype.
76763
76764         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
76765
76766         * lib/exitfail.c: Include <stdlib.h> unconditionally.
76767
76768         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
76769         prototypes.
76770         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
76771         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
76772         (getenv): Remove decl.
76773         (fnmatch): Define using a prototype.
76774         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
76775         (FCT): Define using a prototype.
76776
76777         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
76778
76779         * lib/gethostname.c: Include <stddef.h>.
76780         (gethostname): Define with prototype.  Length is size_t, not int.
76781
76782 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76783
76784         Assume C89 or better; remove K&R cruft.
76785         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
76786         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
76787         string.h, getenv, malloc.
76788         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
76789         headers.
76790         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
76791         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
76792         do not check for strerror.
76793         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
76794         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
76795         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
76796         do not check for doprnt or vprintf.
76797         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
76798         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
76799
76800 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76801
76802         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
76803         getversion.c should have been removed then, but was accidentally
76804         preserved.
76805
76806         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
76807         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
76808
76809 2003-09-08  Karl Berry  <karl@gnu.org>
76810
76811         * config/config.sub, config.guess, srclistvars.sh: update from savannah
76812                 config, forget about prep.
76813
76814         * config/depcomp, missing: update from automake.
76815
76816 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76817
76818         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
76819         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76820
76821 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76822
76823         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
76824         copy_tm_result.  Bug reported by Simon Josefsson in
76825         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76826
76827 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76828
76829         * m4/time_r.m4: New file.
76830         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
76831         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
76832         is. Check for timegm declaration.
76833         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
76834         Do not check for gmtime_r.
76835         Replace mktime if __mktime_internal does not exist and if mktime
76836         hasn't been replaced already.
76837
76838 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76839
76840         * lib/time_r.c, lib/time_r.h: New files.
76841
76842         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
76843         __localtime_r.
76844         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
76845         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
76846
76847         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
76848         __gmtime_r.
76849         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
76850         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
76851         Include <time_r.h>.
76852
76853         * lib/timegm.c: Switch to glibc implementation, with the following
76854         changes:
76855         [defined HAVE_CONFIG_H]: Include <config.h>.
76856         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
76857         (__mktime_internal) [!defined _LIBC]: New decl.
76858         (__gmtime_r) [!defined _LIBC]: New macro and function.
76859         (timegm): Use a prototype, since gnulib assumes C89.
76860         Do not bother declaring tmp to be const, as it's not really usefu.
76861         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
76862         (timegm): Declare only if HAVE_DECL_TIMEGM.
76863
76864 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76865
76866         * MODULES.html.sh (func_all_modules): Add time_r.
76867         * modules/time_r: New file.
76868         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
76869         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
76870
76871 2003-09-03  Paul Eggert  <eggert@twinsun.com>
76872
76873         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
76874         Bug reported by Lute Kamstra in
76875         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
76876
76877         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
76878         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
76879         course with correspondingly smaller numbers for tomorrow and
76880         yesterday.  From Tadayoshi Funaba.  Originally installed into
76881         sh-utils on 1999-08-07, but the patch got lost (I guess during the
76882         coreutils merge?).
76883
76884 2003-08-31  Simon Josefsson  <jas@extundo.com>
76885
76886         * modules/timegm: New file.
76887         * MODULES.html.sh (func_all_modules): Add timegm.
76888
76889 2003-08-31  Simon Josefsson  <jas@extundo.com>
76890
76891         * m4/timegm.m4: New file.
76892
76893 2003-08-31  Simon Josefsson  <jas@extundo.com>
76894
76895         * lib/timegm.h: New file.
76896         * lib/timegm.c: New file.  Based on
76897         wget-1.8.2/src/http.c:mktime_from_utc.
76898
76899 2003-08-31  Karl Berry  <karl@gnu.org>
76900
76901         * lib/argp.h: update from libc.
76902
76903 2003-08-28  Bruno Haible  <bruno@clisp.org>
76904
76905         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
76906         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
76907         followed by '#define fnmatch fnmatch_posix' gives an error.
76908
76909 2003-08-28  Bruno Haible  <bruno@clisp.org>
76910
76911         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
76912         warning on QNX, which defines O_BINARY to 000000.
76913
76914 2003-08-27  Jim Meyering  <jim@meyering.net>
76915
76916         * m4/mkstemp.m4: Require that the system mkstemp be able to create
76917         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
76918         would fail after 32.  Reported by Danny Levinson.  Details here:
76919         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
76920
76921 2003-08-24  Bruno Haible  <bruno@clisp.org>
76922
76923         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
76924         MSVC7 <stdio.h> is included later.
76925
76926 2003-08-22  Simon Josefsson  <jas@extundo.com>
76927
76928         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
76929
76930 2003-08-20  Karl Berry  <karl@gnu.org>
76931
76932         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
76933
76934 2003-08-20  Bruno Haible  <bruno@clisp.org>
76935
76936         * modules/progname: New file.
76937         * MODULES.html.sh (func_all_modules): Add progname.
76938
76939 2003-08-20  Bruno Haible  <bruno@clisp.org>
76940
76941         * lib/progname.h: New file, from GNU gettext.
76942         * lib/progname.c: New file, from GNU gettext.
76943         * lib/progreloc.c: New file, from GNU gettext.
76944
76945 2003-08-19  Jim Meyering  <jim@meyering.net>
76946
76947         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
76948         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
76949
76950 2003-08-19  Bruno Haible  <bruno@clisp.org>
76951
76952         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
76953         more.
76954
76955 2003-08-19  Bruno Haible  <bruno@clisp.org>
76956
76957         * lib/xstrdup.c: Assume <string.h> exists.
76958
76959 2003-08-18  Paul Eggert  <eggert@twinsun.com>
76960
76961         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
76962         in makefile rules.
76963
76964 2003-08-18  Jim Meyering  <jim@meyering.net>
76965
76966         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
76967         * m4/lib-ld.m4: Likewise.
76968
76969 2003-08-18  Jim Meyering  <jim@meyering.net>
76970
76971         * lib/setenv.h: Indent nested cpp directive.
76972         * lib/vasnprintf.c: Remove trailing blanks.
76973
76974 2003-08-17  Simon Josefsson  <jas@extundo.com>
76975
76976         * modules/xstrndup: New file.
76977         * MODULES.html.sh (func_all_modules): Add xstrndup.
76978
76979 2003-08-17  Simon Josefsson  <jas@extundo.com>
76980
76981         * modules/argp: Fix autoconf macro name. Add more dependencies.
76982
76983 2003-08-17  Simon Josefsson  <jas@extundo.com>
76984
76985         * m4/xstrndup.m4: New file.
76986
76987 2003-08-17  Simon Josefsson  <jas@extundo.com>
76988
76989         * m4/argp.m4: New file.
76990
76991 2003-08-17  Simon Josefsson  <jas@extundo.com>
76992             Bruno Haible  <bruno@clisp.org>
76993
76994         * lib/xstrndup.h: New file.
76995         * lib/xstrndup.c: New file.
76996
76997 2003-08-17  Bruno Haible  <bruno@clisp.org>
76998
76999         * modules/strndup (Files, Include): Add lib/strndup.h.
77000
77001 2003-08-17  Bruno Haible  <bruno@clisp.org>
77002
77003         * modules/euidaccess (Files): Add lib/euidaccess.h.
77004
77005 2003-08-17  Bruno Haible  <bruno@clisp.org>
77006
77007         * lib/strndup.h: New file.
77008
77009 2003-08-17  Bruno Haible  <bruno@clisp.org>
77010
77011         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
77012         like AC_GNU_SOURCE.
77013         * modules/extensions (configure.ac): Comment out the invocation of
77014         gl_USE_SYSTEM_EXTENSIONS.
77015
77016 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77017
77018         Merges from coreutils, etc.
77019         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
77020         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
77021         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
77022         fixing a typo.
77023         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
77024         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
77025
77026 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77027
77028         Document merge from coreutils.
77029         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
77030         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
77031         * modules/utime: Add m4/utimes-null.m4.
77032
77033 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77034
77035         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
77036         space, undoing this 2003-08-12 change:
77037         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77038
77039 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77040
77041         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
77042         strtoul.c from libc, undoing this 2003-08-12 change:
77043         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77044
77045 2003-08-16  Jim Meyering  <jim@meyering.net>
77046
77047         Merges from coreutils.
77048         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
77049         prefix.  Adjust cache variables similarly.  Create 500 rather than
77050         just 300 files, to exercise bug on Darwin6.5, too.
77051         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
77052         $missing_dir.
77053         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
77054         AM_SYS_POSIX_TERMIOS.
77055         Reported by mkc@mathdogs.com.
77056         Also change use of $am_cv_sys_posix_termios
77057         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
77058         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
77059         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
77060         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
77061         in /proc/mounts until it finds one with matching device number.  This
77062         is unnecessary when the FILE argument *is* a mount point.  No stat call
77063         is necessary in that case.  So, disable the statvfs-testing code on
77064         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
77065         as RedHat bug# 84846.
77066         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77067         to 1MB, so as not to render systems with no stack size limit (e.g.,
77068         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77069         Include <unistd.h>.  On some systems,
77070         it is required for the definition of _SC_PAGESIZE.
77071
77072 2003-08-16  Jim Meyering  <jim@meyering.net>
77073
77074         Merge from coreutils.
77075         * lib/xstrtoimax.c: #else #if -> #elif.
77076         * lib/xstrtoumax.c: Likewise.
77077
77078 2003-08-16  Jim Meyering  <jim@meyering.net>
77079
77080         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
77081         * m4/utimes.m4: Removed.
77082         * m4/utimes-null.m4: Renamed from utimes.m4.
77083
77084         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77085         to 1MB, so as not to render systems with no stack size limit (e.g.,
77086         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77087         Include <unistd.h>.  On some systems,
77088         it is required for the definition of _SC_PAGESIZE.
77089
77090 2003-08-16  Jim Meyering  <jim@meyering.net>
77091         and Paul Eggert  <eggert@cs.ucla.edu>
77092
77093         Merges from coreutils, etc.
77094
77095         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
77096         using the latest version from cvs.  This avoids problems with #line
77097         directives using a vendor (Sun) compiler.
77098         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
77099         Don't set GETGROUPS_LIB here; now it's
77100         done via getgroups.m4's wrapper function.
77101         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
77102         rather than just in sh-util/configure.in, so that the
77103         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
77104         same.
77105         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
77106         AC_FUNC_GETLOADAVG where to find getloadavg.c.
77107         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
77108         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
77109         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
77110         Remove code that is now done by the newly-required macros.
77111         Append $(EXEEXT) to DF_PROG.
77112         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
77113         Do not invoke or require the following here,
77114         since prereq.m4 or some gnulib .m4 now does this for us:
77115         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
77116         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
77117         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
77118         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
77119         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
77120         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
77121         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
77122         AC_FUNC_OBSTACK.
77123         Do not replace the following functions, as this is now the job
77124         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
77125         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
77126         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
77127         atexit getpass, strdup, getpagesize.
77128         Replace 'raise'.
77129         Do not check for the following functions, as this is now the job
77130         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
77131         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
77132         setregid.
77133         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
77134         Check for sys/sysctl.h.
77135         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
77136         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
77137         of checking for ssize_t ourselves.
77138
77139         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
77140         Require every macro that gnulib/modules/* suggests for us.
77141         (jm_PREREQ_ADDEXT): New macro.
77142         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
77143         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
77144
77145         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
77146         (gl_PHYSMEM): Use it.
77147         Also check for `table' function.
77148         Check for new headers and functions.
77149         Add check for sys/sysmp.h.
77150         With suggestions from Kaveh Ghazi.
77151         Ignore headers that are present but cannot be compiled.  This
77152         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
77153         C 5.4.
77154
77155 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77156
77157         Document merge from coreutils.
77158         * modules/userspec: Depend on posixver.
77159         * modules/strftime: Depend on tzset.
77160
77161 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77162
77163         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
77164         rather than tab, after '#' in shell-script copyright notices.
77165         Suggested by Bruno Haible.
77166
77167 2003-08-15  Paul Eggert  <eggert@twinsun.com>
77168
77169         * config/srclist-update: Use three spaces, rather than tab, after '#'
77170         in shell-script copyright notices.  Suggested by Bruno Haible.
77171         Remove unnecessary parenthesization in regular expression.
77172
77173 2003-08-15  Jim Meyering  <jim@meyering.net>
77174
77175         Merge from coreutils.
77176         * lib/xgethostname.c: Include <stdlib.h>.
77177         (xghostname): Don't exit for anything other than memory-related
77178         failure; just return NULL.
77179         * lib/userspec.c: Include "posixver.h".
77180         (parse_user_spec): Accept `.' as a separator only
77181         in pre-POSIX-200112 mode.
77182         * lib/strtoimax.c: Use #elif rather than #else #if.
77183         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
77184         Remove function, now that we can rely on a working tzset function.
77185         [!_LIBC]: Ensure that the required autoconf test has been run.
77186         [!defined _NL_CURRENT && HAVE_STRFTIME]:
77187         Use underlying_strftime for %r.
77188         * lib/sha.c: Merge in some clean-up and optimization changes from
77189         glibc.
77190         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
77191         Ensure that it is a multiple of 64.
77192         Rearrange loop exit tests so as to avoid performing an
77193         additional fread after encountering an error or EOF.
77194         * lib/realloc.c: Update copyright date.
77195
77196 2003-08-15  Jim Meyering  <jim@meyering.net>
77197         and Paul Eggert  <eggert@twinsun.com>
77198
77199         Merge from coreutils.
77200         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
77201         member but strut utmpx does not.  Needed for AIX 4.3.3.
77202         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
77203
77204 2003-08-15  Jim Meyering  <jim@meyering.net>
77205         and Paul Eggert  <eggert@cs.ucla.edu>
77206
77207         Merges from coreutils, etc.
77208         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
77209         Require gl_FUNC_TZSET_CLOBBER.
77210         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
77211         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
77212         members.
77213
77214 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77215
77216         Help the merge from coreutils.
77217         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
77218         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
77219         * m4/tzset.m4: Use it too.
77220
77221 2003-08-14  Paul Eggert  <eggert@twinsun.com>
77222
77223         * modules/tzset: New file.
77224
77225 2003-08-14  Jim Meyering  <jim@meyering.net>
77226
77227         Merges from coreutils.
77228         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
77229         variable names, rather than @FNMATCH_H@.
77230         * modules/alloca: Likewise for $(ALLOCA_H).
77231
77232         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
77233         the three copies of the literal target, `fnmatch.h'.
77234         * modules/alloca (alloca.h): Likewise.
77235
77236 2003-08-14  Jim Meyering  <jim@meyering.net>
77237
77238         Merge from coreutils.
77239         * m4/tzset.m4: New file.
77240         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
77241         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
77242         otherwise, AIX 5.1 systems would end up using the latter.
77243         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
77244         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
77245         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
77246         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
77247
77248 2003-08-14  Jim Meyering  <jim@meyering.net>
77249
77250         Merge from coreutils.
77251         * lib/obstack.h: Whitespace changes.
77252         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
77253         and xcalloc return values.
77254         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
77255         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
77256         hang on OSF/1 5.1 for DIR on both local and remote file systems.
77257         Reported by (and fix confirmed by) Nelson H. F. Beebe.
77258         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77259         error from mntctl.
77260         Use mntctl's return value to drive the entry-processing loop, since
77261         we can't rely on the value of the vmt_length member in the last
77262         entry.  On some systems doing so could result in exhausting
77263         virtual memory.  Based in part on a patch from Mike Jetzer.
77264
77265 2003-08-14  Jim Meyering  <jim@meyering.net>
77266         and Paul Eggert  <eggert@twinsun.com>
77267
77268         Merges from coreutils, plus other fixes.
77269         * lib/physmem.c: Merge in portability changes from gcc/libiberty
77270         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
77271         for credits and details.  Thanks to Kaveh Ghazi for helping
77272         to keep these files in sync.
77273         (ARRAY_SIZE): Define it.
77274         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
77275         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
77276         (memcasecmp): Don't assume size_t fits in unsigned int.
77277         Remove casts and duplicate code.
77278         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
77279         (memcpy): Remove definition.
77280         Merge in some clean-up and optimization changes from glibc.
77281         [BLOCKSIZE]: Move definition to top of file.
77282         Ensure that it is a multiple of 64.
77283         Rearrange loop exit tests so as to avoid performing an
77284         additional fread after encountering an error or EOF.
77285         * lib/md5.h (md5_uintptr): Define.
77286         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
77287         return to the initial working directory.  Preserve errno
77288         for caller.
77289         * lib/idcache.c: Include "xalloc.h".
77290         (xmalloc, xrealloc): Remove decls.
77291         (getuser): Remove casts no longer required in C89.
77292         * lib/human.c: Include stdio.h, for sprintf.
77293         * lib/group-member.c: Include "xalloc.h".
77294         (xmalloc, xrealloc): Remove decls.
77295         (get_group_info): Remove casts no longer required in C89.
77296         * lib/getusershell.c (readname): Remove casts no longer required in
77297         C89.
77298         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
77299         * lib/getline.c: Whitespace fix, from coreutils.
77300
77301 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77302
77303         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
77304         Check for isascii.
77305
77306         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77307         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77308         Undo previous (whitespace-only) change.
77309
77310 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77311
77312         * lib/exclude.c: Include <ctype.h>
77313         (IN_CTYPE_DOMAIN): New macro.
77314         (is_space): New fn.
77315         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77316         and empty lines.
77317
77318         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77319         Undo previous (whitespace-only) change.
77320
77321 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77322
77323         * config/srclist-update: Change update back to the old behavior,
77324         leaving whitespace alone.  Use one 'sed' command rather than a
77325         pipeline.
77326         (fixlicense): Now a variable, not a function.
77327         (remove_trailing_blanks): Remove.
77328         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77329         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77330         Undo previous (whitespace-only) change.
77331
77332 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77333
77334         Merge from coreutils.
77335         * modules/euidaccess: Add lib_SOURCES, include for new
77336         file euidaccess.h
77337
77338 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77339
77340         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77341         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77342         Normalize leading white space and remove trailing white space.
77343
77344         Merge from coreutils
77345         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77346
77347         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77348         0.12.1.  These files are now being upgraded automatically by
77349         ../config/srclist-update.
77350
77351 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77352
77353         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77354         Normalize leading white space and remove trailing white space.
77355         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77356         notice, as per ../config/srclist-update.
77357
77358         Merge from coreutils.
77359         * lib/euidaccess.h: New file.
77360         * lib/euidaccess.c: Include it.
77361         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77362         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77363         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77364
77365 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77366
77367         * config/srclist-update: Add copyright notice.
77368         (remove_id_lines, remove_trailing_blanks): New constants.
77369         (fixfile): Use them to normalize spacing a bit in copied files.
77370         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77371         Normalize leading white space and remove trailing white space.
77372
77373         * config/texinfo.tex: Sync with texinfo.
77374
77375         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77376         strtoul.c from libc, to merge coreutils whitespace changes.
77377
77378         * config/srclist.txt: Get the following m4 files from gettext:
77379         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77380         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77381         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77382         wint_t.m4.
77383
77384 2003-08-12  Karl Berry  <karl@gnu.org>
77385
77386         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77387         been made.
77388
77389 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77390
77391         * modules/gnu-source, m4/gnu-source.m4:
77392         Remove; we're assuming Autoconf 2.54 or later now.
77393         Suggested by Bruno Haible.
77394         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77395
77396 2003-08-11  Bruno Haible  <bruno@clisp.org>
77397
77398         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77399
77400 2003-08-11  Bruno Haible  <bruno@clisp.org>
77401
77402         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77403         (vasnprintf): Use it instead of wcslen.
77404
77405 2003-08-11  Bruno Haible  <bruno@clisp.org>
77406
77407         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77408         value to ensure that _Bool promotes to int. Use #define for _Bool when
77409         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77410
77411 2003-08-10  Karl Berry  <karl@gnu.org>
77412
77413         * lib/regex.h: update from libc (whitespace fix).
77414
77415 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77416
77417         Merge some files from coreutils.  These changes were
77418         originally made by Jim Meyering.
77419         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77420         many older Unixes require this.
77421         * lib/alloca.c (alloca): Remove cast to argument of free;
77422         no longer needed in C89.
77423         * lib/alloca_.h, regex.h: Fix white space to match
77424         what GNU indent does.
77425
77426 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77427
77428         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77429         apparently Emacs's Unicode mode got confused before my 2003-08-05
77430         checkin.
77431
77432 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77433
77434         * m4/extensions.m4: New file.
77435         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77436         Require gl_USE_SYSTEM_EXTENSIONS.
77437         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77438         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77439
77440 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77441
77442         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77443         * modules/extensions, modules/gnu-source: New files.
77444         * modules/timespec, modules/unlocked-io: Depend on extensions.
77445
77446 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77447
77448         * modules/restrict: New file.
77449         * MODULES.html.sh (func_all_modules): Add restrict.
77450         * modules/regex: Depend on restrict.
77451
77452 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77453
77454         * m4/restrict.m4: New file.
77455         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77456
77457 2003-08-07  Bruno Haible  <bruno@clisp.org>
77458
77459         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77460         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77461
77462 2003-08-07  Bruno Haible  <bruno@clisp.org>
77463
77464         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77465         makes the module 'getndelim2' compatible with the module 'getline'.
77466
77467 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77468
77469         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77470         byte with "\201" to avoid glitches when editing that source file
77471         with multi-gnome-terminal.
77472
77473 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77474
77475         * lib/bumpalloc.h: Remove.
77476
77477 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77478
77479         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77480         * modules/bumpalloc: Remove.
77481
77482 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77483
77484         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77485         GNU coding style.
77486
77487         Merge from coreutils.
77488         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77489         1. From glibc.
77490         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77491         from Karl Berry, implemented by Jim Meyering.
77492         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77493         from Dmitry V. Levin.
77494         Remove anachronistic cast of xrealloc.
77495         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77496         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77497         type. Otherwise, it wouldn't compile with at least /bin/cc on
77498         ymp-cray-unicos9.0.2.X.
77499         Combine two mostly-identical uses of alloca into one.
77500         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77501
77502 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77503
77504         [From Emacs.]
77505
77506         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77507         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77508         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77509         obsolete NLIST_NAME_UNION.
77510         [__GNU__]: Undef BSD and FSCALE.
77511         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77512
77513 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77514
77515         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77516         an enum type, so that it's guaranteed to promote to int.  See:
77517         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77518
77519 2003-08-03  Karl Berry  <karl@gnu.org>
77520
77521         * config/depcomp: update from automake.
77522
77523 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77524
77525         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77526         (strerror): Don't assume that a printable int fits in 14 bytes.
77527
77528 2003-07-31  Bruno Haible  <bruno@clisp.org>
77529
77530         * modules/getpass-gnu: New file.
77531         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
77532
77533 2003-07-31  Bruno Haible  <bruno@clisp.org>
77534
77535         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
77536
77537 2003-07-24  Karl Berry  <karl@gnu.org>
77538
77539         * config/missing: update from automake.
77540
77541 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
77542             Bruno Haible  <bruno@clisp.org>
77543
77544         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
77545         * lib/getline.c (getline, getdelim): Likewise.
77546         Remove _GNU_SOURCE define; now it's defined in config.h through
77547         m4/getline.m4.
77548
77549 2003-07-23  Karl Berry  <karl@gnu.org>
77550
77551         * config/config.sub: update from prep.
77552
77553 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77554
77555         * modules/xalloc (Depends-on): Add exitfail.
77556         * modules/xmemcoll: Likewise.
77557
77558 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77559
77560         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
77561         over-parenthesization in macros.
77562
77563         Sync with coreutils.
77564
77565         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
77566         required by C99.
77567
77568         Use `exit_failure' for xalloc and xmemcoll instead of their own
77569         private exit-failure variables.
77570         * lib/xalloc.h (xalloc_exit_failure): Remove.
77571         * lib/xmalloc.c: Likewise.  Include exitfail.h.
77572         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
77573         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
77574         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
77575         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
77576
77577 2003-07-20  Jim Meyering  <jim@meyering.net>
77578
77579         * modules/closeout (Depends-on): Add exitfail.
77580         Suggestion from Bruno Haible.
77581
77582 2003-07-19  Karl Berry  <karl@gnu.org>
77583
77584         * config/config.sub: update from prep.
77585
77586 2003-07-18  Paul Eggert  <eggert@twinsun.com>
77587
77588         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
77589         Remove.
77590         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
77591         to test that it can stand by itself.  Include "exitfail.h".
77592         Clients should set exit_failure instead.
77593         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
77594
77595 2003-07-18  Bruno Haible  <bruno@clisp.org>
77596
77597         * modules/getndelim2: New file.
77598         * modules/getline: Share files with module getndelim2.
77599         * modules/getnline: Depend on getndelim2 instead of sharing files with
77600         it. Add getnline.c to lib_SOURCES.
77601         * MODULES.html.sh (func_all_modules): Add getndelim2.
77602
77603 2003-07-18  Bruno Haible  <bruno@clisp.org>
77604
77605         * m4/getndelim2.m4: New file.
77606         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
77607         invoke gl_PREREQ_GETNDELIM2.
77608         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
77609         gl_PREREQ_GETNDELIM2.
77610         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
77611         gl_GETNDELIM2.
77612
77613 2003-07-18  Bruno Haible  <bruno@clisp.org>
77614
77615         * lib/getndelim2.h: New file.
77616         * lib/getndelim2.c: Make into a module of its own. Include config.h,
77617         getndelim2.h.
77618         (getndelim2): Make non-static. Change return type to ssize_t.
77619         * lib/getline.h: Change argument names.
77620         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77621         * lib/getnline.c: Include getndelim2.h.
77622
77623 2003-07-18  Andreas Schwab  <schwab@suse.de>
77624
77625         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77626
77627 2003-07-17  Karl Berry  <karl@gnu.org>
77628
77629         * config/config.sub: update from prep.
77630
77631 2003-07-17  Bruno Haible  <bruno@clisp.org>
77632
77633         * modules/getnline: New file.
77634         * modules/getline: Add lib/getndelim2.c to source file list.
77635         * MODULES.html.sh (func_all_modules): Add getnline.
77636
77637 2003-07-17  Bruno Haible  <bruno@clisp.org>
77638
77639         * m4/getnline.m4: New file.
77640
77641 2003-07-17  Bruno Haible  <bruno@clisp.org>
77642
77643         * m4/Makefile.am.in: Remove file.
77644         * m4/Makefile.am: Remove file.
77645         * m4/Makefile.in: Remove file.
77646
77647 2003-07-17  Bruno Haible  <bruno@clisp.org>
77648
77649         * lib/getnline.h: New file.
77650         * lib/getnline.c: New file.
77651         * lib/getndelim2.c: New file, extracted from getline.c.
77652         (getndelim2): Renamed from getdelim2, with added nmax argument.
77653         * lib/getline.c: Include getndelim2.c.
77654         (getdelim2): Moved out to getndelim2.c.
77655         (getline, getdelim): Update.
77656
77657 2003-07-17  Bruno Haible  <bruno@clisp.org>
77658
77659         * lib/Makefile.am: Remove file.
77660         * lib/Makefile.in: Remove file.
77661
77662 2003-07-17  Bruno Haible  <bruno@clisp.org>
77663
77664         * configure.in: Remove file.
77665         * Makefile.in: Remove file.
77666
77667 2003-07-17  Bruno Haible  <bruno@clisp.org>
77668
77669         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77670
77671 2003-07-16  Karl Berry  <karl@gnu.org>
77672
77673         * config/srclist-update: was running fixlicense twice, which caused
77674                 texinfo.tex to be nullified for some reason.  Simplify,
77675                 $gplsrc is no longer needed as far as I can see?
77676
77677 2003-07-16  Jim Meyering  <jim@meyering.net>
77678
77679         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77680
77681 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77682
77683         * config/srclist.txt: Get the following files from gettext-runtime/intl
77684         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77685         ref-del.sin.  From Bruno Haible.
77686         * config/srclist-update (fixfile): Change grep pattern again, since the
77687         previous fix didn't work (there was another trailing $).  Use
77688         '[$]' to escape the $s.
77689
77690 2003-07-15  Karl Berry  <karl@gnu.org>
77691
77692         * lib/vasnprintf.c: update from gettext.
77693
77694 2003-07-15  Karl Berry  <karl@gnu.org>
77695
77696         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
77697         gets expanded when surrounded by '$'.
77698
77699 2003-07-15  Jim Meyering  <jim@meyering.net>
77700
77701         * modules/save-cwd: Don't depend on error.  From Derek Price.
77702
77703 2003-07-15  Jim Meyering  <jim@meyering.net>
77704
77705         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
77706
77707 2003-07-14  Simon Josefsson  <jas@extundo.com>
77708
77709         * modules/mempcpy: New file.
77710         * MODULES.html.sh (func_all_modules): Add mempcpy.
77711
77712 2003-07-14  Simon Josefsson  <jas@extundo.com>
77713
77714         * m4/mempcpy.m4: New file.
77715
77716 2003-07-14  Simon Josefsson  <jas@extundo.com>
77717
77718         * lib/mempcpy.h: New file.
77719         * lib/mempcpy.c: New file.
77720
77721 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77722
77723         * modules/getdate, modules/posixtm: Depend on mktime.
77724
77725 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77726
77727         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
77728         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
77729         unicodeio.c, unicodeio.h, unlocked-io.h:
77730         Switch from LGPL to GPL.
77731
77732 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77733
77734         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
77735         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
77736         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
77737         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
77738         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
77739         updated automatically by ../config/srclist-update.  This changes
77740         their license from LPGL to GPL.
77741
77742 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77743
77744         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
77745         assumed to refer to the root of the most recent stable gettext version.
77746         * config/srclistvars.sh: Add defaults for eggert.
77747         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
77748         Match "This program" as well as "The program".  This is needed
77749         for gettext.
77750
77751 2003-07-14  Jim Meyering  <jim@meyering.net>
77752
77753         Don't emit diagnostics.  Let callers do that.
77754         * lib/save-cwd.c: Don't include "error.h".
77755         (save_cwd): Don't call error.  Ensure that errno is valid
77756         when returning nonzero.
77757
77758         * lib/save-cwd.h (restore_cwd): Update prototype.
77759         * lib/save-cwd.c (restore_cwd): Remove two parameters.
77760         Simplify.  Don't call error upon failure.  Let callers do that.
77761         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
77762         when auditing is enabled.  But don't bother updating the #if.
77763
77764 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
77765
77766         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
77767         it breaks C++ compilation.
77768         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
77769
77770 2003-07-10  Simon Josefsson  <jas@extundo.com>
77771
77772         * modules/strchrnul (Makefile.am): Add strchrnul.h.
77773
77774 2003-07-10  Jim Meyering  <jim@meyering.net>
77775
77776         * m4/clock_time.m4: Remove trailing blank.
77777         * m4/intmax_t.m4: Likewise.
77778
77779 2003-07-10  Jim Meyering  <jim@meyering.net>
77780
77781         * lib/vasnprintf.c: Remove trailing blanks.
77782         Make cpp indentation consistent.
77783
77784 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77785
77786         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
77787         posixver.c, strftime.c, strnlen.c, strverscmp.c:
77788         Switch from LGPL to GPL.
77789
77790 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77791
77792         * config/srclist.txt: Sort sublists.  Add
77793         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
77794         that differ from gnulib for one reason or another; we'd like this list
77795         to be smaller but for now let's document what we have.
77796
77797 2003-07-08  Paul Eggert  <eggert@twinsun.com>
77798
77799         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
77800         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
77801         and sweeter "eval x=$x".
77802         * config/srclist.txt: Get lib/argp* from glibc.
77803
77804 2003-07-07  Paul Eggert  <eggert@twinsun.com>
77805
77806         * lib/mktime.c: Fix some boundary cases and remove need for floating
77807         point.
77808
77809         Issue a compile-time diagnostic if time_t is floating point, or if
77810         two's complement arithmetic is not in effect, or if arithmetic
77811         right shift does not propagate the sign.  These assumptions were
77812         all in the original code but they weren't checked.
77813
77814         (TIME_T_MIDPOINT, verify): New macros.
77815         (__isleap): Remove; it has integer overflow problems.
77816         (leapyear): New function, without those problems.
77817         (ydhms_tm_diff): Remove; splitting into two parts.
77818         (ydhms_diff): New function, containing the arithmetic part of
77819         the old ydhms_tm_diff function.  Issue a compile-time
77820         diagnostic if we are not using C99 integer division.
77821         Avoid casts when possible.
77822         (guess_time_tm): New function, containing the checking part of
77823         the old ydhms_tm_diff function.  Return the new value, rather than
77824         the difference between it and the old.  Accept a new argument T
77825         so that *T specifies the old value.  Check for overflow in the result.
77826
77827         (__mktime_internal): Use a time_t offset, not a long int offset.
77828         This undoes the 2003-06-04 change, which is no longer needed now
77829         that we have better overflow checking.
77830         (localtime_offset): Likewise.
77831
77832         (__mktime_internal): Avoid harmful overflow on hosts where time_t
77833         and long are 64-bit but int is only 32-bit.
77834         (ydhms_diff): Use long int to store year1 and yday1.
77835         Issue a compile-time diagnostic if long int is not wide enough.
77836
77837         (__mktime_internal): Use long int to store adjusted year and yday.
77838         Use plain C rather than preprocessor commands, if that doesn't
77839         affect efficiency.
77840         Check for overflow (and try to repair) after each probe
77841         rather than checking only at the very end.  This avoids some bugs
77842         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
77843         does not equal GMT offset at maximum time).
77844         Use integer to check for overflow rather than floating point; this
77845         is more portable to non-IEEE hosts, and is a tad faster.
77846         When we detect that we are oscillating between two values,
77847         don't check whether tm_isdst has the requested value, since
77848         we already know the answer.  When tm_isdst has the wrong value,
77849         use a different heuristic to find the right one, based on the
77850         extreme values actually observed in practice in tz2003a,
77851         rather than the (overly optimistic) "previous 3 calendar quarters".
77852
77853         (not_equal_tm, print_tm, check_result): Use "const T" rather than
77854         "T const" to accommodate glibc style.
77855         (check_result): Use less-confusing report format.  "long" -> "long int.
77856         (main): Likewise.
77857         Don't loop if the iteration overflows time_t.
77858         Allow a negative step in the iteration.
77859
77860 2003-07-06  Karl Berry  <karl@gnu.org>
77861
77862         * config/depcomp: update from automake.
77863         * config/config.sub: update from prep.
77864
77865 2003-07-03  Karl Berry  <karl@gnu.org>
77866
77867         * config/config.guess: update from prep.
77868
77869 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77870
77871         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
77872         xreadlink.c now includes it unconditionally.
77873
77874 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77875
77876         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
77877         having it depend on HAVE_SYS_TYPES_H.
77878
77879 2003-07-01  Bruno Haible  <bruno@clisp.org>
77880
77881         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
77882         <sys/types.h> should be sufficient.
77883         Reported by Paul Eggert.
77884
77885 2003-06-26  Karl Berry  <karl@gnu.org>
77886
77887         * config/depcomp: update from automake.
77888
77889 2003-06-26  Bruno Haible  <bruno@clisp.org>
77890
77891         * modules/human: Depend on module stdbool.
77892
77893 2003-06-25  Bruno Haible  <bruno@clisp.org>
77894
77895         * modules/readlink: New file.
77896         * modules/xreadlink: Depend on it.
77897         * MODULES.html.sh (func_all_modules): Add readlink.
77898
77899 2003-06-25  Bruno Haible  <bruno@clisp.org>
77900
77901         * m4/readlink.m4: New file.
77902
77903 2003-06-25  Bruno Haible  <bruno@clisp.org>
77904
77905         * lib/readlink.c: New file.
77906
77907 2003-06-22  Karl Berry  <karl@gnu.org>
77908
77909         * config/srclist.txt: update mkinstalldirs from automake.
77910         * config/mkinstalldirs: update.
77911
77912 2003-06-22  Bruno Haible  <bruno@clisp.org>
77913
77914         Portability to mingw32.
77915         * m4/ssize_t.m4: New file, from GNU gettext.
77916         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
77917         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
77918
77919 2003-06-22  Bruno Haible  <bruno@clisp.org>
77920
77921         * modules/safe-read: Add m4/ssize_t.m4.
77922         * modules/xreadlink: Add m4/ssize_t.m4.
77923
77924 2003-06-20  Bruno Haible  <bruno@clisp.org>
77925
77926         Assume C89, so PARAMS isn't needed.
77927         * lib/unicodeio.h (PARAMS): Remove.
77928         * lib/unicodeio.c: Don't use PARAMS.
77929
77930 2003-06-18  Karl Berry  <karl@gnu.org>
77931
77932         * config/config.{guess,sub}: update from prep.
77933
77934 2003-06-18  Jim Meyering  <jim@meyering.net>
77935
77936         Merge changes from coreutils.
77937         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
77938         Remove explicit declarations of xmalloc and realloc.
77939         Include xalloc.h.
77940         (read_utmp): Remove anachronistic cast of xmalloc.
77941
77942 2003-06-17  Paul Eggert  <eggert@twinsun.com>
77943
77944         Assume C89, so PARAMS isn't needed.
77945         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
77946         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
77947         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
77948         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
77949         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
77950         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
77951         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
77952         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
77953         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
77954         lib/xstrtod.h, lib/xstrtol.h: Likewise.
77955         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
77956         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
77957         no longer needed. Anyway, config.h should always be included before any
77958         other file.
77959
77960 2003-06-11  Simon Josefsson  <jas@extundo.com>
77961
77962         * modules/sysexits: New file.
77963         * MODULES.html.sh (func_all_modules): Add sysexits.
77964
77965 2003-06-11  Simon Josefsson  <jas@extundo.com>
77966
77967         * lib/sysexit_.h: New file.
77968
77969 2003-06-11  Derek Price  <derek@ximbiot.com>
77970
77971         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
77972         necessary.
77973
77974 2003-06-11  Bruno Haible  <bruno@clisp.org>
77975
77976         * m4/sysexits.m4: New file.
77977
77978 2003-06-10  Simon Josefsson  <jas@extundo.com>
77979
77980         * lib/argp.h: New file, from glibc.
77981         * lib/argp-ba.c: New file, from glibc.
77982         * lib/argp-eexst.c: New file, from glibc.
77983         * lib/argp-fmtstream.c: New file, from glibc.
77984         * lib/argp-fmtstream.h: New file, from glibc.
77985         * lib/argp-fs-xinl.c: New file, from glibc.
77986         * lib/argp-help.c: New file, from glibc.
77987         * lib/argp-namefrob.h: New file, from glibc.
77988         * lib/argp-parse.c: New file, from glibc.
77989         * lib/argp-pv.c: New file, from glibc.
77990         * lib/argp-pvh.c: New file, from glibc.
77991         * lib/argp-xinl.c: New file, from glibc.
77992
77993 2003-06-10  Simon Josefsson  <jas@extundo.com>
77994
77995         * modules/strchrnul: New file.
77996
77997 2003-06-10  Simon Josefsson  <jas@extundo.com>
77998
77999         * modules/argp: New file.
78000
78001 2003-06-10  Simon Josefsson  <jas@extundo.com>
78002
78003         * m4/strchrnul.m4: New file.
78004
78005 2003-06-10  Simon Josefsson  <jas@extundo.com>
78006
78007         * lib/strchrnul.h: New file.
78008         * lib/strchrnul.c: New file.
78009
78010 2003-06-10  Bruno Haible  <bruno@clisp.org>
78011
78012         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
78013
78014 2003-06-07  Karl Berry  <karl@gnu.org>
78015
78016         * config/config.{guess,sub}: update from prep.
78017
78018 2003-06-07  Jim Meyering  <jim@meyering.net>
78019
78020         * modules/strtod: Use $(...) notation, not @...@ for
78021         AC_REPLACE'd variables.
78022         * modules/localcharset: Likewise.
78023
78024 2003-06-07  Jim Meyering  <jim@meyering.net>
78025
78026         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
78027         in place of my name in the copyright comment.
78028         Remove definition and uses of __P.
78029
78030         From coreutils.
78031         * lib/stat.c: Don't declare xmalloc explicitly.
78032         Instead, include "xalloc.h".
78033         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
78034         xrealloc, and xcalloc return values.
78035         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
78036         Improve comment.
78037         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
78038
78039 2003-06-07  Bruno Haible  <bruno@clisp.org>
78040
78041         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
78042         avoid AC_CONFIG_LINKS.
78043         * modules/fnmatch (Makefile.am): Use explicit creation rule for
78044         fnmatch.h, to avoid AC_CONFIG_LINKS.
78045         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
78046
78047 2003-06-07  Bruno Haible  <bruno@clisp.org>
78048
78049         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
78050         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
78051         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78052         directory.
78053         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
78054         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78055         directory.
78056
78057 2003-06-06  Jim Meyering  <jim@meyering.net>
78058
78059         Merge from coreutils.
78060         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
78061         Consolidate declarations and initializations of *_base* locals.
78062
78063         Merge from coreutils.
78064         This avoids a core dump on systems without GNU putenv,
78065         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
78066         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
78067         (unsetenv): New static function, from GNU libc.
78068         (rpl_putenv): Use it.
78069
78070         * lib/modechange.c: Remove trailing blanks.
78071
78072         Merge from coreutils.
78073         * lib/fsusage.c: Remove declaration of statfs.
78074         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
78075
78076         * lib/posixtm.c: Include <stdbool.h> unconditionally.
78077
78078 2003-06-06  Jim Meyering  <jim@meyering.net>
78079
78080         * lib/stdbool_.h: Renamed from stdbool.h.in.
78081
78082 2003-06-06  Jim Meyering  <jim@meyering.net>
78083             Bruno Haible  <bruno@clisp.org>
78084
78085         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
78086         Adjust Makefile.am snippet not to redirect directly to target.
78087         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
78088
78089 2003-06-05  Paul Eggert  <eggert@twinsun.com>
78090
78091         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
78092         mismatch, look in future quarters as well as past.  This fixes a
78093         bug when processing fall-backwards gaps immediately after a long
78094         period of daylight-saving time.
78095
78096         * lib/mktime.c: Assume freestanding C89 or better.
78097         (HAVE_LIMITS_H): Remove.  Assume it's 1.
78098         (__P): Remove; not used.
78099         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
78100         (mktime, not_equal_tm, print_tm, check_result,
78101         main): Use prototypes.  Use const * where appropriate.
78102         (main): Fix typo in testing code that uncovered by above changes.
78103         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
78104
78105 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78106
78107         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
78108         locale.h, localeconv.  This merges changes from coreutils.
78109
78110         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
78111         It can be removed after the next Autoconf is released.
78112         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
78113         needed.
78114
78115 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78116
78117         * lib/mktime.c: Fix Debian bug 177940
78118         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
78119         (localtime_offset): Now long int, not time_t, because we want it
78120         to be guaranteed to be signed.  All uses changed.
78121         (__mktime_internal): If overflow would occur when adding offset,
78122         don't add it.
78123
78124         Merge 'human' changes from coreutils.  Rewrite to support
78125         locale-specific notations like thousands separators.
78126         * lib/human.c: Simplify authorship notice.
78127         Include human.h immediately after config.h.
78128         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
78129         <limits.h>: Do not include, since human.h does.
78130         (SIZE_MAX, UINTMAX_MAX): New macros.
78131         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
78132         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
78133         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
78134         (power_letter): Renamed from suffixes.
78135         (generate_suffix_backwards): Remove.
78136         (adjust_value): Now takes int style (because of human.h changes)
78137         and long double value (for greater precision on some platforms).
78138         (group_number): New function.
78139         (human_readable): Use it.  Use integer options, not enum.
78140         Put the options before the sizes in the arg list.
78141         Support all the new options.
78142         The old human_readable function has been removed;
78143         use inttostr.h instead.
78144         (human_readable, default_block_size, humblock):
78145         Use uintmax_t, not int, for block sizes.
78146         (human_readable_inexact, block_size_types): Remove.
78147         (block_size_opts): New constant.
78148         (human_options): Renamed from human_block_size, with new signature
78149         that allows block sizes up to UINTMAX_MAX.  All callers changed.
78150         * lib/human.h: Add copyright and authorship notice.
78151         Include <limits.h> and <stdbool.h> unconditionally.
78152         (PARAMS): Remove.  All uses removed.
78153         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
78154         (enum human_inexact_style): Remove tag; now a nameless enum.
78155         (human_floor, human_ceiling, human_round_to_even): Now have
78156         values 2, 0, 1 rather than -1, 1, 0.
78157         (human_group_digits, human_suppress_point_zero, human_autoscale,
78158         human_base_1024, human_SI, human_B): New constants.
78159         (human_readable_inexact, human_block_size): Remove.
78160         (human_readable): Size args are now uintmax_t, not int.
78161         (human_options): New decl.
78162
78163         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
78164         unnecessary now that we assume C89 or better.  This change
78165         imported from coreutils.
78166
78167         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78168         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
78169         in the 2003-05-30 sync from glibc.
78170
78171         .h files should stand alone, but we shouldn't include <sys/types.h>
78172         if we can get away with just <stddef.h>.
78173
78174         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
78175         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
78176         rather than <sys/types.h>, as we merely need size_t.
78177         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
78178         to get size_t.
78179         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
78180         Include <stdio.h>, to get FILE.
78181         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
78182         memcasecmp.h has included <stddef.h> and all we need is size_t.
78183         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
78184         our interface, instead of including <sys/types.h>
78185
78186 2003-06-04  Paul Eggert  <eggert@twinsun.com>
78187
78188         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
78189         now, as glibc mktime is buggy on non-glibc systems.
78190
78191 2003-06-03  Karl Berry  <karl@gnu.org>
78192
78193         * config/config.sub: update from prep.
78194
78195 2003-06-02  Paul Eggert  <eggert@twinsun.com>
78196
78197         [from coreutils]
78198         Fix some minor time-related bugs with POSIX time arguments.
78199         Some valid time stamps were being rejected (notably -1, and
78200         time stamps before 1900 on 64-bit hosts).  And some invalid
78201         time stamps were being accepted, e.g. September 31.
78202
78203         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
78204         that we can return (time_t) -1 successfully.
78205         * lib/posixtm.c: Likewise.
78206         [HAVE_STDBOOL_H]: Include <stdbool.h>.
78207         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
78208         (t): Remove static var.
78209         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
78210         of static var.  All uses changed.
78211         (year): Do not reject years before 1900; they can occur with
78212         64-bit time_t.
78213         (posix_time_parse): Do not check for out-of-range components;
78214         that is now the caller's responsibility, since our checks were
78215         only approximations.
78216         (posixtime): Use mktime to check for out-of-range components,
78217         since it knows them exactly.
78218         If mktime returns (time_t) -1, check whether an error actually occurred
78219         by invoking localtime on -1.
78220         (main) [TEST_POSIXTIME]: Check for input data errors, and report
78221         posixtime failures better.
78222         Improve the test data (in comments only).
78223
78224 2003-06-02  Karl Berry  <karl@gnu.org>
78225
78226         * config/mkinstalldirs (version): new variable.
78227         (--version): new option.
78228         (usage): improve message.
78229
78230 2003-05-30  Karl Berry  <karl@gnu.org>
78231
78232         * lib/mktime.c: update from libc.
78233
78234 2003-05-30  Bruno Haible  <bruno@clisp.org>
78235
78236         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
78237         * config/config.rpath: Upgrade to gettext-0.12.1.
78238
78239 2003-05-30  Bruno Haible  <bruno@clisp.org>
78240
78241         * m4/gettext.m4: Upgrade to gettext-0.12.1.
78242         * m4/nls.m4: New file, from gettext-0.12.1.
78243         * m4/po.m4: New file, from gettext-0.12.1.
78244         * m4/progtest.m4: Upgrade to gettext-0.12.1.
78245
78246 2003-05-30  Bruno Haible  <bruno@clisp.org>
78247
78248         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
78249         * lib/localcharset.h: Likewise.
78250         * lib/localcharset.c: Likewise.
78251
78252 2003-05-29  Karl Berry  <karl@gnu.org>
78253
78254         * config/config.rpath: update from gettext.
78255
78256 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78257
78258         Assume the headers required for C89 freestanding compilers.
78259         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
78260         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
78261         * m4/human.m4 (gl_HUMAN): Likewise.
78262         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
78263         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
78264         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78265         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
78266         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78267         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
78268
78269 2003-05-28  Paul Eggert  <eggert@twinsun.com>
78270
78271         Assume the headers required for C89 freestanding compilers.
78272         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
78273         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
78274         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
78275         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
78276         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
78277         define, since <limits.h> is guaranteed to do that.
78278         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
78279         * lib/exclude.c: Include <stdbool.h> unconditionally.
78280         * lib/tempname.c: Include <stddef.h> unconditionally.
78281         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
78282         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
78283         <stddef.h> does that.
78284         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
78285         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
78286         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
78287         needed.
78288         * lib/xstrtol.c: Likewise.
78289         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
78290         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
78291
78292         * lib/addext.c (addext): Use assignment rather than cast, to avoid
78293         warnings on some platforms.
78294
78295         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78296         arbitrarily.
78297
78298 2003-05-26  Jim Meyering  <jim@meyering.net>
78299
78300         Merge in a change from coreutils:
78301         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
78302         that is guaranteed to be `no'.  Use `no_such_member' to indicate
78303         that condition, rather than `-1' which is slightly misleading.
78304         Change the name of the cache variable to have the gl_ prefix.
78305         Prompted by a patch from Richard Dawe for DJGPP.
78306
78307 2003-05-24  Karl Berry  <karl@gnu.org>
78308
78309         * config/config.guess: update from prep.
78310
78311 2003-05-22  Karl Berry  <karl@gnu.org>
78312
78313         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78314
78315 2003-05-20  Karl Berry  <karl@gnu.org>
78316
78317         * config/config.guess: update from prep.
78318
78319 2003-05-18  Karl Berry  <karl@gnu.org>
78320
78321         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78322         might actually be set by the user.
78323
78324         * config/depcomp, install-sh, mdate-sh: update from automake.
78325
78326 2003-05-17  Bruno Haible  <bruno@clisp.org>
78327
78328         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78329         invalid expansion for AC_EGREP_CPP.
78330         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78331         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78332         Suggested by Akim Demaille <akim@epita.fr> in
78333         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78334
78335 2003-05-12  Jim Meyering  <jim@meyering.net>
78336
78337         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78338         the space-padded-by-default conversion specifiers, %e, %k, %l.
78339
78340 2003-05-12  Bruno Haible  <bruno@clisp.org>
78341
78342         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78343         the string is longer than 4 KB.
78344
78345 2003-05-11  Karl Berry  <karl@gnu.org>
78346
78347         * config/config.{guess,sub}: update from prep.
78348
78349 2003-05-09  Bruno Haible  <bruno@clisp.org>
78350
78351         * modules/error: Add m4/strerror_r.m4 to file list.
78352
78353 2003-05-03  Bruno Haible  <bruno@clisp.org>
78354
78355         Upgrade to Unicode-4.0.
78356         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78357         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78358         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78359         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78360         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78361         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78362         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78363         Change width of U+E0100..U+E01EF from 1 to 0.
78364
78365 2003-04-25  Jim Meyering  <jim@meyering.net>
78366
78367         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78368         of type size_t, not int.
78369
78370 2003-04-25  Bruno Haible  <bruno@clisp.org>
78371
78372         * lib/copy-file.c: Include <stddef.h>, for size_t.
78373
78374 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78375
78376         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78377         code which expansion is under static control.  Patch imported from
78378         Akim Demaille's patch to Bison; see
78379         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78380
78381 2003-04-14  Bruno Haible  <bruno@clisp.org>
78382
78383         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78384
78385 2003-04-11  Jim Meyering  <jim@meyering.net>
78386
78387         Merge changes from Coreutils.
78388
78389         2003-03-22  Jim Meyering  <jim@meyering.net>
78390
78391         * lib/strftime.c (widen): Cast alloca return value to proper type.
78392
78393         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78394
78395         From GNU libc.
78396         * lib/strftime.c (my_strftime): Handle very large width
78397         specifications for numeric values correctly.  Improve checks for
78398         overflow.
78399
78400         2003-01-19  Jim Meyering  <jim@meyering.net>
78401
78402         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78403         definitions.
78404         (nl_get_alt_digit) [! defined my_strftime]: Define.
78405         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78406         _nl_get_alt_digit and _nl_get_walt_digit.
78407
78408         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78409         libc. These changes have no effect outside of _LIBC.
78410
78411 2003-04-10  Bruno Haible  <bruno@clisp.org>
78412
78413         * modules/findprog: New file.
78414         * MODULES.html.sh (func_all_modules): Add it.
78415
78416 2003-04-10  Bruno Haible  <bruno@clisp.org>
78417
78418         * m4/findprog.m4: New file.
78419         * m4/eaccess.m4: New file.
78420
78421 2003-04-10  Bruno Haible  <bruno@clisp.org>
78422
78423         * lib/findprog.h: New file, from GNU gettext.
78424         * lib/findprog.c: New file, from GNU gettext.
78425
78426 2003-04-05  Jim Meyering  <jim@meyering.net>
78427
78428         Merge changes from Coreutils.
78429
78430         * lib/exclude.h (PARAMS): Remove definition and uses.
78431         * lib/exclude.c: Remove uses of `PARAMS'.
78432
78433         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78434         Add test-cases for DOS filenames. Declare program_name.
78435         (main): Set up program_name.  Patch by Rich Dawe.
78436
78437         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78438         error from mntctl.
78439         Use mntctl's return value to drive the entry-processing loop, since
78440         we can't rely on the value of the vmt_length member in the last
78441         entry.  On some systems doing so could result in exhausting
78442         virtual memory.  Based in part on a patch from Mike Jetzer.
78443
78444 2003-04-04  Bruno Haible  <bruno@clisp.org>
78445
78446         * modules/linebreak: New file.
78447         * MODULES.html.sh (func_all_modules): Add it.
78448
78449 2003-04-04  Bruno Haible  <bruno@clisp.org>
78450
78451         * m4/linebreak.m4: New file.
78452
78453 2003-04-04  Bruno Haible  <bruno@clisp.org>
78454
78455         * lib/linebreak.h: New file, from GNU gettext.
78456         * lib/linebreak.c: New file, from GNU gettext with slight
78457         modifications.
78458         * lib/lbrkprop.h: New file, from GNU gettext.
78459
78460 2003-04-03  Bruno Haible  <bruno@clisp.org>
78461
78462         * modules/utf8-ucs4: New file.
78463         * modules/utf16-ucs4: New file.
78464         * modules/ucs4-utf8: New file.
78465         * modules/ucs4-utf16: New file.
78466         * MODULES.html.sh (func_all_modules): Add them.
78467
78468 2003-04-03  Bruno Haible  <bruno@clisp.org>
78469
78470         * m4/utf-ucs4.m4: New file.
78471         * m4/ucs4-utf.m4: New file.
78472
78473 2003-04-03  Bruno Haible  <bruno@clisp.org>
78474
78475         * lib/utf8-ucs4.h: New file, from GNU gettext.
78476         * lib/utf16-ucs4.h: New file, from GNU gettext.
78477         * lib/ucs4-utf8.h: New file, from GNU gettext.
78478         * lib/ucs4-utf16.h: New file, from GNU gettext.
78479
78480 2003-04-02  Bruno Haible  <bruno@clisp.org>
78481
78482         * modules/binary-io: New file.
78483         * MODULES.html.sh (func_all_modules): Add it.
78484
78485 2003-04-02  Bruno Haible  <bruno@clisp.org>
78486
78487         * lib/binary-io.h: New file, from GNU gettext.
78488
78489 2003-04-01  Bruno Haible  <bruno@clisp.org>
78490
78491         * modules/pathname: New file.
78492         * MODULES.html.sh (func_all_modules): Add it.
78493
78494 2003-04-01  Bruno Haible  <bruno@clisp.org>
78495
78496         * lib/pathname.h: New file, from GNU gettext.
78497         * lib/concatpath.c: New file, from GNU gettext.
78498
78499 2003-03-30  Bruno Haible  <bruno@clisp.org>
78500
78501         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78502
78503 2003-03-30  Bruno Haible  <bruno@clisp.org>
78504
78505         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78506         function chown() doesn't exist.
78507
78508 2003-03-28  Bruno Haible  <bruno@clisp.org>
78509
78510         * modules/copy-file: New file.
78511         * MODULES.html.sh (func_all_modules): Add it.
78512
78513 2003-03-28  Bruno Haible  <bruno@clisp.org>
78514
78515         * m4/copy-file.m4: New file.
78516
78517 2003-03-28  Bruno Haible  <bruno@clisp.org>
78518
78519         * lib/copy-file.h: New file, from GNU gettext.
78520         * lib/copy-file.c: New file, from GNU gettext.
78521
78522 2003-03-18  Jim Meyering  <jim@meyering.net>
78523
78524         * lib/quote.c (quote_n): Fix typo in comment.
78525
78526 2003-03-18  Bruno Haible  <bruno@clisp.org>
78527
78528         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
78529         checking.
78530         * m4/onceonly_2_57.m4: Likewise.
78531
78532 2003-03-17  Bruno Haible  <bruno@clisp.org>
78533
78534         * m4/onceonly.m4: Require autoconf 2.54 or newer.
78535         (m4_quote): Remove macro.
78536         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
78537
78538 2003-03-14  Jim Meyering  <jim@meyering.net>
78539
78540         Merge changes from Coreutils.
78541         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
78542         to be const, in order to avoid warnings.
78543         (obstack_room): Likewise.
78544         (obstack_empty_p): Likewise.
78545
78546 2003-03-14  Bruno Haible  <bruno@clisp.org>
78547
78548         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
78549         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
78550
78551 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78552
78553         Merge changes from Bison.
78554         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
78555         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
78556         when compiling Bison 1.875's `bitset bset = obstack_alloc
78557         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
78558         * lib/hash.c: Include <stdbool.h> unconditionally.
78559
78560 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78561
78562         * m4/onceonly.m4 (m4_quote): New macro.
78563         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
78564         Quote AC_FOREACH variable-expansions properly.
78565
78566 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78567
78568         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
78569
78570 2003-03-09  Paul Eggert  <eggert@twinsun.com>
78571
78572         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
78573         Reported by Bruce Becker; see:
78574         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
78575
78576 2003-03-03  Paul Eggert  <eggert@twinsun.com>
78577             Bruno Haible  <bruno@clisp.org>
78578
78579         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
78580         Reported by John Hughes, see
78581         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
78582
78583 2003-02-20  Bruno Haible  <bruno@clisp.org>
78584
78585         * MODULES.html.sh (func_all_modules): Add poll.
78586
78587 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78588
78589         * modules/poll: New file.
78590
78591 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78592
78593         * lib/poll_.h: New file.
78594         * lib/poll.c: New file.
78595
78596 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78597
78598         * m4/poll.m4: New file.
78599
78600 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78601
78602         * modules/mathl: New file.
78603
78604 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78605
78606         * lib/mathl.h: New file.
78607         * lib/acosl.c: New file.
78608         * lib/asinl.c: New file.
78609         * lib/atanl.c: New file.
78610         * lib/ceill.c: New file.
78611         * lib/cosl.c: New file.
78612         * lib/expl.c: New file.
78613         * lib/floorl.c: New file.
78614         * lib/frexpl.c: New file.
78615         * lib/ldexpl.c: New file.
78616         * lib/logl.c: New file.
78617         * lib/sincosl.c: New file.
78618         * lib/sinl.c: New file.
78619         * lib/sqrtl.c: New file.
78620         * lib/tanl.c: New file.
78621         * lib/trigl.c: New file.
78622         * lib/trigl.h: New file.
78623
78624 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78625
78626         * m4/mathl.m4: New file.
78627
78628 2003-02-18  Bruno Haible  <bruno@clisp.org>
78629
78630         * MODULES.html.sh (func_all_modules): Add mathl.
78631
78632 2003-02-17  Bruno Haible  <bruno@clisp.org>
78633
78634         * modules/mkdtemp: New module.
78635         * MODULES.html.sh (func_all_modules): Add it.
78636
78637 2003-02-17  Bruno Haible  <bruno@clisp.org>
78638
78639         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78640
78641 2003-02-17  Bruno Haible  <bruno@clisp.org>
78642
78643         * lib/mkdtemp.h: New file, from GNU gettext.
78644         * lib/mkdtemp.c: New file, from GNU gettext.
78645
78646 2003-02-02  Jim Meyering  <jim@meyering.net>
78647
78648         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78649         e.g. glibc-2.2.93.
78650
78651 2003-01-31  Bruno Haible  <bruno@clisp.org>
78652
78653         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78654         'rpl_rename'.
78655         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78656         'rpl_strnlen'.
78657         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78658         'rpl_strtod'.
78659         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78660         'rpl_utime'.
78661
78662 2003-01-31  Bruno Haible  <bruno@clisp.org>
78663
78664         * lib/rename.c: #undef rename before defining rpl_rename.
78665         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78666
78667 2003-01-30  Bruno Haible  <bruno@clisp.org>
78668
78669         * modules/vasnprintf, modules/vasprintf: New modules.
78670         * MODULES.html.sh (func_all_modules): Add them.
78671
78672 2003-01-30  Bruno Haible  <bruno@clisp.org>
78673
78674         * m4/signed.m4: New file, from GNU gettext.
78675         * m4/longdouble.m4: New file, from GNU gettext.
78676         * m4/wchar_t.m4: New file, from GNU gettext.
78677         * m4/wint_t.m4: New file, from GNU gettext.
78678         * m4/vasnprintf.m4: New file.
78679         * m4/vasprintf.m4: New file.
78680
78681 2003-01-30  Bruno Haible  <bruno@clisp.org>
78682
78683         * lib/printf-args.h: New file, from GNU gettext.
78684         * lib/printf-args.c: New file, from GNU gettext.
78685         * lib/printf-parse.h: New file, from GNU gettext.
78686         * lib/printf-parse.c: New file, from GNU gettext.
78687         * lib/vasnprintf.h: New file, from GNU gettext.
78688         * lib/vasnprintf.c: New file, from GNU gettext.
78689         * lib/asnprintf.c: New file, from GNU gettext.
78690         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78691         * lib/vasprintf.c: New file, from GNU gettext.
78692         * lib/asprintf.c: New file, from GNU gettext.
78693
78694 2003-01-29  Bruno Haible  <bruno@clisp.org>
78695
78696         * modules/stpncpy: New module.
78697         * MODULES.html.sh (func_all_modules): Add it.
78698
78699 2003-01-29  Bruno Haible  <bruno@clisp.org>
78700
78701         * m4/stpncpy.m4: New file.
78702
78703 2003-01-29  Bruno Haible  <bruno@clisp.org>
78704
78705         * lib/stpncpy.h: New file, from GNU gettext with modifications.
78706         * lib/stpncpy.c: New file, from GNU gettext with modifications.
78707
78708 2003-01-28  Bruno Haible  <bruno@clisp.org>
78709
78710         * modules/c-ctype: New module.
78711         * MODULES.html.sh (func_all_modules): Add it.
78712
78713 2003-01-28  Bruno Haible  <bruno@clisp.org>
78714
78715         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
78716         Paul Eggert.
78717         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
78718         Paul Eggert.
78719
78720 2003-01-27  Bruno Haible  <bruno@clisp.org>
78721
78722         * modules/xsetenv: New module.
78723         * MODULES.html.sh (func_all_modules): Add it.
78724
78725 2003-01-27  Bruno Haible  <bruno@clisp.org>
78726
78727         * lib/xsetenv.h: New file, from GNU gettext.
78728         * lib/xsetenv.c: New file, from GNU gettext.
78729
78730 2003-01-23  Jim Meyering  <jim@meyering.net>
78731
78732         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
78733         from working on systems without dirfd (at least Irix and OSF1/Tru64).
78734
78735 2003-01-23  Bruno Haible  <bruno@clisp.org>
78736
78737         * modules/minmax: New module.
78738         * MODULES.html.sh (func_all_modules): Add it.
78739
78740 2003-01-23  Bruno Haible  <bruno@clisp.org>
78741
78742         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
78743         Eggert.
78744
78745 2003-01-22  Bruno Haible  <bruno@clisp.org>
78746
78747         * modules/exit: New module.
78748         * MODULES.html.sh (func_all_modules): Add it.
78749
78750 2003-01-22  Bruno Haible  <bruno@clisp.org>
78751
78752         * lib/exit.h: New file, from GNU gettext.
78753
78754 2003-01-19  Bruno Haible  <bruno@clisp.org>
78755
78756         * gnulib-tool: Recognize option --extract-maintainer.
78757         (func_get_maintainer): New function.
78758         * modules/*: Add Maintainer entry.
78759
78760 2003-01-16  Jim Meyering  <jim@meyering.net>
78761
78762         * m4/regex.m4: The `regex' struct is both input and output.
78763         Initialize it before each use.  Patch by Tim Waugh.
78764
78765 2003-01-16  Bruno Haible  <bruno@clisp.org>
78766
78767         * MODULES.html.sh: Add a table of contents. Add the module name as
78768         leftmost column. Add hyperlinks.
78769
78770 2003-01-15  Bruno Haible  <bruno@clisp.org>
78771
78772         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
78773
78774 2003-01-15  Bruno Haible  <bruno@clisp.org>
78775
78776         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
78777         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
78778         suffix.
78779
78780 2003-01-15  Bruno Haible  <bruno@clisp.org>
78781
78782         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
78783
78784 2003-01-15  Bruno Haible  <bruno@clisp.org>
78785
78786         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
78787         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
78788
78789 2003-01-14  Jim Meyering  <jim@meyering.net>
78790
78791         * lib/same.c (same_name): Tweak a comment.
78792
78793 2003-01-14  Bruno Haible  <bruno@clisp.org>
78794
78795         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
78796         when a string comparison is sufficient.
78797
78798 2003-01-14  Bruno Haible  <bruno@clisp.org>
78799
78800         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
78801         'unsigned int'.
78802
78803 2003-01-14  Bruno Haible  <bruno@clisp.org>
78804
78805         * lib/hash-pjw.c: Add comment about low quality of this function.
78806
78807 2003-01-13  Bruno Haible  <bruno@clisp.org>
78808
78809         * modules/stpcpy: Distribute lib/stpcpy.h.
78810         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
78811
78812 2003-01-13  Bruno Haible  <bruno@clisp.org>
78813
78814         * modules/*: Add a description.
78815         * modules/strpbrk: Fix Makefile.am snippet.
78816         * modules/strtoimax: Fix dependencies.
78817         * modules/strtoumax: Likewise.
78818
78819 2003-01-13  Bruno Haible  <bruno@clisp.org>
78820
78821         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
78822         * modules/alloca (Makefile.am): All object files depend on alloca.h.
78823         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
78824
78825 2003-01-13  Bruno Haible  <bruno@clisp.org>
78826
78827         * gnulib-tool (func_create_testdir): Store config/* files in the main
78828         directory.
78829         * config.rpath: Move to ...
78830         * config/config.rpath: ... here.
78831         * modules/gettext: Contains config/config.rpath, not config.rpath.
78832         * modules/iconv: Likewise.
78833
78834 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78835
78836         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78837         to avoid collisions with libcurses and libreadline.
78838
78839         * m4/getstr.m4: Remove.
78840         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
78841
78842 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78843
78844         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78845         to avoid collisions with libcurses and libreadline.
78846
78847         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
78848         * lib/getstr.h, getstr.c: Remove.
78849         * lib/getline.c: Include "getline.h", to check interface.
78850         Move body of old getstr.c here: this defines MIN_CHUNK and
78851         declares getdelim2, which is renamed from getstr.
78852         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
78853
78854         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
78855         All uses changed.
78856         * lib/linebuffer.h: Likewise.
78857         (readline): Remove backward-compatibility macro.
78858
78859 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78860
78861         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78862         to avoid collisions with libcurses and libreadline.
78863         * getstr: Remove.
78864         * MODULES.html.sh: Remove getstr.
78865         * modules/getline: Depend on unlocked-io, not getstr.
78866
78867 2003-01-12  Jim Meyering  <jim@meyering.net>
78868
78869         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
78870
78871 2003-01-10  Bruno Haible  <bruno@clisp.org>
78872
78873         * modules/alloca: Change Makefile.am requirements. Simplify Include
78874         requirements. Add lib/alloca_.h to file list.
78875
78876 2003-01-10  Bruno Haible  <bruno@clisp.org>
78877
78878         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
78879
78880 2003-01-10  Bruno Haible  <bruno@clisp.org>
78881
78882         * lib/alloca_.h: New file.
78883         * lib/getdate.y: Unconditionally include alloca.h.
78884         * lib/makepath.c: Likewise.
78885         * lib/setenv.c: Likewise.
78886         * lib/userspec.c: Likewise.
78887
78888 2003-01-09  Karl Berry  <karl@gnu.org>
78889
78890         * MODULES.html.sh: include `dirname $0` in PATH, to find
78891         gnulib-tool.
78892
78893 2003-01-09  Bruno Haible  <bruno@clisp.org>
78894
78895         * modules/stdbool: Change configure.ac, Makefile.am requirements.
78896         Simplify Include requirements. Add lib/stdbool.h.in to file list.
78897
78898 2003-01-09  Bruno Haible  <bruno@clisp.org>
78899
78900         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
78901
78902 2003-01-09  Bruno Haible  <bruno@clisp.org>
78903
78904         * lib/stdbool.h.in: New file.
78905
78906 2003-01-09  Bruno Haible  <bruno@clisp.org>
78907
78908         * gnulib-tool (func_all_modules): Ignore files ending in ~.
78909         * MODULES.html.sh: Likewise.
78910
78911 2003-01-08  Jim Meyering  <jim@meyering.net>
78912
78913         * lib/full-write.c: Undefine and define-away `const' after inclusion
78914         of errno.h, not before.  Suggestion from Bruno Haible.
78915
78916 2003-01-08  Bruno Haible  <bruno@clisp.org>
78917
78918         * modules/full-read: Depend on full-write.
78919
78920 2003-01-08  Bruno Haible  <bruno@clisp.org>
78921
78922         * lib/safe-read.c: Include specification header first, to ensure its
78923         selfcontainedness.
78924         * lib/full-write.c: Likewise.
78925
78926 2003-01-07  Jim Meyering  <jim@meyering.net>
78927
78928         * lib/full-write.c: Rework so that it may serve to define full_read,
78929         too.
78930         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
78931
78932 2003-01-07  Bruno Haible  <bruno@clisp.org>
78933
78934         * lib/strtoimax.c: Include <stdint.h> as an alternative to
78935         <inttypes.h>.
78936         * lib/xstrtol.h: Likewise.
78937         * lib/xstrtoimax.c: Likewise.
78938         * lib/xstrtoumax.c: Likewise.
78939         * lib/human.h: Likewise.
78940
78941         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
78942         on systems that have <inttypes.h> but not <stdint.h>.
78943
78944 2003-01-07  Bruno Haible  <bruno@clisp.org>
78945
78946         * MODULES.html.sh: Add copyright notice.
78947         (missed_files): Omit CVS directory entries.
78948         (func_module): Make it work with sed-3.02.
78949         * MODULES.txt: Remove file.
78950
78951 2003-01-06  Jim Meyering  <jim@meyering.net>
78952
78953         * lib/version-etc.c: Update year in translatable copyright string.
78954
78955 2003-01-03  Karl Berry  <karl@gnu.org>
78956
78957         * config/config.{guess,sub}: update from prep.
78958
78959 2003-01-02  Karl Berry  <karl@gnu.org>
78960
78961         * doc/COPYING.DOC: belatedly updated to 1.2.
78962
78963 2003-01-01  Karl Berry  <karl@gnu.org>
78964
78965         * gnulib-tool (func_verify_module): report module name $module in
78966         error message, not $1.
78967         * gnulib-tool (create-testdir): don't complain if destdir couldn't
78968         be created, only if it doesn't exist.
78969         * gnulib-tool (last_checkin_date): don't expand the $Date here.
78970
78971 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78972
78973         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
78974
78975 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78976
78977         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
78978         memcmp if strcoll doesn't work.
78979
78980 2002-12-31  Bruno Haible  <bruno@clisp.org>
78981
78982         * lib/utime.c (utime_null): No need to call ftruncate if the file was
78983         nonempty.
78984
78985 2002-12-31  Bruno Haible  <bruno@clisp.org>
78986
78987         * lib/memcoll.c (STRCOLL): New macro.
78988         (memcoll): Use it.
78989
78990 2002-12-31  Bruno Haible  <bruno@clisp.org>
78991
78992         * lib/localcharset.h: New file.
78993         * lib/localcharset.c: Include it.
78994         * lib/unicodeio.c: Likewise.
78995
78996 2002-12-31  Bruno Haible  <bruno@clisp.org>
78997
78998         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
78999         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
79000
79001 2002-12-31  Bruno Haible  <bruno@clisp.org>
79002
79003         * lib/getline.h: Include <stddef.h>, for size_t.
79004
79005         * lib/unicodeio.h: Include <stddef.h>, for size_t.
79006         * lib/unicodeio.c: Don't include <stddef.h>.
79007
79008 2002-12-31  Bruno Haible  <bruno@clisp.org>
79009
79010         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
79011         HAVE_TM_ZONE.
79012
79013 2002-12-24  Karl Berry  <karl@gnu.org>
79014
79015         * config/config.guess: update from prep.
79016
79017 2002-12-24  Bruno Haible  <bruno@clisp.org>
79018
79019         General infrasructure.
79020         * m4/README: Rewritten.
79021         * m4/onceonly.m4: New file.
79022         * m4/onceonly_2_57.m4: New file.
79023
79024         Module atexit.
79025         * m4/atexit.m4: New file.
79026
79027         Module strtod.
79028         * m4/strtod.m4: New file.
79029
79030         Module strtol.
79031         * m4/strtol.m4: New file.
79032
79033         Module strtoul.
79034         * m4/strtoul.m4: New file.
79035
79036         Module memchr.
79037         * m4/memchr.m4: New file.
79038
79039         Module memcmp.
79040         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
79041         (jm_FUNC_MEMCMP): Invoke it.
79042
79043         Module memcpy.
79044         * m4/memcpy.m4: New file.
79045
79046         Module memmove.
79047         * m4/memmove.m4: New file.
79048
79049         Module memset.
79050         * m4/memset.m4: New file.
79051
79052         Module strcspn.
79053         * m4/strcspn.m4: New file.
79054
79055         Module strpbrk.
79056         * m4/strpbrk.m4: New file.
79057
79058         Module strstr.
79059         * m4/strstr.m4: New file.
79060
79061         Module strerror.
79062         * m4/strerror.m4: New file.
79063
79064         Module mktime.
79065         * m4/mktime.m4: Renamed from jm-mktime.m4.
79066         (gl_PREREQ_MKTIME): New macro.
79067         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
79068
79069         Module malloc.
79070         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
79071         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
79072         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
79073
79074         Module realloc.
79075         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
79076         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
79077         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
79078
79079         Module strftime.
79080         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
79081         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
79082         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
79083         gl_TM_GMTOFF.
79084         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
79085
79086         Module xalloc.
79087         * m4/xalloc.m4: New file.
79088
79089         Module alloca.
79090         * m4/alloca.m4: New file.
79091
79092         Module putenv.
79093         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
79094         (jm_FUNC_PUTENV): Invoke it.
79095
79096         Module setenv.
79097         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
79098         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
79099         when invoked twice.
79100         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
79101         gt_FUNC_SETENV.
79102
79103         Module memrchr.
79104         * m4/memrchr.m4: New file.
79105
79106         Module stpcpy.
79107         * m4/stpcpy.m4: New file.
79108
79109         Module strcase.
79110         * m4/strcase.m4: New file.
79111
79112         Module strdup.
79113         * m4/strdup.m4: New file.
79114
79115         Module strnlen.
79116         * m4/strnlen.m4: New file.
79117
79118         Module strndup.
79119         * m4/strndup.m4: New file.
79120
79121         Module xstrtod.
79122         * m4/xstrtod.m4: New file.
79123
79124         Module xstrtol.
79125         * m4/xstrtol.m4: New file.
79126
79127         Module getdate.
79128         * m4/getdate.m4: New file.
79129
79130         Module unlocked-io.
79131         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
79132         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
79133         * m4/jm-glibc-io.m4n: Remove file.
79134
79135         Module long-options.
79136         * m4/long-options.m4: New file.
79137
79138         Module md5.
79139         * m4/md5.m4: New file.
79140
79141         Module sha.
79142         * m4/sha.m4: New file.
79143
79144         Module getstr.
79145         * m4/getstr.m4: New file.
79146
79147         Module getline.
79148         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
79149         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
79150         <sys/types.h>, for size_t. Use the function name gnu_getline, not
79151         simply getline. Infoke gl_PREREQ_GETLINE.
79152
79153         Module obstack.
79154         * m4/obstack.m4: New file.
79155
79156         Module hash.
79157         * m4/hash.m4: New file.
79158
79159         Module readtokens.
79160         * m4/readtokens.m4: New file.
79161
79162         Module strverscmp.
79163         * m4/strverscmp.m4: New file.
79164
79165         Module stdbool.
79166         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
79167         OSF/1.
79168
79169         Module strtoll.
79170         * m4/strtoll.m4: New file.
79171
79172         Module strtoull.
79173         * m4/strtoull.m4: New file.
79174
79175         Module strtoimax.
79176         * m4/strtoimax.m4: New file.
79177
79178         Module strtoumax.
79179         * m4/strtoumax.m4: New file.
79180
79181         Module xstrtoimax.
79182         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
79183         jm_AC_PREREQ_XSTRTOIMAX.
79184         Moved the strtol prerequisites to strtol.m4.
79185         Moved the strtoll prerequisites to strtoll.m4.
79186         Moved the strtoimax prerequisites to strtoimax.m4.
79187
79188         Module xstrtoumax.
79189         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
79190         jm_AC_PREREQ_XSTRTOUMAX.
79191         Moved the strtoul prerequisites to strtoul.m4.
79192         Moved the strtoull prerequisites to strtoull.m4.
79193         Moved the strtoumax prerequisites to strtoumax.m4.
79194
79195         Module chown.
79196         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
79197         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
79198
79199         Module dup2.
79200         * m4/dup2.m4: New file.
79201
79202         Module ftruncate.
79203         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
79204         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
79205
79206         Module getgroups.
79207         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
79208         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
79209
79210         Module gettimeofday.
79211         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
79212         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
79213         gl_PREREQ_GETTIMEOFDAY.
79214
79215         Module mkdir.
79216         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
79217         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
79218
79219         Module mkstemp.
79220         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
79221         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
79222         jm_AC_TYPE_UINTMAX_T.
79223         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
79224
79225         Module stat.
79226         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
79227         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
79228
79229         Module lstat.
79230         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
79231         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
79232
79233         Module timespec.
79234         * m4/timespec.m4 (gl_TIMESPEC): New macro.
79235         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
79236         * m4/st_mtim.m4: Indentation.
79237
79238         Module nanosleep.
79239         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
79240         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
79241         gl_PREREQ_NANOSLEEP.
79242
79243         Module regex.
79244         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
79245         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
79246         (gl_REGEX): New macro.
79247
79248         Module rename.
79249         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
79250         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
79251
79252         Module rmdir.
79253         * m4/rmdir.m4: New file.
79254
79255         Module utime.
79256         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
79257         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
79258         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
79259
79260         Module dirname.
79261         * m4/dirname.m4: New file.
79262
79263         Module getopt.
79264         * m4/getopt.m4: New file.
79265
79266         Module unistd-safer.
79267         * m4/unistd-safer.m4: New file.
79268
79269         Module fnmatch.
79270         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
79271         declaration.
79272         (gl_PREREQ_FNMATCH_EXTRA): New macro.
79273         (gl_FUNC_FNMATCH_POSIX): New macro.
79274         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
79275         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
79276         simply fnmatch.
79277
79278         Module exclude.
79279         * m4/exclude.m4: New file.
79280
79281         Module human.
79282         * m4/human.m4: New file.
79283
79284         Module acl.
79285         * m4/acl.m4: Nop.
79286
79287         Module backupfile.
79288         * m4/backupfile.m4: New file.
79289         * m4/d-ino.m4: Indentation.
79290
79291         Module fsusage.
79292         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
79293         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
79294         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
79295
79296         Module dirfd.
79297         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
79298         requirements.
79299
79300         Module euidaccess.
79301         * m4/euidaccess.m4: New file.
79302
79303         Module file-type.
79304         * m4/file-type.m4: New file.
79305
79306         Module fileblocks.
79307         * m4/fileblocks.m4: New file.
79308
79309         Module filemode.
79310         * m4/filemode.m4: New file.
79311
79312         Module isdir.
79313         * m4/isdir.m4: New file.
79314
79315         Module lchown.
79316         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79317         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79318
79319         Module makepath.
79320         * m4/makepath.m4: New file.
79321
79322         Module modechange.
79323         * m4/modechange.m4: New file.
79324
79325         Module mountlist.
79326         * m4/mountlist.m4: New file.
79327         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79328         Indentation.
79329
79330         Module path-concat.
79331         * m4/path-concat.m4: New file.
79332
79333         Module pathmax.
79334         * m4/pathmax.m4: New file.
79335
79336         Module same.
79337         * m4/same.m4: New file.
79338
79339         Module save-cwd.
79340         * m4/save-cwd.m4: New file.
79341
79342         Module savedir.
79343         * m4/savedir.m4: New file.
79344
79345         Module xgetcwd.
79346         * m4/xgetcwd.m4: New file.
79347         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79348
79349         Module xreadlink.
79350         * m4/xreadlink.m4: New file.
79351
79352         Module safe-read.
79353         * m4/safe-read.m4: New file.
79354
79355         Module safe-write.
79356         * m4/safe-write.m4: New file.
79357
79358         Module closeout.
79359         * m4/closeout.m4: New file.
79360
79361         Module stdio-safer.
79362         * m4/stdio-safer.m4: New file.
79363
79364         Module getpass.
79365         * m4/getpass.m4: New file.
79366
79367         Module getugroups.
79368         * m4/getugroups.m4: New file.
79369
79370         Module group-member.
79371         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79372         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79373
79374         Module idcache.
79375         * m4/idcache.m4: New file.
79376
79377         Module userspec.
79378         * m4/userspec.m4: New file.
79379
79380         Module gettime.
79381         * m4/clock_time.m4: New file.
79382         * m4/gettime.m4: New file.
79383
79384         Module settime.
79385         * m4/settime.m4: New file.
79386
79387         Module posixtm.
79388         * m4/posixtm.m4: New file.
79389
79390         Module gethostname.
79391         * m4/gethostname.m4: New file.
79392
79393         Module canon-host.
79394         * m4/canon-host.m4: New file.
79395
79396         Module gettext.
79397         * m4/codeset.m4: New file, from gettext-0.11.5.
79398         * m4/gettext.m4: New file, from gettext-0.11.5.
79399         * m4/glibc21.m4: New file, from gettext-0.11.5.
79400         * m4/iconv.m4: New file, from gettext-0.11.5.
79401         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79402         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79403         * m4/inttypes.m4: New file, from gettext-0.11.5.
79404         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79405         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79406         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79407         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79408         * m4/lib-link.m4: New file, from gettext-0.11.5.
79409         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79410         * m4/progtest.m4: New file, from gettext-0.11.5.
79411         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79412         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79413         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79414
79415         Module localcharset.
79416         * m4/localcharset.m4: New file.
79417
79418         Module hard-locale.
79419         * m4/hard-locale.m4: New file.
79420
79421         Module mbswidth.
79422         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79423         onceonly macros.
79424         * m4/mbrtowc.m4: Add comment.
79425
79426         Module memcasecmp.
79427         * m4/memcasecmp.m4: New file.
79428
79429         Module memcoll.
79430         * m4/memcoll.m4: New file.
79431
79432         Module unicodeio.
79433         * m4/unicodeio.m4: New file.
79434
79435         Module rpmatch.
79436         * m4/rpmatch.m4: New file.
79437
79438         Module yesno.
79439         * m4/yesno.m4: New file.
79440
79441         Module exitfail.
79442         * m4/exitfail.m4: New file.
79443
79444         Module c-stack.
79445         * m4/c-stack.m4 (gl_C_STACK): New macro.
79446         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79447
79448         Module error.
79449         * m4/error.m4 (gl_ERROR): New macro.
79450         (jm_PREREQ_ERROR): Use onceonly macros.
79451
79452         Module fatal.
79453         * m4/fatal.m4: New file.
79454
79455         Module getloadavg.
79456         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79457         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79458
79459         Module getpagesize.
79460         * m4/getpagesize.m4: New file.
79461
79462         Module getusershell.
79463         * m4/getusershell.m4: New file.
79464
79465         Module physmem.
79466         * m4/physmem.m4: New file.
79467
79468         Module posixver.
79469         * m4/posixver.m4: New file.
79470
79471         Module quotearg.
79472         * m4/quotearg.m4: New file.
79473
79474         Module quote.
79475         * m4/quote.m4: New file.
79476
79477         Module readutmp.
79478         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79479
79480         Module sig2str.
79481         * m4/sig2str.m4: New file.
79482
79483         Other.
79484         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79485         ulonglong.m4.
79486         * m4/intmax_t.m4: New file.
79487         * m4/d-type.m4: Indentation.
79488         * m4/jm-macros.m4: Update.
79489         * m4/prereq.m4 (jm_PREREQ): Update.
79490         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79491         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79492         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79493         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79494         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79495         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79496         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79497         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79498         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79499         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79500         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79501         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79502         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79503         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79504         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79505         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79506         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79507         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79508         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79509
79510 2002-12-24  Bruno Haible  <bruno@clisp.org>
79511
79512         * MODULES.txt: Update according to m4/ changes.
79513
79514         Module gettext.
79515         * config.rpath: New file, from gettext-0.11.5.
79516
79517         * modules/*: New module descriptions.
79518         * gnulib-tool: New file.
79519         * MODULES.html.sh: New file.
79520
79521 2002-12-21  Karl Berry  <karl@gnu.org>
79522
79523         * doc/fdl.texi: update to version 1.2.
79524
79525 2002-12-19  Karl Berry  <karl@gnu.org>
79526
79527         * config/config.guess: update from prep.
79528
79529 2002-12-18  Bruno Haible  <bruno@clisp.org>
79530
79531         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
79532         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
79533
79534 2002-12-17  Bruno Haible  <bruno@clisp.org>
79535
79536         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
79537         stdlib.h, string.h.
79538
79539 2002-12-17  Bruno Haible  <bruno@clisp.org>
79540
79541         * lib/canon-host.c (strdup): Remove unused declaration.
79542
79543         * lib/fsusage.c: Include full_read.h.
79544         (get_fs_usage): Use full_read instead of safe_read.
79545
79546         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
79547
79548 2002-12-12  Karl Berry  <karl@gnu.org>
79549
79550         * config/config.guess: update from prep.
79551
79552 2002-12-11  Bruno Haible  <bruno@clisp.org>
79553
79554         * m4/setenv.m4: New file, from gettext-0.11.5.
79555
79556 2002-12-11  Bruno Haible  <bruno@clisp.org>
79557
79558         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
79559         not unsetenv().
79560         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
79561         modifications:
79562
79563         2002-12-11  Bruno Haible  <bruno@clisp.org>
79564
79565                 * setenv.c (alloca): Fall back to malloc.
79566                 (freea): New macro.
79567                 (setenv): Use freea() to free memory allocated with alloca().
79568
79569         2002-11-13  Bruno Haible  <bruno@clisp.org>
79570
79571                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
79572                 function declarations.
79573                 * unsetenv.c (unsetenv): Likewise.
79574
79575         2002-03-04  Bruno Haible  <bruno@clisp.org>
79576
79577                 Portability to AIX 4.3.3.
79578                 * unsetenv.c: New file, extracted from setenv.c.
79579                 * setenv.c: Move the unsetenv() function to unsetenv.c.
79580
79581         2001-12-20  Bruno Haible  <bruno@clisp.org>
79582
79583                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
79584                 use malloc instead. For SunOS 4.
79585
79586         2001-12-11  Bruno Haible  <bruno@clisp.org>
79587
79588                 * setenv.c: Declare alloca.
79589                 (compar_fn_t): New typedef.
79590                 (KNOWN_VALUE, STORE_VALUE): Use it.
79591
79592         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79593         setenv.h.
79594
79595 2002-12-10  Paul Eggert  <eggert@twinsun.com>
79596
79597         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
79598         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
79599         Choose values that are less likely to collide with system fnmatch
79600         options.
79601         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
79602         defined (e.g., a pure POSIX system).
79603         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
79604         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
79605
79606 2002-12-06  Paul Eggert  <eggert@twinsun.com>
79607
79608         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
79609         a pain in practice to deal with generated m4 files.  This change
79610         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
79611
79612         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
79613         and jm-glibc-io.m4, as they are no longer a special case.
79614         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
79615         kludge and the auto-generation stuff.  Check only whether the
79616         functions are declared, not whether they exist, since older hosts
79617         that don't declare the functions can't use the optimization anyway.
79618
79619 2002-12-06  Jim Meyering  <jim@meyering.net>
79620
79621         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79622
79623         Merge in changes from libc's misc/error.c, in preparation
79624         for the merge of gnulib's changes back into libc.
79625
79626         * lib/error.c (_): Define only if not already defined.
79627         Move definition to follow all #include directives.
79628         Include unlocked-io.h only if !_LIBC.
79629         [_LIBC]: Include <libio/libioP.h>.
79630         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79631         (fflush): Tweak definition to use INTUSE.
79632         (putc): Define.
79633
79634 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79635
79636         * lib/alloca.c [defined emacs]: Include "lisp.h".
79637         (xalloc_die) [defined emacs]: New macro.
79638         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79639         [! defined emacs]: Include <xalloc.h>.
79640         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79641         (pointer): Typedef to POINTER_TYPE *.
79642         (malloc): Remove decl; we now always use xmalloc.
79643         (alloca): Use old-style definition, since Emacs needs this.
79644         Check for arithmetic overflow when computing combined size.
79645
79646 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79647
79648         Do not generate unlocked-io.h automatically, since it's easier to
79649         maintain it by hand.
79650
79651         * lib/unlocked-io.h: New file, from GNU diffutils,
79652         but with proper copyright notice and attribution.
79653         * lib/gen-uio: Remove.
79654         * lib/Makefile.am: Add copyright notice.
79655         (libfetish_a_SOURCES): Add unlocked-io.h.
79656         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79657         (DISTCLEANFILES, io_functions): Remove macros.
79658         (EXTRA_DIST): Remove gen_uio.
79659         (unlocked-io.h): Remove rule.
79660
79661 2002-12-04  Jim Meyering  <jim@meyering.net>
79662
79663         Reflect the fact that stat.c and lstat.c are no longer generated.
79664         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79665         (DISTCLEANFILES): Likewise.
79666         (EXTRA_DIST): Likewise.
79667         (all_local): Don't depend on stat.c or lstat.c.
79668         (stat.c, lstat.c): Remove rules.
79669         (EXTRA_DIST): Remove xstat.in.
79670
79671         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79672         * lib/stat.c: New file.  Contents mostly from xstat.in.
79673         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79674         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79675
79676         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79677         too.
79678         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79679
79680 2002-12-03  Jim Meyering  <jim@meyering.net>
79681
79682         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79683         but not semantics, to minimize the differences between these two files.
79684         (safe_read): Change comment to mention SAFE_READ_ERROR.
79685
79686         * lib/safe-read.c (IS_EINTR): Define.
79687         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79688
79689 2002-12-02  Jim Meyering  <jim@meyering.net>
79690
79691         * lib/safe-read.c (EINTR): Define.
79692         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79693         (INT_MAX): Provide fallback.
79694         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
79695
79696         * lib/safe-read.h (SAFE_READ_ERROR): Define.
79697
79698 2002-12-02  Bruno Haible  <bruno@clisp.org>
79699
79700         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
79701         Define, taken from safe-read.c.
79702         (INT_MAX): Provide fallback.
79703         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
79704         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
79705
79706         * lib/safe-read.c (EINTR): Remove definition.
79707         (safe_read): Don't use EINTR if it is absent.
79708
79709 2002-12-01  Jim Meyering  <jim@meyering.net>
79710
79711         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
79712         zero.
79713         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
79714
79715 2002-11-27  Paul Eggert  <eggert@twinsun.com>
79716
79717         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
79718         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
79719         with `if (! (value < limit)) abort ();', for readability.
79720
79721 2002-11-26  Karl Berry  <karl@gnu.org>
79722
79723         * lib/strdup.c: copy from libc again, with jim's ok.
79724         * lib/.cppi-disable: re-add strdup.c
79725
79726 2002-11-25  Karl Berry  <karl@gnu.org>
79727
79728         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
79729         instead of "strtol.c".
79730
79731 2002-11-25  Karl Berry  <karl@gnu.org>
79732
79733         * config/install-sh: update from automake for variable quoting, $0 in
79734         error msgs, etc.
79735
79736         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
79737         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
79738         entry.
79739
79740 2002-11-25  Jim Meyering  <jim@meyering.net>
79741
79742         * lib/mktime.c: Sync from libc, now that it has the latest fix.
79743
79744 2002-11-24  Karl Berry  <karl@gnu.org>
79745
79746         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
79747         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
79748
79749 2002-11-24  Jim Meyering  <jim@meyering.net>
79750
79751         Update from coreutils:
79752
79753         * lib/mktime.c: Merge in changes from libc.
79754
79755         Avoid a link-time failure on some Linux systems.
79756         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
79757         (otherwise).
79758         (__mon_yday): Declare with the STATIC attribute.
79759         (__mktime_internal): Likewise.
79760         Based on a report from Greg Schafer.
79761
79762 2002-11-23  Jim Meyering  <jim@meyering.net>
79763
79764         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
79765         Use `unsigned', not `int', as type of index.
79766
79767         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
79768
79769         * lib/fsusage.c: Remove unneeded parentheses around operands of
79770         `defined'.
79771
79772 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79773
79774         * lib/quotearg.h: Allow multiple inclusion by surrounding with
79775         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
79776         so that we can be included first.
79777         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
79778         * lib/quotearg.c: Include quotearg.h immediately after config.h.
79779         No need to include stddef.h or sys/types.h any more.
79780         Surround local include files with "", not "<>".
79781         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
79782         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
79783         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
79784         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
79785         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
79786         (ISPRINT): Remove; no longer needed now that we assume C89.
79787
79788         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
79789         Preserve errno.
79790
79791         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
79792         quotearg_char): Use SIZE_MAX rather than
79793         (size_t) -1 when we are talking about "infinity".
79794
79795         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
79796
79797 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79798
79799         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
79800         hint that one should use `if (! x) abort ();' rather than `assert
79801         (x);', and anyway it's one less thing to worry about configuring.
79802         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
79803         hash_rehash, hash_insert): Use abort rather than assert.
79804
79805 2002-11-22  Bruno Haible  <bruno@clisp.org>
79806
79807         * lib/safe-read.h: Assume C89. Add comments.
79808         (safe_read): Change return type to size_t.
79809         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
79810         byte counts > SSIZE_MAX correctly.
79811         * lib/safe-write.h: New file.
79812         * lib/safe-write.c: New file.
79813         * lib/full-read.h: New file.
79814         * lib/full-read.c: New file.
79815         * lib/full-write.h: Assume C89. Add comments.
79816         * lib/full-write.c: Include safe-write.h.
79817         (full_write): Rewritten to use safe_write.
79818         Suggested by Jim Meyering and Paul Eggert.
79819
79820 2002-11-21  Jim Meyering  <jim@meyering.net>
79821
79822         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
79823
79824         Merge in changes from the coreutils.
79825
79826         2002-09-25  Paul Eggert  <eggert@twinsun.com>
79827         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
79828         <stdint.h>.
79829         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
79830         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
79831         int.  Work more efficiently if X is the same width as uintmax_t.
79832         Do not compare X to -1, to avoid bogus compiler warning.
79833         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
79834         Don't assume that f_frsize and f_bsize are the same type.
79835
79836         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
79837         warning on FreeBSD.
79838
79839         * lib/makepath.c (make_path): Restore umask *before* creating the final
79840         component.
79841         (make_path): Minor reformatting.
79842
79843         * lib/xmalloc.c: Adjust to work with new autoconf macros,
79844         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
79845         HAVE_MALLOC/HAVE_REALLOC.
79846
79847         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
79848         dummy ones.  At least on GNU/Linux systems, `auto' means something
79849         else.
79850         From Michael Stone.
79851
79852 2002-11-21  Bruno Haible  <bruno@clisp.org>
79853
79854         Remove case insensitive option matching.
79855         * lib/argmatch.h (argcasematch): Remove declaration.
79856         (ARGCASEMATCH): Remove macro.
79857         (__xargmatch_internal): Remove case_sensitive argument.
79858         (XARGMATCH): Update.
79859         (XARGCASEMATCH): Remove macro.
79860         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
79861         case_sensitive argument.
79862         (argcasematch): Remove function.
79863         (__xargmatch_internal): Remove case_sensitive argument.
79864         (main): Use XARGMATCH instead of XARGCASEMATCH.
79865
79866         * lib/xmalloc.c: Change compile-time error message. Add comment about
79867         required autoconf version.
79868
79869 2002-11-20  Paul Eggert  <eggert@twinsun.com>
79870
79871         Merge argmatch cleanups from Bison.  Assume C89.
79872
79873         * lib/argmatch.c: Include config.h here, not in argmatch.h.
79874         Include stdlib.h, for EXIT_FAILURE.
79875         Always include <string.h>, since we assume C89.
79876         (EXIT_FAILURE): Remove pre-C89 bug workaround.
79877         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
79878         Include <stddef.h> instead, since it's all we need for size_t.
79879         (PARAMS): Remove.  All uses removed.
79880         (ARRAY_CARDINALITY): Do not bother to #undef.
79881         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
79882         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79883         Remove unnecessary parentheses.
79884         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79885         Insert necessary parentheses.
79886         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
79887         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
79888
79889 2002-11-19  Bruno Haible  <bruno@clisp.org>
79890
79891         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
79892         * lib/mbswidth.h: Include <stddef.h>, for size_t.
79893
79894         * lib/mbswidth.h (PARAMS): Remove macro.
79895         (mbswidth, mbsnwidth): Use ANSI C function declarations.
79896         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
79897
79898         * lib/gcd.h (PARAMS): Remove macro.
79899         (gcd): Use ANSI C function declarations.
79900         * lib/gcd.c (gcd): Likewise.
79901
79902 2002-11-15  Bruno Haible  <bruno@clisp.org>
79903
79904         * lib/strcspn.c: Include <stddef.h>.
79905         (strcspn): Use ANSI C function declaration. Change return type to
79906         size_t. Use NULL.
79907         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
79908         (strpbrk): Use NULL.
79909         * lib/strpbrk.h (PARAMS): Remove macro.
79910         (strpbrk): Use ANSI C function declaration.
79911         * lib/strstr.c: Don't include <sys/types.h>.
79912         * lib/strstr.h (PARAMS): Remove macro.
79913         (strstr): Use ANSI C function declarations.
79914
79915 2002-11-14  Karl Berry  <karl@gnu.org>
79916
79917         * config/mkinstalldirs: `do' on separate line, instead of
79918         `for var; do'.
79919
79920 2002-11-06  Bruno Haible  <bruno@clisp.org>
79921
79922         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
79923         * lib/gcd.c (gcd): Likewise.
79924
79925 2002-11-05  Bruno Haible  <bruno@clisp.org>
79926
79927         * lib/gcd.h: New file, from gettext-0.11.5.
79928         * lib/gcd.c: New file, from gettext-0.11.5.
79929
79930 2002-11-05  Bruno Haible  <bruno@clisp.org>
79931
79932         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79933         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79934         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79935         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79936
79937         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
79938         <libintl.h>.
79939         * lib/makepath.c: Include gettext.h instead of <locale.h> and
79940         <libintl.h>.
79941
79942         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
79943         * lib/human.c: Include gettext.h instead of <libintl.h>.
79944         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
79945         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
79946         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
79947         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
79948         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
79949         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
79950         (textdomain): Remove definition.
79951         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
79952
79953         * lib/long-options.c: Remove include of <libintl.h> and definition of
79954         _.
79955         * lib/same.c: Remove include of <libintl.h> and definition of _.
79956
79957 2002-11-04  Owen Taylor  <otaylor@redhat.com>
79958
79959         * lib/config.charset: A few additions for Solaris.
79960
79961 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79962
79963         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
79964         * lib/localcharset.c (locale_charset): Declare as extern "C".
79965
79966 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79967
79968         * lib/config.charset: msdos in uk_UA uses CP1125.
79969
79970 2002-11-04  Bruno Haible  <bruno@clisp.org>
79971
79972         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
79973         * lib/strcase.h: New file, from GNU gettext-0.11.5.
79974         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
79975         * lib/strstr.h: New file, from GNU gettext-0.11.5.
79976         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
79977
79978 2002-11-04  Bruno Haible  <bruno@clisp.org>
79979
79980         * lib/localcharset.c (locale_charset): Don't return an empty string.
79981
79982 2002-11-04  Bruno Haible  <bruno@clisp.org>
79983
79984         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
79985         aliases.
79986
79987 2002-11-04  Bruno Haible  <bruno@clisp.org>
79988
79989         * lib/config.charset: Update for newest glibc. Add canonical names
79990         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
79991
79992 2002-11-04  Bruno Haible  <bruno@clisp.org>
79993
79994         * lib/config.charset: Add support for NetBSD.
79995
79996 2002-11-04  Bruno Haible  <bruno@clisp.org>
79997
79998         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
79999
80000 2002-11-01  Bruno Haible  <bruno@clisp.org>
80001
80002         * configure.in: Add AC_CONFIG_AUX_DIR call.
80003         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
80004         test/Makefile.
80005         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
80006
80007 2002-09-28  Karl Berry  <karl@gnu.org>
80008
80009         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
80010         installed automake until the next release, since changes have been
80011         made.
80012
80013 2002-09-25  Karl Berry  <karl@gnu.org>
80014
80015         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
80016         * lib/getopt*: copy from libc/posix.
80017         * lib/gettext.h: copy from gettext.
80018         * lib/.cppi-disable: add strdup.c, gettext.h.
80019
80020 2002-09-25  Karl Berry  <karl@gnu.org>
80021
80022         * config/srclist.txt: enable gettext.h check.
80023         * config/config.{guess,sub}: update from prep.
80024         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
80025                 from automake 1.6.3.
80026         See srclist*.
80027
80028 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
80029
80030         * regex.c (PATFETCH): Remove the translating fetch.
80031         (PATFETCH_RAW): Rename to PATFETCH.
80032         (set_image_of_range): New fun.
80033         (SET_RANGE_TABLE_WORK_AREA): Use it.
80034         (regex_compile): Don't translate the pattern chars so eagerly.
80035         Only do it when inserting an `exactn' bytecode or when handling
80036         a char-range.
80037         (mutually_exclusive_p): Avoid empty statement.
80038
80039 2002-07-06  Jim Meyering  <meyering@lucent.com>
80040
80041         * m4/README: Don't mention Makefile.am.in.
80042         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
80043
80044 2002-07-01  Jim Meyering  <meyering@lucent.com>
80045
80046         * lib/c-stack.c: Include sys/time.h.
80047         From Volker Borchert.
80048
80049 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80050
80051         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
80052
80053 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80054
80055         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
80056         New macro.  Use it uniformly instead of
80057         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
80058         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
80059         reported by Vin Shelton.
80060
80061 2002-06-22  Paul Eggert  <eggert@twinsun.com>
80062
80063         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
80064         Do not assume SA_SIGINFO behavior.
80065         Bug reported by Jim Meyering on NetBSD 1.5.2.
80066
80067 2002-06-22  Jim Meyering  <meyering@lucent.com>
80068
80069         * m4/c-stack.m4: New file, from diffutils-2.8.2.
80070         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
80071
80072         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
80073         now that configure.ac uses AC_GNU_SOURCE.
80074         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
80075         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
80076
80077         Update to latest tools.  Suggestions from Paul Eggert.
80078         * m4/stdbool.m4: New file, from diffutils-2.8.2.
80079         * m4/gnu-source.m4: Update from diffutils-2.8.2.
80080         * m4/fnmatch.m4: Likewise.
80081         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
80082         to AC_HEADER_STDBOOL
80083
80084 2002-06-22  Jim Meyering  <meyering@lucent.com>
80085
80086         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
80087         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
80088
80089 2002-06-22  Jim Meyering  <meyering@lucent.com>
80090
80091         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
80092
80093         * lib/exitfail.c, exitfail.h: Likewise.
80094         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
80095
80096         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
80097         of fnmatch.h.
80098         (EXTRA_DIST): Add fnmatch_loop.c.
80099         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
80100
80101         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
80102         * lib/fnmatch.c: Update from diffutils-2.8.2.
80103         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
80104         * lib/fnmatch.h: Remove file.
80105
80106 2002-06-21  Jim Meyering  <meyering@lucent.com>
80107
80108         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
80109         * m4/mbrtowc.m4: Likewise.
80110
80111         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
80112         * m4/mbswidth.m4: Reflect name change:
80113         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
80114         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80115
80116         * m4/lib-link.m4: Update from gettext-0.11.2.
80117         * m4/gettext.m4: Likewise.
80118
80119         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
80120         From Alfred M. Szmidt.
80121
80122 2002-06-18  Paul Eggert  <eggert@twinsun.com>
80123
80124         * lib/file-type.h: Report an error if neither S_ISREG nor
80125         S_IFREG is defined, instead of using a test specific to glibc
80126         2.2.  This should be safe, since POSIX requires S_ISREG and
80127         Unix Version 7 had S_IFREG.  We don't need to check for
80128         <sys/types.h> since we don't use any symbols that it defines.
80129
80130 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
80131
80132         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
80133         $@-t, so that each temporary file name is unique and valid in the first
80134         8 characters, for operation under DOS.
80135
80136 2002-06-15  Paul Eggert  <eggert@twinsun.com>
80137
80138         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
80139
80140 2002-06-15  Jim Meyering  <meyering@lucent.com>
80141
80142         Work even with DJGPP 2.03, which lacks support for symlinks.
80143         From Richard Dawe.
80144         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
80145         is defined.
80146         * lib/lchown.c (S_ISLNK): Likewise.
80147
80148 2002-06-15  Jim Meyering  <meyering@lucent.com>
80149
80150         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
80151         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
80152         have been included before this file.
80153
80154 2002-06-14  Jim Meyering  <meyering@lucent.com>
80155
80156         * lib/file-type.h: Use the version from diffutils-2.8.2.
80157         * lib/file-type.c: Likewise.
80158
80159 2002-06-07  Jim Meyering  <meyering@lucent.com>
80160
80161         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
80162         They're needed at least for NetBSD 1.5.2.
80163         ($statxfs_includes): Include those same headers.
80164         ($statxfs_includes): Include sys/vfs.h if available.
80165         ($statxfs_includes): Likewise for sys/statvfs.h.
80166         Check for the following members in both structs statfs and statvfs:
80167         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
80168
80169 2002-06-01  Jim Meyering  <meyering@lucent.com>
80170
80171         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
80172         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
80173
80174 2002-05-28  Jim Meyering  <meyering@lucent.com>
80175
80176         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
80177         Reported by Volker Borchert.
80178
80179 2002-05-27  Jim Meyering  <meyering@lucent.com>
80180
80181         Fix a problem seen only on nonconforming systems whereby ls.c's
80182         use of localtime, and then of gettimeofday would cause trouble:
80183         the localtime call used to initialize rpl_gettimeofday's save
80184         mechanism would clobber ls's current local time information so
80185         that in any long listing the first file would always be listed
80186         with date 1970-01-01.  Analysis by Volker Borchert.
80187
80188         * lib/gettimeofday.c (localtime): Undefine.
80189         (rpl_localtime): New function.
80190
80191 2002-05-27  Jim Meyering  <meyering@lucent.com>
80192
80193         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
80194         localtime.
80195
80196         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
80197         use the replacement function; it wouldn't resolve at link time.
80198         Reported by Volker Borchert.
80199
80200 2002-05-22  Jim Meyering  <meyering@lucent.com>
80201
80202         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
80203         file-type.h.
80204         * lib/file-type.h: New file.
80205         * lib/file-type.c (file_type): New file/function.  Extracted from
80206         diffutils.
80207
80208 2002-04-30  Jim Meyering  <meyering@lucent.com>
80209
80210         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
80211
80212 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80213
80214         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
80215
80216 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80217
80218         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
80219         Do not check for alloca.h (no longer used) or stdbool.h (was never
80220         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
80221
80222 2002-04-29  Paul Eggert  <eggert@twinsun.com>
80223
80224         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
80225
80226 2002-04-29  Jim Meyering  <meyering@lucent.com>
80227
80228         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
80229         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
80230         Use AC_FUNC_STRNLEN here instead.
80231
80232         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
80233         With autoconf-2.53a, it's part of AC_PROG_CC.
80234
80235 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80236
80237         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
80238         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
80239
80240 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80241
80242         * lib/sig2str.h, lib/sig2str.c: New files.
80243         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
80244
80245 2002-04-28  Paul Eggert  <eggert@twinsun.com>
80246
80247         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
80248         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
80249         of 127, since 64 is the largest conceivable number for ancient
80250         nonstandard hosts.
80251         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
80252
80253 2002-04-28  Jim Meyering  <meyering@lucent.com>
80254
80255         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
80256
80257 2002-04-24  Jim Meyering  <meyering@lucent.com>
80258
80259         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
80260         (jm_PREREQ): Use it.
80261
80262         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
80263         mach/mach.h fcntl.h.
80264         Check for this function: setlocale.
80265
80266 2002-04-24  Jim Meyering  <meyering@lucent.com>
80267
80268         * lib/gettext.h: New file, from Gettext.
80269         * lib/Makefile.am (INCLUDES): Remove -I../intl.
80270         (libfetish_a_SOURCES): Add gettext.h.
80271
80272 2002-04-16  Jim Meyering  <meyering@lucent.com>
80273
80274         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
80275         ut_pid, ut_id, ut_exit.
80276
80277 2002-04-16  Jim Meyering  <meyering@lucent.com>
80278
80279         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
80280         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
80281         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
80282
80283 2002-04-12  Jim Meyering  <meyering@lucent.com>
80284
80285         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
80286         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
80287         existence of the getmntinfo function.  Needed for Darwin 5.3.
80288
80289         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
80290         This is necessary at least on Darwin 5.3.
80291
80292         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
80293         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
80294         strnlen.o in the library, and that makes some versions of ranlib
80295         object.
80296
80297 2002-04-12  Jim Meyering  <meyering@lucent.com>
80298
80299         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
80300
80301 2002-04-09  Jim Meyering  <meyering@lucent.com>
80302
80303         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
80304         to be more precise.  Rather than saying we're checking whether the
80305         function `works', say what we're testing.
80306         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
80307         Reported by Bruno Haible.
80308
80309 2002-03-10  Jim Meyering  <meyering@lucent.com>
80310
80311         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80312         Suggestion from Santiago Vila.
80313
80314 2002-03-08  Jim Meyering  <meyering@lucent.com>
80315
80316         * lib/rename.c: Mention that this wrapper is needed also on
80317         mips-dec-ultrix4.4 systems.
80318
80319 2002-03-02  Jim Meyering  <meyering@lucent.com>
80320
80321         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80322         not HAVE_CLOCK_SETTIME.
80323
80324 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80325
80326         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80327         Check for clock_settime.
80328
80329 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80330
80331         * lib/nanosleep.h: Rename to....
80332         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80333
80334         * lib/gettime.c: New file.
80335         * lib/settime.c: New file.
80336         * lib/stime.c: Remove.
80337
80338         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80339         timespec.h.  Remove nanosleep.h.
80340
80341 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80342
80343         * m4/acl.m4: New file.
80344         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80345         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80346
80347 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80348
80349         * lib/acl.c, lib/acl.h: New files.
80350         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80351
80352 2002-02-24  Jim Meyering  <meyering@lucent.com>
80353
80354         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80355         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80356         cause trouble.  Reported by Nelson Beebe.
80357
80358 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80359
80360         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80361         compilers that don't know that xalloc_die never returns.
80362
80363 2002-02-20  Jim Meyering  <meyering@lucent.com>
80364
80365         * lib/getdate.c: Regenerate using bison-1.33.
80366
80367 2002-02-17  Jim Meyering  <meyering@lucent.com>
80368
80369         * config/config.guess (main): Don't use `head -1'; it's no longer
80370         portable. Use `sed 1q' instead.
80371
80372 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80373
80374         * m4/codeset.m4: Upgrade to gettext-0.11.
80375         * m4/gettext.m4: Upgrade to gettext-0.11.
80376         * m4/glibc21.m4: Upgrade to gettext-0.11.
80377         * m4/iconv.m4: Upgrade to gettext-0.11.
80378         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80379         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80380         * m4/lib-ld.m4: New file, from gettext-0.11.
80381         * m4/lib-link.m4: New file, from gettext-0.11.
80382         * m4/lib-prefix.m4: New file, from gettext-0.11.
80383         * m4/progtest.m4: Upgrade to gettext-0.11.
80384
80385 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80386
80387         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80388         (jm_PREREQ): Use it.
80389
80390 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80391
80392         * lib/posixver.c, lib/posixver.h: New files.
80393         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80394
80395 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80396             Bruno Haible  <bruno@clisp.org>
80397
80398         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80399         (fwrite_success_callback): New declaration.
80400         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80401         print_unicode_char. Call failure callback instead of error.
80402         (fwrite_success_callback): New function.
80403         (exit_failure_callback): New function.
80404         (fallback_failure_callback): New function.
80405         (print_unicode_char): Call unicode_to_mb.
80406
80407 2002-01-26  Jim Meyering  <meyering@lucent.com>
80408
80409         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80410         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80411
80412 2002-01-26  Jim Meyering  <meyering@lucent.com>
80413
80414         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80415
80416 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80417
80418         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80419
80420 2002-01-22  Jim Meyering  <meyering@lucent.com>
80421
80422         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80423         Otherwise, some versions of automake would omit the rule that makes
80424         Makefile from Makefile.in.
80425
80426 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80427
80428         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80429         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80430         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80431         (memcoll): Set errno to zero if there is no error.
80432
80433         * lib/quotearg.c (quotearg_buffer_restyled):
80434         Fix bug with quoting buffers containing NUL when backslashing escapes.
80435         This bug was exposed by the other changes in this patch.
80436         (quotearg_n_options): New arg ARGSIZE.
80437         All callers changed.
80438         (quoting_options_from_style): New function.
80439         (quotearg_n_style): Use it.
80440         (quotearg_n_style_mem): New function.
80441
80442         * lib/quotearg.h (quotearg_n_style_mem): New function.
80443
80444 2002-01-19  Jim Meyering  <meyering@lucent.com>
80445
80446         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80447         Remove useless quotes: DF_PROG="df".
80448         * m4/strnlen.m4: New file.
80449
80450 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80451
80452         * lib/backupfile.c (ISDIGIT): Comment fix.
80453         * lib/getdate.y (ISDIGIT): Likewise.
80454         * lib/posixtm.c (ISDIGIT, year): Likewise.
80455         * lib/strverscmp.c (ISDIGIT): Likewise.
80456         * lib/userspec.c (ISDIGIT): Likewise.
80457
80458 2002-01-16  Jim Meyering  <meyering@lucent.com>
80459
80460         * lib/getdate.y: Add three semicolons, each just before a closing
80461         brace. Bison (as of version 1.31) no longer papers over that mistake.
80462
80463 2002-01-05  Jim Meyering  <meyering@lucent.com>
80464
80465         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80466
80467 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80468
80469         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80470         not silently exit merely because the output buffer happens to
80471         have nothing pending.
80472
80473 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80474
80475         See the big note in ../ChangeLog.
80476         * lib/human.c (suffixes): Prefer K to k for 1024.
80477         (generate_suffix_backwards): New function.
80478         (human_readable_inexact): Use it.
80479         * lib/xstrtol.c (__xstrtol): If there is no number but there
80480         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80481         Accept 'K' as well as 'k'.
80482
80483 2001-12-15  Jim Meyering  <meyering@lucent.com>
80484
80485         * lib/regex.h (__restrict_arr): Update from libc.
80486
80487         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80488         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80489         (STREQ): Define.
80490
80491 2001-12-14  Jim Meyering  <meyering@lucent.com>
80492
80493         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80494         Suggestion from Bruno Haible.
80495
80496 2001-12-10  Jim Meyering  <meyering@lucent.com>
80497
80498         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80499         xrealloc, Instead, include "xalloc.h".
80500         (initbuffer): Don't cast xmalloc return value to char*.
80501         (readline): Reword comment.
80502         Don't cast xrealloc return value to char*
80503         Return NULL, not 0.
80504
80505 2001-12-09  Jim Meyering  <meyering@lucent.com>
80506
80507         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80508         about `signed and unsigned type in conditional expression'.
80509         * lib/posixtm.c (posix_time_parse): Likewise.
80510
80511         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80512
80513         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80514         to avoid a pedantic warning.
80515
80516         * lib/getstr.c: Don't include assert.h.
80517         (getstr): Remove warning-evoking assertions.
80518         Return -1 if offset parameter is out of bounds.
80519         Change the type of a local from int to size_t.
80520
80521         * lib/strftime.c (my_strftime_localtime_r): Include this function
80522         definition in the `#if ! HAVE_TM_GMTOFF' block.
80523
80524         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80525         Include xalloc.h instead.
80526
80527 2001-12-02  Jim Meyering  <meyering@lucent.com>
80528
80529         * lib/tempname.c: Don't declare getenv, thus reverting the change of
80530         2001-11-18.  It's no longer necessary, now that stdlib.h is always
80531         included.
80532
80533         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
80534         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
80535
80536 2001-11-30  Akim Demaille  <akim@epita.fr>
80537
80538         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
80539         before being defined.
80540
80541 2001-11-27  Paul Eggert  <eggert@twinsun.com>
80542
80543         * lib/quotearg.h (quotearg_n, quotearg_n_style):
80544         First arg is int, not unsigned.
80545         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
80546         (SIZE_MAX, UINT_MAX): New macros.
80547         (quotearg_n_options): Abort if N is negative.
80548         Avoid overflow check on hosts where size_t is 64 bits and int
80549         is 32 bits, as overflow is impossible there.
80550         Fix off-by-one typo that caused unnecessary reallocation.
80551
80552 2001-11-27  Jim Meyering  <meyering@lucent.com>
80553
80554         * lib/tempname.c: Merge with version from libc.
80555         * lib/regex.c: Likewise.
80556
80557         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
80558         systems for which STDC_HEADERS is 0, it was not included, resulting in
80559         a warning about an integer-to-pointer conversion problem with getenv.
80560         Reported by Volker Borchert.
80561
80562 2001-11-26  Jim Meyering  <meyering@lucent.com>
80563
80564         * lib/gtod.h: Remove file.
80565         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
80566         * lib/gettimeofday.c: Don't include gtod.h.
80567         (GTOD_init): Remove function.
80568         (rpl_gettimeofday): Do its job here instead, rather than aborting.
80569         Suggestion from Volker Borchert.
80570
80571 2001-11-23  Jim Meyering  <meyering@lucent.com>
80572
80573         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
80574         it.
80575         * lib/hash.c (struct hash_table): Define it here instead.
80576
80577 2001-11-22  Jim Meyering  <meyering@lucent.com>
80578
80579         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
80580
80581 2001-11-20  Jim Meyering  <meyering@lucent.com>
80582
80583         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
80584         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
80585
80586 2001-11-19  Jim Meyering  <meyering@lucent.com>
80587
80588         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
80589         directory.  Use "conftestXXXXXX" as the template.
80590         Suggestion from Paul Eggert.
80591
80592         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
80593         immediately, so the test doesn't mistakenly hit the max-open-files
80594         limit.
80595
80596 2001-11-18  Paul Eggert  <eggert@twinsun.com>
80597
80598         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
80599         (TEMPORARIES): New macro.
80600         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
80601         removes an artificial limitation (e.g. HP-UX 10.20, where
80602         TMP_MAX is 17576).
80603
80604 2001-11-18  Jim Meyering  <meyering@lucent.com>
80605
80606         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
80607
80608 2001-11-18  Jim Meyering  <meyering@lucent.com>
80609
80610         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
80611         on SunOS 4.
80612
80613         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
80614         files will be created before anything else.
80615
80616 2001-11-17  Paul Eggert  <eggert@twinsun.com>
80617
80618         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80619         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80620
80621 2001-11-17  Jim Meyering  <meyering@lucent.com>
80622
80623         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80624         Prompted by a report from Bob Proulx.
80625
80626         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80627         Instead, require UTILS_FUNC_MKSTEMP.
80628
80629 2001-11-17  Jim Meyering  <meyering@lucent.com>
80630
80631         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80632         Now, that's done as part of AC_FUNC_STRTOD.
80633
80634 2001-11-17  Jim Meyering  <meyering@lucent.com>
80635
80636         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80637         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80638         rather than group writable.  Patch by Juan F. Codagnone.
80639
80640         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80641         xrealloc, Instead, include "xalloc.h".
80642
80643         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80644         Remove explicit declarations of xmalloc, xrealloc,
80645         and xstrdup.  Instead, include "xalloc.h".
80646
80647         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80648         unlocked-io.h.
80649         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80650         Likewise.
80651         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80652
80653         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80654         Reported by Padraig Brady.
80655
80656         * lib/mkstemp.c: #undef mkstemp.
80657         Include config.h.
80658         (rpl_mkstemp): Rename from mkstemp.
80659         Protoize.
80660
80661 2001-11-16  Jim Meyering  <meyering@lucent.com>
80662
80663         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80664         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80665         determine the amount of total physical memory, use pstat_getstatic.
80666         HPUX-11 doesn't define _SC_PHYS_PAGES.
80667         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80668         If sysconf couldn't be used to determine the amount of available
80669         physical memory, use both pstat_getstatic and pstat_getdynamic.
80670         Based on a patch from Bob Proulx.
80671
80672 2001-11-10  Jim Meyering  <meyering@lucent.com>
80673
80674         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80675         (jm_PREREQ): Use it.
80676
80677 2001-11-09  Jim Meyering  <meyering@lucent.com>
80678
80679         * m4/jm-macros.m4: Require autoconf-2.52f.
80680         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80681         Use these AC_-prefixed names, not the AM_-prefixed ones.
80682
80683         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80684
80685 2001-11-05  Jim Meyering  <meyering@lucent.com>
80686
80687         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80688
80689 2001-11-04  Jim Meyering  <meyering@lucent.com>
80690
80691         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
80692         $DEFS.
80693
80694 2001-11-03  Jim Meyering  <meyering@lucent.com>
80695
80696         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
80697         of AC_DEFUN.
80698
80699         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
80700         know the name of the variable in the macro definition.
80701
80702 2001-11-03  Jim Meyering  <meyering@lucent.com>
80703
80704         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
80705         in argmatch_to_argument call.
80706
80707         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
80708         argument.
80709
80710         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
80711         e.g., a fault due to an attempt to free a NULL pointer.
80712
80713 2001-11-01  Jim Meyering  <meyering@lucent.com>
80714
80715         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
80716         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
80717
80718 2001-11-01  Jim Meyering  <meyering@lucent.com>
80719
80720         * lib/dirfd.c, lib/dirfd.h: New files.
80721         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
80722
80723         * lib/hash.c (hash_print) [TESTING]: Clean up.
80724
80725 2001-10-22  Paul Eggert  <eggert@twinsun.com>
80726
80727         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
80728         to avoid a warning if -Wall.
80729
80730 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
80731
80732         * README: New file
80733         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
80734         (per RMS's instructions, this is now the canonical source)
80735         * lgpl/, gpl/: New directories.
80736
80737 2001-10-21  Paul Eggert  <eggert@twinsun.com>
80738
80739         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
80740
80741 2001-10-21  Jim Meyering  <meyering@lucent.com>
80742
80743         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
80744         this code would end up calling gettext even in packages built
80745         with --disable-nls.
80746         * lib/getopt.c (_): Likewise.
80747         * lib/regex.c (_): Likewise.
80748
80749 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80750
80751         * m4/error.m4 (jm_PREREQ_ERROR):
80752         Do not invoke AC_CHECK_FUNCS with strerror_r, as
80753         AC_FUNC_STRERROR_R does that.
80754         Check for strerror declaration.
80755
80756         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
80757         are supposed to have them these days.
80758         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
80759         Merge changes from latest Autoconf CVS.
80760         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
80761         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
80762         POSIX decided to standardize on the int flavor of strerror_r.
80763
80764 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80765
80766         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
80767         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
80768         Use strerror_r that is only a macro, even if it is not a function.
80769         (strerror): Check for HAVE_DECL_STRERROR before declaring.
80770         (private_strerror): Use prototypes, not old-style function definition.
80771         (print_errno_message): New function.
80772         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
80773         char*-flavored one.
80774         (error_tail, error, error_at_line): Use it.
80775
80776 2001-10-11  Jim Meyering  <meyering@lucent.com>
80777
80778         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
80779         and quote_n (1, ... to avoid clobbering a buffer.
80780
80781 2001-10-05  Jim Meyering  <meyering@lucent.com>
80782
80783         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
80784         hash-pjw.h.
80785         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
80786         * lib/hash-pjw.h: New file.
80787
80788 2001-09-30  Jim Meyering  <meyering@lucent.com>
80789
80790         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
80791         `struct fsstat' has the `f_fstypename' member.
80792         Use that to define FS_TYPE, which is now used to make
80793         the getfsstat link test tighter.
80794
80795 2001-09-30  Jim Meyering  <meyering@lucent.com>
80796
80797         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
80798         Include <sys/ucred.h>, for Apple Darwin.
80799         Include sys/mount.h and sys/fs_types.h only if available.
80800         (FS_TYPE): Define.
80801         (read_filesystem_list): Use FS_TYPE.
80802
80803 2001-09-29  Paul Eggert  <eggert@twinsun.com>
80804
80805         * lib/exclude.c (excluded_filename): 0 -> false, since it's
80806         a boolean context.
80807
80808 2001-09-29  Jim Meyering  <meyering@lucent.com>
80809
80810         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80811         [one-argument getmntent function]): Include stdio.h before mntent.h.
80812         SunOS 4.1.x needs it for the declaration of `FILE'.
80813         Patch by Volker Borchert.
80814
80815         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80816         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
80817         sys/fs_types.h, and make the link-test for getfsstat guard #include
80818         directives with appropriate #if HAVE_*_H tests so that we can
80819         detect getfsstat on Apple Darwin1.3.7 systems.
80820         Reported by Nelson Beebe.
80821         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
80822
80823 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80824
80825         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80826         #defines strtoimax.  Also treat the other strto* functions
80827         like strtoimax.
80828
80829         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80830         Check for strtoul and strtoumax,
80831         as those declarations are made even in the signed case.
80832         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
80833         Likewise, for strtol and strtoimax.
80834
80835 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80836
80837         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80838         #defines strtoimax.  Also treat the other strto* functions
80839         like strtoimax.
80840
80841         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
80842         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
80843         (strtoimax, strtoumax): Do not declare if already defined as a macro.
80844
80845 2001-09-26  Jim Meyering  <meyering@lucent.com>
80846
80847         Most macros in unlocked-io.h had the wrong number of arguments.
80848         * lib/gen-uio: New script.
80849         (USE_UNLOCKED_IO): Define to 1 if not already defined.
80850         * lib/unlocked-io.hin: Remove file.
80851         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
80852         rather than trying to embed it here.
80853         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
80854         Reported by Padraig Brady.
80855
80856 2001-09-25  Volker Borchert  <bt@teknon.de>
80857
80858         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
80859         `result'.
80860
80861 2001-09-24  Jim Meyering  <meyering@lucent.com>
80862
80863         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
80864
80865 2001-09-23  Jim Meyering  <meyering@lucent.com>
80866
80867         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
80868         instead of the mere test for existence of mntent.h.  The latter
80869         would get a false-positive on AIX 3.4 systems.
80870         In the outer getmntent if-block, don't die if neither of the getmntent
80871         tests succeeds.  Instead, just fall through and continue with the
80872         remaining tests.
80873
80874 2001-09-23  Jim Meyering  <meyering@lucent.com>
80875
80876         * lib/mountlist.c: Remove useless parentheses in #if directives.
80877         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
80878         the deprecated MOUNTED symbol is no longer defined in mntent.h.
80879
80880 2001-09-22  Jim Meyering  <meyering@lucent.com>
80881
80882         * m4/gettext.m4: New file.  From gettext.
80883         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
80884         * m4/progtest.m4: Likewise
80885         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
80886         * m4/glibc21.m4: Likewise.
80887
80888         * m4/libintl.m4: Remove.  No longer used.
80889
80890 2001-09-22  Jim Meyering  <meyering@lucent.com>
80891
80892         * lib/localcharset.c: Update from latest gettext.
80893         * lib/config.charset: Likewise.
80894
80895 2001-09-20  Jim Meyering  <meyering@lucent.com>
80896
80897         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
80898         strtoimax.
80899         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
80900         strtoumax.
80901
80902 2001-09-20  Jim Meyering  <meyering@lucent.com>
80903
80904         * lib/xstrtol.c (strtoimax): Guard declaration with
80905         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
80906         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
80907         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
80908         (strtoumax): Likewise, for completeness (it wasn't necessary).
80909
80910 2001-09-17  Paul Eggert  <eggert@twinsun.com>
80911
80912         * lib/strtoimax.c (HAVE_LONG_LONG):
80913         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
80914         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
80915         to work around bug in IBM C compiler.
80916
80917 2001-09-17  Jim Meyering  <meyering@lucent.com>
80918
80919         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
80920         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
80921         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
80922         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
80923         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
80924         whenever the right hand side need not be expanded by the shell.
80925
80926 2001-09-16  Paul Eggert  <eggert@twinsun.com>
80927
80928         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
80929         library.  It's not correct, as some older glibcs are buggy.
80930         fnmatch wasn't fixed until glibc 2.2.
80931
80932         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
80933         special shell magic here.
80934
80935 2001-09-16  Jim Meyering  <meyering@lucent.com>
80936
80937         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
80938         * m4/jm-macros.m4: Require it.
80939
80940 2001-09-16  Jim Meyering  <meyering@lucent.com>
80941
80942         * lib/mkdir.c: New file.
80943
80944 2001-09-15  Jim Meyering  <meyering@lucent.com>
80945
80946         * m4/jm-macros.m4: Check for help2man.
80947
80948 2001-09-11  Jim Meyering  <meyering@lucent.com>
80949
80950         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
80951         The body, by Paul Eggert, was moved here from configure.in.
80952         * m4/jm-macros.m4: Require UTILS_HOST_OS.
80953
80954 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80955
80956         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
80957         (jm_PREREQ): Use it.
80958
80959 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80960
80961         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
80962         Use ssize_t, not int, to store result of readlink.
80963         Check for ssize_t overflow as well as size_t overflow,
80964         as POSIX says the result of readlink is implementation-defined
80965         when ssize_t overflows.
80966         Remove unnecessary cast to char*.
80967         Use free+malloc instead of realloc, as the storage doesn't need
80968         to be preserved and it's clearer and can be more efficient that way.
80969         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
80970         * lib/xreadlink.h (xreadlink): Update prototype.
80971
80972 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80973
80974         * lib/xgetcwd.c: Revert some of the previous change; intead,
80975         fix the HAVE_GETCWD_NULL code to behave more like the
80976         !HAVE_GETCWD_NULL code used to.
80977
80978         Include "xalloc.h".
80979         (xgetcwd): Do not return NULL when memory is exhausted; instead,
80980         invoke xalloc_die.
80981
80982 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80983
80984         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
80985         sys/param.h, as pathmax.h includes them.
80986
80987 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80988
80989         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
80990         (jm_PREREQ_XGETCWD): New macro.
80991
80992         * m4/getcwd.m4: New file.
80993
80994 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80995
80996         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
80997         like the HAVE_GETCWD_NULL code.
80998         Include pathmax.h if not HAVE_GETCWD.
80999         Do not include xalloc.h.
81000         (INITIAL_BUFFER_SIZE): New symbol.
81001         Do not use xmalloc / xrealloc, since the caller is responsible for
81002         handling errors.  Preserve errno around `free' during failure.
81003         Do not overrun buffer when using getwd.
81004
81005 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81006
81007         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
81008         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
81009         getcwd (NULL, 0).
81010
81011 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81012
81013         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
81014         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
81015         spotted by Jim Meyering.
81016
81017 2001-09-03  Jim Meyering  <meyering@lucent.com>
81018
81019         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
81020         failure.
81021
81022 2001-09-02  Jim Meyering  <meyering@lucent.com>
81023
81024         * lib/error.c: Update from GNU libc.
81025
81026 2001-09-01  Jim Meyering  <meyering@lucent.com>
81027
81028         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
81029         Used by df.
81030
81031 2001-09-01  Jim Meyering  <meyering@lucent.com>
81032
81033         * lib/xreadlink.c: New file.
81034         * lib/xreadlink.h: New file.
81035         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
81036         xreadlink.h.
81037
81038         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
81039         doesn't conflict with sparc Solaris 7's definition in
81040         /usr/include/sys/int_types.h.
81041
81042         * lib/exclude.c: Use `""', not `<>' to #include non-system header
81043         files.
81044         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
81045         and strncasecmp as r-values.  Unixware didn't have declarations.
81046
81047 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81048
81049         * lib/xstrtol.h: Add copyright notice.
81050         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
81051         LONGINT_INVALID_SUFFIX_CHAR.
81052
81053 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81054
81055         * lib/xstrtol.c (strtoimax): New decl.
81056
81057 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81058
81059         * lib/xgetcwd.c: Don't include pathmax.h.
81060         Include stdlib.h and unistd.h if available.
81061         Include xalloc.h.
81062         (xmalloc, xstrdup, free): Remove decls.
81063         (xgetcwd): Don't assume sizes fit in unsigned.
81064         Check for overflow when computing sizes.
81065         Simplify reallocation code.
81066
81067 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81068
81069         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
81070         a directory's st_size can have an arbitrary value, so the old
81071         usage could waste an arbitrary amount of memory.  All uses
81072         changed.
81073         * lib/savedir.h: Update prototype.
81074
81075 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81076
81077         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
81078
81079         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
81080         old strtoimax.c.
81081
81082         Also, make the following further changes to make this file's
81083         configuration more similar to that of strtol.c:
81084         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
81085         (strtoumax, uintmax_t, strtoull, strtol): Remove.
81086         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
81087         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
81088         changed to signed values.
81089
81090         And make the following changes as well:
81091         Fix copyright notice, as 1999 was missing.
81092         (verify): New macro.
81093         (strtoimax): Check sizes at compile-time, not run-time.
81094         Prefer strtol to strtoll if both work.
81095         (main): Remove; it was not that useful and was a pain to maintain.
81096
81097         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
81098
81099 2001-08-31  Jim Meyering  <meyering@lucent.com>
81100
81101         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
81102         Use an initial, malloc'd, buffer of length 128 rather than
81103         a statically allocated one of length 1024.
81104
81105 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81106
81107         Simplify code, partly by assuming autoconf 2.52 semantics.
81108
81109         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
81110
81111         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
81112         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
81113         All uses removed.
81114         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
81115         Move AC_REQUIRE to next-to-top level, to avoid confusion.
81116         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
81117         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
81118         jm_AC_HEADER_INTTYPES_H.
81119         * m4/jm-macros.m4 (jm_MACROS): Likewise.
81120
81121         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
81122
81123         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81124         Quote first arg of AC_DEFUN.
81125         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
81126         since they are needed to parse the include file even if we need
81127         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
81128         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
81129         but with opposite signedness.
81130
81131 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81132
81133         Merge 'exclude' changes from tar 1.13.22.
81134         This fixes one or two unlikely storage allocation overflow bugs,
81135         but doesn't change user-visible behavior otherwise.
81136
81137 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81138
81139         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
81140         (jm_PREREQ_EXCLUDE): New macro.
81141
81142 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81143
81144         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
81145         tm to be declared.
81146
81147 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81148
81149         * lib/hash.c: Remove '2001' from copyright notice.
81150
81151 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81152
81153         * lib/full-write.h: New file.
81154         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
81155         * lib/full-write.c: Correct credits, as cccp.c no longer
81156         exists and anyway it was so heavily changed from the old cccp
81157         code as to be unrecognizable.  Include full-write.h.
81158         (full_write): Return size_t, with short writes meaning failure.
81159         All callers changed.  This fixes a bug with large buffers
81160         on 64-bit hosts.
81161         * lib/utime.c: Include full-write.h.
81162
81163 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81164
81165         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
81166         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
81167         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
81168         Include if available.
81169         (<xalloc.h>): Include
81170         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
81171         (verify): New macro.  Use it to verify that EXCLUDE macros do not
81172         collide with FNM macros.
81173         (struct patopts): New struct.
81174         (struct exclude): Use it, as exclude patterns now come with options.
81175         (new_exclude): Support above changes.
81176         (new_exclude, add_exclude_file):
81177         Initial size must now be a power of two to simplify overflow checking.
81178         (free_exclude, fnmatch_no_wildcards): New function.
81179         (excluded_filename): No longer requires options arg, as the options
81180         are determined by add_exclude.  Now returns bool, not int.
81181         (excluded_filename, add_exclude):
81182         Add support for the fancy new exclusion options.
81183         (add_exclude, add_exclude_file): Now takes int options arg.
81184         Check for arithmetic overflow when computing sizes.
81185         (add_exclude_file): xrealloc might modify errno, so don't
81186         realloc until after errno might be used.
81187
81188         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
81189         New macros.
81190         (free_exclude): New decl.
81191         (add_exclude, add_exclude_file): Now takes int options arg.
81192         (excluded_filename): No longer requires options arg, as the options
81193         are determined by add_exclude.  Now returns bool, not int.
81194
81195 2001-08-30  Paul Eggert  <eggert@twinsun.com>
81196
81197         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
81198
81199 2001-08-27  Jim Meyering  <meyering@lucent.com>
81200
81201         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
81202
81203         * lib/version-etc.c (N_): Remove definition.
81204         Revert most of last change.
81205         Instead, simply don't mark the `Copyright...' string for translation.
81206         Based on advice from Paul Eggert.
81207
81208         * lib/strtoxmax.c: Tweak comment.
81209
81210 2001-08-26  Jim Meyering  <meyering@lucent.com>
81211
81212         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
81213
81214         * m4/xstrtoimax.m4: New file.
81215         * m4/xstrtoumax.m4: Add comments explaining why we
81216         AC_REPLACE_FUNCS(strtol).
81217
81218 2001-08-26  Jim Meyering  <meyering@lucent.com>
81219
81220         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
81221         of copyright with `%s' so translators don't get an untranslated
81222         message in 2002.
81223         (COPYRIGHT_YEAR): Define.
81224         (version_etc): Use fprintf rather than fputs.
81225         Suggestion from Ulrich Drepper.
81226
81227         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
81228
81229         * lib/strtoll.c: New file, from GNU libc.
81230         * lib/xstrtoimax.c: New file.
81231
81232         * lib/xstrtol.h: Add xstrtoimax.
81233         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
81234         * lib/strtoimax.c: New file.  Likewise, but first define
81235         STRTOUXMAX_SIGNED.
81236
81237         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
81238         ...
81239         * lib/strtoxmax.c: ... then renamed to this.
81240
81241 2001-08-18  Paul Eggert  <eggert@twinsun.com>
81242
81243         * m4/inttypes.m4: Add AC_PREREQ(2.13).
81244         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
81245         (jm_AC_TYPE_INTMAX_T): New macro.
81246         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
81247
81248         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
81249
81250         * m4/longlong.m4: Renamed from ulonglong.m4.
81251         * m4/inttypes.m4: Renamed from inttypes_h.m4.
81252         * m4/uintmax_t.m4: Removed.
81253
81254 2001-08-13  Paul Eggert  <eggert@twinsun.com>
81255
81256         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
81257         Port to Solaris 8, where 'sed' requires a space after the 'r'
81258         command, and where sh dislikes "$/".  Clean up the spacing a bit.
81259         Redirect output to $tmp just once.
81260
81261 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
81262
81263         * lib/addext.c (<errno.h>): Include.
81264         (errno): Declare if not defined.
81265         (addext): Work correctly when pathconf returns -1 and leaves
81266         errno alone because there is no limit.  Also, work even if
81267         pathconf returns a value greater than SIZE_MAX.
81268
81269 2001-08-12  Jim Meyering  <meyering@lucent.com>
81270
81271         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
81272         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
81273         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
81274         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
81275         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
81276         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
81277         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
81278         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
81279         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
81280         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
81281         utime.m4, utimes.m4, xstrtoumax.m4:
81282         Quote the first argument in each use of AC_DEFUN.
81283
81284 2001-08-12  Jim Meyering  <meyering@lucent.com>
81285
81286         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
81287         Simply `return getcwd (NULL, 0);'.
81288         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
81289         Use 1300 as initial value for length, not PATH_MAX.
81290
81291         * lib/pathmax.h: Clean up cpp syntax.
81292
81293 2001-08-12  Jim Meyering  <meyering@lucent.com>
81294
81295         * lib/gettimeofday.c: New file.
81296         * lib/gtod.h: New file.
81297         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
81298
81299 2001-08-05  Jim Meyering  <meyering@lucent.com>
81300
81301         * m4/jm-macros.m4: Require autoconf-2.52.
81302
81303 2001-08-04  Jim Meyering  <meyering@lucent.com>
81304
81305         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
81306         stmt, to get in sync with glibc.
81307
81308 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81309
81310         The following changes are from gettext 0.10.39 as maintained by
81311         Bruno Haible.
81312
81313         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81314         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81315         with inverted sense.  All uses changed.
81316
81317         * lib/mbswidth.c: Don't include <limits.h>.
81318         Include <stdlib.h> and <string.h> unconditionally.
81319         (iswcntrl, mbsinit, ISCNTRL): New macros.
81320         (mbsnwidth): Use K&R style function declarations.
81321         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81322         can optimize it when MB_CUR_MAX == 1.
81323         The width of control characters is zero, not 1.
81324
81325 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81326
81327         The following changes are from gettext 0.10.39 as maintained by
81328         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81329
81330         * m4/codeset.m4: Upgrade to serial AM1.
81331         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81332         all uses changed.  Quote first arg of AC_DEFUN.
81333         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81334
81335         * m4/iconv.m4: Upgrade to serial AM2.
81336         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81337         Add --with-libconv-prefix.
81338         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81339         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81340         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81341         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81342         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81343
81344         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81345         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81346         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81347         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81348         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81349         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81350         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81351         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81352         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81353
81354         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81355         string.h any more.
81356
81357         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81358         not the default value.
81359
81360         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81361         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81362         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81363         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81364         Also check for iswcntrl, used for wcwidth fallback.
81365         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81366         to Autoconf 2.13.
81367
81368 2001-08-03  Jim Meyering  <meyering@lucent.com>
81369
81370         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81371         as it was in the original.  Reported by Paul Eggert.
81372
81373 2001-07-16  Jim Meyering  <meyering@lucent.com>
81374
81375         * m4/gettimeofday.m4: New file.
81376         Prompted by a report from Bernhard Baehr.
81377
81378 2001-07-15  Jim Meyering  <meyering@lucent.com>
81379
81380         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81381         stuff. Now it's in ../Makefile.cfg.
81382
81383 2001-07-15  Jim Meyering  <meyering@lucent.com>
81384
81385         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81386         (BUILT_SOURCES): Add unlocked-io.h.
81387         (io_functions): Define.
81388         (unlocked-io.h): New rule.
81389         (DISTCLEANFILES): Add unlocked-io.h.
81390         (all-local): Depend on unlocked-io.h, to ensure it is created.
81391
81392         * lib/unlocked-io.hin: New file
81393
81394         * lib/regex.c: Update from glibc.
81395
81396 2001-07-05  Jim Meyering  <meyering@lucent.com>
81397
81398         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81399         recommendation.
81400         (libfetish_a_SOURCES): Put all .h files here instead.
81401         Remove a thus-exposed (better checks in automake) duplicate and
81402         two unnecessary .h files.
81403
81404 2001-07-04  Jim Meyering  <meyering@lucent.com>
81405
81406         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81407         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81408         distcheck failure.
81409
81410 2001-07-02  Jim Meyering  <meyering@lucent.com>
81411
81412         The following changes were prompted by suggestions from Bruno Haible.
81413
81414         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81415         is now generated.
81416         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81417         definition of EXTRA_DIST.
81418         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81419         ensure that the generated file is created/updated whenever the list
81420         of $(unlocked_functions) is changed.
81421         (jm-glibc-io.m4): New rule.
81422         (unlocked-io.h): New rule -- currently unused.
81423
81424 2001-06-24  Jim Meyering  <meyering@lucent.com>
81425
81426         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81427         unmatched right bracket, rather than kludging it with an extra,
81428         falsely-matching quote in a comment.  Patch by Akim Demaille.
81429
81430 2001-06-11  Jim Meyering  <meyering@lucent.com>
81431
81432         * lib/regex.c: Update from GNU libc.
81433
81434 2001-05-27  Jim Meyering  <meyering@lucent.com>
81435
81436         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81437         Check for ut_type in struct utmp.
81438
81439 2001-05-27  Jim Meyering  <meyering@lucent.com>
81440
81441         * lib/readutmp.h (UT_TYPE): Define.
81442
81443 2001-05-24  Jim Meyering  <meyering@lucent.com>
81444
81445         * lib/argmatch.c: Include "quote.h".
81446         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81447         quote function.  Reported by Göran Uddeborg.
81448
81449 2001-05-22  Jim Meyering  <meyering@lucent.com>
81450
81451         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81452         now that we use the package-supplied version unconditionally.
81453         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81454
81455 2001-05-21  Jim Meyering  <meyering@lucent.com>
81456
81457         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81458         shell syntax errors.
81459
81460 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81461
81462         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81463
81464 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81465
81466         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81467         Don't bother to check library strftime, since
81468         we'll be using our own my_strftime function anyway.
81469         Define my_strftime instead of strftime.
81470
81471 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81472
81473         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81474         which is not yet declared.
81475
81476 2001-05-15  Jim Meyering  <meyering@lucent.com>
81477
81478         * m4/regex.m4: Use proper quoting so brackets appear in the test
81479         program.
81480         Reported by, and with help from, Bruno Haible.
81481
81482 2001-05-13  Jim Meyering  <meyering@lucent.com>
81483
81484         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81485         undefined.
81486
81487 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81488
81489         dirname code cleanup.  base_name now behaves more compatibly
81490         with POSIX basename when given file names that have trailing
81491         slashes, and similarly for dir_name.  Add new primitives
81492         base_len and dir_len.  Put the directory-name-related decls
81493         into dirname.h.
81494
81495         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81496         * lib/backupfile.c (base_name): Likewise.
81497         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81498         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81499         * lib/makepath.c (strip_trailing_slashes): Likewise.
81500         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81501         ISSLASH): Likewise.
81502         * lib/rename.c (strip_trailing_slashes): Likewise.
81503         * lib/same.c (base_name): Likewise.
81504         * lib/stripslash.c (ISSLASH): Likewise.
81505
81506         * lib/addext.c: Include <dirname.h> after size_t is defined.
81507         * lib/backupfile.c: Likewise.
81508
81509         * lib/addext.c (addext): Use base_len to trim redundant
81510         trailing slashes instead of doing it ourselves.
81511         But do not trim the last slash if it is not redundant.
81512
81513         * lib/backupfile.c (find_backup_file_name,
81514         max_backup_version): Use base_len instead of rolling it ourselves.
81515         Handle the case of "" and (on DOS) "C:" correctly.
81516
81517         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81518         needed. Include <string.h>, <dirname.h>.
81519         (base_name): Allow file names ending in slashes, other than names
81520         that are all slashes.  In this case, return the basename followed
81521         by the slashes.  This is more general, and can be used in places
81522         where the original base_name purposely had an assertion failure.
81523         (base_len): New function.
81524
81525         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81526         Do not include <assert.h>; no longer needed.
81527         Include xalloc.h.
81528         (memrchr): Remove decl.
81529         (dir_name_r): Remove.
81530         (dir_len): Renamed from dirlen.  All callers changed.
81531         Rewrite in terms of base_name, for simplicity and consistency.
81532         (dir_name): Never return NULL.  All callers changed.
81533         Do not include <stdlib.h> in test program; no longer needed.
81534         return 0; is fine for test program.
81535
81536         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
81537         New macros.
81538         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
81539
81540         * lib/path-concat.c (path_concat): Use base_len to compute
81541         base length, not strlen; this means we cannot rely on memcpy
81542         to null-terminate.
81543
81544         * lib/same.c (STREQ): Remove.
81545         (same_name): Handle the case where the basename ends in trailing '/'.
81546
81547         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
81548         a slash was stripped.  Do not strip the last slash after a
81549         file system prefix.
81550
81551 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81552
81553         * lib/Makefile.am (libfetish_a_SOURCES):
81554         Add strftime.c, since we now compile it on all hosts.
81555
81556         * lib/strftime.c (my_strftime):
81557         Define to nstrftime if emacs, but only if my_strftime is not defined.
81558         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
81559         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
81560         Add one more extra argument: a nanoseconds value.
81561         All uses changed.
81562         (ns): New macro.
81563         (my_strftime function): Add %N format.
81564         (emacs_strftimeu): Renamed from emacs_strftime,
81565         with extra ut argument.
81566
81567 2001-05-09  Paul Eggert  <eggert@twinsun.com>
81568
81569         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
81570
81571 2001-04-21  Jim Meyering  <meyering@lucent.com>
81572
81573         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
81574         doesn't interfere.
81575
81576 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81577
81578         * m4/ftruncate.m4: Check for chsize.
81579         Link with ftruncate.o unconditionally if ftruncate is missing.
81580         This was required when cross-compiling to i586-mingw32msvc.
81581
81582 2001-04-08  Jim Meyering  <meyering@lucent.com>
81583
81584         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
81585         recomputed; that's necessary when the offset spans a DST transition.
81586         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
81587
81588 2001-04-02  Jim Meyering  <meyering@lucent.com>
81589
81590         * lib/regex.h, regex.c: Update from GNU libc.
81591
81592 2001-03-24  Jim Meyering  <meyering@lucent.com>
81593
81594         * m4/jm-macros.m4: Require autoconf-2.49d.
81595
81596 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
81597
81598         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
81599
81600 2001-03-19  Paul Eggert  <eggert@twinsun.com>
81601
81602         * lib/version-etc.c (version_etc_copyright): Update to 2001.
81603
81604 2001-03-17  Jim Meyering  <meyering@lucent.com>
81605
81606         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
81607         now that the version in autoconf is equivalent.
81608         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
81609
81610         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
81611         Suggestion from Akim Demaille.
81612
81613         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
81614         (jm_PREREQ_TEMPNAME): New function.
81615
81616 2001-03-16  Paul Eggert  <eggert@twinsun.com>
81617
81618         * lib/tempname.c (uint64_t): Define to uintmax_t if
81619         not defined, and if UINT64_MAX is not defined.
81620         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81621         Reported by John David Anglin.
81622
81623 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81624
81625         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81626         resolve alias if codeset is empty.
81627         * lib/config.charset (BeOS): Use wildcard syntax.
81628
81629 2001-03-13  Jim Meyering  <meyering@lucent.com>
81630
81631         * lib/path-concat.c (path_concat)
81632         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81633         concatenating e.g., `C:' and `foo'.
81634         From Bruno Haible.
81635
81636 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81637
81638         * lib/localcharset.c (locale_charset): Don't use
81639         setlocale(LC_CTYPE,NULL). Don't return NULL.
81640         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81641
81642 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81643
81644         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81645         support for DOS/DJGPP.
81646
81647 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81648
81649         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81650         lacks mkstemp.  Compile our own tempname.c if we compile our own
81651         mkstemp.c, as mkstemp relies on tempname.
81652
81653 2001-03-01  Jim Meyering  <meyering@lucent.com>
81654
81655         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81656         AH_VERBATIM really does output its argument verbatim.
81657
81658 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81659
81660         * lib/Makefile.am (libfetish_a_SOURCES):
81661         Add dup-safer.c, fopen-safer.c.
81662         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81663
81664         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81665         * lib/unistd-safer.h: New files.
81666
81667 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81668
81669         The mkstemp replacement is taken from glibc 2.2.2, with some
81670         portability fixes for use outside glibc, as follows:
81671
81672         * lib/tempname.c (struct_stat64): New macro.
81673         (direxists, __gen_tempname): Use it.
81674         This avoids a portability problem with Solaris 8.
81675
81676         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81677         (<stddef.h>, <stdint.h>, <string.h>):
81678         Include only if STDC_HEADERS || _LIBC.
81679         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81680         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81681         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81682         (__set_errno): Define this macro if <errno.h> doesn't.
81683         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81684         Define these macros if <stdio.h> doesn't.
81685         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81686         Define these macros if <sys/stat.h>
81687         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81688         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81689         __xstat64): Define if not _LIBC.
81690         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81691         (__gen_tempname): Invoke gettimeofday only if
81692         HAVE_GETTIMEOFDAY || _LIBC;
81693         otherwise, fall back on plain "time".
81694         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
81695
81696         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
81697
81698         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
81699
81700 2001-02-18  Paul Eggert  <eggert@twinsun.com>
81701
81702         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
81703
81704 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81705
81706         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
81707         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
81708         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
81709         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81710
81711 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81712
81713         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
81714         Remove workaround macros for hosts that have mbrtowc but not
81715         mbstate_t, as we now insist on proper declarations for both
81716         before using mbrtowc.
81717
81718 2001-02-17  Jim Meyering  <meyering@lucent.com>
81719
81720         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
81721         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
81722         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
81723         UnixWare 7.1.1.
81724
81725         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
81726         rather than AC_CACHE_VAL.
81727
81728 2001-02-17  Jim Meyering  <meyering@lucent.com>
81729
81730         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
81731         around included file name.
81732
81733         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
81734
81735         * lib/strftime.c: Update from GNU libc (the only changes were to
81736         comments).
81737
81738 2001-02-17  Jim Meyering  <meyering@lucent.com>
81739
81740         * lib/regex.c: Update from libc.
81741
81742 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
81743
81744         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
81745         clash.
81746
81747 2001-02-16  Paul Eggert  <eggert@twinsun.com>
81748
81749         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
81750         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
81751         Reported by Mark Hounschell via Paul Eggert.
81752
81753 2001-02-07  Jim Meyering  <meyering@lucent.com>
81754
81755         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
81756
81757 2001-02-05  Jim Meyering  <meyering@lucent.com>
81758
81759         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
81760         it includes the patch required for `large file' support with at least
81761         HP-UX's 10.20 /bin/cc.
81762
81763 2001-02-03  Jim Meyering  <meyering@lucent.com>
81764
81765         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
81766         AS_IF, now that it works once again (mysteriously).
81767         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81768
81769 2001-01-30  Jim Meyering  <meyering@lucent.com>
81770
81771         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
81772         * m4/chown.m4: Rename conftestchown to conftest.chown.
81773         * m4/rename.m4: s/conftestdir/conftest.d1/ and
81774         s/conftestdir2/conftest.d2/.
81775         * m4/utimes.m4: s/conftestdata/conftest.data/
81776         Inspired by Pavel Roskin's change in autoconf.
81777
81778 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
81779
81780         * lib/config.charset: Update for FreeBSD 4.2.
81781
81782 2001-01-27  Jim Meyering  <meyering@lucent.com>
81783
81784         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
81785         a use of AS_IF.
81786         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81787
81788 2001-01-26  Jim Meyering  <meyering@lucent.com>
81789
81790         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
81791         quotearg.c includes it.
81792
81793 2001-01-26  Jim Meyering  <meyering@lucent.com>
81794
81795         * lib/quotearg.c: Include stddef.h.
81796         * lib/quote.c: Include stddef.h.
81797         Reported by Axel Kittenberger.
81798
81799         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
81800         line in double quotes so that it evokes a better diagnostic.
81801         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
81802         Reported by Axel Kittenberger.
81803
81804 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
81805
81806         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
81807         as if it was a `charset'.
81808
81809 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81810
81811         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
81812         has const.
81813
81814 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81815
81816         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
81817         to avoid a warning.  Add back 'const' to inptr.
81818
81819 2001-01-20  Jim Meyering  <meyering@lucent.com>
81820
81821         Be sure that headers are checked before used in code compiled
81822         for the type checks.
81823         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
81824         In place of that, invoke jm_CHECK_ALL_TYPES.
81825         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
81826         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
81827         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
81828         The check for ssize_t was mistakenly run before the test for unistd.h.
81829
81830         The configure-time check for stdbool.h was missing.
81831         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
81832         (jm_PREREQ_HASH): New function.
81833
81834 2001-01-17  Jim Meyering  <meyering@lucent.com>
81835
81836         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
81837         for autoconf-2.49c.
81838         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
81839
81840 2001-01-16  Jim Meyering  <meyering@lucent.com>
81841
81842         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
81843         From Bruno Haible.
81844
81845 2001-01-14  Jim Meyering  <meyering@lucent.com>
81846
81847         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
81848         foo and bar.  Create conftestdir/ in the script, not in the C code.
81849         Remove directories in the script, not in the C code.
81850         Remove conftestdir{,2} before trying to create the directory.
81851         Make the entire configure script fail if the mkdir fails.
81852
81853 2001-01-14  Jim Meyering  <meyering@lucent.com>
81854
81855         * lib/rename.c: New file.  From Volker Borchert.
81856         Include stdlib.h, string.h or strings.h, and xalloc.h.
81857         Use strip_trailing_slashes rather than open-coding it.
81858
81859 2001-01-03  Paul Eggert  <eggert@twinsun.com>
81860
81861         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
81862
81863 2001-01-03  Jim Meyering  <meyering@lucent.com>
81864
81865         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
81866         of local `inptr' to avoid warning with some system declarations of
81867         iconv.
81868
81869 2001-01-02  Volker Borchert  <bt@teknon.de>
81870
81871         * m4/rename.m4: New file.
81872         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
81873
81874 2001-01-01  Jim Meyering  <meyering@lucent.com>
81875
81876         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
81877         even on systems with utmpx.h.  It's necessary for the declaration of
81878         utmp's ut_user member.  Reported by Andreas Jaeger.
81879
81880         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
81881         available. They are required for the declarations of getgrgid and
81882         getpwuid resp.
81883         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
81884         Reported by Andreas Jaeger.
81885
81886 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
81887
81888         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
81889         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
81890         so `make install' also works in VPATH builds.
81891
81892 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
81893
81894         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
81895         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
81896         can be used in subdirectories.
81897
81898 2000-12-29  Paul Eggert  <eggert@twinsun.com>
81899
81900         * lib/modechange.c: Do not assume that mode_t uses the
81901         traditional octal encoding.  E.g. "chmod 1 FOO" should set
81902         the other-execute bit of FOO even if S_IXOTH != 1.
81903
81904         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
81905         WOTH, XOTH, ALLM): New macros.
81906         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
81907          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
81908         Use them.
81909         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
81910         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
81911         (mode_compile):
81912         No need to use uintmax_t; unsigned long is long enough.
81913         Don't bother to get suffix since we don't use it.
81914
81915 2000-12-26  Jim Meyering  <meyering@lucent.com>
81916
81917         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
81918         better with autoheader.
81919
81920 2000-12-24  Jim Meyering  <meyering@lucent.com>
81921
81922         * lib/hash.c (is_prime): Return explicit boolean values.
81923         (hash_get_first): Return NULL to appease Irix5.6's 89.
81924         Reported by Nelson Beebe.
81925
81926 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
81927
81928         * lib/localcharset.c (locale_charset): Add support for Win32.
81929
81930 2000-12-18  Paul Eggert  <eggert@twinsun.com>
81931
81932         * lib/physmem.h, lib/physmem.c: New files.
81933
81934         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
81935         (noinst_HEADERS): Add physmem.h.
81936
81937         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
81938         't' for compatibility with Solaris 8 sort.
81939
81940 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
81941
81942         * lib/config.charset: Add support for BeOS.
81943
81944 2000-12-17  Jim Meyering  <meyering@lucent.com>
81945
81946         * m4/dos.m4 (jm_AC_DOS): New file and macro.
81947         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
81948
81949 2000-12-16  Jim Meyering  <meyering@lucent.com>
81950
81951         This bug had a serious impact on chown: `chown N:M FILE' (for integer
81952         N and M) would have treated it like `chown N:N FILE'.
81953
81954         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
81955
81956 2000-12-16  Jim Meyering  <meyering@lucent.com>
81957
81958         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
81959         SHELLS_FILE to a file name that's useful on djgpp systems.
81960         Include stdlib.h.
81961         (ADDITIONAL_DEFAULT_SHELLS): Define.
81962         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
81963         Based mostly on a patch from Prashant TR.
81964
81965 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
81966
81967         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
81968         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
81969         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
81970
81971 2000-12-08  Andreas Schwab  <schwab@suse.de>
81972
81973         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
81974         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
81975
81976 2000-12-07  Jim Meyering  <meyering@lucent.com>
81977
81978         * lib/stripslash.c (ISSLASH): Define.
81979         (strip_trailing_slashes): Use ISSLASH rather than comparing against
81980         `/'.
81981         From Prashant TR.
81982
81983         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
81984         (dir_name_r): Declare this function as static.
81985         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
81986         manifest itself on a name containing a mix of slashes and
81987         backslashes.
81988         Make this function work with names starting with a DOS-style
81989         drive letter and colon prefix.
81990         (dir_name): Append `.' if necessary.
81991         Based mostly on patches from Prashant TR and Eli Zaretskii.
81992
81993         * lib/dirname.h (dir_name_r): Remove prototype.
81994
81995 2000-12-06  Paul Eggert  <eggert@twinsun.com>
81996
81997         * m4/off_t-format.m4: Remove this file.
81998         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
81999
82000 2000-12-06  Jim Meyering  <meyering@lucent.com>
82001
82002         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
82003         replacement strtoull, we may well need the replacement strtoul, too.
82004         Check for declarations of strtoul and strtoull.
82005         Check for strtol.  Mainly as a cue to cause automake to include
82006         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
82007         Check for limits.h -- strtol.c needs it.
82008
82009 2000-12-05  Jim Meyering  <meyering@lucent.com>
82010
82011         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
82012
82013 2000-12-04  Jim Meyering  <meyering@lucent.com>
82014
82015         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
82016         Also include memory.h, stdlib.h, unistd.h if appropriate.
82017         Reported by Andreas Jaeger (conflicting declaration of malloc).
82018
82019 2000-12-02  Jim Meyering  <meyering@lucent.com>
82020
82021         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
82022         * m4/jm-macros.m4 (jm_MACROS): require it.
82023
82024 2000-12-02  Jim Meyering  <meyering@lucent.com>
82025
82026         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
82027
82028 2000-12-01  Paul Eggert  <eggert@twinsun.com>
82029
82030         * lib/memrchr.c: Include <config.h> before any system include file.
82031
82032 2000-11-30  Jim Meyering  <meyering@lucent.com>
82033
82034         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
82035
82036 2000-11-30  Jim Meyering  <meyering@lucent.com>
82037
82038         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
82039
82040 2000-11-29  Paul Eggert  <eggert@twinsun.com>
82041
82042         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
82043
82044 2000-11-26  Jim Meyering  <meyering@lucent.com>
82045
82046         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
82047
82048 2000-11-22  Paul Eggert  <eggert@twinsun.com>
82049
82050         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
82051         size of (size_t) -1; it's not portable.
82052
82053 2000-11-17  Jim Meyering  <meyering@lucent.com>
82054
82055         * lib/strstr.c: Update from GNU libc.
82056
82057 2000-11-17  Akim Demaille  <akim@epita.fr>
82058
82059         * lib/obstack.h: Formatting changes.
82060         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
82061         prevent type checking.
82062         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
82063         cast the value to (void *): assigning a `foo *' to a `void *'
82064         variable is valid.
82065         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
82066
82067 2000-11-16  Jim Meyering  <meyering@lucent.com>
82068
82069         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
82070
82071 2000-11-11  Jim Meyering  <meyering@lucent.com>
82072
82073         * lib/error.c: Add a couple #includes, merging from GNU libc version.
82074
82075 2000-11-10  Jim Meyering  <meyering@lucent.com>
82076
82077         * lib/obstack.h: Update from GNU libc.
82078         * lib/obstack.c: Likewise.
82079
82080 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
82081
82082         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
82083
82084 2000-11-06  Paul Eggert  <eggert@twinsun.com>
82085
82086         * lib/getusershell.c (setusershell): Use rewind rather than
82087         fseek/fseeko, to avoid configuration hassles with fseeko.
82088         Don't bother opening SHELLS_FILE if shellstream is NULL;
82089         it's not necessary.
82090
82091 2000-11-05  Jim Meyering  <meyering@lucent.com>
82092
82093         * lib/makepath.h (make_dir): Declare.
82094         * lib/makepath.c (make_dir): Remove `static' attribute.
82095         Tweak a comment.
82096
82097 2000-11-04  Jim Meyering  <meyering@lucent.com>
82098
82099         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
82100
82101 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
82102
82103         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
82104         last one in a bucket, advance to the next bucket.
82105
82106 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
82107
82108         * lib/fnmatch.c: Do not comment out all the code if we are using
82109         the GNU C library, because in some cases we are replacing buggy
82110         code in the GNU C library itself.
82111
82112 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
82113
82114         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
82115         (regex_compile): Catch bogus \(\1\).
82116
82117 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82118
82119         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
82120         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
82121         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
82122
82123 2000-10-30  Paul Eggert  <eggert@twinsun.com>
82124
82125         * lib/error.h, getline.h, modechange.h:
82126         Remove "2000" from Copyright line, as the file hasn't been
82127         changed this year other than in the copyright notice.
82128
82129         * lib/xalloc.h: Add "2000" to Copyright line, as this file
82130         was changed this year.
82131
82132 2000-10-29  Jim Meyering  <meyering@lucent.com>
82133
82134         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
82135         renaming.
82136         * m4/ls-mntd-fs.m4: Likewise
82137
82138 2000-10-29  Jim Meyering  <meyering@lucent.com>
82139
82140         * lib/xstat.in: Fix grammar in comment.
82141
82142 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
82143
82144         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
82145         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
82146         doesn't define __restrict_arr.
82147
82148 2000-10-28  Jim Meyering  <meyering@lucent.com>
82149
82150         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
82151         (jm_PREREQ_MEMCHR): New function.
82152
82153 2000-10-28  Jim Meyering  <meyering@lucent.com>
82154
82155         * lib/memchr.c: Update from libc.
82156         Adjust for portability:
82157         [HAVE_STDLIB_H]: Include stdlib.h.
82158         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
82159         Undef __memchr, too.
82160         [!weak_alias]: Define __memchr to memchr.
82161
82162         * lib/regex.c: Update from libc.
82163         * lib/regex.h: Likewise.
82164         * lib/getopt1.c: Likewise.
82165         * lib/memcmp.c: Likewise.
82166
82167         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
82168         Avoid using fseek, when possible -- it's broken by design.
82169         Patch by Ulrich Drepper.
82170
82171 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
82172
82173         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
82174         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
82175         Giving in to popular pressure to shut up the compiler with casts.
82176
82177 2000-10-26  Jim Meyering  <meyering@lucent.com>
82178
82179         * lib/strftime.c: Update from libc.
82180
82181 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
82182
82183         * regex.c: More `unsigned char' -> `re_char' changes.
82184         Also change several `int' into `re_wchar_t'.
82185         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
82186         (PUSH_FAILURE_POINTER): Don't cast any more.
82187         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
82188         We want GCC to complain, since this piece of code makes
82189         re_match non-reentrant, which *should* be fixed.
82190         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
82191         (EXTEND_BUFFER): Use RETALLOC.
82192         (SET_LIST_BIT): Don't cast.
82193         (re_wchar_t): New type.
82194         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
82195         that those two functions will always properly return.
82196         (IMMEDIATE_QUIT_CHECK): Cast to void.
82197         (analyse_first): Use recursion rather than an explicit stack.
82198         (re_compile_fastmap): Can't fail anymore.
82199         (re_search_2): Don't check re_compile_fastmap for failure.
82200         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
82201         Now also sets the new value (passed in a new argument).
82202         (re_match_2_internal): Use it.
82203         Also, use a new var `reg' of type size_t when looping through regs
82204         rather than reuse the inappropriate `mcnt'.
82205
82206 2000-10-25  Jim Meyering  <meyering@lucent.com>
82207
82208         * lib/obstack.c: Update from libc.
82209
82210 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
82211
82212         * regex.c (regex_compile): Change the way of handling a range from
82213         a char less than 256 to a char not less than 256.
82214
82215 2000-10-24  Andrew Innes  <andrewi@gnu.org>
82216
82217         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
82218         NT-Emacs only.
82219         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
82220         so that re_search functions only quit when callers expect them to.
82221
82222 2000-10-23  Jim Meyering  <meyering@lucent.com>
82223
82224         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
82225         wrong.  That set_locale call must not have any side effects.
82226         From Paul Eggert.
82227
82228 2000-10-22  Jim Meyering  <meyering@lucent.com>
82229
82230         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
82231         [CYCLIC]: Remove now-unused definition.
82232
82233         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
82234         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
82235         Suggestion from Ulrich Drepper.
82236
82237 2000-10-21  Jim Meyering  <meyering@lucent.com>
82238
82239         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
82240         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
82241         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
82242
82243 2000-10-21  Jim Meyering  <meyering@lucent.com>
82244
82245         * lib/dirname.c (memrchr): Declare if necessary.
82246         (dir_name): Remove the restriction that there be no
82247         trailing slashes.  Now, this code skips past them, effectively
82248         ignoring them.
82249         [TEST_DIRNAME] (main): New unit tests.
82250
82251         * lib/memrchr.c: New file from GNU libc.
82252         Undef __memrchr, too.
82253         [!weak_alias]: Define __memrchr to memrchr.
82254         Guard weak_alias use with `#ifdef weak_alias'.
82255
82256 2000-10-21  Jim Meyering  <meyering@lucent.com>
82257
82258         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
82259         (dir_name): Use dir_name_r.
82260         * lib/dirname.h (dir_name_r): Declare it.
82261
82262 2000-10-17  Jim Meyering  <meyering@lucent.com>
82263
82264         * lib/quote.h (PARAMS): Define and use.
82265         Reported by Akim Demaille.
82266
82267         * lib/getopt.c: Update from libc.
82268
82269 2000-10-16  Jim Meyering  <meyering@lucent.com>
82270
82271         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
82272         setlocale.
82273         From Jan Fedak.
82274
82275 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
82276
82277         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
82278
82279 2000-09-25  Jim Meyering  <meyering@lucent.com>
82280
82281         * lib/md5.h (rol): Define (from GnuPG).
82282
82283         * lib/sha.c: Give credit (GnuPG) where due.
82284         (M): Use rol rather than open-coding it.
82285         Add a FIXME comment.
82286
82287 2000-09-21  Jim Meyering  <meyering@lucent.com>
82288
82289         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
82290         Reported by Michael Stone.
82291
82292 2000-09-20  Jim Meyering  <meyering@lucent.com>
82293
82294         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
82295         (noinst_HEADERS): Add sha.h.
82296         Based on code from Scott G. Miller and from GnuPG.
82297
82298 2000-09-18  Jim Meyering  <meyering@lucent.com>
82299
82300         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
82301         LIBS. Otherwise, everyone ends up linking with -lelf for some
82302         configurations.
82303         Reported by Mike Stone.
82304
82305 2000-09-15  Jim Meyering  <meyering@lucent.com>
82306
82307         * lib/regex.c: Update from libc.
82308
82309 2000-09-10  Jim Meyering  <meyering@lucent.com>
82310
82311         * lib/getopt.c (_getopt_internal): Update from glibc.
82312
82313 2000-09-09  Jim Meyering  <meyering@lucent.com>
82314
82315         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82316         think it should be used as a general replacement for isascii.
82317         * lib/fnmatch.c: Likewise.
82318         * lib/mbswidth.c: Likewise
82319         * lib/regex.c: Likewise.
82320
82321         Don't use atoi.
82322         * lib/userspec.c: Include sys/param.h and limits.h.
82323         Include xstrtol.h.
82324         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82325         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82326         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82327         UID, GID.  Check range.
82328
82329 2000-09-06  Jim Meyering  <meyering@lucent.com>
82330
82331         * lib/getopt.c (_getopt_internal): Update from glibc.
82332
82333 2000-08-30  Jim Meyering  <meyering@lucent.com>
82334
82335         * lib/strftime.c: Merge in changes from GNU libc.
82336
82337 2000-08-26  Jim Meyering  <meyering@lucent.com>
82338
82339         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82340         * m4/fpending.m4: New file.
82341
82342 2000-08-26  Jim Meyering  <meyering@lucent.com>
82343
82344         * lib/closeout.c: Include "__fpending.h".
82345         (close_stdout_status): Return right away if there's nothing to flush.
82346
82347         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82348         * lib/__fpending.c: New file.
82349         * lib/__fpending.h: New file.
82350
82351 2000-08-20  Jim Meyering  <meyering@lucent.com>
82352
82353         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82354         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82355         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82356
82357 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82358
82359         Improve fileutils installation on systems where running
82360         programs (like install) can't be unlinked.
82361         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82362         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82363
82364 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82365
82366         Standardize on "memory exhausted" instead of "Memory exhausted"
82367         or "virtual memory exhausted".
82368         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82369         "virtual memory exhausted".
82370         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82371         our own message.
82372         * lib/userspec.c (parse_user_spec): Likewise.
82373         * lib/bumpalloc.h: comment fix
82374         * lib/same.c, userspec.c: Include xalloc.h.
82375
82376         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82377         not char *const and pointing to a constant array.
82378         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82379         (xrealloc): Comment fix.
82380
82381         * lib/userspec.c (parse_user_spec):
82382         Don't translate a message until just before returning,
82383         to avoid unnecessary translation.
82384
82385 2000-08-07  Jim Meyering  <meyering@lucent.com>
82386
82387         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82388         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82389         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82390         getgroups.c, gethostname.c, getopt.h, group-member.c,
82391         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82392         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82393         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82394         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82395         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82396         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82397         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82398         yesno.c: Back out Copyright date changes for each file with no change
82399         this year.  This eases coordination with other programs using the same
82400         source code modules.  From Paul Eggert.
82401
82402 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82403
82404         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82405         not char, for compatibility with glibc 2.1.3 strftime.c.
82406
82407 2000-08-03  Greg McGary  <greg@mcgary.org>
82408
82409         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82410         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82411         (EXTEND_BUFFER): Use them.
82412
82413 2000-08-01  Jim Meyering  <meyering@lucent.com>
82414
82415         * lib/dirname.c (ISSLASH): Define.
82416         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82417         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82418         both `\' and `/' may be use as path separators.
82419         Based on a patch from Prashant TR.
82420
82421 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82422
82423         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82424         slot vector a constant, since it might get modified.
82425
82426 2000-07-31  Jim Meyering  <meyering@lucent.com>
82427
82428         * lib/xmalloc.c: Use `virtual memory exhausted', not
82429         `Memory exhausted'.
82430         * lib/obstack.c (print_and_abort): Likewise.
82431
82432 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82433
82434         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82435         buffer, so that the caller can always quote one small
82436         component of a "memory exhausted" message in slot 0.
82437         From a suggestion by Jim Meyering.
82438
82439 2000-07-30  Jim Meyering  <meyering@lucent.com>
82440
82441         * lib/makepath.c (make_path): Quote the other instance, too.
82442
82443         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82444         (STATIC_BUF_SIZE): Define.
82445         (quotearg_n_options): Use only statically allocated storage when
82446         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82447         than STATIC_BUF_SIZE.
82448
82449 2000-07-29  Jim Meyering  <meyering@lucent.com>
82450
82451         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82452         * lib/dirname.c (dir_name): Likewise.
82453
82454         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82455         `/'.
82456
82457         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82458         (dir_name): Assert that there are no trailing slashes.
82459
82460 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82461
82462         * lib/mbswidth.h (mbswidth): Add a flags argument.
82463         (mbswidth): New declaration.
82464         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82465         * lib/mbswidth.c (mbswidth): Add a flags argument.
82466         (mbsnwidth): New function.
82467
82468 2000-07-24  Jim Meyering  <meyering@lucent.com>
82469
82470         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82471
82472 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82473
82474         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82475
82476 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82477
82478         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82479         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82480         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82481         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82482         invoke multibyte primitives.
82483
82484 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82485
82486         * lib/quotearg.c:
82487         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82488         so that mbstate_t is always defined.
82489
82490         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82491         be 1 in at least one GCC installation, and this configuration
82492         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82493         performance on hosts that have mbrtowc but have only unibyte
82494         locales, but I assume these hosts are rare.
82495
82496 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82497
82498         * lib/mbswidth.c (_XOPEN_SOURCE):
82499         Don't define; this causes problems on Solaris 7.
82500         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82501
82502 2000-07-23  Jim Meyering  <meyering@lucent.com>
82503
82504         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82505         too: getgrgid, getpwuid, getuid.
82506
82507 2000-07-23  Jim Meyering  <meyering@lucent.com>
82508
82509         * lib/basename.c (base_name): Add an assertion.
82510
82511 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82512
82513         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82514         shadow its mbsinit function.
82515
82516 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82517
82518         * lib/mbswidth.h: New file.
82519         * lib/mbswidth.c: New file.
82520         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82521         (noinst_HEADERS): Add mbswidth.h.
82522
82523 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82524
82525         * lib/config.charset: Add support for FreeBSD. Improve support for
82526         HP-UX and IRIX 6.
82527
82528 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
82529
82530         * m4/mbswidth.m4: New file.
82531         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
82532
82533 2000-07-15  Jim Meyering  <meyering@lucent.com>
82534
82535         * lib/makepath.c: Include quote.h.
82536         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
82537         corresponding argument in a `quote (...)' call.
82538         Give better diagnostics.
82539
82540         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
82541         (noinst_HEADERS): Add quote.h.
82542
82543         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
82544         from tar's src/misc.c.
82545         * lib/quote.h: New file.  Prototypes for same.
82546
82547 2000-07-14  Paul Eggert  <eggert@twinsun.com>
82548
82549         From a suggestion by Bruno Haible.
82550         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
82551         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
82552         to decide whether to define the BeOS workaround macro;
82553         this adjusts to the change to AC_MBSTATE_T.
82554
82555 2000-07-14  Jim Meyering  <meyering@lucent.com>
82556
82557         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
82558         jm_AC_TYPE_UINTMAX_T.
82559
82560 2000-07-13  Paul Eggert  <eggert@twinsun.com>
82561
82562         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
82563
82564         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
82565         quotearg_buffer_restyled): Add support for
82566         clocale_quoting_style.  Undo previous change to
82567         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
82568         and "{RIGHT QUOTATION MARK}" msgids.
82569
82570 2000-07-10  Paul Eggert  <eggert@twinsun.com>
82571
82572         From a suggestion by Bruno Haible.
82573         * m4/mbstate_t.m4 (AC_MBSTATE_T):
82574         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
82575         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
82576         and mbstate_t, to a single-part test that simply defines mbstate_t.
82577         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
82578         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
82579
82580 2000-07-10  Jim Meyering  <meyering@lucent.com>
82581
82582         * m4/strerror_r.m4: Mirror the correction made in autoconf.
82583
82584         * m4/gnu-source.m4: Output to confdefs.h directly.
82585         Suggestion from Akim Demaille.
82586
82587 2000-07-09  Paul Eggert  <eggert@twinsun.com>
82588
82589         The old behavior of quoting `like this' doesn't look good with
82590         newer, ISO-style fonts.  See:
82591         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
82592
82593         Instead, quote "like this" by default.  Let the translator
82594         tailor the locale-specific quoting behavior by providing
82595         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
82596
82597         * lib/quotearg.c (N_): New macro.
82598         (gettext_default): New function.
82599         (quotearg_buffer_restyled): Use
82600         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
82601         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
82602
82603 2000-07-09  Jim Meyering  <meyering@lucent.com>
82604
82605         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
82606         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
82607
82608         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
82609         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
82610
82611 2000-07-09  Jim Meyering  <meyering@lucent.com>
82612
82613         * lib/Most files: Update copyright dates to include 2000.
82614
82615 2000-07-08  Jim Meyering  <meyering@lucent.com>
82616
82617         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82618         if not defined.
82619         (xgethostname): Remove now-unnecessary #ifdef.
82620         Move declaration of `err' into loop where it's used.
82621
82622 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82623         and Bruno Haible  <haible@clisp.cons.org>
82624
82625         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82626         only if the test for an object-type mbstate_t fails.  This
82627         prevents us from mistakenly reporting that mbstate_t is a
82628         system object type after we "#define mbstate_t int" to work
82629         around its lack.
82630
82631 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82632         and Bruno Haible  <haible@clisp.cons.org>
82633
82634         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82635
82636 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82637
82638         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82639         to strerror_r.
82640         Include <ctype.h> for use of isalpha.
82641
82642 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82643
82644         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82645         by allocating a larger buffer. Test the gethostname return value for
82646         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82647         returns an error and ENAMETOOLONG isn't defined.
82648
82649 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82650
82651         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82652         dimension.
82653
82654 2000-07-04  Jim Meyering  <meyering@lucent.com>
82655
82656         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82657         of the deprecated AC_CHECKING.
82658
82659 2000-07-04  Jim Meyering  <meyering@lucent.com>
82660
82661         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82662         Reported by Bruno Haible.
82663
82664 2000-07-04  Jim Meyering  <meyering@lucent.com>
82665
82666         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82667         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82668         lacks mbrtowc.
82669
82670 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82671
82672         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82673         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82674
82675 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82676         and Bruno Haible  <haible@clisp.cons.org>
82677
82678         * lib/quotearg.c (mbrtowc):
82679         Assign to *pwc, and return 1 only if result is nonzero.
82680         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82681
82682 2000-07-03  Jim Meyering  <meyering@lucent.com>
82683
82684         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82685
82686 2000-07-03  Jim Meyering  <meyering@lucent.com>
82687
82688         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82689         This is necessary to get a definition of e.g., UTMP_FILE on
82690         HP-UX 10.20.
82691         From Bob Proulx.
82692
82693 2000-07-02  Jim Meyering  <meyering@lucent.com>
82694
82695         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
82696
82697         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
82698         AC_LIBOBJ(function_name).
82699         * m4/chown.m4: Likewise.
82700         * m4/fnmatch.m4: Likewise.
82701         * m4/ftruncate.m4: Likewise.
82702         * m4/getgroups.m4: Likewise.
82703         * m4/getline.m4: Likewise.
82704         * m4/group-member.m4: Likewise.
82705         * m4/jm-macros.m4: Likewise.
82706         * m4/lstat.m4: Likewise.
82707         * m4/malloc.m4: Likewise.
82708         * m4/memcmp.m4: Likewise.
82709         * m4/nanosleep.m4: Likewise.
82710         * m4/putenv.m4: Likewise.
82711         * m4/realloc.m4: Likewise.
82712         * m4/regex.m4: Likewise.
82713         * m4/stat.m4: Likewise.
82714         * m4/strftime.m4: Likewise.
82715
82716 2000-07-02  Jim Meyering  <meyering@lucent.com>
82717
82718         * lib/quotearg.c (mbstate_t): Don't define here.
82719
82720 2000-07-02  Jim Meyering  <meyering@lucent.com>
82721
82722         * lib/nanosleep.c (SIGCONT): Define if not already defined.
82723
82724 2000-07-01  Jim Meyering  <meyering@lucent.com>
82725
82726         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
82727
82728 2000-07-01  Jim Meyering  <meyering@lucent.com>
82729
82730         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
82731         problem.
82732
82733 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82734
82735         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
82736         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
82737
82738 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82739
82740         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
82741         per change in ../m4/ls-mntd-fs.m4.
82742         (read_filesystem_list): Ignore symbolic links.
82743
82744 2000-06-29  Jim Meyering  <meyering@lucent.com>
82745
82746         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
82747         for declaration of strcmp.
82748
82749         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
82750
82751         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
82752         Avoid warning by casting result to `char *' to remove `const'.
82753
82754 2000-06-28  Jim Meyering  <meyering@lucent.com>
82755
82756         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
82757         included by quotearg.c, for which we perform this test.  From
82758         Bruno Haible.
82759
82760 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82761
82762         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
82763         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
82764         <utmpx.h> exists, put readutmp.o into LIBOBJS.
82765
82766 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82767
82768         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
82769
82770 2000-06-26  Paul Eggert  <eggert@twinsun.com>
82771
82772         savedir now sets errno on failure and invokes xmalloc to get memory.
82773         Fix a couple of other minor bugs while we're at it.
82774
82775         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
82776         (NAMLEN): Remove macro.
82777         (malloc, realloc): Remove decls.
82778         (stpcpy): Likewise.
82779         ("xalloc.h"): Include.
82780         (NAME_SIZE_DEFAULT): New macro.
82781         (savedir): Use xmalloc / xrealloc to allocate memory.
82782         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
82783         Skip "" directory entries.
82784         Use strlen to calculate directory entry length, since the old method
82785         is rarely used these days and isn't worth supporting.
82786         Don't use a pointer after freeing it.
82787         Check for integer overflow when calculating allocation size.
82788         Use memcpy to copy entries, instead of stpcpy.
82789         Set errno properly when returning NULL.
82790         Check for readdir error.
82791
82792 2000-06-26  Jim Meyering  <meyering@lucent.com>
82793
82794         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
82795
82796 2000-06-25  Jim Meyering  <meyering@lucent.com>
82797
82798         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
82799         Linux header bug when _XOPEN_SOURCE is defined to 500.
82800
82801 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82802
82803         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
82804         deficiency.
82805
82806 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82807
82808         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
82809         Include xalloc.h.
82810         Don't include <stdlib.h>.  Don't declare malloc, realloc.
82811
82812 2000-06-24  Jim Meyering  <meyering@lucent.com>
82813
82814         * m4/strerror_r.m4: Revive this file -- to try out an experimental
82815         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
82816         for which strerror does return char*, but which lacks a conveniently
82817         accessible declaration of the function.  If the compile-test says
82818         strerror_r doesn't work, then resort to a `run'-test that works on
82819         BeOS and segfaults on DEC Unix.
82820
82821 2000-06-24  Jim Meyering  <meyering@lucent.com>
82822
82823         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
82824
82825 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82826
82827         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
82828         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
82829
82830 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82831
82832         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
82833         (mbrtowc, mbstate_t): Define substitutes if
82834         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
82835         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
82836         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
82837
82838 2000-06-23  Jim Meyering  <meyering@lucent.com>
82839
82840         * m4/afs.m4: Add missing AC_MSG_RESULT.
82841         Reported by Bruno Haible.
82842
82843         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
82844         Suggestion from Bruno Haible.
82845
82846 2000-06-23  Jim Meyering  <meyering@lucent.com>
82847
82848         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
82849
82850 2000-06-21  Jim Meyering  <meyering@lucent.com>
82851
82852         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
82853
82854 2000-06-21  Jim Meyering  <meyering@lucent.com>
82855
82856         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
82857         (noinst_HEADERS): Add getstr.h.
82858
82859         * lib/getline.c (getstr): Move into a separate file.
82860         * lib/getstr.c (getstr): New file, extracted from getline.c, with
82861         the following changes: new parameter, delim2; both delim[12]
82862         parameters have type `int', not `char'.  The latter would lose
82863         with 8-bit delimiters.
82864         * lib/getstr.h: New file.
82865
82866 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82867
82868         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
82869         than 1024, return a memory chunk of least possible size, instead
82870         of size PATH_MAX + 2. In the loop, increment the size proportionally.
82871         Use free/xmalloc instead of xrealloc to avoid copying for very long
82872         paths.
82873
82874 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82875
82876         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
82877         the empty string.
82878
82879 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82880
82881         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
82882         address, not strdup.  Include <stdlib.h> and don't declare free().
82883
82884 2000-06-19  Jim Meyering  <meyering@lucent.com>
82885
82886         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
82887
82888 2000-06-18  Jim Meyering  <meyering@lucent.com>
82889
82890         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
82891
82892         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
82893         `checking whether...' message to be consistent with that of the
82894         lstat test.
82895
82896 2000-06-18  Jim Meyering  <meyering@lucent.com>
82897
82898         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
82899         Besides, these days every porting target provides a mkdir function.
82900
82901         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
82902         needed. (this snippet comes from src/system.h).
82903
82904 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
82905
82906         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
82907
82908 2000-06-15  Paul Eggert  <eggert@twinsun.com>
82909
82910         * lib/human.c (adjust_value): New function.
82911         (human_readable_inexact): Apply rounding style even when
82912         printing approximate values.
82913
82914 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82915
82916         * lib/human.c (human_readable_inexact): Allow an input block
82917         size that is not a multiple of the output block size, and vice versa.
82918         Reported by Piergiorgio Sartor.
82919
82920 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82921
82922         * lib/getdate.y (get_date): Apply relative times after time
82923         zone indicator, not before.  Reported by Todd A. Jacobs.
82924
82925 2000-06-13  Jim Meyering  <meyering@lucent.com>
82926
82927         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
82928
82929         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
82930
82931 2000-06-12  Paul Eggert  <eggert@twinsun.com>
82932
82933         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
82934
82935 2000-06-12  Jim Meyering  <meyering@lucent.com>
82936
82937         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
82938         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
82939         optional argument.
82940         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
82941         the optional argument, `lib'.
82942
82943 2000-06-08  Jim Meyering  <meyering@lucent.com>
82944
82945         * m4/largefile.m4: Remove file (now that it's part of autoconf).
82946
82947 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82948
82949         Rewrite largefile configuration so that we don't need to run
82950         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
82951         AC_CANONICAL_HOST in configure.in -- jmm]
82952
82953         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
82954         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
82955         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
82956         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
82957         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
82958         All uses changed.
82959         Instead of inspecting the output of getconf, try to compile the
82960         test program without and with the macro definition.
82961         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
82962         for getconf.  Instead, check for the needed flags by compiling
82963         test programs.
82964
82965 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82966
82967         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
82968
82969 2000-06-04  Jim Meyering  <meyering@lucent.com>
82970
82971         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
82972         SunOS 4.1.4 for which gid_t is an unsigned type.
82973
82974 2000-06-03  Jim Meyering  <meyering@lucent.com>
82975
82976         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
82977         now that autoconf requires that.
82978
82979         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
82980         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
82981         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
82982
82983 2000-06-03  Jim Meyering  <meyering@lucent.com>
82984
82985         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
82986
82987 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82988
82989         * m4/glibc21.m4: New file.
82990         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
82991
82992 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82993
82994         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
82995         newer, don't install charset.alias.
82996         * lib/config.charset: Change the Linux/glibc rules so they become empty
82997         on glibc-2.1 or newer.
82998
82999 2000-06-02  Jim Meyering  <meyering@lucent.com>
83000
83001         * lib/mountlist.c: Back out last change.  Instead, do this...
83002         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
83003         me_dummy member using the same `ignore'-testing code.
83004         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
83005         fs_type strings.
83006         From Mark D. Roth.
83007
83008 2000-05-29  Jim Meyering  <meyering@lucent.com>
83009
83010         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
83011         mounts with the `ignore' attribute.  Based on a patch from
83012         Mark D. Roth.
83013
83014 2000-05-28  Jim Meyering  <meyering@lucent.com>
83015
83016         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
83017         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83018         * m4/stat.m4: Likewise.
83019         * m4/lstat.m4: Likewise.
83020         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
83021
83022         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
83023         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
83024
83025 2000-05-26  Jim Meyering  <meyering@lucent.com>
83026
83027         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
83028
83029 2000-05-24  Jim Meyering  <meyering@lucent.com>
83030
83031         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
83032         autoconf requires that.
83033         * m4/lib-check.m4: Likewise.
83034         * m4/jm-macros.m4: Likewise.
83035         * m4/strftime.m4: Likewise.
83036
83037         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
83038         AC_CHECK_DECLS, now that autoconf requires that.
83039
83040 2000-05-22  Jim Meyering  <meyering@lucent.com>
83041
83042         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83043         * m4/lstat.m4: Likewise.
83044
83045 2000-05-22  Jim Meyering  <meyering@lucent.com>
83046
83047         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
83048
83049 2000-05-20  Jim Meyering  <meyering@lucent.com>
83050
83051         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
83052         (jm_PREREQ): Use it.
83053
83054 2000-05-18  Jim Meyering  <meyering@lucent.com>
83055
83056         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
83057         back, too, since it may have been modified by allocate_entry.
83058         (hash_delete): Rewrite to use neither the assignment operator
83059         nor the comma operator in an if-expression.
83060
83061 2000-05-15  Paul Eggert  <eggert@twinsun.com>
83062
83063         * lib/closeout.c:
83064         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
83065         Remove; no longer needed.
83066         "quotearg.h": Add include.
83067         (file_name): Do not bother to explicitly initialize to NULL; it's less
83068         efficient on some hosts.
83069         (close_stdout_status): Remove test as to whether stdout was already
83070         closed; it breaks for the case "echo x | sort >&-".
83071         Quote file name colons.
83072         Do not assume that _("write error") lacks format strings.
83073
83074 2000-05-15  Jim Meyering  <meyering@lucent.com>
83075
83076         * lib/version-etc.c (version_etc_copyright): Update the copyright
83077         string used in all --version output.
83078
83079 2000-05-14  Jim Meyering  <meyering@lucent.com>
83080
83081         * lib/closeout.c (close_stdout_set_file_name): New function.
83082         (close_stdout_status): Use new file-scoped global.
83083         Return right away if fstat says the stdout file descriptor is invalid.
83084         * lib/closeout.h (close_stdout_set_file_name): Declare.
83085
83086 2000-05-10  Jim Meyering  <meyering@lucent.com>
83087
83088         * lib/closeout.c [default_exit_status]: New file-scoped variable.
83089         (close_stdout_set_status): New function.
83090         * lib/closeout.h (close_stdout_set_status): Declare.
83091
83092 2000-05-09  Jim Meyering  <meyering@lucent.com>
83093
83094         * m4/gettext.m4: Rename this...
83095         * m4/libintl.m4: ...to this.
83096
83097 2000-05-08  Jim Meyering  <meyering@lucent.com>
83098
83099         * lib/long-options.c: Don't include closeout.h.
83100         (parse_long_options): Don't call close_stdout for --version.
83101
83102 2000-05-06  Paul Eggert  <eggert@twinsun.com>
83103
83104         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
83105         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
83106         2.1.3 bug.  This avoids a clash when files like regex.c define
83107         _GNU_SOURCE.
83108
83109 2000-05-06  Jim Meyering  <meyering@lucent.com>
83110
83111         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
83112         (AC_REPLACE_FUNCS): Add strnlen.
83113
83114         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
83115         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
83116
83117         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
83118         AC_SEARCH_LIBS call for nanosleep.
83119         (LIB_NANOSLEEP): Set and AC_SUBST.
83120
83121 2000-05-06  Jim Meyering  <meyering@lucent.com>
83122
83123         * lib/strnlen.c: Undefine __strnlen and strnlen.
83124         [!weak_alias]: Define __strnlen to strnlen.
83125
83126         * lib/atexit.c: New file, from libiberty.
83127
83128 2000-05-06  Jim Meyering  <meyering@lucent.com>
83129
83130         * lib/closeout.c (close_stdout_status): Also check for errors on the
83131         stderr stream.
83132
83133 2000-05-05  Jim Meyering  <meyering@lucent.com>
83134
83135         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
83136         AC_SEARCH_LIBS call for clock_gettime.
83137         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
83138
83139         * m4/search-libs.m4: Update from autoconf.
83140
83141         su doesn't work on Solaris 2.6.
83142         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
83143         <shadow.h>.  Reported by Dragos Harabor.
83144
83145 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
83146
83147         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
83148         memcpy instead of xmalloc, xrealloc, path_concat.
83149         (locale_charset): Treat empty environment variables as absent.
83150         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
83151
83152 2000-05-04  Jim Meyering  <meyering@lucent.com>
83153
83154         * lib/getopt.c: Update from glibc.
83155         * lib/obstack.c: Likewise.
83156         * lib/obstack.h: Likewise.
83157         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
83158         file
83159
83160         * lib/regex.h: Likewise.
83161         * lib/strndup.c: Likewise.
83162         * lib/strnlen.c: New file, from glibc.
83163
83164 2000-05-03  Jim Meyering  <meyering@lucent.com>
83165
83166         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
83167
83168 2000-05-02  Paul Eggert  <eggert@twinsun.com>
83169
83170         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
83171         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
83172         compile-time test, rather than inspecting host and OS, to
83173         decide whether to define _LARGEFILE_SOURCE.
83174
83175 2000-05-01  Jim Meyering  <meyering@lucent.com>
83176
83177         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
83178
83179         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
83180         Based on a patch from Bruno Haible.
83181
83182 2000-05-01  Jim Meyering  <meyering@lucent.com>
83183
83184         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
83185
83186 2000-04-29  Jim Meyering  <meyering@lucent.com>
83187
83188         * lib/path-concat.c: Declare strdup only if it's not defined.
83189         * lib/canon-host.c: Likewise.
83190
83191 2000-04-28  Jim Meyering  <meyering@lucent.com>
83192
83193         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
83194         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
83195         is included first, then limits.h is included by locale.h by libintl.h.
83196         From John David Anglin.
83197
83198 2000-04-25  Jim Meyering  <meyering@lucent.com>
83199
83200         * lib/makepath.c (S_IRWXUGO): Define.
83201         (make_path): Always perform explicit chmod if MODE specifies any
83202         of the `special' permission bits.  Prompted by a bug report against
83203         install from Mate Wierdl and Joost van Baal.
83204
83205 2000-04-18  Jim Meyering  <meyering@lucent.com>
83206
83207         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
83208         (jm_PREREQ): Use it.
83209
83210 2000-04-18  Jim Meyering  <meyering@lucent.com>
83211
83212         * lib/README: New file.
83213
83214         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
83215         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
83216
83217 2000-04-17  Jim Meyering  <meyering@lucent.com>
83218
83219         Get it right :-)
83220         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
83221         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
83222         Suggestion from Akim Demaille.
83223
83224 2000-04-17  Jim Meyering  <meyering@lucent.com>
83225
83226         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
83227         the definition of it to rpl_strftime also defined-away the system's
83228         declaration.
83229
83230 2000-04-15  Jim Meyering  <meyering@lucent.com>
83231
83232         Use `C' to denote so-called `contiguous' files, the same way
83233         that tar does.
83234         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
83235         (ftypelet): Use S_ISCTG.
83236         From Michael Deutschmann.
83237
83238 2000-04-14  Jim Meyering  <meyering@lucent.com>
83239
83240         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
83241         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
83242         clobbered.
83243
83244 2000-04-14  Jim Meyering  <meyering@lucent.com>
83245
83246         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
83247
83248 2000-04-13  Jim Meyering  <meyering@lucent.com>
83249
83250         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
83251         AH_VERBATIM to insert required #ifndef into config.h.in.
83252         Suggestion from Akim Demaille.
83253
83254 2000-04-12  Jim Meyering  <meyering@lucent.com>
83255
83256         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
83257         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
83258         Christian Krackowizer.
83259
83260         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
83261         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
83262         (AC_SYS_LARGEFILE): Require.
83263         (AM_C_PROTOTYPES): Require.
83264
83265 2000-04-08  Jim Meyering  <meyering@lucent.com>
83266
83267         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
83268         names don't conflict.  Reported by Eli Zaretskii.
83269
83270 2000-04-07  Jim Meyering  <meyering@lucent.com>
83271
83272         * lib/putenv.c: Move inclusion of errno.h so it follows that of
83273         sys/types.h, to work around system header problems on AIX 3.2.5.
83274         From Bruno Haible.
83275
83276 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
83277
83278         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
83279         bug.  Deal with the different error behavior of Irix iconv.
83280
83281 2000-04-05  Paul Eggert  <eggert@twinsun.com>
83282
83283         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
83284         IRIX if the installer said otherwise.
83285
83286 2000-04-05  Jim Meyering  <meyering@lucent.com>
83287
83288         Portability tweaks required for ultrix4.3.
83289         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
83290         (jm_CHECK_DECLS): Add getutent to the list of functions.
83291         (_jm_DECL_HEADERS): Add utmpx.h.
83292         From John David Anglin.
83293
83294         * m4/strftime.m4: Back out the 2000-04-02 change.
83295         Instead of that change, simply undefine putenv in the test program.
83296
83297 2000-04-05  Jim Meyering  <meyering@lucent.com>
83298
83299         Portability tweaks required for ultrix4.3.
83300         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
83301         getutent.
83302         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
83303         * lib/canon-host.c: Declare strdup.
83304         * lib/path-concat.c: Likewise.
83305         From John David Anglin.
83306
83307 2000-04-04  Jim Meyering  <meyering@lucent.com>
83308
83309         Be more DOS 8.3-friendly.
83310         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83311         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83312         * lib/Makefile.am: Reflect renaming.
83313         Reported by Eli Zaretskii.
83314
83315         Use a temporary file name that won't clash with `charset.alias'
83316         in the DOS 8.3 name space.
83317         * lib/Makefile.am (charset_tmp): Define.
83318         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83319         (uninstall-local): Likewise.
83320         Reported by Eli Zaretskii.
83321
83322 2000-04-03  Jim Meyering  <meyering@lucent.com>
83323
83324         * m4/gettext.m4: Fix typo in comment.
83325
83326         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83327         textutils/configure.in).  Suggestion from Paul Eggert.
83328         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83329
83330 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83331
83332         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83333         variable in the shell rather than using putenv, which isn't
83334         portable.  This avoids the configure-time inter-test dependency
83335         on the potentially-renamed putenv function.
83336
83337 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83338
83339         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83340         before checking struct stat.st_blksize, so that
83341         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83342
83343 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83344
83345         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83346         since strftime.c uses HAVE_STRFTIME to decide whether to use
83347         the underlying strftime.
83348
83349 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83350
83351         * lib/time/strftime.c (my_strftime): Make sure we call the system
83352         strftime, not ourselves, when invoking the underlying strftime.
83353
83354 2000-03-24  Jim Meyering  <meyering@lucent.com>
83355
83356         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83357         (charset_alias): Define.
83358         (install-exec-local): Factor out common code.
83359         (uninstall-local): Split lines longer than 80.
83360         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83361         (SUFFIXES): Define.
83362         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83363         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83364
83365 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83366
83367         * lib/config.charset: Output a line containing "Packages using this
83368         file".
83369         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83370         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83371         ref-del.sed): New rules.
83372
83373 2000-03-17  Jim Meyering  <meyering@lucent.com>
83374
83375         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83376         Otherwise, include <strings.h>
83377
83378 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83379
83380         * lib/unicodeio.c (utf8_wctomb): New function.
83381         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83382         format instead of in UCS-4 with platform dependent endianness.
83383
83384 2000-03-10  Jim Meyering  <meyering@lucent.com>
83385
83386         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83387         From Marco Franzen.
83388
83389 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83390
83391         * lib/savedir.c (savedir): Work even if directory size is
83392         negative; this can happen with some screwy NFS configurations.
83393
83394 2000-03-06  Jim Meyering  <meyering@lucent.com>
83395
83396         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83397         if it's NULL (because we ran out of memory).  From Bruno Haible.
83398
83399 2000-03-05  Jim Meyering  <meyering@lucent.com>
83400
83401         * lib/localcharset.c ("path-concat.h"): Include.
83402         (get_charset_aliases): Use path_concat instead of ANSI string
83403         concatenation.
83404
83405         * lib/unicodeio.h (PARAMS): Define.
83406         Use it to guard prototype.
83407
83408 2000-03-04  Jim Meyering  <meyering@lucent.com>
83409
83410         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83411         for lib/localcharset.c.
83412
83413 2000-03-04  Jim Meyering  <meyering@lucent.com>
83414
83415         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83416         installing into it.
83417         (uninstall-local): Uncomment this rule so `make distcheck' works
83418         once again.
83419
83420         * lib/unicodeio.c (<errno.h>): Include it.
83421         (errno): Declare if not defined.
83422
83423         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83424
83425         * lib/config.charset: New version, incorporating remarks from a linux
83426         i18n mailing list.  From Bruno Haible.
83427
83428 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83429
83430         * m4/codeset.m4: New file.
83431         * m4/iconv.m4: New file.
83432         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83433
83434 2000-03-03  Jim Meyering  <meyering@lucent.com>
83435
83436         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83437
83438 2000-03-02  Jim Meyering  <meyering@lucent.com>
83439
83440         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83441         the messages come out on separate lines.
83442
83443         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83444         rather than jm_CHECK_DECLARATIONS.
83445         * m4/decl.m4: Remove now-unused file.
83446
83447         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83448         geteuid.
83449
83450 2000-03-02  Jim Meyering  <meyering@lucent.com>
83451
83452         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83453
83454 2000-03-01  Jim Meyering  <meyering@lucent.com>
83455
83456         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83457         * lib/unicodeio.c: Likewise.
83458
83459 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83460
83461         * lib/config.charset: New file.
83462         * lib/localcharset.c: New file.
83463         * lib/unicodeio.h, lib/unicodeio.c: New files.
83464         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83465         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83466         (noinst_HEADERS): Add unicodeio.h.
83467         (all-local, install-exec-local, charset.alias): New targets.
83468
83469 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83470
83471         * lib/quotearg.c (ALERT_CHAR): New macro.
83472         (quotearg_buffer_restyled): Use it.
83473
83474 2000-02-27  Jim Meyering  <meyering@lucent.com>
83475
83476         * m4/check-decl.m4: Add getenv to the list.
83477
83478 2000-02-27  Jim Meyering  <meyering@lucent.com>
83479
83480         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83481         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83482
83483         * lib/backupfile.c: Guard inclusion of stdlib.h with
83484         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83485         Declare malloc if needed.
83486
83487         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83488         `#ifndef HAVE_DECL..'
83489         now that autoconf always defines the HAVE_DECL_ symbols.
83490         * lib/human.c: Likewise.
83491         * lib/same.c: Likewise.
83492         * lib/strtoumax.c: Likewise.
83493
83494         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83495         declaration check was not run.
83496         * lib/hash.c: Likewise.
83497         * lib/human.c: Likewise.
83498         * lib/same.c: Likewise.
83499         * lib/strtoumax.c: Likewise.
83500
83501         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83502         `.', then first look up the entire `.'-containing string as a login
83503         name.
83504
83505 2000-02-23  Jim Meyering  <meyering@lucent.com>
83506
83507         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83508         in place of my hack.
83509
83510 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83511
83512         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83513         (textint): New typedef.
83514         (parser_control): Member year changed from int to textint.
83515         All uses changed.
83516         (YYSTYPE): Removed; replaced by %union with int and textint members.
83517         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83518         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83519         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83520         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83521         (date, number, to_year): Use width of number in digits, not its value,
83522         to determine whether it's a 2-digit year, or a 2-digit time.
83523         (yylex): Store number of digits of numeric tokens.
83524         Reported by John Kendall.
83525
83526         (parser_control): Changed from struct parser_control to typedef (for
83527         consistency).  All uses changed.
83528
83529         (tID): Removed; not used.
83530         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
83531
83532 2000-02-14  Paul Eggert  <eggert@twinsun.com>
83533
83534         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
83535         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
83536
83537 2000-02-12  Jim Meyering  <meyering@lucent.com>
83538
83539         * lib/userspec.c (ISDIGIT): Define it.
83540         (isdigit): Remove definition.
83541         (is_number): Use ISDIGIT, not isdigit.
83542         <libintl.h>: Include.
83543         (_ and N_): Define.
83544         (parse_user_spec): Mark translatable strings.
83545
83546 2000-02-10  Jim Meyering  <meyering@lucent.com>
83547
83548         With these changes, nanosleep.[ch] are finally enough like the other
83549         lib/* replacement files to compile on a few more losing systems.
83550
83551         * lib/nanosleep.h: Don't include config.h.
83552         Remove prototype from declaration of nanosleep.
83553         (PARAMS): Remove now-unneeded definition.
83554         * lib/nanosleep.c: #undef nanosleep.
83555         (rpl_nanosleep): Rename from nanosleep.
83556
83557 2000-02-10  Jim Meyering  <meyering@lucent.com>
83558
83559         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
83560         gnu_nanosleep to rpl_nanosleep.
83561
83562 2000-02-09  Jim Meyering  <meyering@lucent.com>
83563
83564         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
83565         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
83566
83567 2000-02-08  Akim Demaille  <akim@epita.fr>
83568
83569         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
83570         `[' and `]' and remove uses of `changequote'.
83571         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
83572         (AC_SYS_LARGEFILE): Likewise.
83573         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83574         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
83575         of changequote.
83576         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
83577         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
83578         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
83579         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
83580
83581 2000-02-05  Jim Meyering  <meyering@lucent.com>
83582
83583         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
83584         Remove explicit use of AC_HEADER_TIME.  It is required by
83585         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
83586         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
83587         in autoconf whereby the expansion of the latter ended up preceding
83588         the expansion of its prerequisite, AC_HEADER_TIME.
83589         Reported by Volker Borchert.
83590
83591 2000-02-03  Jim Meyering  <meyering@lucent.com>
83592
83593         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
83594
83595 2000-02-03  Jim Meyering  <meyering@lucent.com>
83596
83597         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
83598         rather than with `#if HAVE_UTMPNAME'.
83599
83600 2000-02-02  Jim Meyering  <meyering@lucent.com>
83601
83602         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
83603         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
83604         Reported by Eli Zaretskii.
83605
83606 2000-02-01  Jim Meyering  <meyering@lucent.com>
83607
83608         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
83609
83610 2000-01-31  Jim Meyering  <meyering@lucent.com>
83611
83612         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
83613         functions.  Add the time.h and sys/time.h headers along with the
83614         AC_REQUIRE'ment of AC_HEADER_TIME.
83615
83616 2000-01-31  Jim Meyering  <meyering@lucent.com>
83617
83618         * lib/nanosleep.h (nanosleep): Guard declaration with
83619         `#if ! HAVE_DECL_NANOSLEEP'.
83620         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83621         the declaration in that vendor's sys/timers.h.
83622         Reported by Christian Krackowizer.
83623
83624         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83625         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83626         (ISPRINT): Likewise.
83627         Reported by Tom Tromey.
83628
83629 2000-01-30  Jim Meyering  <meyering@lucent.com>
83630
83631         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83632
83633         * m4/prereq.m4 (utmp_includes): Define.
83634         Check for ut_user and ut_name members in both struct utmpx
83635         and struct utmp.
83636
83637 2000-01-30  Jim Meyering  <meyering@lucent.com>
83638
83639         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83640         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83641         header files where only utmpx.ut_user is declared.
83642
83643         * lib/readutmp.h (UT_USER): Define.
83644
83645 2000-01-29  Jim Meyering  <meyering@lucent.com>
83646
83647         * m4/lib-check.m4: New file containing library-related checks from
83648         fileutils and sh-utils (textutils had none).
83649
83650 2000-01-28  Jim Meyering  <meyering@lucent.com>
83651
83652         * m4/perl.m4: Change format of warning message to look more like that
83653         from the missing script.  Suggestion from François Pinard.
83654
83655 2000-01-25  Jim Meyering  <meyering@lucent.com>
83656
83657         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83658         well as time.h in the compile check.
83659         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83660         Fix typo in cross-compiling case: s/yes/no/.
83661
83662 2000-01-23  Jim Meyering  <meyering@lucent.com>
83663
83664         * m4/jm-macros.m4: Move df-related tests here from
83665         fileutils/configure.in
83666
83667         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83668         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83669
83670         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83671         s/space/ac_fsusage_space/.
83672         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83673
83674         * m4/ftruncate.m4: New file (derived from part of
83675         fileutils/configure.in).
83676         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83677         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83678
83679         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83680         AC_SUBST these here, rather than just in sh-util/configure.in, so
83681         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83682         all the same.
83683         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83684         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83685         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83686         (AC_SUBST(POW_LIBM)): Likewise.
83687         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83688
83689 2000-01-23  Jim Meyering  <meyering@lucent.com>
83690
83691         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
83692         obstack.c.
83693
83694 2000-01-22  Jim Meyering  <meyering@lucent.com>
83695
83696         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
83697
83698         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
83699
83700         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
83701         configure.in
83702         (AC_CHECK_HEADERS): Likewise for sh-utils.
83703         (AC_CHECK_HEADERS): Likewise for textutils.
83704         Merge the three lists of headers.
83705
83706         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
83707         from fileutils' configure.in.
83708
83709         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
83710         code. Moved tests into their own function (_jm_DECL_HEADERS) in
83711         check-decl.m4.
83712
83713         * m4/check-decl.m4: Use #if rather than #ifdef.
83714         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
83715         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
83716         (_jm_DECL_HEADERS): Define new function.
83717         (jm_CHECK_DECLARATIONS): Require it.
83718
83719 2000-01-22  Jim Meyering  <meyering@lucent.com>
83720
83721         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
83722         [! HAVE_DECL_STRTOULL]: Declare strtoull.
83723         Required for some AIX systems.  Reported by Christian Krackowizer.
83724         [TESTING] (main): New function.
83725
83726         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
83727         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
83728         letters.
83729
83730         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
83731         iswprint.
83732
83733         * lib/strverscmp.c (ISDIGIT): Define.
83734         (strverscmp): Use ISDIGIT, not isdigit.
83735
83736 2000-01-19  Jim Meyering  <meyering@lucent.com>
83737
83738         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
83739         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
83740         defines `struct timespec' in <sys/time.h>
83741
83742         * m4/c-bs-a.m4: Remove uses of changequote altogether.
83743         Thanks to Akim for explaining.
83744
83745 2000-01-17  Paul Eggert  <eggert@twinsun.com>
83746
83747         * lib/nanosleep.c (nanosleep):
83748         Don't use SA_INTERRUPT to decide whether to call sigaction, as
83749         POSIX.1 doesn't require SA_INTERRUPT and some systems
83750         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
83751         it's been part of POSIX.1 since day 1 (in 1988).
83752
83753 2000-01-17  Jim Meyering  <meyering@lucent.com>
83754
83755         * lib/interlock: Remove unused file.  Reported by François Pinard.
83756
83757 2000-01-16  Paul Eggert  <eggert@twinsun.com>
83758
83759         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
83760         alert, backslash, formfeed, and vertical tab unnecessarily in
83761         shell quoting style.
83762
83763 2000-01-16  Jim Meyering  <meyering@lucent.com>
83764
83765         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
83766         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
83767         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
83768         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
83769
83770 2000-01-16  Jim Meyering  <meyering@lucent.com>
83771
83772         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
83773         because the latter didn't work.
83774
83775 2000-01-15  Jim Meyering  <meyering@lucent.com>
83776
83777         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
83778         (AC_REPLACE_FUNCS): Add memcpy and memset.
83779         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
83780         Add strpbrk.
83781         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
83782
83783 2000-01-12  Jim Meyering  <meyering@lucent.com>
83784
83785         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
83786         (jm_PREREQ): Use it.
83787         (jm_PREREQ_READUTMP): New macro.
83788         (jm_PREREQ): Use it.
83789
83790 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83791
83792         Quote multibyte characters correctly.
83793         * m4/c-bs-a.m4: New file.
83794         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
83795         (jm_PREREQ): Use it.
83796
83797 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83798
83799         * m4/uintmax_t.m4: Port to autoconf 2.13.
83800
83801 2000-01-08  Jim Meyering  <meyering@ascend.com>
83802
83803         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
83804         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
83805
83806 2000-01-04  Jim Meyering  <meyering@ascend.com>
83807
83808         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
83809         jm_STRUCT_DIRENT_D_TYPE.
83810         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
83811         jm_STRUCT_DIRENT_D_INO.
83812         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
83813         jm_STRUCT_UTIMBUF.
83814         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
83815         renamings.
83816         * m4/utime.m4: Likewise.
83817
83818         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
83819         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
83820
83821 2000-01-03  Paul Eggert  <eggert@twinsun.com>
83822
83823         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
83824         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
83825
83826 2000-01-02  Jim Meyering  <meyering@ascend.com>
83827
83828         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
83829         remember if this is necessary.
83830
83831 1999-12-26  Jim Meyering  <meyering@ascend.com>
83832
83833         * m4/jm-macros.m4: Use it here.
83834         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
83835
83836 1999-12-23  Jim Meyering  <meyering@ascend.com>
83837
83838         * m4/jm-macros.m4: Check for clock_gettime (moved from
83839         fileutils/configure.in)
83840         Check for gettimeofday.
83841
83842 1999-12-20  Jim Meyering  <meyering@ascend.com>
83843
83844         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
83845         autoconf-2.14a-1999-12-20.
83846
83847 1999-12-19  Jim Meyering  <meyering@ascend.com>
83848
83849         * m4/lstat-slash.m4: New file.
83850         * m4/jm-macros.m4: Use the new macro:
83851         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83852
83853 1999-12-07  Jim Meyering  <meyering@ascend.com>
83854
83855         * m4/perl.m4: Require that File::Compare be available, too.
83856         Too many systems seem to lack it.
83857
83858         * m4/strftime.m4: Add checks for most of the cpp macros tested in
83859         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
83860
83861 1999-11-18  Paul Eggert  <eggert@twinsun.com>
83862
83863         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
83864         problem with the QNX 4.25 shell, which doesn't propagate exit
83865         status of failed commands inside shell assignments.
83866
83867 1999-11-17  Jim Meyering  <meyering@ascend.com>
83868
83869         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
83870
83871 1999-11-07  Jim Meyering  <meyering@ascend.com>
83872
83873         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
83874
83875 1999-11-06  Jim Meyering  <meyering@ascend.com>
83876
83877         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
83878         * m4/jm-macros.m4 (jm_MACROS): Use it here.
83879
83880 1999-11-05  Jim Meyering  <meyering@ascend.com>
83881
83882         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
83883         configure.in of textutils, fileutils, and sh-utils into this one
83884         (shared between those packages) file.
83885         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
83886         AC_STRUCT_ST_BLKSIZE.
83887
83888 1999-11-03  Jim Meyering  <meyering@ascend.com>
83889
83890         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
83891         of AC_CHECK_TYPE checks includes unistd.h.
83892         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
83893         Suggestion from Akim Demaille.
83894
83895 1999-10-30  Jim Meyering  <meyering@ascend.com>
83896
83897         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
83898         m4-quoted string.
83899         * m4/ls-mntd-fs.m4: Likewise.
83900         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
83901         * m4/jm-winsz1.m4: Likewise.
83902
83903         * m4/const.m4: Remove file, since the fix made it into the experimental
83904         version of autoconf.
83905         * m4/mktime.m4: Likewise.
83906
83907         * m4/check-type.m4: Remove file, now that the latest version of
83908         AC_CHECK_TYPE takes a third arg to specify additional #includes.
83909
83910         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
83911         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
83912         AC_CHECK_TYPE.
83913
83914 1999-10-04  Jim Meyering  <meyering@ascend.com>
83915
83916         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
83917
83918 1999-09-22  Paul Eggert  <eggert@twinsun.com>
83919
83920         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
83921         2.95.1 bug with HP-UX 10.20.
83922
83923 1999-09-17  Jim Meyering  <meyering@ascend.com>
83924
83925         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
83926         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
83927         due to missing strdup (against sh-utils-2.0).
83928
83929 1999-08-29  Jim Meyering  <meyering@ascend.com>
83930
83931         * m4/jm-macros.m4: Require jm_BISON.
83932         * m4/bison.m4: New file.
83933
83934 1999-08-17  Paul Eggert  <eggert@twinsun.com>
83935
83936         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
83937         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
83938
83939 1999-08-05  Jim Meyering  <meyering@ascend.com>
83940
83941         * m4/getline.m4: Rename test file from conftestdata to conftest.data
83942         to avoid conflicts with `conftest' on 8+3 filesystems.
83943         Suggestion from Eli Zaretskii.
83944
83945 1999-08-04  Jim Meyering  <meyering@ascend.com>
83946
83947         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
83948         fileutils and sh-utils (textutils's getline test was inadequate).
83949         (AM_FUNC_GETLINE): Run this test.
83950         (AC_CHECK_FUNCS): Check for getdelim.
83951         Reported by Bob Proulx.
83952
83953 1999-08-02  Jim Meyering  <meyering@ascend.com>
83954
83955         * m4/jm-macros.m4: Add a comment.
83956
83957 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83958
83959         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
83960         <inttypes.h> defines strtoumax as a macro (and not as a
83961         function).
83962
83963 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83964
83965         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
83966         that we can shift, multiply and divide unsigned long long
83967         values; Ultrix cc can't do it.
83968
83969 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83970
83971         * m4/mktime.m4: New file, which is a preview of what should appear
83972         in the next public autoconf release.
83973
83974 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83975
83976         * m4/lfs.m4: Remove this file.
83977         * m4/largefile.m4: New file.  It contains the old contents of
83978         lfs.m4, except that all names with prefix AC_LFS have been
83979         changed to use the prefix AC_SYS_LARGEFILE instead, to be
83980         compatible with future autoconf versions.  Also, some minor m4
83981         quoting problems have been fixed.
83982
83983 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83984
83985         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
83986         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
83987         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
83988         and simplify the shell code.
83989
83990 1999-08-01  Jim Meyering  <meyering@ascend.com>
83991
83992         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
83993         m4.
83994
83995 1999-07-20  Jim Meyering  <meyering@ascend.com>
83996
83997         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
83998
83999 1999-07-15  Jim Meyering  <meyering@ascend.com>
84000
84001         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
84002
84003 1999-05-22  Jim Meyering  <meyering@ascend.com>
84004
84005         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
84006
84007 1999-05-20  Jim Meyering  <meyering@ascend.com>
84008
84009         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
84010         Add a colon after each `then' in case $4 is empty.
84011
84012 1999-05-16  Jim Meyering  <meyering@ascend.com>
84013
84014         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
84015
84016 1999-05-10  Jim Meyering  <meyering@ascend.com>
84017
84018         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
84019
84020         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
84021         AC_FUNC_MKTIME.
84022
84023 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
84024
84025         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
84026
84027 1999-05-04  Paul Eggert  <eggert@twinsun.com>
84028
84029         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
84030         not CPPFLAGS, so that linking works correctly in IRIX.
84031
84032 1999-04-30  Paul Eggert  <eggert@twinsun.com>
84033
84034         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
84035
84036 1999-04-20  Paul Eggert  <eggert@twinsun.com>
84037
84038         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
84039         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
84040         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
84041         jm_AC_TYPE_UNSIGNED_LONG_LONG.
84042         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
84043
84044         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
84045
84046 1999-04-20  Jim Meyering  <meyering@ascend.com>
84047
84048         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
84049         AC_REPLACE xstroull if necessary.  From Paul Eggert.
84050         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
84051
84052 1999-04-18  Jim Meyering  <meyering@ascend.com>
84053
84054         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
84055         * m4/jm-macros.m4: Use it.
84056
84057 1999-04-06  Jim Meyering  <meyering@ascend.com>
84058
84059         * m4/strftime.m4: Remove test for %f.
84060
84061 1999-03-29  Jim Meyering  <meyering@ascend.com>
84062
84063         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
84064         superset of the AC_TYPE_* checks in the textutils, fileutils,
84065         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
84066         AC_TYPE_PID_T.
84067
84068 1999-03-28  Jim Meyering  <meyering@ascend.com>
84069
84070         * m4/jm-macros.m4: Define GNU_PACKAGE here.
84071         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
84072         replaced e.g., in the *.sh files of the sh-utils.
84073
84074 1999-03-20  Jim Meyering  <meyering@ascend.com>
84075
84076         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
84077         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
84078         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
84079
84080 1999-03-19  Jim Meyering  <meyering@ascend.com>
84081
84082         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
84083
84084 1999-03-12  Jim Meyering  <meyering@ascend.com>
84085
84086         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
84087
84088 1999-03-07  Jim Meyering  <meyering@ascend.com>
84089
84090         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
84091         declared.
84092
84093 1999-02-17  Jim Meyering  <meyering@ascend.com>
84094
84095         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
84096         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
84097
84098 1999-02-07  Jim Meyering  <meyering@ascend.com>
84099
84100         * m4/group-member.m4: New file -- extracted from sh-utils'
84101         configure.in.
84102
84103         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
84104         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
84105
84106 1999-02-06  Jim Meyering  <meyering@ascend.com>
84107
84108         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
84109         * m4/fnmatch.m4: Likewise.
84110         * m4/getgroups.m4: Likewise.
84111         * m4/lstat.m4: Likewise.
84112         * m4/malloc.m4: Likewise.
84113         * m4/putenv.m4: Likewise.
84114         * m4/realloc.m4: Likewise.
84115         * m4/regex.m4: Likewise.
84116         * m4/stat.m4: Likewise.
84117         * m4/strftime.m4: Likewise.
84118         Suggestion from Alain Magloire.
84119
84120         * m4/chown.m4: Use `.$ac_objext', not `.o'.
84121         * m4/fnmatch.m4: Likewise.
84122         * m4/getgroups.m4: Likewise.
84123         * m4/getline.m4: Likewise.
84124         * m4/lstat.m4: Likewise.
84125         * m4/malloc.m4: Likewise.
84126         * m4/memcmp.m4: Likewise.
84127         * m4/putenv.m4: Likewise.
84128         * m4/realloc.m4: Likewise.
84129         * m4/regex.m4: Likewise.
84130         * m4/stat.m4: Likewise.
84131         * m4/strftime.m4: Likewise.
84132         Suggestion from Alain Magloire.
84133
84134         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
84135         an argument.
84136
84137         * m4/regex.m4: Add a run-time Test for proper operation of
84138         re_compile_pattern.
84139
84140 1999-01-31  Jim Meyering  <meyering@ascend.com>
84141
84142         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
84143
84144 1999-01-30  Jim Meyering  <meyering@ascend.com>
84145
84146         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
84147
84148         * m4/jm-mktime.m4: Make this a wrapper around the official
84149         AM_FUNC_MKTIME rather than my private copy, now that the official one
84150         is up to date.
84151         * m4/mktime.m4: Remove file.
84152
84153         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
84154         * m4/uptime.m4: Likewise.
84155         * m4/uintmax_t.m4: Likewise.
84156
84157 1999-01-28  Jim Meyering  <meyering@ascend.com>
84158
84159         * m4/jm-macros.m4: Use jm_AFS.
84160         * m4/afs.m4: New file (from fileutils' configure.in).
84161
84162         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
84163         * m4/chown.m4: Likewise.
84164         * m4/d-ino.m4: Likewise.
84165         * m4/d-type.m4: Likewise.
84166         * m4/fnmatch.m4: Likewise.
84167         * m4/getgroups.m4: Likewise.
84168         * m4/gettext.m4: Likewise.
84169         * m4/jm-mktime.m4: Likewise.
84170         * m4/jm-winsz2.m4: Likewise.
84171         * m4/lcmessage.m4: Likewise.
84172         * m4/ls-mntd-fs.m4: Likewise.
84173         * m4/malloc.m4: Likewise.
84174         * m4/memcmp.m4: Likewise.
84175         * m4/putenv.m4: Likewise.
84176         * m4/realloc.m4: Likewise.
84177         * m4/st_mtim.m4: Likewise.
84178         * m4/strftime.m4: Likewise.
84179
84180 1999-01-16  Jim Meyering  <meyering@ascend.com>
84181
84182         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
84183         (ARGMATCH_DIE_DECL): Define.
84184
84185 1999-01-12  Jim Meyering  <meyering@ascend.com>
84186
84187         * m4/Makefile.am.in: Rewrite to avoid using fmt.
84188         Reported by Lars Hecking.
84189
84190 1999-01-10  Jim Meyering  <meyering@ascend.com>
84191
84192         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
84193         gross kludge.
84194         * m4/inttypes_h.m4: Likewise.
84195         * m4/lstat.m4: Likewise.
84196         * m4/malloc.m4: Likewise.
84197         * m4/readdir.m4: Likewise.
84198         * m4/realloc.m4: Likewise.
84199         * m4/st_dm_mode.m4: Likewise.
84200         * m4/stat.m4: Likewise.
84201         * m4/utimbuf.m4: Likewise.
84202         * m4/utimes.m4: Likewise.
84203
84204         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
84205         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
84206         comments in config.h.in are meaningful.
84207
84208         * m4/jm-macros.m4: Require autoconf-2.13 here.
84209
84210         * m4/regex.m4: By default, don't use the included regex.c on systems
84211         with glibc 2.  Suggestion from Uli Drepper.
84212
84213 1999-01-02  Jim Meyering  <meyering@ascend.com>
84214
84215         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
84216
84217 1998-12-18  Jim Meyering  <meyering@ascend.com>
84218
84219         * m4/Makefile.am.in (Makefile.am): Simplify rule.
84220         Based on a suggestion from Lars Hecking.
84221
84222 1998-11-16  Paul Eggert  <eggert@twinsun.com>
84223
84224         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
84225
84226 1998-11-16  Jim Meyering  <meyering@ascend.com>
84227
84228         * m4/lfs.m4: Double-quote the `uname...` expression.
84229
84230 1998-11-14  Jim Meyering  <meyering@ascend.com>
84231
84232         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
84233         * m4/stat.m4: Likewise.
84234
84235 1998-11-03  Jim Meyering  <meyering@ascend.com>
84236
84237         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
84238         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
84239
84240 1998-10-18  Jim Meyering  <meyering@ascend.com>
84241
84242         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
84243
84244 1998-10-17  Jim Meyering  <meyering@ascend.com>
84245
84246         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
84247         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
84248         calls for those previously hard-coded headers.  Instead, take a new
84249         parameter.
84250         (jm_CHECK_DECLARATIONS): Reflect interface change.
84251         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
84252         (jm_CHECK_DECL_LOCALTIME_R): New macro.
84253
84254         * m4/mktime.m4: Test for spring-forward gap before long-running test.
84255
84256 1998-10-14  Jim Meyering  <meyering@ascend.com>
84257
84258         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
84259         instead of "TZ=America/Vancouver".  From Paul Eggert.
84260
84261 1998-10-11  Jim Meyering  <meyering@ascend.com>
84262
84263         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
84264         This adds a test for a recently added compatibility fix for mktime.c.
84265         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
84266
84267 1998-09-27  Jim Meyering  <meyering@ascend.com>
84268
84269         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
84270
84271         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
84272         ../configure.in, including a change from Gordon Matzigkeit to allow
84273         cross-compiling for the Hurd.
84274
84275         * m4/glibc.m4: New file/macro to test for the GNU C Library
84276         versions 1 and 2.  From Gordon Matzigkeit.
84277         Indent.
84278
84279 1998-09-21  Jim Meyering  <meyering@ascend.com>
84280
84281         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
84282
84283 1998-08-18  Paul Eggert  <eggert@twinsun.com>
84284
84285         Port nanosecond-resolution times to UnixWare 2.1.2 and
84286         pedantic Solaris 2.6.
84287
84288         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
84289         AC_STRUCT_ST_MTIM.
84290         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
84291         Generate name of ns member, instead of just 1 or undef.
84292         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
84293
84294 1998-08-15  Jim Meyering  <meyering@ascend.com>
84295
84296         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
84297         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
84298         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
84299         instead of jm_TYPE_SSIZE_T.
84300
84301 1998-08-12  Jim Meyering  <meyering@ascend.com>
84302
84303         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
84304
84305 1998-08-02  Jim Meyering  <meyering@ascend.com>
84306
84307         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
84308         in acconfig.h manually.
84309
84310 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84311
84312         * m4/st_mtim.m4: New file.
84313
84314 1998-07-28  Jim Meyering  <meyering@ascend.com>
84315
84316         * m4/utimes.m4: Undef stat.
84317
84318 1998-07-25  Jim Meyering  <meyering@ascend.com>
84319
84320         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84321         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84322
84323 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84324
84325         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84326         uid and gid actually remain unchanged.
84327
84328 1998-07-07  Jim Meyering  <meyering@ascend.com>
84329
84330         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84331
84332 1998-07-04  Jim Meyering  <meyering@ascend.com>
84333
84334         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84335         to prove that this macro can be used in packages without regex.c.
84336
84337 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84338
84339         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84340         is to be used.
84341
84342 1998-07-03  Jim Meyering  <meyering@ascend.com>
84343
84344         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84345
84346         * m4/gettext.m4: New file -- from gettext-0.10.35.
84347         * m4/lcmessage.m4: Likewise.
84348         * m4/progtest.m4: Likewise.
84349
84350         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84351         * m4/jm-macros.m4: Require the new macro.
84352
84353 1998-06-29  Jim Meyering  <meyering@ascend.com>
84354
84355         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84356         for the definition of NGROUPS (used in a system header included
84357         by sys/mount.h).
84358
84359 1998-06-28  Jim Meyering  <meyering@ascend.com>
84360
84361         * m4/ls-mntd-fs.m4: New file.
84362         * m4/fstypename.m4: New file.
84363
84364         * m4/jm-macros.m4: Require the new macro.
84365         * m4/jm-glibc-io.m4: New file.
84366
84367 1998-05-19  Jim Meyering  <meyering@ascend.com>
84368
84369         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84370         * m4/lchown.m4: New file.
84371
84372         * m4/Makefile.am.in: New file.
84373         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84374
84375 1998-05-14  Jim Meyering  <meyering@ascend.com>
84376
84377         * m4/Makefile.am (EXTRA_DIST): Add them.
84378         * m4/jm-macros.m4: New file.
84379         * m4/utimbuf.m4: New file.
84380
84381 1998-05-12  Jim Meyering  <meyering@ascend.com>
84382
84383         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84384
84385 1998-05-11  Jim Meyering  <meyering@ascend.com>
84386
84387         * m4/isc-posix.m4: New file.
84388
84389 1998-05-10  Jim Meyering  <meyering@ascend.com>
84390
84391         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84392
84393 1998-05-09  Jim Meyering  <meyering@ascend.com>
84394
84395         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84396         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84397         with automake.
84398
84399         * m4/ssize_t.m4: New file.
84400         * m4/mktime.m4: Remove file -- the new automake has this now.
84401
84402 1998-04-26  Jim Meyering  <meyering@ascend.com>
84403
84404         * m4/assert.m4: New file.
84405         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84406
84407 1998-04-05  Jim Meyering  <meyering@ascend.com>
84408
84409         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84410         (jm_PREREQ): Use it here.
84411
84412 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84413
84414         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84415         in acconfig.h.
84416
84417 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84418
84419         * m4/prereq.m4: New file.
84420         * m4/error.m4: New file.
84421         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84422
84423 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84424
84425         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84426         cache-check for the same variable -- that defeated the purpose of
84427         the test; the test program was never run.  This was a problem only
84428         on systems with losing getline functions -- HP-UX 10.20 is one.
84429         Reported by Bjorn Helgaas.
84430
84431 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84432
84433         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84434
84435 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84436
84437         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84438
84439         * m4/const.m4: New file.  Use an initializer in this declaration
84440         typedef int charset[2]; const charset x;
84441         Reported by Bob Glickstein.
84442
84443 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84444
84445         * m4/chown.m4: Fix reversed types on -1 args to chown.
84446         From Kaveh Ghazi.
84447
84448 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84449
84450         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84451         Add lseek and memchr.
84452
84453         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84454         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84455         have a 20-character limit on names.
84456
84457 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84458
84459         * m4/inttypes_h.m4: New file.
84460         * m4/uintmax_t.m4: New file.
84461         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84462
84463
84464         -----
84465
84466         Local Variables:
84467         coding: utf-8
84468         End:
84469
84470         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84471
84472         Copying and distribution of this file, with or without
84473         modification, are permitted provided the copyright notice
84474         and this notice are preserved.